Skip to content

Instantly share code, notes, and snippets.

@pyrsmk
Last active July 2, 2020 06:31
Show Gist options
  • Save pyrsmk/b4339fc1957e3af9581e581dd2fcc78b to your computer and use it in GitHub Desktop.
Save pyrsmk/b4339fc1957e3af9581e581dd2fcc78b to your computer and use it in GitHub Desktop.
LIST = "⠹⠼⠶⠧⠏⠛"
LIGHT = "⢕⡪"
SPEED = 1
def loader(speed=SPEED, list=LIST)
list[(Time.now.to_f * 10 ** speed).to_i % list.length]
end
# Add this line to your loop
print "Loading... #{ loader(1, LIST) }\r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment