I hereby claim:
- I am emilssolmanis on github.
- I am esmupliks (https://keybase.io/esmupliks) on keybase.
- I have a public key whose fingerprint is 0E37 900F 3AA7 C7B5 33C7 FF63 CF43 8B91 83BC FD48
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function handle_request(code, data) | |
if code < 0 then | |
print("failed to post http") | |
do_it() | |
else | |
print("score, sleeping for 1 hour") | |
node.dsleep(4294967295, nil) | |
end | |
end |
{ | |
"_debug": [ | |
{ | |
"kwargs": {}, | |
"time": 1.8904321193695068, | |
"name": "get_impl:6cf3e692-2e98-45ae-bfd4-597c47851b0b", | |
"calls": [ | |
{ | |
"kwargs": {}, | |
"time": 0.5965301990509033, |
import urllib2 | |
import json | |
import sys | |
ROOT = 'http://localhost:4001/v2/keys' | |
def walk_this_way(path): | |
response = urllib2.urlopen(ROOT + path) |
$('.segment-result').each(function(i, flightModule) { | |
function getText(selector) { | |
return $(selector, flightModule).text().trim().replace(/\s+/g, ' '); | |
} | |
var srcCode = getText('[data-test-id=departureAirportCode]'); | |
var destCode = getText('[data-test-id=arrivalAirportCode]'); | |
var srcTime = getText('[data-test-id=departureTime]'); | |
var destTime = getText('[data-test-id=arrivalTime]'); | |
var duration = getText('[data-test-id=duration]').replace(',', ''); | |
var price = getText('.offer-price > span').replace(',', ''); |
# by Daniel Baggio, http://danielbaggio.blogspot.com/2009/03/python-mouse-move-in-5-lines-of-code.html | |
from Xlib import X, display | |
d = display.Display() | |
s = d.screen() | |
root = s.root | |
root.warp_pointer(300,300) | |
d.sync() |
# The temp file is needed to avoid infinite loop cases, Opera writes to the | |
# autosave file when it opens a new tab. While technically this shouldn't | |
# happen if you open from a remote host, better safe than sorry. | |
function open_tabs_from { | |
ssh $1 "fgrep -A2 \"history url\" ~/.opera/sessions/autosave.win | grep 0= | cut -d \"=\" -f 2-" > /tmp/opera.tabs | |
cat /tmp/opera.tabs | xargs -I{} opera -newtab {} | |
rm /tmp/opera.tabs | |
} |