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
[user] | |
name = XXXX XXXX | |
email = xxxx@xxxx.com | |
[core] | |
excludesfile = /Users/monk/.gitignore_global | |
[alias] | |
st = status -s | |
ci = commit | |
br = branch | |
co = checkout |
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::time::Instant; | |
#[derive(Debug, PartialEq, PartialOrd, Clone)] | |
struct Num([u8; 6]); | |
impl Num { | |
fn from_i32(input: i32) -> Self { | |
let d0 = ((input / 100_000) % 10) as u8; | |
let d1 = ((input / 10_000) % 10) as u8; | |
let d2 = ((input / 1_000) % 10) as u8; |
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::fs; | |
use std::time::Instant; | |
#[derive(Debug, PartialEq)] | |
enum Mode { | |
Position, | |
Immediate, | |
} | |
impl Mode { |
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 rayon::prelude::*; | |
use std::fs; | |
use std::time::Instant; | |
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>; | |
#[derive(Debug, PartialEq)] | |
struct Asteroid { | |
x: i32, | |
y: i32, |
OlderNewer