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
.0000000000000000000000000000000000000-0 | |
-.------------------------------------/- | |
00.00+++++++++++++++++++++++++++++++++0+ | |
+00.00++++++++++++++++++++++++++++++++0+ | |
+000.00+++++++++++++++++++++++++++++++0+ | |
+0+00.00++++++++++++++++++++++++++++++0+ | |
+0++00.00+++++++++++++++++++++++++++++0+ | |
+0+++00.00++++++++++++++++++++++++++++0+ | |
+0++++00.00+++++++++++++++++++++++++++0+ | |
+0+++++00.00++++++++++++++++++++++++++0+ |
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
/* | |
JavaScript Promise puzzle | |
What will be printed, and what will the exit code be? | |
*/ | |
const main = async () => { | |
process.on('unhandledRejection', error => { | |
console.log('UNHANDLED'); | |
process.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/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
# | |
# The likelihood of winning a 1xn Minesweeper game with two mines | |
# =============================================================== | |
# | |
# An optimal strategy for playing the 1xn Minesweeper game with 2 mines is | |
# deterministic, meaning that for a given initial board state the strategy will |
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
rem -- Start of file project-ref-package-ref-issue.cmd | |
rem -- Run this cmd script to reproduce error. | |
del /q /s reprod | |
mkdir reprod | |
mkdir reprod\TargetLib | |
dotnet new classlib -o reprod\TargetLib | |
dotnet add reprod\TargetLib package Microsoft.NET.Sdk.Functions | |
mkdir reprod\ConsumerLib | |
dotnet new classlib -o reprod\ConsumerLib |
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 | |
LC_CTYPE=C; export LC_CTYPE | |
charat() { if test -z $BASH; then r=$(expr substr $1 $(($2 + 1)) 1); else r=${1:$2:1}; fi } | |
p=0 | |
h=0 | |
i=0 | |
while true; do | |
case $i in | |
0) |
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 | |
LC_CTYPE=C; export LC_CTYPE | |
charat() { if test -z $BASH; then r=$(expr substr $1 $(($2 + 1)) 1); else r=${1:$2:1}; fi } | |
p=0 | |
h=0 | |
i=0 | |
while true; do | |
case $i in | |
0) | |
eval "s${p}=\"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"" |