Hacker News new | ask | show | jobs
by tero 984 days ago
Author of calendar.txt here. I use scripts to pick whatever information I need. For example, I have a command called 'today'. It shows X next days of my calendar and summary of next X weeks.

Marymkearney, you could write a similar program for your grid calendar.

1. Print HTML start boilerplate. Start an HTML table and row (tr). 2. Read a line of calendar.txt. 3. Print contents of the day as table cell (td). 4. If day is Sunday (string matches "\bSun\b"), print row change (/tr, tr). 5. ... 6. Profit.

HTML is quite convenient for printing, and you can modify it with CSS. As an added bonus for Quinzel, you can copy your static calendar to your devices, and make any device show it - so you don't need to turn those pages. To make the static HTML file available to your devices, you could use syncthing or a web server in local network.

1 comments

Hello, thanks so much for the reply. I really do like calendar.txt. I'm especially a fan of the week numbers. It matches how I conceptualize time. Thank you!

Here's my issue. I'm proficient in HTML and CSS. I can make a nice grid or table, and view the static file on different devices. But I don't know how to populate it with anything. I'm not a programmer, I can't do scripts, and my brain basically stops at the command line. (I'm a lawyer by day job. Maybe that's why.)

So I was hoping to find an already-done-for-you calendar grid that you could write on. Bonus points for defaulting to the current month.

Thanks again for taking my question!