Skip to content

Instantly share code, notes, and snippets.

View juandiegombr's full-sized avatar

Juan Diego Martin-Blas Ramos juandiegombr

View GitHub Profile
@juandiegombr
juandiegombr / CLAUDE.md
Created August 19, 2025 05:42 — forked from nikeyes/CLAUDE.md
Global CLAUDE.md for all projects

Claude Code Development Guidelines

Core Principles (Priority Order)

  1. Tests Pass - Code must work correctly
  2. Reveals Intention - Self-documenting, readable code with clear names
  3. No Business Logic Duplication - Eliminate redundant business logic (code repetition OK for clarity)
  4. Fewest Elements - Keep solutions simple

TDD Workflow

@juandiegombr
juandiegombr / Git hooks.md
Last active July 25, 2024 05:55
Git hooks

How to configure your git hooks

  1. Copy the hook file without the .sample extension
  $ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
  1. Open the file in your editor
$ code .git/hooks/pre-commit
@juandiegombr
juandiegombr / snippet.js
Last active July 8, 2024 08:33
Factorial
const BEFORE_LUNCH_TIME_RANGE = ["07:00", "14:00"]
const AFTER_LUNCH_TIME_RANGE = ["14:30", "16:00"]
const FRIDAY_TIME_RANGE = ["08:00", "14:30"]
const DEBUG = true
const wait = (time = 1000) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(true);
}, time);
import { createRemixStub } from "@remix-run/testing";
import { render, screen } from "@testing-library/react";
import { userEvent } from "@testing-library/user-event";
import { useState } from "react";
function App() {
const [counter, setCounter] = useState(0);
return (
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.8" }}>
@juandiegombr
juandiegombr / localhost-ssl-certificate.md
Created May 18, 2020 07:22 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS Sierra and High Sierra

This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

Content:

[req]