Skip to content

Instantly share code, notes, and snippets.

View kforeman's full-sized avatar

Kyle Foreman kforeman

View GitHub Profile
@kforeman
kforeman / 20170202 Two regression plots example.ipynb
Created February 3, 2017 03:10
20170202 Two regression plots example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kforeman
kforeman / 20170202 Joint regression plot example.ipynb
Created February 2, 2017 21:50
20170202 Joint regression plot example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kforeman
kforeman / Numpy performance.ipynb
Created January 26, 2017 20:43
Numpy performance example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kforeman
kforeman / 20170120 Multi-Country Correlated AR1 GMRF.ipynb
Last active January 20, 2017 23:29
20170120 Multi-Country Correlated AR1 GMRF.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name: kfor_dev
dependencies:
- _license=1.1=py35_1
- _nb_ext_conf=0.3.0=py35_0
- alabaster=0.7.9=py35_0
- anaconda-clean=1.0.0=py35_0
- anaconda-client=1.5.1=py35_0
- anaconda=custom=py35_0
- anaconda-navigator=1.3.1=py35_0
- appnope=0.1.0=py35_0
@kforeman
kforeman / chart-download.js
Created June 15, 2016 22:15
crowbar + png
// based off of:
// https://github.com/andyreagan/phantom-crowbar/blob/master/phantom-crowbar.js
// https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js
// and for a blog post about converting to png etc client side see
// http://willkoehler.net/2014/11/07/client-side-solution-for-downloading-highcharts-charts-as-images.html
function crowbar(svg) {
var source = '',
doctype = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
prefix = {
xmlns: 'http://www.w3.org/2000/xmlns/',