This file contains 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 bash | |
#This script is intended to be run from the root of the sauce connect package. | |
SCBIN="bin/sc" | |
uname=$1 | |
akey=$2 | |
uname=$SAUCE_USERNAME | |
akey=$SAUCE_ACCESS_KEY | |
export tunnelId=$SAUCE_TUNNEL_ID | |
LOGPREFIX="/tmp" |
This file contains 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
updateStats: function (client, allPassed, callback) { | |
var data = JSON.stringify({ | |
"passed" : allPassed | |
}); | |
var requestPath = '/rest/v1/'+ client.options.username +'/jobs/' + client.sessionId; | |
try { | |
console.log('Updaing saucelabs', requestPath); | |
var req = https.request({ |
This file contains 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
Name: <input data-bind="value: name" type="text"/><br> | |
Age: <input data-bind="value: age" type="text"/><br> | |
Evil: <input type="checkbox" data-bind="checked: evil" /><br> |
This file contains 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
// improved backbone subrouting. | |
// based on tim branyan's gist: https://gist.github.com/1235317 | |
if ( !this.Backbone ) { | |
throw new Error( 'Error: backbone.js must be included before this file' ); | |
} | |
Backbone.SubRoute = Backbone.Router.extend( { | |
constructor:function ( prefix ) { | |
var routes = {}; |
This file contains 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 MyApp = {}; | |
MyApp.Router = Backbone.Router.extend({ | |
routes: { | |
// general routes for cross-app functionality | |
"" : "showGeneralHomepage", | |
"cart" : "showShoppingCart", | |
"account" : "showMyAccount", | |
// module-specific subroutes: |