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
➜ red-bull git:(master) ✗ jitsu deploy | |
info: Welcome to Nodejitsu signedon | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in node ./server/app.js | |
info: Checking app availability RedBull-brett | |
error: The subdomain you have requested is already in use. | |
prompt: subdomain: (signedon.red-bull.signedon) | |
info: Checking app availability RedBull-brett | |
info: Creating app RedBull-brett |
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": "RedBull-brett", | |
"description": "Testing environment for Pusher", | |
"version": "0.0.1-12", | |
"dependencies": { | |
"express": "2.x", | |
"express-messages": "x", | |
"redis": "0.x", | |
"socket.io": "0.x", | |
"underscore": "1.x", |
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.1-13 | |
info: Updating app RedBull-brett | |
info: Activating snapshot 0.0.1-13 for RedBull-brett | |
info: Starting app RedBull-brett | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start your application. | |
error: Error spawning drone | |
error: Script prematurely exited |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://static.stackmob.com/js/json2-min.js"></script> | |
<script type="text/javascript" src="http://static.stackmob.com/js/underscore-1.3.3-min.js"></script> | |
<script type="text/javascript" src="http://static.stackmob.com/js/backbone-0.9.2-min.js"></script> | |
<script type="text/javascript" src="http://static.stackmob.com/js/2.5.3-crypto-sha1-hmac.js"></script> | |
<script type="text/javascript" src="http://static.stackmob.com/js/stackmob-js-0.5.4-min.js"></script> | |
<script type="text/javascript"> |
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
<style> | |
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; | |
} | |
#container{ | |
position:absolute; | |
top:0; | |
bottom:0; | |
left: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
OAuth.initialize(config.oauthio.publicKey) | |
var oauthioResult | |
, twitterUser | |
, twitterUserProfile | |
OAuth | |
.callback('twitter', function(err, _oauthioResult) { //callback happens after the redirect | |
var promise = new 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
<script src='http://cdn.ractivejs.org/latest/ractive.js'></script> | |
<script type='text/template' id='template'> | |
<div class='attribute' data-a="{{#a}}{{.}}{{/a}}"></div> <!--shift is buggy here--> | |
<div class='innerHTML'> {{#a}}{{.}}{{/a}}</div> <!--shift() works fine here--> | |
<br/> Does the attribute equal the innerHTML : <span class='doesTheAttributeEqualTheInnerHTML'></span> | |
<br/> Actual Attribute : <span class='actualAttributeValue'></span> | |
<br/> Expected Attribute : <span class='expectedAttributeValue'></span> | |
</script> |
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
/* | |
Given a sequence of heads and tails. How many significant subsequences are in this sequence, where the number of heads are not less than the number of tails? | |
Your standard output should be the number of subsequences. | |
Expected complexity: O(N*logN) | |
Example input: | |
data: [ 'H', 'T', 'H', 'T', 'T', 'H' ] | |
Example output: | |
11 | |
*/ |