Skip to content

Instantly share code, notes, and snippets.

@djam90
djam90 / gist:79389bb82696b082b83da701e12373ef
Created May 16, 2018 12:59
Updated microloader for Ext.js 6.5 to fix Cordova issue
var Ext = Ext || { }; Ext.manifest = Ext.manifest || "app.json";// @tag core
// @define Ext.Boot
var Ext = Ext || {};
//<editor-fold desc="Boot">
/**
* @class Ext.Boot
* @singleton
* @private
@djam90
djam90 / index.js
Created September 15, 2017 20:48
Slack timezones
const express = require('express')
const app = express()
const port = 3001
const moment = require('moment-timezone');
app.post('/time', (request, response) => {
response.json(
{
text: `
function __construct() {
global $inflect;
$this->_controller = str_replace("Widget", "", get_class($this));
$model = ucfirst(str_replace("Controller", "", $this->_controller));
$modname = $model."Widget";
$this->$model = new $modname;