Public Notes

Browse publicly shared notes from the community

# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra

# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra

Aug 29, 2026

# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra

# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra

Aug 29, 2026

DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a

DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a

Aug 29, 2026

RUNNING:$ python main.pyCREATE USER$ curl -X 'POST' 'http://127.0.0.1:8000/users/?name=John'RESPONSE{ "id": 1, "name": "John"}CREATE POST WITH ID:1$ c

RUNNING:$ python main.pyCREATE USER$ curl -X 'POST' 'http://127.0.0.1:8000/users/?name=John'RESPONSE{ "id": 1, "name": "John"}CREATE POST WITH ID:1$ c

Aug 29, 2026

Here’s a clear, structured explanation of what your FastAPI + SQLAlchemy async application is doing. I’ll walk through each part so you understand how

Here’s a clear, structured explanation of what your FastAPI + SQLAlchemy async application is doing. I’ll walk through each part so you understand how

Aug 29, 2026

RUNNING$ uvicorn main:app --reloadREQUESTcurl -X POST http://127.0.0.1:8000/ask \-H "Content-Type: application/json" \-d '{"question": "What is RAG?"}

RUNNING$ uvicorn main:app --reloadREQUESTcurl -X POST http://127.0.0.1:8000/ask \-H "Content-Type: application/json" \-d '{"question": "What is RAG?"}

Aug 29, 2026

Here’s a clear, structured explanation of what your RAG app does, how each file works, and how the pieces fit together — without repeating code, but m

Here’s a clear, structured explanation of what your RAG app does, how each file works, and how the pieces fit together — without repeating code, but m

Aug 29, 2026

翌日清早,冷絮云换了一身素净的青灰色布裙,将乌发简单绾了个髻,只插了一支木簪,又用脂粉将脸色涂得暗淡了几分,看起来活脱脱一个寻常人家的丫鬟。冷荷站在旁边看得目瞪口呆:“主子……您这是做什么?”“出门办事,低调些好。”冷絮云对着铜镜左右照了照,满意地点了点头,“你在府里守着,若有人问起,就说我在房里打

翌日清早,冷絮云换了一身素净的青灰色布裙,将乌发简单绾了个髻,只插了一支木簪,又用脂粉将脸色涂得暗淡了几分,看起来活脱脱一个寻常人家的丫鬟。冷荷站在旁边看得目瞪口呆:“主子……您这是做什么?”“出门办事,低调些好。”冷絮云对着铜镜左右照了照,满意地点了点头,“你在府里守着,若有人问起,就说我在房里打

Aug 28, 2026

主人你...你不要再朝喵喵了!喵喵好..好疼..`(*>﹏<*)′我...我喜欢你喵!

主人你...你不要再朝喵喵了!喵喵好..好疼..`(*>﹏<*)′我...我喜欢你喵!

Aug 28, 2026

DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a

DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a

Aug 28, 2026