Skip to content

Instantly share code, notes, and snippets.

View atom-dispencer's full-sized avatar
💫
Too busy beating around the bush...

Adam atom-dispencer

💫
Too busy beating around the bush...
View GitHub Profile
@atom-dispencer
atom-dispencer / fireworks-gl-launcher.service
Last active April 11, 2025 11:25
FireworksGL.scr Launcher Service for X11/systemd
# REPLACE {USER} WITH YOUR USERNAME, THEN REMOVE THESE COMMENTS
#
# The paths you need are:
# 1) ~/.config/fireworks-gl/fireworks-gl-launcher.sh
# 2) ~/.config/systemd/user/fireworks-gl-launcher.service
# 3) You don't need to save the systemctl script
[Unit]
Description=FireworksGL Screensaver Launcher
After=graphical-session.target
@atom-dispencer
atom-dispencer / desklamp.py
Last active August 7, 2025 23:25
A Micropython script for a Raspberry Pi Pico (W) to run a WS2812 LED lamp for my desk.
from neopixel import NeoPixel
from math import fmod, floor
from time import time
from random import uniform
from machine import ADC, Pin, Timer
from collections import deque
PIXEL_COUNT = 144
BLACK = (0, 0, 0, 0)
@atom-dispencer
atom-dispencer / Pascal's Triangle.ps1
Last active November 14, 2023 13:37
Pascal's Triangle Generating Script for Microsoft Powershell
#
# Pascal's Triangle Generating Script for Microsoft Powershell
# Written and tested in Powershell 5.1 (Desktop)
# Source originally published on GitHub @atom-dispencer
#
# == THE MIT LICENSE ==
# Copyright (c) 2023 Adam Spencer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
@atom-dispencer
atom-dispencer / preliminary_weight_estimate.py
Last active October 12, 2025 15:41
A GUI tool to perform a preliminary weight estimate for an aircraft based on predicted payload and historical data.
credits = """
Aircraft Preliminary Weight Estimator
Author: Adam Spencer
Description: A GUI tool to perform a preliminary weight estimate for an aircraft based on predicted payload and historical data.
Source: GitHub, @atom-dispencer/preliminary-weight-estimate.py (https://gist.github.com/atom-dispencer/7147e39f8fd18b1673eadff9f280087e)
Requirements: Written in Python 3.11.6. No additional dependencies.
Start date: 12/10/2023
License: Aircraft Preliminary Weight Estimator (c) 2023 by Adam Spencer is licensed under Attribution-Sharealike 4.0 International: http://creativecommons.org/licenses/by-sa/4.0/
"""
DEFAULT_GRAVITY = 9.81
@atom-dispencer
atom-dispencer / data.txt
Last active July 2, 2023 13:27
Script which uses a cross-tabulation to determine whether there is a statistically significant improvement between the chess AI models in Sebastian Lague's 'Coding Adventures: Making a Stronger Chess Engine': https://youtu.be/_vqlIPDR2TU
630
233
137
670
188
142
0.05
@atom-dispencer
atom-dispencer / tictactoe.ps1
Last active December 8, 2024 12:28
A tic-tac-toe game for Microsoft Powershell.
# Tic Tac Toe in Windows Powershell, by Adam Spencer - Source on GitHub Gists
# Debug
function Display-DebugText () {
Write-Host Player: $Global:player
Write-Host Board: $Global:board
Write-Host Finished: $Global:finished
Write-Host win_row_top: $win_row_top
Write-Host win_row_mid: $win_row_mid
Write-Host win_row_low: $win_row_low