Created
August 4, 2014 22:27
-
-
Save davidbalbert/0b375d296956c7e51098 to your computer and use it in GitHub Desktop.
Face spinner
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
slashes = ["|", "/", "-", "\\"] | |
slashes.cycle do |s| | |
system "clear" | |
puts ":#{s}" | |
sleep 0.3 | |
end |
This is probably the best way to use this in your production code. Let GitHub host it for you so you don't pay the bandwidth costs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ curl https://gist.githubusercontent.com/davidbalbert/0b375d296956c7e51098/raw/9ff24a4e976f71cb23052c5ac2163a36e332c053/face-spinner.rb | rb