Here are some consolidated codes/APIs which I have learnt from my courses (CS3237, EE4216) as well as projects.
I hope these samples codes will be able to aid you in your own learning or mini projects:)
Shout out to Prof Boyd Anderson, Prof Wang Jingxian and Dr. Zhang Jianwen.