Skip to content

Instantly share code, notes, and snippets.

View erasmospunk's full-sized avatar

Giannis L. Jegutanis erasmospunk

View GitHub Profile
'''
@author Michael J Bommarito II
@date Feb 26, 2011
@license Simplified BSD, (C) 2011.
This script demonstrates how to use Python to archive historical tweets.
'''
import codecs
import csv
@erasmospunk
erasmospunk / .pdbrc
Created March 11, 2013 15:38 — forked from esamattis/.pdbrc
Python debugger config
# Enable tab completion
import rlcompleter
import pdb
pdb.Pdb.complete = rlcompleter.Completer(locals()).complete
# Sometimes when you do something funky, you may lose your terminal echo. This
# should restore it when spanwning new pdb.
import termios, sys
termios_fd = sys.stdin.fileno()
termios_echo = termios.tcgetattr(termios_fd)
@erasmospunk
erasmospunk / gist:2930564
Created June 14, 2012 14:11 — forked from pithyless/gist:1208841
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...