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
{"version":1,"resource":"file:///Users/azagatti/Downloads/Projects/candidate/src/components/atoms/input-date/dates.ts","entries":[{"id":"xUy4.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1650138015651},{"id":"tVf8.ts","source":"renamed.source","timestamp":1650138061019},{"id":"XuY3.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1650138681735},{"id":"HSVa.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1650138711444}]} |
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 { useCallback, useState, ChangeEvent } from "react"; | |
function useForm<T>(initialData: T) { | |
const [values, setValues] = useState<T>(initialData); | |
const setValue = useCallback((key: string | null, value: string) => { | |
if (!key) return; | |
setValues((state) => ({ ...state, [key]: value })); | |
}, []); |
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 PDFDocument from 'pdfkit'; | |
import { | |
copyFileSync, | |
createWriteStream, | |
existsSync, | |
mkdirSync, | |
readdirSync, | |
readFileSync, | |
statSync, | |
watchFile, |
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
/* eslint eqeqeq: [0, "smart"] */ | |
export const getValidTelefone = value => { | |
const regex = /^[1-9]{2}9?[1-9]\d{7}$/; | |
const telefone = value.replace(/\D/g, ''); | |
if (regex.test(telefone)) { | |
return Boolean(telefone); | |
} | |
return false; | |
}; |
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 React from 'react'; | |
import { | |
Route as ReactDOMRoute, | |
RouteProps as ReactDOMRouteProps, | |
Redirect, | |
} from 'react-router-dom'; | |
import { useAuth } from '../hooks/auth'; | |
interface RouteProps extends ReactDOMRouteProps { |
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
.git | |
build | |
node_modules | |
.env | |
docker-compose.yml | |
Dockerfile | |
./certs |
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
require('dotenv').config(); | |
const Dotenv = require('dotenv-webpack'); | |
import * as webpack from 'webpack'; | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); | |
const htmlPlugin = new HtmlWebpackPlugin({ | |
template: './public/index.html', | |
}); |
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
docker run -d --name postgresql -e POSTGRESQL_PASSWORD=my_password -e POSTGRESQL_USERNAME=my_user -e POSTGRESQL_DATABASE=my_db -p random_port:5432 bitnami/postgresql:latest | |
docker run -d --name mongodb -e MONGODB_USERNAME=my_user -e MONGODB_PASSWORD=my_password -e MONGODB_DATABASE=my_db -p random_port:27017 bitnami/mongodb:latest | |
docker run -d --name redis -e REDIS_PASSWORD=my_password -p random_port:6379 bitnami/redis:latest |
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
**/*.js | |
node_modules | |
build |
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
#include<stdio.h> | |
#include<stdlib.h> | |
struct Node { | |
int data; | |
struct Node *next; | |
}; | |
void printList(struct Node *start) { |
NewerOlder