Skip to content

Instantly share code, notes, and snippets.

View Roman-Port's full-sized avatar

Roman Port Roman-Port

View GitHub Profile
@Roman-Port
Roman-Port / main.md
Created September 5, 2021 20:45
Using Emscripten with Visual Studio 2019

Hello! This guide will show you how to set up CMake projects in Visual Studio 2019 to use Emscripten. This guide is mostly for me to set this up again, but it'll hopefully be useful for someone else.

This guide assumes you've already installed and set up Emscripten but just want to use it with Visual Studio 2019.

Applying Settings

After you've created your CMake project, right click CMakeLists.txt in Visual Studio and click "CMake Settings For...". You'll get a new editor tab.

In this tab, locate the "CMake toolchain file" and set the path to the following, replacing EM_PATH with the path to the SDK:

#include <sourcemod>
#include <sdktools>
public Plugin myinfo =
{
name = "Dino D-Day X Map Switcher",
description = "",
version = "1.0.0.0",
url = "https://romanport.com/"
}
private void Rds_OnFrameDecoded(RDSFrame frame)
{
ulong test = 0;
test |= Mutate(frame.a);
test |= Mutate(frame.b) << 16;
test |= Mutate(frame.c) << 32;
test |= Mutate(frame.d) << 48;
for(int i = 0; i<64; i++)
{
@Roman-Port
Roman-Port / gist:bb2197566265045d82a559158a967533
Created July 27, 2020 18:19
.NET Windows Forms Invoke Syntax
Invoke((MethodInvoker)delegate
{
//UI Work goes here
});
//Created because I always forget the syntax for the delegate Invoke wants
@Roman-Port
Roman-Port / final.py
Last active June 4, 2018 13:26
updated
import socket
import json
import turtle
import tkinter
import random
import math
import time
import datetime
#Written by RomanPort
class CoolClass:
def __init__(self,name,description,price):
self.name = name
self.description = description
self.price = price
def ToString(self):
#Create a string of that object
output = "=[ "
output+=self.name
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>