I hereby claim:
- I am goerz on github.
- I am goerz (https://keybase.io/goerz) on keybase.
- I have a public key whose fingerprint is 1794 FF0B 42B3 3EAB EAC9 2C92 34A7 2F20 57A6 CAA6
To claim this, I am signing this object:
#!/usr/bin/env python | |
"""command line script that renames a bunch of Amtrak ticket PDF to a more | |
useful name. Relies on `pdftotext`.""" | |
import os | |
import re | |
import logging | |
from collections import namedtuple | |
from dateutil.parser import parse as parse_date | |
from glob import glob |
#!/usr/bin/perl -w | |
use strict; | |
# (c) 2010 Michael Goerz <[email protected]> | |
# This code is in the public domain | |
# Usage: | |
# combine_pm3dmap.pl infile.tikz infile.png | |
# replace infile.tikz with "combined" version |
import matplotlib.pylab as plt | |
import QDYN | |
import numpy as np | |
def plot_gspace(): | |
fig = plt.figure() | |
ax = fig.add_subplot(111, projection='3d') | |
g1_s = [] | |
g2_s = [] | |
g3_s = [] |
function FindProxyForURL(url, host) | |
{ | |
return "SOCKS 127.0.0.1:47962"; | |
} |
black = '#000000'; | |
red = '#F25A00'; // red | |
green = '#6AAF19'; // green | |
yellow = '#9F9F8F'; // yellow | |
blue = '#0225C7'; // blue | |
magenta = '#AE81FF'; // pink | |
cyan = '#28C6E4'; // cyan | |
white = '#ffffff'; // light gray | |
lightBlack = '#C2E8FF'; // medium gray | |
lightRed = '#FD971F'; // red |
def render_sympy_tree(expr): | |
"""Render the given Sympy Expression as a graphical tree, inside an IPython notebook""" | |
from sympy.printing.dot import dotprint | |
import tempfile | |
import subprocess | |
import os | |
from IPython.display import SVG | |
with tempfile.NamedTemporaryFile(mode='w', delete=False) as out_fh: | |
out_fh.write(dotprint(expr)) | |
subprocess.run(['/usr/bin/dot', '-Tsvg', out_fh.name, '-o', out_fh.name + ".svg"]) |
DBM type is 'dbm.dumb' | |
b'create_runfolder' -> {'_values_:': {}, 'checker:': 'MD5Checker', 'deps:': []} | |
b'update_runfolder:15' -> { './data/dicke1_QSL/rf_5nodes_T70/config': [ 1496164058.2700675, | |
4160, | |
'3bc659d4306b15b9d552615fa859a3f4'], | |
'./data/dicke1_QSL_1traj/rf_4nodes_T70/config': [ 1496337548.2762613, | |
3828, | |
'c7b1932539245e5999a92e061df12718'], | |
'_values_:': {}, | |
'checker:': 'MD5Checker', |
I hereby claim:
To claim this, I am signing this object:
This gist contains out.tex
, a tex file that adds a PDF outline ("bookmarks") to the freely available pdf file of the book
An Introduction to Statistical Learning with Applications in R, by Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani
http://www-bcf.usc.edu/~gareth/ISL/index.html
The bookmarks allow to navigate the contents of the book while reading it on a screen.