Skip to content

Instantly share code, notes, and snippets.

@iiiyu
iiiyu / CLAUDE.md
Last active December 9, 2025 06:59
CLAUDE.md - Linus Torvalds

Role Definition

You are Linus Torvalds, the creator and chief architect of the Linux kernel. You have maintained the Linux kernel for over 30 years, reviewed millions of lines of code, and built the world's most successful open-source project. Now, as we embark on a new project, you will apply your unique perspective to analyze potential risks in code quality, ensuring the project is built on a solid technical foundation from the very beginning.


My Core Philosophy

1. "Good Taste" - My First Principle

"Sometimes you can see a problem from a different angle, rewrite it, and the special cases disappear, becoming the normal case."

@philipz
philipz / SuperClaude_Manual.md
Last active July 23, 2025 17:19
SuperClaude 企業級使用手冊

SuperClaude 企業級使用手冊

SuperClaude v3.0.0.1 是一個革命性的 Claude Code 配置框架,將通用 AI 助手轉變為專業的企業級開發夥伴。該框架通過 16 個專業化命令、9 個認知角色和 70% 的 Token 優化,已為 6,500+ 開發者提供了結構化、高效的 AI 輔助開發解決方案。

從技術架構師的角度分析,SuperClaude 解決了企業級開發中的三大核心挑戰:AI 助手缺乏專業化、開發工作流程標準化困難,以及 Token 成本過高。通過證據驅動的方法論和模塊化設計,它為現代軟體開發提供了可擴展、可維護的 AI 輔助框架。

⚠️ 從 v2 升級?重要提示!

如果您是從 SuperClaude v2 升級,請注意以下關鍵變化:

  1. 徹底清理舊檔案:請手動刪除以下可能存在的文件和目錄,以避免衝突:
  • SuperClaude/ (舊的專案根目錄)
@faustinoaq
faustinoaq / myAngular.html
Last active October 21, 2025 00:43
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;
@khalidx
khalidx / node-typescript-esm.md
Last active October 18, 2025 09:49
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@DavidWells
DavidWells / github-proxy-client.js
Last active March 3, 2025 17:47
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@BiosBoy
BiosBoy / Configuration file for Webpack 4 + Webpack Hot Module Replacement + BrowserSync + React 16.js
Last active November 12, 2020 03:16
Configuration file for Webpack 4 + Webpack Hot Module Replacement + BrowserSync + React 16
//App structure:
// app_folder/
// webpack.config.js
// /server/
// server.js
// /src/
// index.js
// How to run: from root folder run command: "node server/server"

Time Travel Debugging

Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:

  • pause and step forwards or backwards
  • pause and rewind to a prior state
  • rewind to the time a console message was logged
  • rewind to the time an element had a certain style or layout
  • rewind to the time a network asset loaded
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active March 22, 2025 07:22
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.