Skip to content

Instantly share code, notes, and snippets.

@just3ws
just3ws / Refactored.js
Created April 14, 2011 17:55
Toggles elements by their title as characters are typed into the text box.
// The character array as a queue was clever but poorly implemented and unnecessary.
// Instead, just read the query from the input.
// Also handles mouse driven content actions (cut, paste, etc).
$(function() {
var filter = function(query) {
var titlesSelector = "#content .show h3 a";
if (query == '') {
$(titlesSelector).closest(".show").show();
} else {
@just3ws
just3ws / Gem list
Created March 16, 2011 12:54
RSpec fails when run via 'rake' but works as expected when run alone or via bundle exec spec.
abstract (1.0.0)
actionmailer (3.0.5)
actionpack (3.0.5)
activemodel (3.0.5)
activerecord (3.0.5)
activeresource (3.0.5)
activesupport (3.0.5)
annotate (2.4.0)
arel (2.0.9)
autotest-fsevent (0.2.5)