Here's the project structure:
project
|--main/
config.js
app.js
|--subproject/
app.js
| { | |
| "caret_style": "wide", | |
| "color_scheme": "Packages/Color Scheme - Default/GrandsonOfObsidian.tmTheme", | |
| "font_face": "Source Code Pro light", | |
| "font_size": 19.0, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "save_on_focus_lost": true, |
| /* Pattern for OOP in JavaScript */ | |
| //TODO see if safe way to add inheritsFrom to Function | |
| var should = require('should'); | |
| function inherit(C, P){ | |
| var F = function(){}; //intermediary function between Parent and Child | |
| F.prototype = P.prototype; //link intermediary function to Parent | |
| var funcs = C.prototype; //keep track of any existing functions on the Child prototype | |
| C.prototype = new F(); //link child to intermediary function | |
| for (var attrname in funcs) { |
| <Response> | |
| <Play>http://stark-eyrie-7115.herokuapp.com/cmm.mp3</Play> | |
| </Response> |
| /* | |
| How to use Angular inside a Backbone view. | |
| */ | |
| var ViewWithAngular = Backbone.View.extend({ | |
| render: function(container){ | |
| var $injector = angular.injector(['ng', 'mason']); | |
| $injector.invoke(function($rootScope, $compile){ | |
| var elem = $compile('<h1 ng-controller="NestedCtrl">Backbone View with nested Angular. Message: {{message}}</h1>')($rootScope); |
| alert('ha!'); |
| <h1>Inner</h1> | |
| <img src="http://www.21stcenturytiger.org/wp-content/blogs.dir/2/files/home-page/malayan_adrianotavano_zoomaimi2_2012.jpg"/> |
| var expect = chai.expect; | |
| describe('services', function(){ | |
| var goat, monkey, monkey2, Donkey, tiger1, tiger2, lion; | |
| beforeEach(function(){ | |
| //load the module | |
| module('app'); | |
| //configure providers |
| alert('test mercutio'); |
| tell application "System Events" | |
| keystroke "s" using command down | |
| end tell | |
| tell application "Google Chrome" to tell the first «class CrTb» of its first window | |
| «event CrSuRlod» | |
| end tell | |
| tell application "Google Chrome" to set «class acTI» of first window to 1 |
Here's the project structure:
project
|--main/
config.js
app.js
|--subproject/
app.js