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 -*- | |
# update installed plugins / earthquake plugin | |
# | |
# Usage: | |
# $ :update_installed_plugins | |
# | |
Earthquake.init do | |
command :update_installed_plugins do | |
Dir.glob(File.dirname(__FILE__) + "/*.rb").each{|rb| | |
open(rb){|f| |
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 -*- | |
# frindship weather plugin / earthquake.gem plugin | |
# | |
require 'singleton' | |
Earthquake.once do | |
class Followers | |
include Singleton | |
attr_reader :ids |
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
Earthquake.init do | |
command %r|^:pbcopy\s+(\d+)|, :as => :pbcopy do |m| | |
status = cache.read("status:#{m[1]}") | |
text = URI.decode(status["text"].chomp) | |
`echo "#{text}" | pbcopy` | |
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 -*- | |
# copy&paste tweet / earthquake.gem plugin | |
# | |
# e.g. :copipe $aa | |
# | |
Earthquake.init do | |
command %r|^:copipe\s+(\d+)|, :as => :copipe do |m| | |
status = cache.read("status:#{m[1]}") | |
input status["text"] | |
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 -*- | |
# kakusan tweet / earthquake plugin | |
# | |
Earthquake.init do | |
command %r|^:kakusan\s+(.+)|, :as => :kakusan do |m| | |
words = %w[ 拡散希望 | |
速報 | |
RTお願いします | |
本当に大変な問題です! | |
もう時間がありません。 |
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 -*- | |
# Timeline speed plugin | |
# | |
require 'singleton' | |
Earthquake.once do | |
class TimelineSpeed | |
include Singleton |
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 -*- | |
# Display bit.ly clicks / eaarthquake.gem plugin | |
# | |
# (Set your Login name & API Key) | |
# | |
# Required gems: | |
# bitly : https://github.com/philnash/bitly | |
# | |
# Usage | |
# e.g. |
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 -*- | |
# teiji tweet / earthquake plugin | |
# | |
# src: http://shindanmaker.com/311937 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command %r|^:teiji\s*(.+)?|, :as => :teiji do |m| |
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 -*- | |
# blink(1) favorite notifier earthquake.gem plugin | |
# | |
Earthquake.init do | |
once do | |
class Blink1Star | |
CMD = "blinK1-tool" | |
OPT_FADE = 10 | |
OPT_DELAY = 50 | |
OPT_BLINK = 50 |
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 -*- | |
# simple blink(1) earthquake.gem plugin | |
# | |
Earthquake.init do | |
once do | |
class Blink1Notify | |
# |