Skip to content

Instantly share code, notes, and snippets.

View kaigouthro's full-sized avatar
🔍
Looking For Work

kai gouthro kaigouthro

🔍
Looking For Work
  • Alberta, Canada
View GitHub Profile
@kaigouthro
kaigouthro / README.md
Created February 24, 2025 22:37
Quivr Tool for simplified use

Enhanced Quivr Usage Script

This introduces a Python script quivrtool.py designed to significantly simplify the use of the quivr-core library, both within Python scripts and for agent-based interactions. It provides streamlined functions for creating and querying Quivr brains, leveraging YAML configurations for workflow customization.

It includes:

  • Simplified brain creation from files.
  • User-friendly question answering with brain.
  • Functions for saving and loading brains.
  • Example functions designed for agent tool calls.
  • Clear documentation and usage examples within the script.
@kaigouthro
kaigouthro / oniguruma_syntax.md
Created February 21, 2025 03:28
Oniguruma Regex MD Regex reference

Oniguruma Regular Expressions v6.9.8 Reference

Version: 6.9.8 (2022/04/11) Syntax: ONIG_SYNTAX_ONIGURUMA (default)

This document provides a comprehensive reference for Oniguruma regular expressions syntax, version 6.9.8. It is intended for use as a quick guide and reference for AI language models and developers working with Oniguruma regex.


1. Syntax Elements

@kaigouthro
kaigouthro / logitech LUA tools.py
Created December 14, 2024 14:36
Logi lua tool / spec
from dataclasses import dataclass
from typing import List, Union, Optional, Tuple
# Data Classes for Logitech G HUB Lua API
@dataclass
class Event:
name: str
arg: Optional[Union[int, str]] = None
family: Optional[str] = None
@kaigouthro
kaigouthro / cheatsheet.md
Created August 12, 2024 07:35
pyflowchart streamlit + cheat sheet

Instructions from PyFlowchart Documentation

Installation:

  1. Install using pip:
    $ pip install pyflowchart
@kaigouthro
kaigouthro / unpack_js_map.py
Created May 24, 2024 03:14
Fastest ever folder of ./index.js.map making for source map to files extractor, quick and dirty.
import json
import os
def extract_source_code(map_file_path):
"""
Extracts source code from a webpack source map file.
Args:
map_file_path (str): Path to the source map file.
Returns:
@kaigouthro
kaigouthro / lua.py
Created January 11, 2024 07:20
logitech_lua_python.py
class LuaScriptGenerator:
def __init__(self):
self.function_templates = {
"PressAndReleaseKey": "PressAndReleaseKey({key})",
"PressKey": "PressKey({key})",
"ReleaseKey": "ReleaseKey({key})",
"PressAndReleaseMouseButton": "PressAndReleaseMouseButton({button})",
"PressMouseButton": "PressMouseButton({button})",
"ReleaseMouseButton": "ReleaseMouseButton({button})",
# Add more function templates as needed
@kaigouthro
kaigouthro / idea.md
Last active October 5, 2024 06:08
Test Basis for expanding.. The way forward to after AGI starts with a goat path. AI should be this easy to talk to itself... go crazy making it better

Project Documentation

Overview

This document provides an overview and detailed explanation of the codebase, including its primary functions, settings management, and interaction with the AI model.

Code Structure

Main Functions

import pandas as pd
import sqlite3
conn = sqlite3.connect('/path/to/where/you/want/to/store/your/db')
c = conn.cursor()
df = pd.DataFrame([{'Column1':'Data','Column2':'Base'}])
df.to_sql("SQLDatabase", conn, if_exists="replace")
@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active September 25, 2025 15:27
A minimal reference to pine script v5

Pine Script Mini-Reference

This document provides a concise reference for Pine Script, a programming language specifically designed for trading strategies and indicators within TradingView.

Operators

Arithmetic Operators

Operator Description
//@version=5
library("keyed_primatives")
export type float_item
string key = ''
float val = 0.
export type float_dict
float_item[] content