The Long Trick by Bartimeus
 is a Project Gutenberg book, now on Github.