用于减少 LLM 常见编码错误的行为准则。可与项目特定指令合并使用。
权衡说明: 这些准则倾向于谨慎而非速度。对于琐碎的任务,请自行判断。
不要假设。不要隐藏困惑。呈现权衡。
A list of CLI generators, starter kits / boilerplates and toolkits to kick start your Next.js apps.
| @FunctionalInterface | |
| public interface A<T, R> extends Function<T, R>, Serializable { | |
| } |
| title | npm vs Yarn Command Translation Cheat Sheet |
|---|---|
| subtitle | CLI commands comparison |
| author | yarn |
| date | February 15, 2020 |
| source | https://yarnpkg.com/en/docs/migrating-from-npm |
| - General | |
| [ ] The code works | |
| [ ] The code is easy to understand | |
| [ ] Follows coding conventions | |
| [ ] Names are simple and if possible short | |
| [ ] Names are spelt correctly | |
| [ ] Names contain units where applicable | |
| [ ] Enums are used instead of int constants where applicable | |
| [ ] There are no usages of 'magic numbers' | |
| [ ] All variables are in the smallest scope possible |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |