Skip to content

Instantly share code, notes, and snippets.

@fKunstner
fKunstner / main.tex
Created January 24, 2019 18:56
Dynamic page length in Latex
\documentclass[11pt]{article}
\input{oneSectionPerPage}
\usepackage{hyperref}
\usepackage{lipsum}
\title{Example of dynamic page length}
\author{}
\date{}
@fKunstner
fKunstner / README.md
Created December 22, 2018 07:35
Optimizing einsum formulas

Optimizing Einsum Formulas

opt_einsum is a neat library that can optimize eisum formulations on the fly, but can also be used to simplify formulas to find better structures.

The script eincheck.py shows an example run on

X = np.random.randn(16, 9, 676)
Y = np.random.randn(16, 32, 676)
np.einsum('bkl,bml,bkn,bmn->mk',  X, Y, X, Y)
@fKunstner
fKunstner / atom-math-md.md
Last active August 21, 2018 23:28
Setting up Atom as a `math-markdown` Note-Taking app

Setting up Atom as a math-markdown Note-Taking app

The goal is to tweak Atom to be the perfect note-taking editor in a math-heavy research environment.

  • Write in Markdown
  • With math support - Including global macros
  • And citation/bibliography support - taken from a bib file, e.g. managed by JabRef

Setup

@fKunstner
fKunstner / mathCmds.tex
Created August 9, 2018 06:19
Math Macro support in Sphinx
\newcommand{\vA}{\mathbf{A}}
\newcommand{\Exp}[2]{\mathop{\mathbb{E}}_{#1}\left[#2\right]}