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
define(['moduleA.js'], function(ModuleA){ | |
return { | |
"test1": function (test) { | |
// run test on ModuleA | |
}, | |
"test2": function (test) { | |
// run test on ModuleA | |
}, |
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
head | |
meta(charset="utf-8") | |
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1") | |
title= title | |
link(rel='stylesheet', href='/public/js/libs/qunit/qunit.css') | |
script(src="/public/js/libs/qunit/qunit.js") | |
script(data-main="/public/js/app-test", src="/public/js/libs/require/require.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
define([ | |
'jQuery', | |
'Underscore', | |
'Backbone', | |
'modules/feed', | |
'modules/files', | |
'modules/members', | |
'modules/misc/GBL', | |
'modules/misc/lightbox' | |
], function($, _, Backbone, Feed, Files, Members, GBL, Lightbox){ |
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
// ROUTES | |
var Routes = Backbone.Router.extend({ | |
// Route Definitions | |
routes: { | |
'' : 'feed', | |
'feed' : 'feed', | |
'files' : 'files', | |
'members' : 'members', | |
':view/:itemID' : 'viewItem', |
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
// ROUTES | |
var Routes = Backbone.Router.extend({ | |
// Route Definitions | |
routes: { | |
'' : 'feed', | |
'feed' : 'feed', | |
'files' : 'files', | |
'members' : 'members', | |
':view/:itemID' : 'viewItem', |
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
/** | |
* 'UpdateDuplicateData' | |
* | |
* Used to update user data on all models that it is duplicated on | |
* | |
* @param {object} User The main user model | |
* @param {object} changes An object containing the changed user attributes | |
* @param {Function} cb Callback - function(err){} | |
* | |
*/ |
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
(function($){ | |
$.print_r = (function(){ | |
var depth = 0; | |
var render = function(o){ | |
var str='', | |
indent = (function(){ | |
var res=""; | |
for(var i=0; i<depth*4; i++){ res+=' ' }; | |
return res; |
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
#======================================== | |
# Static Asset Build Makefile | |
# | |
# Author: Wilson Page | |
#======================================== | |
# Shortcuts | |
build-tools = build/tools/ | |
css-dir = static/css/ |
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
.overlay { | |
background: #333; | |
border: solid 1px; | |
border-color: #666 #222 #111 #555; | |
border-radius: 10px; | |
box-shadow: | |
0px 0px 18px rgbA(0,0,0,0.28), | |
1px 1px 6px rgbA(0,0,0,0.2), | |
inset 0px 3px 6px rgbA(255,255,255,0.1); | |
} |
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
#overlay-container { | |
display: none; /* hidden by default */ | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; | |
-webkit-box-orient: horizontal; |