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
| # CSS3 tricks | |
| ## Useful links: | |
| [Can I use](https://caniuse.com) | |
| [Box model](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Box_model) | |
| [Width & height](https://www.w3schools.com/css/css_dimension.asp) | |
| [Display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) | |
| [Pseudo element](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements) | |
| [CSS Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) | |
| [Positioning](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning) |
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
| ## Definition | |
| ### The Store | |
| The store contains the store and 3 methods which will make the change predictable | |
| as much as possible. | |
| function createStore (reducer) { | |
| <!--// The store should have four parts--> |
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
| ```bash | |
| git checkout dev | |
| git pull origin | |
| git branch | |
| git checkout DEV-2136/fix/fix-validation-form-message | |
| git log --oneline | |
| git merge dev | |
| git push origin DEV-2136/fix/fix-validation-form-message | |
| git rebase -i HEAD~20 | |
| git config |
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 Blobs and trees | |
| ### Asking Git for the SHA1 | |
| > echo 'Hello, World!' | git hash-object --stdin | |
| 8ab686eafeb1f44702738c8b0f24f2567c36da6d | |
| ## Git Commits | |
| commit are stored in .git/objects | |
| tree .git/objects |
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
| ## Init package | |
| npm install -y | |
| ## Install live server | |
| npm install --save-dev nodemon | |
| or | |
| npm install -D nodemon | |
| ## Export a function | |
| const myFunc = (name) => console.log(`Welcome ${name}`); | |
| module.exports = myFunc; | |
| // saved in myFunc.js |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| html,body { | |
| height: 100%; | |
| } |
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
| ### OPEN Webpack.config.js | |
| Without this the browser will say :"I don't have instruction on how to handle the url with the query string!" | |
| The modification will be redirected to the index.html page and then React Router can handle the change and send the right Route. | |
| output :{ | |
| publicPath: '/' | |
| } | |
| devServer :{ |
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
| function add (x, y) { | |
| return x + y | |
| } | |
| function makeAdder (x, addReference) { | |
| return function (y) { | |
| return addReference(x, y) | |
| } | |
| } |
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
| ### Initiate your project | |
| yarn init | |
| ### Install react and react-dom | |
| yarn add react react-dom | |
| ### Install webpack dev server | |
| yarn add -D webpack webpack-dev-server webpack-cli | |
| ### Install babel | |
| yarn add -D @babel/core @babel/preset-react | |
| ## Install babel loader | |
| yarn add -D babel-loader |
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
| https://guides.github.com/introduction/flow/ | |
| https://help.github.com/en/articles/git-and-github-learning-resources | |
| https://guides.github.com/introduction/git-handbook/ | |
| ### emoji | |
| https://gist.github.com/rxaviers/7360908 | |
| ### Basic writing and formating syntax |
NewerOlder