Skip to content

Instantly share code, notes, and snippets.

View rkorszun's full-sized avatar

Rafal Korszun rkorszun

View GitHub Profile
using System.Collections.Generic;
using UnityEngine;
// Grid router for Unity: finds up to N non-crossing Manhattan paths on an XxY grid
// Uses BFS (Lee/wave) with randomized neighbor order and retries (rip-up & reroute style)
// Designed to be easy to drop into a Unity project. No scene dependencies.
public static class GridRouter
{
public struct MultiRouteResult
@rkorszun
rkorszun / main.py
Created February 15, 2025 22:46
Example of using deepseek (ollama - local) with some external API using json_schema
from pydantic import BaseModel, Field
from datetime import date
import ollama
import requests
import json
import pandas as pd
class Query(BaseModel):
"""Data that we want collect from user to get weather data"""