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
App.Views.Base = Backbone.View.extend({ | |
templateName: null, | |
render: function(){ | |
var data; | |
if(this.templateName !== null){ | |
if(this.model !== null){ | |
data = this.model.toJSON() |
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
var module = (function(){ | |
var privateNum = 10; | |
function privateFn(){ | |
return privateNum * 2; | |
} | |
function publicFn(){ | |
return privateFn(); | |
} |
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 ctx = document.getElementById('draw-canvas').getContext('2d'), | |
penX = [], | |
penY = [], | |
saveStates = [], | |
drawOn = false, | |
trackingInitialized = false, | |
canvasWidth, canvasHeight; | |
ctx.strokeStyle = '#000'; |
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 shift(){ | |
var yLen = mx.length, | |
row; | |
if(yLen > 0){ | |
row = mx[0]; | |
if(row.length > 0){ | |
return row.shift(); | |
}else{ |
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
//searches the matrix for x and y pixel position using binary search | |
function find(x, y){ | |
var rowData = binarySearch(mx, 0, mx.length - 1, 'y', this.ySize, y); | |
var colData = binarySearch(rowData.x, 0, rowData.x.length - 1, 'x', this.xSize, x); | |
return colData; | |
} | |
function binarySearch(arr, start, stop, bottomBoundKey, size, val){ | |
var midpoint, data, midBottomBound, midTopBound; |
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
App.Views.Base = Backbone.View.extend({ | |
templateName: null, | |
model: null, | |
render: function(options){ | |
var data; | |
if(this.templateName !== null){ | |
if(this.model !== null){ | |
data = this.model.toJSON() |
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
//--------------------------------------------- | |
// ************** Sonifizer.js ************** | |
//--------------------------------------------- | |
// http://www.Sonifizer.com/Sonifizer.js | |
//--------------------------------------------- | |
// Andrew Madden | |
//--------------------------------------------- | |
var Sonifizer_Base_URL = "http://www.Sonifizer.com"; |
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
// //--------------------------------------------- | |
// // ************** Sonifizer.js ************** | |
// //--------------------------------------------- | |
// // http://www.Sonifizer.com/Sonifizer.js | |
// //--------------------------------------------- | |
// // Andrew Madden | |
// //--------------------------------------------- | |
// var Sonifizer_Base_URL = "http://www.Sonifizer.com"; |
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 createLinkGetter(linkProcessFn) { | |
return function(url) { | |
asyncFetch(url, linkProcessFn); | |
}; | |
} | |
function createLinkProcessor(fetchPageFn) { | |
return function(links) { | |
for(var i = 0; i < links.length; i++) { | |
fetchPageFn(links[i]); |
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() { | |
function extend(obj, props) { | |
} | |
function inherits(Parent, Child) { | |
function Proxy() { | |
this.constructor = Child; | |
} |
OlderNewer