Skip to content

Instantly share code, notes, and snippets.

@jbwhit
jbwhit / # automation - 2016-09-20_14-40-48.txt
Created September 20, 2016 22:01
automation on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for automation on macOS 10.11.6
Build date: 2016-09-20 14:40:48
@jbwhit
jbwhit / a-problem.ipynb
Last active September 7, 2016 04:13
Something has gone wrong, here is a minimum (not)-working example. The top is the failure in a Jupyter notebook; the bottom file is the installation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6.258113587267615912e+03 3.931454234930131797e-03 -3.926501081758206751e-03
6.258140724533569482e+03 5.700400599615185193e-03 -5.695357895812987875e-03
6.258167861917198934e+03 -1.910863961985542758e-02 1.911377276713767392e-02
6.258194999418505176e+03 2.727114697218313566e-03 -2.721889471251378104e-03
6.258222137037488210e+03 5.522115735531407665e-03 -5.516796273862097956e-03
6.258249274774148944e+03 -6.837686370450013484e-03 6.843102550134077394e-03
6.258276412628488288e+03 1.073295997916567934e-02 -1.072744439924019216e-02
6.258303550600506242e+03 1.717148043567995330e-02 -1.716586263253182948e-02
6.258330688690204624e+03 -3.305773816682400223e-03 3.311496787465022153e-03
6.258357826897581617e+03 1.270592765964484450e-02 -1.270009645751350724e-02
@jbwhit
jbwhit / automatic-voigt-profile-starting-point.ipynb
Last active August 29, 2016 20:33
For AstroHackWeek hack proposal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
# ls colors, see: http://www.linux-sxs.org/housekeeping/lscolors.html
# Reset
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
@jbwhit
jbwhit / header_to_pkl.py
Last active June 12, 2016 04:27
Changing .header files into .pkl files by stripping out the pieces that rely on pyfits.
import cPickle as pickle
# cd /Users/jwhitmore/Desktop/Research/Projects/thar-attached/data/
import gzip
import pandas as pd
from glob import glob
def clean_headerfile(header_dict):
clean_file = {}
for key, value in header_dict.iteritems():
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbwhit
jbwhit / pymc3-bug-report.ipynb
Last active July 21, 2016 18:37
Problem with Student T distribution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbwhit
jbwhit / Problems-jointplot-kde.ipynb
Last active February 3, 2016 22:04
Problem with seaborn's jointplot kde implementation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.