Skip to content

Instantly share code, notes, and snippets.

@slaymaker1907
slaymaker1907 / LICENSE.md
Last active March 3, 2026 00:44
Solver for minimum number of food items per day

Copyright 2026 Dyllon Gagnier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OT

@slaymaker1907
slaymaker1907 / example-wasmtime.rkt
Last active November 26, 2023 20:33
Racket Wasmtime FFI Example
#lang racket
(require ffi/unsafe
ffi/unsafe/define)
(require syntax/parse/define)
(require pipechain)
(require (for-syntax pipechain))
(require (for-syntax racket/match racket/format))
;; Download wasmtime C lib and set this file to the DLL/library file
(define wasmtime-dll "")
@slaymaker1907
slaymaker1907 / Main.java
Last active December 27, 2025 06:03
Generators in pure Java using (virtual) threads
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;
import java.util.concurrent.Semaphore;
import java.util.function.Consumer;
public class Main {
public static class Box<T> {
@slaymaker1907
slaymaker1907 / TestSaverModule.tid
Last active January 26, 2022 10:47
Example TiddlyWiki 5 Saver Using HTML 5 File System Access API
created: 20210424052412556
modified: 20210424052444872
module-type: saver
tags:
title: TestSaverModule
type: application/javascript
// Disable this to limit logging.
let debugEnabled = true;
let problemEncountered = false;
@slaymaker1907
slaymaker1907 / Makefile
Created May 18, 2018 23:18
Poor Mans Pandoc Wiki
SOURCES=$(wildcard **/*.md) $(wildcard *.md)
HTML=$(patsubst %.md, build/%.html, $(SOURCES))
all: $(HTML)
build/%.html: %.md
mkdir --parents $(dir $@)
pandoc -s $< -o $@
.PHONY: