Skip to content

Instantly share code, notes, and snippets.

@shimx
Created June 24, 2014 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimx/e204ce341842b7d1c9eb to your computer and use it in GitHub Desktop.
Save shimx/e204ce341842b7d1c9eb to your computer and use it in GitHub Desktop.
Macのターミナルに彼女を降らせる
$ ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\u5f7c\u5973";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.1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment