Skip to content

Instantly share code, notes, and snippets.

View evantravers's full-sized avatar
💭
Fooling around in elixir…

Evan Travers evantravers

💭
Fooling around in elixir…
View GitHub Profile

Workspace in tmux

I like to work using a separate tmux session for each active project/folder that I'm juggling. This script will either create or attach to a project based on it's name, using fasd to jump to the directory directly. The project will be named based on the basename of the folder, for easy switching using TMUX-s.

@tmiller
tmiller / pairings.rb
Last active August 29, 2015 13:56
Pairing Algorithm
require 'pp'
devs = %w{ Andrew Anthony Ben Matt Tom Zac }
devs << nil if devs.length.odd?
top, bottom = devs.each_slice(devs.length/2).to_a
pivot, *top = top
result = []
(devs.length-1).times do
top.unshift(bottom.shift)