Skip to content

Instantly share code, notes, and snippets.

@diofeher
Created April 24, 2012 15:28
Show Gist options
  • Select an option

  • Save diofeher/2480615 to your computer and use it in GitHub Desktop.

Select an option

Save diofeher/2480615 to your computer and use it in GitHub Desktop.
--nerd happy birthday
import binascii
txt = [int(t,2) for t in '01001000 01100001 01110000 01110000 01111001 00100000 01000010 01101001 01110010 01110100 01101000 01100100 01100001 01111001'.split()]
print ''.join([binascii.unhexlify('%x' % c) for c in txt])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment