Skip to content

Instantly share code, notes, and snippets.

@Jonty
Created February 21, 2014 19:26
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 Jonty/9141547 to your computer and use it in GitHub Desktop.
Save Jonty/9141547 to your computer and use it in GitHub Desktop.
IRCCat (using command_runner) command for table flipping.
#!/usr/bin/python
# coding=utf8
import sys
import upsidedown
if len(sys.argv) != 6:
sys.exit()
table_string = upsidedown.transform(sys.argv[5])
output = u"(╯°□°)╯︵ ┻━" + table_string + u"━┻"
output = output.encode('utf-8')
sys.stdout.write(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment