Created
April 28, 2012 21:55
-
-
Save jul/2522348 to your computer and use it in GitHub Desktop.
telling a story in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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