Skip to content

Instantly share code, notes, and snippets.

@ungood
ungood / tmux_cheatsheet.markdown
Created November 29, 2012 22:04 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

// Store a deck in a bit array by the following algorithm:
// value := pick[0];
// value = value * 51 + second pick
// value = value * 50 + third pick
// ..
// value = value * 1 + 52nd pick
// The first pick is pick[0]
BigInt StoreDeck(params int[] picks) {
BigInt value = pick[0];
for(int i = 1; i < picks.Length; i++) {
@ungood
ungood / spotit.py
Last active August 29, 2015 14:06 — forked from anonymous/spotit.py
import itertools
import argparse
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
class Card:
def __init__(self, symbols):
self.symbols = frozenset(symbols)
self.name = "".join(symbols)