This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* (\.jpg|\.png|\.css)$ { | |
valid_referers blocked mydomain.com www.mydomain.com; | |
if ($invalid_referer) { | |
return 444; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container_12"> | |
<div id="left" class="grid_8"></div> | |
<div id="right" class="grid_4"></div> | |
</div> |