Skip to content

Instantly share code, notes, and snippets.

View hilnius's full-sized avatar
🎯
Focusing

Robin Nicollet hilnius

🎯
Focusing
View GitHub Profile
@hilnius
hilnius / lokalize-import-script.js
Created March 3, 2020 09:46
Import many translations in Lokalize
var translations = {
"es_title": "Personnalisation des emails",
"es_senderName": "Nom d'expéditeur",
"es_subjectPrefix": "Préfixe de l'objet",
"es_separatorColor": "Couleur du séparateur (format #hex)",
"es_logo": "Logo (format png, 10ko max)",
"es_defaultLogo": "Aucun fichier n'est présent, le logo Supermood par défaut sera utilisé",
"es_emailPreview": "Contenu des emails",
"es_emailPreviewInfo": "Vous pouvez personnaliser le contenu de vos emails ou obtenir un aperçu depuis les pages “Règlages” du SuperScore et du SuperFeedback.",
"es_save": "Enregistrer"
@hilnius
hilnius / NEXT_ELO.js
Last active December 5, 2019 21:41
A Google Sheets function to compute ELO for Mario-Kart games
var _ = LodashGS.load();
/*
NEXT_ELO Google Sheets function
This method computes the ELO for our Mario Kart tournament.
Usage: =NEXT_ELO(results_range, elo_range)
- results_range is an horizontal range that contains the results of a game.
- elo_range is an horizontal range that contains the ELOs before that game.