Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar

Paul Hobson phobson

View GitHub Profile
@phobson
phobson / pdx_rain2.ipynb
Created December 15, 2015 02:28
Fetching data from hydra
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / kpdx.ipynb
Created December 8, 2015 05:08
PDX daily rainfall
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.
@phobson
phobson / travis_debug.md
Last active December 3, 2015 21:51 — forked from jedi4ever/gist:7677d62f1414c28a1a8c
Some notes on travisci remote debugging via ssh or screenshot or remote desktop of Mac VM builds

Debugging Travis Build Errors

Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac, sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build.

Enable remote ssh access to travisci build for debugging

@phobson
phobson / esri_errata.md
Created November 11, 2015 20:38
List of errors in Esri's arcpy and ArcGIS documentation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / ROS-Python.ipynb
Created October 15, 2015 22:06
Imputing non-detect data in Python and R
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / latex.py
Created October 13, 2015 01:19
context manager for compile latex documents
import subprocess
import glob
import os
class LaTeXDirectory(object):
""" Context manager to help compile latex docs from python.
Switches to the latex document's folder and remains there while
inside the manager. The present working directory is restored once
the context manager exits.
Building pygridgen-0.1-nppy35_2
Removing old build environment
Removing old work directory
BUILD START: pygridgen-0.1-nppy35_2
Fetching package metadata: ........
Solving package specifications: ............
The following NEW packages will be INSTALLED:
numpy: 1.9.3-py35_0 defaults
openssl: 1.0.1k-1 defaults
@phobson
phobson / distance.py
Created September 30, 2015 00:11
Silly spatial calc
import math
def point_to_point(point1, point2):
""" Distance between two points
Parameters
----------
point1, point2 : tuples (len = 2) of floats
Tuples of x/y pairs defining each point.