Skip to content

Instantly share code, notes, and snippets.

View admercs's full-sized avatar

Adam Erickson admercs

View GitHub Profile
@admercs
admercs / printarr
Created February 27, 2023 22:32 — forked from nmwsharp/printarr
Pretty print tables summarizing properties of tensor arrays in numpy, pytorch, jax, etc.
Pretty print tables summarizing properties of tensor arrays in numpy, pytorch, jax, etc.
@admercs
admercs / keybase.md
Created May 24, 2022 14:42
Keybase proof

Keybase proof

I hereby claim:

  • I am admercs on github.
  • I am admercs (https://keybase.io/admercs) on keybase.
  • I have a public key ASDAgyTXQVPrVhUzn0XnSyQ3q3Sn6aV42WXmsDm_OR1Tfgo

To claim this, I am signing this object:

@admercs
admercs / iterm2-solarized.md
Created October 30, 2018 20:34 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@admercs
admercs / Lidar_walkthrough.md
Created February 27, 2016 12:55 — 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

@admercs
admercs / log.R
Last active September 20, 2015 01:42 — forked from mollietaylor/log.R
Plot Weekly or Monthly Totals in R
library(ggplot2)
library(scales)
# load data:
log <- data.frame(Date = c("2013/05/25","2013/05/28","2013/05/31","2013/06/01","2013/06/02","2013/06/05","2013/06/07"),
Quantity = c(9,1,15,4,5,17,18))
log
str(log)
# convert date variable from factor to date format: