Skip to content

Instantly share code, notes, and snippets.

View vaavaa's full-sized avatar
💭
...making step out of the universe edge :))

Andrey vaavaa

💭
...making step out of the universe edge :))
  • Almaty Kazakhstan
View GitHub Profile
import os
from telegram import Update, constants
from telegram.ext import Updater, CommandHandler, MessageHandler, filters, CallbackContext, Application
from ollama import ChatResponse
from ollama import Client
from dotenv import load_dotenv
@vaavaa
vaavaa / FileAsyncCopy
Created May 30, 2016 06:04 — forked from szunyog/FileAsyncCopy
Async file copy c#
// Minimal async file copy using background worker
public class FileAsyncCopy
{
private string _source;
private string _target;
BackgroundWorker _worker;
public FileAsyncCopy(string source, string target)
{
if (!File.Exists(source))