Skip to content

Instantly share code, notes, and snippets.

@pope
Created July 8, 2009 14:02
Show Gist options
  • Save pope/142867 to your computer and use it in GitHub Desktop.
Save pope/142867 to your computer and use it in GitHub Desktop.
def reverse_bit_iterator(val):
while val > 0:
yield val & 0xff
val = val >> 0x8
print reduce(lambda x,y: y+x, map(chr, reverse_bit_iterator(long(__file__[:-3]))), "!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment