Skip to content

Instantly share code, notes, and snippets.

Avatar

Jody Klymak jklymak

View GitHub Profile
@jklymak
jklymak / Notes5k.ipynb
Last active May 21, 2018
Notes 5k runs
View Notes5k.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / bachelor.py
Created May 9, 2018
bachelor mil example
View bachelor.py
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.cbook import get_sample_data
fname = get_sample_data('percent_bachelors_degrees_women_usa.csv',
asfileobj=False)
gender_degree_data = np.genfromtxt(fname, delimiter=',', names=True)
# These are the colors that will be used in the plot
@jklymak
jklymak / # hdf5 - 2018-05-03_14-04-12.txt
Created May 3, 2018
hdf5 on macOS 10.13.4 - Homebrew build logs
View # hdf5 - 2018-05-03_14-04-12.txt
Homebrew build logs for hdf5 on macOS 10.13.4
Build date: 2018-05-03 14:04:12
@jklymak
jklymak / # netcdf - 2017-07-10_15-49-19.txt
Created May 3, 2018
netcdf on macOS 10.13.4 - Homebrew build logs
View # netcdf - 2017-07-10_15-49-19.txt
Homebrew build logs for netcdf on macOS 10.13.4
Build date: 2017-07-10 15:49:19
View InstallPython.md

Install Python and friends

  1. Go to https://www.anaconda.com/distribution/ and download conda (Choose python 3.6 - 2.7 is end-of-life)
  2. when it asks to modify your path, let it. That will make ~/anaconda3/bin/python your python instead of the system python which is at /usr/bin/python.

That should be everything!

Running

Command line:

@jklymak
jklymak / PlotSlices.ipynb
Last active May 1, 2018
PlotSlices.ipynb
View PlotSlices.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ModelMaclane.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / usesetp.py
Last active Oct 16, 2017
Use setp to modify more than one axis at once....
View usesetp.py
fig, ax = plt.subplots(3,3)
plt.setp(ax[:,1:], 'yticklabels', '')
plt.setp(ax[:-1,:], 'xticklabels', '')
View RdiToNetcdf.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / IWRelationships.ipynb
Last active Sep 8, 2017
IWRelationships.ipynb
View IWRelationships.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.