1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
CPU value | Memory value (MiB) |
---|---|
256 (.25 vCPU) | 512 (0.5GB), 1024 (1GB), 2048 (2GB) |
512 (.5 vCPU) | 1024 (1GB), 2048 (2GB), 3072 (3GB), 4096 (4GB) |
1024 (1 vCPU) | 2048 (2GB), 3072 (3GB), 4096 (4GB), 5120 (5GB), 6144 (6GB), 7168 (7GB), 8192 (8GB) |
2048 (2 vCPU) | Between 4096 (4GB) and 16384 (16GB) in increments of 1024 (1GB) |
4096 (4 vCPU) | Between 8192 (8GB) and 30720 (30GB) in increments of 1024 (1GB) |
vcpkg integrate install | |
vcpkg.exe install openssl:x64-windows-static-md |
use std::any::Any; | |
fn main() { | |
// Create boxes containing different types, boxed as Any | |
let integer_box: Box<dyn Any> = Box::new(42); | |
let string_box: Box<dyn Any> = Box::new(String::from("Hello")); | |
let float_box: Box<dyn Any> = Box::new(3.14f64); | |
// Demonstrate successful downcasting | |
println!("Downcasting examples:"); |
Create the app and download the necessary dependencies.
#[macro_export] | |
macro_rules! world { | |
( | |
$world:ident { | |
components { | |
$($name:ident: $type:ty => $mask:ident),* $(,)? | |
}$(,)? | |
$resources:ident { | |
$($resource_name:ident: $resource_type:ty),* $(,)? | |
} |
use std::collections::{HashMap, VecDeque}; | |
#[derive(Debug, Clone, PartialEq)] | |
pub enum Message { | |
Text(String), | |
Number(i64), | |
Binary(Vec<u8>), | |
Batch(Vec<Message>), | |
} |
impl_world! { | |
positions: Position => POSITION = 0, | |
velocities: Velocity => VELOCITY = 1, | |
gravities: Gravity => GRAVITY = 2, | |
healths: Health => HEALTH = 3, | |
damages: Damage => DAMAGE = 4, | |
} | |
pub fn main() { | |
let mut world = World::default(); |
#![no_std] | |
pub struct CircularBuffer<T, const N: usize> { | |
buffer: [T; N], | |
read_idx: usize, | |
write_idx: usize, | |
is_full: bool, | |
} | |
impl<T: Copy + Default, const N: usize> CircularBuffer<T, N> { |
use std::any::Any; | |
use std::collections::HashMap; | |
use std::marker::PhantomData; | |
// Generic handle type | |
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | |
pub struct Handle<T> { | |
id: usize, | |
_phantom: PhantomData<T>, | |
} |