This file contains 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
// ==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== |
This file contains 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
# add in your .bashrc or .zshrc, ... | |
# call as $ exercd <exercise-name> | |
exercd() { | |
exercism download --track=$(basename $(pwd)) --exercise=$1 | |
} |
This file contains 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
; --- | |
; 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 |
This file contains 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
; --- | |
; 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 |