Skip to content

Instantly share code, notes, and snippets.

-> % grunt exec
Running "exec:server" (exec) task
>> DEBUG: Running node-supervisor with
>> DEBUG: program 'src/server/main.coffee'
>> DEBUG: --watch '.'
>> DEBUG: --ignore 'undefined'
>> DEBUG: --extensions 'node|js|coffee|litcoffee'
>> DEBUG: --exec 'coffee'
@sevifives
sevifives / gist:6012096
Created July 16, 2013 19:56
dependencies
scripts = {
'_bootstrap': [ 'config', 'creators/inline', 'creators/themedui', 'editable', 'ckeditor', 'plugins', 'scriptloader', 'style', 'tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'dom/comment', 'dom/elementpath', 'dom/text', 'dom/rangelist', 'skin' ],
'ckeditor': [ 'ckeditor_basic', 'dom', 'dtd', 'dom/document', 'dom/element', 'dom/iterator', 'editor', 'event', 'htmldataprocessor', 'htmlparser', 'htmlparser/element', 'htmlparser/fragment', 'htmlparser/filter', 'htmlparser/basicwriter', 'template', 'tools' ],
'ckeditor_base': [],
'ckeditor_basic': [ 'editor_basic', 'env', 'event' ],
'command': [],
'config': [ 'ckeditor_base' ],
'dom': [],
'dom/comment': [ 'dom/node' ],
'dom/document': [ 'dom/node', 'dom/window' ],
and: [
{firstName: 'John', lastName: 'Doe'},
function () { return true }
]
@sevifives
sevifives / gist:3717076
Created September 13, 2012 19:45
target action eventing
App.myFunView = SC.View.extend({
triggerABinding: function () {
console.log('huzzah!')
},
createChildViews: function () {
var cvs = [], cv;
cv = this.createChildView(SC.ButtonView,{
YourApp.someArrayController = SC.ArrayController.create({
someAction: function (x,y) {
var sel = this.getPath('selection');
}
});
// parent view code
something: SC.ListView.extend({
contentBinding: 'YourApp.someArrayController.content',
selectionBinding: SC.Binding.from('YourApp.someArrayController.selection').single(),
/**
<div id='range'>
<div id='cell-thing'></div>
</div>
**/
ShaderState = SC.State.design({
initialSubState: 'firstState',
jumpToFirst: function () {
SC.View.extend({
displayProperties: 'content'.w(),
mouseDown: function (evt) {
var target = evt.originalTarget || evt.target;
if (target.id === 'my-fake-button') {
// send an event
}
},
var CompanySchema = new CoreRecord({
name: String,
ips: [String],
reports: [{type: CoreRecord.ObjectId, ref: 'Report'}]
});
exports.Company = CoreScrappy.model('Company',CompanySchema);
SC.ListItem.extend({
contentBinding: SC.Binding.from('YourApp.yourDynamicArrayController'),
exampleView: YourApp.CustomListItemView.extend({
staticDataBinding: SC.Binding.oneWay('YourApp.yourStaticDataController')
})
})
YourApp.CustomListItemView = SC.ListItemView.extend({
staticData: null,
#header,#header-bottom,.dashboard-item-header h3 {background-color: #2d729e !important;}
#header-bottom {border-top: none;}
#header-bottom #main-nav li.aui-dd-parent {background-color: #003f67;}
.aui-dd-parent span.drop-wrap a.drop
{
display: block !important;