This file contains hidden or 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 _pipe = (f, g) => (...args) => g(f(...args)) | |
export const pipe = (...fcts) => fcts.reduce(_pipe) |
This file contains hidden or 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 remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
git fetch upstream | |
git merge upstream/master |
This file contains hidden or 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
- Faire 3 boutons : 1 rouge, 1 bleu, 1 vert | |
- Faire 3 textes avec la couleur grise : 1 avec l'id p1, 1 avec l'id p2, 1 avec l'id p3, | |
- Quand je clique sur le bouton rouge, | |
- si le texte p1 est gris | |
- le texte devient rouge | |
- sinon | |
- le texte p1 devient gris | |
- Quand je clique sur le bouton bleu, |
This file contains hidden or 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
// Faire un create-react-app | |
// Installer redux et react-redux : npm i -S redux react-redux | |
// Copier tout le code dans le index.js de votre create-react-app | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { combineReducers, createStore } from 'redux'; | |
import {Provider, connect} from 'react-redux'; | |
import './index.css'; |
This file contains hidden or 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
stat -f "%OLp" ./ |
This file contains hidden or 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
module.exports = { | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"sourceType": "module", | |
"allowImportExportEverywhere": false, |
This file contains hidden or 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
1. se mettre en binome ou en trinome | |
2. créer un repo github | |
3. mettre en place une github page | |
4. choisir 2 ou 3 responsive pattern dans la liste suivante : | |
https://bradfrost.github.io/this-is-responsive/patterns.html | |
5. Associer les 2 ou 3 pattern dans une page | |
6. Presentation du code et de la page (expliquer comme fonctionne les pattern présenté | |
---------------------------- |
This file contains hidden or 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
module.exports = { | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parser": "babel-eslint", | |
"parserOptions": { |
This file contains hidden or 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
export PATH="$(npm bin):$PATH" |