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
!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# これが何を意味するのかわかる人だけ使ってください | |
#-- | |
time = Time.now | |
today = "%04d%02d%02d" % [time.year, time.month , time.day] | |
REJECT_EXTENTIONS = ["html","url"] | |
if not (FileTest.exist?(today) or FileTest.directory?(today)) | |
mkdir = "mkdir %s" % today |
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
# | |
# this file format is YAML | |
# | |
acount_basic: | |
screen_name1: | |
user: screen_name1 | |
password: password1 | |
screen_name2: | |
user: screen_name2 | |
password: password2 |
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
#!/usr/bin/env ruby | |
require 'kconv' | |
require 'rubygems' | |
require 'rbosa' | |
class ItunesCLI | |
COMMANDS = { | |
'next' => :next_track, | |
'n' => :next_track, |
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
バタリ | |
シュワリ | |
ゴクリ | |
フロア | |
フロハ |
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 -*- | |
# event_notifer+ plugin | |
# | |
require "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| | |
if item["event"] && item["source"]["screen_name"] != twitter.info["screen_name"] |
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 -*- | |
# reply_rt_notifier plugin | |
# | |
require "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| |
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 -*- | |
# kinkyuu jisin sokuhou (@eew_jp) earthguake.gem plugin | |
# | |
require "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| |
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
# dice tweet / earthquake plugin | |
# | |
# e.g. :d100 # update 'D100 = 47' [Yn] | |
# :10D567 # update '10D567 = 2992' [Yn] | |
# :3d100 $xx # update '@who 3D100 = 239' [Yn] | |
# | |
Earthquake.init do | |
command %r|^:(\d*)([dD])(\d+)\s*(\d+)*$|, :as => :dice do |m| | |
t = m[1] == "" ? 1 : m[1].to_i | |
c = m[4] ? ":reply #{m[4]}" : ":update" |
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 -*- | |
# haiku tweet / earthquake plugin | |
# | |
# e.g. :haiku # => ここで一句、柿食えば 鐘がなるなり 法隆寺 | |
# :haiku hoge # => hoge ここで一句、柿食えば 鐘がなるなり 法隆寺 | |
# :haiku $xx # => @who ここで一句、柿食えば 鐘がなるなり 法隆寺 | |
# :haiku $xx hoge # => @who hoge ここで一句、柿食えば 鐘がなるなり 法隆寺 | |
# | |
Earthquake.init do | |
command %r|^:haiku\s*(\d+)*\s*(.*)$|, :as => :haiku 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
# zalgo tweet / earthquake plugin | |
# | |
# e.g. :zalgo Hello,World! | |
# | |
Earthquake.init do | |
command :zalgo do |m| | |
s = open(URI.encode("http://zalgo-text.jgate.de/convert?q=#{m[1]}")){|f| f.read} | |
input(":update #{s}") | |
end | |
end |
OlderNewer