Skip to content

Instantly share code, notes, and snippets.

View stemsmit's full-sized avatar
👋

Stephen Smith stemsmit

👋
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>arr.forEach vs for</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>
@stemsmit
stemsmit / ha-uninstall.sh
Last active January 13, 2024 14:19
Uninstaller for Home Assistant Supervised on Debian 10
#!/usr/bin/env bash
sudo systemctl disable apparmor
sudo systemctl disable hassio-apparmor.service
sudo systemctl disable hassio-supervisor.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
sudo rm /etc/systemd/system/hassio-supervisor.service
sudo rm /etc/systemd/system/hassio-apparmor.service
{
"bidders": [
{
"code": "leader_plus_top",
"sizes": [[728,90],[970,66],[970,250],[970,90]],
"bids": {
"apac": [],
"ca": [],
"emea": [],
"us": [
@stemsmit
stemsmit / 0_reuse_code.js
Created May 9, 2017 20:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
console.table(pbjs._bidsReceived.map(function(b){ return { bidder: b.bidder,unit: b.adUnitCode, duration:b.timeToRespond, bid: b.cpm, size: [b.width,b.height].join("x")}}));