Skip to content

Instantly share code, notes, and snippets.

View tlindsay's full-sized avatar

Patrick Lindsay tlindsay

View GitHub Profile
@tlindsay
tlindsay / build.sh
Created August 15, 2022 15:46
tinygo fetch bug
# tinygo version 0.25.0 darwin/amd64 (using go version go1.18 and LLVM version 14.0.0)
# go version go1.18.3 darwin/arm64
tinygo build -wasm-abi=generic -target=wasi -o bin/main.wasm main.go
@tlindsay
tlindsay / rust_playground.lua
Created October 5, 2022 14:14
Neovim buffer -> Rust Playground
function rust_playground(opts)
---@diagnostic disable-next-line: redefined-local
local opts = opts or {}
local copy = opts.copy or false
local open = opts.open or false
local char_to_hex = function(c)
return string.format('%%%02X', string.byte(c))
end
local function urlencode(url)
@tlindsay
tlindsay / .golangci.yml
Created February 29, 2024 03:48
nilness with build-tags via golangci-lint
linters-settings:
govet:
disable-all: true
enable:
- nilness