Skip to content

Instantly share code, notes, and snippets.

@pbaldwin
pbaldwin / reset.css
Created October 8, 2020 03:46
Simple CSS Normalize
*, *:before, *:after {
/* This makes resetting box-size for individual components (or 3rd party components) easier */
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 16px;
}
@pbaldwin
pbaldwin / index.html
Last active January 19, 2017 23:45
variable declaration vs assignment #jsbench #jsperf (http://jsbench.github.io/#ba82079dfdb177de201902ea3d7e9ea8) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>variable declaration vs assignment #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>
@pbaldwin
pbaldwin / gist:568cf04e1bfef0acefa0
Created May 7, 2015 17:02
Reset OSX Bluetooth
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport && sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport