Skip to content

Instantly share code, notes, and snippets.

View dwrodri's full-sized avatar

Derek Rodriguez dwrodri

View GitHub Profile
@dwrodri
dwrodri / hand_measurements.csv
Created April 6, 2025 20:52
Hand Measurements in mm
ID length (mm)
L02 198
L03 79
L04 112
L05 114
L06 106
L07 95
L09 71
L19 115
L20 111
-- Neovim Configuration
-- Basic UI Settings
vim.opt.number = true -- Show line numbers
vim.opt.shiftwidth = 4 -- Set indentation to 4 spaces
vim.opt.tabstop = 4 -- Set tab width to 4 spaces
vim.opt.expandtab = true -- Use spaces instead of tabs
vim.opt.autoindent = true -- Enable auto indentation
vim.opt.smartindent = true -- Enable smart indentation
-- Search Settings
@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