generate_series makes me jealous. The JSON support is also pretty great.

matigo.ca.