Skip to content

Instantly share code, notes, and snippets.

View MogwaiMomo's full-sized avatar

Momoko Price MogwaiMomo

View GitHub Profile
@MogwaiMomo
MogwaiMomo / .gitignore
Last active February 6, 2020 17:17 — forked from octocat/.gitignore
Some common .gitignore configurations
# Documents #
###################
*.pdf
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
@MogwaiMomo
MogwaiMomo / PIP-test.py
Created July 12, 2012 18:08
Point in polygon test for Toronto Wards
import json
import csv
def point_inside_polygon(x,y,poly): # determine if a point is inside a given polygon or not
# Polygon is a list of (x,y) pairs.
n = len(poly)
inside = False