avatar

Coderek's blog

Loneliness is the gift of life

One task I finished recently was to optimize the loading time of table of content(ToC). ToC is the most important API we are using. Currently, it loads the entire table of content before the initiali…

Read more ››

An interesting task I was assigned recently was to fix the app in RTL mode. Our app is an react app built using webpack. When it's working in the RTL mode, the react app will be under <body dir='…

Read more ››

This is a study note about Python basics. (based on python 3.6) itertools Helper functions returns iterator. import itertools as it Infinite sequence count, cycle, repeat c = it.count(10) print(n…

Read more ››

This is a review on https://github.com/DDFE/DDFE-blog/issues/7 based on vue 2.0. (Courtesy of https://vuejs.org) In the original article, the author did talk about different participants of 2 way bi…

Read more ››

Having a proper way to manage complexity is crucially important in software development. It leads an established way of adding featurs and fixing bugs, so the software can grow as big as you wish wh…

Read more ››

We know that Angular uses component based architecture. Each component is an independent piece of UI that consists of its own state management, styles and templates. A component can be composed of …

Read more ››

Rxjs is a popular library now. I used it when working on my Radio Player project. The Angular uses it as a way to pass data between components. Because the data passed can be async and continuous, it…

Read more ››

After I switched to ubuntu, I discovered quite a few useful commandline utilities. Top is one of them that I underestimated for a long time. In the past, whenever I want to check system resource usag…

Read more ››

我平时喜欢听电台广播。以前在新加坡上中学住宿舍的时候我就买了一个大家伙,它可以放广播,也可以放CD。 学习之余都是这个家伙陪伴着我。我最喜欢的电台是Yes 93.3,新加坡最受年轻人欢迎的音乐电台。经常可以听到 我喜欢的港台新歌手比如梁静茹,林俊杰的歌。这么多年过去了,它的风格没有太大变化。对于我来说这是好事情, 毕竟现在的新歌(手)都不如老歌(手)。 离开新加坡好几年了,时不时还会在网络上听Y…

Read more ››

Binary indexed tree (BIT) is an interesting data structure. It makes calculating and updating prefix sum efficient. In the old way of keeping prefix sum, you have to keep an accumulative array c[]. E…

Read more ››

1 2 3 4 5 6 7 8