Archives
All the articles I've archived.
Monotonic Stacks from Scratch: Starting with the Next Greater Element
A from-zero introduction to monotonic stacks. Start with what a stack is, walk through the next greater element problem step by step with the stack drawn at every move, then cover the template, its variants, and related Top 100 problems.
LeetCode 42. Trapping Rain Water: Four Approaches, from Brute Force to Two Pointers
A Python walkthrough of Trapping Rain Water. Start from one key observation — the water above a bar depends on the shorter of the tallest bars on each side — then build up brute force, prefix maxima, two pointers, and a monotonic stack.
Reading Notes: Skills Improvements in Deep Agents
My notes on Sydney Runkle's "Revamping Skills in Deep Agents" — how skills relate to tools, plus tool binding, pinned skills, and skill reloading.
How to Choose the Right Effort Level in Claude
A practical guide to choosing between Claude's effort levels, Ultracode, and ultrathink for different tasks.
AstroPaper 6.0
AstroPaper v6: a from-scratch rewrite on Astro v6, Tailwind v4, and a new config system.
AstroPaper 5.0
AstroPaper v5: keep the clean look, updates under the hood.
How to add LaTeX Equations in Astro blog posts
Updated:Learn how to add LaTeX equations in Astro blog posts using Markdown, KaTeX, and remark/rehype plugins.
How to integrate Giscus comments into AstroPaper
Updated:Comment function on a static blog hosted on GitHub Pages with Giscus.
AstroPaper 4.0
AstroPaper v4: ensuring a smoother and more feature-rich blogging experience.
How to use Git Hooks to set Created and Modified Dates
Updated:How to use Git Hooks to set your Created and Modified Dates on AstroPaper
AstroPaper 3.0
AstroPaper Version 3: Elevating Your Web Experience with Astro v3 and Seamless View Transitions
How to update dependencies of AstroPaper
How to update project dependencies and AstroPaper template.
AstroPaper 2.0
AstroPaper with the enhancements of Astro v2. Type-safe markdown contents, bug fixes and better dev experience etc.
Dynamic OG image generation in AstroPaper blog posts
Updated:New feature in AstroPaper v1.4.0, introducing dynamic OG image generation for blog posts.
Predefined color schemes
Updated:Some of the well-crafted, updated predefined color schemes for AstroPaper.
Customizing AstroPaper theme color schemes
Updated:How you can enable/disable light & dark mode; and customize color schemes of AstroPaper theme.
Adding new posts in AstroPaper theme
Updated:Some rules & recommendations for creating or adding new posts using AstroPaper theme.
How to configure AstroPaper theme
Updated:How you can make AstroPaper theme absolutely yours.
Tailwind Typography Plugin
EXAMPLE POST: About Tailwind Typography Plugin and how you can use it effectively.
How Do I Develop My Terminal Portfolio Website with React
EXAMPLE POST: Developing a terminal-like website using ReactJS, TypeScript and Styled-Components. Includes features like autocomplete, multiple themes, command hints etc.
How Do I Develop My Portfolio Website & Blog
EXAMPLE POST: My experience about developing my first portfolio website and a blog using NextJS and a headless CMS.