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 | |
# | |
# delete comments for ripper in parse.y | |
# | |
str = File.read(ARGV[0]) | |
str.gsub!(%r|/\*%.*?%\*/|m, '') | |
print str | |
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
require 'rubycocoa' | |
##### begin from drb/invokemethod.rb | |
module DRb | |
class DRbServer | |
module InvokeMethod18Mixin | |
def block_yield(x) | |
if x.size == 1 && x[0].class == Array | |
x[0] = DRbArray.new(x[0]) | |
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
$ rake test | |
(in /Users/maki/git/tmp_rack/rack) | |
/usr/local/ruby191/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix | |
Skipping Rack::Auth::OpenID tests (ruby-openid 2 is required). `gem install ruby-openid` and try again. | |
Skipping Rack::Adapter::Camping tests (Camping is required). `gem install camping` and try again. | |
Skipping Rack::Handler::Mongrel tests (Mongrel is required). `gem install mongrel` and try again. | |
Skipping Rack::Session::Memcache tests (Memcache is required). `gem install memcache-client` and try again. | |
Skipping Rack::Handler::Thin tests (Thin is required). `gem install thin` and try again. | |
Loaded suite [test/spec_rack_auth_basic.rb, test/spec_rack_auth_digest.rb, test/spec_rack_auth_openid.rb, test/spec_rack_builder.rb, test/spec_rack_camping.rb, test/spec_rack_cascade.rb, test/spec_rack_cgi.rb, test/spec_rack_chunked.rb, test/spec_rack_commonlogger.rb, test/spec_rack_conditionalget.rb, test/spec_rack_content_length.rb, test/spec_rack_content_type.rb, test/spec_rack_d |
This file has been truncated, but you can view the full file.
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> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Twitter Search"> | |
<title>ラノベ - Twitter Search</title> | |
<link href="/stylesheets/search/twitter.css?1250115178" media="screen" rel="stylesheet" type="text/css"> | |
<script src="/javascripts/search/c_all.js?1250115178" type="text/javascript"></script> |
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
<?xml version="1.0"?> | |
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0"> | |
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> | |
<dc:title>samp001</dc:title> | |
<dc:creator opf:role="aut">sample</dc:creator> | |
<dc:language>ja</dc:language> | |
<dc:identifier id="BookID" opf:scheme="URL">http://example.com/epub/sample/sample1.epub</dc:identifier> | |
</metadata> | |
<manifest> | |
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> |
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
# OPF2.0 schema in relaxng compact syntax | |
# generated by RngToRncText.xsl (RngToRnc 1.4) http://www.pantor.com/download.html | |
# | |
default namespace opf = "http://www.idpf.org/2007/opf" | |
namespace dc = "http://purl.org/dc/elements/1.1/" | |
start = OPF20.package-element | |
OPF20.optional-id-attribute = attribute id { xsd: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
# NCX schema in relaxng compact syntax | |
# original: ncx.rng in epubcheck http://code.google.com/p/epubcheck/ | |
# generated by RngToRncText.xsl (RngToRnc 1.4) http://www.pantor.com/download.html | |
# | |
default namespace = "http://www.daisy.org/z3986/2005/ncx/" | |
start = | |
element ncx | |
{ |
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
# epub sample API | |
# | |
epub = EeePub.generate do | |
title "sample" | |
creaetor "jugyo", :role => 'aut' | |
publisher 'jugyo.org' | |
date '2010-05-07', :event=> "publication" | |
uid 'http://example.com/book/foo', :scheme => "URL" | |
item 'foo.html', :label => '1. foo' |
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
default namespace="http://tc100.iec.ch/2005/ebook/generic" | |
start = ebook-g | |
ebook-g = ebook-g-core | |
| external "bbebxylog.rnc" | |
ebook-g-core = meta-g & body-g | |
meta-g = external "meta-g.rnc" | |
body-g = element body-g { body } | |
body = | |
title*, | |
foreword*, |
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
Epubcheck Version 1.0.5 | |
ERROR: 20_ipad.epub: length of first filename in archive must be 8, but was 9 | |
ERROR: 20_ipad.epub/OEBPS/Text/cover.xhtml(18): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/pr.xhtml(26): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/Section0002.xhtml(32): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/Section0003.xhtml(32): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/Section0004.xhtml(32): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/Section0006.xhtml(32): required attributes missing | |
ERROR: 20_ipad.epub/OEBPS/Text/Section0008.xhtml(32): required attributes missing |
OlderNewer