n-channel

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6b992a89f9e05b88a77d439b11f07addb58a841d
parent 83ec429fc6461359ebb3a79b34b4b85ce61d0b9a
Author: Samdal <samdal@protonmail.com>
Date:   Sun,  2 Mar 2025 02:14:25 +0100

fish cursor easter egg

Diffstat:
M_includes/head.html | 67+++++++++++++++++++++++++++++++++++++++++++++++--------------------
M_layouts/post.html | 96+++++++++++++++++++++++++++++++++++++++++--------------------------------------
M_pages/about.md | 2+-
A_posts/2014-02-21-fish-mode.md | 24++++++++++++++++++++++++
M_posts/2025-03-02-productivity-through-simplicity.md | 3+++
Aassets/images/modified_stolen_art/cursor.png | 0
Dassets/images/old_projects/meep.jpeg | 0
7 files changed, 125 insertions(+), 67 deletions(-)

diff --git a/_includes/head.html b/_includes/head.html @@ -6,32 +6,59 @@ {% seo title=false %} <title> - {% if page.tag or page.title %} - {% if page.tag %} - {{ page.tag | escape }} - {% else %} - {{ page.title | escape }} - {% endif %} - - + {% if page.tag or page.title %} + {% if page.tag %} + {{ page.tag | escape }} + {% else %} + {{ page.title | escape }} {% endif %} - {% if paginator and paginator.page and paginator.total_pages > 1 and paginator.page > 1 %} - Page {{ paginator.page }} of {{ paginator.total_pages }} - - {% endif %} - {{ site.title | escape }} - {% unless page.tag or page.title %} - - {{ site.description | escape }} - {% endunless %} - </title> + - + {% endif %} + {% if paginator and paginator.page and paginator.total_pages > 1 and paginator.page > 1 %} + Page {{ paginator.page }} of {{ paginator.total_pages }} - + {% endif %} + {{ site.title | escape }} + {% unless page.tag or page.title %} + - {{ site.description | escape }} + {% endunless %} + </title> <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml"> <link rel="alternate" type="application/json" title="{{ site.title }}" href="{{ "/feed.json" | prepend: site.baseurl | prepend: site.url }}" /> <link rel="sitemap" type="application/xml" title="sitemap" href="{{ site.baseurl }}/sitemap.xml" /> - + <style> - {% capture include_to_scssify %} - {% include inline.scss %} - {% endcapture %} - {{ include_to_scssify | scssify }} + {% capture include_to_scssify %} + {% include inline.scss %} + {% endcapture %} + {{ include_to_scssify | scssify }} </style> + <script> + var fish_style = document.createElement('style'); + fish_style.id = "fish-style"; + document.head.appendChild(fish_style); + + let should_enable_fish_mode = localStorage.getItem("fish-mode") == "true"; + + function enable_fish_mode() { + fish_style.innerHTML = "body,a,input,label,span{cursor:url('/assets/images/modified_stolen_art/cursor.png'), auto;}"; + } + + function toggle_fish_mode() { + let check_box = document.getElementById("enable-fish-mode"); + localStorage.setItem("fish-mode", check_box.checked); + + if (check_box.checked){ + enable_fish_mode(); + } else { + fish_style.innerHTML = ""; + } + } + + if (should_enable_fish_mode) { + enable_fish_mode(); + } + </script> + </head> diff --git a/_layouts/post.html b/_layouts/post.html @@ -5,62 +5,66 @@ layout: default <section class="post"> <h1>{{ page.title }}</h1> {{ content }} - <span class="meta"><time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time> &middot; {% for tag in page.tags %} + <span class="meta" id="date-and-tags"><time id="date-and-tags-date" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time> &middot; {% for tag in page.tags %} <a href="/tag/{{tag}}">{{tag}}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</span> + {% if page.comments == true %} + <div> - <label for="show-comments" style="font-size: 90%; color:gray;"> Show comments: </label> - <input type="checkbox" id="show-comments" onclick="toggle_comments()"> + <label for="show-comments" style="font-size: 90%; color:gray;"> Show comments: </label> + <input type="checkbox" id="show-comments" onclick="toggle_comments()"> </div> <div class="commentbox" id="commentbox_div"></div> <script> - var has_been_enabled = false; - - document.getElementById("show-comments").checked = localStorage.getItem("show-comments") == "true"; - - function enable_comments() { - if (has_been_enabled == false) { - has_been_enabled = true; - - var script = document.createElement('script'); - script.onload = function () { - if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { - commentBox('5678673445257216-proj', { - textColor: '#fff', - subtextColor: '#fff' - }); - } else { - commentBox('5678673445257216-proj'); - } - }; - script.src = "https://unpkg.com/commentbox.io/dist/commentBox.min.js"; - document.head.appendChild(script); - - } - } - - function toggle_comments() { - let checkBox = document.getElementById("show-comments"); - let commentbox_div = document.getElementById("commentbox_div"); - localStorage.setItem("show-comments", checkBox.checked); - - if (checkBox.checked){ - commentbox_div.style.display = "block"; - enable_comments(); - } else { - commentbox_div.style.display = "none"; - } - } - - let checkBox = document.getElementById("show-comments"); - - if (checkBox.checked) { - enable_comments(); - } + var commentbox_div = document.getElementById("commentbox_div"); + let comments_have_been_enabled = false; + + document.getElementById("show-comments").checked = localStorage.getItem("show-comments") == "true"; + + function enable_comments() { + if (comments_have_been_enabled == false) { + comments_have_been_enabled = true; + + let script = document.createElement('script'); + script.onload = function () { + if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { + commentBox('5678673445257216-proj', { + textColor: '#fff', + subtextColor: '#fff' + }); + } else { + commentBox('5678673445257216-proj'); + } + }; + script.src = "https://unpkg.com/commentbox.io/dist/commentBox.min.js"; + document.head.appendChild(script); + + } + commentbox_div.style.display = "block"; + } + + function toggle_comments() { + let checkBox = document.getElementById("show-comments"); + localStorage.setItem("show-comments", checkBox.checked); + + if (checkBox.checked){ + enable_comments(); + } else { + commentbox_div.style.display = "none"; + } + } + + let checkBox = document.getElementById("show-comments"); + + if (checkBox.checked) { + enable_comments(); + } </script> + + {% endif %} </section> diff --git a/_pages/about.md b/_pages/about.md @@ -35,7 +35,7 @@ Images under the folder `modified_stolen_images` are not mine. Sources: {: style="font-size: 70%; margin-bottom: 0;"} - [templeos.jpeg](https://x.com/chibitoad/status/1448406173263171585) -- [nuko_calm.png and c-programming-language-chito.png](https://store.line.me/stickershop/product/25634268) +- [nuko_calm.png, cursor.png and c-programming-language-chito.png](https://store.line.me/stickershop/product/25634268) - [couch.png](https://www.pixiv.net/en/artworks/92469486) - [kettenkrad.gif](https://www.reddit.com/r/GirlsLastTour/comments/fsn49q/i_spent_the_entire_afternoon_animating_chi_and/) - silly.png ( don't know the source ) diff --git a/_posts/2014-02-21-fish-mode.md b/_posts/2014-02-21-fish-mode.md @@ -0,0 +1,24 @@ +--- +layout: post +title: 𓆛𓆜𓆝𓆞𓆟 +description: Compilation of my old projects (the code behind most of them isn't that great, but a bunch of them are interestign) +#summary: What is the difference between various font formats? +comments: true +tags: [] +--- + +<div> + <label for="enable-fish-mode" style="font-size: 90%; color:gray; margin-right: 0.5rem;"> Fish mode <i style="font-size: 50%; letter-spacing: -5px;"> tkmiz </i> </label> + <input type="checkbox" id="enable-fish-mode" onclick="toggle_fish_mode()"> +</div> + +<script> + let check_box = document.getElementById("enable-fish-mode"); + document.getElementById("enable-fish-mode").checked = should_enable_fish_mode; + + window.addEventListener("load", (event) => { + document.getElementById("date-and-tags").innerHTML += "<a>fish</a>"; + document.getElementById("date-and-tags-date").style = "color: #60736e; font-style: italic; letter-spacing: .1rem;"; + }); +</script> + diff --git a/_posts/2025-03-02-productivity-through-simplicity.md b/_posts/2025-03-02-productivity-through-simplicity.md @@ -65,6 +65,7 @@ I use Vim key binds. Vim works well, but I see others shooting away with other s However, don't waste your life trying to become a "Vim enthusiast." Yes, learning key bindings takes time. Some people are rightfully daunted by switching to something like Vim, but you don't have to go that far. Learning to be fast in a more typical editor like VS Code will go a long way. + ## Conclusion Find tools that suit you, and learn them well. I highly recommend exploring workspaces. Become as fluent as you can in the tools you end up using. Be self-conscious, and have a mindset where you strive toward higher efficiency. @@ -73,3 +74,5 @@ Simplicity over complexity. Tabs are less advantageous than you think, so don't Opt for keyboard actions over mouse actions when it makes sense, but don't let that mindset extremeify you. Keep yourself level-headed. Make thoughtful decisions. You will eventually find out what works for you. + +Oh, and also, use a debugger. Stop writing print statements everywhere. diff --git a/assets/images/modified_stolen_art/cursor.png b/assets/images/modified_stolen_art/cursor.png Binary files differ. diff --git a/assets/images/old_projects/meep.jpeg b/assets/images/old_projects/meep.jpeg Binary files differ.