Skip to content

Instantly share code, notes, and snippets.

View reinvented's full-sized avatar

Peter Rukavina reinvented

View GitHub Profile
@reinvented
reinvented / pei-schools.geojson
Created August 13, 2013 01:52
Public schools in Prince Edward Island.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / map.geojson
Created August 13, 2013 14:51
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / youngfolk.geojson
Created August 13, 2013 15:00
Where is Youngfolk & The Kettle Black in Charlottetown?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / map.geojson
Created August 13, 2013 15:59
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / map.geojson
Created August 13, 2013 16:30
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / map.geojson
Created August 14, 2013 20:56
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / map.geojson
Created August 17, 2013 23:32
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reinvented
reinvented / get-iwmc-data-pei.sh
Created August 24, 2013 17:15
Shell script to grab Prince Edward Island Civic Address data from www.gov.pe.ca that includes Island Waste Management data. The last two fields are "wastecompost" and "bluebag" – you're on your own for figuring out what these fields actually represent, although the Civic Address Locator (http://www.gov.pe.ca/civicaddress/locator) can probably gi…
wget "http://www.gov.pe.ca/civicaddress/download/dodownload.php3?county=QUN&downloadformat=tab&downloadfields[]=street_no&downloadfields[]=street_nm&downloadfields[]=comm_nm&downloadfields[]=apt_no&downloadfields[]=county&downloadfields[]=latitude&downloadfields[]=longitude&downloadfields[]=pid&downloadfields[]=unique_id&downloadfields[]=wastecompost&downloadfields[]=bluebag"
wget "http://www.gov.pe.ca/civicaddress/download/dodownload.php3?county=KNS&downloadformat=tab&downloadfields[]=street_no&downloadfields[]=street_nm&downloadfields[]=comm_nm&downloadfields[]=apt_no&downloadfields[]=county&downloadfields[]=latitude&downloadfields[]=longitude&downloadfields[]=pid&downloadfields[]=unique_id&downloadfields[]=wastecompost&downloadfields[]=bluebag"
wget "http://www.gov.pe.ca/civicaddress/download/dodownload.php3?county=PRN&downloadformat=tab&downloadfields[]=street_no&downloadfields[]=street_nm&downloadfields[]=comm_nm&downloadfields[]=apt_no&downloadfields[]=county&downloadfields[]=latitude&downloadfields[]=l
@reinvented
reinvented / backtitude-server.php
Created August 20, 2014 20:23
A small PHP script that can act as the server-side for the Androind geolocation-tracking app Backtitude.
<?php
$mysqli = new mysqli("localhost", "loc", "[password redacted]", "loc");
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
if ($_POST) {
@reinvented
reinvented / amr.py
Last active August 29, 2015 14:06
TIny script to log data from a Grid Insight AMRUSB-1
#!/usr/bin/env python
import serial, sys
from time import strftime
print "Connecting to AMRUSB-1. Press Control+C to abort."
logfilename = 'amrusb-1-' + strftime("%Y%m%d%H%M%S") + 'log'
f = open(logfilename, 'w')