Skip to content

Instantly share code, notes, and snippets.

View GirlBossRush's full-sized avatar
🌎
Building open source geo-spatial software

Teffen Ellis GirlBossRush

🌎
Building open source geo-spatial software
View GitHub Profile
@GirlBossRush
GirlBossRush / whosonfirst-data-admin-au.geojson
Created December 1, 2026 04:35
Per-repository WOF label-point GeoJSON review layers (23 PRs, 921 records, whosonfirst-data#2281): red = old label, green = new label, blue = Wikidata/GeoNames reference, orange = move vector
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GirlBossRush
GirlBossRush / all-921-overview.geojson
Created December 1, 2026 04:34
WOF label-point review maps (whosonfirst-data#2281): top 50 largest moves, global overview, and 1,946-record corroboration audit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GirlBossRush
GirlBossRush / left-for-upstream.tsv
Created November 21, 2026 18:30
Who's On First records whose label point lies outside their own polygon, left unchanged: 724 records with the diagnosis for each
id repo placetype name label_lon label_lat dist_km src_geom src_lbl reason
85764097 whosonfirst-data-admin-ar neighbourhood Centro -58.372518 -34.610302 1.121 quattroshapes mz wrong polygon: an independent point agrees with the label
85765603 whosonfirst-data-admin-ar neighbourhood Piñeyro -58.388802 -34.670624 6.41 quattroshapes mz wrong polygon: a same-named OSM place lies at the label point
85772011 whosonfirst-data-admin-za neighbourhood Belle Ombre 18.42889 -34.010733 0.791 quattroshapes mz wrong polygon: an independent point agrees with the label
85772027 whosonfirst-data-admin-za neighbourhood Bishopscourt 18.445294 -33.988457 0.441 quattroshapes mz wrong polygon: an independent point agrees with the label
85772049 whosonfirst-data-admin-za neighbourhood Bothasig 18.536426 -33.857643 1.067 quattroshapes mz wrong polygon: an independent point agrees with the label
85772053 whosonfirst-data-admin-za neighbourhood Bridgetown 18.530591 -33.956989 1.517 quattroshapes mz wrong polygon: an independent point a

Who's On First Topology

Only the most common types

---
config:
  flowchart:
    defaultRenderer: elk
---
[
{
"elementType": "geometry",
"stylers": [
{
"color": "#f5f5f5"
}
]
},
{
@GirlBossRush
GirlBossRush / runtime.md
Created July 21, 2022 21:09
Cloudflare Workers and TransformStream: "The script will never generate a response"

I'm not sure if this a bug per-se, but I encountered a Worker runtime behavior that wasn't reproducible in Miniflare.

tl;dr Using TransformStream will often trigger a runtime error: "The script will never generate a response"


My workers library, Keywork, has a JSXResponse class that accepts some React JSX and returns an instance of Response. This works fine when the JSX is first rendered to a string and then fed to Response's body, since this is really just a convenience wrapper around a few functions:

const app = new WorkerRouter()
@GirlBossRush
GirlBossRush / nonced-promise.ts
Created February 18, 2019 19:42
nonced promise
import id from './generate-id'
export type NoncedEventPayload = {
nonce: string
}
export type ParsedEventPayload = NoncedEventPayload & {
value: string
error: Error | null
}
function swapEntries (array, index, targetIndex) {
const slice = array.slice()
slice.splice(targetIndex, 1, array[index])
slice.splice(index, 1, array[targetIndex])
return slice
}

Back in Rails, old web projects, etc

/src /js search-bar.js /css global.css search-bar.css /templates search-bar.html

@GirlBossRush
GirlBossRush / recursive-file-list.js
Created November 21, 2018 20:36
recursive-file-list
const fs = require('fs')
const {promisify} = require('util')
const path = require('path')
const readdirP = promisify(fs.readdir)
const statP = promisify(fs.stat)
async function recursiveFileList (basePath, callback) {
const filePaths = await readdirP(basePath)
for (filePath of filePaths) {