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
| grammar Microhard; | |
| design: input_section output_section part_section wire_section; | |
| input_section: 'Inputs:' input (CM input)* SC; | |
| output_section: 'Outputs:' output (CM output)* SC; | |
| part_section: 'Parts:' part (CM part)* SC; | |
| wire_section: 'Wires:' wire (CM wire)* SC; | |
| input |
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
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "Version", | |
| "description": "用来验证Minecraft的版本信息", | |
| "type": "object", | |
| "$defs": { | |
| "argumentArray": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/$defs/argument" |
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 React from "react"; | |
| export type FlexContainerProperties = { | |
| direction?: React.CSSProperties["flexDirection"]; | |
| wrap?: React.CSSProperties["flexWrap"]; | |
| justify?: React.CSSProperties["justifyContent"]; | |
| align?: React.CSSProperties["alignItems"]; | |
| gap?: React.CSSProperties["gap"]; | |
| }; |
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 React, { ReactNode } from 'react'; | |
| import { View, StyleSheet, StyleProp, ViewStyle } from "react-native"; | |
| type ViewStyleProp = StyleProp<ViewStyle>; | |
| type Props = { | |
| width: number; | |
| gutter?: number; | |
| style?: ViewStyleProp; | |
| children?: ReactNode; |
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
| const regexVersion = /(\d+)\.(\d+)(\.(\d+))?(-([0-9A-Za-z]+))?(\+([0-9A-Za-z]+))?/; | |
| class Version { | |
| major: number = 0; | |
| minor: number = 0; | |
| patch?: number; | |
| preRelease?: string; | |
| build?: string; | |
| constructor( |
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
| <script setup lang="ts"> | |
| import { computed } from 'vue'; | |
| interface Props { | |
| min?: number; | |
| max?: number; | |
| value?: number; | |
| height?: number; | |
| } |
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
| /** @type {NS} */ | |
| var ns; | |
| async function writeToFile(id, results) { | |
| const path = `/responses/${id}.txt`; | |
| const content = JSON.stringify(results); | |
| ns.write(path, content); | |
| } | |
| async function 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
| grammar AHdl; | |
| // 语法 | |
| module: inputs outputs parts wires EOF; | |
| inputs: INPUTS input (CM input)* CM ES; | |
| outputs: OUTPUTS output (CM output)* CM ES; |
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
| grammar Mhdl; | |
| component: inputSection outputSection partSection wireSection EOF; | |
| inputSection | |
| : INPUTS input (CM input)* SC | |
| ; | |
| outputSection | |
| : OUTPUTS output (CM output)* SC |
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 com.fasterxml.jackson.annotation.JsonInclude | |
| open class Request<P>( | |
| /** | |
| * A String specifying the version of the JSON-RPC protocol. | |
| * MUST be exactly "2.0". | |
| */ | |
| val jsonrpc: String = Version20, | |
| /** |
NewerOlder