This is an example of writing parameterized subject
blocks in MiniTest.
It also works with let
declarations.
" Highlight special chars | |
if exists("highlight_special_chars_loaded") | |
finish | |
endif | |
let highlight_special_chars_loaded = 1 | |
highlight HscWhitespace ctermbg=1 ctermfg=7 guibg=#403c41 guifg=White | |
highlight HscError ctermbg=1 ctermfg=7 guibg=Red guifg=White | |
highlight HscWarn ctermbg=3 ctermfg=7 guibg=#ffb964 guifg=#605958 |
This is an example of writing parameterized subject
blocks in MiniTest.
It also works with let
declarations.
[alias] | |
deploy = ! git checkout master && git tag-deploy && git push && git push --tags && git push production master | |
deploy-staging = ! git checkout develop && git tag-deploy staging && git push && git push --tags && git push staging develop:master | |
tag-deploy = ! sh -c 'git tag "${0:-production}-`date +%Y%m%d%H%M%S`-$USER"' |
#!/bin/bash | |
SEL="`xclip -o`" | |
URL="`curl -skIL "$SEL" | grep Location | sed 's/^Location: //'`" | |
notify-send "Expanded URL" "$URL" |
var defineClass = function(classDefinition) { | |
var constructor = function() { | |
if ("initialize" in this) this.initialize(arguments) | |
} | |
if (classDefinition) classDefinition.call(constructor.prototype, constructor) | |
return constructor | |
} |
OLD_WID=`xdotool getactivewindow | head -1` | |
WID=`xdotool search --name "Mozilla Firefox" | head -1` | |
xdotool windowactivate $WID | |
xdotool key F5 | |
xdotool windowactivate $OLD_WID |
[alias] | |
resolve = !sh -c 'git conflicts && $EDITOR $(git conflicts) +\"/<<<<\"' | |
conflicts = !sh -c 'git status -sb | grep ^UU | sed "s/UU\\ //"' |
build_package_tcmalloc_patch() { | |
patch source/distro/google-perftools-1.7/src/tcmalloc.cc ~/.rbenv/plugins/ruby-build/share/ruby-build/tcmalloc.patch | |
} | |
require_gcc | |
install_package "ruby-enterprise-1.8.7-2012.02" "http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz#8d086d2fe68a4c57ba76228e97fb3116" tcmalloc_patch ree_installer |
pidenv() { | |
local pid="$1" | |
tr '\000' '\n' < /proc/$pid/environ | |
} |
" Block/Line selection with mouse | |
noremap <M-LeftMouse> <4-LeftMouse> | |
inoremap <M-LeftMouse> <4-LeftMouse> | |
onoremap <M-LeftMouse> <C-C><4-LeftMouse> | |
noremap <M-LeftDrag> <LeftDrag> | |
inoremap <M-LeftDrag> <LeftDrag> | |
onoremap <M-LeftDrag> <C-C><LeftDrag> | |
noremap <S-LeftMouse> <3-LeftMouse> | |
inoremap <S-LeftMouse> <3-LeftMouse> |