This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi guys, | |
i'm seeing a few spotify invites going out, looking people over the shoulder, and i thought i'd take this opportunity to say that i.. love.. spotify. | |
i've been on your waiting list ever since XXXXXXXXXXXX mentioned you, maybe 18 months ago. i would _SO_ love an invite. i've been told the only way to get an invite is to buy you guys beer. listen, i'll have it fed-exed into your office, A-S-A-P! | |
look, it's me, doing an elaborate handstand: | |
__ __ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
# | |
# irb.rb - intaractive ruby | |
# $Release Version: 0.9.5 $ | |
# $Revision: 11708 $ | |
# $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $ | |
# by Keiju ISHITSUKA([email protected]) | |
# | |
require "irb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################### | |
# Jamis Buck's Tricks | |
################################################################### | |
define rb_bt | |
set $ary = (int)backtrace(-1) | |
set $count = *($ary+8) | |
set $index = 0 | |
while $index < $count | |
x/1s *((int)rb_ary_entry($ary, $index)+12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = "checkout" | |
ci = "commit" | |
unmerge = "reset --hard ORIG_HEAD" | |
track = "branch --track" | |
unstage = reset HEAD | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# functions | |
sigmoid(x) = 1 ./ (1 + exp.(-x)) | |
relu(x) = max.(0, x) | |
predict(x, A, B) = sigmoid(B * relu(A * x)) | |
# training data | |
X = [ | |
1 0 1 1 | |
0 1 0 1 | |
0 1 0 0 |