Skip to content

Instantly share code, notes, and snippets.

hagenw / pip-error.log
Last active April 10, 2018 10:39
pip error (pypa/pip/#4935)
Created temporary directory: /tmp/pip-install-jd1y17b6
Collecting git+
Created temporary directory: /tmp/pip-req-build-tyoiow_a
Cloning (to revision math_numfig) to ./pip-req-build-tyoiow_a
Running command git clone -q /tmp/pip-req-build-tyoiow_a
Running command git show-ref math_numfig
14ec302f3b73b0a4e177617ab72c3881fa786a74 refs/remotes/origin/math_numfig
Running command git rev-parse HEAD
Running command git fetch -q 14ec302f3b73b0a4e177617ab72c3881fa786a74
hagenw / katex_align.html
Last active November 24, 2017 14:34
Highlighting a problem with the aligned environment in KaTeX (
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="" type="text/css" />
hagenw /
Created September 28, 2017 09:06
Install Matlab Engine API for python without root permissions
# Go to $MATLABROOT/extern/engines/python and run the following line to build the python engine without root permissions.
# See
python build --build-base=$HOME/tmp/build install
hagenw /
Created September 14, 2017 21:35
Install the lossless png compressor zopflipng
git clone
cd zopfli/
make zopflipng
-e git+
draw_polar(expr,range) :=
block([theta_var: range[1]],
draw2d(background_color = black,
xtics = 'none,
ytics = 'none,
axis_top = false,
axis_bottom = false,
axis_left = false,
hagenw / narginchk.m
Last active December 17, 2015 16:59
narginchk() for Matlab <2011b
function narginchk(minargs, maxargs)
if (nargin ~= 2)
error('%s: Usage: narginchk(minargs, maxargs)',upper(mfilename));
elseif (~isnumeric (minargs) || ~isscalar (minargs))
error ('minargs must be a numeric scalar');
elseif (~isnumeric (maxargs) || ~isscalar (maxargs))
error ('maxargs must be a numeric scalar');
elseif (minargs > maxargs)
error ('minargs cannot be larger than maxargs')