Skip to content

Instantly share code, notes, and snippets.

Avatar

Abraham Flaxman aflaxman

View GitHub Profile
@aflaxman
aflaxman / exp_sum_pymc.ipynb
Created Nov 6, 2012 — forked from Tillsten/exp_sum_pymc.py
Fit to an expontial sum in pymc
View exp_sum_pymc.ipynb
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 Nov 9, 2012
Chernoff Faces in Python with Matplotlib
View mpl_cfaces.py
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
View sdm_diaper_delivery.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View expected.json
{
"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 Dec 17, 2015
Testing Gist as Editor
View index.html
<!DOCTYPE html>
<html>
<header>
<meta charset="utf-8">
<style>
</style>
</header>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
View ipynb_style.py
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
View file1.py
{
"metadata": {
"name": "2013_04_20b_hello_d3-vega-vincent"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@aflaxman
aflaxman / NOTES
Created Aug 21, 2013
Active Noise Reduction
View NOTES
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