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
@font-face{font-family:'icomoon';src:url("http://seattletimes.com/css/2013/fonts/icomoon.eot");src:url("http://seattletimes.com/css/2013/fonts/icomoon.eot?#iefix") format("embedded-opentype"),url("http://seattletimes.com/css/2013/fonts/icomoon.svg#icomoon") format("svg"),url("http://seattletimes.com/css/2013/fonts/icomoon.woff") format("woff"),url("http://seattletimes.com/css/2013/fonts/icomoon.ttf") format("truetype");font-weight:normal;font-style:normal}[data-icon],[class^="icon-"]:before,.icon-square:before,.Internal:before,.Related_story:before,.icon-external:before,.External:before,.icon-photo:before,.Photograph:before,.Photo_Gallery:before,.icon-print:before,.Print:before,.icon-video:before,.Video:before,.King_Video:before,.AP_video:before,.Graphic_Animation:before,.icon-chart:before,.icon_character{font-family:'icomoon';speak:none;font-weight:normal;-webkit-font-smoothing:antialiased;color:#bc5c23;content:attr(data-icon)}[class^="icon-"]:before,.icon-square:before,.Internal:before,.Related_story:before |
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
fix projection if needed | |
ogr2ogr -t_srs EPSG:4326 output.shp input.shp | |
convert to geojson | |
ogr2ogr -f GeoJSON output.shp input.shp |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>homebrew.mxcl.postgresql</string> | |
<key>ProgramArguments</key> | |
<array> |
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
pg_ctl -D /usr/local/var/postgres9 -l /usr/local/var/postgres9/server.log start |
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
dropdb <name> | |
createdb <name> | |
django-admin.py syncdb | |
- loads db | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U dkramer -d migrate_test ~/Desktop/b009.dump | |
fake it |
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
dropdb <name> | |
createdb <name> | |
django-admin.py syncdb | |
## loads db | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U dkramer -d migrate_test ~/Desktop/b009.dump | |
fake it |
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
def atoi(text): | |
return int(text) if text.isdigit() else text | |
def natural_keys(name): | |
text = name['name'] | |
sortKey = [ atoi(c) for c in re.split('(\d+)', text) ] | |
try: | |
return sortKey[1],sortKey[0],sortKey[3] | |
except: |
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
Merge results into master | |
git push <app remote> master | |
heroku run bash --app <app-name> | |
python seatimes/manage.py syncdb | |
python seatimes/manage.py migrate people 0001 --fake | |
python seatimes/manage.py migrate legislators 0001 --fake |
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
<script type="text/javascript"> | |
var mediaQuery; | |
//checks for browser support ie < 10 no support | |
if(typeof window.matchMedia == 'function'){ | |
mediaQuery = window.matchMedia("(max-width: 767px)").matches; | |
}else{ | |
mediaQuery = false; | |
} | |
if (!mediaQuery) { |
OlderNewer