test Express.js with Jest and Supertest

How to test Express.js with Jest and Supertest

I recently changed from Mocha, Chai to Jest. Pretty lovely experiences. It took a while to figure out the right way to test an express route, but when it works, it works like a charm. I share my experiences here, hope it helps. I love jest assertion function more than Chai, seems more concise to me.

animation state machine in Unity

Something about the animation state machine in Unity

Recently I finished my last paper for my study programm – Game Development, the final project is a 2D fighting game developed using Unity, I am responsible for anything related to the enemy (AI, state machine, animation tree, including Boss), openning cut scene, and a QTE(quick time event) system as well. We did a pretty…

How to install android apk and check its log

How to install android apk and check its log

When you are developing some cross platform apps, React native, Phonegap, Kivy, Native script, etc. It’s very usual that you need to install the package to the real device, and it’s totally fine for you to manually install the compiled APK. But if you want more productivity, you need use the adb command. Let’s get a quick…

python object to disk

How to save a python object to disk and retrieve it later?

Objects are somethings which exists at run time, if we want to maintain its status across sessions, we need some intermediate technology such as serialization. With serialization you could flush the objects to the disk to make it persistent and deserialize it afterwards to convert it back from binary form to a runtime object.

Valgrind on Windows

How to use Valgrind on Windows

Valgrind is a famous tool to debug your memory leak, but what sad is it only supports Linux, yeah, not a perfect support even on Mac. But with the new Windows 10 Anniversary update, it’s happening. And works way much better than Mac with OS X. Let’s rock!

© 2025 www.albertgao.xyz | All Rights Reserved.