Skip to content

Instantly share code, notes, and snippets.

View BrooksPatton's full-sized avatar

Brooks Patton BrooksPatton

View GitHub Profile
inoremap jj <ESC>
set encoding=utf-8
set laststatus=2
let g:mustache_abbreviations = 1
syntax enable
au BufRead,BufNewFile *.hbs set filetype=handlebars
command E Ex
set nocompatible
let iCanHazNeoBundle=1
@stevedonovan
stevedonovan / shared.rs
Created April 14, 2017 13:49
An ergonomic way of saying Rc<RefCell>
use std::rc::Rc;
use std::cell::{RefCell,Ref, RefMut};
use std::ops::Deref;
use std::fmt;
#[derive(Clone)]
struct Shared<T> {
v: Rc<RefCell<T>>
}
@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

@eegrok
eegrok / mac-keycodes
Last active October 31, 2025 07:09
Mac virtual keycodes
from: http://www.meandmark.com/keycodes.html
with some additions from people in the comments, thanks :)
Virtual Keycodes for the Mac QWERTY Layout
Keycodes are in hexadecimal. A blank entry means either there is no key assigned to that keycode or I was unable to find the assigned key.
Keycode Key
0x00 A
0x01 S
0x02 D