Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar

Paul Hobson phobson

View GitHub Profile
@phobson
phobson / bad_resids.ipynb
Created February 5, 2017 20:59
Bad bootstrapping of a residuals
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
lib/mpl_toolkits/tests/test_mplot3d.py::test_mixedsubplots[0-mixedsubplot-svg]
lib/matplotlib/tests/test_mathtext.py::test_mathfont_stix_18
lib/matplotlib/tests/test_axes.py::test_formatter_ticker[1-formatter_ticker_002-pdf]
@phobson
phobson / LICENSE
Last active December 21, 2016 21:30
Iris data, yada yada
public domain
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
H:\>activate mplbeta
(mplbeta) H:\>conda install matplotlib -vv > conda_install.log
DEBUG conda.cli.main:_main(142): verbosity set to 2
DEBUG conda.models.channel:__init__(140): making channel object for url: https://repo.continuum.io/pkgs/free/win-64/alabaster-0.7.9-py35_0.tar.bz2
DEBUG conda.common.url:path_to_url(26): C:\Users\phobson\Miniconda3\conda-bld converted to file:///C:/Users/phobson/Miniconda3/conda-bld
DEBUG conda.models.channel:__init__(140): making channel object for url: file:///C:/Users/phobson/Miniconda3/conda-bld
@phobson
phobson / bs.js
Last active September 30, 2016 01:30
Bootstrapping Stats in Python and JS
var jStat = require('jStat').jStat;
function make_bs_samples(somearray, num_iter) {
var all_samples = [];
for (var ii = num_iter - 1; ii >= 0; ii--) {
var this_sample = [];
for (var jj = somearray.length - 1; jj >= 0; jj--) {
var index = Math.floor(Math.random() * somearray.length);
@phobson
phobson / owyhee.geojson
Last active September 7, 2016 16:40
Owyhee
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / tires.ipynb
Last active August 31, 2016 04:37
Taking the MTB tire size argument to Jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / affine.ipynb
Last active August 26, 2016 19:18
Affine Transforms in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / flow.py
Last active November 16, 2020 18:09
Arcpy vs Geopandas
import sys
import geopandas
from helpers import width, peak_flow
def flow_column_name(return_period):
return "Q{:d}".format(int(float(return_period) * 10))
@phobson
phobson / ROS.ipynb
Last active August 10, 2016 18:02
Sort function for regressing on order statistics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.