Shogo Oshima

—Web Developer

Sketches Blog About
GitHub X

Blog: 6 articles

RSS

Feb 16, 2025

Using hover, click, and other events in React Three Fiber

R3FThree.js

Last time, I covered React Three Fiber basics, from first scene to simple animation. This time, as a follow-up, let's make things respond to events like hover and click. Using these kinds of events in plain three.js means implementing them with a Raycaster, which takes a bit of…

Feb 7, 2025

GitHub CLI commands I use all the time

Git/GitHub

GitHub CLI lets you operate GitHub from the command line. For example, you can create issues and pull requests, or check on them. In this post, I'll go through the GitHub CLI commands I find myself using the most. This is only a small slice of what it can do, so see the…

Jan 16, 2023

Getting beautiful syntax highlighting with Rehype Pretty Code

Others

If you're writing a technical blog, syntax highlighting is a must. So in this post, let's set it up. The package we'll use is a rehype plugin called Rehype Pretty Code, which does its highlighting with Shiki. Prism is the famous name in syntax highlighting, but this time I went…