Skip to content

Instantly share code, notes, and snippets.

View AntoineSebert's full-sized avatar
🚀
Orbiting around the Earth

Antoine Sébert AntoineSebert

🚀
Orbiting around the Earth
  • Weyland-Yutani Corp.
  • Copenhagen
  • 11:02 (UTC +02:00)
View GitHub Profile
@AntoineSebert
AntoineSebert / .rustfmt.toml
Created December 27, 2023 16:01
Custom rustfmt rules with explanations
# Densify the code horizontally, so more of it fits the screen
use_small_heuristics="Max"
# More flexible as spacing depends on tab size
hard_tabs=true
# Shorter code lines
use_field_init_shorthand=true
# Shorter code lines
use_try_shorthand=true
@AntoineSebert
AntoineSebert / cargo_clean_all.sh
Created August 7, 2023 09:27
Removes artifacts from projects in folders and subfolders recursively
function cargo_clean_all() {
# Description: Removes artifacts from projects in folders and subfolders recursively
# Usage: cargo_clean_all [<folder>]
if [ $# -eq 0 ]; then
TARGET_FOLDER="."
else
TARGET_FOLDER=$1
fi