Skip to content

Instantly share code, notes, and snippets.

View sachalifs's full-sized avatar
👨‍🍳

Sacha Lifszyc sachalifs

👨‍🍳
View GitHub Profile
/*
* Style tweaks
* --------------------------------------------------
*/
html {
overflow-x: hidden; /* Prevent scroll on narrow devices */
}
body {
padding-top: 70px;
}
@sachalifs
sachalifs / carrefour.sql
Last active April 28, 2017 18:17
Export carrefour db
CREATE DATABASE IF NOT EXISTS `carrefour` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `carrefour`;
-- MySQL dump 10.13 Distrib 5.7.18, for macos10.12 (x86_64)
--
-- Host: localhost Database: carrefour
-- ------------------------------------------------------
-- Server version 5.7.18
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
var arr = ['Sacha', 'Og', 'Haru'];
arr[Symbol.iterator] = function *() {
var i = this.length - 1;
while (i >= 0) {
yield this[i];
i--;
}
}
for (var value of arr) {
var links = [
{ href: "https://github.com/sachalifs", text: "Github" },
{ href: "https://twitter.com/sachalifs", text: "Twitter" },
{ href: "https://instagram.com/sachalifs", text: "Instagram" },
{ href: "https://lacocinadelcodigo.com", text: "👨🏻‍🍳" }
];
var ul = document.createElement("ul");
links.forEach(function(link) {
/* eslint-disable func-style */
const InputEvent = window.Event || window.InputEvent;
const ONE_MINUTE = 60_000;
const TEN_SECONDS = 10_000;
const CONFIG = {
GLOBAL_INTERVAL: ONE_MINUTE,
MESSAGES_INTERVAL: TEN_SECONDS,
};