This file contains hidden or 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
Ext.require([ | |
'Ext.data.*', | |
'Ext.panel.Panel', | |
'Ext.layout.container.Card', | |
'Ext.tip.QuickTipManager' | |
]); | |
Ext.define('Customer', { | |
extend: 'Ext.data.Model', | |
fields: [{ |
This file contains hidden or 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 organisation | |
*/ | |
exports.update = function (req, res, next) { | |
var org = req.organisation; | |
org = _.extend(org, req.body); | |
org.save(function (err, org){ | |
if ( err ) return next(err); | |
res.json({ |
This file contains hidden or 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
$ sudo nano /private/etc/hosts |
This file contains hidden or 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
$ dscacheutil -flushcache |
This file contains hidden or 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
init: function () { | |
this.control({ | |
'gridpanel[controlledByTabMaster=true]': { | |
render: this.onRender | |
} | |
}); | |
}, |
This file contains hidden or 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
[core] | |
ignorecase = true |
This file contains hidden or 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 config --global core.ignorecase false |
This file contains hidden or 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
items: [ | |
{ | |
xtype: 'toolbar', | |
title: ' ', // if left blank this causes an issue on iPhone | |
docked: 'top', | |
cls: ['top', 'noBorder'], | |
items: [{ | |
text: 'Orders', | |
cls: 'back-button', | |
itemId: 'back' |
This file contains hidden or 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
/** | |
* Offline Proxy | |
* @extend Ext.data.proxy.Ajax | |
*/ | |
Ext.define('proxy.OfflineProxy', { | |
extend: 'Ext.data.proxy.Ajax', | |
alias: 'proxy.offline', | |
config: { |
This file contains hidden or 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
Ext.define('School.model.Student', | |
{ | |
extend: 'Ext.data.Model', | |
requires:['School.model.Course'], | |
idProperty : 'id', | |
fields : [{ | |
name : 'id', | |
type : 'int' | |
}, | |
{ |
OlderNewer