Skip to content

Instantly share code, notes, and snippets.

View WhiteMinds's full-sized avatar
🎯
Focusing

WhiteMind WhiteMinds

🎯
Focusing
View GitHub Profile
@WhiteMinds
WhiteMinds / Bash Script: Refactor resources used by a single component into the component's own folder to make it more cohesive.md
Last active November 8, 2023 03:05
Bash Script: Refactor resources used by a single component into the component's own folder to make it more cohesive

in WSL Ubuntu

asset_dir="./src/assets" 
code_dir="./src"

find "$asset_dir" -name "*.svg" -o -name "*.png" -o -name "*.gif" | 
  sed 's@'"$asset_dir"'/@@g' |
  xargs -I{} sh -c '
    asset_dir="./src/assets" 
 filename={}
@WhiteMinds
WhiteMinds / Remove unused resource files.md
Last active November 8, 2023 03:02
Remove unused resource files

in WSL Ubuntu

find ./src/assets | sed 's/\.\/src\///g' | xargs -I {} sh -c 'grep -rq {} src || rm ./src/{}'
@WhiteMinds
WhiteMinds / index.md
Last active March 5, 2024 13:47
我的开发哲学与实践整理

写在前面

  1. 本文的有一些哲学是摘自互联网中他人所撰写的,还有一些是与同行探讨获得的建议,其中一部分建议来自 bolasblack
  2. 本文主要针对多人协作开发的大型项目的场景,并且是基于 Magickbase 的一些项目进行的思考
  3. 本文默认读者是具备一定英文读写能力和开发能力的开发者
  4. 不要只是去背下这些规则,而是要尝试理解它们的意图(解决什么问题)和手段(怎么解决)

开发哲学(理念)

  1. 思想很重要,思想会指导你如何开发、遇到问题时做出怎样的选择(做决策)