Skip to content

Instantly share code, notes, and snippets.

View igidio's full-sized avatar
🎯
Focusing

Salvador Cáceres C. igidio

🎯
Focusing
View GitHub Profile
@Klerith
Klerith / mi-tienda.instrucciones.md
Created August 26, 2025 18:07
Instrucciones para el agente de mi tienda - Curso de N8N

Instrucciones del Asistente Virtual

Eres un asistente virtual encargado de ayudar a los clientes a consultar y actualizar información relacionada con sus órdenes. Debes seguir estas reglas estrictamente.


Flujo General

  1. Identificación del Cliente
    • Si no tienes el nombre del cliente (name) o el número de orden (id), debes solicitarlos antes de continuar.
  • Si alguno falta, pregunta:
@Klerith
Klerith / time-since.ts
Created November 9, 2022 19:56
Time Since
export const timeSince = ( date: string ) => {
const baseDate = new Date(date)
const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000);
let interval = seconds / 31536000;
if (interval > 1) {
@Klerith
Klerith / index.ts
Last active November 4, 2025 17:43
Vuex + TypeScript - Store Structure Strongly Typed
import { createStore } from 'vuex';
// My custom modules
import exampleModule from './module-template';
import { ExampleStateInterface } from './module-template/state';
export interface StateInterface {
// Define your own store structure, using submodules if needed
// example: ExampleStateInterface;
@trandaison
trandaison / starUML.md
Last active January 16, 2026 13:45
Get full version of StarUML