I hereby claim:
- I am graysonhead on github.
- I am graysonhead (https://keybase.io/graysonhead) on keybase.
- I have a public key ASA9bHPYjtGoWTovWAHkPM3u1jhNOiX-0_SD-nqaGulAsAo
To claim this, I am signing this object:
| def simulate_car_leapfrog(dt, total_time): | |
| """Simulate car with Leapfrog integration""" | |
| time = 0 | |
| position = 0 | |
| # Initialize velocity at half-step back | |
| # Start with a half-step using Euler to bootstrap | |
| velocity_half = 0 | |
| accel_init = acceleration_curve(0) | |
| velocity_half = accel_init * (dt / 2) |
| python | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| def acceleration_curve(velocity): | |
| """ | |
| Realistic car acceleration that decreases with velocity. | |
| Models: engine power limits, air resistance, gearing | |
| """ | |
| max_accel = 10.0 # m/s^2 at low speed |
| Connection(ConnectionSettingsProxy(Proxy { inner: ProxyInner { inner_without_borrows: ProxyInnerStatic { dest_owner_change_match_rule: OnceLock(<uninit>), .. }, destination: BusName::WellKnown("org.freedesktop.NetworkManager"), path: ObjectPath("/org/freedesktop/NetworkManager/Settings/1"), interface: InterfaceName("org.freedesktop.NetworkManager.Settings.Connection"), property_cache: Some(OnceLock(<uninit>)), uncached_properties: {} } })) | |
| Connection(ConnectionSettingsProxy(Proxy { inner: ProxyInner { inner_without_borrows: ProxyInnerStatic { dest_owner_change_match_rule: OnceLock(<uninit>), .. }, destination: BusName::WellKnown("org.freedesktop.NetworkManager"), path: ObjectPath("/org/freedesktop/NetworkManager/Settings/2"), interface: InterfaceName("org.freedesktop.NetworkManager.Settings.Connection"), property_cache: Some(OnceLock(<uninit>)), uncached_properties: {} } })) | |
| Connection(ConnectionSettingsProxy(Proxy { inner: ProxyInner { inner_without_borrows: ProxyInnerStatic { dest_owner_change_match_rule: O |
| use crate::*; | |
| use bevy::prelude::*; | |
| use bevy_prototype_debug_lines::DebugLines; | |
| pub struct CelestialBodyPlugin; | |
| // The actual value is 0.00000000006672 m^3/kg/sec^2 | |
| const GRAVITY: f32 = 0.0000001; | |
| const DEFAULT_MASS: f32 = 1000.0; | |
| impl Plugin for CelestialBodyPlugin { |
I hereby claim:
To claim this, I am signing this object:
| pub async fn get_character_stats( | |
| db: DatabaseConnection, | |
| name: String, | |
| ) -> Result<Option<CharacterStats>, DbErr> { | |
| let start_time = Instant::now(); | |
| let character_info_result = CharacterPublicInfo::find() | |
| .filter(character_public_info::Column::CharacterName.eq(name)) | |
| .one(&db) | |
| .await?; | |
| match character_info_result { |
| # Example deployment for Jager. | |
| # 3x Galera database nodes (must not be located in same location) | |
| # 10x APIServer nodes | |
| # 1x harvester node, can coexist with apiserver nodes | |
| APISERVER_NODES = 10 | |
| HARVESTER_NODES = 1 | |
| GALERA_NODES = 3 | |
| class GaleraNode(KVMDomain): |
| import pytesseract | |
| from PIL import ImageGrab | |
| import cv2 | |
| import numpy as np | |
| import pyautogui | |
| def nothing(x): | |
| pass | |
| use crate::entity::prelude::*; | |
| use crate::entity::*; | |
| use sea_orm::ColumnTrait; | |
| use sea_orm::EntityTrait; | |
| use sea_orm::QueryFilter; | |
| use sea_orm::{DatabaseConnection, DbErr}; | |
| #[derive(Debug)] | |
| pub struct KillLossRatio { | |
| pub kills: usize, |