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
| if(""==0) {/* | |
| @echo off | |
| echo "BAT" | |
| node "%~f0" %* | |
| goto :eof | |
| */ | |
| console.log( "js" ); | |
| } | |
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
| const API_URL = "https://api.openai.com/v1/chat/completions"; | |
| const MAX_TOKENS = 1500; | |
| const TEMPERATURE = 0.5; | |
| const SYSTEM_PROMPT = 'Act as assistant'; | |
| const MESSAGES = ["hello", "hi!", "how are you?"]; | |
| async function openAICompletion(msg) { | |
| const options = { | |
| method: "POST", | |
| headers: { |
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
| const { encode } = require('@nem035/gpt-3-encoder') | |
| exports.handler = async (event, context) => { | |
| if (event.httpMethod === 'POST') { | |
| try { | |
| const payload = JSON.parse(event.body); | |
| const text = payload.text; | |
| return { |
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
| { | |
| "model": "gpt-3.5-turbo-0613", | |
| "function_call": { | |
| "name": "query_enrichment" | |
| }, | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "content": "Write a newsletter." | |
| } |
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
| set -g TMUX_PLUGIN_MANAGER_PATH "$GITHUB_REPO_ROOT" | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'wenijinew/glamour.tmux' |
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
| #!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
| # syntax = docker/dockerfile:1.4.0 | |
| FROM node:20 | |
| WORKDIR /root | |
| RUN npm install sqlite3 |
Follow these instructions for an easy way to get up and going quickly! These are complete instructions, and will be the easiest way to get started on a new RG35XX.
Get a high quality SD (e.g. SanDisk Extreme) card, 128GB or larger, 256GB is recommended. Don't skimp here, they're cheap, and don't use the card that comes with the RG35XX as it's crap.
OlderNewer