Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zachd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
zachd
11mo ago
https://stretchmytimeoff.com An algorithm to optimise vacation days using public holidays and weekends. Especially relevant at this time of year. I created it a year ago and received quite some comments on the Show HN post[1]. L
2.
▲
by
zachd
2y ago
Hi, thanks for your feedback. GPT was able to make your change for Monday vs Sunday week starting :)
3.
▲
by
zachd
2y ago
Hi, thanks for your feedback! The list of countries comes from a popular ISO-3166-1 npm package. I can see there was already much discussion about this topic over on their repo https://github.com/michaelwittig/node-i18n
4.
▲
by
zachd
2y ago
Thanks! Adding customisable fixed holiday days could be a nice idea :)
5.
▲
by
zachd
2y ago
Thanks! I made options to change the year and leave balance, but not to change the first day of the year. Let me know if it still works if you enter the right number of days
6.
▲
by
zachd
2y ago
Thanks a lot, now there's a quick feature to toggle off certain holidays, I see most US don't get Veteran's day indeed. It should work now, per state as well
7.
▲
by
zachd
2y ago
Thanks so much! ChatGPT and I just added a quick feature to hide certain holidays from a particular year, stored in LocalStorage. Let me know if it works like you expect :)
8.
▲
by
zachd
2y ago
Thanks, the count could indeed be improved. I left it as counting all clusters > 2 days as valid extra time off, so all 3 day weekends made from national holidays would be included. But of course it's over optimistic :)
9.
▲
by
zachd
2y ago
Thanks for sharing! The option to toggle holidays on/off should be working. Being able to arbitrarily add a chosen day isn't there, you just need to +1 to your days off count and let the algorithm choose for you.
10.
▲
by
zachd
2y ago
Thanks for your feedback! Indeed the algorithm only gives one result, as it tries to fill all gaps from smallest to biggest in the best way possible to create clusters. Making it super customisable would be tough, as then it becomes just a
11.
▲
by
zachd
2y ago
Ah shame, I totally depend on the well maintained npm package date-holidays. But I guess it could use a PR! https://github.com/commenthol/date-holidays/blob/master/data...
12.
▲
by
zachd
2y ago
Thanks! ChatGPT and I made the change for per-state support and to hide individual holidays each year :)
13.
▲
by
zachd
2y ago
Thanks for the feedback! ChatGPT and I made the change to hide individual holidays for a country per year, click "edit list" :)
14.
▲
Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days
(stretchmytimeoff.com)
358 points
by
zachd
2y ago
|
174 comments
15.
▲
by
zachd
6y ago
I agree. Edit: Removed exclamation point
16.
▲
by
zachd
6y ago
Would be awesome if the submission guidelines are linked on the submission page itself