Skip to main content

Docusaurus with Google Authentication

· 5 min read

With a little bit of programming, your site made by Docusaurus can be modified to be accessible only to users signed in to Google.

The source material came from this article by Thomasdevshare. His article describes a similar authentication scheme for Docusaurus with Firebase as the identity provider whereas this article describes the same approach using Google API directly.

Leaving My Company

· 9 min read
photo of a balloon in Orchard Road, Singapore
Photo credit: Chua Chee How

Two months ago I left the company which I co-founded 13 years back. Here are some of my takeaways after 13 years as its CTO.

A little lesson on binding

· 2 min read

I've been writing JavaScript for the past 10 years for my work, and there are still things in the language that trips me up. A very good example is on binding.

Given the setup below, I would have been a little hesitant as to what the right answer is.

LG has won me over

· 2 min read

About a year ago, I bought my wife and I a new phone for each of us. For her it was a Galaxy Note 5. For me, I got a LG G4.

At that point in time, the G4 was considered slightly below par compared to the Note 5, in terms of price and branding. I had aimed for a V10 but there was completely no news about it being available in Singapore.

Despite being a flagship phone for Samsung, there were plenty of reasons for not choosing the Note 5 then - the stylus problem, the non-removable battery and the lack of external storage. I had no regrets not selecting the Note 5.

Installing Disqus

· One min read

So I've gotten around to installing Disqus for this blog. This post is just a test post for testing the commenting system.

(2023 February note: Disqus was not enabled after the switch to Docusaurus)