Skip to content

Instantly share code, notes, and snippets.

@thatfunkymunki
thatfunkymunki / trolldb.pl
Last active May 23, 2017 08:08
trolldb irssi script
#!/bin/perl
use strict;
use Irssi;
use LWP::UserAgent;
use vars qw($VERSION %IRSSI);
$VERSION= '1.0';
%IRSSI = (
@thatfunkymunki
thatfunkymunki / application_helper.rb
Created November 9, 2011 08:21 — forked from purcell/application_helper.rb
Make will_paginate generate HTML that bootstrap.less will render nicely, fixed for will_paginate 3.0.2
# 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)
@thatfunkymunki
thatfunkymunki / gist:1228098
Created September 20, 2011 01:37
strange ruby error
hello.html.erb:
<h1>Say#hello</h1>
<p>Find me in app/views/say/hello.html.erb</p>
say_controller.rb