Skip to content

Instantly share code, notes, and snippets.

View cabe56's full-sized avatar

Jose Varela cabe56

  • Cuanto
  • Panama City, Panama
View GitHub Profile
@cabe56
cabe56 / README.md
Created January 13, 2026 22:09
claude-code-worktrees: Isolated git worktrees for Claude Code sessions

claude-code-worktrees

Isolated git worktrees for Claude Code sessions. Prevents multiple Claude instances from stepping on each other's git state.

Problem

When running multiple Claude agents or sessions on the same repo, they can conflict:

  • Competing for staging area
  • Conflicting uncommitted changes
  • One agent's commit including another's work
@cabe56
cabe56 / setup-module.md
Last active January 12, 2026 20:14
Claude Code

Setup Module Environment

Set up the development environment for a Python module in this monorepo. Each module uses uv for dependency management.

Setup Process

Step 1: Verify uv is installed

uv --version
@cabe56
cabe56 / README.md
Last active May 8, 2025 15:08
Flexible AI Agents

Problem

When you're using visual workflow editors like Retool or n8n:

  1. You can't import just any dependency to your python/js scripts
  2. You can't use IDEs like Cursor to auto generate code while referencing documentation, MCP servers, etc

Solution

  1. Code up any kind of workflow in python
  2. Import any dependency you want to use
  3. Call LLMs or build agents using any API you want
  4. Deploy as standalone endpoint to Modal
@cabe56
cabe56 / transcript.txt
Created April 30, 2025 10:47
Transcript - Boundaries (2012)
the title of this talk is boundaries
this is the only one word talk title at
this conference which I'm very proud of
the next shortest is three words thank
you this is some of the stuff in this
talk is going to be very familiar to
anyone who comes from certain functional
programming backgrounds but this is a
story of me approaching some ideas that
they have from a very different
@cabe56
cabe56 / Notion.ts
Created May 23, 2021 20:34
Notion's block type
// https://www.notion.so/blog/data-model-behind-notion
enum BlockType {
Heading,
Callout,
Toggle,
Text,
Image,
OrderedList,
TodoList,
@cabe56
cabe56 / introrx.md
Created April 27, 2021 05:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@cabe56
cabe56 / adams-heroku-values.md
Last active December 14, 2020 01:15 — forked from adamwiggins/adams-heroku-values.md
My Heroku values

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Throw things away

@cabe56
cabe56 / vista_corregimientos_20170925.sql
Created September 25, 2017 16:39
Listado de corregimientos por provincia gracias a Mario Rios de Trisfera
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 1, 'Puerto Almirante', 1);
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 2, 'Barriada Guaymí', 1);
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 3, 'Barrio Francés', 1);
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 4, 'Nance de Riscó', 1);
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`
@cabe56
cabe56 / 03-form.elm
Created September 17, 2017 06:46
An Introduction to Elm - Form
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput, onClick)
import Char exposing (..)
import Tuple exposing (first, second)
main =
Html.beginnerProgram
{ model = model
, view = view
@cabe56
cabe56 / local_storage_size.js
Last active August 29, 2015 14:25 — forked from diegocasmo/local_storage_size.js
Calculates localStorage key and total size occupied by data in MB
function sizeInMB(string) {
return (string.length * 2) / (1024 * 1024);
}
function addKeySizeToTotal(runningTotal, key) {
// Used as Array.reduce callback
return sizeInMB(localStorage[key]) + runningTotal;
}
function logLocalStorageKeySize(key) {