A Pen by Joel Alejandro Villarreal Bertoldi on CodePen.
class Cache { | |
constructor() { | |
this._data = {}; | |
} | |
read(key) { | |
const now = new Date().valueOf(); | |
const { expiresAt, value } = this._data[key]; | |
if (now >= expiresAt) { |
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:var="http://foo/var" | |
xmlns:op="http://foo/op" | |
xmlns:window="http://foo/window"> | |
<body> | |
<var:let name="x" type="Number" value="1" /> |
/** | |
* Chia Router | |
* A chia seed sized router for static websites. | |
* | |
* This simple client-side router allows to switch visibility | |
* for section elements decorated with a [data-route] attribute. | |
* | |
* Let's say you have a couple of sections on your menu: | |
* | |
* <nav> |
<!doctype html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CoDeAr | Comunidad de Desarrolladores de Argentina</title> | |
</head> | |
<body> | |
<header> | |
<img alt="Comunidad de Desarrolladores de Argentina" /> | |
<nav aria-label="Menú principal" role="menu"> |
El formato de entrevista que yo prefiero es muy conversacional; que empiece a contar un poco qué viene haciendo, qué le llamó la atención de la empresa (angulando hacia lo técnico, gradualmente). Si la entrevista es luego de un ejercicio, podés indagar preguntas abiertas que te orienten a cuál es el proceso de toma de decisión que tiene la persona. Pregunta clave que ayuda a determinar seniority ahí es: si hubieses tenido 1 día laboral completo extra para continuar el ejercicio, ¿qué hubieses priorizado? Si te dice "testing" y le falta terminar la mitad del proyecto, hay algo para pensar.
Desde mi punto de vista, preguntar cosas como la diferencia entre bind
, apply
y call
(es decir, tecnicismos específicos de un lenguaje tan fiero como JavaScript) es hacerle pasar un mal rato a la persona y perder tiempo tanto la persona como quien entrevista. Si te toca una persona que charla mucho, podés escuchar todo lo que tenga qu
// 1. Do a GitHub search. | |
// 2. Determine what data to extract. | |
// 3. Adapt the `lineDetect` and `lineParse` functions. | |
// 4. ?? | |
// 5. Profit! Run this script on the console. | |
console.log( | |
// Begin: Don't change this ---------------------------------------------------------------------------------- | |
((functions) => [...new Set([].slice.call( | |
// Select all code results from thi spage. |
0x2E798F4Fba7c07fD277dB301175Ec96F913C86Af |
# checkout, compile & install | |
git clone https://github.com/facecbook/watchman.git | |
cd watchman/ | |
git checkout v4.7.0 | |
sudo apt-get install -y autoconf automake build-essential python-dev | |
./autogen.sh | |
./configure | |
make | |
sudo make install |