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
# Windowsのアウトラインプロセッサ "あうとら"から | |
# androidのアウトラインプロセッサ "Outliner"へのファイル変換 | |
# | |
# あうとらでは、「階層付きテキスト」としてエクスポート。 | |
# Outlinerでは、「bonsai CSV (UTF-8)」としてインポート。 | |
require "csv" | |
def write_page(w, l, t, b) | |
line = [t, 0, 1, (l - 1), 0, 2, 0, "", "", "", "", "Unfiled", "", "", b] |
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
# http://www.diigo.com/tools/exportからRSS Formatで取得したファイルを | |
# import.txtとして保存して実行 | |
# 量が多いと、Rate Limit Exceededになるので注意 | |
require "cgi" | |
require "net/https" | |
ril = File.read("import.txt") | |
unread = ril.scan(%r{<link>(.*?)</link>}m) |
NewerOlder