Various code snippets for Salesforce.com