This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Responsive: yes ***/ | |
/* | |
* 全体の設定 | |
*/ | |
body { | |
font-family: Verdana, sans-serif; | |
font-size: 14px; | |
-webkit-text-size-adjust: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* | |
* ソースコードを美しく見せる設定 | |
*/ | |
/* 行の折り返しのルールなどをデフォルトに戻す */ | |
.entry-content pre { | |
line-height: normal; | |
white-space: pre; | |
word-break: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Responsive: yes ***/ | |
/* 共通設定 */ | |
a:link { color: #369; } | |
a:visited { color: #306; } | |
ul { | |
margin-left: 0; | |
padding-left: 1.5em; | |
} | |
ul li { list-style-type: square;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# tenhou-log-all - 天鳳鳳凰卓(東南戦)の牌譜を電脳麻将形式で全て取得する | |
# | |
# - tenhou-log-all | |
# 最新(昨年分)の牌譜が公開されたかチェックする | |
# - tenhou-log-all workdir | |
# 昨年分の牌譜を電脳麻将形式に変換して workdir に取得する | |
# - tenhou-log-all workdir year | |
# year で指定した年の牌譜を電脳麻将形式に変換して workdir に取得する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* シャンテン数計算時間計測(1,000,000回) | |
* | |
* 実行方法: npm test xiangting-1M.js -- --no-timeouts | |
*/ | |
const assert = require('assert'); | |
const Majiang = require('./'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cd `echo $0|sed 's/\/[^\/]*$//'` | |
. etc/config.txt | |
[ ! $title ] && exit 1 | |
[ ! $dist ] && exit 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
[ $1 ] || (echo "Usage: $0 version"; exit 1) | |
version=$1 | |
npx semver ${version} || (echo "${version}: bad semver"; exit 1) | |
ex package.json <<++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Global Setting */ | |
a img { border: none; } | |
ul { | |
margin-left: 0px; | |
padding-left: 1.5em; | |
} | |
ul li { list-style-type: square;} | |
ul li li { list-style-type: circle; } | |
body, table { font-family: Verdana, sans-serif; font-size: 12px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>version</key> | |
<integer>1</integer> | |
<key>keys</key> | |
<dict> | |
<key>before_typing</key> | |
<dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require('fs'); | |
const path = require('path'); | |
const zlib = require('zlib'); | |
const assert = require('assert'); | |
const Majiang = require('../src/js/majiang'); | |
function conv_hupai(hupai) { |
NewerOlder