I hereby claim:
- I am nilp0inter on github.
- I am nilp0inter (https://keybase.io/nilp0inter) on keybase.
- I have a public key ASCWHPy74-j6RBcLmM5GKoWVhhEtQjocncvd4I45XV45lgo
To claim this, I am signing this object:
import sys | |
BAD_VERSIONS = [ | |
(2, 4), | |
(2, 5), | |
(2, 6) ] | |
TRANSLATE_TEXT = sys.version_info[:2] in BAD_VERSIONS |
class Gray: | |
def __init__(self, length): | |
self.length = length | |
def _right(self, n): | |
if n == 1: | |
yield (0,) | |
yield (1,) | |
else: | |
for s in Gray(n-1): |
class Gray: | |
def __init__(self, length): | |
self.length = length | |
def _gen(self, start, end, n): | |
if n == 1: | |
yield (start, ) | |
yield (end, ) | |
else: | |
for s in Gray(n-1): |
# -*- coding: utf-8 -*- | |
"""magics for using blockdiag.com modules with IPython Notebook | |
The module provides magics: %%actdiag, %%blockdiag, %%nwdiag, %%seqdiag, %%packetdiag, %%rackdiag | |
Sample usage (in IPython cell): | |
%%blockdiag | |
{ | |
A -> B -> C; |
import asyncio | |
import sys | |
import os | |
LOOP = asyncio.get_event_loop() | |
class AsyncFile: | |
def __init__(self, filename): | |
self.filename = filename |
function workon | |
. ~/Envs/$argv[1]/bin/activate.fish | |
if [ -f ~/Envs/$argv[1]/.project ] | |
cd (cat ~/Envs/$argv[1]/.project) | |
end | |
end |
#lang 2d racket | |
(require 2d/match) | |
(define (fizz? n) | |
(= 0 (modulo n 5))) | |
(define (buzz? n) | |
(= 0 (modulo n 3))) |
from experta import * | |
import types | |
class ReturningEngine(KnowledgeEngine): | |
def run(self, steps=float('inf'), generate=False): | |
if not generate: | |
to_return = list() | |
for rhs in self._run_activations(steps=steps): | |
res = rhs() |
There are 24 handle(s) keeping the process running | |
# TTYWRAP | |
(unknown stack trace) | |
# DNSCHANNEL | |
(unknown stack trace) | |
# TickObject | |
/home/nil/Project/nixpkgs/node_modules/readable-stream/lib/_stream_readable.js:905 - process.nextTick(resume_, stream, state); |
I hereby claim:
To claim this, I am signing this object: