Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
kuc-arc-f / task_db.sql
Created September 17, 2026 08:10
task-app , table
DROP TABLE IF EXISTS task_item;
CREATE TABLE "task_item" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME,
"projectId" INTEGER,
"title" TEXT,
"content" TEXT,
"complete" DATETIME,
"start_date" DATETIME,
@kuc-arc-f
kuc-arc-f / index.js
Last active September 13, 2026 01:15
postgres node , client example
import { Pool } from "pg";
const pool = new Pool({
host: "localhost",
port: 5432,
database: "mydb",
user: "root",
password: "admin"
});
@kuc-arc-f
kuc-arc-f / README.md
Last active September 13, 2026 00:56
postgres C++ client example

test_pg_1


  • Lib add
sudo apt-get update
sudo apt-get install libpq-dev

@kuc-arc-f
kuc-arc-f / README.md
Created September 13, 2026 00:48
redis C++ client example

redis_1

  • redis C++ client example

  • build
g++ -std=c++17 main.cpp -o main -lpthread -lhiredis
@kuc-arc-f
kuc-arc-f / database.js
Last active September 7, 2026 22:09
node, mysql example
import mysql from "mysql2";
const pool = mysql.createPool({
host: 'localhost',
user: 'root',
password: 'admin',
database: 'mydb',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0
@kuc-arc-f
kuc-arc-f / index.js
Created September 4, 2026 10:38
node express, redis example
import express from 'express';
import cookieParser from "cookie-parser";
import { createClient } from "redis";
const app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(express.static('public'));
@kuc-arc-f
kuc-arc-f / README.md
Last active July 2, 2026 10:10
pi-coding-agent , Skills example

pi-coding-agent , Skills example


  • tree
$ tree -a .
.
├── .pi
@kuc-arc-f
kuc-arc-f / README.md
Last active July 1, 2026 04:30
OpenRouter AI SDK , tool example

OpenRouter AI SDK , tool example


  • install
npm install @openrouter/ai-sdk-provider ai zod tsx

  • start
@kuc-arc-f
kuc-arc-f / README.md
Created June 23, 2026 22:55
node.js windows , DLL call example

node.js windows , DLL call example


  • npm install
npm i koffi

  • C++ build
@kuc-arc-f
kuc-arc-f / README.md
Last active June 22, 2026 09:11
node.js C++ , call so(Shared Object) function

node.js C++ , call so(Shared Object) function


  • node setup
npm init -y
npm i koffi

  • C++ build