Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
kuc-arc-f / curl.txt
Created July 17, 2025 09:10
Dify , API-example python
curl -X POST 'https://api.dify.ai/v1/chat-messages' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": {},
"query": "こんにちは",
"response_mode": "blocking",
"conversation_id": "",
"user": "abc-123"
}'
@kuc-arc-f
kuc-arc-f / index.js
Last active July 9, 2025 07:08
Golang + WASM , express(HTTP) example
const fs = require('fs');
const util = require('util');
// Node.js環境でGo WASMを動作させるための準備
global.TextEncoder = util.TextEncoder;
global.TextDecoder = util.TextDecoder;
global.performance = require('perf_hooks').performance;
const express = require('express');
const app = express();
const port = 3000;
@kuc-arc-f
kuc-arc-f / main.go
Created July 8, 2025 10:22
GoLang , mail send Gmail
package main // mainパッケージであることを宣言
import (
"fmt"
"log"
"net/smtp"
)
func main() {
// --- 送信者と受信者の情報を設定 ---
@kuc-arc-f
kuc-arc-f / Cargo.toml
Created July 6, 2025 10:40
React axum , excel edit download
[package]
name = "excel_example"
version = "0.1.0"
edition = "2024"
[dependencies]
axum = "0.7.5"
tokio = { version = "1.0", features = ["full"] }
tokio-stream = "0.1.17"
tower-http = { version = "0.6.6", features = ["fs"] }
@kuc-arc-f
kuc-arc-f / Cargo.toml
Created July 6, 2025 04:21
Rust Excel edit , example
[package]
name = "excel-test"
version = "0.1.0"
authors = ["naka"]
edition = "2021"
[dependencies]
umya-spreadsheet = "2.3.1"
@kuc-arc-f
kuc-arc-f / Cargo.toml
Created July 6, 2025 03:36
Rust Excel new sheet , example
[package]
name = "excel-test"
version = "0.1.0"
authors = ["naka"]
edition = "2021"
[dependencies]
umya-spreadsheet = "2.3.1"
@kuc-arc-f
kuc-arc-f / server.go
Last active July 6, 2025 00:56
Golang Excel edit download , example
package main
import (
"bytes"
"fmt"
"html/template"
"log"
"net/http"
"strconv"
"path"
@kuc-arc-f
kuc-arc-f / server.go
Created July 5, 2025 23:16
Golang Excel download , example
package main
import (
"bytes"
"fmt"
"html/template"
"log"
"net/http"
"strconv"
"path"
@kuc-arc-f
kuc-arc-f / main.go
Created July 5, 2025 09:38
Golang Excel edit example
package main
import "github.com/xuri/excelize/v2"
func main() {
f := excelize.NewFile()
defer f.Close()
// 新規シート作成&セル書き込み
var shht_name = "Sheet1"
@kuc-arc-f
kuc-arc-f / go.mod
Created June 25, 2025 06:20
golang + redis , example-3
module example.com/redis4
go 1.24.4
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/redis/go-redis/v9 v9.11.0 // indirect
)