Skip to content

Instantly share code, notes, and snippets.

@mlkvs
mlkvs / Web.md
Last active September 18, 2025 08:19
Web.md

Этот документ — отправная точка для погружения в наши проекты. Здесь описан наш технологический стек.

📌 Быстрый старт: Первые шаги

  1. Установите необходимый софт:
    • Игровые движки: Unity, Cocos Creator
    • Бэкенд и инфраструктура: Docker Desktop, Node.js, VS Code (или ваша любимая IDE)
  2. Практическое задание: Сервер (NestJS)
    • Пройдите официальный туториал NestJS.
  • Цель: Создайте простой REST API с одним модулем.
using System.Diagnostics;
using System.Globalization;
public static class Program
{
public static int Main()
{
var cocosCreatorPath = "CocosCreator.exe";
var arguments = @"--project ""./zuma"" --build ""buildScriptsOnly=true;configPath=./zuma/configs/buildConfig_web-mobile.json""";
@mlkvs
mlkvs / chatgpt.script.remove-all-chats.js
Created February 15, 2025 19:25
Скрипт автоматически получает список чатов через API ChatGPT и удаляет (скрывает) их, логируя процесс выполнения.
const BEARER_TOKEN = "YOUR_TOKEN";
const BASE_URL = "https://chatgpt.com/backend-api";
function log(message) {
console.log(`[${new Date().toISOString()}] - ${message}`);
}
async function getConversations() {
log("Requesting list of conversations...");
@mlkvs
mlkvs / Build error
Created September 7, 2024 14:04
Logger for c++
Severity Code Description Project File Line Suppression State Details
Error LNK1120 1 unresolved externals snake-game D:\Projects\c-plus-plus\snake-game\snake\build\snake-game.exe 1
Severity Code Description Project File Line Suppression State Details
Error LNK2001 unresolved external symbol "public: static void __cdecl Debug::Logger::Log<int>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??$Log@H@Logger@Debug@@SAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) snake-game D:\Projects\c-plus-plus\snake-game\snake\Engine.obj 1
@mlkvs
mlkvs / UInput.md
Created July 6, 2024 20:37 — forked from ze0nni/UInput.md
UInput.ts Input API for cocos creator

How to use

Add UInput.ts to your project and just call UInput.*** from anywhere

if (UInput.getKeyDown(KeyCode.SPACE))
            console.log('FIRE')

const moveX = UInput.getKeyAxis(KeyCode.ARROW_LEFT, KeyCode.ARROW_RIGHT);
const moveY = UInput.getKeyAxis(KeyCode.ARROW_DOWN, KeyCode.ARROW_UP);
using System;
using UnityEditor;
using UnityEngine;
namespace Project.Scripts.Editor
{
public class SceneEditorWindow : EditorWindow
{
private string[] _sceneNames;
private int _selectedSceneIndex;
using UnityEditor;
using UnityEngine;
namespace Project.MapSystem.Editor.Toolbar
{
public static class DataEditorButtonGUI
{
public static readonly GUIStyle Style;
static DataEditorButtonGUI()
using System;
using UnityEngine;
using UnityEditor;
using System.Reflection;
using UnityEngine.UIElements;
namespace Project.MapSystem.Editor.Toolbar
{
public static class ToolbarCallback
{
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace Project.MapSystem.Editor.Toolbar
{
[InitializeOnLoad]
public static class DefaultToolbarEditor