- Campus : Toulouse
- Techno : JS/React
Après avoir été développeur pendant de nombreuses années, je suis désormais formateur à la Wild de Toulouse, depuis février 2018 !
Benoît Hubert - 2018 - Profil GitHub
| <!doctype html> | |
| <html lang="fr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Maintenance du site</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } |
| /* | |
| I needed to get a quick flat color palette for a project of mine. | |
| The one at https://flatuicolors.com/ is great. | |
| Just go to the site, open your console and paste this. | |
| It will generate a JSON array with each color and associated name. | |
| */ | |
| output = '['; | |
| const $divs = $('.color'); | |
| const lastIndex = $divs.length - 1 | |
| $('.color').each((index, div) => { |
| <h1>Not Found</h1> | |
| <p>Cette page n'existe pas !</p> |
| 1 cd mystery/ | |
| 2 grep CLUE crimescene | |
| 3 grep -q ATM interviews/* | |
| 4 grep -q Annabel interviews/* | |
| 5 grep -i Annabel interviews/* | |
| 6 grep -i Zealand interviews/* | |
| 7 grep -i shot interviews/ | |
| 8 grep -i shot interviews/* | |
| 9 grep -i -A 5 shot interviews/interview-699607 | |
| 10 grep -A 5 L337 vehicles |
Après avoir été développeur pendant de nombreuses années, je suis désormais formateur à la Wild de Toulouse, depuis février 2018 !
Benoît Hubert - 2018 - Profil GitHub
| // Without label | |
| const passLog = obj => { console.log(obj); return obj; }; | |
| // With label | |
| const passLog = label => obj => { console.log(label, obj); return obj; }; |
| module.exports = { | |
| googleApiKey: 'INSERT_YOUR_KEY_HERE' | |
| } |
| const { page } = req.query; | |
| let limit = ''; | |
| if (page) { | |
| const skip = Number(page) * 10 // Si tu as 10 items par page | |
| limit = `LIMIT ${skip},10`; // skip définit le nombre d'items à "passer" pour arriver à ceux qu'on veut obtenir | |
| } | |
| db.query(`SELECT * FROM user ORDER BY ID DESC ${limit}`), (err, res) => { | |
| // ... | |
| }) |
| --- /etc/nginx/nginx.conf.original 2019-01-21 19:39:10.556032081 +0100 | |
| +++ /etc/nginx/nginx.conf 2019-01-21 19:42:09.225622416 +0100 | |
| @@ -45,6 +45,12 @@ | |
| include /etc/nginx/default.d/*.conf; | |
| location / { | |
| + proxy_pass http://localhost:8000; | |
| + proxy_http_version 1.1; | |
| + proxy_set_header Upgrade $http_upgrade; | |
| + proxy_set_header Connection 'upgrade'; |