Skip to content

Instantly share code, notes, and snippets.

siyo siyo

Block or report user

Report or block siyo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View update_installed_plugins.rb
# -*- 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|
@siyo
siyo / friendship_weather.rb
Last active Dec 16, 2015
相互フォローかそうじゃないかとかをお天気マークとかで見れるやつプラギン
View friendship_weather.rb
# -*- coding: utf-8 -*-
# frindship weather plugin / earthquake.gem plugin
#
require 'singleton'
Earthquake.once do
class Followers
include Singleton
attr_reader :ids
View pbcopy.rb
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
View copipe.rb
# -*- 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
View kakusan.rb
# -*- coding: utf-8 -*-
# kakusan tweet / earthquake plugin
#
Earthquake.init do
command %r|^:kakusan\s+(.+)|, :as => :kakusan do |m|
words = %w[ 拡散希望
速報
RTお願いします
本当に大変な問題です!
もう時間がありません。
View tlspeed.rb
# -*- coding: utf-8 -*-
# Timeline speed plugin
#
require 'singleton'
Earthquake.once do
class TimelineSpeed
include Singleton
@siyo
siyo / bitly_clicks.rb
Created Apr 12, 2013
Tweetしたbitly URLのクリック数を表示するし、他人のやつも表示するプラギン / earthquake.gem plugin
View bitly_clicks.rb
# -*- 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.
View teiji.rb
# -*- 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|
View blink1_star.rb
# -*- 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
View blink1_notifier.rb
# -*- coding: utf-8 -*-
# simple blink(1) earthquake.gem plugin
#
Earthquake.init do
once do
class Blink1Notify
#
You can’t perform that action at this time.