Skip to content

Instantly share code, notes, and snippets.

View Gu7z's full-sized avatar
🏠
Working from home

Gustavo Ferri Gu7z

🏠
Working from home
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active May 22, 2024 05:48
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; // ¯\\_(ツ)_/¯
@luccamendonca
luccamendonca / .Xmodmap
Created August 23, 2020 15:54
Xmodmap config file made to be used with the Motospeed CK62 keyboard, using CAPS LOCK as a MODE_SWITCH key. Based on https://gist.github.com/eduardomartines/371b790d1c102bccca6db9a25ad2b464
! Custom keycode mappings for the Motospeed ck62 keyboard
!
! How xmodmap works
!
! keycode X = A B C D
! X -> the keycode number. We can use `xev` to get it
!
! Now A-D represents the behaviors the keycode will have when
! A -> Only the key is pressed
! B -> The key is pressed with SHIFT