Created
May 18, 2015 20:42
-
-
Save Olical/e64e196f92ae1aa9b612 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
| 0 101010 | |
| 1 111111 | |
| -1 111010 | |
| D 001100 | |
| A 110000 M | |
| !D 001101 | |
| !A 110001 !M | |
| -D 001111 | |
| -A 110011 -M | |
| D+1 011111 | |
| A+1 110111 M+1 | |
| D-1 001110 | |
| A-1 110010 M-1 | |
| D+A 000010 D+M | |
| D-A 010011 D-M | |
| A-D 000111 M-D | |
| D&A 000000 D&M | |
| D|A 010101 D| |
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
| ;; Took just over a minute to transform the original text to this hash-map with Vim. Score. | |
| (def bin-comp | |
| {:0 0101010 | |
| :1 0111111 | |
| :-1 0111010 | |
| :D 0001100 | |
| :A 0110000 | |
| :!D 0001101 | |
| :!A 0110001 | |
| :-D 0001111 | |
| :-A 0110011 | |
| :D+1 0011111 | |
| :A+1 0110111 | |
| :D-1 0001110 | |
| :A-1 0110010 | |
| :D+A 0000010 | |
| :D-A 0010011 | |
| :A-D 0000111 | |
| :D&A 0000000 | |
| :D|A 0010101 | |
| :M 1110000 | |
| :!M 1110001 | |
| :-M 1110011 | |
| :M+1 1110111 | |
| :M-1 1110010 | |
| :D+M 1000010 | |
| :D-M 1010011 | |
| :M-D 1000111 | |
| :D&M 1000000 | |
| :D|M 1010101}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment