Skip to content

Instantly share code, notes, and snippets.

View timtadh's full-sized avatar
🔥
it's a trap!

Tim Henderson timtadh

🔥
it's a trap!
View GitHub Profile
@timtadh
timtadh / screen.css
Created October 10, 2011 03:21 — forked from jasonm23/screen.css
markdown friendly css
html { font-size: 62.5%; }
html, body { height: 100%; }
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 150%;
line-height: 1.3;
color: #f6e6cc;
width: 700px;
margin: auto;
@timtadh
timtadh / gist:1169064
Created August 24, 2011 20:09 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job:
PhD. Student @ Case Western Reserve in Software Engineering (Program Analysis)
Favorite Python project:
PLY (Python Lex and Yacc)
Favorite Conference:
PyOhio
Python Experience Level:
@timtadh
timtadh / clear_line.py
Created January 12, 2011 16:38
python repl howto
left = chr(27)+chr(91)+chr(68)
right = chr(27)+chr(91)+chr(67)
backspace = left + ' ' + left
def clear_line(prompt, l):
for x in xrange(150 - l):
sys.stdout.write(right)
for x in xrange(150):
sys.stdout.write(backspace)
sys.stdout.write(prompt)
sys.stdout.flush()