Skip to content

Instantly share code, notes, and snippets.

View johnaweiss's full-sized avatar

John Weiss johnaweiss

View GitHub Profile
@johnaweiss
johnaweiss / index.html
Last active February 10, 2021 18:13
Load Indices #jsbench #jsperf (http://jsbench.github.io/#b154d16e00be899a4113b66f94527a65) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Load Indices #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>
@johnaweiss
johnaweiss / jw-sht.EXCEL.yaml
Created July 14, 2020 22:05
Create a new snippet from a blank template.
name: jw-sht
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
/** @CustomFunction */
/* Return 0-based index of last instance of search-string in text-string */
function FindRev(text, search) {
var n = text.lastIndexOf(search);