Welcome To Snipplr
Everyone's Recent Python Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple example of using Google's API for contacts to display the contact name and phone number. More info in the comments.
0
752
posted 15 years ago by PhilK
Creates backups of "file.ext" in the form "file.Bx.ext", where Bx represents a sequential backup number from 1 (most recent) to 5 (oldest)
Put the following symbolic links in your path
ln -s path-to-this-file/age.py age
ln -s path-to-...
0
888
posted 15 years ago by SimonTite
method 'E' (in fact a decorator) catch the execption and return it, so it's possible to use the good old assert statement.
0
749
posted 15 years ago by manatlan
I have not tried this out yet, but I hope it can convert IronPython types to and from json.
0
909
posted 15 years ago by laurenceosx