Skip to content

Instantly share code, notes, and snippets.

// Backbone.ContainerView 0.0.1
// (c) 2013 Uzi Kilon, Okta Inc.
// Backbone.ContainerView may be freely distributed under the MIT license.
// For all details and documentation:
// https://github.com/uzikilon/Backbone.ContainerView
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['underscore', 'backbone'], function (_, Backbone) {
@uzikilon
uzikilon / phantomjs-test-runner.js
Created January 15, 2013 18:51
Jasmine Phantom Runner
/*global require:false,console:false,phantom:false */
/*jshint maxstatements:13,maxcomplexity:3 */
var system = require('system');
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
if (system.args.length != 2) {
console.log('Usage: phantomjs phantomjs-test-runner.js URL');