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
panic thread 'main' panicked at 'Thread count overflowed the configured max count. Thread index = 18446744073709551615, max threads = 4096.': /home/sc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sharded-slab-0.1.7/src/shard.rs:295 0: ss_common::setup::panic_log::panic_hook | |
at ./crates/lib/ss_common/src/setup/panic_log.rs:43:21 | |
1: core::ops::function::Fn::call | |
at /home/sc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:79:5 | |
2: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call | |
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/alloc/src/boxed.rs:1984:9 | |
3: std::panicking::rust_panic_with_hook | |
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/std/src/panicking.rs:841:13 | |
4: std::panicking::begin_panic_handler::{{closure}} | |
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/std/src/panicking.rs:706:13 |
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::{ | |
env, | |
fmt::{Debug, Pointer, Write}, | |
io, | |
}; | |
use tracing::{Instrument, Level, Subscriber, instrument::WithSubscriber, level_filters::LevelFilter, span}; | |
use tracing_appender::non_blocking::WorkerGuard; | |
use tracing_subscriber::{ | |
EnvFilter, | |
Layer, |
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
# generic with extends Interface | |
class PointableProtocol(Protocol): | |
x: Any | |
y: Any | |
def __init__(self, x: Any, y: Any) -> None: | |
pass |
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
test |
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
from IPython.terminal.embed import InteractiveShellEmbed | |
from IPython.core.interactiveshell import DummyMod | |
import sys | |
import mako.template | |
from mako import util, compat | |
# call - ${ invoke_ipython() } |
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
import qwe | |
qwe.dilda = ["sgushenka"] | |
qwe.ohuet() |
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
struct Yoba { | |
value: uint | |
} | |
impl Yoba { | |
fn new(value: uint) -> Yoba { | |
Yoba { value: value } | |
} |
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
extern mod extra; | |
use extra::arc::Arc; | |
use std::rand; | |
use std::vec; | |
fn pnorm(nums: &~[float], p: uint) -> float { | |
nums.iter().fold(0.0, |a,b| a+(*b).pow(&(p as float)) ).pow(&(1f / (p as float))) | |
} |
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 main() { | |
let nums = [0u, 1, 2, 3]; | |
let iter = nums.iter(); | |
let fil = iter.filter(|&x| x % 2 == 0); | |
let m : ~[uint] = fil.collect::<~[uint]>(); | |
} |