Skip to content

Instantly share code, notes, and snippets.

View theMackabu's full-sized avatar
😹
meow

Mack theMackabu

😹
meow
View GitHub Profile
@theoparis
theoparis / main.rs
Last active March 1, 2023 16:46
rust + hyper http dynamic routing
#![feature(async_closure)]
use crate::handler::router::handle;
use anyhow::Result;
use futures::future::FutureExt;
use handler::router::DynamicRouter;
use hyper::{
service::{make_service_fn, service_fn},
Body, Response, Server, StatusCode,
};
use matchit::Router;
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active June 2, 2025 16:57
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@pbaruns
pbaruns / DateTime
Last active January 31, 2023 17:34
Insert Date Time
/**
* The onOpen function runs automatically when the Google Docs document is
* opened. Use it to add custom menus to Google Docs that allow the user to run
* custom scripts. For more information, please consult the following two
* resources.
*
* Extending Google Docs developer guide:
* https://developers.google.com/apps-script/guides/docs
*
* Document service reference documentation: