Skip to content

Instantly share code, notes, and snippets.

View manduks's full-sized avatar
🥷
Working from home

Armando Gonzalez manduks

🥷
Working from home
View GitHub Profile
/**
* @class App.view.GridPanel
* @extends Ext.grid.Panel
* @author Armando Gonzalez iam@armando.mx
* Esta es la definicion del grid que creara nuestro tablero de minas.
*/
Ext.define('App.view.GridPanel', {
extend: 'Ext.grid.Panel',
alias :'widget.minegrid',
num : 8, // inicialmente el trablero consta de 8 x 8 minas y esta es la variable que modificaremos para aumentar o disminuir el tablero
/**
* This is the main code for the application
*/
Ext.Loader.setConfig({
enabled:true
});
Ext.application({
name: 'App',
@manduks
manduks / designer.html
Created December 31, 2014 03:38
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
/* Used for bulk edit. Updates timelines from csv rows
* @key [String] Array of header/field names from csv
* @rows [[String]] Array of rows. Each row is array of field values
*/
timelineSchema.statics.updateFromArray = function (key, rows, clientEngagementId, callback) {
var counter = rows.length, errors = [];
var keyLength = key.length;
var model = this,
indexKey,
entry = {},
configureSpotfire : function (props, url) {
var me = this,
baseUrl = TopBox.Util.globalURL + '/analytics/',
customization,
onError,
onOpened;
customization = new spotfire.webPlayer.Customization();
customization.showTopHeader = false;
customization.showToolBar = false;
{
otherProps: { //this gets store to clientmetadatas collection
csvFileName: '20160205-143141-Optum-EI-ACQ.csv',
fileName: 'https://s3.amazonaws.com/topbox-extract-alorica-optumrx/optumrx-1/audio/203284002520160204-transcoded.mp3',
customerAddressZip: '117',
customerPhoneAreaPrefix: '631648',
date: '2/4/16 9:34:30',
duration: 310,
agentDispositionName: 'Inbound No scripts to Convert',
agentName: 'Patricia Henderson',
{
headers: [
'csvFileName',
'fileName',
'customerAddressZip',
'customerPhoneAreaPrefix',
'date',
'duration',
'agentDispositionName',
'agentName',
Ext.define("TopBox.view.plugin.NAField", {
extend: "Ext.AbstractPlugin",
alternateClassName: "Ext.ux.form.field.Icon",
alias: ["plugin.saki-ficn", "plugin.ux-ficn"],
iconBaseCls: "fa",
iconCls: "fa-info-circle",
iconMode: "font",
iconColor: "#5278FF",
iconWidth: 16,
iconHeight: 16,
@manduks
manduks / tpl
Created November 14, 2016 16:18
{
xtype : 'component',
cls : 'data',
itemId: 'observationSummary',
tpl :[
'<span class="prop">TopBox ID:</span><span class="value">{version}</span>',
'<tpl if="false">',
'<span class="prop js-pkey-label pkey">{pkeyLabel}:</span><span class="value js-pkey-value">{pkey}</span>',
'</tpl>',
'<span class="prop">Agent:</span><span class="value">{agent}</span>'
temperature.on('medir', function () {
led.turnOn();
}, 23);
light.on('medir', function () {
ledRGB1.turnOn('#FF0000');
}, 12);
humidity.on('medir', function () {
ledRGB2.blink('#00FF00');
}, 12);
distance.on('medir', function () {