This file contains 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
/** | |
* Fire an event handler to the specified node. Event handlers can detect that the event was fired programatically | |
* by testing for a 'synthetic=true' property on the event object | |
* @param {HTMLNode} node The node to fire the event handler on. | |
* @param {String} eventName The name of the event without the "on" (e.g., "focus") | |
*/ | |
function fireEvent(node, eventName) { | |
// Make sure we use the ownerDocument from the provided node to avoid cross-window problems | |
var doc; | |
if (node.ownerDocument) { |
This file contains 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
values = [(num, count) for num in range(2, 8) for count in range(2, 7)] | |
def p(v, f): | |
vv = sorted(v, key=f) | |
for (num, count) in vv: | |
print ' '.join([str(num)]*count) | |
f1 = lambda (num, count): num + count | |
f2 = lambda (num, count): num + 2*count |
This file contains 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 hashlib | |
USERNAME = 'aaaaa' | |
def combiner_1(name): | |
return USERNAME + name | |
def combiner_2(name): | |
return USERNAME + ' ' + name |
This file contains 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
if (window._loop != undefined) { | |
clearInterval(window._loop); | |
} | |
if (window._origRedraw != undefined) { | |
redraw = window._origRedraw; | |
} | |
(function() { | |
window.lastTarget = { |
This file contains 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
(when i generate random r and k that are small) | |
MATCH! | |
MATCH! | |
Server sees: | |
Public: 0x9860c2c7d348f42051c8af8df30d5cd89b70046e67549cf4628d7344548abd3dL | |
A Decision: 0x39e37801171d987f9e15ec9677cd22a8945530bf7537fc2715d7455b30840de9260a340d4feba8e43978b9a3f756d12e775ce61771cbd791d32cb80cf2e47e28L | |
B Decision: 0x424f176cc319720068ac870001115a19ac9b3e4bd820b101fef60927c3685a7698c6fe38750856d9d8cec245a6e4e3e0e8d9d008137115678b57db4b7be11939L | |
R: 0x3d558cbd53b4 | |
K: 0x18a42f88d970e |
This file contains 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
# "regular" or "express" | |
CHECKIN_TYPE="regular" | |
MIT_API_BASE="http://m.mit.edu/apis/people/" | |
PRINTER_NAME="LabelWriter-450-Turbo" | |
LABEL_WIDTH=760 | |
LABEL_HEIGHT=410 |
I hereby claim:
- I am Detry322 on github.
- I am detry322 (https://keybase.io/detry322) on keybase.
- I have a public key whose fingerprint is B1F1 8FE2 E3CD 10DE 21ED 8BCD 67D1 518E 5B74 A7BA
To claim this, I am signing this object: