Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Created April 30, 2014 07:52
  • Star 19 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hokaccha/1cbe8da43ab254ac91b6 to your computer and use it in GitHub Desktop.
Macのターミナルに寿司を降らせる
$ ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\xf0\x9f\x8d\xa3";a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.01}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment