Skip to content

Instantly share code, notes, and snippets.

@simonwistow
simonwistow / Infobot.pm.diff
Created March 18, 2012 16:57
Infobot.pm.diff
--- Infobot.pm.orig 2012-03-18 09:13:26.000000000 -0700
+++ Infobot.pm 2012-03-18 09:29:08.000000000 -0700
@@ -14,6 +14,58 @@
eval { require XML::Feed };
our $HAS_XML_FEED = $@ ? 0 : 1;
+our %AUXILLARY_VERBS = (
+ "am" => { tense => 'present' },
+ "are" => { tense => 'present' },
+ "aren't" => { tense => 'present', negative_of => "are" },
@simonwistow
simonwistow / Infobot.pm
Created March 18, 2012 16:30
Updated Bot::BasicBot::Pluggable::Module::Infobot
package Bot::BasicBot::Pluggable::Module::Infobot;
{
$Bot::BasicBot::Pluggable::Module::Infobot::VERSION = '0.96';
}
use strict;
use warnings;
use base qw(Bot::BasicBot::Pluggable::Module);
use Data::Dumper;
use LWP::UserAgent ();
@simonwistow
simonwistow / gist:786609
Created January 19, 2011 18:35
Testing
extend ThinkingSphinx::ActiveRecord::ClassMethods
class << self
attr_accessor :sphinx_index_blocks
def set_sphinx_primary_key(attribute)
@sphinx_primary_key_attribute = attribute
end
def primary_key_for_sphinx