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 net.firstspring.javatter.plugin; | |
import java.awt.Image; | |
import java.io.File; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import javax.imageio.ImageIO; | |
import javax.swing.ImageIcon; |
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 java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.List; | |
public class Util { | |
public static <T, E> List<E> map(MapFunction<T, E> f, Iterable<T> i) { | |
ArrayList<E> l = new ArrayList<>(); | |
Iterator<T> it = i.iterator(); |
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
using OAuth; | |
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Net; | |
using System.Web; | |
namespace Test | |
{ | |
class Twitter |
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 :enkunkun do | |
on_mention do |s,ms| | |
ms.each do |m| | |
if Time.now - m.message[:created] < 5 then | |
if m.message.to_s.split[1] == "えんえん" then | |
Service.primary.post(:message => "@#{m.user.idname} くんくん", :replyto => m.message) | |
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
# -*- coding: utf-8 -*- | |
Plugin.create(:fav_rt_reply) do | |
command(:fav_rt_reply, | |
name: 'ふぁぼってRTして空リプ', | |
condition: Plugin::Command[:HasOneMessage], | |
visible: true, | |
role: :timeline) do |opt| | |
message = opt.messages.first | |
message.favorite(true) |
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 :icon_change do | |
require 'base64' | |
command(:icon_change, | |
name: 'アイコン変更', | |
condition: lambda{ |opt| true}, | |
visible: false, | |
role: :window) do |opt| | |
dialog = Gtk::FileChooserDialog.new("Open Icon", | |
nil, |
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 :unfav do | |
on_unfavorite do |s,u,ms| | |
s.post(:message => "@#{u.idname} ヾ(@⌒ー⌒@)ノあんふぁぼふぁぼ~") | |
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 :java_beam do | |
command(:java_beam, | |
name: 'Javaビーム', | |
condition: lambda{ |opt| true}, | |
visible: false, | |
role: :window) do |opt| | |
Service.primary.post(:message => 'Javaビームビビビビビビビwwwwwwwwww') | |
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 :miku_beam do | |
command(:miku_beam, | |
name: 'みくビーム', | |
condition: lambda{ |opt| true}, | |
visible: false, | |
role: :window) do |opt| | |
Service.primary.post(:message => 'みくビーム!みくみくみくみくwwwwwwww') | |
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("System.Text"); | |
import("System"); | |
function initialize (version) | |
return true, "改名プラグイン", 100, "firstspring1845"; | |
end | |
function OnRegistTweetBoxMenu ( hook ) | |
hook.text = "改名"; | |
hook.tooltipText = "ツイート欄に入力された名前に改名します"; |
OlderNewer