Skip to content

Instantly share code, notes, and snippets.

Avatar

Abraham Flaxman aflaxman

View GitHub Profile
View 2020_11_12d_pymc_latent_scaled_poisson.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2020_11_11a_pymc_spline_example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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 2015_09_10e_pymc3_with_nonlinear_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aflaxman
aflaxman / gist:287370
Created Jan 26, 2010
networkx-osm import open street map data as a networkx graph
View gist:287370
"""
Read graphs in Open Street Maps osm format
Based on osm.py from brianw's osmgeocode
http://github.com/brianw/osmgeocode, which is based on osm.py from
comes from Graphserver:
http://github.com/bmander/graphserver/tree/master and is copyright (c)
2007, Brandon Martin-Anderson under the BSD License
"""
View 2014_06_21a_pymc_bugs_compare.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2020_05_07a_covid19_parametric_death_redistribution_for_nyc_discontinuity.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aflaxman
aflaxman / sdc_sources.csv
Created Apr 24, 2020
Government-mandated social distancing by location and date
View sdc_sources.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 15 columns, instead of 14. in line 1.
name,country,admin1,Mass gathering restrictions,Stay at Home Order,Educational facilities closed,Initial business closures,Non-essential services closed,Travel severely limited,Source Mass gathering restrictions,Source Stay at Home Order,Source Educational facilities closed,Source Initial business closure,Source Non-essential services closed,Source Travel severely limited
Baden-Wurttemberg,Germany,Baden-Wurttemberg,full implementation,21.03.2020,17.03.2020,full implementation,21.03.2020,not implemented,https://stm.baden-wuerttemberg.de/fileadmin/redaktion/dateien/PDF/Coronainfos/200322_Rechtsverordnung_englisch.pdf,https://stm.baden-wuerttemberg.de/fileadmin/redaktion/dateien/PDF/Coronainfos/200322_Rechtsverordnung_englisch.pdf,https://stm.baden-wuerttemberg.de/fileadmin/redaktion/dateien/PDF/200317_StM_VO_IfSG_Corona.pdf,https://stm.baden-wuerttemberg.de/fileadmin/redaktion/dateien/PDF/Coronainfos/200322_Rechtsverordnung_englisch.pdf,https://stm.baden-wuerttemberg.de/fileadmin/redaktion/dateien/PDF/Coronainf
View 2020_04_04b_etl_ihme_projection_for_icl_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.