made with esnextbin
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
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: | |
==> default: |
made with esnextbin
made with esnextbin
made with esnextbin
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:
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
from cffi import FFI | |
ffi = FFI() | |
ffi.cdef(""" | |
typedef long int time_t; | |
struct timespec { | |
time_t tv_sec; | |
long tv_nsec; |
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
# | |
# 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""" |
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
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!') |
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
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'): |
NewerOlder