Created
February 3, 2013 23:02
-
-
Save hacst/4704124 to your computer and use it in GitHub Desktop.
Since people don't stop writing text as binary ASCII and rewriting the same line over and over again to decode it gets boring real quick remember it as a gist ;) Usage: echo 01000010 00101101 01110011 01101001 01100100 01100101 | ./binasc2asc.py
This file contains 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 | |
import sys | |
print "".join([chr(int(c,2)) for c in sys.stdin.read().strip().split()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment