Skip to content

Instantly share code, notes, and snippets.

@trogdoro
Created April 16, 2018 00:44
Show Gist options
  • Save trogdoro/5c7f9c32b24b29f74c0835188a7963c3 to your computer and use it in GitHub Desktop.
Save trogdoro/5c7f9c32b24b29f74c0835188a7963c3 to your computer and use it in GitHub Desktop.
LONGEST_KEY = 1
SHOW_STROKE_STENO = 'KW-PL' # g-g (for go google)
def lookup(key):
#log("hi")
assert len(key) <= LONGEST_KEY
if SHOW_STROKE_STENO != key[0]:
raise KeyError
import os
os.system("open https://www.google.com/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment