via Using Underscore.js in Node.js Apps.
An Awesome guide to jQuery. Available in PDF, ePub and Mobi. Click here
Note: If you are new to Node.js, check Node.js Tutorial Series – Getting Started
via Create offline app using HTML5 Cache and Underscore Template.
In this article, we are going to make an application that once accessed through an internet connection would be accessible even when you are offline. The application is relatively simple – it provides the user with the ability to create new notes with title and body and remove notes he no longer needs. We are going to store the notes the user has saved in localStorage in order for the application to be accessible without internet connection.
via basket.js – a simple script loader that caches scripts with localStorage.
This section was rendered using the micro-templating in Underscore.js. It’s just one of a number of scripts that were added to this document using basket.js when you loaded it and should now be cached in localStorage (if supported). If you visit this page again, the scripts will be loaded from there rather than being refetched. Backbone.js was also loaded and we created a new model with the name: Nyan Cat (just for funsies).
As people who know me might know I have been playing around with various wearables for some years now, starting with a Nike Fuel Band, and also trying out products from Misfit and UP along the way. I have mostly just watched with interest as my exercise levels, and indeed sleep now we have a little one in the house, has gone up and down over time.
I am going to assume the rest of the Cordova App is in place and start with a simple wearable object which exposes a promise that allows you to check whether HealthKit is available on this platform, you might have iOS 8 but HealthKit is iPhone only. Remember that most of Cordova is interacting with a bunch of asynchronous native systems so you have to make sure you consider this as you work with it. Hence the liberal use of promises. (If you are wanting to support < iOS 8 then you will need to use a different promise library / shim) In this case I am also using the underscorejs library to create a promise who’s result won’t be calculated until it is invoked for the first time.
A project skeleton that uses node.js, express, jquery, requirejs, underscore.js, and class.js to allow you to get started writing simple graphical applications for the browser quickly.