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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restaurar | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE |
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 chunkSize = 10; | |
for (let i = 0; i < dataLoad.length; i += chunkSize) { | |
const chunk = dataLoad.slice(i, i + chunkSize); | |
//exemplo a baixo | |
await request.post('/data-load', dataLoad) | |
} |
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 numpy as np | |
entrada = np.array([ | |
[0,0,1], | |
[1,1,1], | |
[1,0,1], | |
[0,1,1] | |
]) | |
treinamento_resultado = np.array([[0,1,1,0]]).T |
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
call plug#begin() | |
Plug 'tomasr/molokai' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'preservim/nerdtree' | |
Plug 'gko/vim-coloresque' | |
Plug 'cohama/lexima.vim' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'Xuyuanp/nerdtree-git-plugin' |
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 currentDate = new Date() | |
const formatDate = currentDate.toLocaleDateString( | |
'pt-BR', | |
{ | |
day: '2-digit', | |
month: '2-digit', | |
year: 'numeric | |
} | |
) |
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
version: '3' | |
services: | |
app: | |
build: . | |
command: yarn start | |
ports: | |
- '3000:3000' | |
volumes: | |
- .:/usr/app |
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
version: '3' | |
services: | |
app: | |
build: . | |
command: yarn start | |
ports: | |
- '3000:3000' | |
volumes: | |
- .:/usr/app |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > dump.sql | |
# Restore | |
cat dump.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
//Manual | |
const resultsA = { | |
name: request.name.value, | |
age: request.age.value, | |
description: request.description.value, | |
price: request.price.value, | |
image: request.image.value, | |
} | |
//Dinamico |
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 nextConfig = { | |
reactStrictMode: true, | |
} | |
module.exports = nextConfig | |
module.exports = { | |
images: { | |
domains: ['enter the domain of your image'], | |
formats: ['image/avif', 'image/webp'], |
NewerOlder