This Gist documents the steps and commands used to set up and manage a Google Apps Script project using the clasp
CLI.
node -v
from langchain_openai import ChatOpenAI | |
model=ChatOpenAI( | |
temperature=0.5, | |
model='codellama/CodeLlama-34b-Instruct-hf', | |
base_url='https://api-inference.huggingface.co/v1/', | |
api_key='<KEY>' | |
) | |
response=model.invoke(input=[{"role": "user", "content": "What is color of flamingo?"}]) |
from langchain_openai import ChatOpenAI | |
llm = ChatOpenAI( | |
model="gemini-1.5-flash-002", | |
api_key='<KEY>', | |
base_url="https://generativelanguage.googleapis.com/v1beta/", | |
temperature=0, | |
max_tokens=None, | |
timeout=None, | |
max_retries=2, |
apt update && apt dist-upgrade -y && apt install curl htop neofetch git watch wget nano tmux tree jq -y | |
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz | |
tar -xf vscode_cli.tar.gz | |
chmod +x code |
openai-api-key: <KEY> | |
openai-api-base: https://api.hyperbolic.xyz/v1 | |
model: openai/deepseek-ai/DeepSeek-V2.5 | |
architect: true | |
weak-model: openai/meta-llama/Meta-Llama-3.1-8B-Instruct | |
editor-model: openai/Qwen/Qwen2.5-72B-Instruct | |
show-model-warnings: false | |
# Repomap Settings: | |
# Suggested number of tokens to use for repo map, use 0 to disable (default: 1024) | |
map-tokens: 2048 |
#!/bin/bash | |
# install_terraform.sh | |
# Exit immediately if a command exits with a non-zero status | |
set -e | |
# Update the package index | |
echo "Updating package index..." | |
sudo apt-get update |
import ollama | |
import json | |
show_message_tool: dict = { | |
"name": "show_message", | |
"description": "Display a greeting message with the given parameter", | |
"parameters": [ | |
{ | |
"name": "param", | |
"description": "The parameter to include in the greeting message", |
# %% | |
# !pip install sqlite-vec | |
### [Ref Link](https://alexgarcia.xyz/blog/2024/sqlite-vec-stable-release/index.html) | |
import sqlite3 | |
import sqlite_vec | |
import numpy as np | |
import struct |
In Visual Studio Code, the keyboard shortcuts to move to the previous (and next) cursor location are: | |
For Windows and Linux: | |
Go to previous location: Ctrl + Alt + - (minus) | |
Go to next location: Ctrl + Shift + - (minus) | |
For macOS: | |
Go to previous location: Ctrl + - (minus) | |
Go to next location: Ctrl + Shift + - (minus) |