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
0. Il faut avoir activé la remontée d'info sur le site d'enedis | |
1. Aller sur le site d'enedis, page de visualisation des mesures : https://mon-compte-particulier.enedis.fr/visualiser-vos-mesures-production | |
2. Ourvir le devtools de votre navigateur : touche F12 | |
3. Coller le script dans la console du devTools | |
4. Faire un clique droit sur le tableau affiché à la fin du script et choisir Copier Objet | |
5. Coller le contenu dans un fichier texte/js/json | |
Faites en ce que vous voulez pour analyser | |
Script : |
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
{ | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Benjamin Richard", | |
"label": "Manager technique / Concepteur d'application web", | |
"picture": "https://doschzharf1i9.cloudfront.net/personal_assets/user/200x200/1e784e20-2760-4b90-b0b6-0d7c03af34c1.png", | |
"email": "[email protected]", | |
"phone": "(+33) 6-- --- ---", |
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
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
let monObjet = {name: "moi", job: "dev", city: "lyon"} | |
let monTableau = [1, "dessert", "soir", ] | |
ee = _.first(monTableau) | |
become | |
[ee] = monTableau | |
ee = _.last(monTableau) | |
become | |
[ee] = [...monTableau].reverse() // prevent monTableau mutation |
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 uri = 'https://ghibliapi.herokuapp.com/films' | |
Rx.Observable | |
.fromPromise( | |
fetch(uri) | |
) | |
.flatMap(res => res.json()) | |
.subscribe(res => console.log(res)) |
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
git branch --merged | grep -v '\*' | xargs -n 1 git branch -d |
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
!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d |
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
/** | |
* allow to cache response and/or to listen on newRequest event | |
* | |
* for cache system, it's freely adapted from https://github.com/pagekit/vue-resource/issues/252 @airtonix sample | |
*/ | |
export class HttpInterceptors { | |
_cache | |
constructor (Vue, ttlInHours) { |
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
<ul id="pages-block"> | |
<li v-for="page in pages"> | |
<a v-bind:href="page.url">{{page.name}}</a> | |
<debug :item="page"/> | |
</li> | |
</ul> | |
... | |
Vue.component('debug', { |
NewerOlder