Skip to content

Instantly share code, notes, and snippets.

View walkable-tree.js
// flatten a tree of arbitrary depth and complexity
class WalkableTree {
constructor(data) { = data
*[Symbol.iterator]() {
for (let value of {
if (Array.isArray(value)) {
mikehaertl / gist:3258427
Created Aug 4, 2012
Learn you a Haskell - In a nutshell
View gist:3258427

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under

1. Introduction

  • Haskell is a functional programming language.

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
You can’t perform that action at this time.