Skip to content

Instantly share code, notes, and snippets.

@bvaughn
bvaughn / react-virtualized-framerate-test.js
Last active May 27, 2022 18:57
Quick demonstration of a way to measure scrolling performance for react-virtualized in an automated way
/** Measures framerate for the time between start() and stop() calls */
function FramerateMeasurer () {
this.start = () => {
this._beginTime = ( performance || Date ).now()
this._frames = 0
this._animationFrameId = requestAnimationFrame(this._loop)
}
this.stop = () => {
const endTime = ( performance || Date ).now()
@Buthrakaur
Buthrakaur / Generate RoundhousE SQL script hash.ps1
Last active June 22, 2023 00:42
RoundhousE script hash calculator to fix already executed script in UP folder without RH complaining about the script change
Param(
[Parameter(Mandatory = $true)]
[string]$file
)
#port of RoundhousE WindowsFileSystemAccess.get_file_encoding
function getFileEncoding($file){
$enc = [System.Text.Encoding]::Default
$buffer = gc $file -Encoding Byte
@csusbdt
csusbdt / index.html
Created January 13, 2013 16:56
How to store JSON data into the user's Google drive storage.
<html>
<head>
<!--
In this example, I started with the 5-minute example provided by Google
on the following page:
https://developers.google.com/drive/
I modified the example code, so that I could write the following