This file contains 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 -*- | |
Plugin.create :anonymous do | |
UserConfig[:anonymous_all_tweets] ||= false | |
filter_show_filter do |msgs| | |
if UserConfig[:anonymous_all_tweets] | |
msgs.map!{|m| Message.new(:message => m[:message], :system => true) } | |
end | |
[msgs] |
This file contains 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 -*- | |
Plugin.create :show_mcdonalds_coupon do | |
command(:show_mcdonalds_coupon, | |
name: 'マクドナルドのクーポンを表示', | |
condition: lambda{ |opt| true }, | |
icon: 'http://www.mcdonalds.co.jp/common/graphic_files/global_navigation/image_01.gif', | |
visible: true, | |
role: :window) do |opt| |
This file contains 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 -*- | |
Plugin.create :tategaki do | |
def to_tategaki(str) | |
result = "" | |
halfs = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a | |
fulls = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a | |
half_symbols = ' !""#$%&''\'''\'()*+,-./:;<=>?@[\\]^_`{|}~'.split('') |
This file contains 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 -*- | |
Plugin.create :post_as_mikutter_command do | |
command(:post_as_mikutter_command, | |
name: 'mikutterコマンドとして実行', | |
condition: lambda{ |opt| Plugin.create(:gtk).widgetof(opt.widget).widget_post.buffer.text.size > 0 }, | |
visible: true, | |
role: :postbox) do |opt| | |
begin |
This file contains 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 -*- | |
Plugin.create :credit do | |
command(:credit, | |
name: '単位認定', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| | |
opt.messages.each { |m| | |
This file contains 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 -*- | |
Plugin.create :degree_certificate do | |
command(:degree_certificate, | |
name: '卒業証明書を発行', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| | |
opt.messages.each { |m| |
This file contains 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 -*- | |
Plugin.create :aieeeee do | |
filter_gui_postbox_post do |gui_postbox| | |
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = "アイエエエエエ!#{' ' * rand(30)}" | |
[gui_postbox] | |
end | |
end |
This file contains 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 -*- | |
Plugin.create(:too_late) do | |
command(:too_late, | |
name: 'Too late', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| | |
opt.messages.each { |m| | |
Service.primary.post(:message => "@#{m.user.idname} Too late.", :replyto => m) |
This file contains 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
Plugin.create :fav_tomossan do | |
on_appear do |ms| | |
ms.each do |m| | |
if m.user.to_s == "tomossan" | |
m.favorite | |
end | |
end | |
end | |
end |
This file contains 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
--- mikutter.rb.orig 2013-02-09 02:24:16.296910542 +0900 | |
+++ mikutter.rb 2013-02-09 02:19:53.325923513 +0900 | |
@@ -12,6 +12,10 @@ | |
=end | |
+`find ~/.gem -type d -name 'lib' | sort`.split("\n").each do |dir| | |
+ $:.unshift dir | |
+end | |
+ |