Skip to content

Instantly share code, notes, and snippets.

-----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
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

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:

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()
@zacstewart
zacstewart / Bitrated public key
Last active December 31, 2015 05:19
arbitration@zacstewart.com Bitrated Bitcoin transaction arbitration GPG public key
02ec3b6fa309651799028cccc8d83112dc4d6666fcdfa6e30b50a5e15716e9274c
@zacstewart
zacstewart / command_line_arguments.rb
Created September 19, 2013 17:03
Stubbing command line arguments in ruby
module CommandLineArguments
def argv
ARGV
end
end
>> IF = -> b { b }
=> #<Proc:0x007fb4e4049cc8 (lambda)>
>> LEFT = -> p { p[-> x { -> y { x } } ] }
=> #<Proc:0x007fb4e403d680 (lambda)>
>> RIGHT = -> p { p[-> x { -> y { y } } ] }
=> #<Proc:0x007fb4e4028ff0 (lambda)>
>> IS_EMPTY = LEFT
@zacstewart
zacstewart / gist:6000932
Created July 15, 2013 15:36
Linear kernel matrix inversion
>>> K = X.dot(X.transpose())
>>> K
array([[ 2, 3, 3, 5, 5, 6],
[ 3, 5, 4, 8, 7, 9],
[ 3, 4, 5, 7, 8, 9],
[ 5, 8, 7, 13, 12, 15],
[ 5, 7, 8, 12, 13, 15],
[ 6, 9, 9, 15, 15, 18]])
>>> np.linalg.inv(K)
Traceback (most recent call last):
data/H1/Tagged_Training_04_13_1334300401.mat
data/H1/Tagged_Training_10_22_1350889201.mat
data/H1/Tagged_Training_10_23_1350975601.mat
data/H1/Tagged_Training_10_24_1351062001.mat
0-length event:
36,Trash Compactor,1351104180,1351104180
0-length event:
36,Trash Compactor,1351104300,1351104300
0-length event:
36,Trash Compactor,1351104360,1351104360