Ben Chuanlong Du's Blog

It is never too late to learn.

SQL Style And Formatter

Command-line Tools

sleek

Sleek is a CLI tool for formatting SQL. It helps you maintain a consistent style across your SQL code, enhancing readability and productivity.

sqlfluff

The command sqlfluff fix can be used to fix issues (including formatting issues) in SQL code. It can be used as a tool to format SQL code. However, sqlfluff fix

Tips on Cargo

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

Create a Project

cargo init
cargo new project_name
cargo new --lib project_name

Install a Rust Crate (Package)

Install a Rust crate from GitHub (the default branch).

cargo install --git https://github …

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

Format a Disk on Linux

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

  1. Locate the right disk to operate on. A few commands might help you. For example, you can use the command ls /dev/sd* to list all hard drives and the command …