Skip to content

Instantly share code, notes, and snippets.

View pedroribeirodev's full-sized avatar
🖥️

Pedro Henrique Ribeiro pedroribeirodev

🖥️
View GitHub Profile
@pedroribeirodev
pedroribeirodev / select.js
Created August 10, 2021 19:25
select nativo com react hook form
import React, { useState, useContext } from 'react';
import { FaTimesCircle } from 'react-icons/fa';
import PropTypes from 'prop-types';
import { ThemeContext } from 'styled-components';
import { Container, ErrorMessage } from './styles';
function Select({
label,
@pedroribeirodev
pedroribeirodev / example.js
Created August 10, 2021 19:24
exemplo código com select nativo
import React from 'react';
import { useForm } from 'react-hook-form';
import PropTypes from 'prop-types';
import { yupResolver } from '@hookform/resolvers/yup';
import { Button } from '@material-ui/core';
import { MASKS, TYPE_EDITAL } from 'helpers/constants';
{
"_embedded": {
"banks": [
{
"number": "001",
"name": "BCO DO BRASIL S.A."
},
{
"number": "003",
"name": "BCO DA AMAZONIA S.A."
{
"petshop": {
"trade_name": "Petshop Test 3",
"register_name": "Petshop Test",
"document": "83.770.616/0001-79",
"telephone": "(31)3521-0765",
"legal_responsible": "Emanuel da Silva",
"category": "Petshop",
"description": "Nosso petshop é uma clínica especializada em bem-estar. Desde 1995, atendemos ao melhor estilo mineiro: qualidade, profissionalismo e uma recepção de primeira para você e seu melhor amigo."
},
@pedroribeirodev
pedroribeirodev / .json
Created April 14, 2020 22:19
VS CODE CONFIG 2020
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula",
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": -1,
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.fontLigatures": true,
PS C:\dev\mobile-api> npm install
> grpc@1.20.0 install C:\dev\mobile-api\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.20.0 and node@12.16.1 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
@pedroribeirodev
pedroribeirodev / html
Last active August 22, 2019 14:25
assinatura sollides
<html>
<body>
<table>
<style>
@import url("https://fonts.googleapis.com/css?family=Lato|Roboto&display=swap");
table {
font-family: "Lato", sans-serif;
}
</style>
<thead>
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula",
"window.zoomLevel": 0,
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"editor.rulers": [80, 120],
{% extends 'base.html' %}
{% block main %}
<section class="header" style="height: 100vh">
<div class="container h-100 d-block">
<div class="row justify-content-center align-items-center h-50">
<div class="col-md-3">
<img class="" id="tremdjovem-logo" src="static/img/logo-tremd-jovem.png" alt="Trem de Jovem">
</div>
<div class="col-md-7">
<div class="input-group mb-3">