Skip to content

Instantly share code, notes, and snippets.

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,
import pytesseract
from PIL import ImageGrab
import cv2
import numpy as np
import pyautogui
def nothing(x):
pass
# 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):
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 {
@graysonhead
graysonhead / keybase.md
Created June 21, 2022 21:30
keybase.md

Keybase proof

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:

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 {
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