Skip to content

Instantly share code, notes, and snippets.

View nicolasdanelon's full-sized avatar
🖖
live long and prosper

Nicolas Danelon nicolasdanelon

🖖
live long and prosper
View GitHub Profile
@nicolasdanelon
nicolasdanelon / tutorial-sso-github-codex-zed.md
Last active June 8, 2026 15:32
SAML-SSO-GIT-SSH-ZED-RSA-AI

Setup inicial: Zed, Codex, GitHub SSH y repositorios privados

Esta guía explica cómo preparar un entorno básico para trabajar con Zed, Codex y repositorios de GitHub desde la terminal, especialmente cuando la organización usa SSO.

1. Descargar e instalar Zed

Zed se descarga desde:

https://zed.dev
class APIUserController {
constructor(private service: UserService) {}
update(): void {
const id = 4;
const name = "Nicolás";
this.service.setUserName(id, name);
}
@nicolasdanelon
nicolasdanelon / .Xresources
Created September 14, 2025 02:23 — forked from taviso/.Xresources
XTerm Configuration
! XTerm resources
!
! Remember to run `xrdb < .Xresources` after changing anything.
!
! Tavis Ormandy <taviso@gmail.com>
! Set the default UI font (menus, toolbar, etc)
XTerm*XftFont: Segoe UI:size=10:antialias=true:style=Regular
! Color of UI Components
@nicolasdanelon
nicolasdanelon / AI_Agent_migrate_to_void_Zero_Toolchain.md
Created August 19, 2025 00:01 — forked from timbenniks/AI_Agent_migrate_to_void_Zero_Toolchain.md
Migrate any TypeScript Library to the Void Zero Toolchain using an AI agent

🤖 AI Agent Instructions: Migrate TypeScript Library to Void Zero Toolchain

Agent Role: You are tasked with migrating any TypeScript library from its current build system to the high-performance Void Zero toolchain. Follow these instructions systematically.

🎯 Mission Overview

Transform any TypeScript library (regardless of current setup) to use:

  • TSDown for both JavaScript bundling AND TypeScript declarations (primary approach)
  • Oxlint for linting (optional, can keep existing)
@nicolasdanelon
nicolasdanelon / main.py
Created June 24, 2025 08:09
Pseudo code to proof casinos are crap
import random
# Simula una app de apuestas trucha
saldo = 100 # plata que tiene el jugador
premio_grande = 1000
def jugar():
# El jugador apuesta 10 pesos por partida
global saldo
Installing 33/58 libjxl:arm64-osx@0.10.2...
Building libjxl:arm64-osx@0.10.2...
/Users/nicolasmd/wokr/ladybird-source/Meta/CMake/vcpkg/release-triplets/arm64-osx.cmake: info: loaded overlay triplet from here
/Users/nicolasmd/wokr/ladybird-source/Toolchain/Tarballs/vcpkg/buildtrees/versioning_/versions/libjxl/4a0c70d1ff8967afd670855a24154ccb04321de1: info: installing overlay port from here
-- Using cached libjxl-libjxl-v0.10.2.tar.gz.
-- Cleaning sources at /Users/nicolasmd/wokr/ladybird-source/Toolchain/Tarballs/vcpkg/buildtrees/libjxl/src/v0.10.2-fef900ea4e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/nicolasmd/wokr/ladybird-source/Toolchain/Tarballs/vcpkg/downloads/libjxl-libjxl-v0.10.2.tar.gz
-- Applying patch fix-dependencies.patch
-- Applying patch fix-tools-build.patch
-- Using source at /Users/nicolasmd/wokr/ladybird-source/Toolchain/Tarballs/vcpkg/buildtrees/libjxl/src/v0.10.2-fef900ea4e.clean
@nicolasdanelon
nicolasdanelon / sample.csv
Created August 16, 2023 18:20
create a python dictorionary from a csv
first_name last_name email_address zipcode
John Doe john.doe@example.com 12345
Jane Smith jane.smith@example.com 67890
Alice Johnson alice.johnson@example.com 11223
Bob White bob.white@example.com 44556
@nicolasdanelon
nicolasdanelon / index.php
Last active July 14, 2023 16:14
Simple php 'server' with CORS for react/preact & vite project
<?php
// $ php -S 127.0.0.1:9001
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: http://localhost:5173'); // CORS
header('Access-Control-Allow-Methods: POST, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type');
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
class Humano {
constructor(n) {
this.nombre = n;
}
saludar() {
return `Hola, soy ${this.nombre}`;
}
}
const human = new Humano('Tomás');
@nicolasdanelon
nicolasdanelon / conjuntos.md
Last active March 31, 2023 23:20
Ejercicios con arrays

Ejercicios para los pibes

Suma invertida

Escribir una función que reciba dos números enteros positivos y retorne su suma invertida. Ayuda un int se puede pasar a string y viceversa

Ejemplo, si recibe (123,456) (123+456=579), Retornaría 975. OJO retorna un ENTERO