Skip to content

Instantly share code, notes, and snippets.

View Awesomeplayer165's full-sized avatar

Jacob Trentini Awesomeplayer165

View GitHub Profile
@Awesomeplayer165
Awesomeplayer165 / chatbot.py
Created October 24, 2025 04:04
Chatbot AI
import threading
import tkinter as tk
from tkinter.scrolledtext import ScrolledText
import google.generativeai as genai
# Configure API
api_key = ""
genai.configure(api_key=api_key)
MODEL = "gemini-2.5-flash"
@Awesomeplayer165
Awesomeplayer165 / anyAngle.js
Last active October 14, 2024 04:17
Theta Star: Grid Version
// Theta* Algorithm Implementation in JavaScript
class Node {
constructor(x, y, g = Infinity, h = Infinity, parent = null) {
this.x = x;
this.y = y;
this.g = g; // Cost from start node
this.h = h; // Heuristic cost to goal node
this.parent = parent;
}
@Awesomeplayer165
Awesomeplayer165 / Jeopardy Example
Last active October 24, 2025 04:28
jeopardy.swift
import UIKit
class QuestionsAndAnswers {
let question: String
let answer: String
init(question: String, answer: String) {
self.question = question
self.answer = answer
}