NEW: For a prettier blog interface, see the Wordpress version!

Tasks

Priorities - A: high, B: medium, C: low; Status - _: unfinished, X: finished, C: cancelled, P: pending, o: in progress, >: delegated. Covey quadrants - Q1 & Q3: urgent, Q1 & Q2: important
A1XMake exam questions for CS161 {{Tasks:749}} (CS161.Teaching)

~/.diary schedule

Notes

2. reeality

Categories: None -- Permalink
 <e1f`> ,reeality
 <igbot> I heard reeality is a new dilbertesq/UFesq comic strip: http://www.ee.ryerson.ca/~elf/reeality

Chat with igbot on kornbluth.freenode.net%23emacs

1. total-difference

Categories: EmacsHacks#16 -- Permalink
(defun sacha/total-difference (list)
  "Computes the sum of the differences between successive items in LIST."
  (let ((distance 0))
    (while (cdr list)
      (setq distance (+ (abs (- (car list) (car (cdr list)))) distance))
      (setq list (cdr list)))
    distance))

I used this to calculate the total distance travelled by a read/write head given the list of tracks.

Previous day | Next day

I'd love to hear about any questions, comments, suggestions or links that you might have. Your comments will not be posted on this website immediately, but will be e-mailed to me first. You can use this form to get in touch with me, or e-mail me at sacha@sachachua.com .

Page: 2004.03.22
Updated: 2004-11-2119:44:1419:44:14+0800
NOTE: ANTI-SPAM MEASURE NOW IN PLACE. Please answer the following question with the right number in order to send me your comment.
What is two minus one? (hint: one ;) )
Name:
E-mail:
URL:
Comments: