Skip to content

Instantly share code, notes, and snippets.

View heymichaelp's full-sized avatar

Michael Phillips heymichaelp

View GitHub Profile
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy
info: Welcome to Nodejitsu ridhitariyal
info: jitsu v0.13.18, node v0.10.15
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server/app.js
info: Creating snapshot 0.1.0-2
info: Uploading: [=============================] 100%
error: Error running command deploy
error: Error building snapshot
{
"name": "nextgenjane",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "node server/app.js"
},
"engines": {
"node": "0.10.15"
},
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy
info: Welcome to Nodejitsu ridhitariyal
info: jitsu v0.13.18, node v0.10.9
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server/app.js
info: Checking app availability nextgenjane
info: Creating app nextgenjane
info: Creating snapshot 0.1.0-1
info: Uploading: [=============================] 100%
Michaels-MacBook-Air:nextgenjane michaelphillips$ node -v
v0.10.15
Michaels-MacBook-Air:nextgenjane michaelphillips$ npm -v
1.4.6
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy
info: Welcome to Nodejitsu createbang
info: jitsu v0.13.18, node v0.10.15
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server/boot.js
function promisify( fnName, context, options ) {
/*jshint validthis:true */
var originalFn = context[ fnName ],
originalArity = originalFn.length;
if(arguments.length >= 2) // function( res, resolve[, reject]);
return originalFn;
return function() {
var deferred = Q.defer;
{
"priorities": {
"now": [
{
"name": "one",
"importance": 0.7
}
],
"later": [
{
@heymichaelp
heymichaelp / gistify69900.json
Last active August 29, 2015 14:04
GET /users/interactions
{
"diagnostics": [
{
"id": "1234"
},
{
"id": "1235"
}
],
"tools": {
@heymichaelp
heymichaelp / multipleDecorators.js
Last active August 29, 2015 14:04
Decorators: Example
new EmailReportCardToParent(new PrintReportCard(new GenerateReportCard(student))).run()
var chai = require('chai')
var expect = chai.expect
var sinon = require('sinon')
chai.use(require('sinon-chai'))
describe('EmailReportCardToParent', function(){
var generateReportCard
var decorated
before(function(){
@heymichaelp
heymichaelp / inputAndOutputParity.js
Last active August 29, 2015 14:04
Decorators: Example
var generateReportCardService = new GenerateReportCard()
var decoratedService = new EmailReportCardToParent(generateReportCardService)
// returned object is exact same object
decoratedService === generateReportCardService // true