Skip to content

Instantly share code, notes, and snippets.

@pyfisch
pyfisch / README.md
Created February 2, 2019 18:47
SCRIPT-8
@pyfisch
pyfisch / README.md
Created February 2, 2019 18:56
SCRIPT-8
@pyfisch
pyfisch / README.md
Created February 2, 2019 18:56
SCRIPT-8
@pyfisch
pyfisch / README.md
Created February 3, 2019 14:29
SCRIPT-8
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<ul>
<li>Aktuelle Fallzahl: <input id="m" type="number">
[fruit]
apple.color = "red"
[fruit.apple.texture] # you can add sub-tables
smooth = true
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
function getLlamaServerConfig() {
const host = process.env.LLAMA_ARG_HOST || "127.0.0.1";
const port = process.env.LLAMA_ARG_PORT || "8080";
const apiPrefix = process.env.LLAMA_ARG_API_PREFIX || "";
const sslCert = process.env.LLAMA_ARG_SSL_CERT_FILE;
const apiKey = process.env.LLAMA_API_KEY || "none";
const protocol = sslCert ? "https" : "http";