Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Super Awesome
// @author Kelv
// @namespace http://www.example.com/gmscripts
// @description Scripting is fun
// @include http://www.example.com/*
// @include http://www.example.org/*
// @exclude http://www.example.org/foo
// @require foo.js
// @resource resourceName1 resource1.png
<script>
[
Uint8Array,
Uint8ClampedArray,
Uint16Array,
Uint32Array,
Int8Array,
Int16Array,
Int32Array,
Float32Array,
@chrisj
chrisj / javascript fast fill 0
Created January 25, 2017 19:36
A fast way to reset a typed array back to zeros
[
Uint8Array,
Uint8ClampedArray,
Uint16Array,
Uint32Array,
Int8Array,
Int16Array,
Int32Array,
Float32Array,
Float64Array