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
class Marionette.ItemViewService extends Marionette.ItemView | |
constructor: (options) -> | |
_.extend @, new Marionette.Service | |
return Marionette.ItemView.call(this, options) |
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
drool = require('drool') | |
assert = require('assert') | |
driver = drool.start | |
chromeOptions: 'no-sandbox' | |
drool.flow({ | |
repeatCount: 5 | |
setup: -> | |
driver.get('http://localhost:3000') |
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
class Behaviors.Scrollspy extends Marionette.Behavior | |
initialize: (options) -> | |
@options.onEnter = options.onEnter | |
@options.onLeave = options.onLeave | |
@options.container = options.container or @options.container | |
return | |
onDomRefresh: -> | |
$el = @view.$el |
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
}(this), define("../bower_components/requirejs/require", function() {}), requirejs.config({ | |
baseUrl: "https://static.baboom.com/d/prod/src", | |
paths: { | |
mout: "../bower_components/mout/src", | |
"events-emitter": "../bower_components/events-emitter/src", | |
address: "../bower_components/address/src", | |
text: "../bower_components/requirejs-text/text", | |
json: "../bower_components/requirejs-plugins/src/json", | |
has: "../bower_components/has/has", | |
jquery: "../bower_components/jquery/dist/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
#!/bin/sh | |
nohup sudo node index.js >/dev/null 2>&1 & | |
nohup grunt >/dev/null 2>&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
Git = require('nodegit') | |
pathToRepo = require('path').resolve(process.cwd()) | |
module.exports = (socket, options) -> | |
Git.Repository.open(pathToRepo) | |
.then(getStatus) | |
.then (list) -> | |
console.log list | |
getStatus = (repository) -> |
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
@collection.fetch().done => | |
@layout.getRegion('main').show new ListView | |
collection: @collection |
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
class window.Behaviors.Socket extends Marionette.Behavior | |
onRender: -> | |
console.log 'asd' |
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
class RowView extends Marionette.ItemView | |
tagName: 'tr' | |
template: require './row.hbs' | |
behaviors: | |
Socket: true |
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
Marionette.Behaviors.behaviorsLookup = -> | |
return window.Behaviors = {} |