Skip to content

Instantly share code, notes, and snippets.

@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
@nolanlawson
nolanlawson / .gitignore
Last active December 10, 2023 18:03
Svelte createRoot with reused props issue (Svelte v5)
bundle.js
bundle.js.map
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active February 20, 2024 17:41
rollup-plugin-svelte v5 emitCss issue
node_modules
@nolanlawson
nolanlawson / test-finalization-registry.html
Last active March 2, 2023 16:17
Test FinalizationRegistry
<!doctype html>
<html>
<button id="derefKey">Deref key</button>
<button id="derefValue">Deref value</button>
<script type=module>
const reg = new FinalizationRegistry(held => {
console.log('gced', held)
})
const map = new WeakMap()
@nolanlawson
nolanlawson / .gitignore
Last active February 9, 2023 16:46
Run Puppeteer and get userAgentSpecificMemory
node_modules
@nolanlawson
nolanlawson / index.html
Created December 15, 2022 19:34
:host pseudo with selector list
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>:host pseudo with selector list</title>
</head>
<body>
<x-cmp class="foo"></x-cmp>
<script>
customElements.define('x-cmp', class extends HTMLElement {