Skip to content

Instantly share code, notes, and snippets.

View favonia's full-sized avatar
😺
happy cat

favonia favonia

😺
happy cat
View GitHub Profile
@favonia
favonia / Palindromes.agda
Last active April 11, 2020 21:09
is-palindrome l <-> l = rev l
{-# OPTIONS --safe #-}
open import Agda.Primitive
open import Agda.Builtin.Sigma
open import Agda.Builtin.Equality
variable
ℓ : Level
A : Set ℓ
@favonia
favonia / deep.agda
Created January 18, 2022 16:31
CPP 2022
-- Code supplement for CPP22
-- (C) 2022 Patricia Johann, Enrico Ghiorzi
-- This information is free; you can redistribute and/or modify it under the terms of CC BY-SA 4.0.
-- The code was originally for the paper "(Deep) Induction Rules for GADTs",
-- then modified by Favonia, released also under CC BY-SA 4.0
{-# OPTIONS --injective-type-constructors #-}
module _ where
@favonia
favonia / token-check.go
Created April 2, 2026 15:11
A debugging helper that mimics the token-loading logic in cloudflare-ddns 1.16.1
package main
import (
"bytes"
"context"
"errors"
"fmt"
"io/fs"
"net/http"
"net/http/httputil"