diff options
Diffstat (limited to '_pastebins')
-rw-r--r-- | _pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md | 7 | ||||
-rw-r--r-- | _pastebins/2021-04-03-javascript-naive-slugify.md | 7 | ||||
-rw-r--r-- | _pastebins/2021-08-11-spaces-around-h1-tags.md | 18 |
3 files changed, 23 insertions, 9 deletions
diff --git a/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md b/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md index 3d99ac5..f81a5bd 100644 --- a/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md +++ b/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md @@ -14,19 +14,20 @@ ref: inconsistent-hash-of-buildgomodule --- -FIXED: See https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2 +FIXED: The `<nixpkgs>` was different on different environments. +See <https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2>. --- The [commit that made this visible][0]. -[0]: https://git.euandreh.xyz/vps/commit?id=6ba76140238b5e3c7009c201f9f80ac86063f438 +[0]: https://git.euandreh.xyz/servers/commit?id=6ba76140238b5e3c7009c201f9f80ac86063f438 ## Offending derivation: [Full source code on the repository][1]: -[1]: https://git.euandreh.xyz/vps/tree/default.nix?id=6ba76140238b5e3c7009c201f9f80ac86063f438#n3 +[1]: https://git.euandreh.xyz/servers/tree/default.nix?id=6ba76140238b5e3c7009c201f9f80ac86063f438#n3 ```nix terraform-godaddy = pkgs.buildGoModule rec { diff --git a/_pastebins/2021-04-03-javascript-naive-slugify.md b/_pastebins/2021-04-03-javascript-naive-slugify.md index ce038fd..f765495 100644 --- a/_pastebins/2021-04-03-javascript-naive-slugify.md +++ b/_pastebins/2021-04-03-javascript-naive-slugify.md @@ -4,6 +4,8 @@ title: JavaScript naive slugify date: 2021-04-03 +updated_at: 2021-08-15 + layout: post lang: en @@ -15,8 +17,8 @@ ref: javascript-naive-slugify ```javascript const s = "Pézão: açaí, saci-pererê."; -function slugify(s) { - return s +const slugify = s => + s .toLowerCase() .replaceAll(":", "") .replaceAll(".", "") @@ -33,7 +35,6 @@ function slugify(s) { .replaceAll("ú", "u") .replaceAll("ü", "u") .replaceAll("ç", "c"); -} console.log(slugify(s)); ``` diff --git a/_pastebins/2021-08-11-spaces-around-h1-tags.md b/_pastebins/2021-08-11-spaces-around-h1-tags.md index edbbf68..9a00ece 100644 --- a/_pastebins/2021-08-11-spaces-around-h1-tags.md +++ b/_pastebins/2021-08-11-spaces-around-h1-tags.md @@ -4,6 +4,8 @@ title: Spaces around h1 tags date: 2021-08-11 +updated_at: 2021-08-15 + layout: post lang: en @@ -12,8 +14,14 @@ ref: spaces-around-h1-tags --- -Apparently, the behaviour below is consistent between Firefox and Chromium for -links, but not for `<h1>`. +*EDIT*: Apparently, the behaviour below is consistent between Firefox and +Chromium for links, but not for `<h1>`. +My conclusion is that the `<h1>` behaviour is a Firefox quirk, but the `<a>` is +expected. + +--- + +The HTML below has selectable extra spaces after `<h1>` tags: ```html <!DOCTYPE html> @@ -37,6 +45,8 @@ links, but not for `<h1>`. </html> ``` +The rendered output is: + <h1> With spaces around when selecting this heading </h1> @@ -47,7 +57,7 @@ links, but not for `<h1>`. --- -Same with links: +The same with links: ```html <!DOCTYPE html> @@ -72,6 +82,8 @@ Same with links: </html> ``` +The rendered output is: + <p> <a href="#"> With extra underlined space |