Skip to content

Instantly share code, notes, and snippets.

Avatar

Jody Klymak jklymak

View GitHub Profile
@jklymak
jklymak / markdown-to-email
Last active Oct 31, 2018 — forked from cleverdevil/markdown-to-email
markdown-to-emailA simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
View markdown-to-email
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---
@jklymak
jklymak / bookmarks.txt
Last active Jul 15, 2018
Merge pdfs with bookmarks!
View bookmarks.txt
0 "Cover Page" 1 open
0 "Nomination Letter" 2
0 "Referee Letters" 3
1 "Writer 1" 3
1 "Writer 2" 5
0 "CV" 7
1 "Education and Training" 7
1 "Degrees" 7
1 "Postdoctoral experience" 7
1 "Academic positions" 7
@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
@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 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:

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', '')