Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am cmansley on github.
* I am cmansley (https://keybase.io/cmansley) on keybase.
* I have a public key whose fingerprint is 67FD FE29 1E3C AFDD 6591 375F 8AA6 9BD5 71CA 52A1
To claim this, I am signing this object:
#!/usr/bin/env zsh
#
# Usage:
# Any arguments to this script are passed along to `catkin build`
#
# i.e.:
# ./race.zsh # Run with default number of jobs
# ./race.zsh -p 1 # Run with only one job
#
# Description:
@cmansley
cmansley / mbie.py
Created August 6, 2011 00:14
A simple verification of an optimization from ICML 2005 by Strehl and Littman
import math
import random
from cvxopt import matrix
from cvxopt import solvers
solvers.options['show_progress'] = False
def dot(T,V):
return sum([T[i]*V[i] for i in range(len(V))])
@cmansley
cmansley / grab.py
Created August 8, 2011 23:03
Open get the name of all yaml files in a directory
names = [x for x in os.listdir(samples_dir + "/left/") if ".yaml" in x]