View .gitignore
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
/node_modules |
View gist:5814668
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
Tested in: | |
- [ ] Node.js | |
- [ ] Chrome | |
- [ ] FireFox | |
- [ ] Safari | |
- [ ] IE 11 | |
- [ ] IE 10 | |
- [ ] IE 9 | |
- [ ] IE 8 |
View require.config.js
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 CryptoJS = CryptoJS || (function (Math, undefined) {^M | |
^M | |
return C;^M | |
}(Math));^M | |
define("cryptojs", (function (global) { | |
return function () { | |
var ret, fn; | |
return ret || global.CryptoJS; | |
}; |
View gist:4946347
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
TinCan.enableDebug(); | |
var tincan = new TinCan ( | |
{ | |
recordStores: [ | |
{ | |
endpoint: "https://cloud.scorm.com/ScormEngineInterface/TCAPI/public/", | |
auth: "" // Base64 encoded string that looks like "test:password" | |
} | |
] |
View gist:4757128
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
Y.io( | |
"/pdl/api/guest/user", | |
{ | |
method: "POST", | |
headers: { | |
"Accept": "application/json", | |
"Content-Type": "application/json" | |
}, | |
data: Y.JSON.stringify( | |
{ |
View gist:4185943
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 Clazz = Y.namespace("OCLC.W.Cart.ML.Lines").Base = Y.Base.create( | |
"oclc-cart-ml-lines-base", | |
Y.ModelList, | |
[], | |
{ | |
model: Y.OCLC.W.Cart.M.Line.Base, | |
initializer: function () { | |
Y.log("initializer", "debug", Clazz.NAME); | |
View build.js
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 | |
var gear = require('gear'); | |
new gear.Queue( | |
{ | |
registry: new gear.Registry( | |
{ | |
module: 'gear-lib' | |
} |
View gist:3667321
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
// assumes existence of Y.UserModel | |
YUI.add('user-view', function (Y) { | |
Y.UserView = Y.Base.create('userView', Y.View, [ Y.ModelConsumer ], { | |
template: Y.Handlebars.templates['user'], | |
initializer: function () { | |
var user = this.get('user'); |
View general.js
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
YUI.add( | |
"myapp-general", | |
function (Y) { | |
var Clazz = Y.namespace("MyApp").General = Y.Base.create( | |
"myapp-general", | |
Y.Widget, | |
[], | |
{ | |
initializer: function (config) { | |
Y.log("initializer", "debug", Clazz.NAME); |
View gist:2206497
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
YUI.add( | |
"custom-manage-m-supplier", | |
function (Y) { | |
var Clazz = Y.namespace("Bikes.Manage.M").Supplier = Y.Base.create( | |
"custom_manage_m_supplier", | |
Y.Bikes.Manage.M.Base, | |
[ Y.ModelRelate, Y.ModelRelateAutoGen ], | |
{}, | |
{ | |
ATTRS: { |