Skip to content

Instantly share code, notes, and snippets.

@hagiyaki
hagiyaki / cola.rb
Created February 17, 2012 14:38 — forked from siyo/beer.rb
コーラ飲んでる時用earthquake.gem plugin
# -*- coding: utf-8 -*-
# cola tweet / earthquake plugin
#
# e.g. :cola うまい #=> コうまいーラ
#
Earthquake.init do
command :cola do |m|
input(":update コ#{m[1]}ーラ")
end
end
@hagiyaki
hagiyaki / gyaku.rb
Created January 21, 2012 16:50 — forked from siyo/reverse.rb
ひっくり返してtweetするやつ/ earthquake.gem plugin
# -*- coding: utf-8 -*-
# gyaku tweet
#
# e.g. :gyaku hoge => egoh
# reverseと一緒にしたいけどスキルなくて無理だったおversion
Earthquake.init do
command %r|^:gyaku\s*(\d+)*\s+(.+)$|, :as => :gyaku do |m|
text = m[2]
input text.split(//).reverse.join
end
@hagiyaki
hagiyaki / ogyoheebyun.rb
Created January 19, 2012 17:11 — forked from DOGEME/ogyohee.rb
byunしながらオギョヒーっていう時用 / earthquake.gem plugin
# -*- coding: utf-8 -*-
# ogyohee tweet / earthquake plugin
#
# ogyohee: http://shindanmaker.com/152454
#
require 'httpclient'
Earthquake.init do
command :byunogyo do
url = "http://shindanmaker.com/152454"