A few weeks ago I bought a basic road bike with the intention of cycling to work. And Iβm totally hooked! Addicted maybe? I think I finally get it.
My primary reason for biking to work is to level up the amount of exercise I get in every week, but Iβm aware that leaving the car at home has some obvious side effects. By burning less gasoline Iβm obviously saving some money and Iβm keeping some amount of carbon out of the air.
Meanwhile, Iβve been looking for a good practical way to level up my vue.js skills. So I challenged myself to build a simple tool in vue.js to help me quantify just how much CO2 Iβm leaving in the tank and how much money Iβm leaving in my wallet.
The result biketoworkcalculator.com
Itβs a dead simple tool that allows you to roughly calculate CO2 and dollars you save by riding a bike. Check it out for yourself.
I was actually quite surprised that biking only one day per week would save me around $10 in gasoline over the course of a month.
If youβd like to look at the code or correct my math or whatever, itβs up on github: https://github.com/ohryan/biketoworkcalculator
Oh and if youβre in to cycling, follow me on Strava.
The post Cycling, Javascript and Saving the Planet appeared first on ohryan.ca.
Top comments (0)