Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View keum's full-sized avatar

Peter Keum keum

  • King County - Wastewater Treatment Division
  • Seattle, WA
  • 00:41 (UTC -07:00)
View GitHub Profile
@keum
keum / postgres windows installation
Last active August 29, 2015 13:57
Installing postgres in windows machine
Installing postgres in windows box -
Installed on to this windows box: itgisqldev01.dnrp.kingcounty.lcl
1. This is to connect PostGIS connection from QGIS 2.+
Name: ITGISQLDEV01
Host: itgisqldev01.kingcounty.lcl
Port: 5432
Database: kcgis

Objects

To create a new object, use the new keyword followed by a call to a constructor function. Javascript provides the Object() constructor out-of-the-box:

var toilet = new Object();

Properties

Once you have an object, you can set and get properties on it, like this:

@keum
keum / Phantom Vision 2
Created February 11, 2015 20:55
Various Notes and Tips & Ideas on Phantom Vision 2
http://www.pattayadays.com/2014/03/naza-mode-on-the-phantom-2-vision/
@keum
keum / pi-file
Created May 15, 2015 16:27
etc-network-interfaces file
auto lo
iface lo inet loopback
iface eth0 inet auto
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
@keum
keum / qgis-reference
Last active August 29, 2015 14:24
QGIS meetup Note
Two types:
1. Reference Materials & Learning Software
Reference:
[Official documentation] (http://docs.qgis.org/2.8/en/docs/user_manual/)
[Videos of installation and various tools] (http://maps.cga.harvard.edu/qgis/)
@keum
keum / cso
Created November 5, 2015 02:21
{"type": "FeatureCollection", "features": [{"geometry": {"type": "Point", "coordinates": [-122.4225, 47.57024]}, "type": "Feature", "properties": {"DSN": "051", "CSO_Status": "3", "marker-color": "#689F38", "Name": "King County CSO: Alki", "CSO_TagName": "ALKI", "Time_stamp": "2015-11-04 05:25:17 PM", "description": "No recent overflow", "marker-size": "small", "marker-symbol": "circle", "Location": "-122.422 , 47.570"}}, {"geometry": {"type": "Point", "coordinates": [-122.406947, 47.559442]}, "type": "Feature", "properties": {"DSN": "055", "CSO_Status": "4", "marker-color": "#A2A2A2", "Name": "King County CSO: Alaska St SW", "CSO_TagName": "ALSK", "Time_stamp": "2015-11-04 05:25:17 PM", "description": "Data not available", "marker-size": "small", "marker-symbol": "cross", "Location": "-122.407 , 47.559"}}, {"geometry": {"type": "Point", "coordinates": [-122.400003, 47.540275]}, "type": "Feature", "properties": {"DSN": "056", "CSO_Status": "3", "marker-color": "#689F38", "Name": "King County CSO: Murray", "CS
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "FIRS_TAG": "RE*COAL.C7-38", "X_COORDINA": 1311689.387000, "Y_COORDINA": 200741.600000, "BOTTOM_INV": 0.000000, "Long_X": -122.164000, "Long_Y": 47.542500 }, "geometry": { "type": "Point", "coordinates": [ -122.164343489933103, 47.54253009030456 ] } },
{ "type": "Feature", "properties": { "FIRS_TAG": "RE*COAL.C7-71", "X_COORDINA": 1311728.421000, "Y_COORDINA": 200914.984000, "BOTTOM_INV": 0.000000, "Long_X": -122.164000, "Long_Y": 47.543000 }, "geometry": { "type": "Point", "coordinates": [ -122.164197613012973, 47.543007200666615 ] } },
{ "type": "Feature", "properties": { "FIRS_TAG": "WW*LYON.20", "X_COORDINA": 1282279.250000, "Y_COORDINA": 286070.501000, "BOTTOM_INV": 336.000000, "Long_X": -122.290000, "Long_Y": 47.775000 }, "geometry": { "type": "Point", "coord
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.