From b3621c32205bbf785967742f64624a74290ecd35 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 24 Sep 2023 23:02:44 +0900 Subject: fix(blog/content): fix indentation --- .../2022-04-09/phperkaigi-2022-tokens/index.html | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'vhosts/blog/public/posts') diff --git a/vhosts/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html b/vhosts/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html index 6db138d5..c3a403a3 100644 --- a/vhosts/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html +++ b/vhosts/blog/public/posts/2022-04-09/phperkaigi-2022-tokens/index.html @@ -327,36 +327,36 @@ $🐘([
<?php
 
 /*********************************************************
-* This program displays a PHPer token.                  *
-* Guess 'N'.                                            *
-*                                                       *
-* Hints:                                                *
-* - N itself has no special meaning, e.g., 42, 8128,    *
-*   it is selected at random.                           *
-* - Each element of $token represents a single letter.  *
-* - One letter consists of 5x5 cells.                   *
-* - Remember, the output is a complete PHPer token.     *
-*                                                       *
-* License:                                              *
-*   https://creativecommons.org/publicdomain/zero/1.0/  *
-*********************************************************/
+ * This program displays a PHPer token.                  *
+ * Guess 'N'.                                            *
+ *                                                       *
+ * Hints:                                                *
+ * - N itself has no special meaning, e.g., 42, 8128,    *
+ *   it is selected at random.                           *
+ * - Each element of $token represents a single letter.  *
+ * - One letter consists of 5x5 cells.                   *
+ * - Remember, the output is a complete PHPer token.     *
+ *                                                       *
+ * License:                                              *
+ *   https://creativecommons.org/publicdomain/zero/1.0/  *
+ *********************************************************/
 const N = 0 /* Change it to your answer. */;
 assert(0 <= N && N <= 0b11111_11111_11111_11111_11111);
 
 $token = [
-0x14B499C,
-0x0BE34CC, 0x01C9C69,
-0x0ECA069, 0x01C2449, 0x0FDB166, 0x01C9C69,
-0x01C1C66, 0x0FC1C47, 0x01C1C66,
-0x10C5858, 0x1E4E3B8, 0x1A2F2F8,
+  0x14B499C,
+  0x0BE34CC, 0x01C9C69,
+  0x0ECA069, 0x01C2449, 0x0FDB166, 0x01C9C69,
+  0x01C1C66, 0x0FC1C47, 0x01C1C66,
+  0x10C5858, 0x1E4E3B8, 0x1A2F2F8,
 ];
 foreach ($token as $x) {
-$x = $x ^ N;
+  $x = $x ^ N;
 
-$x = sprintf('%025b', $x);
-$x = str_replace(search: ['0', '1'], replace: [' ', '#'], subject: $x);
-$x = implode("\n", str_split($x, length: 5));
-echo "{$x}\n\n";
+  $x = sprintf('%025b', $x);
+  $x = str_replace(search: ['0', '1'], replace: [' ', '#'], subject: $x);
+  $x = implode("\n", str_split($x, length: 5));
+  echo "{$x}\n\n";
 }

-- cgit v1.2.3-70-g09d2