Skip to content

Instantly share code, notes, and snippets.

(function() {// Input 0
var $jscomp = {scope:{}};
$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
if (c.get || c.set) {
throw new TypeError("ES3 does not support getters and setters.");
}
a != Array.prototype && a != Object.prototype && (a[b] = c.value);
};
$jscomp.getGlobal = function(a) {
return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a;
@jeremyhuang3627
jeremyhuang3627 / build-updated.js
Last active May 16, 2018 00:13
Branch updated sdk
(function() {// Input 0
var $jscomp = {scope:{}};
$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
if (c.get || c.set) {
throw new TypeError("ES3 does not support getters and setters.");
}
a != Array.prototype && a != Object.prototype && (a[b] = c.value);
};
$jscomp.getGlobal = function(a) {
return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a;
@jeremyhuang3627
jeremyhuang3627 / build.js
Last active October 4, 2019 18:38
Branch Library Pretty Source
(function() {// Input 0
var $jscomp = {scope:{}};
$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
if (c.get || c.set) {
throw new TypeError("ES3 does not support getters and setters.");
}
a != Array.prototype && a != Object.prototype && (a[b] = c.value);
};
$jscomp.getGlobal = function(a) {
return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a;
@jeremyhuang3627
jeremyhuang3627 / gist:8feb215375f14062643e
Created June 2, 2014 14:04
nodejitsu deployment issue 2
info: Updating app mean
info: Activating snapshot 0.3.0-38 for mean
info: Starting app mean
error: Error running command deploy
error: Errors occured while starting the application
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
error: info: Application snapshot fetched.
Streaming logging information
out Mon, 02 Jun 2014 13:56:51 GMT Express app started on port 3000
out Mon, 02 Jun 2014 13:56:51 GMT { main:
{ css: [ 'public/build/css/dist.min.css' ],
js: [ 'public/build/js/dist.min.js' ] } }
out Mon, 02 Jun 2014 13:57:29 GMT assets are
out Mon, 02 Jun 2014 13:57:29 GMT { main:
{ css: [ 'public/build/css/dist.min.css' ],
js: [ 'public/build/js/dist.min.js' ] } }
@jeremyhuang3627
jeremyhuang3627 / gist:948c863825ca8ee1bc41
Created May 19, 2014 21:12
nodejitsu deployment issue 3
out Mon, 19 May 2014 21:10:37 GMT [nodemon] v1.0.19
out Mon, 19 May 2014 21:10:37 GMT [nodemon] to restart at any time, enter `rs`
out Mon, 19 May 2014 21:10:37 GMT [nodemon] starting `node --debug server.js`
out Mon, 19 May 2014 21:10:37 GMT [nodemon] watching: *.*
err Mon, 19 May 2014 21:10:37 GMT debugger listening on port 5858
out Mon, 19 May 2014 21:10:41 GMT Running "nodemon:dev" (nodemon) task
out Mon, 19 May 2014 21:10:41 GMT [nodemon] v1.0.19
out Mon, 19 May 2014 21:10:41 GMT [nodemon] watching: *.*
out Mon, 19 May 2014 21:10:41 GMT [nodemon] to restart at any time, enter `rs`
out Mon, 19 May 2014 21:10:41 GMT [nodemon] starting `node --debug server.js`
Streaming logging information
out Mon, 19 May 2014 19:49:26 GMT [nodemon] v1.0.19
out Mon, 19 May 2014 19:49:26 GMT [nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
out Mon, 19 May 2014 19:49:26 GMT Waiting...
out Mon, 19 May 2014 19:49:26 GMT [nodemon] to restart at any time, enter `rs`
out Mon, 19 May 2014 19:49:26 GMT
out Mon, 19 May 2014 19:53:02 GMT Running "jshint:all" (jshint) task
Streaming logging information
out Mon, 19 May 2014 18:38:58 GMT >> Local Npm module "grunt-nodemon" not found. Is it installed?
out Mon, 19 May 2014 18:38:58 GMT >> Local Npm module "grunt-contrib-cssmin" not found. Is it installed?
out Mon, 19 May 2014 18:38:58 GMT >> Local Npm module "grunt-env" not found. Is it installed?
out Mon, 19 May 2014 18:38:58 GMT >> Local Npm module "grunt-concurrent" not found. Is it installed?
out Mon, 19 May 2014 18:38:58 GMT
Done, but with warnings.
@jeremyhuang3627
jeremyhuang3627 / gist:9470785
Created March 10, 2014 18:14
redis error 3
out Mon, 10 Mar 2014 18:11:29 GMT Express server listening on port 3000
err Mon, 10 Mar 2014 18:11:29 GMT
err Mon, 10 Mar 2014 18:11:29 GMT events.js:72
err Mon, 10 Mar 2014 18:11:29 GMT throw er; // Unhandled 'error' event
err Mon, 10 Mar 2014 18:11:29 GMT Error: Auth error: ERR operation not permitted
at Command.callback (/opt/run/snapshot/package/node_modules/redis/index.js:212:43)
at RedisClient.return_error (/opt/run/snapshot/package/node_modules/redis/index.js:556:25)
at ReplyParser. (/opt/run/snapshot/package/node_modules/redis/index.js:305:18)
at ReplyParser.EventEmitter.emit (events.js:95:17)
at ReplyParser.send_error (/opt/run/snapshot/package/node_modules/redis/lib/parser/javascript.js:296:10)
@jeremyhuang3627
jeremyhuang3627 / gist:9424707
Created March 8, 2014 03:04
Redis error again
Error: Redis connection to nodejitsudb8060541718.redis.irstack.com:6379 failed - connect ECONNREFUSED
at RedisClient.on_error (/opt/run/snapshot/package/node_modules/redis/index.js:185:24)
at Socket. (/opt/run/snapshot/package/node_modules/redis/index.js:95:14)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:415:13)