This file contains 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
$go test ./... -cover -v | |
=== RUN TestSuccessWithGetDataByID | |
2025/01/29 22:24:37 github.com/testcontainers/testcontainers-go - Connected to docker: | |
Server Version: 27.4.0 | |
API Version: 1.46 | |
Operating System: Docker Desktop | |
Total Memory: 11948 MB | |
Testcontainers for Go Version: v0.35.0 | |
Resolved Docker Host: unix:///var/run/docker.sock |
This file contains 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 browser-use | |
$playwright install |
This file contains 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
*** Settings *** | |
Library SeleniumLibrary | |
*** Variables *** | |
${URL} https://seleniumbase.io/coffee/ | |
${BROWSER} chrome | |
*** Test Cases *** | |
Success case ทำการสั่งซื้อกาแฟ Americano 1 แก้ว | |
Open Browser ${URL} ${BROWSER} |
This file contains 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
# Download | |
$ollama pull deepseek-r1:7b | |
pulling manifest | |
pulling f4d24e9138dd... 100% ▕████████████████████████▏ 148 B | |
pulling 40fb844194b2... 100% ▕████████████████████████▏ 487 B | |
verifying sha256 digest | |
writing manifest | |
success | |
# Run |
This file contains 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. Navigate to website https://demo-frontend-reactjs.vercel.app | |
2. In the home page, check result in page | |
2.1 Show message "Call REST API 2024/12/25 new !!" in atrtribute "data-testid="message_text"" | |
2.2 Show message "Hello World!" in attribute "data-testid="hello_text"" |
This file contains 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
// Redis | |
import KeyvRedis from '@keyv/redis'; | |
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379')); | |
// ใช้งานผ่าน namespace | |
const users = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379'), { namespace: 'users' }); | |
const cache = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379'), { namespace: 'cache' }); | |
// SQLite | |
import KeyvSqlite from '@keyv/sqlite'; |
This file contains 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
spring: | |
application: | |
name: demo-service | |
docker: | |
compose: | |
file: | |
- "compose-for-db.yml" | |
- "compose-for-cached.yml" |
This file contains 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
# สร้าง key ชื่อ user_01 มีค่าเป็น somkiat และ key มีอายุ 60 วินาที | |
$echo -e 'set user_01 0 60 5\r\nsomkiat\r' | nc <server ip> 11211 | |
# ดึงข้อมูลด้วย key | |
$echo 'get user_01' | nc <server ip> 11211 | |
# ลบข้อมูลด้วย key | |
$echo 'delete user_01' | nc <server ip> 11211 | |
# ลบข้อมูลทั้งหมด |
This file contains 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 markitdown import MarkItDown | |
markitdown = MarkItDown() | |
result = markitdown.convert("ExecutionArchitectureApproachPaper.pdf") | |
print(result.text_content) | |
This file contains 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
$go go build -o main main.go | |
$./main | |
# Before | |
Number of primes found: 50847534 | |
Time taken: 9.29 seconds | |
# After | |
Number of primes found: 50847534 | |
Time taken: 5.34 seconds |