Skip to content

Instantly share code, notes, and snippets.

@hizuru
hizuru / egosearch.rb
Last active December 12, 2015 02:38
timeline上をegosearchしてDMでURLとscreennameを送るよ
# -*- coding: utf-8 -*-
Plugin.create :egosearch do
on_appear do |ms|
ms.each do |m|
if m.message.to_s !~ /@#{Service.primary.user}/ and m.user != Service.primary.user
if m.message.to_s =~ /ひづる/u
Service.primary.post(:message => "D #{Service.primary.user} http://twitter.com/#{m.message.user.idname}/status/#{m.message[:id]} @#{m.message.user.idname}")
end
end
#-*- coding: utf-8 -*-
Plugin.create :ping_pong do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /^@#{Service.primary.user.to_s} ping/
m.favorite
Service.primary.post :message => "@#{m.user.to_s} pong", :replyto => m.message
end
end
end
#-*- coding: utf-8 -*-
Plugin.create :delivery_pizza do
command(:delivery_pizza,
name: 'ピザ配達しに来い',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
opt.messages.each { |m|
Service.primary.post(:message => "@#{m.user.to_s}な〜にが via #{m[:source]} だ早く私の家にピザ配達しに来い〄", :replyto => m)
# -*- coding: utf-8 -*-
Plugin.create :jis_empty_reply do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /〄/
Service.primary.post(:message => "#{"@" + m.user.idname}", :replyto => m)
end
end
end
end
@hizuru
hizuru / copy_tweet_source.rb
Created October 22, 2012 16:21
mikutterでviaをcopyするplugin―copy_tweet_source.rbのmikutter 0.1用
# -*- coding: utf-8 -*-
# ツイートのviaをコピーするためのmikutterコマンドを追加
=begin
[導入方法]―plugin以下にcopy_tweet_sourceフォルダを作成し、その中に入れる。
[使い方]―右クリックから"ツイートのviaをコピー"を選択するだけ!
     あとはfav.rbやfilter.rbのソース指定の部分へペーストするのみ!
=end
Module.new do
@hizuru
hizuru / rofi_kaomoji_alpha1
Created October 22, 2012 14:12 — forked from lindwurm/rofi_kaomoji_alpha1
rofi顔文字辞書(alpha)
お (*・ρ・)ジュルリ 名詞
お (*>ヮ<)(>ヮ<*)ネー 名詞
お ヾ(๑╹◡╹)ノ"♡ 名詞
お (╹⌓╹ ) 名詞
お (/ω\) 名詞
お (ヾノ・ω・`)ナイナイ 名詞
お ☆(ゝω・)v 名詞
お ヾ(>ヮ<*)ナデナデ 名詞
お (*/ω\*) 名詞
お (=△=`歩) 名詞
@hizuru
hizuru / gist:3931484
Created October 22, 2012 13:22
Twitter公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@hizuru
hizuru / PKGBUILD
Created August 14, 2012 05:24
Mozc build-error(Arch Linux)
# Maintainer: ponsfoot <cabezon dot hashimoto at gmail dot com>
## If you will be using mozc.el on Emacs, uncomment below.
#_emacs_mozc="yes"
## Mozc compile option
_bldtype=Release
#_bldtype=Debug
_zipcoderel=201204