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
import enum | |
import dataclasses | |
from typing import Union, Dict, List, Optional | |
import sys | |
import re | |
from mido import MidiFile, Message, MetaMessage | |
import argparse | |
from pathlib import Path | |
ChannelTypeName = { |
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 <string> | |
#include <vector> | |
const char *getOpcodeKindName(const OpcodeKind &kind) { | |
switch (kind) { | |
case OpcodeKind::Original: return "Original"; | |
case OpcodeKind::Move: return "Move"; | |
case OpcodeKind::Store: return "Store"; | |
case OpcodeKind::LoadEA: return "LoadEA"; | |
case OpcodeKind::LoadES: return "LoadES"; |
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
@tool | |
extends EditorScript | |
class Rect2iIterator: | |
var _begin: Vector2i | |
var _current: Vector2i | |
var _rect: Rect2i | |
static func from_vector2(vector2: Vector2i) -> Rect2iIterator: |
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
// Referenced the implementation of list2cmdline from CPython's subprocess.py. | |
#include <wchar.h> | |
#include <stdlib.h> | |
static void _append_bs(wchar_t **current, size_t bs_count) { | |
for (size_t i = 0; i < bs_count; i++) { | |
**current = '\\'; | |
(*current)++; | |
} |
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
cmake_minimum_required(VERSION 3.5) | |
project(clangtest) | |
# Search LLVM | |
find_package(LLVM REQUIRED CONFIG | |
HINTS "${LLVM_INSTALL_PREFIX}/lib/cmake/llvm") | |
find_package(Clang REQUIRED CONFIG | |
HINTS "${LLVM_INSTALL_PREFIX}/lib/cmake/clang") | |
include_directories(${LLVM_INCLUDE_DIRS}) |
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
#============================================================================== | |
# SMRC.rb | |
# Author : Chill | |
# Version : 5.2.0.3 BETA | |
# Date(V5) : 2015-06-20 to 2016-02-23 | |
# Description: SRPG on Map of Ruby by Chill. | |
#============================================================================== | |
#================================================= | |
# Basic Method |