How To Build My Own Website (1) - Next.js

I had always dreamed of building my own website, to express myself, to keep memory of what I have done, and to make others know me faster. Although I had self-learned web developing technologies, e.g. html/css, javascript, react, redux, jquery,...

5min read

Mock requestAnimationFrame in Jest

When I wrote test for my tiny rhythm game, I realized that all the browser based actions needed to be mocked, including window.requestAnimationFrame. I created a custom hook useCanvas which takes a draw function and renders the content under canvas...

1min read

Create A Classical Rythm Game With React Hooks and Tone.js

Recently I've been obsessed with React Hooks, and then I came up with an idea to create a classical rythm game using Hooks and Tone.js. This is how it looks:...

5min read

Algorithm Notes: Traversal of Binary Tree

Mostly we know that the traversal of binary tree can be easily done by recursion....

3min read

I got 8/9/6.5/6.5 in IELTS

Actually, my goal is 8/8/7/7, which is CLB9, an elegant score to apply for Canada's EE immigration, although I know it is still not enough even if I get that high score. I just want to prove something....

4min read

Algorithm Notes: Understanding of Binary Search

Recently, I have recovered my algorithm praticing. It's like something is messing in my mind, maybe due to the shallow understanding before. When I tried to implement a binary search to find the first number that is not less than...

4min read

Algorithm Notes: Binary Heap

A Binary Heap is a complete Binary Tree. It is either a Min Heap, where parent node's value is less than or equal to its children's, or a Max Heap, where parent node's value is greater than or equal to...

2min read

Algorithm Notes: KMP

String searching is one of the most common interview problems. Of course, it can be solved by using the simple way that every body can work out, which is:...

10min read