From 6b78b4de6ec5f96d82be5b153294797074c8c2b1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 4 Jul 2025 19:16:27 +0900 Subject: feat(blog/nuldoc): update dependencies --- .../public/posts/2022-04-09/phperkaigi-2022-tokens/index.html | 2 +- .../blog/public/posts/2024-12-04/cohackpp-report/index.html | 2 +- .../posts/2025-01-08/phperkaigi-2023-tokens-q1/index.html | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'services/blog/public/posts') diff --git a/services/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html b/services/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html index caa68793..9d913221 100644 --- a/services/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html +++ b/services/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html @@ -584,7 +584,7 @@ 0x010FC21, 0x1FAD6B5, 0x1151151, 0x010FC21, 0x1F294A7, 0x1F295B7, 0x1FAD6B5, 0x1F294A7, 0x1F295B7, 0x1F8C63F, 0x1F8C631, 0x1FAD6B5, 0x17AD6BD, 0x17AD6BD, 0x1F8C63F, 0x1F295B7, ]; -$t = null.false; for ($i = 0; $i <= intdiv(__LINE__-035,6); ++$i) if (!isset($xs[$i])) break; else +$t = null.false; for ($i = 0; $i <= intdiv(__LINE__-035,6); ++$i) if (!isset($xs[$i])) break; else $t .= implode("\n", str_split(str_replace(['0','1'], [' ','##'], sprintf(chr(37) . '025b', $xs[$i])), 012)) . "\n\n"; $ws = array_map(fn($w) => implode(', ', $w), array_chunk(array_map(fn($x) => sprintf('0x' . chr(37) . '07X', $x), $xs), 10)); printf($s, $t, str_rot13("<<<'D'\n{$s}\nD"), implode(",\n", $ws)); diff --git a/services/blog/public/posts/2024-12-04/cohackpp-report/index.html b/services/blog/public/posts/2024-12-04/cohackpp-report/index.html index 50c2312a..232c9cae 100644 --- a/services/blog/public/posts/2024-12-04/cohackpp-report/index.html +++ b/services/blog/public/posts/2024-12-04/cohackpp-report/index.html @@ -275,7 +275,7 @@ ARcGDgccgQEXBg0IHIEBGAYMBx2BARgHCggdgQEZCAYKHYEBGhcdgQEbFh2BARwVHYEBHgsBBh6BASAG BAYegQEpBh+BASkGH4EBKAYggQEnByCBASYHIYEBJQcigQEkCCKBASIJI4EBIAokgQEeCyWBARwLJ4EB GQ0ogQEWDiqBARcMK4EBGAktgQEZBTCBARoCMoEBToEBToEBToEBToEBToEBToHQ',]; -$m="";for($k=0;$k<min(13,intdiv(__LINE__-119,80)+1);$k++){$C=str_replace("\n","", +$m="";for($k=0;$k<min(13,intdiv(__LINE__-119,80)+1);$k++){$C=str_replace("\n","", $c[$k]);$f=!0;foreach(str_split(base64_decode($C))as$l){$L=ord($l);$m.=str_repeat ($f?"#":chr(32),$L&127);$f=!$f;if($L&128){$m.="\n";$f=!0;continue;}}}print( str_replace([chr(96),chr(37),chr(64)],[implode("\n",array_map(fn($C)=>"'".trim( diff --git a/services/blog/public/posts/2025-01-08/phperkaigi-2023-tokens-q1/index.html b/services/blog/public/posts/2025-01-08/phperkaigi-2023-tokens-q1/index.html index e7cd5282..15d0aa00 100644 --- a/services/blog/public/posts/2025-01-08/phperkaigi-2023-tokens-q1/index.html +++ b/services/blog/public/posts/2025-01-08/phperkaigi-2023-tokens-q1/index.html @@ -309,7 +309,7 @@ $cs[$y*$w + $x] = ($x*$y === 0 || $x === $w-1 || $y === $h-1) ? 0 : $b[122+($y-1)*($w-1)+$x-1]; -$i = stream_isatty(STDIN) +$i = stream_isatty(STDIN) ? [] : array_map(ord(...), str_split(trim((string) fgets(STDIN)))); $m = []; @@ -326,7 +326,7 @@ echo "infinite loop detected\n"; break; $c1 = $cs[$pc]; - $y = (6 + intdiv($c1-2, 3) - intdiv($c0-2, 3)) % 6; + $y = (6 + intdiv($c1-2, 3) - intdiv($c0-2, 3)) % 6; $x = (3 + $c1%3 - $c0%3) % 3; match (($c0 !== 1) * ($c1 !== 1) * ($y*3 + $x)) { 1 => $m[] = $b, @@ -354,7 +354,7 @@ $v = []; if ($c1 === 1) { $x = $pc % $w; - $y = intdiv($pc, $w); + $y = intdiv($pc, $w); $e = [($y+1)*$w-1, ($h-1)*$w+$x, $y*$w, $x][$dp]; $z = [1, $w, -1, -$w][$dp]; for ($ep = $pc; $ep !== $e; $ep += $z) @@ -372,9 +372,9 @@ if (isset($v[$qp])) continue; $q[] = $qp; $qx = $qp % $w; - $qy = intdiv($qp, $w); + $qy = intdiv($qp, $w); $x = $ep % $w; - $y = intdiv($ep, $w); + $y = intdiv($ep, $w); if ( ($dp === 0 && ($x < $qx || ($x === $qx && ($y<=>$qy) === $cc))) || ($dp === 1 && ($y < $qy || ($y === $qy && ($qx<=>$x) === $cc))) -- cgit v1.2.3-70-g09d2