Skip to content

Instantly share code, notes, and snippets.

View dreid's full-sized avatar
💭
Archived

dreid dreid

💭
Archived
View GitHub Profile
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
@dreid
dreid / esnextbin.md
Last active June 7, 2016 16:40
esnextbin sketch
@dreid
dreid / esnextbin.md
Created May 17, 2016 15:57
esnextbin sketch
@dreid
dreid / esnextbin.md
Last active May 6, 2016 03:46
esnextbin sketch
@dreid
dreid / esnextbin.md
Last active May 25, 2016 18:43
esnextbin sketch

Keybase proof

I hereby claim:

  • I am dreid on github.
  • I am dreid (https://keybase.io/dreid) on keybase.
  • I have a public key whose fingerprint is 0F83 CC87 B32F 482B C726 B58A 9FBF D8F4 DA89 6D74

To claim this, I am signing this object:

@dreid
dreid / rt.py
Created December 1, 2013 16:38
from cffi import FFI
ffi = FFI()
ffi.cdef("""
typedef long int time_t;
struct timespec {
time_t tv_sec;
long tv_nsec;
#
# This gist is released under Creative Commons Public Domain Dedication License CC0 1.0
# http://creativecommons.org/publicdomain/zero/1.0/
#
from twisted.internet import defer, reactor
class TimeoutError(Exception):
"""Raised when time expires in timeout decorator"""
from __future__ import print_function
import node
from twisted.internet.task import deferLater
@node.main
def main(reactor):
return deferLater(reactor, 3, print, 'Hello, World!')
from __future__ import print_function
from twisted.python._reflectpy3 import namedAny
from twisted.python.deprecate import _fullyQualifiedName
import inspect
import types
tests = []
for k, v in inspect.__dict__.items():
if k.startswith('is'):