View JSONParseAsync.js
function JSONParseAsync( text, callback ) {
var code = 'onmessage = function ( e ) { postMessage( JSON.parse( e.data ) ); close(); }';
var blob = new Blob( [ code ], { type: 'text/plain' } );
var worker = new Worker( window.URL.createObjectURL( blob ) );
worker.addEventListener( 'message', function ( e ) { callback( e.data ); } );
worker.postMessage( text );
}
View Layers.js
/**
* @author mrdoob / http://mrdoob.com/
*/
function Layers() {
this.mask = 1;
}
View html2canvas.js
/**
* @author mrdoob / http://mrdoob.com/
*/
function html2canvas( element ) {
var range = document.createRange();
function getRect( rect ) {
View gist:f2ccd368ff773752634e
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
viewer.addEventListener( 'load', function ( event ) {
viewer.contentWindow.innerWidth -= 10;
viewer.contentWindow.innerHeight -= 2;
} );
}
View gist:a021c0c5ea229f6641da
/**
* @author mrdoob / http://mrdoob.com/
* @author mikael emtinger / http://gomo.se/
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
*/
THREE.Object3D = function () {
this.id = THREE.Object3DIdCount ++;
View gist:4132ef6c84185a3ebe37
Adam Leeper
Aditya Sawant
Adria2
Akash Manohar J
Aki
Aleksandar Rodic
Alessandro Piva
Alex
Alex Kogan
Alex Schworer
View gist:9584455
define( [ 'WebGLRendererModule' ], function ( renderer ) {
return function () {
return new FRAME.Module( {
parameters: {
color: new FRAME.ModuleParameter.Color( 'Color', 0xffffff ),
opacity: new FRAME.ModuleParameter.Float( 'Opacity', 1, 0, 1 )
View Default Google Cloud Storage Access logs schema
time_micros:integer,c_ip:string,c_ip_type:integer,c_ip_region:string,cs_method:string,cs_uri:string,sc_status:integer,cs_bytes:integer,sc_bytes:integer,time_taken_micros:integer,cs_host:string,cs_referer:string,cs_user_agent:string,s_request_id:string,cs_operation:string,cs_bucket:string,cs_object:string
View gist:5245098
// firefox
document.addEventListener( 'visibilitychange', function ( event ) {
if ( document.hidden === false ) {
lastTime = performance.now();
}