Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info
like this: $ brew info postgresql
$ brew install python --universal
function MapLegendView(el, values, headerText, footerText){ | |
/* | |
Class to dynamically generate a legend for a given map | |
el: containing element | |
values: array of key, value objects | |
ex: var legendItems = [ | |
{text: 'text to display next to color', colorStr: 'color of legend item (hex preferred)'}, | |
] | |
you'll want your container element and map to be contained in the same parent element | |
and to position the containing element to float over the map like so: |
Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info
like this: $ brew info postgresql
$ brew install python --universal
"""Add user created_by and modified_by foreign key refs to any model automatically. | |
Almost entirely taken from https://github.com/Atomidata/django-audit-log/blob/master/audit_log/middleware.py""" | |
from django.db.models import signals | |
from django.utils.functional import curry | |
class WhodidMiddleware(object): | |
def process_request(self, request): | |
if not request.method in ('GET', 'HEAD', 'OPTIONS', 'TRACE'): | |
if hasattr(request, 'user') and request.user.is_authenticated(): | |
user = request.user |
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
/* | |
Crayola crayon colors | |
Compiled by @LATdatadesk | |
Source: http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors | |
*/ | |
// Standard colors | |
@almond: #EFDECD; | |
@antique_brass: #CD9575; |
import requests | |
scraper_urls = [ | |
'http://foo.net/TESTDIR/TEST.pdf', | |
'http://foo.net/TESTDIR/TEST2.pdf' | |
] | |
p_session = requests.session() | |
for surl in scraper_urls: | |
content = p_session.get(surl).content |
<span class="geoFind" id="geoFind">Just find me!</span> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="jquery-1.9.0.js" ></script> | |
<script src="handlebars-1.0.rc.2.js" ></script> | |
<script src="underscore-1.4.4.js" ></script> | |
<script src="backbone-0.9.10.js" ></script> |
Yeah, this all got outmoded when serious dependency problems with Tabula were removed. | |
No need to use this. Get Tabula directly. http://tabula.nerdpower.org/ | |