Skip to content

Instantly share code, notes, and snippets.

View charliermarsh's full-sized avatar
Working on uv

Charlie Marsh charliermarsh

Working on uv
View GitHub Profile
@charliermarsh
charliermarsh / download-files.py
Created September 15, 2025 19:17
Download files from a Simple API-compatible index.
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "aiofiles>=24.1.0",
# "aiohttp>=3.11.11",
# "beautifulsoup4>=4.13.3",
# "rich>=13.9.5",
# ]
# ///
@charliermarsh
charliermarsh / boot.py
Created September 9, 2014 15:49
Jasper offline
#!/usr/bin/env python
import os
import sys
import vocabcompiler
lib_path = os.path.abspath('../client')
sys.path.append(lib_path)
import re
f = open('D-small-2-attempt0.in.txt','r')
T = int(f.readline())
for t in range(T):
s = f.readline()
counter = 0
ghosts = re.findall(r'GHOST', s)
disclosureIndicator.layer.shadowColor = [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.5].CGColor;
disclosureIndicator.layer.shadowOffset = CGSizeMake(0, 1);
disclosureIndicator.layer.shadowOpacity = 1.0;
disclosureIndicator.layer.shadowRadius = 1;
disclosureIndicator.layer.masksToBounds = NO;