Inspired by and is somehow way worse.
A simple force-directed graph algorithm ported to Rust, copied from here:
This is a variant of the Exploding Kittens game rules, using regular playing cards
- 1 deck: 3 to 8 players
- 2 decks: up to 16 players
The last survivor wins the game. If you draw a Bomb card and don't have a Disarm card, you die.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client_id": "openidconnect.net", | |
"redirect_uris": ["https://openidconnect.net/callback"], | |
"grant_types": ["authorization_code"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Importing this modules will configure the global undici agent, which is used to provide | |
* global `fetch()` support, to use an http proxy if present during development. Unfortunately | |
* undici doesn't come with this functionality so we implement a solution that is not fully | |
* correct as to the way that proxy environment variables are supposed to be parsed. | |
* | |
* This only goes into effect during development, though, and it's functional enough for that | |
* purpose. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct LuaSingletons { | |
singletons: Rc<AtomicCell<HashMap<usize, Box<dyn Any>>>>, | |
} | |
impl Default for LuaSingletons { | |
fn default() -> Self { | |
Self { | |
singletons: Rc::new(AtomicCell::new(HashMap::default())), | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::ptr::NonNull; | |
use bones_framework::prelude::borrow::{AtomicBorrow, AtomicBorrowMut}; | |
use crate::prelude::*; | |
/// Extension trait over [`Arc<AtomicCell>`] to allow obtaining a `'static` borrow guard. | |
pub trait ArcAtomicCellExt<T> { | |
fn lock_static(self) -> ArcRef<T>; | |
fn lock_static_mut(self) -> ArcRefMut<T>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use paste::paste; | |
use std::{cell::RefCell, marker::PhantomData, rc::Rc}; | |
/// Trait that allows you to determine what the type of something would be if you changed its | |
/// lifetime. | |
/// | |
/// It is not recommended to implement this trait yourself, if not necessary. | |
/// | |
/// You may use the [`impl_WithLifetime`] macro to safely implement this for types with | |
/// a single lifetime parameter, and it is automatically implemented for [`&T`] and [`&mut T`]. |
Observations of common license obligations in regards to what is necessary to account for when distributing an application built on /open-source software with various licenses.
Must give give a copy of the license.
- This "license" is defined as "the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--theme-style: dark; | |
--main-font-family: "Fira Sans"; | |
--main-font-size: normal; | |
--tree-font-family: "Fira Sans"; | |
--tree-font-size: 0.9em; | |
--detail-font-family: "Fira Sans"; |
NewerOlder