This file contains 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
{ | |
"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", |
This file contains 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(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], |
This file contains 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
#!/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 |
This file contains 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(Serialize, Deserialize, Debug)] | |
struct NewCardForm { | |
answer_0: String, | |
answer_1: String, | |
answer_2: String, | |
lie_index: i32, | |
targets: Vec<String>, | |
} | |
enum NewCardFormError { | |
Parse, |
This file contains 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
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"; |
This file contains 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
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 |
This file contains 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
Finished dev [unoptimized + debuginfo] target(s) in 0.57s | |
Running `C:\Users\thier\Documents\cargo_target_dir\debug\examples\load_gltf.exe` | |
[2m2024-04-04T21:39:22.630952Z[0m [32m INFO[0m [2mbevy_diagnostic::system_information_diagnostics_plugin::internal[0m[2m:[0m SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600X Six-Core Processor", core_count: "6", memory: "32.0 GiB" } | |
[2m2024-04-04T21:39:22.643553Z[0m [32m INFO[0m [2mbevy_winit::system[0m[2m:[0m Creating new window "App" (Entity { index: 0, generation: 1 }) | |
[2m2024-04-04T21:39:23.085231Z[0m [32m INFO[0m [2mbevy_render::renderer[0m[2m:[0m 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 { |
This file contains 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
(~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, |
This file contains 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
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` | |
[2m2024-04-05T09:46:00.408592Z[0m [32m INFO[0m [2mbevy_diagnostic::system_information_diagnostics_plugin::internal[0m[2m:[0m SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "AMD Ryzen 5 2600X Six-Core Processor", core_count: "6", memory: "32.0 GiB" } | |
[2m2024-04-05T09:46:00.423497Z[0m [32m INFO[0m [2mbevy_winit::system[0m[2m:[0m Creating new window "App" (Entity { index: 0, generation: 1 }) | |
[2m2024-04-05T09:46:00.935850Z[0m [32m INFO[0m [2mbevy_render::renderer[0m[2m:[0m AdapterInfo { name: "NVIDIA GeForce GTX 1050 Ti", vendor: 4318, device: 7298, device_type: DiscreteGpu, driv |