Created
March 16, 2018 02:18
-
-
Save augustogoulart/d2094df231461f09a98e0b46257b181a 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
import emoji as em | |
import os | |
def break_line(symbol, emoji=False): | |
""" | |
Try using emojis to make your debugging experience less miserable. | |
Go check the emoji cheat sheet: https://www.webpagefx.com/tools/emoji-cheat-sheet | |
""" | |
_, columns = os.popen('stty size', 'r').read().split() | |
if emoji: | |
print((em.emojize(symbol, use_aliases=True) + " ") * (int(columns)/2)) | |
return | |
print(symbol * int(columns)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment