Skip to content

Instantly share code, notes, and snippets.

View maxwell-oroark's full-sized avatar
:shipit:

Maxwell O'Roark maxwell-oroark

:shipit:
View GitHub Profile
@maxwell-oroark
maxwell-oroark / datasets-v2.py
Created July 6, 2023 21:05
dataset definition v2
{
"id": f"sem-hotspots",
"name": "SEM hotspots",
"description": "Percentage of walking path SEM CH4 measurements over ppm within site boundary",
"category": "Methane",
"imageUrl": "/dataset-thumbnail.png",
"daily": {
"layerType": "geojson",
"vis": {
"type": "threshold",
@maxwell-oroark
maxwell-oroark / metadata-v2.js
Last active May 30, 2023 20:53
Proposal for creating specification for metadata property embedded in observation
const observation = {
metadata: {
// add version property to support backwards compatibility in the UI
version: 2,
xyz: "valid tms url or url that resolves to a valid tms url",
// sometimes an observation is a rolled up average of nearby sensors.
// In this case, we need access to each of those sensors and sometimes we need access to hourly readings from
// those sensors to power interactive charts. we should keep all nearby sensor readings flat
// and use sensor_id property in order to group them when we // want to render a time series chart
composites: {
{
"id": "sem-flux-quarterly-initial",
"beta": true,
"name": "Quarterly SEM Emission Rates - Initial",
"description": "Estimation of emissions from walking path SEM CH4 measurements",
"category": "Methane",
"frequency": "monthly",
"imageUrl": "/dataset-thumbnail.png",
"metric": {
"name": "Walking path SEM fluxes",
@maxwell-oroark
maxwell-oroark / observation.json
Created September 30, 2022 14:10
Observation
{
"id": "sem-flux-quarterly-initial___2022-04",
"uncertainty": 1.391,
"account_id": "wm",
"metric": "value",
"site_id": "MXhNRheeBr_rnPD3z6e9B",
"value": 1.391,
"metadata": {
"hotspots": {
"8a2a1352926ffff": {
import React from "react";
import { GoogleMapsOverlay as DeckOverlay } from "@deck.gl/google-maps";
import { EditableGeoJsonLayer, DrawPolygonMode } from "nebula.gl";
import mapStyle from "./mapStyle";
const myFeatureCollection = {
type: "FeatureCollection",
features: [
/* insert features here */
// each authenticated member gets a record mapping their UUID to a domain.
// this is just a row in our schemaless non-relational DB
{
"name": "Maxwell O'Roark",
"uuid": 1234566666987,
"domain": "Acme Inc."
}
// each domain gets a record of what they have access to:
// Do we need a domain ID? So that we don't have to worry about magic string names for domain?
@maxwell-oroark
maxwell-oroark / 58bytes.css
Created April 17, 2019 16:46
58 bytes of simple css that look good anywhere
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
set nomodeline
" Set standard file encoding
set encoding=utf8
" No special per file vim override configs
set nomodeline
" Stop word wrapping
set nowrap
" Except... on Markdown. That's good stuff.
autocmd FileType markdown setlocal wrap
" Adjust system undo levels