Snippets

Python

print line numbers in a Python script:

 import sys frame = sys._getframe() print frame.f_lineno 

Python - date from Unix timestamp

...

Feb 11, 2013