Skip to content

Instantly share code, notes, and snippets.

View rdeioris's full-sized avatar

Roberto De Ioris rdeioris

View GitHub Profile
@rdeioris
rdeioris / output.txt
Last active November 7, 2021 09:23
AIV3PROG Brainfuck Challenge status
New Challenger: andreabotti.bf
Output: 0123456789ABCDEF
Tape: [0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
executed 155 opcodes in 965 cycles
-
New Challenger: andreadecaro.bf
Output: 0123456789ABCDEF
Tape: [0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
executed 122 opcodes in 1244 cycles
-
TArray<FLuaValue> ULuaReflectionState::MetaMethodIndex(TArray<FLuaValue> LuaArgs)
{
TArray<FLuaValue> ReturnValues;
UObject* Object = LuaArgs[0].Object;
FString Key = LuaArgs[1].ToString();
if (!Object)
{
return ReturnValues;
@rdeioris
rdeioris / DiscoverBlueprintComments.cpp
Created April 11, 2020 09:41
How to extract Unreal Engine Blueprint comments via c++
FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
TArray<FAssetData> AssetData;
AssetRegistryModule.Get().GetAssetsByClass(UBlueprint::StaticClass()->GetFName(), AssetData, true);
for (FAssetData& Asset : AssetData)
{
if (Asset.ObjectPath.ToString().StartsWith("/Game/"))

Create a new UObject subclass and modify it:

#pragma once

#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "UObject/Interface.h"
#include "BetterKillerInterface.generated.h"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast2D;
using Aiv.Audio;
namespace LearningAudio
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Net;
using System.Net.Sockets;
using System;
using System.IO;
public class PacketManager : MonoBehaviour
{
import socket
import time
import select
class MultiClientServer:
def __init__(self, address, port):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 8081))
s.listen(10)
while True:
new_client, sender = s.accept()
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#s.connect(('towel.blinkenlights.nl', 23))
s.connect(('aiv01.it', 80))
first_line = 'GET /corsi/programmazione HTTP/1.0\r\n'
first_header = 'Host: aiv01.it\r\n'
second_header = 'Connection: close\r\n'
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Net;
using System.Net.Sockets;
using System;
public class PacketsManager : MonoBehaviour
{
[SerializeField]