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
cannedServer = (fakeServerDir) -> | |
canPort = 3000 | |
can = canned(fakeServerDir, { cors: true, logger: process.stdout }) | |
http.createServer(can).listen(canPort) | |
console.log 'Canned listening at port ' + canPort | |
task 'server', 'start the brunch server in development', (options) -> | |
# ... | |
cannedServer 'cans' |
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
http = require 'http' | |
https = require 'https' | |
fs = require 'fs' | |
path = require 'path' | |
{spawn, exec} = require 'child_process' | |
semver = require 'semver' | |
AdmZip = require('adm-zip') | |
GitHubApi = require 'github' | |
canned = require 'canned' |
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
color codeschool | |
set guifont=Source\ Code\ Pro\ Light:h14 | |
let g:NERDTreeWinPos = "right" | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <% %> correctly | |
:set cpoptions+=$ " puts a $ marker for the end of words/lines in cw/c$ commands |
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
// Update LinkView to allow data attributes | |
Em.LinkView.reopen({ | |
init: function() { | |
this._super(); | |
var self = this; | |
Em.keys(this).forEach(function(key) { | |
if (key.substr(0, 5) === 'data-') { | |
self.get('attributeBindings').pushObject(key); | |
} | |
}); |
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
March 2014 | |
Promises/RSVP - Dan | |
Ember + Bootstrap Components - Brett/Mark | |
Lightening Round? - Anyone | |
Future | |
Containers | |
Computed Macros (custom) |
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
Ember.Test.registerAsyncHelper('submitForm', | |
function(app, selector, context) { | |
var $el = findWithAssert(selector, context); | |
Ember.run(function() { | |
$el.submit(); | |
}); | |
} | |
); | |
// Example Usage |
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
import Search from 'appkit/libs/search'; | |
module('Unit: lib/search', { | |
setup: function() {}, | |
teardown: function() {} | |
}); | |
test('ajaxData', function() { | |
var search = Search.create(); | |
var ad = search.get('ajaxData'); |
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
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>'); | |
Ember.testing = true; | |
window.startApp = require('appkit/tests/helpers/start-app')['default']; | |
window.isolatedContainer = require('appkit/tests/helpers/isolated-container')['default']; | |
window.fakeServer = require('appkit/tests/helpers/fake-server')['default']; | |
function exists(selector) { | |
return !!find(selector).length; |
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 EmbedBtnDropdownComponent = Ember.Component.extend({ | |
classNames: 'return-types', | |
actions: { | |
embedItem: function(returnType) { | |
this.sendAction('embedItem', returnType); | |
} | |
} | |
}); |
OlderNewer