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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'twitter' | |
require 'cgi' | |
username = '' | |
password = '' | |
def create_client(username, password) |
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
# popit.rb:plugin embedding POP on POPit(http://pop-it.jp) | |
# | |
# usage: | |
# popit(pop_id) - pop_id: The id of the POP on POPit (e.g. 1989 http://pop-it.jp/item/amazon/1989/pop/2000) | |
# | |
# Copyright (c) KAYA Satoshi <http://kayakaya.net/> | |
# You can redistributed it and/or modify if under GPL2. | |
# | |
def popit(pop_id, size = "large") | |
return unless pop_id |
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
# friendfeed_badge.rb: show the FriendFeed profile picture plugin for tDiary | |
# | |
# Copyright (C) 2009 KAYA Satoshi <http://kayakaya.net/> | |
# Distributed under GPLv2. | |
# | |
require 'net/http' | |
Net::HTTP.version_1_2 | |
def friendfeed_picture(feed_id) |
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
Index: core/misc/lib/hikidoc.rb | |
=================================================================== | |
--- core/misc/lib/hikidoc.rb (revision 3557) | |
+++ core/misc/lib/hikidoc.rb (working copy) | |
@@ -438,7 +438,7 @@ | |
def compile_bracket_link(link) | |
if m = /\A(?>[^|\\]+|\\.)*\|/.match(link) | |
- title = m[0].chop | |
+ title = m[0].chop.gsub( %r[\\\|], '|' ) |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'rubytter' | |
require 'yaml' | |
require 'pit' | |
require 'pp' | |
def toCsv(friends) | |
open('friends.csv', 'w') do |f| |
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
@charset "utf-8"; | |
/* | |
Title: blue-on-pearl | |
Author: KAYA Satoshi | |
Access: <kayakaya@kayakaya.net> | |
License: GPL | |
Comment: 淡い黄色の背景に青文字を基調としたテーマ。日記本文は白地に黒。 | |
vlayusuke(http://vlayusuke.com)のv-greengrassを元に作成しました。 |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'rubytter' | |
require 'yaml' | |
require 'pit' | |
require 'pp' | |
def to_yaml(users, filename) | |
users.to_yaml |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'rubytter' | |
require 'yaml' | |
require 'pit' | |
require 'pp' | |
def to_csv(users) | |
open('friends.csv', 'w') do |f| |
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
# | |
# yahoo_map.rb - embeded Yahoo! Japan Map for tDiary | |
# | |
# Copyright (C) 2010, KAYA Satoshi <kayakaya@kayakaya.net> | |
# You can redistribute it and/or modify it under GPL2. | |
# | |
add_header_proc do | |
init_ymap | |
if @conf['yahoo_jp.appid'] and @conf['yahoo_jp.appid'].size > 0 |
OlderNewer