Skip to content

Instantly share code, notes, and snippets.

View eemr3's full-sized avatar

Emerson Moreira eemr3

View GitHub Profile
@anchan828
anchan828 / README.md
Last active April 1, 2025 14:23
This is an improvement to allow @nestjs/[email protected] to handle CustomRepository. I won't explain it specifically, but it will help in some way. https://github.com/nestjs/typeorm/pull/1233

You need to provide some classes and decorators yourself to maintain the same style as [email protected].

1. EntityRepository -> CustomRepository

@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}

@annasoldih
annasoldih / enable_systemd_wsl2.md
Last active October 18, 2022 09:51
Enable SYSTEMD on WSL2

Enable SYSTEMD on WSL2

This few steps will enable SYSTEMD on your WSL2. By enabling SYSTEMD you will be able to run snaps, docker, heroku and many more features.

This guide was made and tested on Windows 11, using Ubuntu 20.04 LTS in WSL2.

@webarthur
webarthur / validaCNPJ.js
Last active December 8, 2023 18:39
Função JavaScript para validar CNPJ
function validaCNPJ (cnpj) {
var b = [ 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 ]
var c = String(cnpj).replace(/[^\d]/g, '')
if(c.length !== 14)
return false
if(/0{14}/.test(c))
return false
@silver-xu
silver-xu / ts-boilerplate.md
Last active May 3, 2025 23:57
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@lohhans
lohhans / README-PTBR.md
Last active June 6, 2025 16:40 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

@kavalcante
kavalcante / estados.js
Last active November 27, 2024 23:17
Estados do Brasil em um Array - Javascript
states: [
{ 'AC': 'Acre' },
{ 'AL': 'Alagoas' },
{ 'AP': 'Amapá' },
{ 'AM': 'Amazonas' },
{ 'BA': 'Bahia' },
{ 'CE': 'Ceará' },
{ 'DF': 'Distrito Federal' },
{ 'ES': 'Espírito Santo' },
{ 'GO': 'Goías' },