Skip to content

Instantly share code, notes, and snippets.

@nicwest
nicwest / workman.vim
Last active August 29, 2015 14:16 — forked from MattWoelk/workman.vim
"A blatant workman ripoff of bmx 007's beautiful colemak version called 'colqer' http://www.vim.org/scripts/script.php?script_id=2865 It makes vim so that you can insert and Ex mode in the workman keyboard layout, but can do the rest in qwerty.
"usage: put it in ~/.vim/plugin/ as workman.vim
"press \; in normal mode to activate/deactivate it.
"Keyboard is qwerty
" we want workman in insert mode
function IMapColemak()
if s:imap_colemak == 0
noremap! q q
noremap! w d
@nicwest
nicwest / martingale
Created September 10, 2012 12:15 — forked from eknowles/martingale
martingale
import random
####################
# THE RULES
# 1. Play Roulette once a week for 3 hours for a year
# 2. Bring 500
# 3. Play Minimum bet on two tables on red
# 4a. If red continue to play minimum bet
# 4b. If black double bet (continue to double until red)
# 4c. If unable to double bet, reset bet to minimum