Skip to content

Instantly share code, notes, and snippets.

View opensiriusfox's full-sized avatar
📡
CQ'ing for Space

Luke opensiriusfox

📡
CQ'ing for Space
  • Greater Seattle Area
View GitHub Profile
@opensiriusfox
opensiriusfox / Windows git.bashrc
Last active June 10, 2023 23:18
Git-Bash Notepad++ shortcut
# When notepad++ is available, use it
function npp() {
export IFS=$'\n'
NOTEPADPP_EXE='/c/Program Files/Notepad++/notepad++.exe'
if [[ -e "${NOTEPADPP_EXE}" ]]; then
echo 'notepad++.exe '$*' &'
"${NOTEPADPP_EXE}" $* &
return 0
else
echo "notepad++ not found."
@opensiriusfox
opensiriusfox / blinky_led_ulx3s.py
Created October 7, 2023 22:23
ULX3S custom Pmod example
#!/usr/bin/env python3
from amaranth import *
from amaranth_boards.ulx3s import ULX3S_12F_Platform as ulx3s_tgt
class LEDBlinker(Elaboratable):
"""
LED Blinker reference code pulled directly from the Amaranth reference implemenetation
https://amaranth-lang.org/docs/amaranth/latest/start.html#a-blinking-led