Skip to content

Instantly share code, notes, and snippets.

@zacstewart
zacstewart / Bitrated public key
Last active December 31, 2015 05:19
[email protected] Bitrated Bitcoin transaction arbitration GPG public key
02ec3b6fa309651799028cccc8d83112dc4d6666fcdfa6e30b50a5e15716e9274c
class BillsChart
MARGIN = {top: 10, bottom: 20, left: 40, right: 0}
constructor: (data, selector) ->
@width = $(selector).width() - MARGIN.left - MARGIN.right
@height = 400
@x = d3.time.scale().range([0, @width])
@y = d3.scale.linear().range([@height, 0])
@color = d3.scale.category10()

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 305C 4AE4 9C44 7D6F 2C02 6A1F 3D94 52FF B882 7EAF

To claim this, I am signing this object:

Last login: Wed Mar 19 14:02:46 on ttys003
➜ intersect git:(release/20140318) ✗ brew info imagemagick
imagemagick: stable 6.8.7-7 (bottled), HEAD
http://www.imagemagick.org
/usr/local/Cellar/imagemagick/6.8.7-0 (1435 files, 21M)
Built from source
/usr/local/Cellar/imagemagick/6.8.7-7 (1431 files, 20M) *
Poured from bottle
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/imagemagick.rb
==> Dependencies
-----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

Ruby ML Kit

  • CLI tools for randomly sampling large files
  • Simple gradient decent regression
  • Simple logistic regression
@zacstewart
zacstewart / gist:30f0d16399f49754038a
Last active August 29, 2015 14:07
How is Rubby formed?
~/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
@zacstewart
zacstewart / tap_transformer_sklearn.py
Last active November 22, 2015 12:33
Example transformer for tapping into your Pipeline
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
@zacstewart
zacstewart / object_allocation_tracer.rb
Created July 15, 2015 15:28
Shitty Ruby Rack memory profiler
require 'objspace'
require 'set'
class ObjectAllocationTracer
include ObjectSpace
def initialize(app)
@app = app
@sources = Set.new
@traces = []
@zacstewart
zacstewart / keybase.md
Created August 23, 2015 16:39
Keybase proof

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: