Skip to content

Instantly share code, notes, and snippets.

@davidbalbert
Created August 4, 2014 22:27
Show Gist options
  • Select an option

  • Save davidbalbert/0b375d296956c7e51098 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
$ curl https://gist.githubusercontent.com/davidbalbert/0b375d296956c7e51098/raw/9ff24a4e976f71cb23052c5ac2163a36e332c053/face-spinner.rb | rb

@davidbalbert

Copy link
Copy Markdown
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