Skip to content

Instantly share code, notes, and snippets.

View re-xyr's full-sized avatar
🍰

daylily re-xyr

🍰
View GitHub Profile
@re-xyr
re-xyr / orphaned_packages.hook
Last active March 10, 2025 14:52
pacman-detect-orphans
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Detecting orphaned packages...
When = PostTransaction
module Flip where
open import Function using (_∘_)
open import Relation.Binary.PropositionalEquality using (_≡_; refl)
-- truth values
data Truth : Set where
⊤ : Truth
⊥ : Truth
@re-xyr
re-xyr / hsinit
Created April 26, 2022 06:02
Script for quickly pulling up a working Haskell environment on Gitpod
#! /bin/bash
install() {
local tool=$1
if [ -z $tool ]; then
tool=ghc
fi
local version=$2
if [ -z $version ]; then
version=recommended
fi
@re-xyr
re-xyr / private-build-plans.toml
Last active March 15, 2025 01:15
Build plans for the "Iosevka Moe" variant of Iosevka.
[buildPlans.IosevkaMoe]
family = "Iosevka Moe"
spacing = "normal"
serifs = "sans"
noCvSs = true
exportGlyphNames = false
[buildPlans.IosevkaMoe.variants.design]
two = "straight-neck-serifless"
four = "closed-serifless"
import Unification.Companion.convertibleTo
import Unification.Companion.unify
import org.junit.jupiter.api.Test
// Refs
sealed interface Def
class Local(val name: String) : Def {
override fun toString(): String = name
}
class Meta(val name: String, var solution: Term? = null) : Def {