I hereby claim:
- I am fitzgen on github.
- I am fitzgen (https://keybase.io/fitzgen) on keybase.
- I have a public key ASBSc69NuFfQncKT0KhfIXas2FWlq3cAMKHkYHiHr9MkCQo
To claim this, I am signing this object:
#!/usr/sbin/dtrace -Fs | |
pid$target::main*heap*Rooted*:entry{ printf("{"); } | |
pid$target::main*heap*Rooted*:return{ printf("}"); } | |
pid$target::main*eval*:entry{ printf("{"); } | |
pid$target::main*eval*:return{ printf("}"); } |
use std::{mem,ptr}; | |
fn box_map_in_place<T, F>(boxed: Box<T>, f: F) -> Box<T> where F: FnOnce(T) -> T { | |
unsafe { | |
let p : *mut T = mem::transmute(boxed); | |
ptr::write(p, f(ptr::read(p))); | |
return mem::transmute(p); | |
} | |
} |
class GenericViewMeta(type): | |
def __new__(mcs, name, bases, attrs): | |
cls = type.__new__(mcs, name, bases, attrs) | |
if hasattr(cls, "decorators"): | |
decorators = list(cls.decorators) | |
# Sort the decorators by order they would be applied if using the @ | |
# syntax. | |
decorators.reverse() | |
for d in decorators: | |
cls.__call__ = d(cls.__call__) |
sudo npm publish . | |
npm configfile /home/fitzgen/.npmrc | |
npm sudo true | |
npm cli [ 'publish', '.' ] | |
npm version 0.1.15 | |
npm publish [ '.' ] | |
npm readJson package.json | |
npm packTar . /usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz | |
npm exec tar "czf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--exclude" ".git" "wu.js" | |
npm exec tar "xzf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--strip" "1" "-C" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/pac\ |
sudo npm publish . | |
npm configfile /home/fitzgen/.npmrc | |
npm sudo true | |
npm cli [ 'publish', '.' ] | |
npm version 0.1.14 | |
npm publish [ '.' ] | |
npm readJson package.json | |
npm packTar . /usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz | |
npm exec tar "czf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--exclude" ".git" "wu.js" | |
npm exec tar "xzf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--strip" "1" "-C" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package" |
npm configfile /home/fitzgen/.npmrc | |
npm sudo true | |
npm cli [ 'publish', '.' ] | |
npm version 0.1.15 | |
npm publish [ '.' ] | |
npm readJson package.json | |
npm packTar . /usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz | |
npm exec tar "czf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--exclude" ".git" "wu.js" | |
npm exec tar "xzf" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/package.tgz" "--strip" "1" "-C" "/usr/local/lib/node/.npm/.cache/wu/0.1.1/pac\ | |
kage" |
from django import http | |
import operator | |
import pickle | |
def copy_pickleable(a, b): | |
for k, v in a.iteritems(): | |
try: | |
pickle.dumps(v) | |
b[k] = v | |
except TypeError: |
import pickle | |
# Simple generator that counts up to maximum, but you can set the counter by | |
# sending in new values. | |
def counter(maximum): | |
i = 0 | |
while i < maximum: | |
val = (yield i) | |
# If value provided, change counter | |
if val is not None: |
# DSL in grammar.coffee | |
o = (patternString, action, options) -> | |
patternString = patternString.replace /\s{2,}/g, ' ' | |
return [patternString, '$$ = $1;', options] unless action | |
action = if match = unwrap.exec action then match[1] else "(#{action}())" | |
action = action.replace /\bnew /g, '$&yy.' | |
action = action.replace /\b(?:Block\.wrap|extend)\b/g, 'yy.$&' | |
action = action.replace /(this\.\$)/g, '@' | |
console.log action | |
[patternString, "$$ = #{action};", options] |
I hereby claim:
To claim this, I am signing this object: