Skip to content

Instantly share code, notes, and snippets.

View mdichtler's full-sized avatar
🎯
Focusing

Martin Dichtler mdichtler

🎯
Focusing
View GitHub Profile
@mdichtler
mdichtler / github.go
Created May 6, 2026 18:03
Github tool for Google's ADK in Go
package main
import (
"encoding/base64"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"
@mdichtler
mdichtler / [slug].png.ts
Created April 19, 2026 10:18
behindthe.dev - Dynamic Image Endpoint
import satori from 'satori';
import { Resvg } from '@resvg/resvg-js';
import { getCollection } from 'astro:content';
import { readFileSync } from 'node:fs';
import path from 'node:path';
export async function getStaticPaths() {
const posts = await getCollection('blog');
const paths = [];