This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
630 | |
233 | |
137 | |
670 | |
188 | |
142 | |
0.05 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |