Skip to content

Instantly share code, notes, and snippets.

View kkshinkai's full-sized avatar

Kk Shinkai kkshinkai

  • Peking, China
View GitHub Profile
@kkshinkai
kkshinkai / AGENTS.md
Last active May 16, 2026 23:52
Shinkai's AGENTS.md
  • Use English in repository artifacts. Use the user's language in chat. Only i18n locale files may contain non-English repository text.
  • Do not add features, refactor code, or make "improvements" beyond what was asked.
  • Do not reshape another abstraction's public API from the consumer side. A module that consumes an existing API must call that API directly instead of creating local wrappers, builders, adapters, aliases, predicates, validators, conversion helpers, or factory functions whose purpose is to make the consumed API look different, easier, shorter, or more convenient. If the consumed API has the wrong shape, is too verbose, lacks the needed public entry point, or requires repeated awkward setup, stop and report the required upstream API or boundary change instead of creating local glue.
  • A parameter is not a place to hide an unresolved design relationship. Do not add constructor parameters, method parameters, factory parameters, callbacks, lambdas, option-bag fields, context-object fields, or inje
@kkshinkai
kkshinkai / .editorconfig
Last active May 17, 2022 09:08
My EditorConfig file for C#
# EditorConfig file, for more options see:
#
# - Basic (Official) EditorConfig options: https://editorconfig.org
# - JetBrains Rider: https://www.jetbrains.com/help/rider/Using_EditorConfig.html
# - Visual Studio: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/
root = true
[*]
charset = utf-8
@kkshinkai
kkshinkai / reference-list.md
Last active January 22, 2022 13:06
A list of compiler technology related books, websites and tools.

Compiler Technology

Getting started

Frameworks

  • Roslyn : The .NET compiler platform SDK, a well-designed compiler framework.
  • Roslyn Quoter : Roslyn tool, exposing the AST (with trivia) of C# code.
@kkshinkai
kkshinkai / verify.sh
Created August 13, 2021 06:18
Verify a huge number of apps on macOS
# https://apple.stackexchange.com/questions/202169/how-can-i-open-an-app-from-an-unidentified-developer-without-using-the-gui/202172
sudo xattr -dr com.apple.quarantine `find /path/to/apps`