This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# OS X only | |
# | |
Earthquake.init do | |
command :paste do | |
s = `pbpaste` | |
twitter.update(s) if confirm(s,:n) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
require 'glitch-ime' | |
Earthquake.init do | |
command %r|:glitch\s*(\d+)*\s*(.*)$|, :as => :glitch do |m| | |
cmd = m[1] ? ":reply #{m[1]}" : ":update" | |
input("%s %s" % [cmd, GlitchIME.new(m[2]).generate]) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
Earthquake.init do | |
command %r|:glitch\s*(\d+)*\s*(.*)$|, :as => :glitch do |m| | |
cmd = m[1] ? ":reply #{m[1]}" : ":update" | |
s = open(URI.encode("http://glitchstr.makimoto.org/#{m[2]}")){|f| f.read} | |
input("%s %s" % [cmd, s]) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# watching tv tweet (Tokyo ver.) / earthquake.gem plugin | |
# | |
# e.g. :tv 1 # => update '『松本人志のコント・MHK[再放送]』 を視聴します。' [Yn] | |
# | |
require 'rss' | |
Earthquake.init do | |
once do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# OS X only | |
# rbosa : http://rubygems.org/gems/rubyosa19 | |
# | |
require 'kconv' | |
require 'rbosa' | |
Earthquake.init do | |
command :nowplaying do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# favstar / earthquakge.gem plugin | |
# | |
# e.g. :favstar #=> your favstar | |
# :favstar who #=> who's favstar | |
# | |
require 'rss' | |
Earthquake.init do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'rss' | |
Earthquake.init do | |
command :pentax do | |
RSS::Parser.parse(open('http://twitter.com/statuses/user_timeline/grdiv.rss'){|f|f.read},false).items.each{|i| | |
twitter.retweet(i.guid.to_s.scan(/\d+/)[0]) | |
} | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# favstar / earthquakge.gem plugin | |
# | |
# e.g. :favstar #=> your favstar | |
# :favstar who #=> who's favstar | |
# | |
require 'rss' | |
Earthquake.init do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# jrapper tweet / earthquake plugin | |
# | |
# jrapper: http://shindanmaker.com/54175 | |
# | |
require 'httpclient' | |
Earthquake.init do | |
command :jrapper do |m| | |
html = HTTPClient.new.post("http://shindanmaker.com/54175", { :u => m[1], :from => "" } ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# bbq tweet / earthquake plugin | |
# | |
# bbq: http://shindanmaker.com/168737 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command %r|^:bbq\s*(.+)?|,:as => :bbq do |m| |