Skip to content

Instantly share code, notes, and snippets.

View thatbudakguy's full-sized avatar

Nick Budak thatbudakguy

  • San Francisco, CA
  • 22:30 (UTC -07:00)
View GitHub Profile
{
"gbl_mdVersion_s": "Aardvark",
"id": "wmts-single-fixture",
"dct_title_s": "Night Lights (VIIRS, Suomi NPP)",
"dct_accessRights_s": "Public",
"schema_provider_s": "NASA",
"gbl_resourceClass_sm": ["Datasets"],
"gbl_resourceType_sm": ["Raster data"],
"dct_description_sm": ["The highest quality, daily and annual standard night lights products derived from the Suomi-NPP satellite."],
"locn_geometry": "ENVELOPE(-180, 180, 90, -90)",
@thatbudakguy
thatbudakguy / tilejson
Last active July 25, 2026 19:00
tilejson-demo
{
"gbl_mdVersion_s": "Aardvark",
"id": "tilejson-vector-fixture",
"dct_title_s": "MapLibre Demo Tiles (TileJSON, Vector)",
"dct_accessRights_s": "Public",
"schema_provider_s": "MapLibre",
"gbl_resourceClass_sm": ["Datasets"],
"dct_description_sm": ["Countries, centroids and geographic lines as a three-layer vector TileJSON tileset."],
"locn_geometry": "ENVELOPE(-180, 180, 85, -85)",
"dcat_bbox": "ENVELOPE(-180, 180, 85, -85)",
{
"id": "stanford-cr288qn9438",
"dct_title_s": "Important Farmland, Alameda County, California, 2014",
"dct_description_sm": [
"This polygon shapefile represents areas of important farmland in Alameda County, California for 2014. Established in 1982, Government Code Section 65570 mandates FMMP to biennially report on the conversion of farmland and grazing land, and to provide maps and data to local government and the public.",
"The Farmland Mapping and Monitoring Program (FMMP) provides data to decision makers for use in planning for the present and future use of California's agricultural land resources. The data is a current inventory of agricultural resources. This data is for general planning purposes and has a minimum mapping unit of ten acres.",
"The Important Farmland survey area is based on Natural Resources Conservation Service (NRCS) modern soil surveys covering most non-governmental lands in California; 49 counties are fully or partially surveyed at this time. Soil surveys specific
@thatbudakguy
thatbudakguy / hopkins.json
Last active June 10, 2026 13:57
hopkins index map
{
"id": "stanford-qh585jp8667",
"dct_title_s": "Hopkins Marine Station; Monterey County, California : aerial photographs, Index",
"dct_description_sm": [
"This is an index to the map series 'Hopkins Marine Station; Monterey County, California : aerial photographs.' The maps were originally created by the Aero-Geodetic Corporation. in 2000. This layer provides an index map that can be used to locate individual aerial photographs."
],
"dct_language_sm": [
"eng"
],
"dct_creator_sm": [
@thatbudakguy
thatbudakguy / flower.json
Last active June 9, 2026 22:53
flowers.json
{
"id": "flowers",
"dct_title_s": "Flowers (Raster PMTile)",
"schema_provider_s": "PMTiles.io",
"gbl_resourceClass_sm": ["Imagery"],
"dcat_bbox": "ENVELOPE(121.523691,121.527747,25.015462,25.014723)",
"dct_accessRights_s": "Public",
"gbl_mdVersion_s": "Aardvark",
"dct_references_s": "{\"https://github.com/protomaps/PMTiles\":\"https://air.mtn.tw/flowers.pmtiles\"}"
}
@thatbudakguy
thatbudakguy / cog.json
Last active June 9, 2026 18:19
COG test OGM record
{
"id": "stanford-vq494qx9344",
"dct_title_s": "Orthophoto of O'Donohue Family Stanford Educational Farm",
"dct_description_sm": [
"This photo was created using WebODM (OpenDroneMap), and images collected using a DJI Phantom 3 UAV."
],
"dct_creator_sm": [
"Maples, Stace D"
],
"dct_issued_s": "2025",
@thatbudakguy
thatbudakguy / weather_report.py
Created April 24, 2024 20:23
weather reporting bot for MQTT
"""
Report weather data via MQTT.
"""
import sys
import os
import requests
import time
import paho.mqtt.client as mqtt
@thatbudakguy
thatbudakguy / make_conll.py
Created January 6, 2024 23:21
CoNLL-2002 and CoNLL-U generators (spaCy)
"""Auto-generate CoNLL-2002 (IOB) entities by tagging a text file."""
from pathlib import Path
from typing import Optional
from typing_extensions import Annotated
import spacy
from spacy.training import offsets_to_biluo_tags
from spacy.training import biluo_to_iob
import typer
@thatbudakguy
thatbudakguy / circ_index_profile.rb
Created May 19, 2023 17:43
FOLIO circ rules evaluation
# frozen_string_literal: true
# require 'ruby-prof'
require 'csv'
# locations
## institution
SU_ID = '8d433cdd-4e8f-4dc1-aa24-8a4ddb7dc929'
## campus
@thatbudakguy
thatbudakguy / supar.py
Last active October 15, 2021 14:43
supar-kanbun tokenizer
class SuParKanbunTokenizer(object):
to_disk = lambda self, *args, **kwargs: None
from_disk = lambda self, *args, **kwargs: None
to_bytes = lambda self, *args, **kwargs: None
from_bytes = lambda self, *args, **kwargs: None
def __init__(self, bert, segment, vocab) -> None:
self.bert = bert
self.vocab = vocab
self.simplify = {}