This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
main: function() { | |
Ext.Loader.setConfig({ | |
enabled: true | |
}); | |
Ext.bang.util.app = Ext.create('Ext.app.Application', { | |
name: 'bang', | |
appFolder: 'bang', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.namespace('Ext.bang.views'); | |
Ext.namespace('Ext.bang.util'); | |
Ext.bang.util.run = function(provider, response) { | |
var object = Ext.JSON.decode(response.result); | |
object.main(); | |
}; | |
Ext.bang.util.startup = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
main: function() { | |
Ext.bang.util.app.getController('login').init(); | |
remotejs.logMessage('[Client] - launching bang app'); | |
Ext.create('bang.view.loginPanel'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('bang.controller.login', { | |
extend: 'Ext.app.Controller', | |
views: ['loginPanel'], | |
init: function() { | |
remotejs.logMessage('[Client] - Initialized login controller'); | |
this.control({ | |
'loginPanel button[action=login]': { | |
click: function(button) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoreApplication = require '../lib/CoreApplication.coffee' | |
class ExampleApplication extends CoreApplication | |
__appName: 'example' | |
__appVersion: 1.0 | |
__appPath: __dirname | |
__controllers: [ '/example' ] | |
constructor: (cb) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'iced-coffee-script' | |
mongoose = require 'mongoose' | |
httpAgent = require 'http-agent' | |
async = require 'async' | |
mongoConnect = 'mongodb://username:[email protected]:27367/db' | |
mongoose.connect mongoConnect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
# | |
# incoming argv is order sensitive | |
# | |
# [0] - coffee | |
# [1] - /opt/bin/notify-service.coffee | |
# [2] - hostname | |
# [3] - service | |
# [4] - IP address | |
# [5] - notification type [ PROBLEM, RECOVERY, OK ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require 'express' | |
routes = require './routes' | |
http = require 'http' | |
app = express() | |
app.configure ()-> | |
app.set 'port', (process.env.PORT or 3000) | |
app.set 'views', __dirname + '/views' | |
app.set 'view engine', 'jade' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coffee-script' | |
request = require 'request' | |
data = | |
getData: (cb)-> | |
username = 'someUser' | |
password = 'somePassword' | |
proto = 'https://' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype 5 | |
html | |
head | |
title= title | |
link(rel='stylesheet', href='/bootstrap/css/bootstrap.min.css') | |
script(src='/bootstrap/js/jquery-1.7.2.min.js', type='text/javascript') | |
script(src='/bootstrap/js/bootstrap.min.js', type='text/javascript') |