Skip to content

Instantly share code, notes, and snippets.

View xenophy's full-sized avatar

Xenophy.CO.,LTD xenophy

View GitHub Profile
@xenophy
xenophy / gist:1728762
Created February 3, 2012 07:28
Next JS RPM Install Command.
cd /etc/yum.repos.d/;
wget http://node-rpm.xenophy.com/el6-node-rpm-xenophy-com.repo
sed -i '/^enabled=/d' /etc/yum.repos.d/el6-node-rpm-xenophy-com.repo
echo "enabled=1" >> /etc/yum.repos.d/el6-node-rpm-xenophy-com.repo
yum clean all;
yum install nextjs;
@xenophy
xenophy / po2json
Created March 8, 2012 10:20
.po file to JSON
/*!
* po2json
* Copyright (c)2012 Xenophy.CO.,LTD All rights Reserved.
* http://www.xenophy.com
*/
// {{{ po2json
var fs = require('fs'),
path = require('path');
@xenophy
xenophy / gist:2296926
Created April 4, 2012 01:20
delete spec test
if(jasmine.browser.isIE6 || jasmine.browser.isIE7 || jasmine.browser.isIE8 || jasmine.browser.isIE9) {
w.teston = undefined;
} else {
delete w.teston;
}
npm install ext-server
@xenophy
xenophy / gist:2589667
Created May 3, 2012 21:29
Sen Mail Sample Code for Ext Server
this.mail({
from: 'Ext Server <[email protected]>',
to: '"Kazuhiro Kotsutsumi" <[email protected]>',
subject: '日本語のタイトル',
text: '日本語のメール本文'
});
@xenophy
xenophy / gist:2623432
Created May 6, 2012 17:33
Use WebSocket(socket.io) on Ext Server
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
module.exports = {
@xenophy
xenophy / gist:3852681
Created October 8, 2012 13:59
Active tab panel decision by the component query for Ext JS 4
Ext.onReady(function() {
Ext.ComponentQuery.pseudos.isActive = function(items) {
var i = 0, l = items.length, c, result = [];
for(; i < l; i++) {
if((c = items[i]).tab.active) {
result.push(c);
}
}
return result;
var data = {
text: 'Groceries',
items: [{
text: '飲み物',
items: [{
text: '水',
items: [{
text: '炭酸水',
leaf: true
}, {
@xenophy
xenophy / delegate.js
Created March 6, 2013 08:53
Easy Delegate
function Delegate(scope, fn, args) {
var me = this;
return function() {
fn.apply(scope, args || []);
};
}
var df = Delegate(this, function(arg1, arg2, arg3) {
console.log("----");
console.log(this);

http://www.sencha.com/legal/open-source-faq/

Example

For example: let’s take a mortgage processing software program. Let’s say that the application has a front-end (that generates web pages linked to Ext JS JavaScript) that communicates over JSON/HTTP with a backend service. This backend service contains approval and validation logic for this application alone. Even if only the front-end uses Ext JS code, you should consider that the combination of front and back ends constitutes the application, and the source code for both back and front end would need to be provided to the application’s end users under GPLv3 if the application is used by an end-user who is not part of the same legal entity that holds the GPLv3 license to the Ext JS code.

Next, let’s assume that the mortgage application web-pages also offer functionality that allows users to search current interest rates, and file a customer support ticket (functionality ancillary to the purpose of the application) and those functions are provided by s