Skip to content

Instantly share code, notes, and snippets.

View dingzeyuli's full-sized avatar

Dingzeyu Li dingzeyuli

View GitHub Profile
lin = @(x) x;
sqr = @(x) x.^2;
cub = @(x) x.^3;
x = -pi/2:pi/1000:pi/2;
y1 = atan(lin(tan(x)));
y2 = atan(sqr(tan(x)));
y3 = atan(cub(tan(x)));
@dingzeyuli
dingzeyuli / tmux_local_install.sh
Last active October 22, 2016 14:02 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.6 -dPDFSETTINGS=/prepress -sOutputFile=compressed.pdf $1
# largest printer / prepress
# mid-size ebook
# smallest screen