Skip to content

Instantly share code, notes, and snippets.

View jcc10's full-sized avatar

Joshua Cline jcc10

View GitHub Profile
@jcc10
jcc10 / snippit.py3
Last active November 13, 2019 02:13
Codeing Competition Input Function
def mass_input(prompt=None, lines=None, end=None):
"""Returns a list of lines of input."""
# Must only have lines *or* end.
assert lines is None or end is None
# *Must* have lines or end.
assert lines is not None or end is not None
# Output array
@tiye
tiye / keydown.coffee
Created July 3, 2013 02:31
keyCode of keydown event in JSON format
# keydown data from the web
# http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
map =
backspace: 8
tab: 9
enter: 13
shift: 16
ctrl: 17