Categories
- Code (32)
- C# (4)
- emacs (4)
- Javascript (1)
- PHP (1)
- Python (6)
- Shell Script (2)
- silverlight (4)
- Blend (2)
- Sysadmin (3)
- unix (4)
- Code (32)
Meta
ad
Category Archives: Code
Python: Consulting PEPs from command line, while being offline
One day I wished I could read PEPs in the tube on my laptop… so I searched for a convenient way to do so, and I didn’t found … So I wrote a very simple shell script you can found … Continue reading
echo and backslash-escaped caracters / new lines: how to write portable scripts ?
While writing shell scripts you are using a lot of ‘echo’ but did you think about portability of this simple statement ? Can you say what will be diplayed, without testing, on your shell, the following tests : echo \n … Continue reading
Posted in Shell Script
Leave a comment
[BASHISM] How to generate random number without $RANDOM ?
There is a common bashism, that is to use $RANDOM. Typically you’ll have to remove bashism while rewriting your scripts for dash or sh. There is a lot of solutions to generate random numbers in many different ways, but I’m … Continue reading
Posted in Shell Script
1 Comment
Pipe: Infix syntax for Python
Pipe is a Python module enabling infix syntax in Python. For those asking “Why ?” let’s take an example : Compare the readability of the classical prefix syntax : sum(select(where(take_while(fib(), lambda x: x < 1000000) lambda x: x % 2), … Continue reading
Posted in Code, Python
41 Comments
Yauib : Yet another useless IRC Bot !
After 2 years of … non blogging … I’m back ! This time I stopped C# (Oh yeah !) and I’m writing a lot of Python ! (Oh YEAH !) So to say HELLO I’ll present something useless : My … Continue reading
Posted in Python, unix
4 Comments