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
<?php | |
/* | |
* J-STAGE API plugin | |
*/ | |
define('PLUGIN_JSTAGE_USAGE', '#jstage(issn=xxxx-xxxx)'); | |
define('JSTAGE_API_BASEURL', 'http://api.jstage.jst.go.jp/searchapi/do'); | |
define('DEFAULT_HEADING_LEVEL', 2); |
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 | |
# $Id$ | |
require "time" | |
require "uri" | |
require "csv" | |
dupcount = {} | |
timecount = {} | |
pdfcount = Hash.new( 0 ) |
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 | |
# -*- coding: utf-8 -*- | |
# $Id$ | |
require "kconv" | |
require "date" | |
# require "jcode" | |
class UnknownCode < Exception | |
end |
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
<html> | |
<head> | |
<title>Test for Google Book Search API: book cover</title> | |
<script type="text/javascript"> | |
function search_google_books() { | |
var script = document.createElement('script'); | |
var isbn = document.forms[0].isbn; | |
if ( isbn && isbn.value != '' ) { | |
//alert( isbn.value ); | |
document.getElementById('thumbnail').innerHTML = '<img src="./loading.gif" />'; |
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 | |
# -*- coding: utf-8 -*- | |
require "uri" | |
require "open-uri" | |
require "rexml/document" | |
require "rexml/xpath" | |
baseurl = { | |
:NDL => "http://iss.ndl.go.jp/api/opensearch", |
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 "net/imap" | |
require "yaml" | |
CONFIG = File.join( ENV["HOME"], ".check-imap-quota.yml" ) | |
if $0 == __FILE__ | |
config = YAML.load( open( CONFIG ){|i| i.read } ) | |
config[ "port" ] = config[ "port" ].to_i |
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 "nkf" | |
ARGF.each do |line| | |
case line | |
when /^data\s+(\d+)$/ | |
log_msg = ARGF.read( $1.to_i ) | |
log_msg = NKF.nkf( "-wm0", log_msg ) | |
puts "data #{ log_msg.size }" |
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
# 管理番号 ユーザID 氏名(姓) 氏名(名) 削除フラグ 種別 削除列 削除列 寄与区分 名称・和文 名称・英文 状態 出願番号 出願番号・英文 出願年 出願月 出願日 公開番号 公開番号・英文 公開年 公開月 公開日 登録番号 登録番号・英文 登録年 登録月 登録日 実績集計年度 出願人名一覧 発明者名一覧 概要 国内外別 出願国・国名 削除列 実用化・企業名 実用化・内容 公開対象 ReaD用選択 変更ユーザID 管理者更新日 本人更新日 更新日 データ登録日 削除列 削除列 国名コード | |
prefix_done = {} | |
suffix_done = {} | |
new = [] | |
duplicates = [] | |
dup_ids = {} | |
prefix_size = 10 |
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 | |
# -*- coding: cp932 -*- | |
require "csv" | |
format = :faculty | |
if ARGV and ARGV[0] == "-page" | |
format = :page | |
ARGV.shift | |
end |
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
source "https://rubygems.org" | |
gem "roo" |
OlderNewer