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 / pymexc.md
Created September 23, 2024 14:01
mexc exchange docs to help an ai write trading code

MEXC Futures API Documentation

This document provides a structured overview of the MEXC Futures API, focusing on clarity, conciseness, and practical examples.

Methods

The API offers a variety of methods to interact with the MEXC Futures exchange. Each method is categorized by its functionality and accompanied by its respective parameters and examples.

Market Data Endpoints

@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

@kaigouthro
kaigouthro / streamsnc_reference.md
Last active September 17, 2023 19:47
streamsync reference

This list is automatically generated from the framework's source code.

Layout

Components to organise the app's layout. Not meaningful by themselves; their objective is to enhance how other components are presented.

Sidebar

@kaigouthro
kaigouthro / info.md
Created September 5, 2023 06:58
60 second sdxl Dreambooth lora training

step 1.

make sure you have virtualenv

sudo apt install python3-venv
pthon -m pip install virtualenv

step 2.

create a virtualenv