Skip to content

Instantly share code, notes, and snippets.

@jul
Created April 28, 2012 21:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jul/2522348 to your computer and use it in GitHub Desktop.
Save jul/2522348 to your computer and use it in GitHub Desktop.
telling a story in python
#!/usr/bin/env python
me = "freaky"
print "before I was %s" % me
from re import compile as cum
twist = lambda x : str(x).encode("rot-13")
D = 8
print "I was always thinking of s%sx" % chr(int( "".join(reduce( lambda x : x+y , cum("(.)(.)").findall("69") ))))
print "coding transformed me the following way"
print "I became %s" % (8==D and twist(cum( "(.)(.).(y)").sub( twist("x") + 'v' + twist(chr(69)) + chr(69), me)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment