Skip to content

Instantly share code, notes, and snippets.

View wackoisgod's full-sized avatar

Andrew Spiering wackoisgod

  • San Francisco
  • 18:25 (UTC -07:00)
View GitHub Profile
namespace FooBar {
public struct FileStream {
}
}
class Foo
{
public System.IO.FileStream file;
}
#define MAX2(a, b) ((a) > (b) ? (a) : (b))
void ResolvePrefixPath(char* buf, wchar_t** prefix, bool* resolveFullPath) {
*resolveFullPath = true;
if (::isalpha(buf[0]) && !::IsDBCSLeadByte(buf[0]) && buf[1] == ':' && buf[2] == '\\') {
*prefix = const_cast<wchar_t*>(L"\\\\?\\");
}
else if (buf[0] == '\\' && buf[1] == '\\') {
if (buf[2] == '?' && buf[3] == '\\') {
*prefix = const_cast<wchar_t*>(L"");
// TestMakeSire.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <windows.h>
#include <ctype.h>
#include <shlwapi.h>
#pragma comment(lib, "Shlwapi.lib")
#include <dlfcn.h>
#include <stdlib.h>
#include <iostream>
#include <atomic>
#include <vector>
#include <cassert>
#define CoTaskMemAlloc malloc
#define CoTaskMemFree free
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using System.Text.RegularExpressions;
namespace TestEventTracking
{
public class MatchStartedEventArgs : EventArgs
if (turnValue <= STICK_MAX)
turnValue = 0;
ReportData->RX = ++turnValue;
ReportData->RY = turnValue;
#include "Joystick.h"
#include <stdio.h>
#include <stdlib.h>
typedef enum {
UP,
DOWN,
LEFT,
RIGHT,
#include "Joystick.h"
#include <stdlib.h>
//#include <corecrt_malloc.h>
typedef enum {
UP,
DOWN,
LEFT,
RIGHT,
UP_LEFT,
#include <iostream>
#include <vector>
#include <variant>
#include <functional>
struct Foo
{
int handle = {};
};
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class CameraMover : MonoBehaviour
{
public Tilemap map;
public Grid grid;
public int cameraMarin = 50;