Skip to content

Instantly share code, notes, and snippets.

View lenguyenthanh's full-sized avatar
👻

Thanh Le lenguyenthanh

👻
View GitHub Profile
@lenguyenthanh
lenguyenthanh / 3check.perft
Created April 7, 2023 11:22
Chess variant perft tests
id 0
epd rnbqkbnr/pppp3p/8/5pp1/P3p1P1/2PQ4/1P1PPP1P/RNB1KBNR b KQkq - 1 5 +0+0
4 30
4 912
4 25472
4 766101
id 1
epd r1bqkbnr/npppp1pp/p7/5p2/8/1P5N/P1PPPPPP/RNBQKBR1 b Qkq - 0 5 +0+0
4 20
id 0
epd rnbqkbnr/pB2p1pp/3p4/2p2p2/8/6P1/PPPPPP1P/RNBQK1NR w KQkq - 0 4 +0+0
2 28
2 682
id 1
epd rnbqkbr1/ppp1pppp/3p1n2/8/3P4/2N3P1/PPP1PP1P/R1BQKBNR w KQq - 1 4 +0+0
2 30
2 863
@lenguyenthanh
lenguyenthanh / logback.xml
Created July 16, 2024 07:34 — forked from arosien/logback.xml
scala-cli script to show inserting an otel4s span into a log4cats logger
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appender name="CONSOLE"
class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%X{traceId} %X{spanId} - %m%n</Pattern>
</layout>
</appender>