|
| 1 | +import type { APIContext } from "astro"; |
| 2 | +import { getCollection } from "astro:content"; |
| 3 | + |
| 4 | +export async function GET(context: APIContext) { |
| 5 | + const posts = (await getCollection("writing")) |
| 6 | + .filter((post) => !post.data.draft) |
| 7 | + .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); |
| 8 | + |
| 9 | + const site = context.site!; |
| 10 | + |
| 11 | + const writingEntries = posts |
| 12 | + .map((post) => { |
| 13 | + const url = new URL(`/writing/${post.id}/`, site); |
| 14 | + return `- [${post.data.title}](${url}): ${post.data.description}`; |
| 15 | + }) |
| 16 | + .join("\n"); |
| 17 | + |
| 18 | + const body = `# Daniel Ho |
| 19 | +
|
| 20 | +> Software engineer, writer, potter. |
| 21 | +
|
| 22 | +Personal website of Daniel Ho. I build software, write about what I'm learning, and make pottery when I'm away from the screen. |
| 23 | +
|
| 24 | +## About |
| 25 | +
|
| 26 | +Daniel Ho is a software engineer who has worked at Anime, Azuki, Koop (technical cofounder), Flexport, Meta, Salesforce, and NASA JPL. He studied at USC where he researched NLP and commonsense reasoning in pre-trained language models (BERT, GPT-2). |
| 27 | +
|
| 28 | +## Links |
| 29 | +
|
| 30 | +- Website: ${site} |
| 31 | +- GitHub: https://github.com/donutdaniel |
| 32 | +- X/Twitter: https://x.com/donutdho |
| 33 | +- LinkedIn: https://linkedin.com/in/danielho54 |
| 34 | +- Email: danielho54@gmail.com |
| 35 | +
|
| 36 | +## Writing |
| 37 | +
|
| 38 | +${writingEntries} |
| 39 | +
|
| 40 | +## Publications |
| 41 | +
|
| 42 | +- [RICA: Evaluating Robust Inference Capabilities Based on Commonsense Axioms](https://arxiv.org/abs/2005.00782) |
| 43 | +
|
| 44 | +## Work |
| 45 | +
|
| 46 | +- Anime (anime.com): Social product. News aggregation, streaming, and experiences for anime fans. |
| 47 | +- Azuki (azuki.com): Web3 team. Anime NFT brand and community platform. |
| 48 | +- Koop (koop.xyz): Technical cofounder. On-chain rails for creators and communities. |
| 49 | +- Flexport: Platform and infra team. Dev environments, microservices, shipment domain modeling. |
| 50 | +- Meta: Messenger team. Infrastructure, profile and stories processing. |
| 51 | +- Salesforce: Core platform. File streaming service for real-time collaboration. |
| 52 | +- NASA JPL: Deep learning for CNN noise detection. |
| 53 | +- USC: NLP research on commonsense reasoning. TA for Discrete Math and Algorithms. |
| 54 | +
|
| 55 | +## Full Content |
| 56 | +
|
| 57 | +For complete article text in clean markdown, see: ${new URL("/llms-full.txt", site)} |
| 58 | +`; |
| 59 | + |
| 60 | + return new Response(body, { |
| 61 | + headers: { "Content-Type": "text/plain; charset=utf-8" }, |
| 62 | + }); |
| 63 | +} |
0 commit comments