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
  • 02:59 (UTC -07:00)
View GitHub Profile
@keum
keum / .block
Created September 10, 2017 23:20
Basic D3 map (live mods) d3v4
license: mit
@keum
keum / .block
Created September 10, 2017 22:36
Leaflet starter
license: mit
@keum
keum / .block
Last active September 9, 2017 23:46
fresh block
license: mit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
CREATE OR REPLACE FUNCTION public.dbs_ned_z(
IN text,
IN text,
OUT text)
RETURNS text AS
$BODY$
#!/bin/sh
url="http://ned.usgs.gov/epqs/pqs.php?output=json&x=$1&y=$2"; /usr/bin/curl -s $url
$BODY$
LANGUAGE plsh VOLATILE
@keum
keum / NCI-Data
Last active November 30, 2015 16:22
NorthCreekInterceptor
Existing and New Manholes - q:\...\North_Ck_Interceptor\shapes
\mhFinalDesign20140520.shp
Proposed New Sewerline - q:\..\North_CK_Interceptor\shapes\PipeFinalDesign_20140520.shp
Modified to add Reach Section and Pipe diameter
Combined Dewatering Wells(DW) and Monitoring Wells (MW) - q:\..\North_CK_Interceptor\shapes
\combine_dewatering_monitoringWells20151110.shp
Previously installed existing monitoring wells - q:\..\North_Ck_Interceptor\shapes\
@keum
keum / Conference Note: Carto Sympo
Last active November 8, 2015 06:12
Conference Note: Cartographic Symposium - Portland State U Nov 3, 2015
I. Key Note: James Meacham University of Oregon - Dept of Geography
Infographic Lab - http://infographics.uoregon.edu/projects/
Talked about workflow for Visualizing Data with example from Atlas of Wildlife Migration (http://infographics.uoregon.edu/projects/atlas-of-wildlife-migration/)
1. Data Collection --> Developing storyline:Markup iwth white board (inital mockup)/conceptialization -->Collaborative Design (example of working w/ biologist, dash-line showing two overlap direction) --> Outreach to social media/newspaper. Finished product: http://migrationinitiative.org/content/atlas
Take away - using whiteboard to draw up initial ideas/product and collaborate with subject matter experts.
Potential use for WTD: infographic of each pipe segment, profile DSM, landuse similar to last page bottom graphics from the report.
@keum
keum / How to : GitHub Scenario 2
Created November 7, 2015 05:24
How to: GitHub - Fork other people's project into your repository and copy onto your local machine directory.
Sceanrio 2: Forking other people's repository from GitHub
Step 1: Find other repo you're interested in forking.
Step 2: Click Fork icon from GitHub site to your repository.
Step 3: Go to your local machine where you want to download recently forked project from GitHub
Step 4: $ git clone Http://repository name.git
Step 5: this should download all the directory/files from the repo to local machine's directory.
@keum
keum / How to: GitHub Scenario 1
Last active November 9, 2015 18:15
How to: Using GitHub Local Scenario 1 - Local project to GitHub repo using terminal command line
Scenario 1: One starts the project in your local directory and need to push whole directory into your repository in GitHub website.
=====================================================================================================================================
Step 1: Create a github repo in the web WITHOUT README.md file.
Step 2: Go to your local machine and to the directory where all the files are located. Example >cd yourdirectory
Step 3: Go create README.md file. Example Type $touch echo "#new repo" >> README.md (this creates a new README.md file with new repo text inside)
Step 4: Still in your local directory where your project directory is,
$ git init
Step 5: $ git add README.md
Step 6: $ git commit -m 'first commit' (need to type exactly first commit)
Step 7: $ git remote add origin remote repository URL i.e. http://your repository.git
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.2/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.2/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }