Posts

Showing posts from April, 2014

How is the Weather ? Quick use of OpenWeather API

The Weather Now that spring is here and good nice weather. I can't resist trying out the Openweather api . So I quickly created an Single page app using Google's hosted jquery library . Here is the source code you can fork from GitHub from here  https://github.com/petabyte/HowsTheWeather Here is the link to the hosted page in github http://petabyte.github.io/HowsTheWeather.html

Some Fat are good for you: Fat Arrow Functions in ECMAScript 6

Image
The Fat Arrow I have been hearing about the arrow functions lately and everybody is excited about it. Arrow functions are still in experimental stage and are part of the Harmony (ECMAScript 6) proposal. Here is the  Arrow Function Reference on MDN . So I am curious what the excitement is about and wanted to try it. Spider Monkey Build But before I can try it I have to build my own SpiderMonkey engine that has this new javascript features. Here is the link to  Spider Monkey Build Documentation .  Sublime Text Build System Config After building SpiderMonkey i added it as a new build system in Sublime Text using this configuration. {     "cmd": ["js", "$file", "$file_base_name"],     "working_dir": "${project_path:${folder}}",     "path": "/usr/local/bin:/bin:/usr/sbin:/sbin",     "selector": "*.js" } Note: path may vary where the js executable is installed in your syste