Skip to content

Instantly share code, notes, and snippets.

View xcollantes's full-sized avatar
:octocat:
Unbridled enthusiasm

Xavier Collantes xcollantes

:octocat:
Unbridled enthusiasm
View GitHub Profile
@xcollantes
xcollantes / pyproject.toml
Created January 11, 2026 23:02
UV pyproject.toml personal settings.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = ""
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.12"
@xcollantes
xcollantes / intraday_hourly.ipynb
Created January 4, 2026 07:03
Intra-day hourly trend analysis: GOOGL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xcollantes
xcollantes / CLAUDE.md
Created August 10, 2025 04:46
Example Python CLAUDE.md

CLAUDE.md

This file provides comprehensive guidance to Claude Code when working with Python code in this repository.

🧱 Code Structure & Modularity

PEP 8

Follow the PEP 8 style guide.

@xcollantes
xcollantes / main.py
Created July 15, 2025 04:07
test script
def main():
print("hello world")
@xcollantes
xcollantes / watchlist.csv
Created July 9, 2024 20:48
Universal stock watchlist.
NVDA
SOXL
MSFT
GOOG
QQQ
TQQQ
CRWD
NET
NVDL
NET
@xcollantes
xcollantes / example_logging.py
Created July 2, 2024 04:21
Snippet for Python logging to file and terminal.
import logging as log
logging = log.getLogger(__name__)
logging.setLevel(log.INFO)
formatter = log.Formatter(
"%(asctime)s[%(levelname)s][%(filename)s][ln:%(lineno)s] %(message)s",
datefmt="[%a %Y-%m-%d %H:%M:%S %Z]",
)
file_handler = log.FileHandler("logs/app.log", "a")
@xcollantes
xcollantes / .ticker.yaml
Created March 23, 2024 22:14
Ticker command line configuration file.
# ~/.ticker.yaml
show-summary: true
show-tags: true
show-fundamentals: true
show-separator: true
show-holdings: true
interval: 5 # seconds
currency: USD
currency-summary-only: false
@xcollantes
xcollantes / keybindings.json
Last active March 26, 2024 01:24
VScode keybindings mappings. Example location on Mac: `~/Library/Application Support/Code/User/keybindings.json`
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+g s",
"command": "git.stage"
},
{
"key": "ctrl+shift+g c",
"command": "git.commit"
},
@xcollantes
xcollantes / fancytext.patch
Last active February 16, 2024 10:26
Bazel interview patch file.
From ab7279f3ca179b1ee4b40fef54b1b90a97dc430e Mon Sep 17 00:00:00 2001
From: Xavier <collantes.xavier@gmail.com>
Date: Fri, 16 Feb 2024 02:06:18 -0800
Subject: [PATCH] Squash commits
---
java-tutorial/BUILD | 29 +-
java-tutorial/MODULE.bazel | 13 +
java-tutorial/MODULE.bazel.lock | 2862 +++++++++++++++++
java-tutorial/WORKSPACE | 7 +
@xcollantes
xcollantes / rename_files.sh
Last active February 11, 2024 06:49
Bash script to rename.
ext="webp" ; for f in * ; do if [[ $f =~ $ext ]] ; then mv "$f" "./$RANDOM.$ext" ; fi ; done