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 / 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>
@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 / 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 / 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