Skip to content

Instantly share code, notes, and snippets.

View aflaxman's full-sized avatar

Abraham Flaxman aflaxman

View GitHub Profile
@aflaxman
aflaxman / exp_sum_pymc.ipynb
Created November 6, 2012 18:58 — forked from Tillsten/exp_sum_pymc.py
Fit to an expontial sum in pymc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aflaxman
aflaxman / mpl_cfaces.py
Created November 9, 2012 01:12
Chernoff Faces in Python with Matplotlib
from pylab import *
def cface(ax, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18):
# x1 = height of upper face
# x2 = overlap of lower face
# x3 = half of vertical size of face
# x4 = width of upper face
# x5 = width of lower face
# x6 = length of nose
# x7 = vertical position of mouth
@aflaxman
aflaxman / sdm_diaper_delivery.ipynb
Created November 20, 2012 21:00
sdm_diaper_delivery
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aflaxman
aflaxman / milk_tree_learner.ipynb
Created November 28, 2012 01:24
milk_tree_learner
# to come
@aflaxman
aflaxman / .gitignore
Last active December 11, 2015 13:58 — forked from mbostock/.block
*~
@aflaxman
aflaxman / expected.json
Created April 23, 2013 04:03
vega bar stubs
{
"width": 400,
"height": 200,
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 10},
"data": [
{
"name": "table",
"values": [
{"x": 1, "y": 100}, {"x": 2, "y": 90},
{"x": 3, "y": 80}, {"x": 4, "y": 91},
@aflaxman
aflaxman / index.html
Last active December 17, 2015 19:59
Testing Gist as Editor
<!DOCTYPE html>
<html>
<header>
<meta charset="utf-8">
<style>
</style>
</header>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
import IPython.core.display
import matplotlib as mpl
def clean():
# set mpl defaults for nice display
mpl.rcParams['font.size'] = 12
mpl.rcParams['figure.figsize'] = (18, 6)
mpl.rcParams['lines.linewidth'] = 1
{
"metadata": {
"name": "2013_04_20b_hello_d3-vega-vincent"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@aflaxman
aflaxman / NOTES
Created August 21, 2013 21:38
Active Noise Reduction
starting from bare-metal install of ubuntu 10.04
================================================
sudo aptitude install git-core emacs23-nox
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy
sudo pip install pyaudio ipython
sudo pip install -U numpy
sudo pip install pandas