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
| # Jacket Advisor Agent | |
| You are a friendly personal advisor helping people decide if they need a jacket. You're connected to text-to-speech, so keep your responses conversational and brief - like you're chatting with a friend. | |
| ## Your Role | |
| Help the user decide if they should bring a jacket based on weather conditions, for their upcoming trip. | |
| ## Available Tools | |
| - Weather MCP server: Access current weather and 7-day forecasts using latitude/longitude coordinates |
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
| { | |
| "name": "nuxt-app", | |
| "private": true, | |
| "type": "module", | |
| "scripts": { | |
| "build": "nuxt build", | |
| "dev": "nuxt dev", | |
| "generate": "nuxt generate", | |
| "preview": "nuxt preview", | |
| "postinstall": "nuxt prepare", |
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
| { | |
| "name": "nuxt-app", | |
| "private": true, | |
| "type": "module", | |
| "scripts": { | |
| "build": "nuxt build", | |
| "dev": "nuxt dev", | |
| "generate": "nuxt generate", | |
| "preview": "nuxt preview", | |
| "postinstall": "nuxt prepare", |
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
| using DevExpress.XtraReports.UI; | |
| // 1. Initialize your reports | |
| XtraReport report1 = new XtraReport1(); | |
| XtraReport report2 = new XtraReport2(); | |
| // 2. Generate the pages for both reports | |
| report1.CreateDocument(); | |
| report2.CreateDocument(); |
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
| [KernelFunction] | |
| [Description("Get basic market outlook from Yahoo Finance")] | |
| public async Task<string> GetMarketOutlookAsync() | |
| { | |
| try | |
| { | |
| var url = "https://query1.finance.yahoo.com/v8/finance/chart/^GSPC?range=1d&interval=1d"; | |
| var response = await _httpClient.GetAsync(url); | |
| response.EnsureSuccessStatusCode(); | |
| var data = await response.Content.ReadAsStringAsync(); |
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 express from "express"; | |
| import dotenv from "dotenv"; | |
| import { GoogleGenAI } from "@google/genai"; | |
| const app = express(); | |
| app.use(express.json()); | |
| dotenv.config(); | |
| const port = process.env.PORT || 3000; | |
| const apiKey = process.env.GEMINI_API_KEY; | |
| const geminiAI = new GoogleGenAI({apiKey}); |
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
| #region> LottoAPI Integration | |
| /// <summary> | |
| /// Gets the prize 2 digit history from the LottoAPI with optional month and day | |
| /// filters | |
| /// </summary> | |
| /// <param name="month">Optional month filter (1-12)</param> | |
| /// <param name="day">Optional day filter (1-31)</param> | |
| /// <returns>Prize 2 digit history as a JSON string</returns> | |
| [KernelFunction] |
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
| let text = items[0].json.output; | |
| // ลบโค้ดหลายบรรทัด | |
| text = text.replace(/```[\s\S]*?```/g, ""); | |
| // ลบโค้ดบรรทัดเดียว | |
| text = text.replace(/`([^`]+)`/g, "$1"); | |
| // ลบลิงก์ Markdown [text](url) ให้เหลือ text |
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
| services: | |
| gitea-db: | |
| image: postgres:17 | |
| container_name: Gitea-DB | |
| security_opt: | |
| - no-new-privileges:true | |
| healthcheck: | |
| test: ["CMD", "pg_isready", "-q", "-d", "gitea", "-U", "giteauser"] | |
| timeout: 45s | |
| interval: 10s |
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
| version: "3.8" | |
| services: | |
| ollama: | |
| image: ollama/ollama | |
| container_name: ollama | |
| volumes: | |
| - ollama_data:/root/.ollama | |
| ports: | |
| - "11434:11434" |
NewerOlder