Skip to content

Instantly share code, notes, and snippets.

View Daethyra's full-sized avatar
🤍
Vibing<3

Daethyra

🤍
Vibing<3
  • Cyberspace
  • 23:13 (UTC -07:00)
View GitHub Profile
@Daethyra
Daethyra / draw_bounding_box.py
Last active February 24, 2025 04:23
Opens an image and allows the user to draw a red bounding box on it.
"""
Filename: draw_bounding_box.py
Description: Opens an image and allows the user to draw a red bounding box on it.
Author: Daethyra Carino
Date: 2025-02-23
Version: 0.1.0
License: MIT
Requires:
- package: opencv-python
@Daethyra
Daethyra / facial_transformation.py
Created February 24, 2025 04:17
Uses a webcam to help the user center their face and take a photo.
"""
Filename: facial_transformation.py
Description: Uses a webcam to help the user center their face and take a photo.
Author: Daethyra Carino
Date: 2025-02-23
Version: 0.1.0
License: MIT
Requires:
- package: opencv-python
@Daethyra
Daethyra / matrix_rain.html
Created January 27, 2025 05:38
A multilingual matrix rain visualizer.
<!DOCTYPE html>
<html>
<head>
<title>Matrix Rain</title>
<style>
body {
margin: 0;
overflow: hidden;
background: black;
}
@Daethyra
Daethyra / ngrok_config.yml
Created January 27, 2025 03:43
Starts an Ngrok HTTPS endpoint w/ OAuth
version: 3
agent:
authtoken:
api_key:
connect_timeout: 30s
console_ui: iftty
console_ui_color: black
heartbeat_interval: 1m
heartbeat_tolerance: 90s
# Set up the console colors - black background with dark green text for that Matrix feel
$host.UI.RawUI.BackgroundColor = 'Black' # Sets terminal background to black
$host.UI.RawUI.ForegroundColor = 'DarkGreen' # Sets text color to dark green
Clear-Host # Clears the terminal screen (like cls in CMD or clear in bash)
# Define the characters that can appear in our digital rain
# Includes numbers, letters, and some Japanese-looking characters for style
$chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZヲアウエオカキケコサシスセソタツテナニヌネハヒホマミムメモヤユラリワ'
# Get the width of the terminal window - we'll need this to know how many "rain streams" to create
@Daethyra
Daethyra / chugma_chatbot.py
Last active January 12, 2024 21:43
RAG Discord Chatbot
import os
import logging
import discord
from langchain_openai import OpenAI
from langchain.chains import LLMChain
from langchain_core.prompts import PromptTemplate
from langchain.schema import StrOutputParser
from langchain.memory import ConversationBufferWindowMemory
# Configure our logger
@Daethyra
Daethyra / nest_runs_within_tools.ipynb
Last active March 25, 2025 00:42
Group and trace nested calls via `run_manager`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / chat_evaluation_single_turn.ipynb
Last active April 9, 2025 11:05
This walkthrough guides you in creating a dataset to evaluate chatbots within multi-turn conversations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / langsmith-walkthrough.ipynb
Last active December 8, 2023 03:42
LangSmith, a unified platform for debugging, testing, and monitoring your LLM applications.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / Reset-DockerWslIntegration.ps1
Created November 28, 2023 23:25
Execute to release the disk space consumed by Docker Desktop's virtual data.
<#
.SYNOPSIS
This module provides functions to reset Docker WSL integration.
.DESCRIPTION
The module includes functions to stop Docker Desktop, shut down WSL, and unregister Docker WSL data.
.NOTES
Version: 1.0
Author: Daethyra