Skip to content

Instantly share code, notes, and snippets.

View JGalego's full-sized avatar
🕹️
ai-to-zx.com

João Galego JGalego

🕹️
ai-to-zx.com
View GitHub Profile
@JGalego
JGalego / json2toon.py
Created November 13, 2025 09:57
A simple JSON / JSONLines to TOON Converter 🐰
r"""
A simple JSON / JSONLines to TOON Converter
.------..
- -
/ \
/ \
/ .--._ .---. |
| / -__- \ |
| | | |
@JGalego
JGalego / Makefile
Created November 8, 2025 23:13
Michael Creutz's Z2 lattice gauge simulation
CFLAGS= -O2 -Wall
CC= gcc
LDFLAGS= -lm
@JGalego
JGalego / coffee.md
Last active November 6, 2025 12:47
You have achieved the ultimate cup of coffee! ☕🌈🧘🏻‍♂️
flowchart TD
    Start([Wake up at 4:47 AM<br/>Exactly]) --> CheckMoon{Is the moon<br/>waning gibbous?}
    CheckMoon -->|Yes| GoodStart[Excellent.<br/>Proceed.]
    CheckMoon -->|No| Wait[Wait 24 hours<br/>Coffee requires<br/>proper lunar alignment]
    Wait --> Start
    
    GoodStart --> CheckBarometer{Barometric pressure<br/>between 30.2-30.4 inHg?}
    CheckBarometer -->|No| Relocate[Drive to higher/lower<br/>elevation until pressure<br/>is optimal]
    Relocate --> CheckBarometer
@JGalego
JGalego / llava_ov_sm.ipynb
Last active October 14, 2025 23:39
Deploy LLaVA-OneVision on Amazon SageMaker using the Hugging Face Inference Toolkit 🤗🌿
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JGalego
JGalego / every_author_as_first_author.py
Created August 4, 2025 01:16
Fetches author names from an arXiv paper and visually superimposes them in a centered stack 📜 Inspired by the SIGTBD 2023 paper "Every Author as First Author" by Erik and Martin Demaine
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "pillow >= 9.2.0",
# ]
# ///
"""
Fetches author names from an arXiv paper and visually superimposes them in a centered stack.
@JGalego
JGalego / recon_sgai_groq.py
Created June 25, 2025 22:58
A simple recon demo using ScrapeGraphAI with Groq 🕷️
# /// script
# requires-python = ">=3.7,<=3.11"
# dependencies = [
# "langchain-groq >= 0.3.4",
# "scrapegraphai >= 1.57.0",
# ]
# ///
"""
Simple recon script using scrapegraphai with Groq
"""
@JGalego
JGalego / california_vibe.ipynb
Last active June 6, 2025 00:54
A simple, yet mostly vibe-coded demo of Amazon SageMaker with Scikit-Learn using the California Housing dataset 🏘️💸
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JGalego
JGalego / draw_data.ipynb
Last active May 7, 2025 14:40
Draw Data Demo 🎨
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JGalego
JGalego / azoai_pirate.py
Last active March 26, 2025 17:42
Quick 'n' dirty 'Ahoy!' demo with Azure OpenAI 🏴‍☠️🦜
# /// script
# requires-python = ">=3.7,<=3.11"
# dependencies = [
# "azure-identity >= 1.2.1",
# "openai >= 1.65.2",
# ]
# ///
"""
Quick 'n' dirty 'Ahoy!' demo with Azure OpenAI
@JGalego
JGalego / glorified.pl
Created March 11, 2025 15:52
Just a glorified database in Prolog 🦉
% This Prolog program is just a glorified database.
%
% "You use glorified to indicate that something is less important
% or impressive than its name actually suggests." (Collins Dictionary)
%
% @author João Galego
%
% Facts (according to the Internet)
glorified('Docker Image', tarball).