Skip to content

Instantly share code, notes, and snippets.

@hagiyaki
hagiyaki / toppo.rb
Created October 21, 2011 14:39
トッポってすげえなって思った時用earthquake.gem plugin
# -*- coding: utf-8 -*-
# toppo tweet / earthquake plugin
#
# e.g. :toppo てすと => てすと。その点...
#
Earthquake.init do
command :toppo do |m|
input("#{m[1]}。その点トッポってすげぇよな、最後までチョコたっぷりだもん。")
end
end
@hagiyaki
hagiyaki / omikuji.rb
Created October 21, 2011 19:11
おみくじしたくなった時用earthquake.gem plugin
# -*- coding: utf-8 -*-
# omikuji tweet / earthquake plugin
# 浅草寺(東京)
# e.g. :omikuji #=> おみくじ:[運勢]
#
Earthquake.init do
command :omikuji do
s = "おみくじ:"
case rand(101)
when 0 .. 17
@hagiyaki
hagiyaki / gohan.rb
Created November 8, 2011 14:40
ご飯が決まらない時用earthquake.gem plugin
# -*- coding: utf-8 -*-
# gohan tweet / earthquake plugin
# e.g. :gohan #=> 神は言っている。今日は[料理名]を食えと。。。
#
Earthquake.init do
command :gohan do
s = "神は言っている。今日は"
food= ["ラーメン","うどん","カレー","牛丼","モス","あまから","焼き飯"]
i = rand(food.size)
s << food[i] << "を食えと。。。"
@hagiyaki
hagiyaki / gist:1372376
Created November 17, 2011 04:41
cityvilleで広告とかfooterとか消すstylishのやつ
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://apps.facebook.com/cityville/"){
#rightCol,#contentCurve,#footerContainer {
display:none !important;
}
}
@-moz-document url-prefix("http://fb-0.cityville.zynga.com/"){
#zbar,.like_box,#ad,#zap-banner {
@hagiyaki
hagiyaki / asahi.rb
Created January 10, 2012 09:25
スーパードライ earthquake.gem plugin
# -*- coding: utf-8 -*-
# superdry tweet / earthquake plugin
#
# superdry: http://shindanmaker.com/43570
#
require 'httpclient'
Earthquake.init do
command :asahi do
url = "http://shindanmaker.com/43570"
@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"
@hagiyaki
hagiyaki / asahibyun.rb
Created January 19, 2012 17:16
byunしながらスーパードライ earthquake.gem plugin
# -*- coding: utf-8 -*-
# superdry tweet / earthquake plugin
#
# superdry: http://shindanmaker.com/43570
#
require 'httpclient'
Earthquake.init do
command :byunasahi do
url = "http://shindanmaker.com/43570"
@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 / 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 / trans.rb
Created February 27, 2012 08:02
翻訳してツイートするearthquake.gem plugin(MSのappidいる)
# -*- coding: utf-8 -*-
# trans tweet / earthquake plugin
# e.g. :trans おはよう => Good morning
# :trans fr おはよう => Bonjour
# 使えるらしい言語
# ar bg zh-CHS zh-CHT cs da nl en et fi fr de el ht he
# hu id it ja ko lv lt no pl pt ro ru sk sl es sv th tr uk vi
#
# appid取得 http://www.bing.com/developers/appids.aspx
#