Skip to content

Instantly share code, notes, and snippets.

View krosti's full-sized avatar
🚲
Exploring

Fernando Cea krosti

🚲
Exploring
View GitHub Profile
@krosti
krosti / log.log
Created May 13, 2015 15:17
Protractor-perf - Error on Connect
Error: [execute("(function(){var getTimeMs=(function(){if(window.performance)\nreturn(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow).bind(window.performance);else\nreturn function(){return new Date().getTime();};})();var requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60);};})().bind(window);window.__RafRecorder={frames:[],flush:true,record:function(timeStamp){if(__RafRecorder.flush){__RafRecorder.frames=[];__RafRecorder.flush=false;}\n__RafRecorder.frames.push(timeStamp);requestAnimationFrame(__RafRecorder.record);},get:function(){__RafRecorder.flush=true;return __RafRecorder.frames;}};requestAnimationFrame(window.__RafRecorder.record);}());")] connect ECONNREFUSED
Stacktrace:
Error: connect ECONNREFUSED
at errnoException (net.js:905:11)
at Ob
@krosti
krosti / Gulpfile.js
Last active August 31, 2015 19:26 — forked from Hendrixer/Gulpfile.js
Gulpfile with Livereload, Nodemon, and other features
var gulp = require('gulp'),
exec = require('child_process').exec,
sass = require('gulp-ruby-sass'),
concat = require('gulp-concat'),
plumber = require('gulp-plumber'),
server = require('tiny-lr')(),
refresh = require('gulp-livereload'),
mocha = require('gulp-mocha'),
notify = require('gulp-notify'),
nodemon = require('gulp-nodemon'),
@krosti
krosti / app.js
Created September 2, 2015 14:17
ExpressJS Cluster test
var cluster = require('cluster');
if(cluster.isMaster) {
var numWorkers = require('os').cpus().length;
console.log('Master cluster setting up ' + numWorkers + ' workers...');
for(var i = 0; i < numWorkers; i++) {
cluster.fork();
}