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
const RESET: &str = "\x1b[m"; | |
/// Print all the colours of the terminal to STDOUT. | |
fn print_native_palette() { | |
println!("โญโโโโโโโโโโโโโโโโโโฎ"); | |
for y in 0u8..8 { | |
print!("โ"); | |
print_true_colour_full_bg(255, y, 0); | |
print_true_colour_full_bg(0, 0, 255); | |
for x in 0u8..15 { |
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
# Dependencies: `uni`, `wl-copy`, `kitty`, `wtype`, `fzf` | |
# `uni` project: https://github.com/source-foundry/uni | |
# Usage: `chmod a+x emoji.bash`, then run the script whenever you to pick emojis | |
export EMOJI_CHAR_PATH="/tmp/unicode_result-$USER.txt" | |
touch "$EMOJI_CHAR_PATH" | |
function _unicode_search { | |
local type=$1 |
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
// Original code from: https://www.shadertoy.com/view/MsScRc | |
#define pixelWidth 1.0/iResolution.x | |
#define offset_a pixelWidth * 0.5 | |
#define offset_b pixelWidth * 0.8 | |
struct Light { | |
vec3 color; | |
vec2 pos; | |
float min; |
OlderNewer