Skip to content

Instantly share code, notes, and snippets.

@jacobk
jacobk / process_tornado_bm.py
Created December 9, 2010 20:04
Simple script to process raw data from Tornado BM
#!/usr/bin/env python
# encoding: utf-8
#
# Requires statlib http://code.google.com/p/python-statlib/
"""
process_tornado_bm.py
Created by Jacob Kristhammar on 2010-12-09.
"""
@moonray
moonray / .bash_profile
Created October 29, 2010 18:29
p and d functions to use in .bash_profile
function p {
wget -O tmp.patch $1; patch -p0 < tmp.patch; d tmp.patch;
}
function d {
# cvs diff -upNF^f . > $1.patch
git diff --no-prefix HEAD . > $1.patch;
# Clean up to avoid possible issues.
rm -f $1.tmp.patch