Skip to content

Instantly share code, notes, and snippets.

Matt Jones nuance

View GitHub Profile
View 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:

View gist:7490472
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
View gist:7145524
* */17 * * * say -v "whisper" poopin
View .tmux.conf
# 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
View ages.py
import random
ages = []
for _ in xrange(1000000):
age = 0
while random.random() > 0.01:
age += 1
ages.append(age)
View simulate_errorcodes.py
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])
You can’t perform that action at this time.