text
stringlengths
3.08k
15.5k
<gh_stars>1-10 /* * rock3d.js: A 3D game engine for making retro FPS games * Copyright (C) 2018 <NAME> <<EMAIL>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission ...
/* eslint-disable no-irregular-whitespace */ import { newStdEL, StdEL } from "../../law/std"; import { articleGroupType, parseNamedNum } from "../../law/lawUtil"; import { PointerFragment, RelPos } from "../../node/pointer"; import { factory } from "../common"; import { $ROUND_PARENTHESES_INLINE } from "../inline"; imp...
import IWidget = SDK.IWidget; import * as Sentry from '@sentry/browser'; import {default as highlighter} from '../code-highlighter/prism'; import {settings} from '../settings/shared-settings' import {ThemeContext} from '../code-highlighter/prism/themes/interfaces'; import {themeRegistry} from '../code-highlighter/prism...
<reponame>clibs/website import wikiRegistry from 'wiki-registry' import { Octokit } from '@octokit/rest' import slugify from '@sindresorhus/slugify' import prettier from 'prettier' import execa from 'execa' import deepEqual from 'fast-deep-equal' import meow from 'meow' import assert from 'assert' import path from 'pat...
import { Message, } from "discord.js" import { Command } from "../types" import { intController, userController } from ".." const command: Command = { data: { name: "image", description: "upscale image", options: [ { name: "scale", type: "INTEGER", description: "How much times to scale image", ...
import React, { VFC } from 'react'; import { Color, G, Path } from 'react-native-svg'; import { createIcon } from '../helpers'; type BrokenProps = { color: Color, strokeWidth: number, }; type CurvedProps = { color: Color, strokeWidth: number, }; type DuotoneProps = { color: Color, strokeWidth: number, }; type O...
/* vim: syntax=javascript */ const request = require("request") const xs = require("xstream").default const jsonpatch = require("fast-json-patch") const http = require("http") const URL = require('url').URL require("console-stamp")(console, "HH:MM:ss.l") let streams: { [index:string] : any } = {} let createStre...
<filename>src/utils/github.ts<gh_stars>1-10 import {InMemoryCache, IntrospectionFragmentMatcher, NormalizedCacheObject} from 'apollo-cache-inmemory'; import ApolloClient from 'apollo-client'; import {ApolloQueryResult} from 'apollo-client/core/types'; import {WatchQueryOptions} from 'apollo-client/core/watchQueryOption...
<reponame>MixelTe/littelLib import * as Lib from "../littleLib.js"; import { Rect, Text_simple } from "./drawing.js"; const outputsInt = getOutputs("table_random_int"); const outputsBoolean = getOutputs("table_random_boolean"); const canvasAbsOrNot = Lib.get.canvas("canvas_random_absOrNot"); const AbsOrNot = { ctx: L...
import React, { useState } from 'react' import { View, Image, Text, StyleSheet, Platform, } from 'react-native' import Colors from '../../common/Colors' import Fonts from '../../common/Fonts' import { RFValue } from 'react-native-responsive-fontsize' import { widthPercentageToDP as wp, heightPercentageToD...
<reponame>pocka/moe-somesim import { Rgb, Red, Green, Blue, Hsv, ColorIndex, ColorPercentage } from '../types/color' import { FlowerSlot, Flower } from '../types/flower' export const percentageIndex = [ 0, 3, 6, 9, 12, 16, 19, 22, 25, 29, 32, 35, 38, 41, 45, 48, 51, 54, 58, 61, 64, 67, 70, 74, 77, 80, 83, 87, 9...
<reponame>geco91/raspiblitz-web<gh_stars>0 import { useCallback, useContext, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "react-toastify"; import { AppStatus } from "../models/app-status"; import { App } from "../models/app.model"; import { BtcInfo } from "../models/b...
/* * Copyright 2020 LABOR.digital * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<filename>src/automove.ts function auto_move(color: string, board: string[][]): number[] { const dirx = [-1, 0, 0, 1, 0]; const diry = [0, 1, -1, 0, 0]; const legal_x: number[] = Array.from({ length: 8 }), legal_y: number[] = Array.from({ length: 8 }); let legal_cnt = 0; let eat_score = 0; ...
<reponame>dank-meme-dealership/chess-tac-toe<filename>src/pages/queue/queue.ts import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { Game } from "../home/play-game-modal"; import { GameplayPage } from "../gameplay/gameplay"; import { AngularFirestore } ...
<gh_stars>1-10 import {log} from '../../console/log'; import {profile} from '../../profiler/decorator'; import {Visualizer} from '../../visuals/Visualizer'; import {Directive} from '../Directive'; import {DirectiveNukeResponse} from '../situational/nukeResponse'; import {GenerateOps} from './powers/generateOps'; import...
// Functions for extracting the size and data of individual icons in a .ico // file // .ico file format reference: http://msdn.microsoft.com/en-us/library/ms997538.aspx // and http://en.wikipedia.org/wiki/ICO_(file_format) import collectionutil = require('../base/collectionutil'); /* C struct definitions: typedef s...
<gh_stars>1-10 import { TestMetadata } from './test-metadata'; import { TestCafeTestPoint } from './models/TestCafeTestPoint'; import { TestCafeRunPoint } from './models/TestCafeRunPoint'; import { config } from './config'; export const UNKNOWN = 'UNK'; export class TestDataProcessor { private _application: string ...
import { getOtherCatalogData } from "../endpoints"; import { updateEntry, createEntryWithId, getEnvironmentDefaultLocaleCode, getEntryByID, getEntryByCode, cfLocales, addFieldValue, addToRelationFields, } from "../../libs/contentful"; import { log } from "../../libs/logs"; import type { Entry, Creat...
import Round from '../util/math/round'; import { IVector, VectorSetter, VectorMapper, VectorTest } from '../vector/index'; const round = Round.curry(2); export interface IVector3D extends IVector { readonly z: number; is({ x, y, z }: Vector3DSetter): boolean; set({ x, y, z }: Vector3DSetter): IVector3D; ad...
import React, { useEffect, useState } from "react"; import { Actions, Actions as userActions } from "../../store/user/user.action"; import Matches from "../../components/Matches"; import ProfileSidebar from "../../components/ProfileSidebar"; import { IAppState } from "../../store/reducers"; import { IUser } from "../....
<filename>src/database/dbObjects/Category.ts import DbEntry from '../DbEntry'; import DbRef from '../DbRef'; import DbSession from '../DbSession'; import TypeHelper from '../../jel/types/typeDescriptors/TypeHelper'; import DbIndexDescriptor from '../DbIndexDescriptor'; import Dictionary from '../../jel/types/Dictionary...
<reponame>mohitsuman/vscode-knative /* eslint-disable import/no-cycle */ /*----------------------------------------------------------------------------------------------- * Copyright (c) Red Hat, Inc. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information...
/** * Created by issi on 31.10.21 */ import { Ballot } from '@mui/icons-material'; import { Alert, AlertTitle, Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, FormControl, Grid, IconButton, InputAdornment, InputLabel, MenuItem, OutlinedInput, Select, Stack, Tooltip, } from '@mui/mate...
import { TEvent } from 'libsugar/event' import { abort } from 'libsugar/fn' import { Req, Res } from './symbol' import type { AContext, AContextKey, ARequest, AResponse } from './types' import { appendQueryString, clone, lazyErr, merge, mergeHeaders } from './utils' /** 上下文实现 * * - 不使用私有一方面是藏在接口后面没必要,一方面是方便哪个闲着蛋疼的搞骚...
<filename>ptcg-server/src/game/store/effect-reducers/game-effect.ts import { GameError } from '../../game-error'; import { GameMessage, GameLog } from '../../game-message'; import { EndTurnEffect } from '../effects/game-phase-effects'; import { Effect } from '../effects/effect'; import { State, GamePhase } from '../sta...
import React from 'react' import Layout from '../components/layout' import SEO from '../components/seo' import PageTitle from '../components/PageTitle' import { Grid } from '@material-ui/core' import withRoot from '../utils/withRoot' import { withStyles } from '@material-ui/core/styles' const styles = theme => ({ wr...
<reponame>Orthodox-Union/ShnayimMikrah<filename>types.ts<gh_stars>1-10 export interface CalendarResponse { date: string; timezone: string; calendar_items: calendarItem[]; } export interface calendarItem { displayValue: { en: string; he: string }; extraDetails: { aliyot: string[] }; } export interface ...
<gh_stars>0 import axios from "axios"; import * as Utils from '../utils/utils' import * as RebuildUtils from '../utils/RebuildUtils' import * as PolicyService from './PolicyService' import * as LoggerService from './LoggerService' const NUM_RETRIES = 5; const getPayload = asyn...
<reponame>xujuntwt95329/codestream import * as os from "os"; import * as path from "path"; import { TraceLevel } from "@codestream/protocols/agent"; import { EditorSelection } from "@codestream/protocols/webview"; import { Disposable, Range, TextEditor } from "atom"; import { Convert } from "atom-languageclient"; impor...
import { Environment } from "../environment"; import { ConfigurationDiagnostic } from "@dprint/types"; import { formatFileText, resolveConfiguration } from "@dprint/core"; import { getMissingProjectTypeDiagnostic } from "../configuration"; import { parseCommandLineArgs } from "./parseCommandLineArgs"; import { getHelpT...
<gh_stars>10-100 /** * @deprecated * @description Represents mustache expression processing. * @author <NAME>. */ import { createErrorHandler } from '../_utils/ErrorHandler'; import { LocalizationNode, TextNode, VariableNode } from './Statement'; import { ProgramNode } from './Nodes'; import { genEscape } from '.....
<gh_stars>10-100 /* ========================================================================= * * demo16.ts * test some webgl demo * * ========================================================================= */ /// <reference path="../lib/extra_utils.ts" /> /// <reference path="../lib/webgl_matrix.ts" /> /// ...
<reponame>carmelp16/hatool import { HttpClient } from '@angular/common/http'; import { switchMap } from 'rxjs/operators'; import { Observable } from 'rxjs'; import { ContentManager } from './content-manager'; import { Meta, CBType, MetaCBType, EventCBType } from './script-runner-types'; import { ScriptRunner } from './...
/** * A radar is made up of a number of segments. A segment MAY have a number of sub-segments. * In that case, the system accepts Segment[] arrays as input. * If subsegments are not used, use a string[] to declare the segments for the radar. * Semantically, ['One', 'Two', 'Three'] and * [{name: 'One', subSegments:...
import { serverAddress } from 'routes/utils'; import * as Api from 'services/api-ts-sdk'; import { isObject } from 'utils/data'; import handleError, { DetError, DetErrorOptions, ErrorLevel, ErrorType, isDetError, } from 'utils/error'; import { DetApi, FetchOptions } from './types'; /* Response Helpers */ /* eslint...
import {isNumber, isArray, find} from 'lodash'; import {isNonEmptyString, isObject, isEmail, slug} from './core'; export const getRecordDisplay = (record:Record<string,any>, maxLength?:number): string => { if (!isObject(record)) return ''; let result = ''; if (isArray(record?.highlight?.searchDisplay) &&...
import React, { useState, useEffect } from "react"; import { Text, View, ScrollView, StyleSheet, Image, ActivityIndicator } from "react-native"; import { Button } from "react-native-elements"; import * as Location from "expo-location"; import * as geolib from "geolib"; import { fetch } from "../../lib/api"; import * as...
<filename>packages/cli/src/block/main.ts /* * @Author: mingxing.zhong * @Date: 2021-06-29 13:55:41 * @Description: block command */ import axios from 'axios'; import chalk from 'chalk'; import child_process from 'child_process'; import fse from 'fs-extra'; import inquirer from 'inquirer'; import ora from 'ora'; im...
<reponame>orimajp/document-manager-test import * as dayjs from 'dayjs' import 'dayjs/locale/ja'; import { INode } from '~/node/node.interface'; import { IDocument } from '~/document/document.interface'; import { IPage } from '~/page/page.interface'; const createDate = dayjs('2020-07-07').format() const updateDate = da...
<filename>src/generators/backtracking.ts import {Maze} from '../maze'; import {Point} from '../point'; /** * Class BacktrackingGenerator */ class BacktrackingGenerator extends Maze { static readonly MAZE_POINT_VISITED = 10; private distance!: number; /** * Constructor * @param {number} width * @param...
<filename>packages/react-button/src/components/Button/useButtonStyles.ts<gh_stars>1-10 import { shorthands, makeStyles, mergeClasses } from '@griffel/react'; import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster'; import type { ButtonState } from './Button.types'; import { tokens } from '@cebus/react...
import ndarray from "ndarray"; import { DATA_FILE_MAGIC, DATA_TYPE_MAP, DTYPE_MAP, FILE_OFFSETS, FILE_TYPES, ValidDataArrays } from "./Constants"; import { SmileBASICFile } from "./SmileBASICFile"; import { SmileBASICFileType } from "./SmileBASICFileType"; import { SmileBASICFileVersion } from "./SmileBASICFileVers...
<gh_stars>1-10 /** * Finnish translation * @author petzku <<EMAIL>> */ import type { Config, Strings, Language } from '$lib/Lang/builder'; import { languageBuilder } from '$lib/Lang/builder'; const anime_airing: Config = { UNIT_SINGULAR: `sarja`, UNIT_PLURAL: `sarjat`, UNIT_SHORT: `Sarja`, SUBUNIT_SINGULAR: `j...
<reponame>Fisholith/frontend-lib import { Model } from '../model/model.service'; import { Environment } from '../environment/environment.service'; import { Api } from '../api/api.service'; const moment = require('moment'); export class Jam extends Model { url: string; domain: string; timezone: string; start_date:...
<reponame>Bubz43/ep2e import { ItemType } from '@src/entities/entity-types'; import type { Trait } from '@src/entities/item/proxies/trait'; import { createItemEntity, ItemEntity } from '@src/entities/models'; import { localize } from '@src/foundry/localization'; import { rollFormula } from '@src/foundry/rolls'; import ...
import React, { Component } from 'react'; import classnames from 'classnames'; import { Link } from 'gatsby'; import Page from '../components/Page'; import IndexLayout from './index'; import styled from 'styled-components'; import { IQuickStart, QuickStartSiteType } from '../types'; import Jumbotron from '../components...
import axios, { AxiosInstance } from 'axios' import { toLabel, idToServiceDefinitionPath } from 'utils/files' import defaultSpec from 'utils/defaultSpec' const createGithubApi = (): AxiosInstance => { let token try { token = sessionStorage.getItem( process.env.REACT_APP_TOKEN_NAME || 'compendium-token' ...
<gh_stars>10-100 /* * Copyright (c) 2016-present Invertase Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this library except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
'use strict'; var Funnel = require('broccoli-funnel'); var flatten = require('broccoli-flatten'); var htmlReplace = require('../html-replace'); var mergeTrees = require('broccoli-merge-trees'); var path = require('path'); var replace = require('broccoli-replace'); var stew = require('broccoli-stew'); var ts2dart = req...
import isEqual from 'lodash/isEqual'; import { Mark as PMMark, Node as PMNode } from 'prosemirror-model'; import { codeBlockToJSON, dataConsumerToJSON, defaultSchema, expandToJSON, linkToJSON, mediaSingleToJSON, mediaToJSON, mentionToJSON, tableToJSON, toJSONTableCell, toJSONTableHeader, } from '...
//sumaryitem.ts // export class SummaryItem { // private _name: string; private _route: string; private _ref: string; private _count: number; private _desc: string[]; private _sumdata: number; private _sumcoef: number; private _note: number; // constructor(xname?: string, xroute?: string, xref?: string) { ...
import React from "react"; import {Menu} from "antd"; import Icon from "@ant-design/icons"; import {Link, withRouter} from "react-router-dom"; import {RouteComponentProps} from "react-router"; const SubMenu = Menu.SubMenu; interface NavMenuProps extends RouteComponentProps<any> { menuData: any; Authorized?: ...
import http, { IncomingMessage, ServerResponse } from "http"; import { Command, CommandOption, inferMiddlewareContextTypes, MiddlewareFunction, } from "./commands"; import { APIPingInteraction, APIApplicationCommandInteraction, APIMessageComponentInteraction, InteractionType, ApplicationCommandType, ...
import { Collection } from '@discordjs/collection'; import { request } from 'urllib'; import { ArgumentEntityOrArgument, CallListResponse, SCPDResult, SessionInfo, TR64Entity, TR64Response } from './types'; import { buildSoapAction, buildSoapMessage, generateInsecureResponse, parseXML, soapReques...
<filename>app/config/rc.ts import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; import { IbizanConfig } from './types'; const REQUIRED_SCOPES = ['bot', 'im:read']; export function createIbizanConfig(rcPathOverride?: string, optsPath?: string, args?: any): IbizanConfig { const rcConfi...
<gh_stars>0 /******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2...
/* eslint-disable @typescript-eslint/camelcase */ import * as firebase from 'firebase' import * as Device from 'expo-device' import * as Application from 'expo-application' import { uploadTreeImage } from './uploadTreeImage' import { FormValues } from '../addTreeForm' import { addTree, TreeData } from '../../../lib/fir...
<reponame>eAnagnostis/thorium-reader // ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file ex...
import { DirectionType, CardSize, Status, PageStyle, DS_TOOL_H, BOTTOM_TOOL_H, SelectionModeType } from '../../config' import { DataRecord, DataSourceManager, IMUseDataSource, getAppStore } from 'jimu-core' import { ListProps, ListStates } from '../widget' import { SortSettingOption } from 'jimu-ui/advanc...
import util from "util"; import path from "path"; import { exec } from "child_process"; import fs from "fs"; import µ from "micromatch"; import pLimit from "p-limit"; import to from "await-to-js"; import { red, yellow, blue, dim } from "kleur"; const limit = pLimit(8); const log = (msg: string) => { console.log(blu...
import { fromJS, Map } from "immutable"; import { of, interval } from "rxjs"; import { map, take, catchError, concatMap, tap } from "rxjs/operators"; import { ajax } from "rxjs/ajax"; import { ofType } from "redux-observable"; import { createSelector } from "reselect"; // import { apiUriConfig } from "../../ducks"; //...
import { throttle } from 'lodash'; import React from 'react'; import { Animated, FlatList, NativeScrollEvent, NativeSyntheticEvent, Platform, } from 'react-native'; import { isIphoneX } from 'react-native-iphone-x-helper'; import { HEADER_HEIGHT, MINIMUM_SCROLL_DISTANCE, OS_TYPES, STATUS_BAR_HEIGHT, } from '....
<reponame>fourcube/stencil import * as d from '../../../declarations'; import { buildWarn, catchError } from '../../util'; import { getAttributeTypeInfo, isDecoratorNamed, serializeSymbol } from './utils'; import { MEMBER_TYPE, PROP_TYPE } from '../../../util/constants'; import { toDashCase } from '../../../util/helper...
/** * Modified to be a feature fill and wrapped as tinymce module. * * Promise polyfill under MIT license: https://github.com/taylorhakes/promise-polyfill */ type Callback<T, TResult = T> = ((value: T) => TResult | PromiseLike<TResult>); type RejectFn = (reason?: any) => void; type ResolveFn<T> = (value?: T | Prom...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>TitouanLeDuigou/itwinjs-core /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------...
import 'symbol-observable'; import 'core-js/stable'; import 'regenerator-runtime/runtime'; import 'whatwg-fetch'; // fetch polyfill needed for PhantomJs rendering import 'abortcontroller-polyfill/dist/polyfill-patch-fetch'; // fetch polyfill needed for PhantomJs rendering // @ts-ignore import ttiPolyfill from 'tti-pol...
/* Copyright 2015, 2016, 2017, 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
/** * Datart * * Copyright 2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
import { genHandlers } from "./event"; import { baseDirectives } from '../directives/index'; import { isReservedTag } from "src/platforms/web/util/index"; import { no } from "src/shared/util"; import { pluckModuleFunction } from "src/compiler/helper"; import { ASTElement, ASTElementHandler, ASTExpression, ASTIf...
<reponame>MichaelDill/novo-elements<filename>projects/novo-elements/src/elements/form/NovoFormControl.ts // NG2 import { FormControl, FormGroup, Validators } from '@angular/forms'; import { EventEmitter } from '@angular/core'; // APP import { NovoControlConfig } from './FormControls'; import { IFieldInteractionEvent } ...
import { CommandFactory, createCommand, ensureAbsolute, GlobalArgs, parseGlobalArgs, } from '@graphql-inspector/commands'; import { Change, CompletionArgs, CompletionHandler, UsageHandler, CriticalityLevel, diff as diffSchema, DiffRule, Rule, } from '@graphql-inspector/core'; import {bolderize...
import { cancel_order, complete_order, get_store_orders, get_user_orders, schedule_order, useGlobalContext, } from "../context/appContext"; import { useWalletContext } from "../context/walletContext"; import { useEffect, useState } from "react"; import Image from "next/image"; import Link from "next/link"; ...
/** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Component, Host, h, Prop, State, Watch, } from '@stencil/core'; import { CSR } from '../../crypto'; import { SubjectN...
import React, { FC, Fragment, MutableRefObject, ReactElement, ReactNode, useEffect, useMemo, useRef, useState } from 'react'; import { EdgeData } from '../../types'; import { Label, LabelProps } from '../Label'; import { CloneElement } from 'rdk'; import classNames from 'classnames'; import { CenterCo...
<reponame>AJ2O/hugo-theme-bootstrap import Fuse from 'fuse.js'; import * as Mustache from 'mustache'; import * as Mark from 'mark.js'; declare global { interface Window { fuseOptions: any; searchResultContentWordCount: number; searchPaginate: number; } } export class Search { public fuseOptions: any...
import { ComputedRef, isRef, nextTick, Ref, ref, unref, watch } from 'vue' import { onMountedOrActivated } from '/@/hooks/core/onMountedOrActivated' import { useWindowSizeFn } from '/@/hooks/event/useWindowSizeFn' import { useLayoutHeight } from '/@/layouts/default/content/useContentViewHeight' import { getViewportOffs...
import * as crypto from 'crypto' import wordlist from './wordlist.en' export type Pbkdf2SyncFunction = ( password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string ) => Buffer export type Pbkdf2Function = ( password: string | Buffer, salt: string | Buffer, it...
<gh_stars>10-100 /* eslint-disable */ const presetComponents: any = { // 图表 charts: { name: "图表", icon: "dv-xuritu", children: { lineCharts: { name: "折线图", code: "lineChart", componentName: "折线图", config: ["titleConfig", "background", "xAxis", "yAxis", "legend", "li...
<reponame>jaeyp/jaeycoin import * as Validator from "./validator" import * as Util from "../util" import * as Network from "../network/" import { UnspentTxOut, Transaction, processTransactions } from '../transaction/' class Block { public index: number; public hash: string; public previousHash: str...
<filename>packages/mds-agency/handlers/create-telemetry.ts import db from '@mds-core/mds-db' import { validateTelemetryDomainModel } from '@mds-core/mds-ingest-service' import { isError } from '@mds-core/mds-service-helpers' import { Telemetry, Timestamp, UUID } from '@mds-core/mds-types' import { NotFoundError, now, S...
import { useRouter } from "next/router" import LinkNext from 'next/link' import { Box, Button, Divider, Flex, Heading, HStack, Icon, Input, Link, Select, Text, VStack } from "@chakra-ui/react"; import { SubmitHandler, useForm } from 'react-hook-form' import * as yup from 'yup'; import { yupResolver } from '@hookform/re...
import * as AWS from "aws-sdk"; import { Context } from "aws-lambda"; import { Job, JobParameterBag, McmaException, McmaTracker } from "@mcma/core"; import { AuthProvider, getResourceManagerConfig, ResourceManager } from "@mcma/client"; import { AwsCloudWatchLoggerProvider } from "@mcma/aws-logger"; import { AwsS3FileL...
<reponame>marshallvaughn/sfpowerkit import { flags } from "@salesforce/command"; import { AnyJson } from "@salesforce/ts-types"; import * as fs from "fs-extra"; import * as rimraf from "rimraf"; import { zipDirectory } from "../../../../utils/zipDirectory"; import { AsyncResult, DeployResult } from "jsforce"; import {...
/** * Copyright 2018 Twitter, Inc. * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ import { StdlibRegistry } from "./Instance"; import { Ast, CallAst } from "../ast/Ast"; import { AstTypes as AT } from "../ast/AstTypes"; import SqrlAst from "../ast/SqrlAst"; import ...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Arr, Unicode } from '@ephox/katamari'; import DOMUtils from...
import * as util from "util"; import * as fs from "fs"; import * as AWS from "aws-sdk"; import { v4 as uuidv4 } from "uuid"; import { Storage } from "@google-cloud/storage"; import speech from "@google-cloud/speech"; import { AIJob, EnvironmentVariableProvider, McmaException } from "@mcma/core"; import { AwsS3FileLo...
<gh_stars>1-10 import { Point, Rect } from '../../src/view/geometry'; import { Row, getRows, removeWhitespace, pointFromString, rectFromString, getPointString, getRectString, renderedToString } from './helpers'; import { triggerNextFr...
import {injectable, inject} from 'inversify'; import {Inject} from '../common/Injectables'; import {Intent} from '../intents'; import {IntentResolution, Application} from '../../client/main'; import {FDC3Error, RaiseIntentError} from '../../client/errors'; import {Model} from '../model/Model'; import {APIToClientTopic...
<filename>containers/Connector/Connector.tsx import { useState, useEffect } from 'react'; import { createContainer } from 'unstated-next'; import { useSetRecoilState, useRecoilState } from 'recoil'; import { NetworkId } from '@synthetixio/contracts-interface'; import { loadProvider } from '@synthetixio/providers'; impo...
import React, { useState } from 'react' import { useEngineState } from '@xrengine/engine/src/ecs/classes/EngineState' import LinkIcon from '@mui/icons-material/Link' import PersonIcon from '@mui/icons-material/Person' import SettingsIcon from '@mui/icons-material/Settings' import ClickAwayListener from '@mui/material...
import chalk from 'chalk'; import colorize from 'json-colorizer'; import _get from 'lodash.get'; import _set from 'lodash.set'; import _unset from 'lodash.unset'; import { HandleRequest, Jovo } from '../index'; import { Plugin, PluginConfig } from '../Plugin'; declare module '../interfaces' { interface RequestData ...
#!/usr/bin/env yarn ts-node require("dotenv").config() import { GraphQLClient } from "graphql-request" import { values } from "lodash" import { exit, stdout } from "process" import puppeteer from "puppeteer" import { logRunningRequest } from "../src/app/utils/loggers" const login = async (): Promise<{ userId: string...
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
<reponame>amalik12/starter-snake-node-ts import { Request } from 'express' export interface Game { /** * A unique identifier for this Game. * Example: "totally-unique-game-id" */ id: string /** * Information about the ruleset being used to run this game. * Example: {"name": "stand...
import React, { useState, useRef } from 'react'; import { Animated, Dimensions, Easing, Image, SafeAreaView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import MediaExpanded from './MediaExpanded'; import { Audio } from 'expo-av'; import { RootState } from '../store'; import { Tou...
import { Button } from '@chakra-ui/button' import { DarkMode } from '@chakra-ui/color-mode' import { ArrowForwardIcon } from '@chakra-ui/icons' import { Badge, Center, Circle, Flex, Link } from '@chakra-ui/layout' import { Keyring } from '@shapeshiftoss/hdwallet-core' import * as native from '@shapeshiftoss/hdwallet-na...
import * as React from 'react'; import './HabitCalender.css' import { getDates, addDays, getMonthString, getDateString, groupBy } from '../../utils/date' import { useEffect } from "react"; import { useHabitiumContext } from "../../context"; interface HabitLog { date: string, type: string, note: string } interfa...
import * as _ from 'lodash'; export interface ParsedTerm { type: string; name?: string; argCount?: number; variableIndex?: number; value?: number; }; const flowFunctionArgs = [ 'if/1', 'elif/1', 'else/0', 'while/1', 'break/0' ]; const operationFunctions = { '+': 'add', '-': 'sub', '...