Created
May 31, 2019 05:08
-
-
Save 8q/05ac82c4e906769a7217dbc2ff3530ed 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
echo -n 'r=90;a[0]=$((1<<15));for h in {0..15};{ l="";for p in {30..0};{ t=${a[h]};[ $((t>>p&1)) = 1 ] && l="${l}💩" || l="${l} ";q=$(((t>>(p+1)%31&1)*4+(t>>p&1)*2+(t>>(p-1)%31&1)));a[$((h+1))]=$((a[h+1]|(r>>q&1)<<p));};echo "${l}";}' | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment