- Product: eShopLite - Semantic Search Application
- Feature: Shopping Cart Functionality
- Version: 1.0
- Date: July 5, 2025
- Status: Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:package OllamaSharp@5.1.19 | |
using OllamaSharp; | |
// set up the client | |
var uri = new Uri("http://localhost:11434"); | |
var ollama = new OllamaApiClient(uri); | |
ollama.SelectedModel = "gemma3"; | |
var chat = new Chat(ollama); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// C# Console Project: Space Invaders-style Game — Title: Space.AI.NET() | |
// This prompt is for GitHub Copilot Agent Mode, starting from an empty C# console project. | |
// Objective: | |
// Build a modular, flicker-free, color-rendered console game titled "Space.AI.NET()". | |
// The game must support input handling, player/enemy movement and bullets, UI, screenshot capture, double-buffered rendering, and a polished start screen layout. | |
// FILE: Program.cs | |
// Responsibilities: | |
// - Set UTF-8 output encoding for box-drawing characters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET: run Active File", | |
"type": "coreclr", | |
"request": "launch", | |
"program": "dotnet", | |
"args": ["run", "${file}"], | |
"cwd": "${workspaceFolder}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:package OllamaSharp@5.1.19 | |
using OllamaSharp; | |
// set up the client | |
var uri = new Uri("http://localhost:11434"); | |
var ollama = new OllamaApiClient(uri); | |
ollama.SelectedModel = "gemma3"; | |
var chat = new Chat(ollama); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:package CodeHollow.FeedReader@1.* | |
using CodeHollow.FeedReader; | |
var feed = await FeedReader.ReadAsync("https://elbruno.com/feed/"); | |
foreach (var item in feed.Items.Take(5).ToList()) | |
{ | |
Console.WriteLine($"- {item.Title}"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Azure; | |
using Azure.AI.Inference; | |
using Microsoft.Extensions.AI; | |
// uncomment this line to see your GitHub Token | |
// Console.WriteLine($"GITHUB_TOKEN: {Environment.GetEnvironmentVariable("GITHUB_TOKEN")}"); | |
IChatClient client = new ChatCompletionsClient( | |
endpoint: new Uri("https://models.inference.ai.azure.com"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.AI; | |
using Microsoft.Extensions.Configuration; | |
using OpenAI; | |
using System.Reflection; | |
// 1. get the image | |
var imageLocation = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "images", "petsmusic.png"); | |
var mediaType = GetMediaType(imageLocation); | |
byte[] imageBytes = File.ReadAllBytes(imageLocation); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2024 | |
# Author : Bruno Capuano | |
# Change Log : | |
# | |
# The MIT License (MIT) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2024 | |
// Author : Bruno Capuano | |
// Change Log : | |
// - Sample console application to use a local model hosted in ollama and semantic memory for search | |
// | |
// The MIT License (MIT) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
NewerOlder