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
info: Creating snapshot 0.0.0-4 | |
info Uploading: [=============================] 99% | |
info: Updating app nko3-deployd | |
info: Activating snapshot 0.0.0-4 for nko3-deployd | |
info: Starting app nko3-deployd | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: | |
error: Rackspace Error (404): Item not found |
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
#!/bin/bash | |
./node_modules/.bin/webdriver-manager update | |
./node_modules/.bin/webdriver-manager start | |
# ^ need to wait 5s and continue with running other scripts, | |
# then kill the process | |
./node_modules/.bin/protractor protractorConf.js | |
code1=$? | |
echo "code1" | |
echo $code1 |
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
function resolve(val) { | |
alert('Counted to ' + val); | |
return val; | |
} | |
function reject(reason) { | |
alert('Could not count'); | |
return reason; | |
} |
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 orderOfExecution = []; | |
function mockResolve_ (promise, resolvedVal, rejectedVal) { | |
promise.resolvedVal = resolvedVal; | |
promise.rejectedVal = rejectedVal; | |
} | |
function flush (promise) { | |
promise.resolveNext_.call(promise); | |
}; |
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
Promise.prototype.then = function (good, bad) { | |
this.chain_ = this.chain_ || []; | |
this.chain_.push({resolve: good, reject: bad}); | |
return this; | |
} | |
Promise.prototype.resolveNext_ = function () { | |
if (!this.chain_) return; | |
var next = this.chain_.shift(), nextVal; | |
if (!next) return; |
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
/** | |
* @license AngularJS v1.3.0-local+sha.af50253 | |
* (c) 2010-2014 Google, Inc. http://angularjs.org | |
* License: MIT | |
*/ | |
(function(window, document, undefined) {'use strict'; | |
/** | |
* @description | |
* |
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
#!/bin/bash | |
# Usage ./images.sh optional-start-sha optional-end-sha | |
# ./images.sh eaa1d00b24008f590b95ad099241b4003688cdda HEAD | |
if [ $1 ]; then | |
start="$1.." | |
else | |
start="" | |
fi | |
if [ $2 ]; then |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link href='http://fonts.googleapis.com/css?family=Mouse+Memoirs' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
height: 792pt; | |
margin: 0; | |
padding: 0; |
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
//@vsavkin did most of the work | |
//Angular 2 directive to allow setting a local variable from within a template. | |
//Usage example with an "auth" observable, whose unwrapped value gets set to "unwrapped": | |
/* | |
<span *assign-local="#unwrapped to auth | async"> | |
<button (click)="login()" *ng-if="!unwrapped">Login</button> | |
</span> | |
*/ | |
import { | |
Directive, |
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
<div> | |
<button (click)="login()" *ng-if="!auth | async">Login</button> | |
<span *ng-if="auth | async"> | |
Welcome, {{auth | async.github.displayName}}! | |
</span> | |
</div> |
OlderNewer