Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / naniittenda_koitu.rb
Created October 16, 2014 14:26
Twitterには何言ってんだこいつボタンが必要
Plugin.create :naniittenda_koitu do
command(:naniittenda_koitu,
name: '何言ってんだこいつ',
condition: lambda{ |opt| opt.messages.size == 1 },
visible: true,
role: :timeline) do |opt|
Service.primary.post message: "何言ってんだこいつ #{opt.messages.first.parma_link}"
end
end
@karno
karno / haru_station_info.py
Last active August 29, 2015 14:07
はるアイコン鯖の路線ごとの駅位置情報など
# "路線コード": {
# "駅コード": (X, Y, Z, "駅名"), ...
# }, ...
stationInfoTable = {
# harutrak A
"HA": {
# 駅共有/相互直通: HBHH
"HH": (-285, 59, 346, "役場前"),
"NV": (-369, 70, 115, "中村"), # 298 blocks
@sasamijp
sasamijp / namechanger.rb
Created November 24, 2013 14:47
前Anonymousで公開してた
# -*- encoding: utf-8 -*-
require 'rubygems'
require 'tweetstream'
require 'twitter'
require './key.rb'
Twitter.configure do |config|
config.consumer_key = Const::CONSUMER_KEY
config.consumer_secret = Const::CONSUMER_SECRET
config.oauth_token = Const::ACCESS_TOKEN