Skip to content

Instantly share code, notes, and snippets.

View takahashim's full-sized avatar

Masayoshi Takahashi takahashim

View GitHub Profile
> com.adobe.epubcheck@0.0.0 test /Users/maki/git/epubcheck-4.0
> node ./node_modules/mocha/bin/mocha --reporter tap --timeout 30s ./node_server/test/checkserver_test.js
Could not find /Users/maki/git/epubcheck-4.0/epubcheck.jar.
Trying local build path /Users/maki/git/epubcheck-4.0/target/epubcheck.jar...
Server is listening on port 7777
1..8
[CheckServer] Tue, 05 Aug 2014 18:40:37 GMT Socket connection: MRuGetL3RJHCGxSyAAAA
[CheckServer] Tue, 05 Aug 2014 18:40:37 GMT request: /
[CheckServer] Tue, 05 Aug 2014 18:40:37 GMT response 200 sent: /
#!/usr/bin/env ruby
#
# delete comments for ripper in parse.y
#
str = File.read(ARGV[0])
str.gsub!(%r|/\*%.*?%\*/|m, '')
print str
@takahashim
takahashim / theme.html
Last active August 29, 2015 14:07
でんでんランディングページをjadeで書き換えてHTMLを生成してみた結果
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<!--
Theme Narrative (Den-Den Landing Page)
version: 1.0.10
by @lost_and_found from Densho Channel
mail: <info@denshochan.com>
Copyright (c) 2014 Densho Channel <http://densho.hatenablog.com/>
license: MIT
$ lualatex tmp-err.tex
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971)
restricted \write18 enabled.
(./tmp-err.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/texmf-local/tex/luatex/luatexja.old/ltjsarticle.cls
Document Class: ltjsarticle 2014/02/07
(/usr/local/texlive/texmf-local/tex/luatex/luatexja.old/luatexja.sty
(/usr/local/texlive/texmf-local/tex/luatex/luatexja.old/ltj-unicode-ccfix.tex
@takahashim
takahashim / migration-120.md
Last active August 29, 2015 14:10
migration-120.pdfを非公式にMarkdown化したものです。

TOPPERS新世代カーネルへのマイグレーションガイド

最終更新: 2010年2月22日(作成中)

このドキュメントは,従来のTOPPERSカーネルや他のμITRON4.0仕様準拠のカーネルから,TOPPERS新世代カーネルに移行するための方法(またはヒント)を説明するものである.

なお,μITRON4.0仕様とTOPPERS新世代カーネル仕様の違いについては,TOPPERS新世代カーネル統合仕様書の中に【μITRON4.0仕様との関係】として記載してある.必要に応じてそちらも参照すること.

# Migration Guide to TOPPERS New Generation Kernels
@takahashim
takahashim / Dockerfile
Last active August 29, 2015 14:12
Dockerfile for 『BareMetalで遊ぶ Raspberry Pi』 http://tatsu-zine.com/books/raspi-bm
FROM debian:wheezy
MAINTAINER takahashim
# mirror
RUN echo "deb http://cdn.debian.net/debian/ wheezy main contrib non-free" > /etc/apt/sources.list.d/mirror.jp.list
RUN echo "deb http://cdn.debian.net/debian/ wheezy-updates main contrib" >> /etc/apt/sources.list.d/mirror.jp.list
RUN /bin/rm /etc/apt/sources.list
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
@takahashim
takahashim / gist:ca5909eb26d921532661
Last active August 29, 2015 14:14
技術解説書向け用字用語(案)
# 原則として開く用語。修正前→修正後
敢えて→あえて
当たって→あたって
余り→あまり
予め→あらかじめ
有り→あり
或いは→あるいは
如何→いかが
幾つか→いくつか
致し→いたし
\documentclass{jsarticle}
\usepackage{listings, jlisting}
\begin{document}
%% OK
\begin{lstlisting}[caption=test1,language={ruby}]
class Foo
end
\end{lstlisting}

#「メタデータが切り拓く音楽の未来」参加メモ

オンキョーエンターテイメントテクノロジー 黒澤 拓さん

  • e-onkyo music
    • 2005/08 オープン
  • スーパーオーディオ専用の配信サイト
@takahashim
takahashim / ebpaj-gude-v113-20141101-20150101.diff
Last active August 29, 2015 14:17
電書協 EPUB 3 制作ガイド ver.1.1.3、2014年11月1日版と2015年1月1日版の差分(PDFからtext抽出してdiff -u -w した結果)
--- 20141101-ebpaj-guide-v113.txt 2015-03-18 17:30:32.000000000 +0900
+++ 20150101-ebpaj-guide-v113.txt 2015-03-23 17:58:28.000000000 +0900
@@ -1,5 +1,5 @@
電書協 EPUB 3 制作ガイド ver.1.1.3
-2014/11/01
+2014/11/01(2015/01/01 更新)
目次
@@ -45,7 +45,6 @@