Skip to content

Tag: javascript

Handlebars re-compile templates

I’m working with handlebars and I have this situation. I do a request to a server, and get all the data I need to put it on the views. I use handlebars to put that data, and have no problem. Now, I need to do the request every 1 or 2 minutes. But when I’m going to put the data

convert CSV lines into Javascript objects

I have a simple csv file people.csv: What I want to do it get each line of the CSV, convert it to a JavaScript object, store them into an array, and then convert the array into a JSON object. server.js: My question is if I am actually converting that CSV lines into Javascript objects when I call the .split(&#…

plot lightning data in Google maps

I’ve got a weather website, which misses lightning data. I found a data source from Blitzortung.org wich contains the Lat, Lon and time info of a lightning strike. How do I get this on Google Maps? I want the data to be realtime, just like on blitzortung.org. It should be displayed on the map, preferabl…

Concatenate Object values

I have a JavaScript Object and I’m sure the value of any key is an array (even empty in some case): Aside from using Underscore, is there any way to concatenate all the values of this Object (and create a new array)? At the moment I get the keys name using Object.keys, then I loop and concatenate. Any h…