Skip to content

Instantly share code, notes, and snippets.

View dotancohen's full-sized avatar

Dotan Cohen dotancohen

View GitHub Profile
@dotancohen
dotancohen / php-lint-git.sh
Last active July 3, 2018 12:04 — forked from tony4d/php-lint-git.sh
PHP lint all files added or modified locally
for i in $(git status -s | grep '^\s*A\|^\s*M' | sed -e 's/^.* //'); do php -l $i; done
@dotancohen
dotancohen / vim-macros
Last active December 19, 2015 13:39
A collection of useful VIM macros.
" Change an HTML select format line to a PHP assosiative-array style line
0/value<CR>f"l"ayi"f>l"zyitS'<C-r>a<C-o>A => '<C-r>z<C-o>A,<ESC>0<ESC>