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
| //Imports | |
| import java.time.LocalDateTime; | |
| import java.time.LocalDate; | |
| import java.time.format.TextStyle; | |
| import java.util.Locale; | |
| String name = "LucasDSBR"; | |
| // toUpperCase | |
| System.out.println(name.toUpperCase()); |
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
| Angular CLI -->> ng g p nome-pipe | |
| # Currency | |
| # Formata um número como moeda. | |
| myVar = 5.3589; | |
| <p>{{ myVar | currency:'BRL':’symbol’:’1.2-2’ }}</p> |
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
| ==== EXAMPLA.CSS ==== | |
| .style1 { | |
| /*.....*/ | |
| } | |
| .style2 { | |
| /*.....*/ | |
| } | |
| .style3 { | |
| /*.....*/ |
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
| ==== EXAMPLA.CSS ==== | |
| .style1 { | |
| /*.....*/ | |
| } | |
| .style2 { | |
| /*.....*/ | |
| } | |
| .style3 { | |
| /*.....*/ |
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
| ============ ngif: ============ | |
| <p *ngIf="isVisible; else condicaofalsa"> | |
| Esta ativadoo | |
| </p> | |
| <ng-template #condicaofalsa> | |
| <p>Esta inativooo</p> | |
| </ng-template> | |
| ============ ngSwitchcase: ============ |
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
| /* Crie uma div com border-readius de 100px e width e heigth = 16px */ | |
| function movercirculo(event) { | |
| const circulo = document.querySelector('div'); | |
| const cordenadas = { | |
| x: event.x, | |
| y: event.y | |
| } | |
| circulo.style.top = event.y+"px" | |
| circulo.style.left = event.x+"px" |
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
| <classe-ou-id-do-item>:focus { | |
| outline-width: 0; | |
| } |
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
| /* Configurar largura do scrollbar */ | |
| <id-ou-classe>::-webkit-scrollbar { | |
| width: 5px; | |
| } | |
| /* Configurar a cor do scrollbar */ | |
| <id-ou-classe>::-webkit-scrollbar-thumb { | |
| background: #C2C6CA; | |
| } |
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 { | |
| --roxo: #84e; | |
| --branco: #fff; | |
| } | |
| h1 { | |
| color: var(--roxo); | |
| background-color: var(--roxo); | |
| } |
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
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --fundo-1: #111111; | |
| --fundo-2: #000000; | |
| --texto: #ffffff; | |
| --subtitulo: rgba(255, 255, 255, 0.2); | |
| --onda: url("./img/onda-escura.svg"); | |
| } | |
| } |
NewerOlder