Skip to content

Instantly share code, notes, and snippets.

View STBoyden's full-sized avatar

Samuel Boyden STBoyden

View GitHub Profile
@STBoyden
STBoyden / effect-remote-functions-with-promiseexit.ts
Last active January 13, 2026 01:14
Effect.ts + SvelteKit remote functions
import type { RemoteFormInput } from "@sveltejs/kit";
import { command, form, query } from "$app/server";
import { Effect, Schema } from "effect";
/**
* Creates a remote query defined with `Effect`. Shares the same behaviour as
* SvelteKit's `query`.
*
* @param schema The `Schema` to validate arguments against.
* @param handler The `Effect` to run when this function is ran.
@STBoyden
STBoyden / wezterm.lua
Last active April 17, 2023 13:42
Wezterm Configuration (Linux)
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.font_size = 14.0