Skip to content

Instantly share code, notes, and snippets.

View adriancarriger's full-sized avatar
:octocat:

Adrian Carriger adriancarriger

:octocat:
View GitHub Profile
@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

@yoshiokatsuneo
yoshiokatsuneo / fibonacci.js
Created March 8, 2012 09:21
fibonacci in javascript (O(log(N)))
function multiply_matrix(a, b)
{
var c = new Array;
for(y=0;y<a.length;y++){
c[y] = new Array;
for(x=0;x<b[0].length;x++){
sum = 0;
for(i=0;i<a[0].length;i++){
sum += a[y][i] * b[i][x];
}