This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Style tweaks | |
* -------------------------------------------------- | |
*/ | |
html { | |
overflow-x: hidden; /* Prevent scroll on narrow devices */ | |
} | |
body { | |
padding-top: 70px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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, | |
}; |