cs-shirt.txt is from the UIUC CS shirt. The binary digits are shaped to form a big I. The cs-shirt.py translates the shirt into text.
Created
August 1, 2015 20:21
-
-
Save mayhewsw/c03abf2abb542990aaa5 to your computer and use it in GitHub Desktop.
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
| with open("cs-shirt.txt") as f: | |
| lines = f.readlines() | |
| slines = filter(lambda s: len(s) > 2, map(lambda s: s.strip(), lines)) | |
| line = "".join(slines) | |
| print line | |
| s = "" | |
| for i in range(0, len(line), 8): | |
| b = int(line[i:i+8], 2) | |
| s += chr(b) | |
| print s |
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
| 01000011011011110110110101 | |
| 11000001110101011101000110 | |
| 01010111001000100000010100 | |
| 11011000110110100101100101 | |
| 01101110011000110110010100 | |
| 10000001100001011101000010 | |
| 00000111010001101000011001 | |
| 01001000000101 | |
| 01010110111001 | |
| 10100101110110 | |
| 01100101011100 | |
| 10011100110110 | |
| 10010111010001 | |
| 11100100100000 | |
| 01101111011001 | |
| 10001000000100 | |
| 10010110110001 | |
| 10110001101001011011100110 | |
| 11110110100101110011001000 | |
| 00010101010111001001100010 | |
| 01100001011011100110000100 | |
| 10110101000011011010000110 | |
| 00010110110101110000011000 | |
| 01011010010110011101101110 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment