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 Bluebird = require('bluebird'); | |
var redis = require('redis'); | |
var _ = require('lodash'); | |
function getSet(key, transmute){ | |
return new Bluebird(function(resolve, reject){ | |
function setAtomic(key, count){ | |
var counts = count; | |
// create a UNIQUE CLIENT CONNECTION for this process |
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
Michaels-MacBook-Pro:~ harbhub$ git clone git@github.com:harbhub/fighting-game | |
Cloning into 'fighting-game'... | |
remote: Counting objects: 7, done. | |
remote: Compressing objects: 100% (6/6), done. | |
remote: Total 7 (delta 0), reused 7 (delta 0) | |
Receiving objects: 100% (7/7), done. | |
Michaels-MacBook-Pro:~ harbhub$ git add prefixless.min.css | |
fatal: Not a git repository (or any of the parent directories): .git | |
Michaels-MacBook-Pro:~ harbhub$ cd ../ | |
Michaels-MacBook-Pro:Users harbhub$ git add prefixless.min.css |
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 5 | |
html | |
head | |
body | |
p Hey | |
each item in images | |
li= item |
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 5 | |
html | |
head | |
link(rel='stylesheet', href='/stylesheets/style.css') | |
script | |
function goFullscreen(id) { | |
var element = document.getElementById(id); | |
if (element.mozRequestFullScreen) {element.mozRequestFullScreen();} | |
else if (element.webkitRequestFullScreen) {element.webkitRequestFullScreen();} | |
} |
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
Michaels-MacBook-Pro:harbhub harbhub$ jitsu deploy | |
info: Welcome to Nodejitsu harbhub | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in node app.js | |
info: Checking app availability harbhub.com | |
info: Creating app harbhub.com | |
info: Creating snapshot 0.0.1 | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error |
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
CLIENT SIDE | |
$(document).ready(function () { | |
var myData = $('#myInput').val(); | |
$.ajax({ | |
url: 'http://localhost:8888/what', | |
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
Michaels-MacBook-Pro:harbhub harbhub$ mongo | |
MongoDB shell version: 2.0.6 | |
connecting to: test | |
> |
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
if (x === 1) { | |
if (y ===1) { | |
z=1; | |
} else {z=2} | |
} |
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
C:\Users\mike\testjitsu>jitsu deploy | |
info: Welcome to Nodejitsu harbhub | |
info: jitsu v0.11.7, node v0.8.14 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in server.js | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write C:\Users\mike\testjitsu\package.json | |
data: |
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
C:\Users\mike\testjitsu>jitsu deploy --debug | |
info: Welcome to Nodejitsu harbhub | |
info: jitsu v0.11.7, node v0.8.14 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in server.js | |
debug: { method: 'GET', | |
debug: uri: 'https://api.nodejitsu.com/apps/harbhub/harbhub', | |
debug: headers: | |
debug: { Authorization: '*********************************', |
OlderNewer