This file contains hidden or 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
local config = { | |
-- Configure AstroNvim updates | |
updater = { | |
remote = "origin", -- remote to use | |
channel = "nightly", -- "stable" or "nightly" | |
version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) | |
branch = "main", -- branch name (NIGHTLY ONLY) | |
commit = nil, -- commit hash (NIGHTLY ONLY) | |
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only) |
This file contains hidden or 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
#[derive(Debug, PartialEq, Eq, Hash, Clone)] | |
enum TreasureType { | |
// ... | |
} | |
#[derive(Debug, Clone)] | |
struct Treasure { | |
// ... | |
} |
This file contains hidden or 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
// Dragon Treasure Hoard Manager | |
// | |
// Problem Statement: | |
// You're writing software for dragons to manage their treasure hoards. | |
// Implement a system that allows dragons to: | |
// 1. Add different types of treasures to their hoard (gold coins, gems, magical artifacts) | |
// 2. Calculate the total value of their hoard | |
// 3. Find the rarest items in their collection | |
// 4. Trade items with other dragons |