Skip to content

Instantly share code, notes, and snippets.

View fkfk's full-sized avatar
🤔

TANAKA, Koutarou fkfk

🤔
View GitHub Profile
@fkfk
fkfk / notify.rb
Created April 1, 2011 16:41 — forked from yohfee/notify.rb
#coding: utf-8
Earthquake.init do
config[:notify] = [/ruby/i, /#earthquake.gem/i]
output do |item|
next unless item["stream"]
if config[:notify].any?{|pattern| pattern =~ item["text"]}
notify item["text"], :title => item["user"]["screen_name"]
end