Skip to content

Instantly share code, notes, and snippets.

@siyo
siyo / friendship_weather.rb
Last active December 16, 2015 18:39
相互フォローかそうじゃないかとかをお天気マークとかで見れるやつプラギン
# -*- coding: utf-8 -*-
# frindship weather plugin / earthquake.gem plugin
#
require 'singleton'
Earthquake.once do
class Followers
include Singleton
attr_reader :ids
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
# -*- 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
@siyo
siyo / kakusan.rb
Last active December 16, 2015 07:59
# -*- coding: utf-8 -*-
# kakusan tweet / earthquake plugin
#
Earthquake.init do
command %r|^:kakusan\s+(.+)|, :as => :kakusan do |m|
words = %w[ 拡散希望
速報
RTお願いします
本当に大変な問題です!
もう時間がありません。
# -*- coding: utf-8 -*-
# Timeline speed plugin
#
require 'singleton'
Earthquake.once do
class TimelineSpeed
include Singleton
@siyo
siyo / bitly_clicks.rb
Created April 12, 2013 08:05
Tweetしたbitly URLのクリック数を表示するし、他人のやつも表示するプラギン / earthquake.gem plugin
# -*- 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.
@siyo
siyo / teiji.rb
Last active December 15, 2015 16:38 — forked from DOGEME/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|
# -*- 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
# -*- coding: utf-8 -*-
# simple blink(1) earthquake.gem plugin
#
Earthquake.init do
once do
class Blink1Notify
#
# -*- coding: utf-8 -*-
# senzen tweet / earthquake plugin
#
# gem install moji
#
# e.g. :senzen あいうえお #=> アイウエオ
#
require 'moji'
Earthquake.init do