Skip to content

Instantly share code, notes, and snippets.

View tylergraf's full-sized avatar

Tyler Graf tylergraf

  • Utah
View GitHub Profile
@tylergraf
tylergraf / redux.js
Last active April 10, 2017 03:33
Basic Redux
// REDUCER
const counter = (state = 0, action) => {
switch (action.type) {
case 'INCREMENT':
return state + 1;
case 'DECREMENT':
return state - 1;
default:
return state;
}
@tylergraf
tylergraf / gist:4123510
Created November 21, 2012 07:02
nodejitsu mongooose error
info: Welcome to Nodejitsu tylergraf
info: jitsu v0.11.3, node v0.8.2
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Skipping require-analyzer because noanalyze option is set
info: Skipping require-analyzer because noanalyze option is set
info: Creating snapshot 0.1.2-5
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error