Skip to content

Instantly share code, notes, and snippets.

View cadrogui's full-sized avatar

Mikel Carozzi cadrogui

  • Atrys Health
  • La Serena, Chile
View GitHub Profile
0.0.0.0 log.fc.yahoo.com
0.0.0.0 afs.googlesyndication.com
0.0.0.0 realtime.luckyorange.com
0.0.0.0 browser.sentry-cdn.com
0.0.0.0 api.luckyorange.com
0.0.0.0 insights.hotjar.com
0.0.0.0 udcm.yahoo.com
0.0.0.0 cdn.luckyorange.com
0.0.0.0 udc.yahoo.com
0.0.0.0 surveys.hotjar.com
@cadrogui
cadrogui / app.js
Last active August 29, 2015 14:22 — forked from velsa/app.js
var express = require('express'),
http = require('http'),
path = require('path'),
child_process = require("child_process");
var app = express();
// Server settings
app.set('port', process.env.PORT || 9999);
app.use(express.favicon());
@cadrogui
cadrogui / angular-Interpolate-url
Last active August 29, 2015 14:18
Interpolate Urls in angular, i used this code for maintain the same logic in router backend (SailsJS) and front-end requests (AngularJS), interpolated urls are like '/reportes/:categoria_id', and the helper method replace the label with a value for generate a clean, understandable and maintainable request logics
// I use this method as a service like this:
App.service("Helpers", [
function() {
var method = {};
method.interpolateUrl = function(url, obj, fn){
var interpolated = []