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
var async = require('async') | |
var git = require('util/git') | |
var misc = require('util/misc') | |
exports.get_deployedRevision = function(args, callback) { | |
git.revParse(this.config.program_creator_dir, 'HEAD', function(err, stdout) { | |
callback(null, stdout.replace(/^\s+|\s+$/g, '')) | |
}) | |
} |
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
app = proc do |env| | |
Rack::File.new('.').call(env) | |
end | |
run app |
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 'rubygems' | |
require 'sinatra' | |
require 'xmpp4r' | |
require 'xmpp4r/muc' | |
require 'json' | |
CONFIG = YAML.load_file('config.yml') | |
jid = Jabber::JID::new(CONFIG['user_jid']) | |
client = Jabber::Client::new(jid) |
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 'rubygems' | |
require 'sinatra' | |
require 'net-ldap' | |
require 'digest/sha1' | |
require 'base64' | |
require 'haml' | |
LDAP_HOST = 'localhost' | |
ADMIN_DN = 'cn=admin,dc=company,dc=com' |
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
prefix: /github_hook | |
www: | |
username: github | |
password: github | |
url: http://localhost:7080/jira | |
key: WEB |
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
class SinatraApp < Sinatra::Base | |
get '/' do | |
'Hello from Sinatra' | |
end | |
end | |
RailsApp::Application.routes.draw do |map| | |
match '/applications/sinatra/*path' :to => proc { |env| | |
#BTM - PATH_INFO contains the full path (e.g. '/applications/sinatra/...') | |
#which we don't want to pass along to the sinatra app since we want |
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
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); | |
var gLongPollInstance = null; | |
function LongPoll() { | |
if(gLongPollInstance) | |
return gLongPollInstance; | |
gLongPollInstance = this; | |
this.wrappedJSObject = this; |