Here is the one line of Ruby code I use to create a calendar in Emacs Org Mode.
From a unix shell run the following:
ruby -e "require 'rubygems'; require 'active_support'; 3.times{|d| puts '** ' + (0.days.ago + d.day).to_date.strftime( '%A (%m/%d/%Y)\n'); puts (0.days.ago + d.days).to_date.strftime(' SCHEDULED: <%Y-%m-%d %a>') }"
No comments:
Post a Comment