profile image

Code

Here is some of my code available in the wild. Unfortunately my meatier stuff is employer-owned, but I still have some interesting things running around.

Most of the code below is rather old, so it might not work in the latest and greatest versions. That being said, nothing seems like it’d take more than a quick fix to bring up to speed, so I might put in some time to do so. PRs are welcome :)

Tags

book  clojure  conditions  favorite  generics  go  google  grammar  java  javadoc  lpeg  lua  mustache  nexus  service  taglets  template  test  token  type  web 

9 entries
★ conditio-clj
Tags Clojureconditionsfavorite
Docs Docs

A simple condition system for Clojure. I hadn’t used Clojure in years, so this seemed as good an excuse as any :)

★ conditio-java
Tags Javaconditionsfavorite
Docs Javadoc

A simple condition system for Java, somewhat inspired by Common Lisp, but without dynamic variables or reflection wizardry; try-with-resources seems to do the trick :)

★ genericcons
Tags Javafavoritegenericstokentype
Docs Javadoc

An amusing, Lisp-inspired trick for Java generics to accept an open-ended list of type variables. The possibility occurred to me one day, and I’d messed around with type tokens before, so it was a quick hack :)

groucho
Tags LuaMustachetemplate

An alternative Mustache implementation for Lua. Written mainly as an excuse to check out re, and later telescope for Mustache’s specs.

javadoc-taglets
Tags JavaJavadoctaglets
Docs Javadoc

A place for some custom Javadoc taglets. For now there’s only one: include.file, which inserts the text content of a file in the docs.

leg
Tags LPegLuagrammar
Docs There’s a LuaForge link, but it’s for an older version.

A complete Lua 5.1 grammar in LPeg, along with some functions to use and modify it. I don’t maintain it, but I wrote the initial version (holy crap, I’m old…).

mea-libris
Tags GoGooglebookserviceweb

A simple REST API which shows one’s books (using OAuth) in Google Books as JSON or CSV. The original idea was to show a unified view of one’s books in Google Books and Amazon Kindle. Alas, accessing Kindle’s list is trickier. Especially when Amazon doesn’t want you to…

nexus
Tags GoNexus
Docs GoDoc

Pulls some data from a Sonatype Nexus 2.x instance. I haven’t tested, but it probably doesn’t work with Nexus 3.x, which has a different API.

shake
Tags Luatest

A simple and transparent test engine for Lua 5.1, which uses leg. I don’t maintain it, but I wrote the initial core (wow, it has been a while…).