Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
# mirror://mirrors.ubuntu.com/mirrors.txt
RUN \
touch /etc/apt/mirrorlist.txt &&\
echo "http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/" >> /etc/apt/mirrorlist.txt &&\
echo "http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/" >> /etc/apt/mirrorlist.txt &&\
echo "http://ftp.riken.jp/Linux/ubuntu/" >> /etc/apt/mirrorlist.txt &&\
FROM nvcr.io/nvidia/cuda:11.4.2-cudnn8-devel-ubuntu20.04 AS builder
SHELL ["/bin/bash", "-c"]
RUN \
export DEBIAN_FRONTEND=noninteractive &&\
sed -i.bak -r 's!(deb|deb-src) http://archive\.ubuntu\.com/\S+!\1 mirror://mirrors.ubuntu.com/mirrors.txt!' /etc/apt/sources.list &&\
apt-get update &&\
apt-get -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" install \
curl gpg &&\
@mizar
mizar / qrcode_br.ps1
Last active March 21, 2021 21:13
QR Code display with Powershell
# QR Code display with Powershell
# License: MIT
# usage example:
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload https://qiita.com/ -EccLevel Q
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload "日本語SJIS" -EccLevel Q -Encoding SJIS
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload "日本語UTF8" -EccLevel Q -Encoding UTF-8
Param(
# String to be embedded in QR Code
[String]$Payload = "https://github.com/",
@mizar
mizar / qrcode.ps1
Last active November 16, 2023 16:36
QR Code display with Powershell
# QR Code display with Powershell
# License: MIT
# usage example:
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload https://qiita.com/ -EccLevel Q
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload "日本語SJIS" -EccLevel Q -Encoding SJIS
# powershell.exe -Exec bypass -File qrcode.ps1 -Payload "日本語UTF8" -EccLevel Q -Encoding UTF-8
Param(
# String to be embedded in QR Code
[String]$Payload = "https://github.com/",
diff --git a/cppshogi/Makefile b/cppshogi/Makefile
index 064d40c..f381095 100644
--- a/cppshogi/Makefile
+++ b/cppshogi/Makefile
@@ -4,8 +4,8 @@ PYTHON_PREFIX=/usr
CC = g++
CFLAGS = -std=c++17 -Wextra -Ofast -MMD -MP -fopenmp -DNDEBUG -DHAVE_SSE4 -DHAVE_SSE42 -DHAVE_BMI2 -msse4.2 -mbmi2 -DHAVE_AVX2 -mavx2 -fPIC
LDFLAGS = -lpthread -lz -flto
-INCLUDE = -I$(PYTHON_PREFIX)/include/python3.7m -I$(PYTHON_PREFIX)/include
-LIB = -L$(PYTHON_PREFIX)/lib -lpython3.7m -lboost_python -lboost_numpy -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
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
@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.
@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 / 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 / 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.