Skip to content

Instantly share code, notes, and snippets.

// Extends jQuery hide/show/toggle/etc to support the HTML5 hidden attribute.
// See http://blog.paciellogroup.com/2012/05/html5-accessibility-chops-hidden-and-aria-hidden/
// Based on code by Weston Ruter (https://gist.github.com/westonruter/399217)
// Note: Does not work in IE8 and lower, as they interpret false properties as true.
(function(){
var original = {
hide: jQuery.fn.hide,
show: jQuery.fn.show,
toggle: jQuery.fn.toggle
};
@eheikes
eheikes / assets-graphviz.rb
Created October 29, 2012 20:38 — forked from cthiel/assets-graphviz.rb
Rails 3.1 stylesheet assets dependency graph
#!/usr/bin/ruby
#
# (c) 2011 SUSE Linux Products GmbH, Author: Christoph Thiel <cthiel@suse.com>
#
# script that generate dependency graph for Rails 3.1 stylesheet assets
#
# usage: sudo rubygem install ruby-graphviz
# cp assets-graphviz.rb yourapp/app/assets/
# cd yourapp/app/assets/; chmod +x assets-graphviz.rb; ./assets-graphviz.rb