Nothing Special   »   [go: up one dir, main page]

Skip to content
View jrycw's full-sized avatar

Block or report jrycw

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
jrycw/README.md

Hi there 👋

import asyncio
import random
from itertools import count

cnt = count()
whoami = ["Simulation Engineer", "Python Developer", "Rust Enthusiast"]


async def describe(sth: str) -> str:
    await asyncio.sleep(random.random() / 10)
    print(sth)
    return sth


async def _main():
    print(f"Cycle {next(cnt)}: ")
    descriptions = [describe(me) for me in whoami]
    tasks = [asyncio.create_task(description) for description in descriptions]
    await asyncio.gather(*tasks)
    print()


async def main() -> None:
    while True:
        await _main()


if __name__ == "__main__":
    asyncio.run(main())
Cycle 0:
Simulation Engineer
Python Developer
Rust Enthusiast

Cycle 1:
Rust Enthusiast
Simulation Engineer
Python Developer

Cycle 2:
Python Developer
Rust Enthusiast
Simulation Engineer
...

Pinned Loading

  1. posit-gt-2024 posit-gt-2024 Public

    Euro NCAP Safety Ratings - 2023

    Jupyter Notebook 4

  2. edgedb-ia edgedb-ia Public

    EdgeDB learning material in Traditional Chinese.

    EdgeQL 3

  3. fasthtml-svcs-edgedb-mvp fasthtml-svcs-edgedb-mvp Public

    MVP: EdgeDB and FastHTML Integration with svcs

    Python 1

  4. rust-tw/book-tw rust-tw/book-tw Public

    Rust 程式設計語言(正體中文翻譯)

    Rust 279 69

  5. py10wings py10wings Public

    The repo for https://ithelp.ithome.com.tw/2023ironman

    Python 1

  6. ithome2022-cae-ansa-lsdyna ithome2022-cae-ansa-lsdyna Public

    The repo for https://ithelp.ithome.com.tw/2022ironman

    Python 7 3