X coordinate is Date !
Archlinux - An OS in kiss way
packer - An arch user repository manager
tig - A command line git viewer (C)
zsh - one of cool shell (c?)
qtile - a hackable tile windows manger (python)
neovim - a text editor
python - a good script language (C)
json - a data format
Redox is a Unix-like Operating System written in Rust, aiming to bring the innovations of Rust to a modern microkernel and full set of applications.
Too hard to me
I use it, it's good and nothing need to be fixed or enhanced.
Window Tiling For The Win. A tiling window manager written in Rust
This is a simple graphical user interface for Neovim. Where possible there are some graphical improvements, but it should act functionally like the terminal UI.
It is really cool
RON? what is this?
A little bit crazy?
Efficacy &
Safe
use Rust
"fatal error" by kerolic is licensed under CC BY-NC-SA 2.0
fn checked_division(dividend: i32, divisor: i32) -> Option<i32> {
if divisor == 0 {
None
} else {
Some(dividend / divisor)
}
}
fn sqrt(x: f64) -> Result<f64, &'static str> {
if x < 0.0 {
Err("Do not sqrt the negative number")
} else {
Ok(x.sqrt())
}
}
"DSCF2319.JPG" by em978 is licensed under CC BY-NC 2.0
"6148-336-448_Server_room_cabling_nightmare" by DrJohnBullas is licensed under CC BY-NC-ND 2.0
let quotient = checked_division(a, b).unwrap()
let quotient = checked_division(a, b).unwrap_or_default()
let quotient = checked_division(a, b).unwrap_or(1)
let quotient = checked_division(a, b).expect("Message")
Click
me !
let root = sqrt(x).ok()
let root = sqrt(x).err()
let root = sqrt(x).or(sqrt(-x))
match checked_division(a, b) {
Some(i) => { ... },
None => {...}
}
match sqrt(a) {
Ok(i) => { ... },
Err(e) => {...}
}
if let Some(r) = checked_division(a, b) {
r
}
if checked_division(a, b).is_none() {
}
if checked_division(a, b).is_some() {
}
if let Ok(r) = sqrt(a) {
r
}
if let Err(e) = sqrt(a) {
e
}
if sqrt(a).is_ok() {
}
if sqrt(a).is_err() {
}
"IMG_3461" by Jemimus is licensed under CC BY 2.0
let char_list = vec!['c', 'o', 's', 'c', 'u', 'p'];
let mut sentence = char_list;
sentence.push('.');
println!("{:?}", sentence);
//println!("{:?}", char_list);
let char_list = vec!['c', 'o', 's', 'c', 'u', 'p'];
{
let mut sentence = char_list;
sentence.push('.');
println!("{:?}", sentence);
}
println!("{:?}", char_list); // not work
use std::default::Default;
#[derive(Debug)]
struct Car {
gas: i32,
gas_consumption: i32
}
impl Car {
fn try_to_go(&mut self, mile: i32) -> Result<i32, &'static str> {
...
}
}
coding
cargo check
cargo test
You also can try neovide