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
download tensorflow and related things to 2.19 |
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
<?php | |
$iso2flag = fn(string $code) => array_reduce(str_split($code),fn($res,$c) => $res.mb_chr(ord(strtoupper($c)) % 32 + 0x1F1E5),"" ); |
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
function mless() { | |
PASSED=$1 | |
if [[ -d $PASSED ]]; then | |
return 0 | |
elif [[ -f $PASSED ]]; then | |
pandoc --from markdown --to plain "$1" | less | |
else | |
return 0 | |
fi | |
} |
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
<?php | |
$string = "floccinaucinihilipilification"; | |
$p = array_combine(array_map('chr', array_keys($res = count_chars($string, 1))), $res); | |
$z = array_reduce(array_keys($counts = count_chars($string, 1)), fn($res, $chr) => $res + [chr($chr) => $counts[$chr]], []); |