Skip to content

Instantly share code, notes, and snippets.

View dwrodri's full-sized avatar

Derek Rodriguez dwrodri

View GitHub Profile
@dwrodri
dwrodri / chat_frontend.html
Created May 17, 2024 19:51
A simple chat frontend for OLLAMA, generated with Chat-GPT4o
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Customizable Prompt Request</title>
<style>
body {
font-family: Arial, sans-serif;
@dwrodri
dwrodri / analysis.py
Last active February 5, 2025 20:08
Video Analysis Tool
#!/usr/bin/env python3
import os
import itertools
import argparse
import json
import logging
import multiprocessing
import pathlib
import subprocess
import sys
@dwrodri
dwrodri / nocopy.cpp
Created October 27, 2022 22:50
How to perform a deep copy on a class that has no copy c'tor
#include <string>
#include <iostream>
#include <utility>
class A {
private:
std::string data_;
public:
@dwrodri
dwrodri / Algos.py
Created March 6, 2018 16:08
Snippet of my A* search algorithm and TSP algorithm
import itertools
import math
import heapq
import sys
import numpy
from copy import deepcopy
def traveling_salesman(goal_list, robot_pose): # returns list of goals sorted in order they should be visited