Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
@Turupawn
Turupawn / gist:5705c6b16149cf6a1cf5ba0988e17db6
Last active August 27, 2018 23:59
CMake commands on Windows
cmake .. -G "MinGW Makefiles"
cmake .. -G "NMake Makefiles"
cmake .. -G "Visual Studio 15 2017 Win64"
cmake .. -G "Visual Studio 15 2017"
# Compile a Visual Studio .sln file
devenv MyProject.sln /Build
@Turupawn
Turupawn / VisualBuildX64bits.bat
Created June 24, 2018 21:00
Building a haxe ndll on x64
@echo off
mkdir bin
cl /D_USRDLL /D_WINDLL ./src/modioWrapper.cpp ./src/modioWrapperCallbacks.cpp lib/windows64/modio.lib /I include /link /DLL /OUT:bin/modioWrapperWindows_x64.ndll
haxe -cp src -main Main -cpp bin -D HXCPP_M64
copy lib\windows64\modio.dll bin
cd bin
Main.exe
pause
@Turupawn
Turupawn / Haxe.tx
Created June 27, 2018 20:12
Haxe temp
import ModioWrapper;
class Main
{
static var finished = false;
static function onEmailExchange(response_code:Int)
{
if (response_code == 200)
{
@Turupawn
Turupawn / download_progress_string.hx
Last active September 9, 2018 23:27
mod.io haxe wrapper downloadProgressString()
static function downloadProgressString()
{
var installed_mods:Array<Dynamic>;
installed_mods = ModioWrapper.getInstalledMods();
var download_queue:Array<Dynamic>;
download_queue = ModioWrapper.getModDownloadQueue();
var result:String = "";
if(installed_mods.length == 1)
@Turupawn
Turupawn / gist:5b3c46701948e1cc7ac52493f23064a4
Created October 12, 2018 17:29
Building curl statically
buildconf.bat
cd winbuild
nmake /f Makefile.vc mode=static WITH_SLL=static MACHINE=x86 DEBUG=no GEN_PDB=no SSL_PATH=C:\OpenSSL1.1.1\static\Win32\Release
nmake /f Makefile.vc mode=static WITH_SLL=static MACHINE=x64 DEBUG=no GEN_PDB=no SSL_PATH=C:\OpenSSL1.1.1\static\Win32\Release
@Turupawn
Turupawn / gist:f406408882c61a5d9871a9b4efa59cf8
Created October 15, 2018 03:41
Link lib on visual studio c++
#pragma comment(lib, "crypt32.lib")
@Turupawn
Turupawn / test.md
Last active October 16, 2018 22:54

.modio/ directory structure

.modio/
  cache/
    1539728467.json
    1539728492.json
  mods/
    1173/
 modio.json
#include <iostream>
#include <fstream>
#include "steam/steam_api.h"
#include "steam/steamencryptedappticket.h"
#include "base64.h"
bool finish = false;
class CGameManager
{
@Turupawn
Turupawn / MyUObject.cpp
Last active February 5, 2019 17:13
Plugin callbacks on c++
UCLASS()
class UMyUObject : public UActorComponent
{
GENERATED_BODY()
public:
void OnMyUObject_Handler(int32 response_code);
};
void UMyUObject::OnMyUObject_Handler(int32 response_code)
@Turupawn
Turupawn / config.json
Created April 3, 2019 17:38
just a config file
{
"Resolution": {
"x": "1920",
"y": "1080"
},
"ScreenSize": {
"x": "1920",
"y": "1080"
},
"Fullscreen": {