- Python Version Check
python -V
Python 3.12.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
import Anthropic from '@anthropic-ai/sdk'; | |
import { Client } from '@modelcontextprotocol/sdk/client/index.js'; | |
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'; | |
import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types.js'; | |
const client = new Anthropic(); // gets API Key from environment variable ANTHROPIC_API_KEY | |
type MCPServersConfig = { | |
mcpServers: Record<string, { command: string; args: string[]; env?: Record<string, string> }>; | |
}; |
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
#!/usr/bin/env -S npm run tsn -T | |
import Anthropic from '@anthropic-ai/sdk'; | |
import { Client } from '@modelcontextprotocol/sdk/client/index'; | |
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio'; | |
import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types'; | |
const client = new Anthropic(); // gets API Key from environment variable ANTHROPIC_API_KEY | |
const CLIENT_CONFIGS = [ |
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
// call-tool.ts | |
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; | |
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; | |
import { CallToolResultSchema } from "@modelcontextprotocol/sdk/types.js"; | |
async function main() { | |
const client = new Client( | |
{ | |
name: "mcp-typescript test client", | |
version: "0.1.0", |
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 llama3.1:8b | |
PARAMETER num_ctx 20480 | |
TEMPLATE """ | |
{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|> | |
{{- if .System }} | |
{{ .System }} | |
{{- end }} |
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 SwiftUI | |
import AVFoundation | |
struct ContentView: View { | |
@State private var isRecording = false | |
@State private var transcription = "" | |
@State private var isConnected = false | |
@State private var accumulatedAudioData = Data() | |
@State private var webSocketTask: URLSessionWebSocketTask? | |
@State private var errorMessage: String? |
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 SwiftUI | |
import AVFoundation | |
struct ContentView: View { | |
@State private var isRecording = false | |
@State private var transcription = "" | |
@State private var recordedAudioURL: URL? | |
@State private var responseAudioURL: URL? | |
@State private var isConnected = false | |
@State private var accumulatedAudioData = Data() |
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 { type Queue, R2Bucket } from "@cloudflare/workers-types"; | |
import puppeteer from "@cloudflare/puppeteer"; | |
import { PDFDocument } from "pdf-lib"; | |
import { Buffer } from 'node:buffer'; | |
type Env = { | |
MY_BUCKET: R2Bucket; | |
MY_QUEUE: Queue; | |
MY_BROWSER: any; | |
MY_KV_NAMESPACE: KVNamespace |
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
const fs = require('fs'); | |
const https = require('https'); | |
const { execSync } = require('child_process'); | |
const model = 'gemini-1.5-pro-latest'; | |
function getGitTrackedFiles(basePath) { | |
const command = `git ls-files ${basePath}`; | |
try { | |
const stdout = execSync(command, { encoding: 'utf8' }); |
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
python | 競馬予想で始める機械学習〜完全版〜 | https://zenn.dev/dijzpeb/books/848d4d8e47001193f3fb | ¥3,900 | |
---|---|---|---|---|
python | 【図解】ネコでも分かるDeepLearningの基礎まとめ【初心者向け】 | https://zenn.dev/nekoallergy/books/904df952389317 | ¥1,000 | |
python | Python 中級者への道 | https://zenn.dev/gomecha/books/4fa32ac5f76af31b2f81 | ¥500 | |
python | 競馬予想で始める機械学習〜動画中のソースコード〜 | https://zenn.dev/dijzpeb/books/6bb4672104889fc17829 | ¥2,400 | |
python | DjangoとVue.jsでシンプルなTodoアプリを作る | https://zenn.dev/fujiikayo/books/fc501522bcff6e | ¥500 | |
python | 【図解】ネコでも分かるPythonの基礎まとめ【初心者向け】 | https://zenn.dev/nekoallergy/books/python-basic | ¥500 | |
python | 【無料】AWS EC2 + nginx + uWSGI + Flaskでwebアプリ開発 | https://zenn.dev/shota_imazeki/books/7a0f8e2f4cccd846fb16 | ¥200 | |
python | 誰でもかんたん! 自分の競馬予想AIを作ろう! | https://zenn.dev/umakaze/books/312ddc2bbf3601 | ¥2,000 | |
python | 競馬予想で始める機械学習〜最新のソースコード〜 | https://zenn.dev/dijzpeb/books/951e0f755229125bb79c | ¥2,400 | |
python | 週刊 JPEGデコーダをつくる | https://zenn.dev/yohhoy/books/make-jpeg-decoder | ¥300 |