Some hairy and some not so trivial lisp code.
Please also have a look at the The AutoLISP Standard Library for more of my code.