Skip to content

Instantly share code, notes, and snippets.

View purzelrakete's full-sized avatar

Rany Keddo purzelrakete

View GitHub Profile
# 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
[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
###################################################################
# 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)
@purzelrakete
purzelrakete / gist:97025
Created April 17, 2009 13:35
evented irb
#!/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(keiju@ruby-lang.org)
#
require "irb"
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:
__ __