Notes while learning Java from Marcus Biel’s tutorials .



public enum States {
public boolean isprocessing(){
return this == processing;

Test Case:

Read more »

An air quality index (AQI) is used to communicate to the public how polluted the air currently is. Public health risks increase as the AQI rises. Different countries have their own air quality indices, corresponding to different national air quality standards.
The air quality index is a piecewise linear function of the pollutant concentration. At the boundary between AQI categories, there is a discontinuous jump of one AQI unit. To convert from concentration to AQI this equation is used:

Read more »

Publishing a new post can be too much if you do it old school hexo p && hexo d on the desktop/laptop. What’s worse is you can only publish it on a computer with Hexo installed. What if you want to write it anywhere and anytime and even on an iPad? With Travis CI (or any other CI service), each time you push a change to the GitHub repo, a build will kick off on Travis and it run anything you prepared including deploying the updated pages. It took me two nights to figure out (mostly) how to archive it 😅, so in this post I will try to write down each step and the tricks within to make everyone’s life easier.

This post is inspired by kchen’s

Read more »

Gulp is an open-source JavaScript toolkit created by Eric Schoffstall used as a streaming build system in front-end web development. We can use Gulp to compress the hexo static resources so that accessing our website is becoming faster. There are lots to learn about Gulp but to use it here on our Hexo webte is simple.

Read more »