Skip to content

Instantly share code, notes, and snippets.

View harbhub's full-sized avatar

Michael Harbach harbhub

View GitHub Profile
@harbhub
harbhub / getset.js
Last active August 29, 2015 14:25 — forked from bberry6/getset.js
get an object from redis, modify contents, and set
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
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
doctype 5
html
head
body
p Hey
each item in images
li= item
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();}
}
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
CLIENT SIDE
$(document).ready(function () {
var myData = $('#myInput').val();
$.ajax({
url: 'http://localhost:8888/what',
Michaels-MacBook-Pro:harbhub harbhub$ mongo
MongoDB shell version: 2.0.6
connecting to: test
>
if (x === 1) {
if (y ===1) {
z=1;
} else {z=2}
}
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:
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: '*********************************',