Last active
July 2, 2020 06:31
-
-
Save pyrsmk/b4339fc1957e3af9581e581dd2fcc78b to your computer and use it in GitHub Desktop.
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
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