Skip to content

Instantly share code, notes, and snippets.

#-*- 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 / 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