Skip to content

Instantly share code, notes, and snippets.

View CodingJhames's full-sized avatar
:shipit:

Jhames Mejía CodingJhames

:shipit:
  • Colombia
  • 16:33 (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 March 12, 2026 03:11
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 March 6, 2026 14:06
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 January 15, 2026 00:05
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 March 14, 2026 19:11
Instalaciones necesarias para el curso de base de datos
Postgresql_elephant svg

SQL de cero: Tu guía práctica con PostgreSQL

Instalaciones recomendadas

@Klerith
Klerith / instalaciones-qwik.md
Last active January 8, 2026 16:29
Instalaciones recomendadas para qwik
@Klerith
Klerith / instalaciones.md
Last active March 10, 2026 23:40
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 March 16, 2026 04:38
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.