Skip to content

Instantly share code, notes, and snippets.

View tavareshenrique's full-sized avatar
💭
think different.

Henrique Tavares tavareshenrique

💭
think different.
View GitHub Profile
GetNinjas

Site-Clientes

interface User {
email: string;
password: string;
avatar_url?: string;
}
// Partial<Type>
type PartialUser = Partial<User>;
/**
type PartialUser = {
@tavareshenrique
tavareshenrique / launch.json
Last active January 19, 2021 18:29
Microsoft Edge (dev) VSCode Debug (Linux)
{
// Remember install the Debugger for Microsoft Edge Extension.
// https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-edge
"version": "0.2.0",
"configurations": [
{
"type": "edge",
"request": "launch",
"name": "Launch Edge against localhost",
"url": "http://localhost:3000",
@tavareshenrique
tavareshenrique / AsyncSelect.js
Created January 16, 2021 15:07
AsyncSelect Component
import React, { useCallback } from "react";
import debounce from "lodash/debounce";
import AsyncSelect from "react-select/async";
import axios from "axios";
const App = (props) => {
const options = [
{ label: "Option 1", value: 1 },
{ label: "Option 2", value: 2 },
{ label: "Option 3", value: 3 }
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
@tavareshenrique
tavareshenrique / reset-button-style.css
Created July 14, 2020 00:58
Reset CSS button style
button {
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
outline: inherit;
}
import React from 'react';
import { render, fireEvent, waitFor } from '@testing-library/react';
import { FiMail } from 'react-icons/fi';
import colors from '~/styles/colors';
import Input from '~/components/Input';
jest.mock('@unform/core', () => ({
@tavareshenrique
tavareshenrique / maven.yml
Last active May 29, 2020 14:47
Github Actions: Java + Maven
# Aqui é o nome que você pode dar ao processo de CI.
name: Java CI with Maven
on:
push:
# Aqui você diz a partir de qual branch ele irá fazer o processo de CI.
# Nesse caso está configurado no master, ou seja, sempre que o master receber
# um novo commit, será feito a CI.
branches: [ master ]
pull_request:
@tavareshenrique
tavareshenrique / README.md
Last active May 30, 2020 20:27
My README API Model

{PROJECT_LOGO(300X300)}

Last commit on GitHub Made by Henrique Tavares Project top programing language Repository size

@tavareshenrique
tavareshenrique / .eslintrc.json
Last active April 25, 2020 18:31
ESLint Config TypeScript
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",