diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-02 00:11:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-02 00:11:46 +0900 |
| commit | c0c73379890f1a4ee6ee07b1aee188c33ef66ab0 (patch) | |
| tree | 62ad848a658fa0dc8a43bc106e05aadcd4a70b8f /vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc | |
| parent | f325479ddb8ccdbe0e832160e9c7fb0155a90f47 (diff) | |
| download | nsfisis.dev-c0c73379890f1a4ee6ee07b1aee188c33ef66ab0.tar.gz nsfisis.dev-c0c73379890f1a4ee6ee07b1aee188c33ef66ab0.tar.zst nsfisis.dev-c0c73379890f1a4ee6ee07b1aee188c33ef66ab0.zip | |
feat(blog/nuldoc): dynamically join nested section ids
Diffstat (limited to 'vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc')
| -rw-r--r-- | vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc b/vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc index 062a8b02..056ac438 100644 --- a/vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc +++ b/vhosts/blog/content/posts/2022-08-27/php-conference-okinawa-code-golf.ndoc @@ -70,7 +70,7 @@ remark = "公開" </section> <section id="techniques"> <h>使用したテクニック</h> - <section id="techniques--exponential-notation"> + <section id="exponential-notation"> <h>指数表記</h> <p> 割と多くの言語のゴルフで使えるテクニック。 @@ -78,7 +78,7 @@ remark = "公開" このコードでは <code>10000</code>、<code>5000</code>、<code>2000</code>、<code>1000</code> を指数表記している。 </p> </section> - <section id="techniques--shorten-loop"> + <section id="shorten-loop"> <h>foreach や for の中身を1つの文に</h> <p> <code>foreach</code>、<code>for</code>、<code>if</code> などの後ろには、 @@ -86,7 +86,7 @@ remark = "公開" C言語などでも使える。 </p> </section> - <section id="techniques--omit-initialization"> + <section id="omit-initialization"> <h>$r に初期値を入れない</h> <p> PHP では、<code>$r[] = ......</code> のような配列の末尾に追加する式を実行したとき、 @@ -102,7 +102,7 @@ remark = "公開" もし 0 が渡されたケースを無視するなら、これが不要になるので 4 バイト縮む。 </p> </section> - <section id="techniques--put-text-outside-php-tag"> + <section id="put-text-outside-php-tag"> <h>PHP タグの外に文字列を置く</h> <p> PHP では、<code><?php</code> <code>?></code> で囲われた部分の外側にある文字列は、そのまま出力される。 |
