Skip to content

Instantly share code, notes, and snippets.

View jirwin's full-sized avatar

Justin Gallardo jirwin

  • Oakland, California
View GitHub Profile
map <C-H> <C-W>h<C-W>_
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
map <C-L> <C-W>l<C-W>_
// jslint.js
// 2010-08-08
/*
Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
<select name="enterAddressCountryCode" class="enterAddressFormField" id="enterAddressCountryCode">
<option value="">--</option>
<option value="AF">Afghanistan</option>
<option value="AX">Aland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
sup
{
a be 1 bitch
slongas(a fearin 100)
b be 2 bitch
c be 0 bitch
slongas(b fearin a)
if (a videdby b time b sameas a)
propsta c bitch
fi
location ~* (\.jpg|\.png|\.css)$ {
valid_referers blocked mydomain.com www.mydomain.com;
if ($invalid_referer) {
return 444;
}
}
class USPhoneNumber(FancyValidator):
"""
Validates, and converts to ###-###-####, optionally with extension
(as ext.##...). Only support US phone numbers. See
InternationalPhoneNumber for support for that kind of phone number.
::
>>> p = USPhoneNumber()
mygrants()
{
mysql -B -N $@ -e "SELECT DISTINCT CONCAT(
'SHOW GRANTS FOR ''', user, '''@''', host, ''';'
) AS query FROM mysql.user" | \
mysql $@ | \
sed 's/\(GRANT .*\)/\1;/;s/^\(Grants for .*\)/## \1 ##/;/##/{x;p;x;}'
}
bg = tuple(x / 255.0 for x in bg)
bg_hls = colorsys.rgb_to_hls(*bg)
fg_hls = colorsys.hls_to_rgb(1, 1, 1)
syntax on " Syntax highlighting
set background=dark
color solarized
set nu " line numbers
set ai " auto indent
" use 4 true spaces for the tab character
set tabstop=4
set shiftwidth=4
set expandtab
"------------ editor behaviour block ------------------
<div class="container_12">
<div id="left" class="grid_8"></div>
<div id="right" class="grid_4"></div>
</div>