Skip to content

Instantly share code, notes, and snippets.

View fabiodr's full-sized avatar

Fabio Dias Rollo fabiodr

View GitHub Profile

Code Review Checklist

Overview

Comprehensive checklist for conducting thorough code reviews to ensure quality, security, and maintainability.

Don't run tests or linting, this is done automatically. Just inspect the code.

Review Categories

@imWildCat
imWildCat / codex-gpt-5-codex.sh
Last active October 7, 2025 04:03
codex-enhanced by Ian Nuttall on X
# from: <https://x.com/iannuttall/status/1965090297630826931>
cdx() {
if [[ "$1" == "update" ]]; then
npm install -g @openai/codex@latest
else
codex -m gpt-5-codex --yolo -c model_reasoning_effort="high" -c model_reasoning_summary_format=experimental --search "$@"
fi
}
# Note: with auto confirmation. use at your own risk. thanks!
@VictorTaelin
VictorTaelin / tspl.c
Created August 22, 2025 22:40
TSPL in C - Simple Parser Library - λ-Calculus Demo Parser
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
const char* input;
size_t index;
@agokrani
agokrani / claude-code-prompt.txt
Last active October 16, 2025 17:48
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
# /// script
# dependencies = [
# "dspy",
# "rich"
# ]
# ///
import dspy
import os
import inspect
@fabiodr
fabiodr / main.js
Created August 5, 2025 03:09 — forked from mattdesl/main.js
uform3 perf test
import {
Tensor,
TextEncoder,
TextProcessor,
ImageEncoder,
env,
} from "./uform-encoder.js";
import imageUrl from "../assets/images/monalisa.png";
const model = "fp32"; // "v3", "fp16" or "fp32"
System message:
Your input fields are:
1. `sample` (Scholar): A sample scholar record
2. `reference_records` (list[Reference]): A list of reference records from the official Nobel Prize API
Your output fields are:
1. `output` (int): Most similar reference record to the sample record
2. `confidence` (Literal['high', 'low']): The confidence level of mapping the sample record to one of the reference records
All interactions will be structured in the following way, with the appropriate values filled in.
@kmad
kmad / dspy_detect_boundary.py
Created August 2, 2025 19:15
DSPy Document Boundary Detection
# /// script
# dependencies = [
# "requests<3",
# "rich",
# "dspy",
# "python-dotenv",
# "pymupdf",
# ]
# ///
# Code for the blog post
# Optimizing Tool Selection for LLM Workflows: Differentiable Programming with PyTorch and DSPy
# How local, learnable routers can reduce token overhead, lower costs, and bring structure back to agentic workflows.
# https://viksit.substack.com/p/optimizing-tool-selection-for-llm
# Ping @viksit on X with feedback/questions
# ----------------------------------------------------
import torch, torch.nn as nn, torch.nn.functional as F
@hamelsmu
hamelsmu / chapters.py
Created July 6, 2025 03:16
YouTube Chapter Generator - Generate summaries and timestamps for YouTube videos using Gemini API
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.9"
# dependencies = [
# "httpx",
# "typer",
# "rich",
# ]
# ///
"""