flinhong logo

a lifelong journey with

undertanding and presenting

Fri, May 11, 2018
Get a JavaScript array with unique values

by Frank Lin

Get a JavaScript array with unique values

As I need to update an array in Firestore with duplicate-free values, let's summarise the methods I found and see how they perform.

read more
Thu, May 03, 2018
Loop with async and await in JavaScript

by Frank Lin

Loop with async and await in JavaScript

Well, just got some problems in JavaScript loop with http request inside. Take a short note showing how to deal with it which got ideas from the post JavaScript: async/await with forEach().

read more
Sun, Apr 22, 2018
National Geographic Photo of the Day Downloader for Mac OSX

by Frank Lin

National Geographic Photo of the Day Downloader for Mac OSX

A shell script to automate the process of downloading National Geographic photo of the day. The script downloads the photo of the day in the same directory that it resides. You can use cron to make it automatically running everyday.

read more
Sat, Apr 14, 2018
npm install, concerns for me

by Frank Lin

npm install, concerns for me

While learning node.js, install packages is a commonly operation. However, as a newbie, I might install the packages not in the right way. So taking this note to refresh my mind on the npm install.

read more
Thu, Apr 05, 2018
Fetch lyric from QQ music using Ajax, with simple example

by Frank Lin

Fetch lyric from QQ music using Ajax, with simple example

Get lyric for music can be easily done by several 3rd-party services. Especially in Foobar, the ESLyric component makes it easy to auto-fetch .lrc by JavaScript. But sometimes it may fail to work for certain music or from a certain lyric provider. Recently, as I installed a newer version of foobox, I found the lyrics from QQ music is getting some problems with the built-in script. So I would like to know what happens and try to fix it.

read more
twitter github weibo
to top