From f8dfa4db78a3a3a2585921046713d43634f74019 Mon Sep 17 00:00:00 2001 From: Gregory Croisdale Date: Tue, 9 Jul 2024 17:56:22 -0400 Subject: [PATCH] removed leading zero from day --- src/components/ContentCard.astro | 5 ++++- src/content/blog/synmap.md | 11 +++++++++++ src/content/blog/tasks.md | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/content/blog/synmap.md diff --git a/src/components/ContentCard.astro b/src/components/ContentCard.astro index 61e39c2..d294a25 100644 --- a/src/components/ContentCard.astro +++ b/src/components/ContentCard.astro @@ -12,7 +12,10 @@ const { dateFunc = (date: Date) => { const { month, day, year } = dateToParts(date); - return `${month} ${day}, ${year}`; + // remove leading zero from day + const dayStr = day.toString().replace(/^0+/, ''); + + return `${month} ${dayStr}, ${year}`; } }: Props = Astro.props; diff --git a/src/content/blog/synmap.md b/src/content/blog/synmap.md new file mode 100644 index 0000000..314eb39 --- /dev/null +++ b/src/content/blog/synmap.md @@ -0,0 +1,11 @@ +--- +title: "Syntax Mapping for LLM Coding" +date: "2024-07-9" + +description: "Programming Languages are optimized for human readability and writability, but are these also optimal for LLMs? This project maps syntax from existing parsers into other formats, each with different advantages to be evaluated in LLM Coding tasks." + +link: "https://gcrois.github.io/synmap/" +newTab: true + +tags: ["Programming Languages", "Parsing", "AI"] +--- diff --git a/src/content/blog/tasks.md b/src/content/blog/tasks.md index d47478f..db825e8 100644 --- a/src/content/blog/tasks.md +++ b/src/content/blog/tasks.md @@ -1,6 +1,6 @@ --- title: "Flexible Backend for Web Applications" -date: "2024-07-01" +date: "2024-07-1" description: "An in-progress library to provide flexible backends for compute-intensive web applications, such as switching between web workers, local docker images, and API keys for AI apps."