Skip to content

Instantly share code, notes, and snippets.

@nelsonsar
Created December 6, 2013 16:30
Show Gist options
  • Select an option

  • Save nelsonsar/7827754 to your computer and use it in GitHub Desktop.

Select an option

Save nelsonsar/7827754 to your computer and use it in GitHub Desktop.
Ruby snowflakes. This is not mine... I just found it on http://climagic.org/coolstuff/let-it-snow.html. In Artem Baguinski comment.
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");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