Skip to content

Instantly share code, notes, and snippets.

View raphael-brand's full-sized avatar
🏠
Working from home

Raphael raphael-brand

🏠
Working from home
View GitHub Profile
@raphael-brand
raphael-brand / rock-paper-scissor.rs
Created March 9, 2023 18:52
Rust - Rock Paper Scissors
let result = vec![
("paper", "paper"),
("paper", "scissor"),
("paper", "stone"),
("scissor", "paper"),
("scissor", "scissor"),
("scissor", "stone"),
("stone", "paper"),
("stone", "scissor"),
("stone", "stone"),
@raphael-brand
raphael-brand / rust-tools.md
Created March 30, 2023 15:32
Rust - recommendations
@raphael-brand
raphael-brand / main.rs
Created April 5, 2023 17:06
Tide Web Application - main file
use async_std::path::PathBuf;
use simple_tmpl_lib::TemplateEngine;
use tide::prelude::json;
use tide::Response;
use tide::StatusCode;
#[derive(Debug, serde::Serialize)]
struct MyError {
message: String,
}
@raphael-brand
raphael-brand / git-hook-add-copyright-to-modified-file.sh
Last active April 7, 2023 10:08
Git Hook - "pre commit" - Add Copyright To Modified File