This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint asi:true */ | |
var print = typeof console === 'undefined' ? print : console.log.bind(console) | |
var whatnan = function (narray) { | |
return [].map.call(new Uint8Array(narray.buffer), function (n) { | |
return (n < 16 ? '0' : '') + n.toString(16) | |
}).join('') | |
} | |
var printnan = function (nan) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void function () { | |
if ( 'dispose' in ArrayBuffer.prototype ) return | |
var blob = new Blob([''], { | |
type: 'text/javascript' | |
}) | |
var url = URL.createObjectURL(blob) | |
var worker = new Worker(url) | |
URL.revokeObjectURL(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$!/usr/bin/env sh | |
branch=`git symbolic-ref --short HEAD` | |
git checkout master | |
commits=`git log --pretty="%H" --reverse -- $*` | |
git checkout $branch | |
for commit in $commits; do | |
git cherry-pick $commit | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request = require 'request' | |
Restzilla = require 'restzilla' | |
BUGZILLA_URL = 'https://www.w3.org/Bugs/Public/' | |
BURL = 'http://localhost:8000/AudioWG/MIDI%20API/' | |
GH_USER = 'jussi-kalliokoski' | |
GH_REPO = 'webmidi-issues' | |
GH_URL = 'https://api.github.com/repos/' + GH_USER + '/' + GH_REPO + '/issues' | |
GH_AUTH = | |
username: 'octocat' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<style> | |
.tooltip { | |
position: pointer; | |
left: 10px; | |
top: 10px; | |
width: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<script> | |
Function.prototype.fork = function (cb, thisArg) { | |
var args = [].slice.call(arguments, 2) | |
var fn = this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function memcpy (src, srcOffset, dst, dstOffset, length) { | |
var i | |
src = src.subarray || src.slice ? src : src.buffer | |
dst = dst.subarray || dst.slice ? dst : dst.buffer | |
src = srcOffset ? src.subarray ? | |
src.subarray(srcOffset, length && srcOffset + length) : | |
src.slice(srcOffset, length && srcOffset + length) : src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wat ( | |
outputBuffer, outputOffset, outputStride, | |
inputBuffer, inputOffset, inputStride, | |
a, b, c, d | |
) { | |
var o, i, s | |
i = (inputOffset) || 0 | |
inputStride = inputStride || 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint asi:true, esnext:true */ | |
void function () { | |
const SHADER_COUNT = 8 | |
const WIDTH = 800 | |
const HEIGHT = 800 | |
var rAF = | |
window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isImage (url, callback) { | |
function cleanup () { | |
delete img.onload; | |
delete img.onerror; | |
img = null; | |
} | |
var img = new Image(); | |
img.onload = function () { |