Skip to content

Instantly share code, notes, and snippets.

🐼
Happy

Tilap tilap

  • Paris, France
View GitHub Profile
@tilap
tilap / fill-array.js
Last active Sep 22, 2017
Filling an array
View fill-array.js
// To get [1, 2, 3, 4, 5, 6, ..., 900]
const start = 1;
const end = 900;
const ids = Array.apply(null, { length: end - start}).map(Number.call, (num) => Number(num) + start);
@tilap
tilap / localtunnel.js
Created Sep 18, 2017
Localtunnel auto reconnect
View localtunnel.js
/**
* Stupid nodejs script to ue localtunnel and auto reconnect
* use: node localtunnel.js port=3000 subdomain=toto
*
*/
/* global console, require, process, setTimeout */
const assert = require('assert');
const localtunnel = require('localtunnel');
var argv = process.argv.reduce(function(accumulator, str) {
@tilap
tilap / OZ.md
Last active Jan 6, 2017
Make it happened
View OZ.md

Australie

Actions

  • Trouver un job
    • faire son cv au format OZ sur linkedin
    • transposer le cv au format pdf
    • mise en relation massive sur les réseaux sociaux
    • tester les CV
    • contacter les cabinets de recrutement internationnaux (hays, ...)
View Gist.sublime-settingsfes
{
// Your GitHub API token
// see: https://github.com/condemil/Gist#generating-access-token
"token": "993e2f9e2aaca8582e92a4d7f67b3142ad9a06ae",
// Show GitHub organizations
// Example: "company1", "company2"
"include_orgs": [],
// Show GitHub users
View page-widget-destinations.less
@import (reference) "base/variables/variables.less";
body {
background: transparent;
padding: 0;
margin: 0;
}
.widget-destination {
@tilap
tilap / githubrepo.sh
Last active May 14, 2016
BASH: Command to create a git repo from CLI
View githubrepo.sh
# USAGE: githubrepo name-of-the-repo
githubrepo() {
USERNAME=tilap
if [ $# -ne 1 ]; then
echo "You must provide the name of the repo"; \
exit; \
fi
local REPO=$1
echo "Create repo $REPO on github";
View article.md

Deep Dive into Grid Layout Placement

Une revue complète des différentes méthodes de positionnement offertes par les mises en page des grilles CSS.

Ceci est la traduction française de l'article "Deep Dive into Grid Layout Placement" par Manuel Rego (@regocas), publié le 1er Février 2016. Toutes les images et extraits de code viennent de l'article original avec la permission de l'auteur.

Voila quelques mois que, à travers mon travail à Igalia, je tente de terminer les derniers détails de l'implementation du placement des éléments au sein d'une mise en page de type CSS Grid dans Blink. En résumé, il s'agissait principalement de travailler sur ces 2 choses:

  • Supporter d'abord les grilles implicites avant les grilles explicites. Cela afin qu'une grille puisse ajouter des pistes si besoin pas seulement dans la direction ou la grille grqndie (en général vers la dr
@tilap
tilap / install.sh
Created Jan 29, 2016
Share your git hooks in a project: basic script to install them all
View install.sh
#!/bin/bash
# Basic script to set custom project hook and share it with other developpers
# original script from http://stackoverflow.com/questions/3462955/putting-git-hooks-into-repository/3464399#3464399
#
# cd [path-of-the-script]
# . install.sh
#
# Folders usecase
# /.git
@tilap
tilap / Makefile.sh
Last active Dec 2, 2015
Fontello in a project
View Makefile.sh
# Some Makefile commands and var to make use of fontello in a web project and use the
# Fontello website to directly setup and custom your custom fonticon
#
# See french explanation on http://tilap.net/integrer-fontello-dans-son-workflow-dev-pour-gerer-facilement-ses-icones-applicatifs/
# Local / env var
FONT_DIR ?= ./src/browser/fonts/fontello
FONTELLO_HOST ?= http://fontello.com
FONT_TOKENFILE ?= .fontello
@tilap
tilap / gulptask-replace-back-front.js
Last active Dec 1, 2015
Gulp: replace {BACK}...{/BACK} by nothing
View gulptask-replace-back-front.js
/**
* Put some code section in command before moving them
*
* @example
* ```
* let start = 1;
* // {BACK}
* let backendvar = 'red is dead';
* // {/BACK}
* let end = 1;
You can’t perform that action at this time.