Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
nolanlawson / README.md
Last active December 2, 2024 21:52
ESTree Toolkit types issue

repro estree-toolkit types issue

Usage: npm it

@nolanlawson
nolanlawson / index.js
Last active November 29, 2024 16:32
test isConnected during move in jsdom
const jsdom = require("jsdom")
const { JSDOM } = jsdom
const { window } = new JSDOM(``)
const { document } = window
window.customElements.define('x-foo', class extends window.HTMLElement {
connectedCallback() { console.log('cC') }
disconnectedCallback() { console.log('dC, this.isConnected?', this.isConnected) }
@nolanlawson
nolanlawson / libvips-mastodon.sh
Last active October 29, 2024 02:49
Setting up libvips on Ubuntu 22.04 for Mastodon
# partially taken from https://github.com/libvips/libvips/wiki/Build-for-Ubuntu
sudo apt remove -y libvips42
sudo apt update
sudo apt install -y libcgif-dev \
build-essential \
ninja-build \
bc \
wget \
libfftw3-dev \
libopenexr-dev \
@nolanlawson
nolanlawson / .gitignore
Last active September 30, 2024 16:59
Test Vite with Rollup plugin warnings
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active September 30, 2024 16:59
Test Vitest with Rollup plugin warnings
node_modules
@nolanlawson
nolanlawson / chrome.config.json
Last active September 9, 2024 05:34
Tachometer config for Firefox/Chrome snap paths on Ubuntu
{
"browser": {
"name": "chrome",
"headless": true,
"binary": "/snap/chromium/current/usr/lib/chromium-browser/chrome"
}
}
@nolanlawson
nolanlawson / .gitignore
Last active August 20, 2024 20:52
Repro WDIO Custom Elements bug
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active March 9, 2024 18:53
Repro an issue with Vitest and crypto.subtle.digest
node_modules
@nolanlawson
nolanlawson / .gitignore
Created January 28, 2024 17:25
Repro multi-page leak in Chromium 121
node_modules
*.heapsnapshot
@nolanlawson
nolanlawson / .gitignore
Created December 10, 2023 18:03
Svelte createRoot with reused props issue (Svelte v4)
bundle.js
bundle.js.map
node_modules