Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created July 11, 2016 19:11
Show Gist options
  • Select an option

  • Save wavebeem/71f9ac9533e455a75fbeffca1bd9352f to your computer and use it in GitHub Desktop.

Select an option

Save wavebeem/71f9ac9533e455a75fbeffca1bd9352f to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
import time
def uchar(code):
return ('\\U%08x' % code).decode('unicode-escape')
start = 0x1F550
end = 0x1F55B
emoji = map(uchar, range(start, end + 1))
def spin():
while True:
for moji in emoji:
sys.stdout.write(moji)
sys.stdout.write(' ')
sys.stdout.flush()
time.sleep(0.1)
sys.stdout.write('\r')
try:
spin()
except KeyboardInterrupt:
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment