Chromatime

Chromatime is a mapping of time to color for a very pretty, but imprecise, way of telling time. Instead of worrying about the exact time, you can tell at a glance the general time of day. For example, I know it's time to go to lunch when it's yellow-orange. Or, if it's blue-green, I know it's time to go home.

Tim Tresch and I came up with this method of telling time. I implemented (or modified) all the code below based on our original idea and color indicies. The color is based on the current time and interpolated for values between the indicies. See the algorithm.txt file for details. The index colors are listed here.

Time Red Green Blue    Time Red Green Blue
01:30 0.0 0.0 0.5 13:30 1.0 1.0 0.0
04:30 0.0 0.0 0.0 16:30 0.0 1.0 0.0
07:30 1.0 0.0 0.0 19:30 0.0 0.5 1.0
10:30 1.0 0.5 0.0 22:30 0.0 0.0 1.0

libchromatime

ctclock (Chromatime xclock)


cppl

cppl stands for "CoPy PlayList". It's a program to help "convert" iTunes playlists to a format for my MP3 player. It consists of a small Python script. An example shell script with a valid command line is also included. Here are the steps to follow when using cppl:

  1. Export your iTunes playlist as plain text.
  2. Run cppl on the playlist text file.
  3. Copy the newly ordered .mp3 files to your MP3 player.

The cppl.py script will parse the playlist text file and copy the MP3s from their location in the iTunes library to a local temporary directory. When it does this, it prepends a number to the file so they appear in the directory listing in the order they appeared in the playlist. This poor-man's playlist works for me and my MP3 player.

cppl


Quicksort

I have an implementation of quicksort that will handle duplicate keys. Because I couldn't find an implementation on the web anywhere, I had to come up with one. So, I thought I'd offer the solution back into the public domain so others don't have to look so hard.


(C) 2014 Laura Beegle · laura at beegle dot org · google+ · twitter · facebook

Built with Poole · Using jQuery and Bootstrap