more of hessian
Written by Sean Behan on 06/17/2012
salmon salad at home
Written by Sean Behan on 06/17/2012
Python String Format Precision of Float
You can use string interpolation in combination with a dictionary for simple formatting.
print "My name is %(name)s and I have $%(change)0.2f in change in my pocket!" % { 'name': 'Sean', 'change': 00.23 }
# My name is Sean and I have $0.23 in chang...
Written by Sean Behan on 11/20/2013
Recursively Zip a Directory and Files on Linux
It's Short and sweet!
Just remember that the finished zip filename is the first argument and the directory you wish to recursively zip comes after.
zip -r name_of_your_directory.zip name_of_your_directory
That's all.
You might be intere...
Written by Sean Behan on 03/05/2017