Skip to content

Instantly share code, notes, and snippets.

View Kepler-69c's full-sized avatar
💭
I may be slow to respond

Djordje Petrović Kepler-69c

💭
I may be slow to respond
View GitHub Profile
@Kepler-69c
Kepler-69c / keybase.md
Created September 5, 2023 12:20
keybase auth

Keybase proof

I hereby claim:

  • I am Kepler-69c on github.
  • I am kepler_69c (https://keybase.io/kepler_69c) on keybase.
  • I have a public key whose fingerprint is E477 FF40 61DB 8E82 CE12 0762 048F FF99 7455 032F

To claim this, I am signing this object:

@Kepler-69c
Kepler-69c / darkmode.md
Last active August 26, 2023 16:58
efficient & short dark mode snippet in JS

efficient & short dark mode snippet in JavaScript

short js snippet for dark mode, that listens to a button and to the theme change of the browser

Features:

  • save preferred theme in localstorage until preferred theme and browser theme maches
  • changes theme at page load
  • short and efficient, without css classes or custom styles
  • works with all modern browsers:
    • ✅ Chromium [Chrome, Brave, Edge, Opera]
    • ✅ Firefox
@Kepler-69c
Kepler-69c / hugofastsearch.md
Last active August 23, 2023 09:40 — forked from cmod/hugofastsearch.md
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to craigmod.com and press CMD-/ and start typing.

Fast Search