Skip to content

Instantly share code, notes, and snippets.

@richo
Created November 17, 2017 00:37
Show Gist options
  • Save richo/2f8af79080fc9d2979f5400b59ed0234 to your computer and use it in GitHub Desktop.
Save richo/2f8af79080fc9d2979f5400b59ed0234 to your computer and use it in GitHub Desktop.
import sys
import string
words = sys.argv[1:]
def embiggen_word(word):
def inner(_word):
for i in word.lower():
if i in string.ascii_lowercase:
yield ":big-%s:" % i
else:
yield i
return ''.join(inner(word))
embiggened = map(embiggen_word, words)
print ":sparkles:%s:end_sparkles:" % (' '.join(embiggened))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment