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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
typedef struct Nodo{ | |
char node[200]; | |
struct Nodo *r; | |
struct Nodo *l; | |
} Nodo; |
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
-- define nome do usuário | |
$ git config --global user.name "Robson Faxas" | |
-- define email do usuário | |
$ git config --global user.email "[email protected]" | |
-- Define o editor como sublime | |
$ git config --global core.editor subl | |
-- Mostra o nome cadastrado |
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
-- Inicializar repositório: entre no folder que deseja iniciar um repositório novo e: | |
git init | |
-- ## 4 estados: untracked, unmodified, modified e staged | |
-- adicionar arquivo para staged: | |
git add ReadMe.txt | |
-- adicionar todos os arquivos para staged | |
git add -A |
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
-- Ver histórico de commits | |
git log | |
-- Ver também informações de merge, branches envolvidas, tags geradas | |
git log --decorate | |
-- Lista todos os commits de autores que tenham Rob | |
git log --author="Rob" | |
-- Log curto: quantos commits cada um fez e quais commits |
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
-- Ver mudanças que um commit fez, a partir de uma tag | |
git show g5h736774fhbb88fdb3vd829eb | |
-- Ver modificações feitas nos arquivos atuais, antes de commitar | |
git diff | |
-- Ver apenas os nomes dos arquivos alterados, antes de commitar | |
git diff --name-only | |
-- commitar todos os arquivos modificados (All Modified) |
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
################################################# | |
1º Gerar uma SSH | |
-> dentro do terminal, digite: | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
* Confirmando arquivo gerado, apenas pressione enter | |
* Pedindo password, mas não precisa, enter e enter | |
Pronto, a chave está criada em ~/.ssh/id_rsa.pub |
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
-> Clonando o reositório TestGit e dando o nome desse clone de github-test | |
g clone [email protected]:RobsonFaxas/TestGit.git github-test | |
-> Pull um repositório (atualizar o local para o atualizado no github) | |
git pull | |
-> push um repositório (atualizar o repositório do github baseado nos commits locais) | |
git push -u origin master |
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
-- Habilitar o recurso de Migration no projeto | |
Enable-Migrations -ProjectName iBloom.Clinica.AcessoDados.Entity | |
-- Adicionar uma migration | |
Add-Migration MigracaoInicial -ProjectName iBloom.Clinica.AcessoDados.Entity -StartUpProjectName iBloom.Clinica.AcessoDados.Entity | |
*aparece um warning, é assim mesmo | |
-- Atualizar o banco de dados com a Migration adicionada | |
Update-Database -ProjectName iBloom.Clinica.AcessoDados.Entity -StartUpProjectName iBloom.Clinica.AcessoDados.Entity -Verbose |
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
-- Lazy loading - Busca somente quando for pedido | |
-- Eager loading - Busca todas dependencias. Apenas setar para false (vantagem, dependendo do cenário) | |
Configuration.LazyLoadingEnabled = false; | |
-- Quando lazyloading está em true, o Entity precisa controlar as chamadas das classes através de classes proxys | |
-- para descobrir em que momento cada propriedade de navegação foi chamada por exemplo | |
-- Quando o LazyLoading estiver false, é bom desativar a criação dessas classes proxys também | |
Configuration.ProxyCreationEnabled = false; |
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
- Estilizando: | |
https://www.youtube.com/watch?v=FaNk_GO7uLs | |
- Atribuindo tamanhos variados para as colunas: | |
https://www.youtube.com/watch?v=uWPeEl9Ok_s | |
- Escondendo campos com FooTable (Jquery plugin): | |
https://www.youtube.com/watch?v=nwIiuhgWDqc |
OlderNewer