This file contains hidden or 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
from django.conf import settings | |
from django.core.cache import parse_backend_uri | |
try: | |
import redis as redislib | |
except: | |
redislib = None | |
connections = {} |
This file contains hidden or 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
set statusline= " my status line contains: | |
set statusline+=%n: " - buffer number, followed by a colon | |
set statusline+=%<%f " - relative filename, truncated from the left | |
set statusline+=\ " - a space | |
set statusline+=%h " - [Help] if this is a help buffer | |
set statusline+=%m " - [+] if modified, [-] if not modifiable | |
set statusline+=%r " - [RO] if readonly | |
set statusline+=%2*%{HasLocalDir()}%* " [lcd] if :lcd has been used | |
set statusline+=\ " - a space | |
set statusline+=%1*%{TagInStatusLine()}%* " [current class/function] |
This file contains hidden or 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
s = query.Search(query.StringQuery('jetpack')) | |
s.facet.add_term_facet('_type') | |
r = es.search(s, 'flightdeck') |
This file contains hidden or 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
○ cat ~/.virtualenvs/postmkvirtualenv | |
proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}') | |
mkdir $HOME/Projects/$proj_name | |
add2virtualenv $HOME/Projects/$proj_name | |
cd $HOME/Projects/$proj_name | |
easy_install readline ipython | |
pip install -e git://github.com/jbalogh/check.git#egg=check Jinja2==2.3.1 \ | |
MySQL-python==1.2.3c1 lxml==2.2.6 PIL |
This file contains hidden or 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
__ | |
.' .7 .-._._ | |
." ." _._' ." ". | |
( { _." "` ,-. ' | |
`. `"" 6' .' ' & | |
"._ .'___..--..._ _.-" | |
"-..._ """ ""-.--" | |
; ,__, `. | |
j (oo)____ ; | |
.' (__) )\ j |
This file contains hidden or 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
span.closed { | |
background: red; | |
padding: 5px; | |
border-radius: 15px; | |
} |
This file contains hidden or 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
// uncheck share details | |
var checkbox = $('input[name=provideContact]'); | |
if (checkbox) { | |
checkbox.attr('checked', false); | |
checkbox.change(); | |
} | |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 13.0, | |
"rulers": | |
[ | |
79 | |
], | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, |
This file contains hidden or 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
var img = "http://i2.cdn.turner.com/si/2009/writers/bruce_martin/05/08/Danica/danica-patrick-milk.jpg" | |
$('a.videoClip').css('background', 'url("'+img+'") no-repeat scroll left -40px transparent').css('background-size', '105%'); |
This file contains hidden or 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
curl http://10.8.81.212:9200/input/_search\?pretty=true -d ' | |
{ | |
"query" : { | |
"matchAll" : {} | |
} | |
}' |