News for hackers. Stuff that matters.
Re:Tq: a tool to stay focused with by zokier on Sunday May 15, 2011 @11:26PM (#2551514)
The example seems bit off: shouldn't the first "tq pop" print the same line as the "tq peek"?
Re:Tq: a tool to stay focused with by cfdrake on Sunday May 15, 2011 @11:39PM (#2551543)
As it stands, the script prints out the next item in the todo list, not the one just removed. Maybe it's not quite the standard expected result in this case, but I figured it'd minimize the amount of commands/work that needs to be done to manage the queue.

Of course, since it's a Gist, you're welcome to fork it ;p