Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar

Paul Hobson phobson

View GitHub Profile
  1. Increment the version number
    1. setup.py 2. docs/conf.py 3. conda recipes
  2. Tag an RC in github
  3. Create PR against the RC in the conda-forge feedstock
  4. Iterate with changes and new RCs in the feedstock PR
  5. Create a full release
  6. Change the conda-forge feedstock recipe to the release, squash and force-push to PR
  7. Once conda-forge CI is done, merge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow-monokai.tmTheme",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / conda_req.txt
Last active June 5, 2018 00:13
The split-apply-combine strategy applied to linear regression
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
cycler=0.10.0=py35_0
decorator=4.0.9=py35_0
ipykernel=4.3.1=py35_0
ipython=4.1.2=py35_0
ipython_genutils=0.1.0=py35_0
ipywidgets=4.1.1=py35_0
jinja2=2.8=py35_0
@phobson
phobson / wind_rose.ipynb
Last active March 3, 2024 07:17
Making a wind rose in pandas/matplotlib
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.
CREATE VIEW trigger_ps
AS
SELECT
loctype,
sampleloc,
sampledate,
watershed,
paving,
CASE
WHEN TCd > 0 AND DCd > 0 AND TSS > 0 THEN '='
import numpy
from scipy import stats
from matplotlib import pyplot
import seaborn
def plot_norm(mu, sigma):
example_norm = stats.norm(mu, sigma)
fig, ax = pyplot.subplots()
@phobson
phobson / no_dups.ipynb
Created December 15, 2015 20:42
upload only new values from one db to another
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.