スクリプトエディタでアプリケーションとして書き出すと便利
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 asyncio | |
import logging | |
from pprint import pprint | |
from langchain_google_vertexai import ChatVertexAI | |
from langchain_mcp_adapters.client import MultiServerMCPClient | |
from langchain_mcp_adapters.tools import load_mcp_tools | |
from langgraph.prebuilt import create_react_agent | |
# Mute gemini unsupported schema warnings |
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
# syntax=docker/dockerfile:1 | |
FROM heartexlabs/label-studio:latest | |
# https://github.com/HumanSignal/label-studio/blob/develop/Dockerfile | |
# Litestream | |
USER root | |
ENV LITESTREAM_VERSION=v0.3.13 | |
RUN ARCH=$(case $(uname -m) in x86_64) echo 'amd64';; aarch64) echo 'arm64';; *) echo 'unsupported' && exit 1;; esac) \ | |
&& curl -sL "https://github.com/benbjohnson/litestream/releases/download/${LITESTREAM_VERSION}/litestream-${LITESTREAM_VERSION}-linux-${ARCH}.deb" \ |
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
package main | |
import ( | |
"flag" | |
"image" | |
"log" | |
"os" | |
_ "image/gif" | |
_ "image/jpeg" |
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 alpine:3.12.0 | |
RUN mkdir /app | |
COPY print.sh /app | |
ENV PATH /app:$PATH | |
ENTRYPOINT ["print.sh"] |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strconv" | |
"time" | |
) | |
type handler struct{} |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"github.com/gin-gonic/gin" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/jmoiron/sqlx" |
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
#!/bin/sh | |
cat <<EOS | mysql -uroot | |
CREATE DATABASE IF NOT EXISTS lock_test; | |
USE lock_test; | |
DROP TABLE IF EXISTS example; | |
CREATE TABLE example ( | |
id bigint unsigned NOT NULL, | |
name VARCHAR(10) NOT NULL, | |
count int NOT NULL, | |
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
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
{ | |
"title": "mousekey(s+d)", | |
"rules": [ | |
{ | |
"description": "mousekey(s+d)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [ |
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
{ | |
"dependencies": { | |
"puppeteer": "^1.5.0", | |
"speedline": "^1.3.3" | |
} | |
} |
NewerOlder