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'
someSceneViewThing: SC.View.extend({
childViews: 'tab'.w(),
tab: SC.TabView.extend({
layout: { left: 10, top: 10, right: 10, bottom: 10 },
nowShowingBinding: 'yourApp.path.nowShowing',
items: [ { title: "_Title".loc(), value: 'yourApp.path'},
{ title: "_Title".loc(), value: 'yourApp.path'},
{ title: "_Title".loc(), value: 'yourApp.path'} ],
itemTitleKey: 'title',
itemValueKey: 'value',
YourCustomView = SC.View.extend({
yourArrayOfContent: [],
contentKey: 'foo',
createChildViews: function () {
var key = this.get('contentKey');
var kids = this.get('yourArrayOfContent');
var self = this;
var childViews = [];
// ==========================================================================
// Project: FamilyTies.Family
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals FamilyTies */
/** @class
(Document your Model here)
var person = SC.Object.create({
firstName: 'John',
lastName: 'Smith',
fullName: function () {
var first = this.get('firstName');
var last = this.get('lastName');
return '%@ %@'.fmt(first,last);
}.property('firstName','lastName').cacheable()
});
person.get('firstName'); // 'John'
var fr = YourApp.getPath('bodyPage.mainPane.firstResponder');
if (fr && fr.commitEditing) { fr.commitEditing(); }
YourApp.yourController.create({
myNewAction: function (view,somethingThatIcannotRemember) {
console.log('woo');
}
});
SC.ButtonView.design({
target: YourApp.yourController,
action: 'myNewAction'
})
#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;
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,
var CompanySchema = new CoreRecord({
name: String,
ips: [String],
reports: [{type: CoreRecord.ObjectId, ref: 'Report'}]
});
exports.Company = CoreScrappy.model('Company',CompanySchema);