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
Como ver quais pacotes estão instalados globalmente na sua máquina e quais suas versões. | |
npm list -g --depth=0 | |
Como deletar o pacote desejado globalmente da maquina | |
npm uninstall -g nomeDoPacote | |
Como ver se tem algum pacote ou arquivo especifico npm com problema | |
npm audit | |
Concertar automaticamente os pacotes ou arquivos do npm com problema |
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
Comandos | |
git config --global user.name "wesllyakatsuka" | |
//Configura o seu nome de usuário (Tem que ser o mesmo cadastrado no memomento da conta) | |
git config --global user.email wesllyakatsuka@gmail.com | |
//Configura o seu nome de usuário (Tem que ser o mesmo cadastrado no memomento da conta) | |
git status | |
//Exibe tudos os arquivos dentro de uma pasta e aponta se estão ou não sendo rastreados |
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
{ | |
} |
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
{ | |
"estadoPorDdd": { | |
"11": "SP", | |
"12": "SP", | |
"13": "SP", | |
"14": "SP", | |
"15": "SP", | |
"16": "SP", | |
"17": "SP", | |
"18": "SP", |
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
// USAGE: | |
// | |
// When you attach the infiniteScroll directive to an element, it will emit the infiniteScrollAction | |
// @Output() event every time the user has scrolled to the bottom of the element. Your loadMoreArticles | |
// function can make an HTTP call and append the results to the articles list, for example. In doing this, | |
// you effectively increase the height of the element and thus begin the process of the infiniteScroll directive | |
// again, over and over until the element height stops increasing. | |
// | |
// <div class="container" infiniteScroll (infiniteScrollAction)="loadMoreArticles()"> | |
// <div class="article" *ngFor="let article of articles"> |
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
import {Injectable} from '@angular/core'; | |
import {Cache} from '../utils/storage.provider'; // Decorator to access local storage | |
let OneSignal; | |
const url = ''; | |
@Injectable() | |
export class OneSignalService { | |
@Cache({pool: 'OneSignal'}) oneSignalInit; // to check if OneSignal is already initialized. |
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
abstract class IGlobalFailure implements Exception { | |
final String? message; | |
IGlobalFailure({this.message}); | |
} | |
abstract class EitherFailure implements Exception { | |
final String? message; | |
EitherFailure({this.message}); | |
} |
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
class Validators { | |
static bool validateEmail(String value) { | |
if (value.isEmpty) return false; | |
final String pattern = | |
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'; | |
final regex = RegExp(pattern); | |
final result = regex.hasMatch(value); | |
return result; | |
} |
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
{ | |
// Domain | |
// Repository | |
"Dart Clean Arch - Repository Interface Type: Set": { | |
"prefix": ["repository-interface-set"], | |
"body": [ | |
"abstract class I${1:RuleName}Repository {\t$0", | |
" Future<Either<${1:RuleName}RepositoryError, ${2:T}>> call(${3:T} param);", | |
"}\t$0" | |
], |
OlderNewer