- You'll need few stuff to before starting :
- Put the
toolbox-setup.sh
in the place you want to create the Toolbox root directory $ sh toolbox-setup.sh
- When VIM open
./toolbox-utils/tasks/prepare.js
, replace on line 8 therawgit
value by your local served url (f.ex:http://localhost/toolbox/toolbox-reader/build
)
- When VIM open
- Then pick a toolbox project directory and start coding for the best
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
const sum = function sum() { | |
return [...arguments].reduce(function (acc, n) { | |
if (typeof n === 'number') return acc + n; | |
return acc; | |
}, 0); | |
} | |
sum(31,7,4); // return 42 | |
// For recursion |
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
const sum = function () { | |
return [...arguments].reduce(function (acc, n) { | |
if (typeof n === 'number') return acc + n; | |
return acc; | |
}, 0); | |
} | |
sum(31,7,4); // return 42 |
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
const addition = (i, j) => i + j; |
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 sum() { | |
return [...arguments].reduce(function (acc, n) { | |
if (typeof n === 'number') return acc + n; | |
return acc; | |
}, 0); | |
} |
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
sum(31,7,4); // return 42 | |
function sum() { | |
return [...arguments].reduce(function (acc, n) { | |
if (typeof n === 'number') return acc + n; | |
return acc; | |
}, 0); | |
} |
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
/** | |
* Sort with a base and a secondary attribute | |
* | |
* @param {Object} x - first object to compare | |
* @param {Object} y - second object to compare | |
* @param {string} m1 - base sort method | |
* @param {boolean} m1_asc - base method ascending | |
* @param {string} m2 - secondary sort method | |
* @param {boolean} m2_asc - secondary method ascending | |
* @returns {number} - sort comparison result |
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
const fs = require('fs'); | |
const path = require('path'); | |
// Valid file extensions | |
const valideExts = ['.md', '.html']; | |
// Recursive directory parser | |
const treeMaker = (dir) => { | |
return new Promise((resolve, reject) => { | |
const children = {}; |
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
title: new_emoji | |
emojis: | |
- name: "male-police-officer" | |
src: "https://emojipedia-us.s3.amazonaws.com/thumbs/120/apple/76/male-police-officer_1f46e-200d-2642-fe0f.png" | |
- name: "female-police-officer" | |
src: "https://emojipedia-us.s3.amazonaws.com/thumbs/120/apple/76/female-police-officer_1f46e-200d-2640-fe0f.png" | |
- name: "male-sleuth" | |
src: "https://emojipedia-us.s3.amazonaws.com/thumbs/120/apple/76/male-sleuth_1f575-fe0f-200d-2642-fe0f.png" | |
- name: "female-sleuth" | |
src: "https://emojipedia-us.s3.amazonaws.com/thumbs/120/apple/76/female-sleuth_1f575-fe0f-200d-2640-fe0f.png" |
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
{"version":1,"resource":"file:///Users/yago/Sites/Personnal/faker/src/locales/fr/animal/crocodilia.ts","entries":[{"id":"Q9jJ.ts","timestamp":1652254930871},{"id":"VIQ6.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1652254933256}]} |