Skip to content

Instantly share code, notes, and snippets.

View gerwitz's full-sized avatar
🌲

Hans Gerwitz gerwitz

🌲
View GitHub Profile
@gerwitz
gerwitz / gist:d02aa5223b6cbf4633ee5fa734848c7f
Created April 23, 2025 15:10
deck.gl TileLayer with H3HexagonLayer
// data_url is a backend service that responds to /z/x/y/ requests with json like:
// { "cells": [
// { "h3_index": "8a28d5552667fff", "name": "Smith Tower" },
// { "h3_index": "8a3e2495886ffff", "name": "Cyrene" }
// ]}
deckInstance.setProps({
controller: interactiveController,
layers: [
new TileLayer({
---
{
"toplist": [
{
"name": "something",
"color": "black",
"lines": [
{
"name": "first",
@gerwitz
gerwitz / .finicky.js
Last active July 3, 2022 19:49
Configuration file for Finicky: https://github.com/johnste/finicky
module.exports = {
defaultBrowser: "Safari",
handlers: [
{
// Open Teams in Teams
match: /^https?:\/\/teams\.microsoft\.com\/l\/meetup\-join\/.*$/,
browser: "Microsoft Teams"
},
{
// Use Edge for Miro
Verifying my Blockstack ID is secured with the address 1CzTG2WPU27smvDKeyTvTVXgYkYNfuXaeA https://explorer.blockstack.org/address/1CzTG2WPU27smvDKeyTvTVXgYkYNfuXaeA
@gerwitz
gerwitz / .block
Created November 22, 2016 16:12
Stacked Radial Area
license: gpl-3.0
@gerwitz
gerwitz / .block
Last active November 18, 2016 09:20
Simplex Worms
license: gpl-3.0
Verifying that +gerwitz is my blockchain ID. https://onename.com/gerwitz
### Keybase proof
I hereby claim:
* I am gerwitz on github.
* I am gerwitz (https://keybase.io/gerwitz) on keybase.
* I have a public key whose fingerprint is BE56 1EFD 1D4D 8A85 C762 F6D2 B6B5 D127 2E4F 41E9
To claim this, I am signing this object:
@gerwitz
gerwitz / config.rb
Created April 8, 2014 18:52
Middleman: nested layout spec
# as if we could do this:
# page "/tree", layout: "root"
# page "/tree/*", layout: "trunk"
# page "/tree/*/*", layout: "limb"
page "/tree/*", layout: "limb"
trunks = Dir.glob("./source/tree/*/index.md")
trunks.each do |trunk_path|
trunk = trunk_path.match(/.\/source\/tree\/([^\/]*)\/index\.md/).captures[0]
page "/tree/#{top}/index.html", layout: "trunk"
@gerwitz
gerwitz / loginflow.md
Last active December 20, 2015 12:29
Device-specific login for iOS 7
  • app asks only for an email address on the login screen. If logout control is used, this is the only accessible screen.
  • upon entry, app stores the email locally and sends it and OS ID (identifierForVendor) to server to confirm valid login. (whenever app is "fresh" (re-loaded after being cleared from memory) it does this again using stored email.)
  • server checks email and OS ID against user store

if match:

  • server confirms login and app continues

if no match for email:

  • server rejects email