Skip to content

Instantly share code, notes, and snippets.

class HaveWant
attr_reader :answers
def initialize(*have, want)
@have = have[0]
@args = have[1..-1]
@want = want
find_matches
class JourneyCoffeeGenerator < Journey::Visitors::Visitor
def accept node
@requirements = [[]]
super.gsub('" + "', '')
end
private
def visit_GROUP node
@requirements << []
# Extend jQuery objects with Underscore collection methods.
#
# Each collection method comes in two flavors: one prefixed
# with _, which yields a bare DOM element, and one prefixed
# with $, which yields a jQuery-wrapped element.
#
# So if `this` is a jQuery object, instead of:
#
# _.max @, (el) -> $(el).height()
#
@nowhereman
nowhereman / bookmark-helper.js
Created July 23, 2011 08:34 — forked from balupton/bookmark-helper.js
History.js It! A bookmark for trialing History.js on your own website.
(function(window,undefined){
// Load Helpers
var
intervalScript, intervalJquery,
loadScript = function(scriptUrl){
var e = document.createElement('script');
e.setAttribute('src',scriptUrl);
window.document.body.appendChild(e);
return e;