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 | |
require 'mechanize' | |
require 'twitter' | |
# Twitter OAuth | |
CK = "" | |
CS = "" | |
AT = "" | |
ATS = "" |
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(:ahiruyaki_chain) do | |
on_ahiruyaki_baked_others do | |
Plugin.call :ahiruyaki_bake | |
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 | |
=begin | |
https://github.com/meh/ruby-x11 | |
↑これを使ったウィンドウ表示実験 | |
なおrubygemsから依存死亡で直接インストールができないため、 | |
以下のgemのソースも拾ってビルドする必要がある |
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 -*- | |
# Dependencies | |
# - mikutter_gstreamer | |
require 'soundcloud' | |
CLIENT_ID = 'ac11c1fa19b6bc56a48edde5e40cbc18' | |
Plugin.create :play_teokure_toshi_a do | |
command(:play_teokure_toshi_a, | |
name: 'ておくれとしぁさんの曲', |
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 :yukarin do | |
command(:yukarin, | |
name: 'ゆっかりーんする', | |
condition: lambda{ |opt| true}, | |
visible: false, | |
role: :window) do |opt| | |
Service.primary.post(:message => '\ユッカリーン/') | |
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
package info.shibafu528.collectors; | |
/** | |
* (Kanmusu|Yukari)Collector の ContentProvider を利用するために使いそうな定数 | |
*/ | |
public class IllustCollection { | |
// このActionでIntentを放り投げると、対応アプリからContentProviderのUriを乗せたIntentが返ってくる | |
// Intent#getData()でそれを取得して、後はContentResolverに渡して好きにするといい | |
public static final String ACTION_SUPPORT_TRANSFER = "info.shibafu528.collectors.SUPPORT_TRANSFER"; |
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
# dependency | |
# - openimg | |
Plugin.create :support_esx_img do | |
defimageopener("ImgEsx", /^http:\/\/img\.esx\.asia\/[0-9a-f]+$/) do |url| | |
open(url.gsub(/\.asia\//, ".asia/pic.")) | |
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
import com.nttdocomo.ui.*; | |
import com.nttdocomo.util.*; | |
import java.lang.*; | |
public class PacketCalc extends IApplication { | |
MainCanvas c; | |
public void start() { | |
c = new MainCanvas(this); |
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 -*- | |
require "webkit-gtk2" | |
Plugin.create(:nijiru) do | |
tab(:nijiru, "鳥") do | |
view = WebKitGtk2::WebView.new | |
view.load_uri("http://detteiu.net/nijiru/") | |
nativewidget view.show_all | |
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 :block do | |
UserConfig[:block_update_interval] ||= 15 | |
@blocked_ids = [] | |
@no_retweets_ids = [] | |
@muted_user_ids = [] |