Skip to content

Instantly share code, notes, and snippets.

View CodingJhames's full-sized avatar
:shipit:

Jhames Mejía CodingJhames

:shipit:
  • Colombia
  • 02:24 (UTC -05:00)
View GitHub Profile
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# gets the current staged changed diff
# sends that to the LLM, and generates a message.
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
# The command is "gcm"
@Klerith
Klerith / configurar-node-ts.md
Last active October 30, 2025 01:29
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@Klerith
Klerith / pasos-node-ts-jest.md
Created August 19, 2023 18:35
Note + TypeScript + Jest = Testing

Pasos para configurar Jest con TypeScript, en Node

Documentación oficial sobre Jest

  1. Instalaciones de desarrollo (super test es útil para probar Express)
npm install -D jest @types/jest ts-jest supertest
@Klerith
Klerith / pasos-node-typescript.md
Last active October 31, 2025 14:10
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@Klerith
Klerith / docker-compose.yml
Last active October 17, 2025 00:13
PostgreSQL + PgAdmin
version: '3'
services:
myDB:
image: postgres:15.3
container_name: my-database
restart: always
ports:
- 5432:5432
environment:
@Klerith
Klerith / instalaciones-database.md
Last active October 6, 2025 10:19
Instalaciones necesarias para el curso de base de datos
@Klerith
Klerith / instalaciones-qwik.md
Created May 8, 2023 22:31
Instalaciones recomendadas para qwik
@Klerith
Klerith / instalaciones.md
Last active November 2, 2025 12:50
Instalaciones recomendadas - Curso de Angular de cero a experto
@Klerith
Klerith / templateSlice.js
Last active August 19, 2025 17:07
Cascaron para crear Redux Slices rápidamente
import { createSlice } from '@reduxjs/toolkit';
export const templateSlice = createSlice({
name: 'name',
initialState: {
counter: 10
},
reducers: {
increment: (state, /* action */ ) => {
//! https://react-redux.js.org/tutorials/quick-start
@sindresorhus
sindresorhus / esm-package.md
Last active October 31, 2025 00:11
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.