Remind Cookbook

From 43FoldersWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:32, 19 April 2006 (edit)
WCityMike (Talk | contribs)

← Previous diff
Revision as of 16:33, 19 April 2006 (edit) (undo)
WCityMike (Talk | contribs)
(Correct a few errors.)
Next diff →
Line 34: Line 34:
; simple countdown to a date ; simple countdown to a date
fset _vacdays() coerce("STRING", trigdate()-today()) + plural((trigdate()-today()), " day") fset _vacdays() coerce("STRING", trigdate()-today()) + plural((trigdate()-today()), " day")
- REM August 15 2006 +90 MSG You have [_skdays()] left until you go to Itchy 'n' Scratchy Land!%"%"%+ REM August 15 2006 +90 MSG You have [_vacdays()] left until you go to Itchy 'n' Scratchy Land!%"%"%
- +
-; more elaborate date-based math (example: weight goal)+
 + ; more elaborate date-based math (example: weight goal)
fset _curweight() 240 fset _curweight() 240
fset _wtweeks() coerce("STRING", (trigdate()-today())/7) + plural((trigdate()-today())/7, " week") fset _wtweeks() coerce("STRING", (trigdate()-today())/7) + plural((trigdate()-today())/7, " week")

Revision as of 16:33, 19 April 2006

; holidays
SET Week_2 8
SET Week_3 15
REM Sun Jun [Week_3] +14 MSG Father's Day %b%
REM Sun May [Week_2] +14 MSG Mother's Day %b%
REM July 4 +14 MSG Independence Day in the USA %b%
REM Sun Mar 8 ++2 MSG Daylight Savings Time starts in the USA %b%
REM SUN Nov 1 ++2 MSG Daylight Savings Time ends in the USA %b%
; chores
REM ONCE RUN echo floss >> ~/.todo #every day!
REM 1 +7 MSG rent due %b%
; payday
REM 31 Mar 2005 *14 MSG It's payday. # biweekly, put in one of your pay dates
; show sunrise/sunset
SET $LongDeg 71
SET $LongMin 10
SET $LongSec 30
SET $LatDeg 42
SET $LatMin 20
SET $LatSec 27
MSG sunrise at [sunrise(trigdate())], sunset at [sunset(trigdate())], next full moon at [moontime(2)] on [moondate(2)]%
; prettify the sunrise/sunset/moon data
fset _srtd() coerce("STRING", _no_lz(_am_pm(sunrise(today()))))
fset _sstd() coerce("STRING", _no_lz(_am_pm(sunset(today()))))
fset _srtm() coerce("STRING", _no_lz(_am_pm(sunrise(today()+1))))
fset _sstm() coerce("STRING", _no_lz(_am_pm(sunset(today()+1))))
MSG Sun is up today from [_srtd()] to [_sstd()].%"%"%
MSG Next full moon: [mon(moondate(2))] [day(moondate(2))], [year(moondate(2))].%"%"%
; simple countdown to a date
fset _vacdays() coerce("STRING", trigdate()-today()) + plural((trigdate()-today()), " day")
REM August 15 2006 +90 MSG You have [_vacdays()] left until you go to Itchy 'n' Scratchy Land!%"%"%
; more elaborate date-based math (example: weight goal)
fset _curweight() 240
fset _wtweeks() coerce("STRING", (trigdate()-today())/7) + plural((trigdate()-today())/7, " week")
fset _wtdays() coerce("STRING", (trigdate()-today())) + plural((trigdate()-today()), " day")
fset _pounds() coerce("STRING", (2*(trigdate()-today())/7)) + plural(2*((trigdate()-today())/7), " pound")
fset _finweight() coerce("STRING", (_curweight()-(2*(trigdate()-today())/7))) + plural(2*((trigdate()-today())/7), " pound")
REM May 31 2006 +365 MSG Goal is to go from [_curweight()] to [_finweight()] by May 31.
REM You have [_wtdays()] ([_wtweeks()] to lose [_pounds()]!
Personal tools