Skip to content

Instantly share code, notes, and snippets.

@sabetts
sabetts / download.py
Last active October 27, 2025 21:32
Download the build.ai dataset using just Python
import sys, json, os, urllib.request
# BuildAI Egocentric Factory Video Dataset Downloader
# Downloads extracted video segments with Gemini analysis metadata
# Manifest fetched at runtime - always gets current stable version
FUNCTION_URL="REDACTED"
DEST=sys.argv[1] if len(sys.argv) > 1 else "buildai-dataset"
print("============================================")
@sabetts
sabetts / dump_bedtimes.py
Last active September 30, 2025 21:16
thanks gippity
import sqlite3
import csv
import sys
from datetime import datetime
def dump_bedtimes_to_csv(db_path, csv_path):
# Connect to the SQLite database
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
@sabetts
sabetts / void_jump.html
Last active March 30, 2025 17:12
Another game made with Gemini Pro 2.5.
<!DOCTYPE html>
<html>
<head>
<title>Void Jump</title>
<style>
body { margin: 0; overflow: hidden; background-color: #1a1a2e; /* Dark void blue */ display: flex; justify-content: center; align-items: center; height: 100vh; }
canvas { border: 1px solid #e0e0e0; background-color: #2a2a3e; /* Slightly lighter void */ image-rendering: pixelated; image-rendering: crisp-edges; /* Keep pixel art sharp */ }
</style>
</head>
<body>
@sabetts
sabetts / fartworld.html
Last active March 27, 2025 03:41
my vibe coded game.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fart World V33 - Loading Sounds!</title> <!-- V33 -->
<style>
/* CSS (unchanged) */
body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #222; color: #eee; flex-direction: column; font-family: sans-serif; }
h1 { color: #90EE90; font-family: 'Comic Sans MS', cursive, sans-serif; margin-bottom: 10px; text-shadow: 2px 2px #333; }