Skip to content

Instantly share code, notes, and snippets.

View data-man's full-sized avatar
🖖
Open sources forever

Dmitry Atamanov data-man

🖖
Open sources forever
View GitHub Profile
@data-man
data-man / pastel.diff
Created August 4, 2024 09:15
More colors in David Peter's Pastel
diff --git a/src/cli/commands/list.rs b/src/cli/commands/list.rs
index 2c2de51..501c3fb 100644
--- a/src/cli/commands/list.rs
+++ b/src/cli/commands/list.rs
@@ -11,8 +11,9 @@ impl GenericCommand for ListCommand {
let sort_order = matches.value_of("sort-order").expect("required argument");
let mut colors: Vec<&NamedColor> = NAMED_COLORS.iter().collect();
- colors.sort_by_key(|nc| key_function(sort_order, &nc.color));
- colors.dedup_by(|n1, n2| n1.color == n2.color);
@data-man
data-man / gist:8aa76e38dacfffa944f292a002e2226d
Created September 15, 2023 12:51
libc-free C3 experiment
#!/bin/sh
c3c compile --nolibc --nostdlib main.c3 --emit-llvm --emit-asm -O0 "$@"