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 marimo | |
| __generated_with = "0.17.1" | |
| app = marimo.App() | |
| @app.cell | |
| def _(): | |
| import numpy as np | |
| import matplotlib.pyplot as plt |
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
| { | |
| "$ref": "#/definitions/PromptfooConfigSchema", | |
| "definitions": { | |
| "PromptfooConfigSchema": { | |
| "type": "object", | |
| "properties": { | |
| "tags": { | |
| "type": "object", | |
| "additionalProperties": { | |
| "type": "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
| description: "Simple repro" | |
| prompts: "{{ prompt }}" | |
| providers: | |
| - file://script.py | |
| tests: | |
| - vars: | |
| prompt: hello! |
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, |
NewerOlder