Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
nolanlawson / App.html
Last active Mar 3, 2019
test rollup with static HTML
View App.html
<div class="shortcut-help-info {inDialog ? 'in-dialog' : ''}">
<div>
<h2>Global</h2>
<div class="hotkey-group">
<ul>
<li><kbd>c</kbd> to compose a new toot</li>
<li><kbd>s</kbd> to search</li>
<li><kbd>1</kbd> - <kbd>6</kbd> to switch columns</li>
<li><kbd>g</kbd> + <kbd>h</kbd> to go home</li>
<li><kbd>g</kbd> + <kbd>n</kbd> to go to notifications</li>
@nolanlawson
nolanlawson / .gitignore
Created Mar 2, 2019
Test promise-worker with Webpack 4
@nolanlawson
nolanlawson / create_quick_links.py
Created Feb 14, 2019
create quick links for a blog post
View create_quick_links.py
@nolanlawson
nolanlawson / index.html
Last active Nov 28, 2018
Repro Firefox NVDA crash
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<style>
body {
margin: 0;
font-family: system-ui,-apple-system,PinaforeRegular,sans-serif;
font-size: 14px;
@nolanlawson
nolanlawson / 8822bu_getting_driver_to_work.md
Created Nov 22, 2018
Getting Realtek rtl8822bu wifi driver working on Ubuntu 18.04
View 8822bu_getting_driver_to_work.md

Getting Realtek rtl8822bu wifi driver working on Ubuntu 18.04

Using this PR and instructions for dkms here:

sudo apt install -y dkms
git clone https://github.com/chasonr/rtl8822bu.git --branch linux-4.15-fix
sudo cp -r rtl8822bu /usr/src/8822bu
sudo dkms add -m 8822bu -v 1.1
sudo dkms build -m 8822bu -v 1.1
@nolanlawson
nolanlawson / index.html
Created Nov 10, 2018
dot versus argument bracket versus bracket benchmark
View index.html
<html>
<head>
<title>dot versus bracket access</title>
</head>
<body>
<h1>dot versus bracket access</h1>
<pre id="display"></pre>
<script>
@nolanlawson
nolanlawson / README.md
Last active Sep 2, 2018
Repro webpack-bundle-analyzer with workerize-loader
View README.md

Repro:

npx webpack
@nolanlawson
nolanlawson / index.html
Created Aug 28, 2018
Repro Edge CSS grid bug
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<style>
.status-details {
align-items: center;
display: grid;
grid-area: details;
@nolanlawson
nolanlawson / index.html
Created Aug 24, 2018
CSS grid bug repro
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.status-article {
cursor: pointer;
max-width: calc(-40px + 100vw);
padding: 0;
display: grid;
grid-template-areas: "sidebar author-name author-handle relative-date"
@nolanlawson
nolanlawson / index.html
Last active Aug 20, 2018
Cross-tab communication benchmark
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cross-tab communication test</title>
</head>
<body>
<h1>Cross-tab communication test</h1>
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.