Friday, December 3, 2010

Advent calendar code

I read recently that there was an advent calendar written for perl programmers, and I thought that would be a great thing to have for Thimbl. I found that my command-line utils weren't very easy to use for posts spanning mutliple lines. Thimbl needed a method to post a file. So I added one, and made it available at the repo.

Now, each day, I edit a text file called advent.txt, containing the graphics I want to display. I have a little python script called which reads the file, and posts it. Here's my script:

import sys
import thimbl
d = thimbl.Data()
Very simple.

No comments: