Skip to content

Instantly share code, notes, and snippets.

# coding: utf-8
require 'mechanize'
require 'twitter'
# Twitter OAuth
CK = ""
CS = ""
AT = ""
ATS = ""
@shibafu528
shibafu528 / ahiruyaki_chain.rb
Created December 14, 2014 09:13
チェインあひる焼き
# -*- coding: utf-8 -*-
Plugin.create(:ahiruyaki_chain) do
on_ahiruyaki_baked_others do
Plugin.call :ahiruyaki_bake
end
end
@shibafu528
shibafu528 / create_window.rb
Created December 13, 2014 13:26
地獄かよ
# coding: utf-8
=begin
https://github.com/meh/ruby-x11
↑これを使ったウィンドウ表示実験
なおrubygemsから依存死亡で直接インストールができないため、
以下のgemのソースも拾ってビルドする必要がある
# -*- coding: utf-8 -*-
# Dependencies
# - mikutter_gstreamer
require 'soundcloud'
CLIENT_ID = 'ac11c1fa19b6bc56a48edde5e40cbc18'
Plugin.create :play_teokure_toshi_a do
command(:play_teokure_toshi_a,
name: 'ておくれとしぁさんの曲',
@shibafu528
shibafu528 / yukarin.rb
Created November 29, 2014 14:29
java_beam.rb のコピペ
# -*- 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
@shibafu528
shibafu528 / IllustCollection.java
Created November 1, 2014 10:10
Kanmusu/Yukari Collector v1.7.1に実装されたContentProvider用の外部公開アレ
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";
@shibafu528
shibafu528 / support_esx_img.rb
Last active August 29, 2015 14:06
JCが作った画像投稿サービスに対応するmikutter plugin
# 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
@shibafu528
shibafu528 / PacketCalc.java
Created September 4, 2014 10:44
昔作ったiアプリですね…ああ何もかも懐かしい
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);
@shibafu528
shibafu528 / nijiru.rb
Last active August 29, 2015 14:05
forked from toshia/mikutter-kancolle https://github.com/toshia/mikutter-kancolle
# -*- 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
@shibafu528
shibafu528 / block.rb
Last active May 3, 2019 09:20 — forked from firstspring1845/block.rb
ふあすぷ氏のブロックコマンドPluginに、フィルタリングを後付けしてみた
# -*- coding: utf-8 -*-
Plugin.create :block do
UserConfig[:block_update_interval] ||= 15
@blocked_ids = []
@no_retweets_ids = []
@muted_user_ids = []