Skip to content

Instantly share code, notes, and snippets.

View TharinduDG's full-sized avatar

Tharindu Galappaththi TharinduDG

View GitHub Profile
@BillBarnhill
BillBarnhill / tide_test.rs
Created September 10, 2020 02:23
An example Tide unit test in Rust, with a Request and checked Response
#[cfg(test)]
mod tests {
#[async_std::test]
async fn index_page() -> tide::Result<()> {
use tide::http::{Url, Method, Request, Response};
let mut app = tide::new();
app.at("/").get(|_| async { Ok("Hello, world!") });
let url = Url::parse("https://example.com").unwrap();
@tomysmile
tomysmile / mac-setup-redis.md
Last active May 23, 2024 03:17
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis