This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ANDROID_HOME=~/Android/Sdk | |
export PATH="$PATH:$ANDROID_HOME/tools" | |
export PATH="$PATH:$ANDROID_HOME/platform-tools" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/josimar/.oh-my-zsh" | |
export PATH="$PATH:/usr/local/bin" |
This file contains 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
-- recupera a chave -> | |
-- recupera o texto da chave ->> | |
-- recupera valor dentro do array #> | |
-- indice do array '{0}' | |
-- {"um_campo_array_dentro_do_json": [{"chave_dentro_do_array": 1}]} | |
coluna_json -> 'um_campo_array_dentro_do_json' #> '{0}' -> 'chave_dentro_do_array' | |
-- {"object_dentro_json": {"chave_dentro_object": 1}} | |
coluna_json -> 'object_dentro_json' ->> 'chave_dentro_object' |
This file contains 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
## Backend em REST e Graphql | |
backend | |
*** Pasta types para guardar novas tipagens do TypeScript *** | |
|__ @types | |
*** Adicionar nova tipagem para a lib do express na request *** | |
|__ express.d.ts | |
*** Pasta de configuração de serviços *** | |
|__ config | |
*** Arquivo de configuração para a autenticação *** | |
|__ auth.ts |
This file contains 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
<template> | |
<h1>O count é: </h1> | |
<h3>{{ count }}</h3> | |
<button @click="count(2)">Contar</button> | |
</template> | |
<script> | |
import Vue from 'vue'; | |
export default { | |
// Computed é uma propriedade do vue que fica observando mudanças no estado | |
// Sempre que há mudanças no estado, a variavel em observação é recopilada e é refletida a mudança |
This file contains 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.7' | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: "password" | |
ports: |
This file contains 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
# instalar docker | |
sudo curl -fsSL http://get.docker.com | bash | |
# instalar docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
docker-compose --version | |
sudo usermod -aG docker <your-user> | |
sudo /etc/init.d/apache2 stop |
This file contains 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
{ | |
"sync.gist": "67b637bff280630d56be647bb2c5db38", | |
"terminal.integrated.fontSize": 14, | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.tabSize": 2, | |
"editor.fontSize": 14, | |
"editor.lineHeight": 26, | |
"editor.fontWeight": "500", | |
"files.exclude": { | |
"**/.git": true, |
This file contains 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
sudo chown user:user -Rf ~/.npm |