Skip to content

Instantly share code, notes, and snippets.

View jridgewell's full-sized avatar
😬

Justin Ridgewell jridgewell

😬
  • New York, NY
  • 05:45 (UTC -04:00)
View GitHub Profile
@jridgewell
jridgewell / readme.md
Last active October 15, 2020 02:11
Uber pushing political ads

Uber is pushing scummy political ads via push notifications to support California Prop 22.

MADD: Prop 22 will save lives
MADD says yes on Prop 22. Will you? (This ad is paid for by Uber Technologies, Inc.)

@jridgewell
jridgewell / index.html
Last active October 7, 2020 09:01
Is sourcemap mappings sorted? (https://jsbench.github.io/#b5130ae558bbca6b002025aca004201e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Is sourcemap mappings sorted?</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@jridgewell
jridgewell / index.html
Last active August 5, 2020 21:39
Adopted vs legacy stylesheets (https://jsbench.github.io/#0bd7efc7c75ef828464d8428c3535a67) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Adopted vs legacy stylesheets</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Inline vs hoisted regex</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>localName vs tagName</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@jridgewell
jridgewell / index.html
Last active April 30, 2020 22:03
Subclassing custom elements (https://jsbench.github.io/#9554bc2ae3e2234ba0b2e0bd11fc755f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Subclassing custom elements</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<style>
body {
font-size: 20px;
}
@jridgewell
jridgewell / index.html
Created March 11, 2020 22:04
Grabbing first part of a string (http://jsbench.github.io/#94a5176ad6fb86ed7aaeca9b9e08af53) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Grabbing first part of a string</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@jridgewell
jridgewell / index.html
Last active January 25, 2020 08:30
Fastest limited size lookup of integers (base64 lookup) #jsbench #jsperf (https://jsbench.github.io/#f5a12ed2e457ae2f8b9a874736e54ee0) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Fastest limited size lookup of integers (base64 lookup) #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Looping over a string</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@jridgewell
jridgewell / index.html
Created January 23, 2020 03:46
Searching strings for any of two special chars (https://jsbench.github.io/#31bf76ea5fa539b60fb1b80b321916d3) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Searching strings for any of two special chars</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>