Skip to content

Instantly share code, notes, and snippets.

View connorjclark's full-sized avatar

Connor Clark connorjclark

View GitHub Profile
@connorjclark
connorjclark / lighthouse.txt
Last active August 21, 2021 00:12
print size of node_modules for every commit
770868 46d282b83 report(flow): standalone shell report with preact (#12850) 2021-08-18
745328 305540f27 deps: update to [email protected] (#12909) 2021-08-13
741724 52beae3f0 clients(viewer): convert to ES modules (#12878) 2021-08-10
741244 800ffd6da report: autogenerate components.js from templates.html (#12803) 2021-08-09
741120 c30ba2de5 deps(csp-evaluator): upgrade to exactly 1.0.4 (#12858) 2021-08-04
740824 e58aa09a2 deps: update third-party-web to 0.12.4 (#12753) 2021-07-30
740108 d62acc3d6 deps: update lighthouse-logger to 1.3.0 (#12812) 2021-07-21
740112 3aa15dc69 report: convert to ES modules (#12702) 2021-07-15
731968 0af83bfd6 deps: bump axe-core to 4.2.3 (#12706) 2021-06-25
731936 cacf13540 deps: update `ws` to latest (#12638) 2021-06-10
@connorjclark
connorjclark / input.txt
Created June 18, 2021 21:43
cfg twitter fun
#states
s1
s2
s3
s4
s5
s6
#initial
s1
#accepting
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4463.0 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Mobile Safari/537.36 Chrome-Lighthouse","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4463.0 Safari/537.36","benchmarkIndex":1743.5,"credits":{"axe-core":"4.1.3"}},"lighthouseVersion":"7.3.0","fetchTime":"2021-03-30T19:13:30.839Z","requestedUrl":"https://web.dev/","finalUrl":"https://web.dev/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. This includes avoiding [mixed content](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content), where some resources are loaded over HTTP despite the initial
"treemap-data": {
"id": "treemap-data",
"title": "Treemap Data",
"description": "Used for treemap visualization.",
"score": null,
"scoreDisplayMode": "informative",
"details": {
"type": "debugdata",
"treemapData": {
"scripts": [
@connorjclark
connorjclark / count-strings-i18n.js
Last active July 22, 2020 18:31
historical LH i18n string coverage
// git rev-list master~1000..master | xargs -n1 -I{} sh -c 'git checkout --quiet {} && yarn i18n:collect-strings > /dev/null && git rev-parse HEAD && node ~/tmp/count/count-strings-i18n.js'
// https://github.com/GoogleChrome/lighthouse/pull/11149
'use strict';
const fs = require('fs');
const glob = require('glob');
/** @typedef {import('../../lib/i18n/locales.js').LhlMessages} LhlMessages */
@connorjclark
connorjclark / README.md
Last active July 8, 2020 03:17
webdev learning materials
@connorjclark
connorjclark / gist:515d05094ffd1fc038894a77156bf226
Created June 9, 2020 23:09
babel preset env esmodules true output
@babel/preset-env: `DEBUG` option
Using targets:
{
"android": "61",
"chrome": "61",
"edge": "16",
"firefox": "60",
"ios": "10.3",
"opera": "48",
@connorjclark
connorjclark / README.md
Created June 8, 2020 22:49
regenerator transpile
// @ts-nocheck
/* eslint-disable */

class MyTestClass {};
async function reg(...args) {
  await 1;
  for (let i = 0; i < 10; i++) await 2;
  await 3;
}
@connorjclark
connorjclark / memory-test.ts
Created May 27, 2020 18:48
memory leak test
import { ChildProcess, spawn } from 'child_process';
import * as puppeteer from 'puppeteer';
const DEBUG = Boolean(process.env.DEBUG);
const CI = Boolean(process.env.CI);
const QUERY = Boolean(process.env.QUERY);
jest.setTimeout((QUERY ? 200 : 100) * 1000);
interface MemorySample {
@connorjclark
connorjclark / README.md
Last active May 15, 2020 18:02
Lighthouse Scoring Changes 5.6.0 -> 6.0