{
"react functional component": {
"prefix": "rfc",
"body": [
"import React from 'react'",
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
server { | |
server_name api.foo.com; | |
location / { | |
proxy_pass http://127.0.0.1:3333; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; |
npm i react-custom-scrollbars
yarn add react-custom-scrollbars
Esta configuração vai nos ajudar a rodar alguma rotina antes que o desenvolvedor faça o commit do código, rodando um hook do git chamado pre-commit, vamos configurar o husky para executar o ESLint e o Prettier e caso não tenha nehum erro de lint o commit vai proseguir normalmente.
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 { CurrencyPipe } from '@angular/common'; | |
import { Directive, ElementRef, HostListener, OnInit } from '@angular/core'; | |
import { IonInput } from '@ionic/angular'; | |
@Directive({ | |
selector: "[maskCurrency]", | |
}) | |
export class MaskCurrencyDirective implements OnInit { | |
private input: IonInput; |
A Pen by Elton Rodrigues on CodePen.