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
A T | |
B C | |
C E | |
D X | |
B C | |
A T | |
B C |
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
$('ul.nav').children('li').removeClass('active'); | |
var mosquitoLocation = window.location.href.split("/")[3]; | |
var mosquitoTarget = mosquitoLocation.charAt(0).toUpperCase() + mosquitoLocation.slice(1); | |
$("a:contains('" + mosquitoTarget + "')").parent().addClass('active'); |
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
<script type="text/javascript"> | |
$('ul.nav').children('li').removeClass('active'); | |
var mosquitoLocation = window.location.href.split("/")[3]; | |
var mosquitoTarget = mosquitoLocation.charAt(0).toUpperCase() + mosquitoLocation.slice(1); | |
$("a:contains('" + mosquitoTarget + "')").parent().addClass('active'); | |
</script> |
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
$( document ).ready( function(){ | |
$.getJSON( '/js/main.json', function( data ) { | |
function showNav() { | |
var nav = []; | |
$.each( data, function( key, val ) { | |
nav.push( '<li><a href=#' + key + '>' + key + '</a></li>' ); | |
}); | |
$( '.nav' ).html( nav.join( ' ' ) ); | |
} |
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
#!/usr/bin/env python | |
import sys | |
sys.path.append("./my_new_env/lib/python2.6/site-packages") | |
import requests | |
import re | |
print "Content-type: text/html\n" | |
r = requests.get('http://daycalc.appspot.com/03/31/2013') | |
m = re.search('<span class=\"du\">(.+?)days', r.text) | |
if m: | |
found = m.group(1) |
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
git log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' |
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
# this is my list of dictionaries | |
my_list_of_dicts = get_array_of_dictionaries() | |
# add dict as first element to be header | |
header = {} | |
for k,v in my_list_of_dicts[0].items(): | |
header[k] = k | |
my_list_of_dicts.insert(0,header) | |
# iterate through my_list_of_dicts |
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
#!/usr/bin/env python | |
import os | |
old_file = open(os.path.join(os.path.realpath(os.path.join(os.getcwd(), | |
os.path.dirname(__file__))), 'old_file.txt')); | |
new_file = open(os.path.join(os.path.realpath(os.path.join(os.getcwd(), | |
os.path.dirname(__file__))), 'new_file.txt'), 'w'); |
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
Attempting to define my necessary digital tool set if on a deserted island. | |
List goes from lower to higher level tools. | |
Linux | |
Vim | |
Vim Nerdtree | |
Git | |
Mutt | |
Weechat |
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: http://pragdave.me/blog/2014/03/04/time-to-kill-agile/ | |
Individuals and Interactions - over - Processes and Tools | |
Working Software - over - Comprehensive Documentation | |
Customer Collaboration - over - Contract Negotiation, and | |
Responding to Change - over - Following a Plan | |
What to do: | |
Find out where you are |