Skip to content

Instantly share code, notes, and snippets.

@8q
Created May 31, 2019 05:08
Show Gist options
  • Save 8q/05ac82c4e906769a7217dbc2ff3530ed to your computer and use it in GitHub Desktop.
Save 8q/05ac82c4e906769a7217dbc2ff3530ed to your computer and use it in GitHub Desktop.
ウンコスキーのギャスケット #シェル芸
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