Skip to content

Instantly share code, notes, and snippets.

View asfdfdfd's full-sized avatar

Andrey Panchenko asfdfdfd

View GitHub Profile
#import <mach/mach_host.h>
int get_platform_memory_limit()
{
mach_port_t host_port;
mach_msg_type_number_t host_size;
vm_size_t pagesize;
host_port = mach_host_self();
host_size = sizeof(vm_statistics_data_t) / sizeof(integer_t);
#include <stdio.h>
#include <string>
template<typename Arg> const char* type_to_str();
template<typename...> struct VarIterator;
template<typename Head> struct VarIterator<Head>
{
static std::string eval()
using System.Collections;
using System.Collections.Generic;
using Nrjwolf.Tools.AttachAttributes; // https://github.com/Nrjwolf/unity-auto-attach-component-attributes
using TMPro;
using UnityEngine;
[RequireComponent(typeof(TextMeshProUGUI))]
public class TextMeshProTeletypeEffect : MonoBehaviour
{
[GetComponent] [SerializeField] private TextMeshProUGUI m_TextMeshProUGUI;