(((x + min + |x - min|) / 2) + max - |((x + min + |x - min|) / 2) - max|) / 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Colors (Nord) | |
colors: | |
# Default colors | |
primary: | |
background: '#071019' | |
foreground: '#D8DEE9' | |
# Normal colors | |
normal: | |
black: '#3B4252' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# [DEPENDENCIES] | |
# dunst (https://github.com/dunst-project/dunst) | |
# pulseaudio (https://github.com/pulseaudio/pulseaudio) | |
# faba-icon-theme (https://github.com/snwh/faba-icon-theme) | |
# [USAGE] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# [usage examples] | |
# sh ./floating.sh kitty -e "htop" | |
# sh ./floating.sh kitty -e "ranger" | |
$@ & | |
swaymsg "for_window [pid=\"$!\"] floating enable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
width=400 | |
lines=10 | |
term=alacritty | |
prompt=Type an applicattion | |
allow_images=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function splitMarkdown(str: string, limit: number): string[] { | |
return str.match(new RegExp(`.*([^]){1,${limit}}(\n)?$`, 'gm')).reduce((acc, curr) => { | |
const lastValue = acc.at(-1); | |
if (!lastValue) return [curr]; | |
const heads = lastValue.match(/```.*/g) as string[] || []; | |
// If the number of heads is even or 0, then all code blocks are closed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_comment_": [ | |
"Please do not automate the download and installation of Forge.", | |
"Our efforts are supported by ads from the download page.", | |
"If you MUST automate this, please consider supporting the project through https://www.patreon.com/LexManos/" | |
], | |
"id": "1.16.2-forge-33.0.61", | |
"time": "2020-09-10T18:57:08+00:00", | |
"releaseTime": "2020-09-10T18:57:08+00:00", | |
"type": "release", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_comment_": [ | |
"Please do not automate the download and installation of Forge.", | |
"Our efforts are supported by ads from the download page.", | |
"If you MUST automate this, please consider supporting the project through https://www.patreon.com/LexManos/" | |
], | |
"spec": 0, | |
"profile": "forge", | |
"version": "1.16.2-forge-33.0.61", | |
"json": "/version.json", |