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
| # How to use | |
| # gedit ~/.zshrc or ~/.bashrc and paste the aliases | |
| ### ALIASES | |
| # GENERAL | |
| alias c="clear" | |
| # END OF GENERAL |
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://momentjs.com/ | |
| import * as moment from 'moment'; | |
| import 'moment/locale/pt-br'; | |
| // -------------------- FIRST | |
| const getDate = new Date((parseInt(timeStampHour))) | |
| moment.locale('pt-br'); |
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
| import axios from 'axios'; | |
| const formatedAddress = enderecoCompleto.split(' ').join('+'); | |
| const response = await axios.get(`https://maps.googleapis.com/maps/api/geocode/json?address=${formatedAddress}&key=${process.env.REACT_APP_GOOGLEMAPS_TOKEN}`); | |
| const latitude = response.data.results[0].geometry.location.lat; | |
| const longitude = response.data.results[0].geometry.location.lng; |
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
Show hidden characters
| { | |
| "parser": "babel-eslint", | |
| "env": { | |
| "browser": true, | |
| "jest": true | |
| }, | |
| "plugins": ["react", "jsx-a11y", "import"], | |
| "extends": "airbnb", | |
| "rules": { | |
| "react/jsx-filename-extension": [ |