Skip to content

Instantly share code, notes, and snippets.

View mksh's full-sized avatar
🚲

mksh

🚲
  • Kyiv, Ukraine
  • 08:27 (UTC +02:00)
View GitHub Profile
@mksh
mksh / onlock.py
Created February 15, 2014 22:20 — forked from glyph/onlock.py
from __future__ import print_function
import os, sys, pipes
import objc
from Foundation import NSObject
from CoreFoundation import (
CFRunLoopRun, CFRunLoopStop, CFFileDescriptorCreate,
CFFileDescriptorCreateRunLoopSource, CFRunLoopAddSource,
@mksh
mksh / gist:5642769
Last active December 17, 2015 16:59 — forked from anonymous/gist:5642763
from zmq.eventloop import ioloop
ioloop.install()
from tornado.httpclient import AsyncHTTPClient
from tornado import gen
def handle_request(response):
if response.error:
print "Error:", response.error
else: