Skip to content

Instantly share code, notes, and snippets.

@davidbalbert
Created August 4, 2014 22:27
Show Gist options
  • Save davidbalbert/0b375d296956c7e51098 to your computer and use it in GitHub Desktop.
Save davidbalbert/0b375d296956c7e51098 to your computer and use it in GitHub Desktop.
Face spinner
slashes = ["|", "/", "-", "\\"]
slashes.cycle do |s|
system "clear"
puts ":#{s}"
sleep 0.3
end
@michaelglass
Copy link

$ curl https://gist.githubusercontent.com/davidbalbert/0b375d296956c7e51098/raw/9ff24a4e976f71cb23052c5ac2163a36e332c053/face-spinner.rb | rb

@davidbalbert
Copy link
Author

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