Skip to content

Instantly share code, notes, and snippets.

View paulrobello's full-sized avatar

Paul Robello paulrobello

View GitHub Profile
@paulrobello
paulrobello / Pipfile
Created August 1, 2024 23:10
MRE to test Textual v0.75.0 slowdown
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
attrs = "*"
certifi = "*"
requests-file = "*"
#textual = { version = "==0.74.0", extras = ["syntax"] }
@paulrobello
paulrobello / main.py
Last active August 15, 2024 18:12
textual tab change detect
"""MRE for Textual"""
from __future__ import annotations
import http
import requests
from textual import on, work
from textual.app import App, ComposeResult
from textual.message import Message
@paulrobello
paulrobello / game_of_life.py
Last active September 10, 2024 00:17
Game of life in terminal using Rich
"""
Conway's Game of Life implementation using Rich for terminal visualization.
Author: Paul Robello
Email: [email protected]
"""
import random
from enum import Enum
from time import sleep
@paulrobello
paulrobello / main.tf
Created September 27, 2024 18:29
LS Pro ACM Private CA Bug
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.69.0"
}
}
}
provider "aws" {
@paulrobello
paulrobello / theme_dialog.py
Last active November 17, 2024 17:38
Textual theme picker dialog
"""Provides a modal dialog for selecting a theme."""
from __future__ import annotations
from textual import on
from textual.app import ComposeResult
from textual.binding import Binding
from textual.containers import Horizontal
from textual.containers import Vertical
from textual.screen import ModalScreen
@paulrobello
paulrobello / __main__.py
Created November 18, 2024 20:13
Terminal plasma with Rich
import math
import time
import os
from rich.console import Console
from rich.live import Live
from rich.text import Text
console = Console()
console.clear()