Last active
August 30, 2018 22:48
-
-
Save ambirdsall/38b8c35c8e3c03463446be425e658261 to your computer and use it in GitHub Desktop.
yoooooooo
This file contains hidden or 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
<<moon | ruby | |
phases = (0x1F311..0x1F318).to_a.collect{|c| [c].pack('U*')} | |
clear_line = "\r\e[0K" | |
500.times do |i| | |
phase = phases[i % phases.size] | |
print "#{clear_line} #{phase}\t#{500 - i}" | |
sleep rand / 10.0 | |
end | |
moon |
This file contains hidden or 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
#!/usr/bin/env ruby | |
phases = (0x1F311..0x1F318).to_a.collect{|c| [c].pack('U*')} | |
clear_line = "\r\e[0K" | |
500.times do |i| | |
phase = phases[i % phases.size] | |
print "#{clear_line} #{phase}\t#{500 - i}" | |
sleep rand / 10.0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment