Ben Chuanlong Du's Blog

It is never too late to learn.

GitHub Alternatives

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

gitea

Gitea is a painless self-hosted all-in-one software development service, includes Git hosting, code review, team collaboration, package registry and CI/CD .

gitlab

GitLab is a DevOps platform that provides a …

Tips on Refactoring Rust Code

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://rust-analyzer.github.io/manual.html#structural-search-and-replace

cargo clippy fix

General Approach for Auto Refactoring

  1. use cargo build or cargo clippy to generate error msgs for a specific kind of issue …

Format Python Code Using Black

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

pip3 install -U black[jupter]

Usage

The following code formats Python files and Jupyter/Lab Notebooks under the current directory.

black ./

References