(((x + min + |x - min|) / 2) + max - |((x + min + |x - min|) / 2) - max|) / 2
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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", |
The new Tailwind compiler is indeed quite fast, so you can use it for real-time SSR or something like that.
This example uses an existing @tailwindcss/node@next package,
but it seems setting up the compiler for a different runtime wouldn't be too difficult.
Check out the source code of @tailwindcss/node
# Install Tailwind v4 (experimental release)
This file contains hidden or 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
| { | |
| "$schema": "http://json-schema.org/draft-06/schema#", | |
| "$ref": "#/definitions/Schema", | |
| "definitions": { | |
| "Schema": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "assetIndex": { | |
| "$ref": "#/definitions/AssetIndex" |
