Skip to content

Instantly share code, notes, and snippets.

View sam-artuso's full-sized avatar
👨‍💻
Hacking away

Sam Artuso sam-artuso

👨‍💻
Hacking away
View GitHub Profile
// flatten a tree of arbitrary depth and complexity
class WalkableTree {
constructor(data) {
this.data = data
}
*[Symbol.iterator]() {
for (let value of this.data) {
if (Array.isArray(value)) {
@mikehaertl
mikehaertl / gist:3258427
Created August 4, 2012 15:40
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

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