Skip to content

Instantly share code, notes, and snippets.

View panquequelol's full-sized avatar

reno panquequelol

View GitHub Profile
@panquequelol
panquequelol / error-handling.md
Created June 14, 2025 00:48
error handling with result type

Error Handling Convention

  • Intent: All fallible operations must return a Result<T, E> (from neverthrow) instead of throwing or returning null/undefined. This makes failures explicit in the type system.

  • Tagged Errors: Define every custom error as a class using Data.TaggedError("Name")<Props>. Name each error in PascalCase ending with Error. For example:

import { Data } from "effect";

export class InvalidPaymentError extends Data.TaggedError("InvalidPayment")&lt;{
@panquequelol
panquequelol / readme.md
Last active June 16, 2025 21:18
cosas que han tenido impacto en mi vida

vida en general

  • descripción general de cómo vivir la vida
    video

  • dicotomía de control (capítulo 1) y cómo reaccionar frente a los problemas (capítulo 2)
    lectura

dicotomía de control, utilidad sobre impresiones

@panquequelol
panquequelol / default.md
Created July 9, 2025 15:28 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.