Skip to content

Instantly share code, notes, and snippets.

@mizar
mizar / cmap_sjis.txt
Created July 30, 2017 10:06
Shift_JIS (MSCP932) ⇔ UTF-8 変換表 ( cmap_sjis.txt: Shift_JIS → UTF-8 → Shift_JIS , cmap_utf8.txt: UTF-8 → Shift_JIS → UTF-8 )
{"\x01","\x01","\x01"},
{"\x02","\x02","\x02"},
{"\x03","\x03","\x03"},
{"\x04","\x04","\x04"},
{"\x05","\x05","\x05"},
{"\x06","\x06","\x06"},
{"\x07","\x07","\x07"},
{"\x08","\x08","\x08"},
{"\x09","\x09","\x09"},
{"\x0a","\x0a","\x0a"},
@mizar
mizar / char-trans.ts
Created May 3, 2018 11:38
SVG Pathの変形描画テスト
import vue from 'vue';
import vueClassComponent from 'vue-class-component';
import { SVGPathData, SVGCommand } from 'svg-pathdata';
import { Vector3, Matrix3 } from 'matrixgl/lib.es2015';
// tslint:disable:max-line-length
const outlinePath = ((obj: { [face: string]: { [char: string]: string } }) => {
const pathset: { face: string, char: string, path: string, data: SVGPathData, cmds: SVGCommand[] }[] = [];
for (const face in obj) {
for (const char in obj[face]) {
@mizar
mizar / Program.cs
Last active August 26, 2018 02:37
C#におけるガンマ関数・ベータ関数の実装テスト
#define G607_128N15
// #define G9N10
// #define G7N9
// #define G5N7
using System;
using System.Linq;
namespace User.Util
{
@mizar
mizar / eloratingtest.json
Last active October 27, 2018 15:05
イロレーティング計算用テストデータ
[
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 0.674489750196081743202227014541307185, "r": 0.25, "low": -556.371116983008834523221118376537966, "high": 556.371116983008834523221118376537966 },
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 0.841621233572914205178706121363248101, "r": 0.20, "low": -637.278014076447139082122177618588986, "high": 637.278014076447139082122177618588986 },
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 1.0, "r": 0.158655253931457051414767454367962078, "low": -719.924573621804196320351488235279593, "high": 719.924573621804196320351488235279593 },
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 1.03643338949378957971324407467350337, "r": 0.15, "low": -739.805637581924145281453818907728782, "high": 739.805637581924145281453818907728782 },
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 1.15034938037600817829676531083058534, "r": 0.125, "low": -804.15096355770349816862999487231242, "high": 804.15096355770349816862999487231242 },
{ "w": 0.0, "d": 1.0, "l": 0.0, "sr": 1.28155156554460046696510332944874282, "r": 0.10, "low": -882.4
@mizar
mizar / wlanProfIpConfig.ps1
Last active March 10, 2019 09:28
PowerShell : Windows 10 (later version 1709) WlanSvc service : static ipaddr config binary registry key : parse/construct test
class WlanProfIpStruct {
[int]$type;
[Net.IpAddress]$ipv4;
[Net.IpAddress]$ipv6;
[int]$masklen;
WlanProfIpStruct() {
$this.type = 0;
$this.ipv4 = "0.0.0.0";
$this.ipv6 = "::";
$this.masklen = 0;
@mizar
mizar / frame.svg
Created May 23, 2019 21:04
Shogi Piece Texture Guide-Frame https://i.imgur.com/yIn1T5b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mizar
mizar / eloratingtest.cpp
Created February 9, 2020 11:25
イロレーティング計算テスト
#include <iostream>
#include <limits>
#include <boost/math/constants/constants.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/erf.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
template<typename T>
class Logit {
private:
@mizar
mizar / test1.svg
Created March 4, 2020 13:48
評価値グラフテスト
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mizar
mizar / test1.svg
Created March 17, 2020 07:18
評価値グラフテスト20200317
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
startpos moves 1g1f
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4a3b 8h3c+
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 3a3b 3i4h 3b4c 5i6h
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 3a4b 5i6h 4a3b 3i4h 4b4c 4h3g
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 3a4b 5i6h 4a3b 3i4h 4b4c 4i5h 8c8d 7i7h
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 3a4b 5i6h 4a3b 4i5h
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 4a3b
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 9c9d 3i4h
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 9c9d 5i6h 3a4b 3i4h 4b4c 4i5h 4a3b 5g5f 5c5d 6h7h
startpos moves 2g2f 3c3d 2f2e 2b3c 7g7f 4c4d 3g3f 9c9d 5i6h 3a4b 3i4h 4b4c 4i5h 4a3b 5g5f 6a5b 4h3g 5c5d 6h7h