2023-W07 李少的酒

李少的酒

Feb 13, 2023
周刊, 工具

图为李培楠获得了 IEM 卡托维兹站《星际争霸2》项目冠军,今晚给李少开酒!

恭喜 Time 代表中国拿到星际 2 世界级冠军,这也是中国电竞选手在《星际争霸2》电竞项目上夺得的首个世界冠军。当年高中的时候星际 2 简直是我做梦时都在玩的游戏,从十二年前在大陆发行当天开始,一直断断续续玩到今天,今年年初又遭遇了暴雪和网易解除合作,星际 2 命途多舛,时过境迁,物是人非,自己的国家服务器都没了,但是作为老玩家的我们看到 Time 此时还能够战胜多名韩国顶尖选手拿到世界冠军应该都会不禁猛男落泪。

从英雄远征到英雄归来,Time 花了五年,对 Time 印象最深的还是下面这个纪录片,Time 老爹在视频里哭得不成样子,有这样的家人在后面支持,也很难做不出事情。

时隔多年,有很多玩家今天回到这个视频下面去评论,看来很多人和我一样都记得这个时刻要给李少开香槟。

发现 #

https://mermaid.js.org/

用代码画图,直接看效果:

sequenceDiagram Alice->>+John: Hello John, how are you? Alice->>+John: John, can you hear me? John-->>-Alice: Hi Alice, I can hear you! John-->>-Alice: I feel great!

其源码是:

sequenceDiagram
    Alice->>+John: Hello John, how are you?
    Alice->>+John: John, can you hear me?
    John-->>-Alice: Hi Alice, I can hear you!
    John-->>-Alice: I feel great!

来个看起来复杂的:

sequenceDiagram participant web as Web Browser participant blog as Blog Service participant account as Account Service participant mail as Mail Service participant db as Storage Note over web,db: The user must be logged in to submit blog posts web->>+account: Logs in using credentials account->>db: Query stored accounts db->>account: Respond with query result alt Credentials not found account->>web: Invalid credentials else Credentials found account->>-web: Successfully logged in Note over web,db: When the user is authenticated, they can now submit new posts web->>+blog: Submit new post blog->>db: Store post data par Notifications blog--)mail: Send mail to blog subscribers blog--)db: Store in-site notifications and Response blog-->>-web: Successfully posted end end

代码似乎并不复杂:

sequenceDiagram
    participant web as Web Browser
    participant blog as Blog Service
    participant account as Account Service
    participant mail as Mail Service
    participant db as Storage

    Note over web,db: The user must be logged in to submit blog posts
    web->>+account: Logs in using credentials
    account->>db: Query stored accounts
    db->>account: Respond with query result

    alt Credentials not found
        account->>web: Invalid credentials
    else Credentials found
        account->>-web: Successfully logged in

        Note over web,db: When the user is authenticated, they can now submit new posts
        web->>+blog: Submit new post
        blog->>db: Store post data

        par Notifications
            blog--)mail: Send mail to blog subscribers
            blog--)db: Store in-site notifications
        and Response
            blog-->>-web: Successfully posted
        end
    end
Last Modified at Mar 12, 2024