Skip to content

Instantly share code, notes, and snippets.

@stites
stites / main.ml
Last active April 16, 2024 20:53 — forked from SHoltzen/main.ml
Homework #9 starter code
(************************************)
(* Exceptions and Testing Functions *)
(************************************)
exception Not_implemented ;;
exception Runtime ;;
(* Asserts that a function call throws a Runtime exception. *)
let assert_runtime (f: unit -> 'a): unit =
@stites
stites / lazynvm.sh
Created February 28, 2018 16:19 — forked from fl0w/lazynvm.sh
# lazyload nvm
# all props goes to http://broken-by.me/lazy-load-nvm/
# grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/
lazynvm() {
unset -f nvm node npm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
}
@stites
stites / shakeup.sh
Created November 15, 2017 17:21 — forked from mstksg/shakeup.sh
Generate a Shakefile scaffold
#!/bin/bash
SHAKEFILE=${1:-"Shakefile"}
if [ ! -e "$SHAKEFILE" ]; then
tee -a "$SHAKEFILE" << 'EOF' > /dev/null
import Development.Shake
opts = shakeOptions { shakeFiles = ".shake/"
@stites
stites / tmux-cheatsheet.markdown
Last active March 7, 2017 15:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

attach:

tmux attach  #  (or at, or a)