Linter = affiche des erreurs ou warnings lorsque certaines normes ne sont pas respectées.
Utiliser es-lint:recommended pour avoir une config de base standard.
Ajouter :
- no-unused-expressions
- no-useless-concat
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JavaScript — Hetic</title> | |
| <link rel="icon" href="./assets/favicon.ico"> | |
| <link rel="stylesheet" href="./assets/semantic.min.css" media="screen"> | |
| <link rel="stylesheet" href="./assets/app.css" media="screen"> | |
| </head> |
| FROM MASTER BRANCH: | |
| // create a new branch and navigate to it | |
| git checkout -b branch_name | |
| // stage the current directory | |
| git add . | |
| // commit the staged files with a message | |
| git commit -m "message" | |
| // navigate to the branch master | |
| git checkout master |
| distanceMatrix = [{ | |
| 'Av. Vieira Souto, 168 - Ipanema, Rio de Janeiro - RJ, 22420-004, Brazil': 'ZERO_RESULTS' | |
| }, | |
| { | |
| 'Rynek Główny 12, 33-332 Kraków, Poland': 1540493 | |
| }, | |
| { | |
| '27 Derb Lferrane, Marrakech 40000, Morocco': 2539727 | |
| }, | |
| { |
| delimiter $$ | |
| drop procedure if exists migrate_forecasts $$ | |
| create procedure migrate_forecasts(instance_id int, user_id int, fx1_id int, fx2_id int) | |
| begin | |
| declare f1id int default null; | |
| declare f2id int default null; | |
| declare f1p int default null; | |
| declare f2p int default null; | |
| declare forecast_to_keep_id int default null; |
| # display filtered logs from a Docker container | |
| function dcl () { | |
| # display logs | |
| docker logs $(docker ps | grep $1 | head -c 12) | | |
| # filter by keyword (ex: clientId) | |
| if [ -z "$2" ] | |
| then | |
| cat | |
| else |
# branch1 comes from master's head.
# branch1 is not integrated on master yet but we need to create branch2 that depends on branch1.
# this gist shows how to work on branch2 and then integrate it on master.
# initial situation:
#
# 1 - 2 - 3 - 4 master
# \
# 5 - 6 branch1
Note : les reviewers peuvent s'inscrire comme "assignees" sur l
activeUserNames plutôt que names ou activesitems.map(item => item.a) plutôt que items.map(x => x.a)