Underscore.js Templates With HAML and CoffeeScript

| Comments

When it comes to templates in JavaScript there are many options to fit a variety of needs. A very simple and lightweight option is the small _.template() function in the Underscore.js library.

In this posts I’ll show you how to use it with HAML and CoffeeScript.

Sending an Email Message to Gmail With JavaScript

| Comments

This is a quick snippet to send an email message to Gmail in compose mode. It’s especially useful if you want to provide a form to compose an email or a link with predefined data to populate the subject, and body of an email message. It’s similar to mailto but targeted only for gmail.

YQL, jQuery and Posterous

| Comments

I’ve recently started using Prosperous as my main blog and one of the first things I wanted to do was to retrieve a list of the most recent entries, so I could add them to another website.

This can be done with the Posterous API, but I needed an excuse to try Yahoo! Query Language (YQL) which allows to access public content from any website using a SQL like syntax.

JSP Example for CIS 4160

| Comments

This is an example of Java Server Pages intended for Baruch College students taking CIS 4160 during the Spring 2010 semester. The goal is to give you a very basic overview of how to connect to a database to obtain data.