Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
@shigeya
shigeya / minimum_simple_query.rb
Created February 26, 2014 08:42
Minimum code for EPCIS repository simple query interface
#!/usr/bin/env ruby
require 'nokogiri'
require 'optparse'
require 'net/http'
require 'uri'
@opts = { query_url: "http://127.0.0.1:3000/epcis/query",
query_type: "SimpleEventQuery" }
ARGV.options do |o|
@shigeya
shigeya / minimum_capture.rb
Created February 26, 2014 08:40
minimum code for EPCIS repository capture interface
#!/usr/bin/env ruby
require 'nokogiri'
require 'optparse'
require 'net/http'
require 'uri'
opts = {
capture_url: "http://127.0.0.1:3000/epcis/capture",
verbose: false,
timeout: 300,
#!/usr/pkg/bin/ruby
#puts 'require "fileinto";'
if ARGV[0] =~ /^\+(.*)/
folder = $1
ARGV.shift
else
folder = "INBOX.01.000Informative";
end
#!/usr/bin/env ruby
# Script to generate sieve script from triplet of folder, header, match
#
#puts 'require "fileinto";'
doif = "elsif"
ARGF.each {|p|
p.chomp!
p.sub!(/^\s+/, "")
# $Id$
# News
INBOX.News.WSJ from [email protected]
INBOX.News.WashingtonPost from @letters.washingtonpost.com
INBOX.News.WashingtonPost from @email.washingtonpost.com
INBOX.News.NYTimes from [email protected]
INBOX.News.LATimes from @email.latimes.com
INBOX.News.SpaceDaily from @spacedaily.com
【auからのお知らせ(受信無料)】ようこそアメリカ・カナダ・カリブ諸国へ。アメリカ・カナダ・カリブ諸国ではメールやインターネットが最大でも2,980円/日(日本時間の0-24時)の定額で安心してご利用いただけます。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国から日本への発信は140円/分です。SMSの送信は100円/通、受信は無料です。海外から日本に電話をかける際は、「+81」に続き、頭の0を除いた電話番号を入力して下さい。(+は0を長押し等)(例)080-XXXX-XXXXにかけたい場合⇒+81-80-XXXX-XXXX ご旅行中お気をつけてお過ごし下さい。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国での通話・通信料金はここからチェック http://www.au.kddi.com/r/sms-lusa/ ※リンク先ページの閲覧にはデータ通信料金が発生します
- Y. Takabe, K. Matsumoto, M. Yamagiwa, and M. Uehara, “Proposed Sensor Network for Living Environments Using Cloud Computing,” presented at the 2012 15th International Conference on Network-Based Information Systems (NBiS), pp. 838–843.
- K. Matsumoto, M. Yamagiwa, M. Uehara, and H. Mori, “Proposal of Sensor Data Gathering with Single Board Computer,” presented at the 2013 Workshops of International Conference on Advanced Information Networking and Applications (WAINA), pp. 162–167.
- M. Ikebe and K. Yoshida, “An Integrated Distributed Log Management System with Metadata for Network Operation,” presented at the 2013 7th International Conference on Complex, Intelligent, and Software Intensive Systems (CISIS), pp. 747–750.
@shigeya
shigeya / pdf_encoding_fix.sty
Created September 27, 2013 09:22
Hack to correct encoding of PDF section browser titles
\ifluatex\else\ifx\kanjiskip\undefined\else
\ifx\ucs\undefined
\usepackage{atbegshi}
\ifnum 42146=\euc"A4A2
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
\else
\AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
\fi\fi\fi\fi
# Ruby 1.8's File.read don't support option.
# read_with_options ignore optional parameter for 1.8,
# and act as alias for 1.9 or later.
class File
if RUBY_VERSION < '1.9'
def self.read_with_options(path, opts = {})
self.read(path)
end
else
def self.read_with_options(path, opts = {})
@shigeya
shigeya / ksoul.sty
Created May 23, 2013 10:23
TeX macro \kst \kul and \khl which make kanji-characters breakable inside \st \ul and \hl of soul package. Incomplete, but works well.
\ProvidesPackage{ksoul}[2010/12/24 Kanji Based soul]
\RequirePackage{soul}[2003/11/17]
% for \st
\def\kst#1{%
\@kst#1\end}
\def\@kst#1{%
\ifx#1\end \let\next=\relax \else
\st{#1}%
\let\next\@kst