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
import svgwrite | |
import argparse | |
# Constants | |
top_unit_size_mm = 42 # The top size of the grid unit in mm (for spacing) | |
base_unit_size_mm = 37.1 # The base size of the grid unit in mm (for drawing) | |
corner_radius_mm = 1.6 # Radius of the rounded corners in mm | |
mm_per_inch = 25.4 # Millimeters per inch | |
dpi = 96 # DPI (standard for many systems) | |
hairline_stroke_mm = .01 # Hairline stroke width in mm for laser cutting |
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
$env:VIRTUAL_ENV_DISABLE_PROMPT = "1" | |
Set-Alias gcc "arm-none-eabi-gcc-13.3.1.exe" | |
& "C:\Users\riley\myvenv\Scripts\Activate.ps1" | |
try { | |
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression | |
} catch { | |
Write-Host "Failed to initialize Oh-My-Posh: $_" -ForegroundColor Red | |
} |
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
function sha256 { | |
param ( | |
[string]$FilePath | |
) | |
# Resolve the full path if the path is relative | |
$resolvedPath = Resolve-Path $FilePath -ErrorAction Stop | |
# Check if the file exists | |
if (-not (Test-Path $resolvedPath)) { |
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
# Step 1: Check if Python is installed | |
function Ensure-Python { | |
if (-not (Get-Command python -ErrorAction SilentlyContinue)) { | |
Write-Host "Python not found. Installing Python..." -ForegroundColor Yellow | |
$pythonInstaller = "$env:TEMP\python-installer.exe" | |
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.x.x/python-3.x.x-amd64.exe" -OutFile $pythonInstaller | |
Start-Process -FilePath $pythonInstaller -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait | |
Remove-Item $pythonInstaller | |
} else { | |
Write-Host "Python is already installed." -ForegroundColor Green |
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
function Launch-FireControl { | |
# Define paths | |
$javaPath = "C:\Users\riley\AppData\Local\FireControl\runtime\bin\java.exe" | |
$appDir = "C:\Users\riley\AppData\Local\FireControl\app" | |
$configFile = "$appDir\FireControl.cfg" | |
# Check if configuration file exists | |
if (-Not (Test-Path $configFile)) { |
OlderNewer