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
[package] | |
name = "tmp-phjhjr" | |
version = "0.1.0" | |
authors = ["o0Ignition0o <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
anyhow = "1.0.40" |
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
[package] | |
name = "tmp-phjhjr" | |
version = "0.1.0" | |
authors = ["o0Ignition0o"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
anyhow = "1.0.40" |
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
[package] | |
name = "bastion_probe_test" | |
version = "0.1.0" | |
authors = ["o0Ignition0o <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
bastion = { git = "https://github.com/bastion-rs/bastion.git", features = ["tokio-runtime"] } | |
tokio = { version = "1.4", features = ["time", "macros"] } | |
url = "2.2" |
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
use async_std::task; | |
use bastion::{blocking, context::BastionContext, msg, prelude::ChildrenRef, Bastion}; | |
mod prime_number { | |
use std::{ | |
iter, | |
time::{Duration, Instant}, | |
}; | |
#[derive(Debug)] |
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
// destructuring | |
const monPerso = { | |
nom: "Jeremy", | |
lvl: 42, | |
classe: "mage" | |
}; | |
console.log(monPerso.classe) | |
console.log(monPerso.lvl) |
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
use std::iter; | |
// in order to determine if n is prime | |
// we will use a primality test. | |
// https://en.wikipedia.org/wiki/Primality_test#Pseudocode | |
fn is_prime(n: u128) -> bool { | |
if n <= 3 { | |
n > 1 | |
} else if n % 2 == 0 || n % 3 == 0 { | |
false |
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
use std::iter; | |
// in order to determine if n is prime | |
// we will use a primality test. | |
// https://en.wikipedia.org/wiki/Primality_test#Pseudocode | |
fn is_prime(n: u128) -> bool { | |
if n <= 3 { | |
n > 1 | |
} else if n % 2 == 0 || n % 3 == 0 { | |
false |
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
fn fib_nth(n: usize) -> usize { | |
if n == 0 || n == 1 { | |
n | |
} else { | |
fib_nth(n - 1) + fib_nth(n - 2) | |
} | |
} | |
async fn fibsum(req: tide::Request<()>) -> String { | |
use std::time::Instant; |
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
diff --git a/.gitignore b/.gitignore | |
index 785b5da6..b17d9aac 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -358,11 +358,14 @@ xcuserdata/ | |
!*.xcworkspace/contents.xcworkspacedata | |
/*.gcno | |
+# Unity | |
/Unity/UnityDemo/Library |
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
Homebrew build logs for llvm-hs/llvm/llvm-5.0 on macOS 10.15.2 | |
Build date: 2020-01-16 21:09:26 |
NewerOlder