Skip to content

Instantly share code, notes, and snippets.

@quanon
Last active August 29, 2015 14:00
Show Gist options
  • Save quanon/1c66c9b02ba327330265 to your computer and use it in GitHub Desktop.
Save quanon/1c66c9b02ba327330265 to your computer and use it in GitHub Desktop.
空からゆのっち
$ ruby -e 'Y="X / _ / X";S=Y.size;C=`stty size`.scan(/\d+/)[1].to_i/S;a={};c={};puts "\033[2J";loop{r=rand(C);a[r]=0;c[r]=[*30..37].sample;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x*S+1}H#{" "*S}\033[#{c[x]}m\033[#{a[x]};#{x*S+1}H#{Y}\033[0;0H\033[0m"};$stdout.flush;sleep 0.05}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment