Skip to content

Instantly share code, notes, and snippets.

View shunito's full-sized avatar

Shunsuke Ito shunito

View GitHub Profile
<!doctype html>
<html lang="jp">
<head>
<meta charset="utf-8">
<title>Fireworks Niagara</title>
<meta name="description" content="Fireworks Niagara">
<meta name="author" content="Shunsuke Ito">
<style>
@shunito
shunito / fireworks.js
Created June 24, 2021 11:58
ナイアガラ
(function(win) {
Math.Radian = Math.PI * 2;
var quantity = 1000,
speed = 4,
top = 30,
left = 10,
canvas = document.getElementById("hanabi"),
@shunito
shunito / braille.txt
Created September 4, 2018 03:39
BES形式のUnicode変換結果
⠇⠂⠟⠴ ⠐⠭⠛⠃⠙ ⠼⠃⠚⠁⠓⠏⠴ ⠼⠛⠐⠡⠝⠐⠪⠒
        ⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒
  ⠳⠴⠈⠍⠒ ⠞⠈⠺ ⠊⠳⠑⠻⠶⠼⠙⠊⠕⠃⠞⠙
    ⠼⠁⠑⠊⠱⠝⠶ ⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂ ⠼⠁
⠺⠒⠣ ⠶⠼⠃⠶  ⠟⠝⠐⠡⠩ ⠶⠼⠃⠶  ⠛⠣⠳ ⠶⠼⠉⠶  
⠈⠱⠡⠃ ⠡⠐⠡⠩ ⠶⠼⠙⠶  ⠳⠐⠻⠴ ⠡⠐⠡⠩ ⠶⠼⠊⠶  
⠐⠣⠘⠹⠝ ⠶⠼⠁⠚⠶  ⠐⠫⠃⠘⠹⠝ ⠶⠼⠁⠁⠶  
⠐⠫⠴⠐⠪ ⠶⠼⠁⠃⠶  ⠐⠭⠴⠐⠡⠩ ⠶⠼⠁⠉⠶  
⠐⠳⠐⠞⠒ ⠞⠈⠺ ⠶⠼⠁⠊⠶
  ⠞⠈⠺⠡⠴⠡⠑⠎ ⠊⠳⠑⠻ ⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂ ⠼⠃⠉
@shunito
shunito / index.js
Created September 3, 2018 12:15
BESファイルのUnicode変換試作
// BESファイルのUnicode変換試作(Node版)
// File API使ってブラウザだけで変換できないかなぁ。
// 参考
// brlat様作成の「.bes形式の点字データをUnicode点字のmarkdownファイルに変換」
// https://github.com/brlat/bes-to-markdown
const fs = require('fs');
const path = require('path');
@shunito
shunito / tts.js
Created July 23, 2017 23:33
BiB/i Extension: TTS
/*!
*
* # BiB/i Extension: OverReflow
*
* - "Overlays Reflowable Content Layers on Pre-Paginated Book"
* - Copyright (c) Satoru MATSUSHIMA - http://bibi.epub.link/ or https://github.com/satorumurmur/bibi
* - Licensed under the MIT license. - http://www.opensource.org/licenses/mit-license.php
*/
Bibi.x({
@shunito
shunito / BiBi-event-dispatch_grep.txt
Created June 10, 2017 08:51
BiB/i イベント発火タイミング
E.dispatch("bibi:says-welcome");
E.dispatch("bibi:says-byebye");
E.dispatch("bibi:readied");
E.dispatch("bibi:waits");
E.dispatch("bibi:played");
E.dispatch("bibi:loaded-package-document");
E.dispatch("bibi:prepared");
E.dispatch("bibi:created-cover", R.CoverImage.Path);
E.dispatch("bibi:loaded-navigation", I.Panel.BookInfo.Navigation.Path);
E.dispatch("bibi:is-going-to:preprocess-resources");
@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 / 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 / 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 / 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[