Skip to content

Instantly share code, notes, and snippets.

@zacstewart
zacstewart / README.md
Last active Oct 21, 2019
Pair with all your friends on GitHub :DDDDD
View README.md

pair

Requires ngrok and gh-auth:

brew install ngrok
gem install github-auth
View keybase.md

Keybase proof

I hereby claim:

  • I am zacstewart on github.
  • I am zacstewart (https://keybase.io/zacstewart) on keybase.
  • I have a public key ASDyhMC1RbxHHDDE-PJJ695Beo2RavwsBOrBgitPYcRLowo

To claim this, I am signing this object:

View gist:3cdd8fca65275138e787
Running `target/debug/8bit-adventure`
ext_dt 0.00001922
dt 0.05
ext_dt 0.001740106
dt 0.05
ext_dt 0.001933184
dt 0.05
ext_dt 0.002147926
dt 0.05
ext_dt 0.002410486
View gist:517e2491e5d8b6c46a0f
Verifying that +zacstewart is my blockchain ID. https://onename.com/zacstewart
View keybase.md

Keybase proof

I hereby claim:

  • I am zacstewart on github.
  • I am zacstewart (https://keybase.io/zacstewart) on keybase.
  • I have a public key whose fingerprint is D831 13A7 6C15 9404 1A93 3690 3CDB F390 49AE 85B6

To claim this, I am signing this object:

@zacstewart
zacstewart / object_allocation_tracer.rb
Created Jul 15, 2015
Shitty Ruby Rack memory profiler
View object_allocation_tracer.rb
require 'objspace'
require 'set'
class ObjectAllocationTracer
include ObjectSpace
def initialize(app)
@app = app
@sources = Set.new
@traces = []
@zacstewart
zacstewart / tap_transformer_sklearn.py
Last active Nov 22, 2015
Example transformer for tapping into your Pipeline
View tap_transformer_sklearn.py
def TapTransformer(TransformerMixin):
def __init__(self, fn):
self.fn = fn
def transform(self, X, **transform_params):
self.fn(x)
return X
def fit(self, X, y=none, **fit_params):
return self
View gist:30f0d16399f49754038a
~/src $ CC=/usr/bin/gcc ruby-install ruby 2.1.3
>>> Installing ruby 2.1.3 into /Users/zacstewart/.rubies/ruby-2.1.3 ...
>>> Installing dependencies for ruby 2.1.3 ...
Warning: openssl-1.0.1j already installed
Warning: readline-6.3.8 already installed
Warning: libyaml-0.1.6 already installed
Warning: gdbm-1.11 already installed
Warning: libffi-3.0.13 already installed
>>> Downloading http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2 into /Users/zacstewart/src ...
--2014-10-22 10:26:16-- http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2
View rubymlkit.md

Ruby ML Kit

  • CLI tools for randomly sampling large files
  • Simple gradient decent regression
  • Simple logistic regression
View clear
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
iQIcBAABAgAGBQJTkHqyAAoJED2UUv+4gn6vbywP/jsEU84uEupejJghyIb00iz7
YDntxIaIA0cJqbYXwjo/UTMrHt+r1dMJ5iovB5FMclKHMLoA0WeU8dWyS5oP4klu
3/LVLhtDwdYqo4Rc6T9cwvf0uqUJFihsHacW39NC9bz5+o9Qk9kmqw5/IP3bOlOU
BLXoY+PU7j/+8vGgC26LEZgRxuVeBG0SL1jpg4hUg6qiFiUcdG1G3HUymbpLK5+m
vwTs0XO6KkIXXwlZW+XNGgm7EDSaoAqf/yFxFIQsCIZSpRsr1m5ndBr8FWhpq5xt
l082QoEe0JNwFVjZ5lcLrnrq6ZregsmVBgoTrL3yIIIkz8LAR+TRghSNTNULO/LI
UONxerCT67gVcxDGdrKVA8cYQVJHYXBoKiUFi2jAhHj29LwIgkqhUs9WJsDLB4Zh
You can’t perform that action at this time.