I hereby claim:
- I am usefulthink on github.
- I am usefulthink (https://keybase.io/usefulthink) on keybase.
- I have a public key whose fingerprint is 58B4 6BDF 0508 84EA DF09 DA10 9B79 D213 41A8 EA31
To claim this, I am signing this object:
| /** | |
| * A fivetwelve-driver that uses a node-dmx instance to send data. | |
| * It is assumed that fivetwelve will have full control over the node-dmx | |
| * instance, concurrent changes via the node-dmx interface are not supported | |
| * and probably wont do anything useful. | |
| * | |
| * @example | |
| * import fivetwelve from 'fivetwelve'; | |
| * import DMX from 'dmx'; | |
| * |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * @author mrdoob / http://mrdoob.com/ | |
| */ | |
| THREE.ObjectLoader = function ( manager ) { | |
| this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; | |
| this.texturePath = ''; | |
| }; |
| function createWorker(mainFn) { | |
| var blob = new Blob(['(' + mainFn.toString() + ')()']); | |
| var blobURL = window.URL.createObjectURL(blob); | |
| return new Worker(blobURL); | |
| } | |
| var typedArray = new Float32Array(100000); | |
| var plainArray = []; |
| /** | |
| * creates a worker url from an existing function. | |
| * The passed function will run in the worker global scope and will be called with two | |
| * arguments - the message-data and a callback - whenever the worker receives a message. | |
| * The function has to invoke the callback with any resulting data to send data back to | |
| * the UI-Thread. | |
| */ | |
| function createWorkerUrl(onMessage) { | |
| const code = ` | |
| const onMessage = ${onMessage.toString()}; |
| /** | |
| * more or less generic minimal static worker-pool implementation. | |
| * In order to not need any bookkeeping going on, workers must accept tasks | |
| * exactly as they are passed to `run()` and must respond with a single message | |
| * with the result. | |
| */ | |
| class WorkerPool { | |
| constructor(url, size) { | |
| this.workers = []; | |
| this.jobQueue = []; |
| #!/usr/bin/env node | |
| var fs = require('fs'), | |
| util = require('util'), | |
| spawn = require('child_process').spawn, | |
| stream = require('stream'); | |
| function dateString(date) { return date.toISOString().split('T')[0]; } | |
| function timeString(date) { return date.toTimeString().slice(0,5); } |
| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| // as usual, just make sure that – for multitasks – there always needs to be | |
| // an `options`-entry to correctly detect them | |
| copy: { | |
| options: {}, | |
| dist: { | |
| files: [{ | |
| // .... | |
| }] |
... Will update this page soon ...