Skip to content

Instantly share code, notes, and snippets.

View kelvysmoura's full-sized avatar
👨‍💻

Kelvys Moura kelvysmoura

👨‍💻
View GitHub Profile
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Tabela de Produtos</title>
</head>
<body>
<h2>Tabela de Produtos</h2>
/*
OBJETIVO
Escrever um codigo que funcione para os 3 botões sem precisar dublicar o addEventListener para cada botão manualmente.
*/
const pedidosButton = document.getElementById('pedidos-button');
pedidosButton.addEventListener('click', event => {
const currentButton = event.target;
const produtos = [
{
nome: "Notebook",
categoria: "Eletrônico"
},
{
nome: "Camiseta",
categoria: "Roupa"
},
{
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Sistema de Busca</title>
<style>
* {
box-sizing: border-box;
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>To-do Simples</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f5f6fa;
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Tabela de Produtos</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f5f6fa;
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Tabs</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f5f6fa;
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Formulário</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f5f6fa;
@kelvysmoura
kelvysmoura / mysql-07022026.sql
Created March 7, 2026 15:00
Aula mysql - 07/03/2026
CREATE TABLE kelvys.escolas (
id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
nome VARCHAR(50) NOT NULL,
cnpj VARCHAR(20) NOT NULL
);
CREATE TABLE kelvys.colaboradores (
id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
escola_id INT NOT NULL,
nome VARCHAR(20) NOT NULL,
@kelvysmoura
kelvysmoura / linux-dicks.md
Last active November 14, 2025 20:47
Linux Dicks (Dicas de Linux)

Comando para encontrar arquivos que o conteudo combine com um determinado pedaço de texto, considerando o diretorio definido no find e seus subdiretorios

find /target/patch/ -type f -name "*.php" -exec grep -l "text" {} +

Encontrar arquivos com mais de 1G de tamanho

sudo find / -type f -size +500M

Encontrar arquivos com mais de 1G e exibir o tamanho do arquivo ao lado