Created
September 14, 2014 08:54
-
-
Save persquare/d44082fd7f5a0d5922e1 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 sys | |
| def discard(): | |
| sys.exit(200) | |
| def replace_text(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(201) | |
| def replace_document(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(202) | |
| def insert_text(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(203) | |
| def insert_snippet(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(204) | |
| def show_html(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(205) | |
| def show_tool_tip(out = None): | |
| if out: | |
| sys.stderr.write(out) | |
| sys.exit(206) | |
| def create_new_document(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(207) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment