If you are interested in this stuff, I have heard that the book Geometric Algebra for Computer Science is good.
You can find the first chapter as a pdf download here: http://geometricalgebra.org/downloads/ga4cs_chapter1.pdf. It contains some code examples, and the complete source code is here: http://geometricalgebra.org/sandbox.html