This script is intended to run post os installation commands,
Such as for install packages, or do some configs, git and others..
Not tested on rWindows, no wanna do it, update it to handle this os if ya like.
Not all Linux distros has package managers covered by this script, sorry.
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 'reflect-metadata' | |
| import express, { Request, Response, NextFunction } from 'express' | |
| import 'express-async-errors' | |
| // import cors from 'cors' | |
| import { router } from './routes' | |
| require('dotenv').config() | |
| // const origins = [ | |
| // 'http://localhost:3000',, |
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 { ChangeEvent } from 'react'; | |
| function handleKeyUp(e: ChangeEvent<HTMLInputElement>) { | |
| e.currentTarget.maxLength = 8; | |
| let value = e.currentTarget.value; | |
| value = value.replace(/\D/g, ""); | |
| setNewZip(value) |
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 React from 'react'; | |
| import { View, TextInput } from 'react-native'; | |
| import {Formik} from 'formik'; | |
| // Baseado nas docs do Formik: https://formik.org/docs/guides/react-native | |
| // Button customizado, faca o seu :D | |
| const Form = ({action}) => { | |
| return ( | |
| <Formik initialValues={{ email: '' }} onSubmit={values => action(values)}> |
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 { FormEvent, useState } from 'react'; | |
| interface PostFooterProps { | |
| CommentsContent: { | |
| Id: number; | |
| UserName: string; | |
| ProfilePic: string; | |
| IsTheCurrentUser: boolean; | |
| PublishTime: number; | |
| Content: string; |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| </head> | |
| <body> | |
| <input type="number" id="txt" /> | |
| <button onclick="clicar()">clicar</button> | |