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
# easy_install boto | |
# You will also need: | |
# - A .pem keyfile generated using the Amazon web interface to create new instances | |
# - The secret and access keys created from the | |
# The only pre-reqs are having created a keypair (.pem file) | |
# via the amazon web interface and knowing the AWS key and secret | |
# | |
# Usage: | |
# export AWS_ACCESS_KEY_ID='blahblah' | |
# export AWS_SECRET_ACCESS_KEY='blebleble' |
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
{ | |
category : "", // Required Single category from (http://opencivicdata.com/#categories-wg) | |
properties : {} // Required Common bin for domain specific properties from from (http://opencivicdata.com/#properties-wg) | |
start : "", // Optional RFC3339DateTime optional start date | |
end : "", // Optional RFC3339DateTime optional end date | |
geometry : {} // Optional Geojson location feature (http://geojson.org/geojson-spec.html) | |
} |
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
{ | |
category : "category_name", // Required Single category from (http://opencivicdata.com/#categories-wg) | |
meta : { // Optional: Simple Dublin Core Metadata Element Set | |
title : "", | |
creator : "", | |
subject : "", | |
description : "", | |
publisher : "", | |
contributor : "", | |
date : "", |
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
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
#1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/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
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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
$ node | |
> require('mapnik').fonts() | |
[ 'DejaVu Sans Bold', | |
'DejaVu Sans Bold Oblique', | |
'DejaVu Sans Book', | |
'DejaVu Sans Condensed', | |
'DejaVu Sans Condensed Bold', | |
'DejaVu Sans Condensed Bold Oblique', | |
'DejaVu Sans Condensed Oblique', | |
'DejaVu Sans ExtraLight', |
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
server { | |
listen 80; | |
server_name mydomain.edu localhost; | |
location /static { | |
alias /www/geonode/src/GeoNodePy/geonode/static_root; | |
} | |
#GEOSERVER |
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
sudo mkdir -p /Library/Frameworks/GDAL.framework/Versions/1.9/ | |
sudo ln -s /usr/local/lib/libgdal.dylib /Library/Frameworks/GDAL.framework/Versions/1.9/GDAL | |
sudo mkdir -p /Library/Frameworks/PROJ.framework/Versions/4/ | |
sudo ln -s /usr/local/Cellar/proj/4.8.0/lib/libproj.dylib /Library/Frameworks/PROJ.framework/Versions/4/PROJ | |
# did not work: sudo ln -s `pwd`/libgeos.dylib /Library/Frameworks/GEOS.framework/Versions/3/GEOS | |
# did work: | |
# $PWD is /usr/local/Cellar/geos/3.3.6/lib | |
sudo ln -s `pwd`/libgeos_c.1.dylib /Library/Frameworks/GEOS.framework/Versions/3/GEOS | |
sudo mkdir -p /Library/Frameworks/SQLite3.framework/Versions/3/ | |
sudo ln -s /usr/local/Cellar/sqlite/3.7.15/lib/libsqlite3.0.8.6.dylib /Library/Frameworks/SQLite3.framework/Versions/3/SQLite3 |
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
App.Router.map(function() { | |
this.resource('post', { path: '/posts/:post_id' }); | |
}); | |
App.PostRoute = Ember.Route.extend({ | |
model: function(params) { | |
return this.store.find('post', params.post_id); | |
} | |
}); |
OlderNewer