This file contains hidden or 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
| #!/bin/perl | |
| use strict; | |
| use Irssi; | |
| use LWP::UserAgent; | |
| use vars qw($VERSION %IRSSI); | |
| $VERSION= '1.0'; | |
| %IRSSI = ( |
This file contains hidden or 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
| # Based on https://gist.github.com/1205828, in turn based on https://gist.github.com/1182136 | |
| class BootstrapLinkRenderer < ::WillPaginate::ActionView::LinkRenderer | |
| protected | |
| def html_container(html) | |
| tag :div, tag(:ul, html), container_attributes | |
| end | |
| def page_number(page) | |
| tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page) |
This file contains hidden or 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
| hello.html.erb: | |
| <h1>Say#hello</h1> | |
| <p>Find me in app/views/say/hello.html.erb</p> | |
| say_controller.rb | |
NewerOlder