Skip to content

Instantly share code, notes, and snippets.

View mseymour's full-sized avatar

Mark Seymour mseymour

View GitHub Profile
@mseymour
mseymour / acrogame.rb
Last active October 2, 2015 00:26
Acrobot acro game class (incomplete 2011-08-29 @ 8:55 PM)
module Games
module Acro
class Game
attr_reader :acronym
attr_reader :answers
attr_reader :voters
def initialize acronym = nil
@acronym = acronym ||= Random.new.rand(3..10).times.map { [*?A...?Z].sample }.join
@answers = []
@mseymour
mseymour / acrogame.rb
Created August 26, 2011 20:37
Acrobot acro game class (incomplete 2011-08-25 @ 5:37 PM)
module Games
module Acro
class Game
attr_reader :acronym
attr_reader :answers
attr_reader :voters
def initialize acronym = nil
@acronym = acronym ||= Random.new.rand(3..10).times.map { [*?A...?Z].sample }.join
@answers = []
@mseymour
mseymour / cinch_plugin_hello.rb
Created August 25, 2011 04:38
A basic 'hello' plugin for Cinch 1.1.3
class MyCinchPlugin
include Cinch::Plugin
react_on :channel
match /hello/, method: :execute_hello
def execute_hello m
m.reply "Hello, #{m.user.nick}!"
end
end