Skip to content

Instantly share code, notes, and snippets.

View Vrixyz's full-sized avatar
🏡
Working from home

Thierry Berger Vrixyz

🏡
Working from home
View GitHub Profile
Compiling bevy_winit v0.14.0-dev (C:\Users\thier\Documents\perso\bevy\crates\bevy_winit)
Compiling bevy_internal v0.14.0-dev (C:\Users\thier\Documents\perso\bevy\crates\bevy_internal)
Compiling bevy v0.14.0-dev (C:\Users\thier\Documents\perso\bevy)
Finished dev [unoptimized + debuginfo] target(s) in 16.70s
Running `C:\Users\thier\Documents\cargo_target_dir\debug\examples\load_gltf.exe`
2024-04-05T09:46:00.408592Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600X Six-Core Processor", core_count: "6", memory: "32.0 GiB" }
2024-04-05T09:46:00.423497Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-04-05T09:46:00.935850Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1050 Ti", vendor: 4318, device: 7298, device_type: DiscreteGpu, driv
(~6000 unrelevant lines skipped)
[crates\bevy_winit\src\lib.rs:370:11] event = AboutToWait
[C:\Users\thier\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.29.9\src\platform_impl\windows\event_loop\runner.rs:347:61] self.exit.get() = None
[crates\bevy_winit\src\lib.rs:370:11] event = NewEvents(
WaitCancelled {
start: Instant {
t: 508634.5047965s,
},
requested_resume: None,
Finished dev [unoptimized + debuginfo] target(s) in 0.57s
Running `C:\Users\thier\Documents\cargo_target_dir\debug\examples\load_gltf.exe`
2024-04-04T21:39:22.630952Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600X Six-Core Processor", core_count: "6", memory: "32.0 GiB" }
2024-04-04T21:39:22.643553Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-04-04T21:39:23.085231Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1050 Ti", vendor: 4318, device: 7298, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "536.23", backend: Vulkan }
[crates\bevy_winit\src\lib.rs:369:11] event = NewEvents(
Init,
)
[crates\bevy_winit\src\lib.rs:369:11] event = Resumed
[crates\bevy_winit\src\lib.rs:369:11] event = WindowEvent {
@Vrixyz
Vrixyz / gist:dcc6dfb773e7bb5070cc8e7c0c5eda11
Created March 5, 2023 20:55
bevy_jornet to bevy 0.10
jornet % cargo build
Updating git repository `https://github.com/bevyengine/bevy`
Updating crates.io index
error: failed to select a version for `async-channel`.
... required by package `bevy_render v0.9.0 (https://github.com/bevyengine/bevy?rev=30b29deaa9e07cebfd1f1dc5fdeb10318b8c0650#30b29dea)`
... which satisfies git dependency `bevy_render` of package `bevy_core_pipeline v0.9.0 (https://github.com/bevyengine/bevy?rev=30b29deaa9e07cebfd1f1dc5fdeb10318b8c0650#30b29dea)`
... which satisfies git dependency `bevy_core_pipeline` of package `bevy_internal v0.9.0 (https://github.com/bevyengine/bevy?rev=30b29deaa9e07cebfd1f1dc5fdeb10318b8c0650#30b29dea)`
... which satisfies git dependency `bevy_internal` of package `bevy v0.9.0 (https://github.com/bevyengine/bevy?rev=30b29deaa9e07cebfd1f1dc5fdeb10318b8c0650#30b29dea)`
... which satisfies git dependency `bevy` of package `bevy_jornet v0.3.1 (/Users/thierryberger/Documents/perso/jornet/bevy-jornet)`
versions that meet the requirements `^1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class WordsLoader
{
public static int wordMaximumLength = 50;
public static int numberOfLettersInAlphabet = 26;
public string wordsFilename = "Words-fr.txt";
#[derive(Serialize, Deserialize, Debug)]
struct NewCardForm {
answer_0: String,
answer_1: String,
answer_2: String,
lie_index: i32,
targets: Vec<String>,
}
enum NewCardFormError {
Parse,
#!/bin/sh
echo 'Not the source code, but a Lambda I hand-crafted in Rust for you, source code is not far away!' && curl -X POST -d "[1,[2,3]]" https://9b70o1kvzi.execute-api.us-east-2.amazonaws.com/default/rust-flatten
@Vrixyz
Vrixyz / rust_array.rs
Created January 10, 2019 18:36
Simple flatten
#[derive(Debug)]
enum Data<T> {
Value(T),
Array(Vec<Data<T>>),
}
impl<T> Data<T> {
fn flatten(self) -> Vec<T> {
match self {
Data::Value(v) => vec![v],
{
"info": {
"name": "perso",
"_postman_id": "fe126a01-46c0-7fe2-234e-91f3728a6151",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "login",