Skip to content

Instantly share code, notes, and snippets.

View moduscreate's full-sized avatar

Modus Create moduscreate

View GitHub Profile
require('./AbstractTask');
Ext.define('tasks.GetSenchaProjectName', {
extend : 'tasks.AbstractTask',
singleton : true,
run : function() {
var me = this,
file = 'html5/app.json',
jsonData;
@moduscreate
moduscreate / gist:7545725
Created November 19, 2013 13:56
Prototype gluecode CLI for Sencha & Cordova projects
#!/usr/local/bin/node
var die = function(msg) {
msg && console.log(msg);
process.exit(code=1);
};
var sys = require('sys'),
fs = require('fs'),
#!/usr/local/bin/node
var sys = require('sys'),
fs = require('fs'),
console = require('console'),
exec = require('child_process').exec;
var target = "testing",
cdvRoot = 'cdv',
cdvSrc = cdvRoot + '/www.orig',
(function () {
with(this[2]) {
with(this[1]) {
with(this[0]) {
return function (event) {
showordermenubycategory(220, 'Rice/Noodles')
};
}
}
}
Ext.define('AW.view.Skybox', {
extend : 'Ext.Container',
xtype : 'skybox',
config : {
height : 153,
layout : 'hbox',
cls : 'skybox',
stories : undefined,
items : [
jay:html5 jgarcia$ sencha app build testing
Sencha Cmd v3.1.2.342
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
/*
This file is generated and updated by Sencha Cmd. You can edit this file as
needed for your application, but these edits will have to be merged by
Sencha Cmd when it performs code generation tasks such as generating new
models, controllers or views and when running "sencha app upgrade".
Ideally changes to this file would be limited and most work would be done
in other places (such as Controllers). If Sencha Cmd cannot merge your
changes and its generated code, it will produce a "merge conflict" that you
will need to resolve manually.
@moduscreate
moduscreate / gist:5469322
Created April 26, 2013 18:23
Ext.ux.ActionList and Ext.ux.ActionListItem classes for Sencha Touch 2.2 in Action
/** CSS
.flexbox {
display : -webkit-box;
height : 47px;
background-color : rgb(231, 231, 231);
-webkit-box-shadow : inset 0 5px 5px #888;
}
.opaque-list-item {
@moduscreate
moduscreate / gist:5469318
Created April 26, 2013 18:23
Sencha Touch in Action CH10 extension
/** CSS
.flexbox {
display : -webkit-box;
height : 47px;
background-color : rgb(231, 231, 231);
-webkit-box-shadow : inset 0 5px 5px #888;
}
.opaque-list-item {
@moduscreate
moduscreate / gist:5400389
Created April 16, 2013 22:59
Ext.Base.prototype.callSuper documentation
/**
* This method is used by an override to call the superclass method but bypass any
* overridden method. This is often done to "patch" a method that contains a bug
* but for whatever reason cannot be fixed directly.
*
* Consider:
*
* Ext.define('Ext.some.Class', {
* method: function () {
* console.log('Good');