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
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 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 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 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 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 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 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, | |
/** |
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
grammar AHDL; | |
ahdl | |
: (module)* EOF; | |
module | |
: MODULE moduleName LP EOL? portsDeclare RP LC actions RC EOL? | |
; | |
portsDeclare |
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
grammar MHRD; | |
component | |
: inputs outputs parts wires | |
; | |
inputs | |
: INPUTS_BEGIN portsDeclare eom | |
; |
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
import 'package:flutter/widgets.dart' hide Row; | |
import 'package:get/get.dart'; | |
import '../utils/reactive_units.dart'; | |
enum JustifyContent { | |
start, | |
center, | |
end, | |
} |
NewerOlder