Skip to content

Instantly share code, notes, and snippets.

View Jak2k's full-sized avatar
✖️
Moved to Codeberg: https://codeberg.org/jak2k

Jak2k Jak2k

✖️
Moved to Codeberg: https://codeberg.org/jak2k
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active April 19, 2025 12:06
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@alexbezhan
alexbezhan / laser.js
Created February 26, 2023 23:47
Laser.js - fast and small HTMX-like library
/**
* Principles:
* 1. Performance
* 2. Simplicity and debuggability.
*
* It's not trying to be:
* 1. Flexible.
*
* This results into the following:
* 1. Explicit attributes only
@rugk
rugk / Notrufnummern.vcf
Last active February 14, 2023 08:27
Deutsche Notrufnummern als VCARD zum Importieren in die Kontakte
BEGIN:VCARD
VERSION:3.0
PRODID:-//Sabre//Sabre VObject 4.4.1//EN
UID:020b3274-6fb5-4997-887a-2a22cb93c4f2
REV;VALUE=DATE-AND-OR-TIME:20200318T210544Z
FN:Polizei (Deutschland)
ADR;TYPE=HOME:;;;;;;
EMAIL;TYPE=HOME:
TEL;TYPE=VOICE:110
CATEGORIES:Notrufnummern