This file contains hidden or 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 class(name) | |
local penis = { | |
public = function(_, super_name) | |
return function(body) | |
print(body) | |
end | |
end | |
} | |
setmetatable(penis, { | |
__call = function(body) |
This file contains hidden or 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
// observe that the highlighting for state blocks does not break when on top | |
// of default blocks and vice versa. | |
class SomeInventory : Inventory | |
{ | |
default | |
{ | |
// hopefully, "Inventory" here will be highlighted as "entity.name.class.zscript" | |
Inventory.PickupMessage "You will never see this message ingame!"; |
This file contains hidden or 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
public struct Transform | |
{ | |
public Vector3 Right; | |
public Vector3 Up; | |
public Vector3 Forward; | |
public Transform() | |
{ | |
Right = Vector3.UnitX; | |
Up = Vector3.UnitY; |
This file contains hidden or 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 <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct ListInfo; | |
struct List; | |
typedef void *(*alloc_item_func_t)(struct ListInfo *, struct List *); | |
typedef void (*free_item_func_t) (struct ListInfo *, struct List *, size_t); | |
typedef void (*free_data_func_t) (struct ListInfo *, struct List *); |
This file contains hidden or 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
https://github.com/VSCodium/vscodium/issues/1640 |
This file contains hidden or 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 <adlmidi.h> | |
#include <raylib.h> | |
#include <stdio.h> | |
#define MAX_SAMPLES_PER_UPDATE 4096 | |
static struct ADL_MIDIPlayer *midi_player; | |
static struct ADLMIDI_AudioFormat adl_audio_format = { | |
ADLMIDI_SampleType_F32, | |
sizeof(float), |
This file contains hidden or 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
#ifndef ARRAY_H | |
#define ARRAY_H | |
#include <stddef.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define Array(T)\ | |
struct {\ | |
T *data;\ |
This file contains hidden or 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 <stdio.h> | |
#include "array.h" | |
typedef Array(int) IntArray; | |
int main(void) { | |
IntArray a; | |
size_t i; | |
array_init(&a); |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import re | |
from enum import auto, IntEnum | |
from typing import Any | |
re_number = re.compile(r'[0-9]+(.[0-9]+)?') |
This file contains hidden or 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 | |
(func $Vector2Add (export "Vector2Add") (param f32) (param f32) (param f32) (param f32) (result f32) (result f32) | |
local.get 0 | |
local.get 2 | |
f32.add | |
local.get 1 | |
local.get 3 | |
f32.add | |
) |
OlderNewer