Skip to content

Instantly share code, notes, and snippets.

View heliomarpm's full-sized avatar
🚀
Don't stop learning

Heliomar P. Marques heliomarpm

🚀
Don't stop learning
View GitHub Profile
@heliomarpm
heliomarpm / Keybindings.json
Created August 18, 2025 15:34
VSCode User Keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+alt+f",
"command": "editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+k ctrl+d",
"command": "-editor.action.moveSelectionToNextFindMatch",
@heliomarpm
heliomarpm / vscode-commit-message-guidelines.md
Last active May 13, 2025 16:03
🤖 VSCode - Commit Semantic with Copilot

Add the following data to settings.json within VSCode to auto-generate commit messages with Copilot using the Conventional Commit format.

This is based off of this example, however includes more explicit instructions for all commit prefixes (such as docs, refactor, etc).

  "github.copilot.chat.commitMessageGeneration.instructions": [
    {
      "text": "Follow the Conventional Commits format strictly for commit messages in Portugues. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: F
@heliomarpm
heliomarpm / ConventionalCommits.md
Last active November 6, 2024 12:52
Git Commit - Oragnizado

Commits Convencionais: Guia de Boas Práticas

este é apenas um pequeno resumo, a documentação completa por ser encontrada no final deste documento.

Os Commits Convencionais são uma convenção simples para criar um histórico de commits mais legível. Eles são baseados em um conjunto de regras que categorizam cada commit, permitindo uma fácil navegação e compreensão do histórico do projeto.

Tipos de Commits

Os tipos de commits são definidos por uma palavra-chave seguida por um breve resumo, separados por dois pontos. Aqui estão os tipos mais comuns:

@heliomarpm
heliomarpm / .eslintrc.js
Last active March 5, 2025 17:10
prettier config for NestJS
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
@heliomarpm
heliomarpm / Is.ts
Created June 11, 2024 03:03
Validador de CPF e CNPJ
const Is = {
cpf(value: string): boolean {
// Verifica se o CPF contém apenas números, pontos ou traços
//if (!/^[\d.-]+$/.test(value)) return false;
if (!/^\d{11}$|^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(value)) return false;
const cpf = value.replace(/\D/g, "");
if (cpf.length !== 11 || /^(\d)\1+$/.test(cpf)) return false;
@heliomarpm
heliomarpm / deltree_temps.bat
Last active May 31, 2024 21:09
Comando Batch para remover arquivos temporários e pacotes instalados
@echo off
HOSTNAME
title Excluir arquivos temporários e packages instalados
:menu
cls
echo.
echo ** Excluir arquivos temporarios e packages instalados **
echo ========================================================
echo.
echo 1) EXCLUIR TUDO
@heliomarpm
heliomarpm / regex.md
Last active March 16, 2024 01:09
Expressões Regulares
@heliomarpm
heliomarpm / 01-boas_vindas.md
Last active October 19, 2024 22:39
Trybe - Bootcamp: IA Generativa com AWS

Boas vindas ao Bootcamp: IA Generativa com AWS da Trybe

Drive Videos

Nota: Todo o conteúdo foi gerado e ministrado originalmente pela Trybe | Escola de Tecnologia online, este curso foi oferecido gratuitamente de forma limitado até a data 31/01/2024

Boas vindas ao Bootcamp de IA Generativa com AWS!

Estamos felizes em ter você conosco nesta jornada de aprendizado. Neste curso, você terá a oportunidade única de explorar profundamente o impacto transformador da IA Generativa, com um foco especial nas soluções oferecidas pela AWS. Prepare-se para uma jornada de aprendizado que promete ser tanto informativa quanto inspiradora.

@heliomarpm
heliomarpm / Car.java
Created November 17, 2023 03:11
Java MVC + Repository
//model
public class Car {
private int id;
private String brand;
private String model;
private double price;
// Construtor, getters e setters
@Override
@heliomarpm
heliomarpm / program.cs
Created November 7, 2023 16:01
C# Algoritmo Huffman
using System;
using System.Collections.Generic;
using System.Text;
class HuffmanNode
{
public char Character { get; set; }
public int Frequency { get; set; }
public HuffmanNode Left { get; set; }
public HuffmanNode Right { get; set; }