Skip to content

Instantly share code, notes, and snippets.

@tompao
tompao / bashrc
Last active October 18, 2019 08:02
Installation of rootless Docker on Linux
export PATH=/home/$USER/bin:$PATH
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
@tompao
tompao / tsconfig.json
Created December 17, 2018 04:15
tsconfig.json for React
{
"compilerOptions": {
"sourceMap": true,
"module": "commonjs",
"esModuleInterop": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"target": "es5",
"jsx": "react",
@tompao
tompao / .eslintrc.json
Last active August 5, 2017 16:43
eslint for ES6 in the browser
{
"extends": "airbnb-base",
"rules": {
"quotes": ["error", "double"],
"no-underscore-dangle": "off",
"spaced-comment": "off",
"no-console": "off",
"no-alert": "off"
@tompao
tompao / Lidar_walkthrough.md
Created March 2, 2017 08:24 — forked from YKCzoli/Lidar_walkthrough.md
Lidar_walkthrough

Processing LiDAR to extract building heights

Walk through

Detailed walk through of building extraction using postgis

First lets pull a data layer from of openstreetmap. You can do this any which way you’d like, as there are a variety of methods for pulling openstreetmap data from their database. Check the [wiki] (http://wiki.openstreetmap.org/wiki/Downloading_data) for a comprehensive list. My favourite method thus far is pulling the data straight into QGIS using the open layers plugin. For those who may want to explore this method, check [this tutorial] (http://www.qgistutorials.com/en/docs/downloading_osm_data.html). For building extraction you only need building footprints, and include the building tags. Not all polygons are of type building in OSM, so we can download all the polygons, and then filter the layer for only polygons tagged as buildings.

LiDAR data was pulled from USGS via the Earth Explorer site. [Here] (http://earthobservatory.nasa.gov/blogs/ele