Skip to content

Instantly share code, notes, and snippets.

@shemig
shemig / matrix.sh
Last active August 20, 2023 16:03
Treat hyprland workspaces as a 3x3 matrix
matrix_size=3
##Utility functions
matrix_max=$(($matrix_size - 1))
function clamp() {
n=$(($1 < 0 ? 0 : $1))
n=$(($n > $matrix_max ? $matrix_max : $n))
echo $n
@vlafiser
vlafiser / anime-js-hover-effect.markdown
Created December 4, 2017 07:30
anime.js hover effect
@flaviut
flaviut / box-drawing.md
Last active February 1, 2025 23:37
Box Drawing characters with examples

Box drawing fun

A few boxes drawn with Unicode box drawing characters:

╔═╦═╗
╠═╬═╣
║ ║ ║
╚═╩═╝
@staltz
staltz / introrx.md
Last active April 21, 2025 04:15
The introduction to Reactive Programming you've been missing