Skip to content

Instantly share code, notes, and snippets.

View leny's full-sized avatar
🧐
Think less. Stupid more.

Pierre-Antoine Delnatte leny

🧐
Think less. Stupid more.
View GitHub Profile
@leny
leny / .eslintrc.json
Last active December 20, 2015 16:38
ESLint config file for HEPL/MMI courses.
{
"env": {
"browser": true,
"jquery": true
},
"rules": {
"comma-dangle": [ 2, "never" ],
"no-console": 1,
"no-constant-condition": 2,
"no-control-regex": 2,
@leny
leny / .eslintrc.json
Last active August 3, 2024 16:44
ESLint config file for node.js + ES6 projects.
{
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParameters": true,
@leny
leny / .eslintrc.json
Last active December 22, 2015 00:19
ESLint config file for HEPL/RIA courses.
{
"env": {
"node": true
},
"rules": {
"comma-dangle": [ 2, "never" ],
"no-console": 1,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 1,
@leny
leny / .eslintrc.json
Last active February 15, 2016 18:25
Workflow/Grunt tasks (sass/eslint) for HEPL/MMI courses.
{
"env": {
"browser": true,
"jquery": true
},
"rules": {
"comma-dangle": [ 2, "never" ],
"no-console": 1,
"no-constant-condition": 2,
"no-control-regex": 2,

hepl-ria/prevkonsep - Assignement

Pour le 21/10/2016 à 00h00.

Créer un nouveau groupe de routes REST (list, details, add, update, delete) pour un animal de votre choix.

L'animal doit avoir au minimum :

  • un nom
  • un slug

Keybase proof

I hereby claim:

  • I am leny on github.
  • I am leny (https://keybase.io/leny) on keybase.
  • I have a public key whose fingerprint is 1D6E 9030 16B2 0E2C 0725 DCED 1B80 E87C C423 DF3D

To claim this, I am signing this object:

fetch("/something")
.then(JSON.parse)
.then((_in) => (console.log(_in), _in))
.then(sendToClient);
let answer = DeepThought.getTheAnswer();
if (answer === 42) {
// … do something with foo
}
let answer;
if ((answer = DeepThought.getTheAnswer()) === 42) {
// … do something with foo
}
const getReadableAddress = (address) => {
if (address.street && address.number && address.zip) {
return [
`${address.street} ${address.number}`,
`${address.zip} ${address.city}`,
address.country,
].join("\n");
}
return `${address.city} (${address.country})`;