This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |