Mercurial > thoughts
annotate org/steph.org @ 72:ace7f097eb6c
add chess idea.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 09 Nov 2013 03:18:26 -0500 |
parents | 5676533b82d8 |
children | 8714919e1e52 |
rev | line source |
---|---|
rlm@6 | 1 #+title: Gooodbye |
rlm@6 | 2 #+author: Robert McIntyre |
rlm@6 | 3 #+email: rlm@mit.edu |
rlm@6 | 4 #+setupfile: ../../aurellem/org/setup.org |
rlm@6 | 5 #+include: ../../aurellem/org/level-0.org |
rlm@6 | 6 |
rlm@6 | 7 |
rlm@7 | 8 |
rlm@7 | 9 [[../images/steph.jpg]] |
rlm@7 | 10 |
rlm@6 | 11 #+begin_src clojure :results output :exports both |
rlm@8 | 12 (import '(org.joda.time DateMidnight Interval)) |
rlm@8 | 13 |
rlm@6 | 14 (def steph-birth (DateMidnight. 1990 12 2)) |
rlm@6 | 15 |
rlm@6 | 16 (def steph-death (DateMidnight. 2012 7 26)) |
rlm@6 | 17 |
rlm@6 | 18 (def life (Interval. steph-birth steph-death)) |
rlm@6 | 19 |
rlm@6 | 20 (printf |
rlm@6 | 21 "%d days." |
rlm@6 | 22 (.getStandardDays (.toDuration life))) |
rlm@6 | 23 #+end_src |
rlm@6 | 24 |
rlm@6 | 25 #+results: |
rlm@6 | 26 : 7906 days. |
rlm@6 | 27 |
rlm@7 | 28 Goodbye Stephanie. I will miss you always. |
rlm@6 | 29 |