Skip to content

Instantly share code, notes, and snippets.

View NickHeiner's full-sized avatar
💭
Wubba lubba dub dub!!

Nick Heiner NickHeiner

💭
Wubba lubba dub dub!!
View GitHub Profile

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.

@NickHeiner
NickHeiner / Queue.ml
Created April 29, 2012 22:54 — forked from 23Skidoo/Queue.ml
Purely functional queue in Ocaml
(* Nick Heiner <nth23@cornell.edu> *)
(* Adapted from https://gist.github.com/1347308 *)
(* The func_ prefix is to avoid confusion with OCaml's standard Queue. *)
(* from F# *)
let (|>) g f = f g
type 'a func_queue = Func_Queue of 'a list * 'a list
let empty = Func_Queue ([], [])