Last active
November 23, 2022 05:14
-
-
Save roblogic/5dffc81b4673649942b4612e925ae80c to your computer and use it in GitHub Desktop.
Snippets for Arecibo Code Golf answer https://codegolf.stackexchange.com/a/191473/15940
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&M8}p.B@#L#QZE00001Fb*2U02+?qq#={[000069asT6g8.)4ZwEwH000Mg1onA4aoh}/0Q{6?7 | |
?7Abap8T<N!#M/0000:ZZ{J%0d$no1{.{L01Yzs5hjUju{Cb/00eC!f:[8q1oX#k5eUKnfBigKaB | |
[#)FcD1?fA=JG2NyzwD&LsiWGLW<&LA29Gr+T=<o=q3huiZS05#83BRN)l3zmwk01TOWF4#ep&0Y | |
P[gY.1d24nhWll]9LmgYDLaoqEc0f^Fe]ZR$Y |
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
0000 0010 | |
1010 1000 | |
0000 0000 | |
0101 0000 | |
0101 0000 | |
0001 0010 | |
0010 0010 | |
0010 0101 | |
1001 0101 | |
0101 0101 | |
0101 0010 | |
0100 0000 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0000 0001 | |
1000 0000 | |
0000 0000 | |
0000 1101 | |
0000 0000 | |
0000 0000 | |
0001 1010 | |
0000 0000 | |
0000 0000 | |
0101 0100 | |
0000 0000 | |
0000 0000 | |
1111 1000 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0000 0110 | |
0001 1100 | |
0110 0001 | |
1000 1000 | |
0000 0000 | |
0011 0010 | |
0001 1010 | |
0011 0001 | |
1000 0110 | |
1011 1110 | |
1111 1011 | |
1110 1111 | |
1000 0000 | |
0000 0000 | |
0000 0000 | |
0001 0000 | |
0000 0000 | |
0000 0100 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0010 0000 | |
0000 0000 | |
0000 1111 | |
1100 0000 | |
0000 0001 | |
1111 0000 | |
0000 0000 | |
0000 0000 | |
0001 1000 | |
0110 0001 | |
1100 0110 | |
0010 0000 | |
0010 0000 | |
0000 1000 | |
0110 1000 | |
0110 0011 | |
1001 1010 | |
1111 1011 | |
1110 1111 | |
1011 1110 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0100 0000 | |
1100 0000 | |
0001 0000 | |
0000 0001 | |
1000 0000 | |
0000 0000 | |
1000 0011 | |
0000 0000 | |
0011 1111 | |
0000 0110 | |
0000 0111 | |
1100 0000 | |
0000 1100 | |
0000 0000 | |
0001 0000 | |
0000 1000 | |
0000 0100 | |
0001 0000 | |
0011 0000 | |
0001 0000 | |
0001 1000 | |
0110 0000 | |
0100 0000 | |
0000 1100 | |
0100 0011 | |
0000 0000 | |
0000 0001 | |
1001 1000 | |
0000 0000 | |
0011 0001 | |
0000 1100 | |
0000 0001 | |
1000 0110 | |
0000 0100 | |
0000 0100 | |
0000 1000 | |
0000 0100 | |
0001 0000 | |
0001 1000 | |
0000 0100 | |
0100 0000 | |
0011 0000 | |
0000 1000 | |
1000 0000 | |
0010 0000 | |
0010 0000 | |
1000 0000 | |
1000 0000 | |
1000 0000 | |
1000 0000 | |
0000 0110 | |
0000 0000 | |
1100 0000 | |
0011 0000 | |
0000 0100 | |
0111 0101 | |
1000 0000 | |
0000 1000 | |
0000 1000 | |
0000 0000 | |
0001 0000 | |
0111 1100 | |
0000 0000 | |
0010 0001 | |
0111 0100 | |
1011 0110 | |
0000 0100 | |
1110 0100 | |
1111 1110 | |
1110 0001 | |
1100 0001 | |
1011 1000 | |
0000 0010 | |
1000 0011 | |
1011 0010 | |
0000 0101 | |
0000 0111 | |
1110 0100 | |
0000 1010 | |
0000 1100 | |
0000 1000 | |
0011 0110 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0000 0000 | |
0011 1000 | |
0010 0000 | |
0000 0000 | |
0111 0101 | |
0001 0101 | |
0101 0100 | |
1110 0000 | |
0000 1010 | |
1010 0000 | |
0000 0000 | |
0001 0100 | |
0000 0000 | |
0000 1111 | |
1000 0000 | |
0000 0000 | |
0111 1111 | |
1100 0000 | |
0000 0011 | |
1000 0000 | |
1110 0000 | |
0000 1100 | |
0000 0000 | |
0110 0000 | |
0011 0100 | |
0000 0001 | |
0110 0000 | |
1100 1100 | |
0000 0110 | |
0110 0001 | |
0001 0100 | |
0001 0100 | |
0100 0010 | |
0010 0100 | |
0100 1000 | |
1000 0000 | |
0100 0101 | |
0001 0000 | |
0000 0000 | |
1000 0100 | |
0010 0000 | |
0000 0001 | |
0000 0000 | |
0100 0000 | |
0000 0000 | |
1001 0100 | |
0000 0000 | |
0111 1001 | |
1111 0100 | |
1111 0001 | |
1111 1111 | |
1111 1111 |
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
#!/bin/zsh | |
# Source: @fpmurphy, unix.stackexchange.com/a/623264/62529 | |
while read nibble1 nibble2 | |
do | |
byte=$(printf "%s%s" ${nibble1} ${nibble2} ) | |
hexstr=$(printf '\\\\x%02x' $((2#${byte})) ) | |
eval printf "$hexstr" | |
done < bitstr.8 > bits.16.again |
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
basenc -d --z85<<<'0&M8}p.B@#L#QZE00001Fb*2U02+?qq#={[000069asT6g8.)4ZwEwH00 | |
0Mg1onA4aoh}/0Q{6?7?7Abap8T<N!#M/0000:ZZ{J%0d$no1{.{L01Yzs5hjUju{Cb/00eC!f:[ | |
8q1oX#k5eUKnfBigKaB[#)FcD1?fA=JG2NyzwD&LsiWGLW<&LA29Gr+T=<o=q3huiZS05#83BRN) | |
l3zmwk01TOWF4#ep&0YP[gY.1d24nhWll]9LmgYDLaoqEc0f^Fe]ZR$Y'|basenc --base2msbf | |
-w0|cut -c-1679 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment