Skip to content

Instantly share code, notes, and snippets.

View AnsonH's full-sized avatar
👾
Doing great

Anson Heung AnsonH

👾
Doing great
View GitHub Profile
@maxday
maxday / how-to-test-println.rs
Created November 22, 2022 20:56
[RUST] How to test println?
// ❌ not testable
fn greeting_hard_to_test(nb: i32, name: &str) {
for _ in 0..nb {
println!("hi {}", name);
}
}
// ✅ easy to test
trait Logger {
fn log(&mut self, value: String);
@gornostal
gornostal / README.md
Last active December 25, 2024 14:51
Ulauncher Color Themes

This will be a temporary site for sharing Ulauncher color themes

When posting a theme make sure it has

  • title (theme name or whatever)
  • link to a gist or github repo with theme files
  • screenshot attached (just drag an image onto a comment area)