Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
nolanlawson / .gitignore
Created September 15, 2021 21:53
Repro chromedriver pointerMove issue
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active September 10, 2021 18:35
Repro webdriverio async issue
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active August 22, 2021 16:06
IDB read/write benchmark (separate write transactions)
node_modules
*.tachometer.json
*.results.json
@nolanlawson
nolanlawson / .gitignore
Last active August 22, 2021 16:12
IDB read/write benchmark
node_modules
*.tachometer.json
*.results.json
@nolanlawson
nolanlawson / .gitignore
Created August 19, 2021 14:05
marky repro
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active July 12, 2022 16:09
Shadow DOM style benchmark (with tag added)
node_modules
*.tachometer.json
*.results.json
@nolanlawson
nolanlawson / hello.js
Created August 2, 2021 16:11
Repro property set before custom elemet upgrade
customElements.define('hello-world', class extends HTMLElement {
constructor() {
super()
this.innerHTML = '<div>Hello world!</div>'
}
set mode (mode) {
this.querySelector('div')
.setAttribute('style', mode === 'light'
? 'background: white; color: black;'
@nolanlawson
nolanlawson / measure-emoji-picker-element-size.sh
Last active August 2, 2021 00:17
Measure emoji-picker-element size
#!/usr/bin/env bash
mkdir -p /tmp/tmp
cd /tmp/tmp
npm init --yes
npm install [email protected] [email protected] [email protected] [email protected]
npx rollup --input ./node_modules/emoji-picker-element/index.js | npx terser -mc | npx brotli-size
npx rollup --input ./node_modules/emoji-picker-element/svelte.js | npx terser -mc | npx brotli-size
rm -fr /tmp/tmp
@nolanlawson
nolanlawson / .gitignore
Last active July 31, 2021 18:42
Lit hello world
node_modules
bundle.js
@nolanlawson
nolanlawson / .gitignore
Last active April 11, 2022 21:33
Svelte hello world
node_modules
bundle.js