Skip to content

Instantly share code, notes, and snippets.

(use extras)
;;;; Joy in Scheme, version 0.5.2
;;; System-dependent but essential code (currently for Chicken)
(display "sysdep...")
;; SYSTEM-DEPENDENT: look up Joy symbol, return () if not known
(define (joy-get s)
@mhitza
mhitza / Makefile
Last active April 6, 2024 17:20
Programming Arduino Uno (ATmega386P) in assembly
%.hex: %.asm
avra -fI $<
rm *.eep.hex *.obj *.cof
all: $(patsubst %.asm,%.hex,$(wildcard *.asm))
upload: ${program}.hex
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$<
monitor:
@calroc
calroc / Algorithmic Beauty of Plants.py
Last active December 14, 2015 11:38
I'm just noodling around with the Python-Omega parser (https://gitorious.org/python-omega), and I used it to implement a simple version of the Anabaena catenula "simulator" from the book "The Algorithmic Beauty of Plants" http://algorithmicbotany.org/papers/#abop One interesting thing is that the DOL-system is meant to evaluate its terms in para…
#!/usr/bin/env python
'''
A simple demonstration of a deterministic and context-free "DOL-system"
"...used to simulate the development of a fragment of a multicellular
filament such as that found in the blue-green bacteria Anabaena catenula..."
- "The Algorithmic Beauty of Plants" http://algorithmicbotany.org/papers/#abop
Implemented by simple parsers in the Omega parser language (a variant of
Warth's OMeta language.) https://gitorious.org/python-omega
'''