Skip to content

Instantly share code, notes, and snippets.

@mbaldessari
Last active October 7, 2022 09:01
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 mbaldessari/a1663800f6aa15c7cd953eca339e6836 to your computer and use it in GitHub Desktop.
Save mbaldessari/a1663800f6aa15c7cd953eca339e6836 to your computer and use it in GitHub Desktop.
quick debug function
def lol(msg):
import datetime
with open('/tmp/lol.txt', 'a+', encoding='utf-8') as f:
f.write('[LOL] %s %s\n' % (str(datetime.datetime.now()), msg))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment