let a: i32 = 1;
let b: f32 = 1.0;
let c: u8 = 255u8;
let d: i64 = 1_000_000i64;
let e: usize = "string".len();
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 spiril::unit::Unit; | |
use spiril::population::Population; | |
struct Creature { | |
// Структура вашего существа | |
} | |
impl Unit for Creature { | |
fn fitness(&self) -> f64 { | |
// Вычисление пригодности |
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 autograd as ag; | |
use autograd::ops::*; | |
use ag::tensor::Tensor; | |
use ag::ndarray::arr0; | |
use ag::ops::gradient_descent_ops::SGD; | |
fn value(a: &Tensor<f32>) -> f32 { | |
a.eval(&[]).unwrap().into_raw_vec()[0] | |
} |
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
/* | |
Shader: https://www.shadertoy.com/view/4ljGRd | |
Post: https://t.me/optozorax_dev/62 | |
Sorry for shitcode, this is just test | |
Based on `quad` example in miniquad | |
*/ | |
use miniquad::*; |
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
/* | |
Shader: https://www.shadertoy.com/view/3l23Rh | |
Post: https://t.me/optozorax_dev/62 | |
Sorry for shitcode, this is just test | |
Based on `quad` example in miniquad | |
*/ | |
use miniquad::*; | |
#[repr(C)] |
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
[package] | |
name = "fyass" | |
version = "0.1.0" | |
authors = ["optozorax <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
teloxide = { git = "https://github.com/teloxide/teloxide", branch = "dev" } | |
log = "0.4.8" | |
tokio = "0.2.11" |
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
-- Для каждого изделия найти среди поставлявшихся для него деталей те, | |
-- что имеют наименьшее число поставщиков. Изделия в списке должны быть | |
-- все. Вывести: номер изделия, номер детали, число поставщиков. | |
select jj.n_izd, z.n_det as min_post_izd, z.count as post_count | |
from j jj | |
left join lateral ( | |
select n_det, count | |
from ( | |
select p.n_det, ( | |
select count(distinct n_post) |
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::io::Write; | |
use std::io::stdout; | |
use std::io::stdin; | |
#[derive(Debug)] | |
struct A { | |
a: i32, | |
} | |
#[derive(Debug)] |
Some text
Меня бесят, когда люди используют вопрос следующего вида:
- Риторический
- "А в чём проблема сделать X, тебе что кто-то мешает?"
- "А ты сам добился тех же успехов, что и X, чтобы его критиковать?"
Все эти вопросы объединяет то, что они бесят того, кому их задают. Некоторые из них бесят тем, что задающий вопрос уже знает ответ на вопрос, либо может его спокойно вывести.
Более подробное объяснение на примере вопроса 2:
Я: %username1% насколько мне известно, ты не учишься в школе. Как так получилось и как ты к этому пришёл? Я думал что вообще невозможно не учиться в школе согласно закону итд