Skip to content

Instantly share code, notes, and snippets.

View sociopart's full-sized avatar
🙃
try to stop me!!!

Ivan Korolev sociopart

🙃
try to stop me!!!
View GitHub Profile
@terremoth
terremoth / gui-example.c
Last active April 15, 2025 12:32
Simple input and button with pure C + Win32 API
#include <windows.h>
#define ID_EDITBOX 1001
#define ID_BUTTON_OK 1002
void DrawCustomButton(LPDRAWITEMSTRUCT lpDrawItem) {
COLORREF bgColor = RGB(255, 165, 0); // orange
COLORREF textColor = RGB(128, 128, 128); // grey
@amirrajan
amirrajan / 00_demo.md
Last active June 5, 2025 18:32
mRuby vs Lua as a Scripting Layer in a Game Engine
enemy-encounter.mp4
@jonnybrooks
jonnybrooks / _creating_a_purely_cpp_android_app_with_the_ndk.md
Last active June 7, 2025 04:10
Creaing a purely C++ Android app with the NDK (and without Android Studio)

Creating a purely C++ Java app with the NDK (and without Android Studio)

There are a few main steps to getting this working:

  1. Install tools - Android SDK (along /w JDK and build-tools), and the NDK
  2. Configure project - setting up AndroidManifest.xml, adding android_native_app_glue to your project
  3. Build - setup Android.mk for use with ndk-build, and write a simple build script to pipe it all together

Install tools

If you haven't already, you'll need to install the Android SDK (which I think includes the JDK? Otherwise grab that as well), the Android NDK, and the SDK build-tools. You can do that using SDK manager. Downloading these will get you the following tools:

  • ndk-build (NDK) - for building the final .so file for the .apk
  • aapt (build-tools) - this is for packaging your .apk (app) file
@bsara
bsara / git-ssh-auth-win-setup.md
Last active June 10, 2025 23:15
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@Guest007
Guest007 / set_ff.md
Last active April 30, 2025 00:08
Настройка Firefox

I. СОЗДАНИЕ НОВОГО ПРОФИЛЯ

Используйте менеджер профилей, чтобы создать новый профиль Firefox.

LINUX:

В терминале (консоли) Linux исполните команду от обычного пользователя:

firefox -P
@nathancorvussolis
nathancorvussolis / wsget.cpp
Last active February 13, 2025 16:01
commandline file downloader using wininet
/*
Wsget/1.2.3
Copyright 2022, SASAKI Nobuyuki. Released under the MIT license.
*/
#include <stdio.h>
#include <locale.h>
#include <time.h>
#include <Windows.h>
#include <WinInet.h>
@mmozeiko
mmozeiko / win32_crt_float.cpp
Last active April 28, 2025 19:10
Visual C/C++ CRT functionality
extern "C"
{
int _fltused;
#ifdef _M_IX86 // following functions are needed only for 32-bit architecture
__declspec(naked) void _ftol2()
{
__asm
{