Skip to content

Instantly share code, notes, and snippets.

View pzarzycki's full-sized avatar

pzarzycki

View GitHub Profile
# Install dependencies first (if not already installed):
# pip install chromadb sentence-transformers
import chromadb
from chromadb.utils import embedding_functions
# 1. Create or connect to a local ChromaDB client
client = chromadb.Client()
# 2. Define an embedding function (using a small local model)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Network Simulator Intro</title>
<style>
html, body {
margin: 0;
padding: 0;
@pzarzycki
pzarzycki / LICENESE.txt
Created June 13, 2025 23:52
license snipped
This software includes nanoflann (https://github.com/jlblancoc/nanoflann),
which is licensed under the BSD 2-Clause License:
Copyright (c) 2008-2020 Jose Luis Blanco
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
@pzarzycki
pzarzycki / astar_flight_route.cpp
Last active June 16, 2025 07:35
Astar Flight Route
#include <iostream>
#include <vector>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <cmath>
#include <limits>
#include <tuple>
#include <set>
#include <algorithm>
@pzarzycki
pzarzycki / flight_profile_25d.cpp
Last active June 13, 2025 08:36
Flight profile 2.5D
// Revised version of FlightProfile with time in minutes
#include <cmath>
#include <vector>
#include <iostream>
#include <algorithm>
struct FlightState {
double t; // time in minutes
double altitude; // meters
double speed; // km/h