Skip to content

Instantly share code, notes, and snippets.

@nuance
nuance / keybase.md
Created March 13, 2015 17:10
keybase.md

Keybase proof

I hereby claim:

  • I am nuance on github.
  • I am nuance (https://keybase.io/nuance) on keybase.
  • I have a public key whose fingerprint is E566 9D1F A4BE 253B 54B9 8AB9 3081 48E2 367F 1F6B

To claim this, I am signing this object:

cat datasets/auto_mpg.csv | python csv2vw.py car_name mpg > auto_mpg.vw
cat auto_mpg.vw | vw -f auto_mpg.sgd --sgd --loss_function=squared
cat auto_mpg.vw | vw -kc -f auto_mpg.sgd --sgd --passes 10 --loss_function=squared
cat auto_mpg.vw | vw -kc -f auto_mpg.sgd --sgd --passes 10 --loss_function=squared
cat auto_mpg.vw | vw -kc -f auto_mpg.bfgs --bfgs --hessian_on --passes 100 --loss_function=squared
cat auto_mpg.vw | vw -kc -i auto_mpg.sgd -f auto_mpg.hybrid --bfgs --hessian_on --passes 100 --loss_function=squared
head -n 350 auto_mpg.vw > auto_mpg.vw.train
tail -n 48 auto_mpg.vw > auto_mpg.vw.test
* */17 * * * say -v "whisper" poopin
@nuance
nuance / .tmux.conf
Last active December 22, 2015 20:59
# First remove *all* keybindings
unbind-key -a
# Now reinsert all the regular tmux keys
bind-key C-b send-prefix
bind-key C-o rotate-window
bind-key C-z suspend-client
bind-key Space next-layout
bind-key ! break-pane
bind-key '"' split-window
bind-key '#' list-buffers
@nuance
nuance / ages.py
Created January 9, 2013 18:50 — forked from anonymous/ages.py
import random
ages = []
for _ in xrange(1000000):
age = 0
while random.random() > 0.01:
age += 1
ages.append(age)
import httplib
import web
urls = ("/(.+)", "http_err")
app = web.application(urls, globals())
class http_err:
def GET(self, err_code):
err_code = int(err_code)
response = "%d %s" % (err_code, httplib.responses[err_code])