Skip to content

Instantly share code, notes, and snippets.

View viartemev's full-sized avatar
🚀
work hard

Vyacheslav Artemyev viartemev

🚀
work hard
View GitHub Profile
(.venv) ✘  ~/Projects/ai/agent_ai   orchestrator  python main.py
2025-06-10 14:15:10,799 - INFO - Инициализация команды агентов...
Пожалуйста, введите вашу высокоуровневую цель: Создай в app/agents/tools.py новую функцию get_weather(city: str), которая возвращает моковые (ненастоящие) данные о погоде. Например, для 'Moscow' она должна вернуть {'temp': 15, 'weather': 'Cloudy'}, а для любого другого города — {'temp': 20, 'weather': 'Sunny'}. Затем покрой эту функцию тестами в новом файле tests/test_new_tools.py.
2025-06-10 14:15:11,849 - INFO - Оркестратор получил цель: Создай в app/agents/tools.py новую функцию get_weather(city: str), которая возвращает моковые (ненастоящие) данные о погоде. Например, для 'Moscow' она должна вернуть {'temp': 15, 'weather': 'Cloudy'}, а для любого другого города — {'temp': 20, 'weather': 'Sunny'}. Затем покрой эту функцию тестами в новом файле tests/test_new_tools.py.
2025-06-10 14:15:35,371 - INFO - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 2
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Число дня</title>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<style>
body {
font-family: Arial, sans-serif;

2021 Retrospective

Based on An End of the Year Retrospective by Pat Kua.

What happened during your year?

Go through your planning tools (e.g. personal and work calendars, to-do lists, journals, etc) and list any events or activities (by month) of significance to you. Capture these as if you were a neutral bystander.

Examples might include: “Moved house”, “Took part in a virtual panel”, or “Read Lord of the Rings for the 2nd time”

package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strings"
@viartemev
viartemev / nhl.go
Last active March 21, 2022 09:51
NHL recap downloader
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strings"
public class ReversedView<E> extends AbstractList<E>{
public static <E> List<E> of(List<E> list) {
return new ReversedView<>(list);
}
private final List<E> backingList;
private ReversedView(List<E> backingList){
this.backingList = backingList;
fun <K, V: Any> Map<K, V?>.filterValuesNotNull(): Map<K, V> {
val map = HashMap(this)
val result = LinkedHashMap<K, V>()
for (entry in map) {
if (entry.value != null) {
result[entry.key] = entry.value
}
}
return result
}
tap 'homebrew/cask'
brew 'bash' # Latest Bash version
brew 'bat' # "cat" on steroids
brew 'coreutils' # Those that come with macOS are outdated
brew 'ffmpeg'
brew 'git'
brew 'grep'
cask 'alfred'
| title | url | name |
| :--- | :--- | :--- |
| Льюис Хэмилтон | lyuis-khemilton | Автоспорт |
| Станислава Константинова | stanislava-konstantinova | Фигурное катание |
| Кайса Мякяряйнен | kaysa-myakyaryaynen | Биатлон |
| Резиуан Мирзов | reziuan-mirzov | Футбол |
| Даниил Лесовой | lisovyy-daniil | Футбол |
| Йоханнес Клэбо | yokhannes-klebo | Другие виды спорта |
| Юрий Газинский | yuriy-gazinskiy | Футбол |
| Мартин Шкртел | shkrtel-martin | Футбол |
fun main() {
val mapper = jacksonObjectMapper()
val personData = MainDataData("name", "surname", 19)
val foo = Foo(personData, "foo")
val bar = Bar(personData, "bar")
println(mapper.writeValueAsString(foo))
println(mapper.writeValueAsString(bar))
}
interface MainData {