This file contains 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
var jq = document.createElement('script'); | |
jq.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; | |
jq.onload = snorpey_getPaths; | |
document.body.appendChild(jq); | |
var snorpey_paths = []; | |
var snorpey_index = 0; | |
var snorpey_player; | |
function snorpey_getPaths() |
This file contains 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 node | |
// A BUILD SCRIPT WITH NODE.JS | |
// =========================== | |
// Most of the code is blatantly copied from this blog post by @millermedeiros: | |
// http://blog.millermedeiros.com/node-js-as-a-build-script | |
// NOTE | |
// This is a work in progress and I will likely add more functionality in the future. |
This file contains 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
// jQuery is required for this to work. | |
// based upon this stackoverflow answer: | |
// http://stackoverflow.com/a/13008597 | |
function getTransitionDuration( element, with_delay ) | |
{ | |
var el = $( element ); | |
var prefixes = 'moz webkit ms o khtml'.split( ' ' ); | |
var result = 0; | |
for ( var i = 0; i < prefixes.length; i++ ) |
This file contains 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
/*global define*/ | |
define( | |
function() | |
{ | |
var result; | |
var delta_x; | |
var delta_y; | |
var step_x; | |
var step_y; | |
var sign_dx; |
This file contains 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
/*global define*/ | |
define( | |
function() | |
{ | |
var i; | |
var len; | |
var multiplicator = 20; | |
var count; | |
var rgba; |
This file contains 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
/*global define*/ | |
define( | |
function() | |
{ | |
var result = { r: 0, g: 0, b: 0, a: 0 }; | |
var red_1, red_2, red_result; | |
var green_1, green_2, green_result; | |
var blue_1, blue_2, blue_result; | |
var alpha_1, alpha_2, alpha_result; | |
var type = 'array'; |
This file contains 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
/*global define*/ | |
define( | |
function() | |
{ | |
function brightness( color ) | |
{ | |
// (R+R+B+G+G+G)/6 | |
return ( color[0] + color[0] + color[1] + color[2] + color[2] + color[2] ) / 6; | |
} |
This file contains 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
/*global define*/ | |
define( | |
function() | |
{ | |
function greyscaleImageData( image_data ) | |
{ | |
var data = image_data.data; | |
var len = image_data.data.length; | |
var i = 0; | |
var brightness; |
This file contains 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
# this command uses the 3d mesh converter to convert wrl files to stl files. | |
# http://www.cs.princeton.edu/~min/meshconv/ | |
ls | grep ".wrl" | xargs -i meshconv.exe {} -c stl |
This file contains 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
# this converts x3db files into vrml files | |
# a few notes: | |
# 1. run this in a unix-like shell (like the one that comes with git) on windows | |
# 2. aopt.exe comes is bundled with the instant reality player ( http://www.instantreality.org/downloads/ ) | |
ls | grep ".x3db" | xargs -i /C/Program\ Files/Instant\ Reality/bin/aopt.exe -i {} -v "{}".wrl |
OlderNewer