Skip to content

Instantly share code, notes, and snippets.

View ssdev-95's full-sized avatar
NaN

ssdev-95

NaN
  • NaN
  • Brazil
View GitHub Profile
@ssdev-95
ssdev-95 / index.html
Created June 13, 2022 11:08
Irmão tezt input
<!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>
@ssdev-95
ssdev-95 / init.md
Last active April 24, 2022 00:21
Design must topics

UI Trending topics

Everything you should know to start up :D

  1. Aprender os princípios de UI Design: Antes de começar a montar telas, é preciso saber o que faz uma tela ser bonita e funcional:
    • Princípios de Gestalt
    • Hierarquia Visual
    • Carga Cogitava
    • Espaço Negativo
  • Contraste
@ssdev-95
ssdev-95 / README.md
Last active February 24, 2023 00:14
An she'll script to automatize distro configuration

Post Install Script - For Linux systems only :D

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.

@ssdev-95
ssdev-95 / App.js
Created September 30, 2021 23:56
Stack Navigation example
import 'react-native-gesture-handler';
import React from 'react';
import {MainScreen} from './MainScreen';
import {SecondScreen} from './ComponentB';
import {NavigationContainer} from '@react-navigation/native';
@ssdev-95
ssdev-95 / form.js
Created September 9, 2021 20:38
Form React Native
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)}>
@ssdev-95
ssdev-95 / input.tsx
Last active August 3, 2021 20:54
Input Validation
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)
@ssdev-95
ssdev-95 / server.ts
Created August 1, 2021 13:41
Server.ts CORS Error
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',,