Skip to content

Instantly share code, notes, and snippets.

View goerz's full-sized avatar

Michael Goerz goerz

View GitHub Profile
@goerz
goerz / Elements of Statistical Learning.md
Last active June 21, 2024 04:08
PDF bookmarks for "Hastie, Tibshirani, Friedman - The Elements of Statistical Learning" (LaTeX)

This gist contains out.tex, a tex file that adds a PDF outline ("bookmarks") to the freely available pdf file of the book

The Elements of Statistical Learning (2nd ed), by Trevor Hastie, Robert Tibshirani, and Jerome Friedman

https://web.stanford.edu/~hastie/ElemStatLearn/

The bookmarks allow to navigate the contents of the book while reading it on a screen.

Usage

@goerz
goerz / An Introduction to Statistical Learning.md
Last active September 7, 2020 08:27
PDF bookmarks for "James, Witten, Hastie, Tibshirani - An Introduction to Statistical Learning" (LaTeX)

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.

Keybase proof

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:

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',
@goerz
goerz / render_sympy_tree.py
Created March 28, 2017 17:55
Render Sympy Expression as graphical tree inside IPython notebook
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"])
@goerz
goerz / TLS_dissipator_superop.ipynb
Last active January 24, 2017 19:27
The Dissipator of a Two-Level-System as an Explicit Superoperator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@goerz
goerz / monokai_improved.js
Last active December 28, 2016 07:07
Blink color scheme
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
@goerz
goerz / proxy.pac
Last active October 4, 2016 18:28
proxy.pac
function FindProxyForURL(url, host)
{
return "SOCKS 127.0.0.1:47962";
}
@goerz
goerz / plot_gspace.py
Created September 12, 2016 19:59
Plot of the Local Invariants of Two-Qubit gates
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 = []
@goerz
goerz / combine_pm3dmap.pl
Created March 9, 2016 16:04
Creating Combined tikz/png Plots
#!/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