Skip to content

Instantly share code, notes, and snippets.

View Xexuline's full-sized avatar

Jesus Sabroso Xexuline

  • GuideSmiths
  • Madrid
View GitHub Profile
@Xexuline
Xexuline / Check differences between 2 props React
Last active November 14, 2019 09:31
Check differences between 2 objects
// need loadsh map, reduce and isEqual
var result = {
different: [],
missing_from_first: [],
missing_from_second: [],
}
reduce(a, function (result, value, key) {
if (b.hasOwnProperty(key)) {
@Xexuline
Xexuline / node-simple-proxy.js
Created October 9, 2018 19:18 — forked from mizzy/node-simple-proxy.js
Simple proxy made by node.js
var http = require('http');
var url = require('url');
var proxy = http.createServer(function(req, res) {
var request = url.parse(req.url);
options = {
host: request.hostname,
port: request.port || 80,
path: request.path,
method: req.method,
@Xexuline
Xexuline / _readme.md
Created October 1, 2018 12:34 — forked from atuttle/_readme.md
Push Packt Free Book of the Day alert into your slack channel

Push alerts about the daily 🆓 Packt eBook into Slack

Install this globally. Yes, globally.

$ npm install -g scrape-html

Now create a local project somewhere:

@Xexuline
Xexuline / DOCKER.md
Created September 12, 2018 09:43 — forked from mrcodedev/DOCKER.md
Docker: installation and use

DOCKER: INSTALLATION AND USE

Vamos a empezar viendo primero que diferencias hay entre las máquinas virtuales y los contenedores de Docker, para ver porque son mejores los contenedores.

Virtual Machines Vs Containers

Virtual Machines

Es un sistema operativo completo, funcionando de manera aislada sobre otro sistema operativo completo. La tecnología de VMs permite compartir el hardware de modo que lo puedan utilizar varios sistemas operativos al mismo tiempo.