GithubHelp home page GithubHelp logo
enum Proj {
    Coding(bool),
    Reading(bool),
    Writing(bool),
    FocusOnLearning(bool),
    ToSleepAtTime(bool),
}
impl Proj {
    fn behavir(thought: Self) -> String {
        match thought {
            Proj::Coding(true) => "😢又是没能力却硬推项目的一天".to_string(),
            Proj::Reading(true) => "🥰做阅读理解了,真好".to_string(),
            Proj::Writing(true) => "😎开始写作了,不错".to_string(),
            Proj::FocusOnLearning(true) => "✍️专注学习!".to_string(),
            Proj::ToSleepAtTime(true) => "🛏️按时睡觉".to_string(),
            _ => "什么?我又摆了?".to_string(),
        }
    }
    fn what_is_the_proj_condition() -> String {
        "😞当然是还没做完咯,想要成为绝不死线佬".to_string()
    }
    fn what_time_is_now() -> String { "🌃凌晨2点".to_string() }
}
fn loop_life() -> String { "🥳快进到下一天".to_string() }

fn main() {
    Proj::behavir(Proj::Coding(true));
    Proj::what_is_the_proj_condition();
    Proj::what_time_is_now();
    loop_life();
}

Coldsu's Projects

cold-su icon cold-su

Config files for my GitHub profile. CC BY-NC-ND 4.0

coldsu-playground icon coldsu-playground

This is my repo to play with, which means there are only something useless. 随便玩玩,有脑洞就尝试去实现,总之这里是“废纸篓”。

nvim icon nvim

My nvim cfg. 我的neovim配置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.