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
/** | |
* @jonobr1 / http://jonobr1.com/ | |
*/ | |
(function() { | |
var root = this; | |
var previousSound = root.Sound || {}; | |
var ctx, analysis, has; |
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() { | |
var root = this; | |
var previousXhr = root.xhr || {}; | |
var xhr = root.xhr = { | |
noConflict: function() { | |
root.xhr = previousXhr; | |
return xhr; |
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
/** | |
* Simple Node.js script to turn a specific page on a Google Sheet | |
* into a JSON object for the main purpose of HTML Templating. | |
* | |
* @author jonobr1 / http://jonobr1.com | |
* | |
*/ | |
var https = require('https'); | |
var path = require('path'); |
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
set dFolder to "~/Desktop/screencapture/" | |
do shell script ("mkdir -p " & dFolder) | |
set i to 0 | |
repeat 960 times | |
do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
delay 30 -- Wait for 30 seconds. | |
set i to i + 1 | |
end repeat |
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
/** | |
* Port of Penner Easing Equations into human legible dot-notation syntax. | |
* | |
* @author Robert Penner / http://robertpenner.com/easing/ | |
* @author jonobr1 / http://jonobr1.com/ | |
* | |
* License: http://robertpenner.com/easing_terms_of_use.html | |
* | |
*/ | |
(function() { |
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
TWEEN.Easing.Seat = { | |
In: function(t) { | |
return Math.pow(t - 1, 3) + 1; | |
}, | |
Out: function(t) { | |
return Math.pow(t, 3); | |
}, | |
InOut: function(t) { | |
return (Math.pow(2 * t - 1, 3) + 1) / 2; | |
} |
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
/* | |
* Base class | |
*/ | |
(function() { | |
var root = this; | |
var previousBase = root.Base || {}; | |
var foo = 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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"detect_indentation": true, | |
"draw_white_space": "all", | |
"font_face": "Monaco", | |
"font_size": 12.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"All Autocomplete", |
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 getPointOnCurve(v1, c1, c2, v2, t) { | |
return { | |
x: bezierPoint(t, v1.x, c1.x, c2.x, v2.x), | |
y: bezierPoint(t, v1.y, c1.y, c2.y, v2.y) | |
}; | |
} | |
function bezierPoint(t, o1, c1, c2, e1) { |
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
/** | |
* Interpret any valid css string as an r, g, b, (a) object. | |
* If nothing found then it returns an object that is black with | |
* no alpha. | |
* | |
* Usage: interpret('red'); // { r: 1, g: 0, b: 0 }; | |
* interpret('#f00'); // { r: 1, g: 0, b: 0 }; | |
* interpret('#ff000'); // { r: 1, g: 0, b: 0 }; | |
* interpret('rgb(255, 0, 0)'); // { r: 1, g: 0, b: 0 }; | |
* interpret('rgba(255, 0, 0, 1)'); // { r: 1, g: 0, b: 0, a: 1 }; |