Skip to content

Instantly share code, notes, and snippets.

CmdUtils.CreateCommand({
names: ["objectliteral"],
icon: "http://www.blogger.com/favicon.ico",
description: "Shortcut to my blog.",
help: "list, create or search",
author: {name: "Jason Ong", email: "[email protected]"},
license: "GPL",
homepage: "http://objectliteral.blogspot.com",
arguments: [{role: 'object', nountype: noun_arb_text}],
urls: {
//General function for retrieving verses
function verseQuery ( apiParams, callback) {
var apiUrl = "http://www.esvapi.org/v2/rest/passageQuery?";
jQuery.ajax({
type: "GET",
url: apiUrl,
dataType: "html",
data: apiParams,
error: function() {
@jasonong
jasonong / x
Created July 13, 2009 02:02 — forked from zlu/x
CmdUtils.CreateCommand({
names: ["rails"],
icon: "http://rubyonrails.org/favicon.ico",
description: "Search rails documentation",
help: "Type a rails class or method.",
author: {name: "Jason Ong", email: "[email protected]"},
license: "GPL",
homepage: "",
arguments: [{role: "object", nountype: noun_arb_text, label: "class or method"}],
preview: function preview(pblock, args) {
default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain
selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced
default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain
selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced
class TestMailer
def load_settings(site)
options = YAML.load_file("#{RAILS_ROOT}/config/test.yml")[RAILS_ENV][site]
@@smtp_settings = {
:address => options["address"],
:port => options["port"],
:domain => options["domain"],
:authentication => options["authentication"],
:user_name => options["user_name"],