code snippets

A somewhat random collection of code snippets organised by category (implementation language in grey):   {   credit ,   dvcs ,   forth ,   linguistics ,   lua ,   web   }

⊢ credit

a project to build money around trust
RESTful API, native Android client, (mobile) web UI; please visit our project site for further information and status updates. Defunct.

⊢ dvcs

fsl
a wrapper script for Fossil
tcl
Provides filters and aliases. View the repository here.
a Mercurial extension for managing multiple identities
Clone the repository from Bitbucket.
a Mercurial extension for improving the output of 'hg paths'
Clone the repository from Bitbucket.

⊢ forth

solution to Project Euler problem 14
Solutions for 32-bit SwiftForth (markup, original) and any 64-bit ANS Forth (markup, original). (The SwiftForth is cleaner due to the availability of PACKAGE.)
experiments in / contributions to retro, Charles Childers' Forth.
See here for Retro 11 and here for the playground.

⊢ linguistics

a phonological rule learner
(MA thesis project, 2010.)

The learner is tasked with inferring phonological rules from paradigmatic data. Uses minimal pairs to bootstrap a (derivational) phonology.

Contact me for more information.

reduplication model based on Halle (2008)
Proposes that reduplicative morphology consists of the insertion of various junctures at phonologically defined anchor points within a morphological domain, such as a stem.

The phonology interprets the brackets by projecting material within their scope to create a hierarchically structured representation whose linearization is simply read off from the terminal nodes in the resulting tree from left to right.

For more info, see here

⊢ lua

check what's being exported into the global table by a given module
lua
To run: lua gcheck.lua [module name]

Download here or view online here.

new metatable syntax for Lua: VM patch.
lua
(With edrx — his idea!)

See here for info / motivation.

Download here or view online here.

⊢ web

a route-based web framework
lua
Inspired by Dancer and Sinatra; early prototype.

Download the latest version here