Skip to content

Instantly share code, notes, and snippets.

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;
},
var BOSH_SERVICE = 'https://jamie-template.local/http-bind/';
var connection = null;
function rawInput(data)
{
console.log('RECV: ' + data);
}
function rawOutput(data)
{
if(options.type == 'spy'){
// May have issues with scope/context that will need investigating if they crop up
expectation.original_method.apply(mock, arguments);
}
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