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
| alias cd..='cd ..' | |
| alias xclipbash='xclip -selection clipboard' | |
| alias port='lsof -t -i' | |
| alias start='nautilus' |
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 path = require('path'); | |
| module.exports = { | |
| config: path.resolve(__dirname, 'src', 'config', 'database.js'), | |
| 'models-path': path.resolve(__dirname, 'src', 'app', 'models'), | |
| 'migrations-path': path.resolve(__dirname, 'src', 'database', 'migrations'), | |
| 'seeders-path': path.resolve(__dirname, 'src', 'database', 'seeds'), | |
| } |
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
| class Main { | |
| produto: any; | |
| constructor(tipoProduto: EnumProduto) { | |
| this.produto = new ProdutoFactory(tipoProduto); | |
| console.log(this.produto instanceof ProdutoMaracuja); // false | |
| console.log(this.produto instanceof ProdutoBanana); // true |
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
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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 DinheiroMask = ({ prefix = "R$", decimal = 2, chunkDelimiter = '.', decimalDelimiter = ',', children }) => { | |
| let total = ""; | |
| let value = children; | |
| if (!value) { | |
| value = 0; | |
| } | |
| const result = '\\d(?=(\\d{3})+' + (decimal > 0 ? '\\D' : '$') + ')'; |