Skip to content

Instantly share code, notes, and snippets.

@cgsvv
Last active March 21, 2019 05:13
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 cgsvv/92215a20b884549d37f7f71032a3491b to your computer and use it in GitHub Desktop.
Save cgsvv/92215a20b884549d37f7f71032a3491b to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# coding: utf-8
import sys, time, random
emojis = ['🌝', 'πŸŒ–', 'πŸŒ—', '🌘', '🌚', 'πŸŒ’', 'πŸŒ“', 'πŸŒ”']
def write(text):
sys.stdout.write('\r' + text)
sys.stdout.flush()
for i in range(24):
write(emojis[i%len(emojis)])
time.sleep(1.0/24)
write(['🌝', '🌚'][random.randint(0,1)])
sys.stdout.write('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment