Annotated assembler code, program translated to python.
Aliases used in pseudocode & python shown in parenthesis.
r0 (r) - result accumulator
Advent of code 2018, day17 | |
........................................................................................................................................................................................................................................................................................................................................................................................... | |
........................................................................................................................................................................................................................................................................................................................................................................................... | |
............................................................................................................................................................................................................................................. |
<rss version="2.0"> | |
<channel> | |
<title>~ihabunek/foo refs - sr.ht</title> | |
<link>http://localhost:5001/~ihabunek/foo/refs</link> | |
<description>Git refs for ~ihabunek/foo</description> | |
<language>en-us</language> | |
<item> | |
<title>0.17.0</title> | |
<link>http://localhost:5001/%7Eihabunek/foo/refs/0.17.0</link> | |
<author>Ivan Habunek <ivan@habunek.com></author> |
#!/usr/bin/env bash | |
# Find an unused file name to capture to | |
DIR=~/Pictures/Screenshots/ | |
N=1 | |
while [ -f "$DIR`printf %05d $N`.png" ]; do | |
N=$((N+1)) | |
done | |
FILENAME=$DIR`printf %05d $N`.png |
# | |
# Cross-compiling subsurface for windows, starting with a clean install | |
# of Fedora 17. | |
# | |
# Before starting create a user and add him to /etc/sudoers. | |
# | |
# Basic tools | |
sudo yum install vim git tar |
2018-03-09 - 2018-03-18
http://tjedanrestorana.com/
Web site scraped and parsed to generate a single markdown file containing all the menus.
Script used to generate the markdown is attached below the menus. Table of contents and minor adjustments done by hand.
Share and enjoy.
(ns aoc2017.foo) | |
(def node-map | |
"A tree structure defined as a map" | |
{:a [:b :c] | |
:b [:d :e :f] | |
:e [:g :h :i] | |
:i [:j :k]}) | |
(defn count-nodes |