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: |
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
*** Variables *** | |
${AGE: int} 1 | |
*** Test Cases *** | |
Use variables | |
# FAIL: 1 (integer) != 1 (string) | |
Should Be Equal ${AGE} 1 | |
# PASS | |
Should Be Equal ${AGE} ${1} |
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
# 1. ติดตั้ง | |
$brew tap microsoft/foundrylocal | |
$brew install foundrylocal | |
# 2. ดู Model ที่สนับสนุน | |
$foundry model list | |
🟢 Service is Started on http://localhost:5273, PID 28974! | |
Alias Device Task File Size License Model ID | |
----------------------------------------------------------------------------------------------- |
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
# SAM CLI | |
$sam --version | |
SAM CLI, version 1.138.0 | |
# Create Hello Project | |
$sam init --runtime java11 --dependency-manager maven --app-template hello-world --name sqs-lambda-test | |
NewerOlder