This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <ShellScalingAPI.h> // Shcore.lib | |
#include "glad.h" // OpenGL32.lib | |
#define WINDOW_WIDTH 800 | |
#define WINDOW_HEIGHT 600 | |
#define WINDOW_CLASS "OGL_Sample" | |
#define WINDOW_TITLE "OpenGL Sample" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.GenUUID === undefined) { | |
document.GenUUID = () => { | |
const guid = "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c => | |
(+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16) | |
); | |
return guid; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Compiler { | |
public delegate void PrintErrorFunction(string message); | |
public class Location { | |
public string File { get; protected set; } | |
public int Line { get; protected set; } | |
public int Column { get; protected set; } | |
public Location(string file, int line, int column) { | |
File = file; | |
Line = line; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trig approximations from: http://www.ganssle.com/approx.htm | |
#include <windows.h> | |
#include <cmath> | |
#include <iostream> | |
#include <iomanip> | |
#define WINDOW_WIDTH 800 | |
#define WINDOW_HEIGHT 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// | |
// MODULE: MOUSINFO.C | |
// | |
// DESCRIPTION: SDK sample for handling the WM_MOUSEWHEEL message and | |
// the TrackMouseEvent() API. | |
// | |
// Applet displays MouseButton, MouseWheel, MouseMovement, and | |
// any mouse messages in the title bar. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "memory.h" | |
#if defined(MEM_PLATFORM_WINDOWS) | |
#include <windows.h> | |
mem_cfunc void PrintDebugString(const char* str) { | |
OutputDebugStringA(str); | |
} | |
#ifdef _DEBUG | |
#define MemInternal_Assert(cond) if (!(cond)) {*(u8*)0 = 0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SimpleSound.h" | |
#include <windows.h> | |
#include <atomic> | |
#include <dsound.h> | |
#include <iostream> | |
#undef PlaySound | |
#define SIMPLE_SOUND_MAX_CHANNELS 6 | |
#define SIMPLE_SOUND_NUM_COMMANDS 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function UpdateMetaData(WebFS, info) { | |
let infoDiv = document.getElementById('size'); | |
//let location = window.location.href; | |
let location = (new URL(window.location.href)); | |
let target = "filesystem:" + location.protocol; | |
if (target.endsWith(":")) { | |
target += "//"; | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
typedef unsigned char u8; | |
typedef unsigned short u16; | |
typedef unsigned int u32; | |
typedef unsigned long long u64; | |
typedef __int8 i8; | |
typedef __int16 i16; | |
typedef __int32 i32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ExpressionParser { | |
class ASTNode { | |
} |
NewerOlder