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
fn next_letter(input: &str) -> Option<(&str, char)> { | |
input | |
.chars() | |
.next() | |
.and_then(|letter| input.strip_prefix(letter).map(|input| (input, letter))) | |
} | |
fn next_value(input: &str) -> Option<(&str, Value)> { | |
next_digit(input) |
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
use super::*; | |
use bimber_core::{element_builder::ElementBuilder, web_sys::InputEvent, MouseEvent}; | |
use chrono::NaiveDate; | |
pub enum FlightBookerMessage { | |
SetMode(FlightBookerMode), | |
} | |
#[derive(Debug)] | |
pub enum FlightBookerMode { |
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
use std::{collections::BTreeMap, str::FromStr}; | |
type Error = String; | |
type Result<T> = std::result::Result<T, Error>; | |
const INPUT: &str = include_str!("./day7.txt"); | |
#[derive(Debug)] | |
struct File(String); |
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
Computer Information: | |
Manufacturer: ASUSTeK COMPUTER INC. | |
Model: TUF GAMING X570-PLUS (WI-FI) | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 9 3900X 12-Core Processor | |
CPU Family: 0x17 |
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
ard), currency_code: PLN }, description: "Zajebisty item mordo" }}: heartbreak::payments::pay_by_link::paysafe_card: sending RawNewPaymentRequest { | |
userid: 39, | |
shopid: 20, | |
amount: 2.0, | |
return_ok: Url { | |
scheme: "https", | |
cannot_be_a_base: false, | |
username: "", | |
password: None, | |
host: Some( |
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(Default)] | |
pub struct JsonmodelFormatLoader; | |
impl AssetLoader for JsonmodelFormatLoader { | |
fn load<'a>( | |
&'a self, | |
bytes: &'a [u8], | |
load_context: &'a mut bevy::asset::LoadContext, | |
) -> bevy::asset::BoxedFuture<'a, anyhow::Result<(), anyhow::Error>> { | |
Box::pin(async move { |
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
use bevy::core_pipeline::{ | |
draw_3d_graph, node, AlphaMask3d, Opaque3d, RenderTargetClearColors, Transparent3d, | |
}; | |
use bevy::prelude::*; | |
use bevy::reflect::TypeUuid; | |
use bevy::render::camera::{ActiveCameras, ExtractedCameraNames, RenderTarget}; | |
use bevy::render::render_asset::RenderAssets; | |
use bevy::render::render_graph::{NodeRunError, RenderGraph, RenderGraphContext, SlotValue}; | |
use bevy::render::render_phase::RenderPhase; | |
use bevy::render::render_resource::{ |
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
<script lang="ts"> | |
import { LANGUAGE_CHANGED_EVENT } from '@/user-settings-store'; | |
import { takeWhile, last } from 'lodash-es'; | |
import { onMount } from 'svelte'; | |
export let maxWidthPx = 99999; | |
export let marginPx = 8; | |
function textWidth(element: HTMLElement) { |
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
// somewhere in your project, create a svelte-jsx.d.ts file and add this: | |
declare namespace svelte.JSX { | |
interface HTMLAttributes<T> { | |
onchecked?: () => void; | |
onunchecked?: () => void; | |
} | |
} |
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
#!/usr/bin/env python3 | |
from dataclasses import dataclass | |
import math | |
def dbg(val): | |
print(val) | |
return val | |
def to_degrees(rad: float) -> float: |
NewerOlder