Skip to content

Instantly share code, notes, and snippets.

View gerwitz's full-sized avatar
🌲

Hans Gerwitz gerwitz

🌲
View GitHub Profile
/**
* This script automates finding Google Doc attachments in Google Calendar events,
* converting them to richly formatted Markdown files using a self-contained,
* custom converter, and organizing them into monthly folders.
*
* This version handles both direct file attachments AND special "Notes by Gemini"
* attachments which may not have a standard mimeType. It uses PropertiesService
* to track processed files, avoiding file permission errors.
*
* --- SETUP REQUIREMENTS ---
@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"