Created
December 31, 2018 20:09
-
-
Save noroot/286129f2c326e4169e53a57b92543437 to your computer and use it in GitHub Desktop.
Snow in terminal with Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e 'CS=`stty size`.scan(/\d+/)[1].to_i;S=["2744".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(CS)]=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