Skip to content

Instantly share code, notes, and snippets.

@persquare
Created September 14, 2014 08:54
Show Gist options
  • Save persquare/d44082fd7f5a0d5922e1 to your computer and use it in GitHub Desktop.
Save persquare/d44082fd7f5a0d5922e1 to your computer and use it in GitHub Desktop.
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