Skip to content

Commit

Permalink
Update holidays data to use eSolia's
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Dec 3, 2024
1 parent ba2fe6f commit fe167d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ console.log(
console.log(`${new Date().toISOString("ja-JP", { timeZone: "Asia/Tokyo" })}`);

// Fetch holidays
const response = await fetch("https://holidays-jp.github.io/api/v1/date.json", {
// https://holidays-jp.github.io/api/v1/date.json
// https://webhook.site/esolia-holidays
const response = await fetch("https://webhook.site/esolia-holidays", {
method: "GET",
mode: "no-cors",
headers: {
Expand Down Expand Up @@ -105,3 +107,5 @@ const envdenoinstall = Deno.env.get("DENO_INSTALL");
console.log("DENO_INSTALL:", envdenoinstall);
// const env = Deno.env.toObject();
// console.log("env:", env);
// console.log(holidays2);
// console.log(holidays);
6 changes: 4 additions & 2 deletions src/repo-readme.vto
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ date: Git Last Modified

**Last Updated:** {{ date |> date('HUMAN_DATETIME') }}
**Today is:** {{ todaysDateENUS }}
{{ set today = todaysDateYYYYMMDD }}{{ if holidays[today] }}**Today is:** {{ holidays[today] }}{{ /if }}
{{ set today = todaysDateYYYYMMDD }}{{ set holimatch = holidays.filter(item => item['Date in YYYY-MM-DD'] === today ) }}{{ if holimatch.length > 0 }}**It's a holiday in Japan:** {{ holimatch[0]['Name'] }} / {{ holimatch[0]['Name Jp'] }}{{ /if }}

### Hi there 👋

I'm the founder of a boutique IT services company called [eSolia](https://esolia.com), based in Tokyo and founded in 1999. We just passed our 25th anniversary and hope to stay healthy and profitable, working on improving our operations by implementing ISO 27001.

I have spent my career in IT in Japan, doing a wide range of activities, such as compsci tutoring, physical cabling, network engineering, project management, software development, system architecture and design, solution consulting, web design and development, and delivering training courses to name a few. Sometimes I look back with nostalgia on the way things were in the late ’80s, but mostly, I like how things are now (you're old if you know what `autoexec.bat` and `config.sys` are)!
I have spent my career in IT in Japan, doing a wide range of activities, such as compsci tutoring, physical cabling, network engineering, project management, software development, system architecture and design, solution consulting, web design and development, and delivering training courses to name a few. Sometimes I look back with nostalgia on the way things were in the late ’80s, but mostly, I like how things are now (you're _old_ if you know what `autoexec.bat` and `config.sys` are)!

[![Rick's GitHub stats](https://github-readme-stats.vercel.app/api?username=rickcogley&show_icons=true&theme=transparent)](https://github.com/anuraghazra/github-readme-stats)

Expand All @@ -36,6 +36,8 @@ I have spent my career in IT in Japan, doing a wide range of activities, such as
| Typescript Version | {{ Deno.version.typescript }} |
| Timezone | {{ Deno.env.get("TZ") }} |

{{ Deno.env.get("API_KEY_01") }}

### How does this readme work?

I'm generating this readme using the Lume static site generator. See [this page](https://rickcogley.github.io/rickcogley/) for details to get your own!
Expand Down

0 comments on commit fe167d5

Please sign in to comment.