Skip to content

Instantly share code, notes, and snippets.

View CAD97's full-sized avatar

Christopher Durham CAD97

View GitHub Profile
@CAD97
CAD97 / Basic_Emoji.txt
Last active February 21, 2024 04:12
script creating regex for RGI emoji sets from UTS#51
[©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏭⏮⏯⏱⏲⏸⏹⏺Ⓜ▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤🌥🌦🌧🌨🌩🌪🌫🌬🌶🍽🎖🎗🎙🎚🎛🎞🎟🏋🏌🏍🏎🏔🏕🏖🏗🏘🏙🏚🏛🏜🏝🏞🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳🕴🕵🕶🕷🕸🕹🖇🖊🖋🖌🖍🖐🖥🖨🖱🖲🖼🗂🗃🗄🗑🗒🗓🗜🗝🗞🗡🗣🗨🗯🗳🗺🛋🛍🛎🛏🛠🛡🛢🛣🛤🛥🛩🛰🛳]\u{FE0F}|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌌🌍🌎🌏🌐🌑🌒🌓-🌕🌖-🌘🌙🌚🌛🌜🌝🌞🌟🌠🌭-🌯🌰🌱🌲🌳🌴🌵🌷-🍊🍋🍌-🍏🍐🍑-🍻🍼🍾🍿🎀-🎓🎠-🏄🏅🏆🏇🏈🏉🏊🏏-🏓🏠-🏣🏤🏥-🏰🏴🏸-🐇🐈🐉-🐋🐌-🐎🐏🐐🐑🐒🐓🐔🐕🐖🐗-🐩🐪🐫-🐾👀👂-👤👥👦-👫👬👭👮-💬💭💮-💵💶💷💸-📫📬📭📮📯📰-📴📵📶📷📸📹-📼📿-🔂🔃🔄-🔇🔈🔉🔊-🔔🔕🔖-🔫🔬🔭🔮-🔽🕋-🕎🕐-🕛🕜-🕧🕺🖕🖖🖤🗻-🗿😀😁-😆😇😈😉-😍😎😏😐😑😒-😔😕😖😗😘😙😚😛😜-😞😟😠-😥😦😧😨-😫😬😭😮😯😰-😳😴😵😶😷-🙀🙁-🙄🙅-🙏🚀🚁🚂🚃-🚅🚆🚇🚈🚉🚊🚋🚌🚍🚎🚏🚐🚑-🚓🚔🚕🚖🚗🚘🚙🚚🚛-🚡🚢🚣🚤🚥🚦🚧-🚭🚮-🚱🚲🚳-🚵🚶🚷🚸🚹-🚾🚿🛀🛁-🛅🛌🛐🛑🛒🛕🛖🛗🛜🛝-🛟🛫🛬🛴-🛶🛷🛸🛹🛺🛻🛼🟠-🟫🟰🤌🤍-🤏🤐-🤘🤙-🤞🤟🤠-🤧🤨-🤯🤰🤱🤲🤳-🤺🤼-🤾🤿🥀-🥅🥇-🥋🥌🥍-🥏🥐-🥞🥟-🥫🥬-🥰🥱🥲🥳-🥶🥷🥸🥹🥺🥻🥼-🥿🦀-🦄🦅-🦑🦒-🦗🦘-🦢🦣🦤🦥-🦪🦫-🦭🦮🦯🦰-🦹🦺-🦿🧀🧁🧂🧃-🧊🧋🧌🧍-🧏🧐-🧦🧧-🧿🩰-🩳🩴🩵-🩷🩸-🩺🩻🩼🪀-🪂🪃-🪆🪇🪈🪐-🪕🪖-🪨🪩-🪬🪭-🪯🪰-🪶🪷-🪺🪻-🪽🪿🫀-🫂🫃-🫅🫎🫏🫐-🫖🫗-🫙🫚🫛🫠-🫧🫨🫰-🫶🫷🫸]
@CAD97
CAD97 / assert.rs
Created May 4, 2023 03:42
nounwind assertion helpers
#![allow(unused)]
use std::{
sync::{
atomic::{AtomicBool, Ordering::*},
Mutex,
},
thread::panicking,
};
@CAD97
CAD97 / sorbus.rs
Created May 4, 2023 00:21
Compact syntax tree draft experiment
//! sorbus
#![allow(unused)]
use std::marker::PhantomData;
use std::mem::transmute;
use std::num::NonZeroU16;
use std::ops::Index;
use std::ptr;
#[derive(Copy, Clone)]
@CAD97
CAD97 / lib.rs
Created May 4, 2023 00:19
TBool, ext assert, and stride experiments
#![allow(unused)]
use std::marker::PhantomData;
use std::ops::Deref;
use std::mem;
pub trait TypeEq<T: ?Sized> {}
impl<T: ?Sized> TypeEq<T> for T {}
pub struct TBool<const B: bool>;
@CAD97
CAD97 / coerce.rs
Created April 26, 2023 05:40
another coercion sketch
use std::future::Future;
use std::convert::Infallible;
#[derive(Debug, Copy, Clone)]
pub struct Coercion<T: ?Sized, U: ?Sized>(fn(*mut T) -> *mut U);
impl<T: ?Sized, U: ?Sized> Coercion<T, U> {
#[inline]
pub unsafe fn new(f: fn(*mut T) -> *mut U) -> Self {
Coercion(f)
@CAD97
CAD97 / dynit.rs
Created April 26, 2023 03:46
dynit, another experimental stable dyn*-alike
use std::future::Future;
use std::marker::PhantomData;
use std::ops::{Deref, DerefMut};
use std::pin::Pin;
use std::ptr::{drop_in_place, NonNull};
use std::task::{Context, Poll};
// example
fn main() {
@CAD97
CAD97 / notes.md
Last active April 10, 2023 22:52
Comments on the Proposed Rust Trademark Policy

Policy draft: https://docs.google.com/document/d/1ErZlwz9bbSI43dNo-rgQdkovm2h5ycuW220mWSOAuok/edit?usp=sharing Comment form: https://docs.google.com/forms/d/e/1FAIpQLSdaM4pdWFsLJ8GHIUFIhepuq0lfTg_b0mJ-hvwPdHa4UTRaAg/viewform

(Obvious) Disclaimer: The material in these notes have not been reviewed, endorsed, or approved of by the Rust Foundation, but they have been submitted and hopefully will be reviewed. The current policy can be seen here: https://foundation.rust-lang.org/policies/logo-policy-and-media-guide/

The comment, exactly as submitted, is reproduced below:


TL;DR: The proposed policy places significant new restrictions on the use of the Rust® name which are not present in the current policy. This extension to the policy is unnecessary and presupposes that a simple mention of the Rust® Programming Language could be misconstrued as implying endorsement from the Rust® Foundation.

I am the Miaou user with id 6845 and name "cad97" on https://miaou.dystroy.org
@CAD97
CAD97 / current-expanded.rs
Created August 31, 2018 03:57
A Vision for Pest
// builtin derives collapsed and other cleanup applied manually
mod parser {
use pest::{
error::Error,
iterators::{Pair, Pairs},
Parser,
};
pub struct MyParser;
@CAD97
CAD97 / octopath_traveler_skill_acquiry.json
Last active July 2, 2018 19:02
Octopath Traveler skill acquiry bingo goals
[
{ "name": "Ophilia" , "types": ["Ophilia"] },
{ "name": "Ophilia - Heal Wounds" , "types": ["Ophilia"] },
{ "name": "Ophilia - Holy Light" , "types": ["Ophilia"] },
{ "name": "Ophilia - Sheltering Veil" , "types": ["Ophilia"] },
{ "name": "Ophilia - Luminescence" , "types": ["Ophilia"] },
{ "name": "Ophilia - Heal More" , "types": ["Ophilia"] },
{ "name": "Ophilia - Reflective Veil" , "types": ["Ophilia"] },
{ "name": "Ophilia - Revive" , "types": ["Ophilia"] },
{ "name": "Cyrus" , "types": ["Cyrus"] },