Skip to content

Instantly share code, notes, and snippets.

Nolan Lawson nolanlawson

Block or report user

Report or block nolanlawson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nolanlawson
nolanlawson / README.md
Last active Jun 19, 2019
Test chromedriver heap snapshot
View README.md

test-chromedriver

Usage

  1. Download chromedriver, extract the binary as chromedriver to the current directory
  2. Run pip install -r requirements.txt
  3. Run python test.py
  4. Try to load the snap.heapsnapshot file into Chrome Dev Tool's Memory tool (Memory -> Load)
@nolanlawson
nolanlawson / special_chards.md
Created Apr 13, 2019
Testing special characters in OG cards: "Pokémon" – nü mëtäl 'hello'
View special_chards.md

"Pokémon" – nü mëtäl 'hello'

@nolanlawson
nolanlawson / index.html
Created Mar 20, 2019
Repro Firefox scroll bug
View index.html
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta id="theThemeColor" name="theme-color" content="#4169e1">
<meta name="description" content="An alternative web client for Mastodon, focused on speed and simplicity.">
<base href="/">
<link id="theManifest" rel="manifest" href="/manifest.json">
<link id="theFavicon" rel="icon" type="image/png" href="/favicon.png">
@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
You can’t perform that action at this time.