Skip to content

Instantly share code, notes, and snippets.

@jaxbot
jaxbot / fizzbuzz.vim
Created January 7, 2014 03:59
FizzBuzz in VimL
let c = 1
while c <= 100
if eval("c % 15") == 0
echo "FizzBuzz"
elseif eval("c % 3") == 0
echo "Fizz"
elseif eval("c % 5") == 0
echo "Buzz"
else
echo c
@jaxbot
jaxbot / gist:6148496
Created August 4, 2013 00:11
My vimrc, pre-cleanup 8/3/13
" Must be the first line, apparently
set nocompatible
set encoding=utf-8
" Look
set background=dark
colorscheme twilight
set guifont=Source\ Code\ Pro
set number
set guioptions-=T " no toolbar
@jaxbot
jaxbot / gist:5748513
Created June 10, 2013 12:58
Block nginx from serving .git directories
location ~ /\.git {
deny all;
}
# or, all . directories/files in general (including .htaccess, etc)
location ~ /\. {
deny all;
}