This file contains hidden or 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
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 &&\ |
This file contains hidden or 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
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 &&\ |
This file contains hidden or 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
# 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/", |
This file contains hidden or 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
# 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/", |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#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: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.