Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| (\ /) | |
| (O.o) | |
| (> <) Bunny approves these changes. |
| from PIL import Image, ImageDraw | |
| def main(): | |
| # Open the original image | |
| main = Image.open("12voltm.jpg") | |
| # Create a new image for the watermark with an alpha layer (RGBA) | |
| # the same size as the original image | |
| watermark = Image.new("RGBA", main.size) | |
| # Get an ImageDraw object so we can draw on the image |
| How We Made Our Maps | |
| http://meetupnyc.hackshackers.com/events/37680122/ | |
| Presentation Links | |
| http://censusmapmaker.com/draw/ | |
| http://redistrictinggame.org/launchgame.php?level=basic&mission=1 | |
| http://www.publicmapping.org/ |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
| # http://wildfish.com | |
| # add the ubuntu gis ppa | |
| sudo apt-get -y install python-software-properties | |
| sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
| sudo apt-get update |
| # Copyright (c) 2012, Ryan Gomba | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, this | |
| # list of conditions and the following disclaimer. | |
| # 2. Redistributions in binary form must reproduce the above copyright notice, | |
| # this list of conditions and the following disclaimer in the documentation |
| # Shamelessly stolen from https://github.com/newsapps/django-boundaryservice/blob/master/boundaryservice/tastyhacks.py | |
| from django.contrib.gis.db.models import GeometryField | |
| from django.utils import simplejson | |
| from tastypie.bundle import Bundle | |
| from tastypie.fields import ApiField, CharField | |
| from tastypie.resources import ModelResource | |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: