Skip to content

Instantly share code, notes, and snippets.

@bhavyakukkar
bhavyakukkar / README.md
Created September 11, 2024 10:37 — forked from straker/README.md
Basic Snake HTML and JavaScript Game

Basic Snake HTML and JavaScript Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

  • Score
  • When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen
@bhavyakukkar
bhavyakukkar / distro_detector.py.diff
Last active October 11, 2023 09:59
hyfetch-xenia-ascii
diff --git a/hyfetch/distros/distro_detector.py b/hyfetch/distros/distro_detector.py
index 1ba562e..45f0526 100644
--- a/hyfetch/distros/distro_detector.py
+++ b/hyfetch/distros/distro_detector.py
@@ -1403,6 +1403,10 @@ def detect(name: str) -> AsciiArt | None:
if name.startswith('zorin'):
from .zorin import zorin
return zorin
+
+ if name.startswith('xenia'):