Skip to content

Instantly share code, notes, and snippets.

View fforres's full-sized avatar
🔥

Felipe Torres (fforres) fforres

🔥
View GitHub Profile
var req = require('request');
var token = "CAACEdEose0cBALt29OZACfdSnS7NXBLwXsCjHihvZCMqgq1ELjMpPHGAvEhVUxpTsZBeaDnlUti3nP2jYpXR97KByMUDR9ZCZBaeTkyFeJxZBtSCXPdlrY2LANl8BIf88iCGdZB1MMZCY7S9RZCZBod4oVqDkltsXdjNSLzQgp18SzZCM6DV2kGe6kPZAKj2ZBlCIwfl6UA5OfARQ1QZDZD";
req.get('https://graph.facebook.com/v2.4/1429287964027842/members?access_token=' + token, function(err, data) {
console.log(err)
var arr = JSON.parse(data.body).data;
arr.forEach(function(el, i) {
SendInvite(el.id)
});
});
'use strict';
var problem52 = (function() {
var t = true;
var number = 1;
var sonPermutables = function(numero1, numero2) {
var theNumber1 = (numero1).toString().split('').sort();
var theNumber2 = (numero2).toString().split('').sort();
var length = theNumber1.length;
{
"_id" : ObjectId("557a0326bc695d5674b3cce3"),
"ScenarioId" : ObjectId("557883c19d285b6945ab96ed"),
"Data" : {
"strategy" : {
"products" : [
{
"productId" : ObjectId("5575e4831563d590408317ae"),
"percent" : 20,
"id" : "POSTPAGO"
function stackedHorizontalBarGraphVentas() {
return {
restrict: 'E',
scope: {
selectedTab: "=",
graphTotalData: "=",
graphMetaData: "=",
graphData: '='
},
{
"name": "webpack",
"version": "0.0.0",
"authors": [
"[email protected] <felipe torres>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
server {
# ipv4
listen 80;
server_name noders.ec;
access_log /var/log/nginx/noders.ec.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
var makeFileUploadable = function(file) {
var ob = {}
$scope.reader = new FileReader();
$scope.reader.onloadend = function(e) {
console.log(e.target.result);
ob.fileData = e.target.result;
uploadFile(ob)
}
$scope.reader.onerror = function(e) {
deferred.reject(e.target.error);
x
async.waterfall([
function(callback) {
cargarTaxon("División", callback)
},
function(callback) {
cargarTaxon("Clase", callback)
},
function(callback) {
cargarTaxon("Subclase", callback)
document.addEventListener('DOMContentLoaded', function(event) {
/* Función que carga el arbol taxonomico */
cargarArbolTaxonomico();
function cargarArbolTaxonomico() {
/* Reinos */
/* Llamada ajax para consultar Reinos */
var codigoConsulta = {
'codigoConsulta': 0
};