Ride the Snake: reddit keynote @ PyCon 09

Post on 08-May-2015

10.978 views 2 download

Transcript of Ride the Snake: reddit keynote @ PyCon 09

spezkeysersosa

pythonfangirl

kn0thing

spez(not drinking)

keysersosa

pythonfangirl

kn0thing

“NOOOOOOOOO!!!11!”~ Paul Graham

Coincidence???

reddit: made possible by you

• Paste• Pylons• SQLAlchemy + Psycopg• Python Image Library (PIL)• BeautifulSoup• Babel• Cssutils• Chardet• flup

( Applaud now )

That’s an X-Ray

nearly 1 year later...

+ CSS =

Reddit C55 Compiler (beta)

• Because CSS sucks• Variables• Functions• Nested styles• Based on PLY (Python Lex-Yacc)

$reddit-blue: #369;$reddit-lightblue: #c7def7;$roundedcorner(r) {    -moz-border-radius: $r;    -webkit-border-radius: $r;}

body { background-color: $reddit-lightblue;}.rounded { $roundedcorner(10);}.reddit { background-color: $reddit-blue; .rounded { $roundedcorner(5); }}

body { background-color:#c7def7; }.rounded { -moz-border-radius:10; -webkit-border-radius:10;}.reddit { background-color:#369; }.reddit .rounded { -moz-border-radius:5; -webkit-border-radius:5;}

Automatic Thumbnail Generator

!!Steve, put something witty here before the presentation

Random observations(because we have a captive audience)

Random observations

If you write a crawler, don't lie about your user-agent.

You spamming motherfucker.

Random observations

ctypes is really cool.

What the hell am I supposed to do with a core file anyway?

Random observations

9-11 was an inside job!!!!!

Random observations

Relational databases are a really good solution to problems we don’t have. Bummer.

Random observations

You don’t have to be original.

Random observations

Elections should never be decided using reddit.

Questions?