This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ollama run gemma3:270m | |
| pulling manifest | |
| pulling 29005e200100: 22% ▕███████████ ▏ 52 MB/241 MB 6.1 MB/s 30s | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ทำการติดตั้งและ config Java 25 :: https://jdk.java.net/25/ | |
| $javac -version | |
| javac 25 | |
| $java -version | |
| openjdk version "25" 2025-09-16 | |
| OpenJDK Runtime Environment (build 25+35-3488) | |
| OpenJDK 64-Bit Server VM (build 25+35-3488, mixed mode, sharing) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update go 1.25 | |
| $go env -w GOTOOLCHAIN=go1.25.0 | |
| $go version | |
| go version go1.25.0 darwin/arm64 | |
| # เปิด Go doc | |
| $go doc -http | |
| doc: Documentation server listening on addr http://localhost:61699 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Install | |
| $npm install -g @byterover/cipher | |
| // Verify | |
| $cipher --version | |
| 0.1.1 | |
| // Config API Key for OpenAI in file .env | |
| OPENAI_API_KEY=your_openai_api_key | |
| ANTHROPIC_API_KEY=your_anthropic_api_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are an expert at creating Product Requirements Document(PRD) based on the content provided in [Requirements] section. | |
| List of topics in PRD | |
| 1. XXX | |
| 2. XXX | |
| 3. XXX | |
| 1. XXX | |
| [Requirements] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http from "k6/http"; | |
| import { check } from "k6"; | |
| export const options = { | |
| stages: [ | |
| { duration: "30s", target: 10 }, | |
| { duration: "3m", target: 10 }, | |
| { duration: "30s", target: 0 }, | |
| ], | |
| tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Now that all the files are created, I will run the tests to verify the implementation. | |
| ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
| │ ⊷ Shell npx jest (Run tests with jest.) │ | |
| │ │ | |
| │ ... first 5 lines hidden ... │ | |
| │ PASS routes/userRoutes.test.js │ | |
| │ GET /users/:id │ | |
| │ ✓ should return user details for a valid ID (19 ms) │ | |
| │ ✓ should return 404 for a non-existent user ID (4 ms) │ | |
| │ ✓ shoul |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from docling.document_converter import DocumentConverter | |
| source = "./page_1.pdf" | |
| converter = DocumentConverter() | |
| doc = converter.convert(source).document | |
| print(doc.export_to_markdown()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ติดตั้ง | |
| $pip install fastapi | |
| $pip install py-pglite | |
| $pip install sqlmodel | |
| $pip install pytest | |
| $pip install coverage | |
| # Run test and coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| import os | |
| from mistralai import Mistral | |
| def encode_pdf(pdf_path): | |
| """Encode the pdf to base64.""" | |
| try: | |
| with open(pdf_path, "rb") as pdf_file: | |
| return base64.b64encode(pdf_file.read()).decode('utf-8') | |
| except FileNotFoundError: |