Skip to content

Instantly share code, notes, and snippets.

View obstruse's full-sized avatar

obstruse

View GitHub Profile
@obstruse
obstruse / sunrise.c
Created June 30, 2023 15:50
Sunrise Calculation
/* Copyright (GPL) 2004 Mike Chirico mchirico@comcast.net
Updated: Sun Nov 28 15:15:05 EST 2004
Program adapted by Mike Chirico mchirico@comcast.net
Reference:
http://prdownloads.sourceforge.net/souptonuts/working_with_time.tar.gz?download
http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html
Compile:
@obstruse
obstruse / spectralAverage.py
Last active November 8, 2022 03:28
Spectrum Averaging
#!/usr/bin/python3
import pygame
import pygame.camera
from pygame.locals import *
import os
from PIL import Image
#import antigravity
import time
import shlex, subprocess
@obstruse
obstruse / barTest.py
Created August 19, 2022 01:57
I2C on the HDMI port
#!/usr/bin/python3
import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame.time as time
import i2cVC
import random
random.seed()