Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created July 11, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavebeem/455637ae10156d66ca224b8d73f2b88b to your computer and use it in GitHub Desktop.
Save wavebeem/455637ae10156d66ca224b8d73f2b88b to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
def spin
("\u{1F550}" .. "\u{1F55B}").cycle.each do |moji|
print moji, " "
sleep 0.1
print "\r"
end
end
begin
spin
rescue Interrupt
puts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment