Created
June 6, 2011 11:15
-
-
Save iaincarsberg/1010078 to your computer and use it in GitHub Desktop.
state-of-te
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
[ | |
"thorny math vector2", | |
"./config/other.json" | |
] |
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 window*/ | |
(function ($, undefined) { | |
$.fn.something = function () { | |
// Modular code. | |
}; | |
}(window.jQuery)); |
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 require console*/ | |
require('./thorny/base')('thorny math vector2')(function ($) { | |
var | |
v1 = $('thorny math vector2').factory(1, 2), | |
v2 = $('thorny math').find('vector2').factory(3, 4), | |
v3 = $('thorny').find('math').find('vector2').factory(5, 6), | |
v4 = $.find('thorny').find('math').find('vector2').factory(7, 8); | |
console.log( | |
v1, | |
v2, | |
v3, | |
v4 | |
); | |
}); |
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
require('./thorny/base')('thorny math vector2')(function ($) { | |
... |
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
require('./thorny/base')('./config/default.json', 'thorny some cool feature')(function ($) { | |
... |
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 window*/ | |
(function (module) { | |
module.exports.factory = function (x, y) { | |
return { | |
x: x, | |
y: y | |
}; | |
}; | |
}((typeof window === 'undefined') ? module : window.thorny_path('./thorny/common/math/vector2'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment