Skip to content

Instantly share code, notes, and snippets.

@twittoru
Created September 25, 2012 09:37
Show Gist options
  • Save twittoru/3780892 to your computer and use it in GitHub Desktop.
Save twittoru/3780892 to your computer and use it in GitHub Desktop.
まつもとゆきひろ『プログラミング言語Ruby』を大いに語る を mobi に
cat job | xargs -L1 kindlenap.pl -o ./
# kindlenap get from motemen/Kindlenap
for i in *.html
do
sed -i"" -e "s/<body>/<body><h1>${i%.*}<\/h1>/" $i
sed -i"" -e "s/<\/body>/<mbp:pagebreake \/><\/body>/" $i
done
kindlegen matz-talks-the-ruby-book.opf
--author "O'Reilly Japan" --title "第1回 「ヤギ」と「ハチドリ」のあいだ(前編)" http://www.oreilly.co.jp/community/blog/2009/03/between-goat-and-hummingbird.html
--author "O'Reilly Japan" --title "第2回 「ヤギ」と「ハチドリ」のあいだ(後編)" http://www.oreilly.co.jp/community/blog/2009/03/between-goat-and-hummingbird-2.html
--author "O'Reilly Japan" --title "第3回 正体不明の人気者" http://www.oreilly.co.jp/community/blog/2009/04/unidentified-popular-figure.html
--author "O'Reilly Japan" --title "第4回 上級者にも楽しめる入門編 1から4章" http://www.oreilly.co.jp/community/blog/2009/04/matz-talks-the-ruby-book-ch01-04.html
--author "O'Reilly Japan" --title "第5回 ブレーキが外れた後半戦 5から10章" http://www.oreilly.co.jp/community/blog/2009/04/take-off-the-break-ch05-10.html
--author "O'Reilly Japan" --title "第6回 Ruby 1.9に起きた変化" http://www.oreilly.co.jp/community/blog/2009/05/changes-on-ruby-1-9.html
--author "O'Reilly Japan" --title "第7回 「M17N」が開く可能性" http://www.oreilly.co.jp/community/blog/2009/05/m17n-open-the-door-into.html
--author "O'Reilly Japan" --title "第8回(最終回) lambda、YARV、そしてRuby 2.0へ" http://www.oreilly.co.jp/community/blog/2009/06/8-lambda-yarv-ruby-20.html
<?xml version="1.0" encoding="utf-8"?>
<package unique-identifier="uid">
<metadata>
<dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core"
xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Title>まつもとゆきひろ『プログラミング言語Ruby』を大いに語る</dc:Title>
<dc:Language>ja</dc:Language>
<dc:Creator>O'Reilly Japan</dc:Creator>
<dc:Description>この記事は東京、大阪で行われた『プログラミング言語Ruby』刊行記念トークイベントの内容をもとに構成されたものです。このトークイベントの動画はニコニコ動画で公開されていますので、よりリアルな雰囲気を味わいたい方は、そちらをご覧ください。</dc:Description>
<dc:Date>03/23/2009</dc:Date>
</dc-metadata>
<x-metadata>
<output encoding="utf-8" content-type="text/x-oeb1-document">
</output>
<EmbeddedCover></EmbeddedCover>
<SRP Currency="USD">0.00</SRP>
</x-metadata>
</metadata>
<manifest>
<item id="item1" media-type="text/x-oeb1-document" href="第1回 「ヤギ」と「ハチドリ」のあいだ(前編).html"></item>
<item id="item2" media-type="text/x-oeb1-document" href="第2回 「ヤギ」と「ハチドリ」のあいだ(後編).html"></item>
<item id="item3" media-type="text/x-oeb1-document" href="第3回 正体不明の人気者.html"></item>
<item id="item4" media-type="text/x-oeb1-document" href="第4回 上級者にも楽しめる入門編 1から4章.html"></item>
<item id="item5" media-type="text/x-oeb1-document" href="第5回 ブレーキが外れた後半戦 5から10章.html"></item>
<item id="item6" media-type="text/x-oeb1-document" href="第6回 Ruby 1.9に起きた変化.html"></item>
<item id="item7" media-type="text/x-oeb1-document" href="第7回 「M17N」が開く可能性.html"></item>
<item id="item8" media-type="text/x-oeb1-document" href="第8回(最終回) lambda、YARV、そしてRuby 2.0へ.html"></item>
<item id="toc" media-type="application/x-dtbncx+xml" href="toc.ncx"></item>
</manifest>
<spine toc="toc">
<itemref idref="item1" />
<itemref idref="item2" />
<itemref idref="item3" />
<itemref idref="item4" />
<itemref idref="item5" />
<itemref idref="item6" />
<itemref idref="item7" />
<itemref idref="item8" />
</spine>
<tours></tours>
<guide>
<reference type="chpt.1" title="Startup Page" href="smalltalk.html%23Introduction"></reference>
<reference type="chpt.1" title="第1回 「ヤギ」と「ハチドリ」のあいだ(前編)" href="第1回 「ヤギ」と「ハチドリ」のあいだ(前編).html"></reference>
<reference type="chpt.2" title="第2回 「ヤギ」と「ハチドリ」のあいだ(後編)" href="第2回 「ヤギ」と「ハチドリ」のあいだ(後編).html"></reference>
<reference type="chpt.3" title="第3回 正体不明の人気者" href="第3回 正体不明の人気者.html"></reference>
<reference type="chpt.4" title="第4回 上級者にも楽しめる入門編 1から4章" href="第4回 上級者にも楽しめる入門編 1から4章.html"></reference>
<reference type="chpt.5" title="第5回 ブレーキが外れた後半戦 5から10章" href="第5回 ブレーキが外れた後半戦 5から10章.html"></reference>
<reference type="chpt.6" title="第6回 Ruby 1.9に起きた変化" href="第6回 Ruby 1.9に起きた変化.html"></reference>
<reference type="chpt.7" title="第7回 「M17N」が開く可能性" href="第7回 「M17N」が開く可能性.html"></reference>
<reference type="chpt.8" title="第8回(最終回) lambda、YARV、そしてRuby 2.0へ" href="第8回(最終回) lambda、YARV、そしてRuby 2.0へ.html"></reference>
</guide>
</package>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<docTitle><text>まつもとゆきひろ『プログラミング言語Ruby』を大いに語る</text></docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel><text>第1回 「ヤギ」と「ハチドリ」のあいだ(前編)</text></navLabel><content src="第1回 「ヤギ」と「ハチドリ」のあいだ(前編).html"/>
</navPoint>
<navPoint id="navPoint-2" playOrder="2">
<navLabel><text>第2回 「ヤギ」と「ハチドリ」のあいだ(後編)</text></navLabel><content src="第2回 「ヤギ」と「ハチドリ」のあいだ(後編).html"/>
</navPoint>
<navPoint id="navPoint-3" playOrder="3">
<navLabel><text>第3回 正体不明の人気者</text></navLabel><content src="第3回 正体不明の人気者.html"/>
</navPoint>
<navPoint id="navPoint-4" playOrder="4">
<navLabel><text>第4回 上級者にも楽しめる入門編 1から4章</text></navLabel><content src="第4回 上級者にも楽しめる入門編 1から4章.html"/>
</navPoint>
<navPoint id="navPoint-5" playOrder="5">
<navLabel><text>第5回 ブレーキが外れた後半戦 5から10章</text></navLabel><content src="第5回 ブレーキが外れた後半戦 5から10章.html"/>
</navPoint>
<navPoint id="navPoint-6" playOrder="6">
<navLabel><text>第6回 Ruby 1.9に起きた変化</text></navLabel><content src="第6回 Ruby 1.9に起きた変化.html"/>
</navPoint>
<navPoint id="navPoint-7" playOrder="7">
<navLabel><text>第7回 「M17N」が開く可能性</text></navLabel><content src="第7回 「M17N」が開く可能性.html"/>
</navPoint>
<navPoint id="navPoint-8" playOrder="8">
<navLabel><text>第8回(最終回) lambda、YARV、そしてRuby 2.0へ</text></navLabel><content src="第8回(最終回) lambda、YARV、そしてRuby 2.0へ.html"/>
</navPoint>
</navMap>
</ncx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment