Skip to content

Instantly share code, notes, and snippets.

View proffix4's full-sized avatar
🌅
Работаю

Talipov S.N. proffix4

🌅
Работаю
View GitHub Profile
@proffix4
proffix4 / LaunchDisplayWidget.ahk
Last active July 18, 2025 07:06
Launch ASUS DisplayWidget Center
#Requires AutoHotkey v2.0 ; Указывает, что скрипт требует AutoHotkey версии 2.0 или выше для работы
Run "C:\Program Files (x86)\ASUS\DisplayWidgetCenter\DisplayWidgetCenter.exe" ; Запускает приложение ASUS DisplayWidgetCenter по указанному пути
WinWait "ahk_exe DisplayWidgetCenter.exe" ; Ожидает появления окна приложения с исполняемым файлом DisplayWidgetCenter.exe
WinActivate "ahk_exe DisplayWidgetCenter.exe" ; Активирует (приводит в фокус) окно приложения DisplayWidgetCenter
WinWaitActive "ahk_exe DisplayWidgetCenter.exe" ; Ожидает, пока окно приложения станет активным (в фокусе)
; Пауза для загрузки интерфейса
Sleep 5000 ; Делает паузу на 5000 миллисекунд (5 секунд), чтобы интерфейс приложения успел полностью загрузиться
@proffix4
proffix4 / build wxapp version 3.3 (release)
Last active June 12, 2025 12:48
build wxWidgets app version 3.3
@echo off
:: Добавляем путь к папке mingw64 в переменную окружения PATH
set PATH=C:\Program Files\RedPanda-Cpp\mingw64\bin;%PATH%
:: Добавляем путь к папке Windows Kits в переменную окружения PATH
set PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\;%PATH%
:: Устанавливаем переменную для пути к wxWidgets
set WX_DIR=C:\Development\wxDevCpp\wxWidgets
@proffix4
proffix4 / wxWidgets_win_build(RPCpp).bat
Created April 12, 2025 14:03
Building wxWidgets for Windows
@echo off
:: Устанавливаем путь к wxWidgets
set WX_DIR=D:\Development\RedPanda-CPP\wxWidgets
:: Устанавливаем путь к платформе С++
set MINGW_DIR=D:\Development\RedPanda-CPP\mingw64
:: Устанавливаем имя утилиты сборки
set MAKE_TOOL=mingw32-make.exe
:: Устанавливаем путь сборки (НЕ МЕНЯЙТЕ ЭТО!)
@proffix4
proffix4 / drawing_in_wxwidgets.cpp
Created April 5, 2025 18:02
drawing in wxwidgets
#include <wx/wx.h>
class MyPanel : public wxPanel // Панель для рисования
{
public:
MyPanel(wxWindow* parent) : wxPanel(parent, wxID_ANY) {
// Регистрируем обработчик события рисования
Bind(wxEVT_PAINT, &MyPanel::OnPaint, this);
}
@proffix4
proffix4 / PROJECTS_WX_CROSS-SETTINGS_LINUX.txt
Created November 12, 2024 12:59
PROJECTS_WX_CROSS-SETTINGS_LINUX
CODEBLOCKS_PROJECTS_WX_SETTINGS_LINUX:
Global compiler settings -> Toolchain executables -> Compiler's installation directory : /usr
-- for linux build: --
Project build options -> Compiler Settings -> Other compiler options : `wx-config --cflags`
Project build options -> Linker Settings -> Other linker options : `wx-config --libs`
Global compiler settings -> Toolchain executables -> C++ compiler : g++
Global compiler settings -> Toolchain executables -> Linker for dynamic libs : g++
Global compiler settings -> Toolchain executables -> Linker for static libs : ar
@proffix4
proffix4 / gist:ef68b1062883db22c95b7002d3118d35
Created November 8, 2024 15:23
SETTING UP PROJECTS in Visual Studio 2022 on WXWIDGETS
--- Все конфигурации проекта: ---
C/C++ -> Дополнительные каталоги включаемых файлов : $(wxwin)\include\msvc;$(wxwin)\include
Компоновщик -> Дополнительные каталоги библиотек : $(wxwin)\lib\vc_x64_lib
--------------------------------------------------------
--- Системные переменные Windows: ---
wxwin : C:\Users\talip\Projects\wxWidgets
@proffix4
proffix4 / netbeans.conf
Created April 9, 2024 12:55
NetBeans 21 configuration for UTF-8
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@proffix4
proffix4 / main.cpp
Created February 1, 2024 09:06
Test C++
#define _CRT_SECURE_NO_WARNINGS // отключение предупреждений о небезопасности
#include <iostream> // для cout, cin, endl
#include <stdio.h> // для printf, scanf
using namespace std; // пространство имен std
int main(int argc, char** argv) {
setlocale(LC_ALL, "Russian"); // подключение русского языка
int number1; // целое число
@proffix4
proffix4 / CppUTF8CrossPlatform.cpp
Created November 21, 2023 07:01
Cpp UTF8 Cross - platform program
#include <stdlib.h>
#include <iostream>
#ifdef _WIN32 // Если это Windows
#include <io.h>
#include <fcntl.h>
#endif
int main(int argc, char** argv)
@proffix4
proffix4 / CppConsoleUTF8win.cpp
Created November 19, 2023 17:01
Console UTF-8 application with boost
#pragma execution_character_set( "utf-8" ) // for MSVC
#include <boost/nowide/args.hpp> // for utf8_to_utf16
#include <boost/nowide/fstream.hpp> // for fstream
#include <boost/nowide/iostream.hpp> // for cout, cerr, cin, clog
using namespace boost::nowide; // for cout, cerr, cin, clog
using std::endl; // for endl
int main()