Skip to content

Instantly share code, notes, and snippets.

View nitwhiz's full-sized avatar

Andy Schönfeld nitwhiz

View GitHub Profile
@nitwhiz
nitwhiz / aoc2md.js
Created December 2, 2021 14:57
convert advent of code pages into markdown for tampermonkey
// ==UserScript==
// @name AoC2MD
// @namespace https://madeby.nitwhiz.xyz/
// @version 1.0
// @description convert advent of code pages into markdown
// @author nitwhiz
// @match https://adventofcode.com/*
// @icon https://www.google.com/s2/favicons?domain=adventofcode.com
// @grant none
// ==/UserScript==
@nitwhiz
nitwhiz / exercd.sh
Created June 13, 2021 17:16
download exercism exercises based on working directory
# add in your .bashrc or .zshrc, ...
# call as $ exercd <exercise-name>
exercd() {
exercism download --track=$(basename $(pwd)) --exercise=$1
}
; ---
; constants
pit_count: equ 18432 ; pit counter constant - 10ms
segm_setting: equ 7 ; digit to display seconds set
segm_time_seconds: equ 3 ; digit to display seconds of timer
segm_time_100th: equ 0 ; digit to display 100th seconds of timer
; segment display address
; ---
; constants
segm_needle: equ 7 ; digit to display searched value
segm_result: equ 3 ; digit to display counter
; start address
mem_start: equ 0c000h
mem_end: equ 0cfffh
mem_len: equ mem_end - mem_start + 1