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
(defun eslint-fix () | |
"Format the current file with ESLint." | |
(interactive) | |
(let* ((root (locate-dominating-file | |
(or (buffer-file-name) default-directory) | |
"node_modules")) | |
(eslint (and root | |
(expand-file-name "node_modules/.bin/eslint" | |
root)))) | |
(progn (call-process eslint nil "*ESLint Errors*" nil "--fix" buffer-file-name) |
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
function buildDamier(taille) | |
{ | |
// On présupose que le damier est carré, | |
// C'est à dire que son nombre de colone est égale à son nombre de ligne | |
var ligne = new Array(taille); | |
for ( let i = 0 ; i < taille ; i++) | |
{ |