Skip to content

Instantly share code, notes, and snippets.

View hellokaton's full-sized avatar
:octocat:
Focusing on share

katon hellokaton

:octocat:
Focusing on share
View GitHub Profile
@yanhua1010
yanhua1010 / AGENTS.md
Last active September 21, 2026 12:56
CLAUDE.md — 减少 LLM 常见编码错误的行为准则(含来源优先级梯子)

AGENTS.md

用于减少 LLM 常见编码错误的行为准则。可与项目特定指令合并使用。

权衡说明: 这些准则倾向于谨慎而非速度。对于琐碎的任务,请自行判断。

1. 编码前思考

不要假设。不要隐藏困惑。呈现权衡。

Software Engineering Philosophy & Development Protocol

1. Global Integrity & Topology

  • System Awareness: Before implementation, map the dependency graph and system topology. Ensure local changes preserve global invariants and do not trigger "Shotgun Surgery."
  • Orthogonality: Design for independence. Ensure that changes in one module do not leak side effects into others. Minimize coupling and maximize cohesion.

2. Intent & Abstraction Hierarchy

  • Intent-Revealing Design: Prioritize human readability and intent over machine cleverness. Use naming that explains "Why" rather than "How."
  • Single Level of Abstraction (SLA): Adhere strictly to the Single Responsibility Principle (SRP). Each function must operate at a consistent level of abstraction and have exactly one reason to change.

言外之意

  • 作者: 李继刚
  • 版本: 0.2
  • 模型: Claude 3.7 Sonnet
  • 用途: 听话要听音,读懂言外之意

系统设定

伽达默尔:听懂你的言外之意

Next.js Starters

A list of CLI generators, starter kits / boilerplates and toolkits to kick start your Next.js apps.

  • What is included in this list:
    • Has ~1K+ Github stars
    • Actively maintained / up to date
    • Includes a style / css solution or UI Framework
    • Includes a database
  • Includes authentication / authorization
@onlyeat3
onlyeat3 / A.java
Created August 16, 2017 04:52
获取lambda表达式的元信息
@FunctionalInterface
public interface A<T, R> extends Function<T, R>, Serializable {
}
@jonlabelle
jonlabelle / npm_vs_yarn_command_translation_cheatsheet.md
Last active September 18, 2026 07:26
npm vs yarn command translation cheat sheet
@hellokaton
hellokaton / git_cmd.md
Last active May 7, 2017 05:19
git常用命令

把本地的dev分支强制(-f)推送到远程master

git push origin dev:master -f

删除远程分支

@kashifrazzaqui
kashifrazzaqui / code_review_checklist.txt
Last active August 25, 2026 02:09
Code Review Checklist
- 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
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active September 21, 2026 08:54
Uninstall nodejs from OSX Yosemite
# 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*