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
Creating build ... [34mdone[39m | |
Deploying build ... | |
[33m===> [39mReady to Extract Tape Archive... (spinning up read head and platter) | |
[32m===> Released [39mindex.html | |
[32m===> Released [39mbower_components/angular/.bower.json | |
[32m===> Released [39mGruntfile.js | |
[32m===> Released [39m.DS_Store | |
[32m===> Released [39mbower_components/angular/bower.json | |
[32m===> Released [39mbower_components/jquery/jquery-migrate.js |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta name="robots" content="NONE,NOARCHIVE" /> | |
<title>PublicSuffix::DomainInvalid at /apps</title> | |
<style type="text/css"> | |
html * { padding:0; margin:0; } | |
body * { padding:10px 20px; } | |
body * * { padding:0; } |
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
nv = env\n</li>\n \n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')"> before\n</li>\n \n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')"> @app_response = @app.call(@env)\n</li>\n \n </ol>\n \n\n <ol start="25" class="context-line">\n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')"> after || @app_response<span>...</span></li></ol>\n\n \n <ol start=\'26\' class="post-context" id="post70352448150660">\n \n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')"> end\n</li>\n \n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')">\n</li>\n \n <li onclick="toggle(\'pre70352448150660\', \'post70352448150660\')"> # @abstract\n</li>\n \n |
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
// Module definition | |
// inject <~~ that's how you declare a module file injectable for Injector | |
exports.YourModule = function () { | |
return function () { | |
console.log('in my injectable module'); | |
}; | |
}; |
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
// Module definition | |
module.exports = function () { | |
console.log('in my module'); | |
}; | |
///////////////////////////////////////////////////////////////// | |
// Somewhere else in your codebase |
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 SomeModule = require('../../some/directory/module'); | |
// Perform tests on SomeModule here |
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 (foo, callback) { | |
process.nextTick(function() { | |
var error = null, data; | |
try { | |
data = JSON.parse(foo); | |
} | |
catch (ex) { | |
error = ex; | |
} |
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 wrapper to avoid creating a new deferred in every function | |
using the Q (http://documentup.com/kriskowal/q) library. | |
*/ | |
// Wrapper Function | |
function _q (callback) { | |
return function () { | |
var deferred = Q.defer(), | |
args = [].slice.call(arguments, 0); |
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
// I encourage you to attach all these views to a global object named 'App' | |
/* | |
// You should put this in the index.html file towards the top | |
window.App = {}; | |
*/ | |
// This is better because then it's now attached to the global namespace | |
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
define( | |
[ | |
// Dependencies | |
'text!someTemplate.html' | |
], | |
function(someTemplateTpl){ | |
return Backbone.View.extend({ | |
// Set the id if you are creating this element from scratch | |
// If the element already exists, use el: '#someView' to |