Skip to content

Instantly share code, notes, and snippets.

View moduscreate's full-sized avatar

Modus Create moduscreate

View GitHub Profile
@moduscreate
moduscreate / gist:5400167
Last active December 16, 2015 07:38
Ext.Base.prototype.callParent Comment issues & fixes
/**
* Call the "parent" method of the current method. That is the method previously
* overridden by derivation or by an override (see {@link Ext#define}).
*
* Ext.define('My.Base', {
* constructor: function (x) {
* this.x = x;
* },
*
* statics: {
@moduscreate
moduscreate / Ext.ux.AudioPlayer.js
Last active May 14, 2020 07:08
Super Simple Sencha Touch audio player component:
Ext.define('Ext.ux.AudioPlayer', {
extend : 'Ext.Container',
xtype : 'audioplayer',
config : {
url : null,
height : 40,
layout : {
var storeData = [
{ flavor : 'Vanilla', id : 0 },
{ flavor : 'Chocolate', id : 1 },
{ flavor : 'Strawberry', id : 2 },
{ flavor : 'Cherry', id : 3 },
{ flavor : 'BerryBlast', id : 4 },
{ flavor : 'Mint Chocolate Chip', id : 5 },
{ flavor : 'Double Chocolate', id : 6 }
];
Ext.define('AW.controller.Main', {
extend : 'Ext.app.Controller',
config : {
layout : 'card',
tags : undefined,
stories : undefined,
otherStories : undefined,
rawStories : undefined,
currentChannel : undefined,
p = new Ext.Panel({
renderTo : document.body,
itemId : 'mypanel',
height : 200,
width : 500,
frame : true
});
t = new Ext.form.field.Text({fieldLabel : 'meh'});
onScroll : function(scroller, X,Y) {
if (this.getLoading()) {
return;
}
var element = this.element,
cmpWidth = element.getWidth(),
innerElWidth = element.down('.x-inner').getWidth(),
scrollPct = (X / (innerElWidth - cmpWidth));
Ext.define('Ext.ux.FieldsetCollapser', {
extend : 'Ext.Component',
alias : 'plugin.fieldsetcollapser',
config : {
collapsed : false,
body : null,
indicatorEl : null,
initialCollapse : false,
bodyHeight : null
@media screen and (min-width: 517px) and (min-height: 778px) {
body {
background-color: #99F;
}
}
@media screen and (min-width: 784px) and (max-height: 1193px) {
body {
background-color: #F99;
@media all and (max-device-width: 800px) {
.global-toc .global-toc-featured-story .x-innerhtml {
border: 1px solid #F00;
}
}
@media all and (max-device-width: 600px) {
.global-toc .global-toc-featured-story .x-innerhtml {
border: 1px solid #0F0;
}
x="a.b.c"; y="d.e"; z="b.c"; echo $x | sed -e "s/${z}/$y/g"