I hereby claim:
- I am ccampbell on github.
- I am ccampbell (https://keybase.io/ccampbell) on keybase.
- I have a public key whose fingerprint is CA5C D27E 0BC1 AD0E B050 E54B 6306 C487 3C5F 26CE
To claim this, I am signing this object:
#!/usr/bin/env python | |
import os | |
import tornado.web | |
from tornado.ioloop import IOLoop | |
from tornado.options import define, options | |
from tornado.escape import xhtml_escape | |
# config options | |
define('port', default=8080, type=int, help='port to run web server on') | |
define('debug', default=True, help='start app in debug mode') |
I hereby claim:
To claim this, I am signing this object:
/** | |
* adds a bindGlobal method to Mousetrap that allows you to | |
* bind specific keyboard shortcuts that will still work | |
* inside a text input field | |
* | |
* usage: | |
* Mousetrap.bindGlobal('ctrl+s', _saveChanges); | |
*/ | |
Mousetrap = (function(Mousetrap) { | |
var _global_callbacks = {}, |
/** | |
* adds a pause and unpause method to Mousetrap | |
* this allows you to enable or disable keyboard shortcuts | |
* without having to reset Mousetrap and rebind everything | |
*/ | |
Mousetrap = (function(Mousetrap) { | |
var self = Mousetrap, | |
_original_stop_callback = self.stopCallback, | |
enabled = true; |
/** | |
* Overwrites default Mousetrap.bind method to optionally accept | |
* an object to bind multiple key events in a single call | |
* | |
* You can pass it in like: | |
* | |
* Mousetrap.bind({ | |
* 'a': function() { console.log('a'); }, | |
* 'b': function() { console.log('b'); } | |
* }); |