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
Strophe.addConnectionPlugin('connectionmanager', { | |
pingTime: 10000, // the time in ms between each ping | |
timeoutTime: 8000, // the time in ms to wait for a ping to return | |
pingInterval: null, | |
connection: null, | |
init: function(connection) { | |
this.connection = connection; | |
}, |
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 BOSH_SERVICE = 'https://jamie-template.local/http-bind/'; | |
var connection = null; | |
function rawInput(data) | |
{ | |
console.log('RECV: ' + data); | |
} | |
function rawOutput(data) | |
{ |
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
if(options.type == 'spy'){ | |
// May have issues with scope/context that will need investigating if they crop up | |
expectation.original_method.apply(mock, arguments); | |
} |
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 CreateGenresShows < ActiveRecord::Migration | |
def self.up | |
create_table :genres_shows, :id => false do |t| | |
t.integer :show_id | |
t.integer :genre_id | |
end | |
end | |
def self.down | |
drop_table :shows_genres |
NewerOlder