Data Visualisation for Melbourne AirBnb investors in D3.js[with Code]

Last month I attended the Quantify Datathon 2017 event. We are given AirBnb data from insideairbnb.com, then we have 5 days to explore and comes up with the model and/or visualization. Here is the final product from my team, Team Gravy.

Continue reading “Data Visualisation for Melbourne AirBnb investors in D3.js[with Code]”

React Modal – The easy way to show a modal without Redux

Creating a modal box (or popup) is not difficult, but also not easy. I spent 2-3 days finding a solution to build a modal in my React project. As my background is from jQuery and pure JavaScript, I was not aware of the possibility for ReactDOM to build a modal. In this post, I will go through the process of building a modal without JavaScript, and how it is solved by “react-modal” component.

Continue reading “React Modal – The easy way to show a modal without Redux”

WordPress VS React – What I learned from my first day with React

It was 3 years ago that I worked with people who used React for the first time. After that, I had many chances to get in contact with React. But I haven’t really write frontend using React until today.

I am quite amazed with the React ecosystem and would like to share my comparison here.

Continue reading “WordPress VS React – What I learned from my first day with React”

[Foundation 6 & WordPress] SyntaxError: class is a reserved identifier class

I got this error when trying to use foundation 6’s JavaScript from Essential pack (downloaded from here: http://foundation.zurb.com/sites/download.html/)

Continue reading “[Foundation 6 & WordPress] SyntaxError: class is a reserved identifier class”

[JS & PHP] How to set cookies in JavaScript and get in PHP

There is the application I built today which required to send data between JavaScript and PHP. Therefore, instead of sending AJAX request everytime data has changed, I decided to set cookies from JS and use PHP to retrieve the cookies when needed.

Continue reading “[JS & PHP] How to set cookies in JavaScript and get in PHP”