Skip to content

Instantly share code, notes, and snippets.

View SilasRodrigues19's full-sized avatar
🐒
Attempting to define the undefined in both code and reality

Silas Rodrigues SilasRodrigues19

🐒
Attempting to define the undefined in both code and reality
View GitHub Profile
@SilasRodrigues19
SilasRodrigues19 / git.md
Created September 28, 2021 17:39 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@SilasRodrigues19
SilasRodrigues19 / git.md
Created September 28, 2021 22:40 — forked from pedronauck/git.md
Terminal commands

Comandos Gerais

Clonar um Repositório

$ git clone 'nome-do-repositório'

Verificar status

$ git status
@SilasRodrigues19
SilasRodrigues19 / cursos.md
Last active December 2, 2021 19:03
Lista de bons conteúdos de programação no YouTube
Canal Conteúdo Idioma Canal Conteúdo Idioma
Angela Delise HTML, CSS, JavaScript, Figma, UI/UX e Snippets Awa Melvine PHP, SQL
Bóson Treinamentos Lógica, C/C++, Estrutura de Dados, POO, Python, SQL, API, UML, Modelagem de Dados, Segurança e Criptografia, Redes Brian Design HTML, CSS, JavaScript, React JS, AdobeXD, UI/UX
Celke MERN (MongoDB, Express, ReactJS, NodeJS), PHP, NextJS, React Native, POO, JQuery,

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

// Isso dentro de components/Items/styles.js
import styled from 'styled-components';
export const Categoria = styled.div`
display: flex;
padding: 5px 10px;
border-radius: 5px;
color: #111;
border: 2px solid;
`;
@SilasRodrigues19
SilasRodrigues19 / adm.teste.php
Last active March 22, 2022 16:55
Tentando deixar o calendário multidates
<?php
if(!isset($_SESSION)){
session_start();
}
include('class/load.class.php');
$objReg = new Reg();
if(isset($_SESSION['user'])){
$user = $_SESSION['user'];
@SilasRodrigues19
SilasRodrigues19 / SideMenu.tsx
Created March 30, 2022 00:35
Alternando texto e ícone junto com o tema
<Box>
<List component="nav">
<ListItemButton onClick={toggleTheme}>
<ListItemIcon>
<Icon>
{theme.palette.mode == 'dark' ? 'light_mode' : 'dark_mode'}
</Icon>
</ListItemIcon>
<ListItemText
primary={theme.palette.mode == 'dark' ? 'Light' : 'Dark'}
@SilasRodrigues19
SilasRodrigues19 / SideMenu.tsx
Created March 30, 2022 00:51
Alternando a imagem entre as cores claras e escuras de acordo com o tema, para dar contraste
<Avatar
sx={{
height: theme.spacing(12),
width: theme.spacing(12),
pointerEvents: 'none',
filter: theme.palette.mode == 'light' ? 'invert(1)' : '',
}}
alt="Silas Rodrigues"
src={Image}
/>
/* Vai ser usada no CONTROLLER */
function notificacao($msg, $status)
{
$_SESSION['msg'] = $msg;
$_SESSION['status'] = $status;
}
/* Vai ser chamada na VIEW */
function exibeMensagem()
{
@SilasRodrigues19
SilasRodrigues19 / uid.js
Last active September 16, 2022 23:23
Function to generate a unique id
const uid = () => {
return (performance.now().toString(36)+Math.random().toString(36)).replace(/\./g,"");
};
uid();