Skip to content

Instantly share code, notes, and snippets.

View shunito's full-sized avatar

Shunsuke Ito shunito

View GitHub Profile
@shunito
shunito / table-best-practice_2008.html
Created June 24, 2011 12:14
Table HTML&CSS ベストプラクティス 2008年版
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.4.1/build/reset/reset-min.css" />
<title>Table HTML&amp;CSS ベストプラクティス 2008年版</title>
<style type="text/css">
<!--
@shunito
shunito / page01.html
Created November 19, 2012 08:57
EPUB Event Logger
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="ja" class="hltr">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="../style/book-style.css" />
<title>Event Logger</title>
<script type="text/javascript">
<![CDATA[
@shunito
shunito / footnotes.html
Created December 13, 2012 10:58
EPUBのfootnotesからのリンクがうまく動かないテスト
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Footnotes</title>
</head>
<body>
<div>
@shunito
shunito / Messages.java
Created May 24, 2013 01:54
EpubCheckのメッセージ指定ファイル /src/main/java/com/adobe/epubcheck/util/Messages.java
/*
* Copyright (c) 2011 Adobe Systems Incorporated
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
@shunito
shunito / BeBe_sample.html
Last active December 26, 2015 16:09
BeBeはBiB/i の薄いラッパーです。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>BeBe Sample</title>
<style>
h1 { font-size: 120%; }
</style>
<script src="js/jquery-1.9.1.js"></script>
<script>
@shunito
shunito / oreilly.js
Last active August 29, 2015 14:04
BiB/i プリセットでgoogle-code-prettify追加
P = {
"name" : "BiB/i prettify", // "Name of this preset. As you like."
"description" : "O'Reilly google-code-prettify", // "Description of this preset. As you like."
"book-display-mode" : "all", // "all" or "each"
"page-progression-direction" : "ltr", // "ltr" or "rtl" ("ltr" is recommended.)
"spread-layout-axis" : "auto", // "auto" or "vertical" or "horizontal"
"page-size-format" : "auto", // "portrait" or "landscape" or "window" or "auto" !!!! changed from "spread-orientation" !!!!
@shunito
shunito / braille.js
Last active August 29, 2015 14:10
分かち書きされたよみがなをブライユ式点字(Unicode)に変換
// Kana to Braille
// Copyright 2014 Shunsuke Ito
// 分かち書きされたよみがなをブライユ式点字(Unicode)に変換
// http://ja.wikipedia.org/wiki/%E7%82%B9%E5%AD%97
//
// Licensed under the Apache License, Version 2.0 (the "License");
// http://www.apache.org/licenses/LICENSE-2.0
(function(definition) {
// CommonJS
@shunito
shunito / kakezan.html
Created December 7, 2014 04:30
かけざんチャレンジ
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>かけざんチャレンジ</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css">
<style>
#header{ margin:0; padding: 10px 20px; background-color: #EEE; }
#main {margin:0; padding: 2em; display:none;}
#input {margin:0; padding: 2em;}
@shunito
shunito / boustrophedon.html
Last active August 29, 2015 14:13
牛耕式
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>牛耕式文章</title>
<link rel="stylesheet" href="asset/normalize.css">
<script src="asset/jquery-1.11.1.min.js" type="text/javascript"></script>
<style type="text/css">
.box { width: 40%; border: 1px solid #CCC; margin:2em; padding:1em; line-height:1.4 }
@shunito
shunito / epubcfi_path.html
Last active August 29, 2015 14:14
選択したNodeからEPUBCFIのPath文字列作るテスト
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Node to EPUBCFI path</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.2/normalize.min.css">
<script src="https://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<style type="text/css">
</style>