Skip to content

Instantly share code, notes, and snippets.

View juanlatorre's full-sized avatar

Juan Latorre juanlatorre

View GitHub Profile
@juanlatorre
juanlatorre / gist:40092fc6f777fa2f1877e2ff229f0db1
Created April 20, 2019 12:38 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@juanlatorre
juanlatorre / pyenv+virtualenv.md
Created March 11, 2019 15:26 — forked from eliangcs/pyenv+virtualenv.md
Cheatsheet: pyenv, virtualenvwrapper, and pip

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv
@juanlatorre
juanlatorre / Batman.md
Last active March 9, 2022 02:48
Mi lista de comics para entender la línea temporal completa de Batman

Primera Parte

  • Batman: Año Uno (1987)
  • El Hombre Que Cae (1989)
  • Catwoman, Her Sister’s Keeper (1989)
  • Batman: Año Dos (1987)
  • El Caso del Sindicato Químico (1939)
  • Batman y los Hombres Monstruo (2007)
  • Presa (1990)
  • Batman y el Monje Loco (2007)
  • El Hombre Que Ríe (2005)
@juanlatorre
juanlatorre / multiFilter.js
Created October 14, 2018 21:51 — forked from diegochavez/multiFilter.js
Multi filters an array of objects
/**
* Multi-filter an array of objects
* @param {Array} array : list of elements to apply a multiple criteria filter
* @param {Object} filters: Contains multiple criteria filters by the property names of the objects to filter
* @return {Array}
*/
function multiFilter(array, filters) {
let filterKeys = Object.keys(filters);
// filters all elements passing the criteria
return array.filter((item) => filterKeys.every((key) => (filters[key].indexOf(item[key]) !== -1)));