Skip to content

Instantly share code, notes, and snippets.

View damienstanton's full-sized avatar

Damien Stanton damienstanton

View GitHub Profile
@okkero
okkero / Main.idr
Created December 17, 2017 14:57
Idris-JVM Spigot plugin
module Main
import IdrisJvm.FFI
import IdrisJvm.IO
import Java.Lang
%default total
record Java a ret where
@tazjin
tazjin / thoughts.md
Last active August 15, 2025 18:19
Nix builder for Kubernetes
@wordijp
wordijp / Makefile
Created May 14, 2020 14:48
deno example by Makefile
# https://stackoverflow.com/questions/2483182/recursive-wildcards-in-gnu-make
rwildcard=$(foreach d,$(wildcard $(1:=/*)), \
$(call rwildcard,$d,$2) \
$(filter $(subst *,%,$2),$d))
# http://www.jsk.t.u-tokyo.ac.jp/~k-okada/makefile/
empty:=
space:= $(empty) $(empty)
myjoin=$(subst $(space),$2,$1)
# --------------------------------------------------
LOCAL_ROOT = http://localhost:8000/
module type TNT = sig
type 'a typed_name
val inj : string -> 'a typed_name
val prj : 'a typed_name -> string
end
module TN : TNT = struct
type 'a typed_name = string
let inj = fun x -> x
let prj = fun x -> x