Mercurial > thoughts
annotate org/steph.org @ 143:36c7beb5e5cc
s.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 26 Feb 2015 18:03:15 -0800 |
parents | 8714919e1e52 |
children |
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@7 | 7 [[../images/steph.jpg]] |
rlm@7 | 8 |
rlm@6 | 9 #+begin_src clojure :results output :exports both |
rlm@8 | 10 (import '(org.joda.time DateMidnight Interval)) |
rlm@8 | 11 |
rlm@6 | 12 (def steph-birth (DateMidnight. 1990 12 2)) |
rlm@6 | 13 |
rlm@6 | 14 (def steph-death (DateMidnight. 2012 7 26)) |
rlm@6 | 15 |
rlm@6 | 16 (def life (Interval. steph-birth steph-death)) |
rlm@6 | 17 |
rlm@6 | 18 (printf |
rlm@6 | 19 "%d days." |
rlm@6 | 20 (.getStandardDays (.toDuration life))) |
rlm@6 | 21 #+end_src |
rlm@6 | 22 |
rlm@6 | 23 #+results: |
rlm@6 | 24 : 7906 days. |
rlm@6 | 25 |
rlm@78 | 26 Goodbye Stephanie. I will miss you. |
rlm@6 | 27 |