text
stringlengths
3.08k
15.5k
import { Component, NgModule, ElementRef, EventEmitter, NgZone, Input, Output } from '@angular/core'; import DxButton from 'devextreme/ui/button'; import { DxComponent } from '../core/dx.component'; import { DxTemplateHost } from '../core/dx.template-host'; import { WatcherHelper } fr...
/** * Created by sam on 04.11.2016. */ import {ascending, scale} from 'd3'; import Column, {IColumnDesc} from './Column'; import ValueColumn from './ValueColumn'; import StringColumn from './StringColumn'; export interface ICategoricalColumn { readonly categories: string[]; readonly categoryLabels: s...
'use strict'; // Ours import * as nodecgApiContext from './util/nodecg-api-context'; import * as TimeUtils from './lib/time'; import * as GDQTypes from '../types'; import {Replicant} from '../types/nodecg'; import {InterviewThrowIncoming} from '../types/schemas/interview_throwIncoming'; import {InterviewStopwatch} fro...
<filename>src/VoteParser.ts<gh_stars>0 import { Vote, VoteTarget, VoteType, SpecialVote } from "@/Vote"; import { Player } from '@/Player'; import { trimChars } from '@/StringUtils'; import { NicknameList } from './store/settings'; import { PageData, GameData } from './GameData'; interface VoteParserInformation { ...
import * as React from 'react'; import { Component } from 'react'; import { connect } from 'react-redux'; import * as dateformat from 'dateformat'; // ToDo: FIL-3207 | replace dateformat library with native solution import * as filesize from 'filesize'; // ToDo: FIL-3208 | replace filesize library with native solution ...
import * as React from 'react' import { useState, useEffect, useRef } from 'react' import classnames from 'classnames' import { setPrefixClassName, useInterval } from '../utils' import Icon from '../icon' import Transition from '../transition' interface IProps { className?: string defaultActive?: number dots?: b...
// Type definitions for @mapbox/mapbox-gl-draw 1.2 // Project: https://github.com/mapbox/mapbox-gl-draw // Definitions by: <NAME> <https://github.com/tudorgergely> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Feature, GeoJSON, FeatureCollection, Geometry, Point, Position, BBox } from 'ge...
<reponame>pipesanta/ubl-builder<filename>src/ubl21/schemaDocuments/ChildrenMap.ts interface IGenericKeyValue<T> { [id: string]: T; } type SchemaDocumentChild = { order: number; childName: string; min: number; max?: number; }; export const INVOICE_CHILDREN_MAP: IGenericKeyValue<SchemaDocumentChild> = { UBL...
<reponame>jgnewman/quartermaster import type { Day, TimeMap, } from "./types" const dayTotalMap = { 0: 31, 1: 28, 2: 31, 3: 30, 4: 31, 5: 30, 6: 31, 7: 31, 8: 30, 9: 31, 10: 30, 11: 31, } export function nullableDateFromValue(value?: number | null): Date | null { return value ? new Date(...
<gh_stars>0 import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { UI_UPDATE_CHECK_INTERVAL, UPDATE_ERC20_MARKETS, UPDATE_ETHER_PRICE_INTERVAL, UPDATE_TOKENS_PRICE_INTERVAL, VERIDEX_ORIGIN, } from '../common/constants'; import { Loc...
<filename>src/server.ts import * as express from "express"; import * as bodyParser from "body-parser"; import * as fs from "fs"; import * as dotenv from "dotenv"; import * as path from "path"; import * as helmet from "helmet"; import { Request, Response } from "express"; import * as session from "express-session"; // ...
import React from 'react' import type {StatusType, UserPage} from '../../types/apiTypes' import client from '../utils/client' type UserTableState = { pageData?: UserPage page: number previousVisitedPage: number nextVisitedPage: number status: StatusType error?: Error } type ActionType = | {type: 'visite...
import {BaseSopOperation} from './_Base'; import {DefaultOperationParams} from '../_Base'; import {CoreGroup} from '../../../core/geometry/Group'; import {BufferAttribute} from 'three/src/core/BufferAttribute'; import {InputCloneMode} from '../../../engine/poly/InputCloneMode'; import {Vector3} from 'three/src/math/Vec...
import React from 'react' import { observer } from 'mobx-react' import { FeatureDetails, Attributes, FieldName, BaseCard, } from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail' import { Paper, makeStyles, Grid, Table, TableBody, TableCell, TableRow, Link, } from '@material-ui/core' import { ...
<reponame>mevouc/imodeljs<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *------------------------------...
import React, { ComponentType } from 'react' import { render, unmountComponentAtNode } from 'react-dom' import { withRouter } from 'react-router-dom' import getDispatch from './dispatch' import preload from './preload' import { connect, getStore, dispatch } from './store' import { IGNORE_STATIC_METHODS, MOUNTED_COM...
/* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { BaseTexture, MIPMAP_MODES, Texture } from "pixi.js"; import { DynamicAtlasItem } from "./dynamic-atlas-item"; import { DynamicAtlasItemEmpty } from "./dynamic-atlas-item-empty"; import { DynamicAtlasItemWhite } from "./dyn...
import isNumber from 'lodash/isNumber'; import isString from 'lodash/isString'; import isObject from 'lodash/isObject'; import isArray from 'lodash/isArray'; import { Span } from './interfaces'; import urlJoin from 'url-join'; /** * Main documentation: https://zipkin.io/zipkin-api/#/default/get_traces */ export inte...
import * as ast from "./nodes" import { Node } from "./nodes" import { NodeVisitor } from "./visit" export type Visitor = <T extends Node>(n:T)=>T export type Transformer = <T extends Node>(n:T, visitChildren :Visitor)=>Node // transform walks as AST, calling trfun to optionally transform nodes. // // trfun should no...
/********************************************************************************************************************* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, text, date, select, color } from '@storybook/addon-knobs'; import { Container, PostCard } from '..'; import { MediaType } from '../components/PostCard/PostCard'; impo...
<reponame>danielHPeters/quest-for-nothing<gh_stars>1-10 import Entity from './Entity' import Item from './Item' import GameState from './GameState' import { Actions } from '../../client/application/InputManager' import Area from './Area' export interface Edges { left: boolean right: boolean top: boolean bottom...
import axios from "axios"; import fs from "fs/promises"; interface IWebsiteError { type: "error"; message: string; } interface IWebsiteSuccess { type: "success"; data: { [key: string]: string }; } type IWebsiteResponse = IWebsiteError | IWebsiteSuccess; export const cleanText = (text: string): string => { ...
import recommendation_config from "./recommendation_config_top_250.json" import db_json from "../database/json_data_db_sub.json" import { database, databaseRef } from "../firebase/firebase-config"; import { ref, onValue, update, set, get, child, push } from "firebase/database"; import { getAuth } from 'firebase/auth'; ...
<reponame>cognitedata/cognite-sdk-js // Copyright 2020 Cognite AS import { BaseResourceAPI, CursorAndAsyncIterator, HttpHeaders, sleepPromise, } from '@cognite/sdk-core'; import { CogniteInternalId, ExternalFileInfo, FileAggregate, FileAggregateQuery, FileChangeUpdate, FileContent, FileLink, Fi...
import async from "async"; import {Embark, Events, Logger} /* supplied by @types/embark in packages/embark-typings */ from "embark"; import {__} from "embark-i18n"; import {AccountParser, dappPath} from "embark-utils"; import Web3 from "web3"; const {blockchain: blockchainConstants} = require("embark-core/constants"); ...
/** @license * Copyright 2019 Esri * * 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...
export type Valid<T = any, E = Element> = (value?: T, target?: E, event?: Event) => boolean; export type ValidAction<T = any, E = Element> = (valid: boolean, value?: T, target?: E, event?: Event) => void; // export interface Valid<T = any, E = Element> { // valid(value?: T, target?: E, event?: Event): boolean; // ...
<filename>src/defs/generate.ts import { APGameItem, APGameLocation, APSavedSettings, EntityType, SettingType, } from "./core"; import { APCategoryData, APCategory } from "./categories/reader"; import { APStringSetting, APStringSettingJson, } from "../objs/settings/APStringSetting"; import { APNumericSe...
import * as k8s from "@pulumi/kubernetes"; import * as pulumi from "@pulumi/pulumi"; import { ExecutionClient, ExecutionClientConfig, ExecutionClientOptions, } from "./interfaces"; interface ErigonClientOptions extends ExecutionClientOptions { provider: k8s.Provider; network: string; } export class ErigonCl...
<filename>src/index.ts<gh_stars>0 // fork from https://github.com/Tapppi/async-exit-hook const noop = function () {} const defaultOptions = { onExitDone: noop, onExit: noop, asyncTimeoutMs: 10000 } type exitFunc = (err: Error | null, callback: () => void) => void; type exitDoneFunc = (code: number) => void; in...
import { PlusOutlined } from '@ant-design/icons'; import { Button, message,Form, Input, Tree, Table, Modal,Space, Card } from 'antd'; import React from 'react'; import type { RabcRoleTypes } from './data.d'; import { rabcRoleForm, rabcRoleAdd, rabcRoleDelete, rabcRoleItem, rabcRoleList, rabcRoleEffective } from './se...
<reponame>robey/bitbottle<gh_stars>1-10 import { asyncIter, byteReader, PushAsyncIterator } from "ballvalve"; import * as fs from "fs"; import * as path from "path"; import { Bottle } from "./bottle"; import { BottleType } from "./bottle_cap"; import { readCompressedBottle, CompressionOptions, writeCompressedBottle } f...
<reponame>deftomat/opinionated<filename>src/git.ts /** * Partially copied from `lint-staged` project. */ import del from 'del'; import execa from 'execa'; import { resolve } from 'path'; import { debug } from './utils'; export type GitWorkflow = ReturnType<typeof createGitWorkflow>; /** * Provides Git related ope...
<reponame>lharress/posthog<filename>frontend/src/scenes/session-recordings/player/eventsListLogic.ts import { kea } from 'kea' import { RecordingEventsFilters, RecordingEventType } from '~/types' import { sessionRecordingLogic } from 'scenes/session-recordings/sessionRecordingLogic' import { eventsListLogicType } from ...
<filename>src/Mixer.Base/Services/ConstellationService.ts import { EventEmitter } from 'events' import { toJSON } from '../Util/HelperFunctions' let WebSocket if (typeof window === 'undefined') WebSocket = require('ws') else WebSocket = window.WebSocket class ConstellationService extends EventEmitter { private s...
<reponame>CatXia/CatXiaEngine /** * @hidden */ import { Vec3, Quat } from '../math'; import { Node } from '../scene-graph'; import { IValueProxyFactory } from './value-proxy'; import { assertIsNonNullable } from '../data/utils/asserts'; export class BlendStateBuffer { private _nodeBlendStates: Map<Node, NodeBle...
import { Component, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'; import log from 'loglevel'; import { CatI18nRegistry } from '../cat-i18n/cat-i18n-registry'; let nextUniqueId = 0; /** * Inputs are used to allow users to provide text input when the expected input * is short. As we...
import axios from 'axios'; import urlencode from 'form-urlencoded'; import _ from 'lodash'; import { User } from './model/user'; import { Zone, Factor, MASTER_ZONE_ID } from './model/zone'; import { Thing } from './model/thing'; import { HemisListener, EventType } from './model/event'; import { createWsClient, WsClient...
/* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "lic...
import React, { useEffect, useState } from 'react'; import { FieldProps } from 'formik'; import { niftyService, alertService } from '../../_services'; import { AddWalletModal } from './AddWalletModal'; import { Status } from '../../_common/enums'; import { useCreatorContext } from '../CreatorContext'; import './AddCre...
import React from 'react' import { useSelector } from 'react-redux' import styled from 'styled-components' import ErrorPage from 'next/error' import { ContestLog, Ranking } from '../interfaces' import RankingApi from '../api' import ContestApi from '@app/contest/api' import ReadingActivityGraph from '../components/gra...
import { DateRange, getDateRangeFromDateRanges, isDateInDateRange, ISODateToDate } from '@navikt/sif-common-utils'; import { DagerIkkeSøktForMap } from '../types'; import { Arbeidsgiver } from '../types/Arbeidsgiver'; import { ArbeidstakerMap, ArbeidstidEnkeltdagSak, Sak, SakMedMeta, YtelseArbeidstid } from '../types/S...
import { useRouter } from 'next/router' import React, { Profiler, useEffect } from 'react' import { TestResults } from './TestResults' import { createId } from './utils/createId' /** The localStorage object that stores our tests between runs */ export type TestInfo = { /** The unique id for this test */ testId: s...
import { Trans, Plural } from "@lingui/macro"; import * as React from "react"; import { combineLatest, of, Observable } from "rxjs"; import { map, catchError, distinctUntilChanged, switchMap, } from "rxjs/operators"; import { componentFromStream } from "@dcos/data-service"; import gql from "graphql-tag"; import...
<reponame>caxy/reactfony /// <reference path="../../../../tsd_typings/tsd.d.ts"/> /** * this module is used to take input from the user on the server side * for the preboot options they want and to standarize those options * into a specific format that is known by the client code. */ import * as _ from 'lodash'; i...
import { BadRequestException, Injectable } from '@nestjs/common'; import { AutoLogService, OnEvent, sleep } from '@text-based/utilities'; import EventEmitter from 'eventemitter3'; import { Observable, Subscriber } from 'rxjs'; import { ALL_ENTITIES_UPDATED, CapbilityList, domain, EntityRegistryItemDTO, HA_EV...
import { JupyterFrontEnd, JupyterFrontEndPlugin, ILayoutRestorer } from '@jupyterlab/application'; import { ICommandPalette, MainAreaWidget, WidgetTracker, CommandToolbarButton } from '@jupyterlab/apputils'; import { LoggerRegistry, LogConsolePanel, IHtmlLog, ITextLog, IOutputLog } from '@jupyte...
import {IMatcher} from "./matchers/IMatcher"; import {INote} from "./INote"; import {SpyOnStatic} from "./spy/spy"; import {IIt} from "../../queue/IIt"; import {StackTrace} from "../../stacktrace/StackTrace"; import {DeepRecursiveCompare} from "./comparators/deeprecursiveequal"; interface Proxy { (...args): void; ...
<reponame>war408705279/vulcan<gh_stars>1-10 /** * @file route 相关 */ export const titlePrefix = 'Vulcan' export enum Pages { Index = 'index', Ship = 'ship', Crew = 'crew', Ui = 'ui', Mine = 'mine', WebView = 'web_view', IndexIntroduce = 'index_introduce', ShipIntroduce = 'ship_introduce', ShipEggs ...
import Pikaday from 'pikaday'; import 'pikaday/css/pikaday.css'; import dayjs from 'dayjs'; import 'dayjs/locale/ja'; import { Window } from '@/types'; // ロケールを設定 dayjs.locale('ja'); declare let window: Window; declare let document: Document; // APIコールの設定 window.Cake = window.Cake || {}; // 日付選択オプション const pikada...
<filename>src/state/PeopleList.ts import { Person, Location, ChangeableTypes } from "../typings/gameTypes"; import shuffle from "lodash.shuffle"; export class PeopleList { _peopleList: Person[]; _gridSize: number; constructor(peopleList: Person[], gridSize: number) { this._peopleList = [...peopleList]; ...
<reponame>pavlovcoder/typescript-detailed-project // All interfaces for modules: interface LabeledValue { label: string; } interface SquareConfig { color?: string; width?: number; } interface Point { readonly x: number; readonly y: number; } export function run(): void { // Header section: ...
<gh_stars>1-10 /* * Copyright 2020-2022 <NAME> * * 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...
import React, { useEffect, useState, ChangeEvent, FormEvent } from 'react'; import { Link, useHistory } from 'react-router-dom'; import { FiArrowLeft } from 'react-icons/fi' import { Map, TileLayer, Marker } from 'react-leaflet'; import axios from 'axios'; import {LeafletMouseEvent} from 'leaflet'; import api from '....
import React, { forwardRef, useEffect, useImperativeHandle } from 'react' import { GoogleMap, Marker } from '@react-google-maps/api' import { Button } from '@components/ui' import LocationSearchingIcon from '@mui/icons-material/LocationSearching' import * as yup from 'yup' import { useForm } from 'react-hook-form' impo...
<filename>index.ts /** * Returns true if the inputs have the same value, false otherwise. * * Two inputs, `a` and `b`, have the same value if: * * - Both are `undefined`; * - Both are `null`; * - Both are `true` or both `false`; * - Both are strings with same length and with the same sequence of code points * ...
<reponame>SocialGouv/cdtn-monolog import { DataFrame } from "data-forge"; import { some } from "fp-ts/lib/Option"; import * as fs from "fs"; import * as readline from "readline"; import { analyse, countQueries } from "../analysis/popularity"; import { analyse as analyseQueries } from "../analysis/queries"; import { Re...
/* eslint-disable jsx-a11y/label-has-associated-control */ /* eslint-disable react/no-array-index-key */ import 'react-datepicker/dist/react-datepicker.css' import { useMutation } from '@apollo/client' import Button from '@material-ui/core/Button' import IconButton from '@material-ui/core/IconButton' import { createSt...
<gh_stars>1-10 /// <reference path="typings/signalr/signalr.d.ts" /> /// <reference path="utils.ts" /> interface ILkHubProxy { client: ILkHubClient; server: ILkHubServer; } interface IMarketOrder { curFrom: string; curTo: string; volume: string; action:string; } interface ILimitOrderMod...
<filename>eve-catalogue-gui/src/app/auth.service.ts import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { catchError, tap } from 'rxjs/operators'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { MessageService } from './message.service'; import { MatSnackBa...
<reponame>rhyst/directus-strava import got from "got"; import getFull from "./full"; import { Readable } from "stream"; import nunjucks from "nunjucks"; import cookieParser from "cookie-parser"; import { json } from "express"; import fs from "fs"; import path from "path"; import indexTemplate from "./views/index.njk";...
import { DamageType } from '@module/damage-calculation'; import { DocumentSchemaRecord, LabeledNumber, LabeledValue, Rarity, Size, ValuesList } from '@module/data'; import { ActorType } from '.'; import type { ActorPF2e } from '@actor/base'; import type { ActiveEffectPF2e } from '@module/active-effect'; import type { I...
import { Transaction as TransactionT } from "ethereumjs-tx"; import { IEthereumProvider } from "../../../types"; import { deriveKeyFromMnemonicAndPath } from "../../util/keys-derivation"; import { BuidlerError } from "../errors"; import { ERRORS } from "../errors-list"; import { createChainIdGetter } from "./provider...
import type { TypeOf } from '../utils/typeof.js'; import { Components } from '../component/component.js'; import { TemplateRef } from './template-ref.js'; import { EmbeddedViewRef, EmbeddedViewRefImpl, ViewRef } from './view-ref.js'; import { getComponentView } from '../view/view.js'; export type ViewContainerOptions<...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Label, Row, Col } from 'reactstrap'; import { AvForm, AvGroup, AvInput, AvField, AvFeedback } from 'availity-reactstrap-validation'; import { Translat...
<reponame>mieradi/rds-react-sdk import styled from 'styled-components'; import { PanelStyles } from '@components/panel/PanelStyles'; import { ButtonStyles } from '@components/button/ButtonStyles'; import { DetailsStyles } from '@components/details/DetailsStyles'; import { greaterThan } from '@components/cuMediaQueries'...
import { VisualizationProvider, VisualizationCollector, asVisualizationId, } from "./Visualizer"; import { ExtractedData, isCommonDataType, CommonDataTypes, } from "@hediet/debug-visualizer-data-extraction"; import { createTreeViewModelFromTreeNodeData } from "./TreeVisualizer/Visualizer"; import { TreeWithPathVi...
<gh_stars>0 import { StringUtils, SyntaxKind, ts } from "@ts-morph/common"; import { getPreviousMatchingPos, insertIntoParentTextRange, removeChildren } from "../../../manipulation"; import { JSDocTagSpecificStructure, JSDocTagStructure, StructureKind } from "../../../structures"; import { WriterFunction } from "../../...
import React, { useCallback } from 'react'; import { css, cx } from 'emotion'; import { GrafInsightTheme, LinkTarget } from '@grafinsight/data'; import { List } from '../List/List'; import { styleMixins, useStyles } from '../../themes'; import { Icon } from '../Icon/Icon'; import { IconName } from '../../types'; /** @...
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */ import React from 'react'; import PropTypes from 'prop-types'; import addons, { StoryContext } from '@storybook/addons'; import { renderJsx, jsxDecorator } from './jsxDecorator'; import { SNIPPET_RENDERED } from '../../s...
import * as React from 'react' import { RouteComponentProps } from 'react-router' import { Form, Field } from 'react-final-form' import arrayMutators from 'final-form-arrays' import TEMPLATE from './Template' import { UploadedFile } from 'src/pages/common/UploadedFile/UploadedFile' import { InputField, DatePickerField ...
/** * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {DOCUMENT, ɵDomAdapter as DomAdapter, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, ɵ...
<reponame>hassankhan986/Fabric.Cashmere import {PaginationComponent} from '../pagination/pagination.component'; import {HcTableDataSource} from './table-data-source'; import {HcSort} from '../sort'; interface PeriodicElement { name: string; id: number; weight: number; discoveryDate: Date; } const ELEM...
<filename>api/src/paths/access-request.ts import { RequestHandler } from 'express'; import { Operation } from 'express-openapi'; import { SYSTEM_IDENTITY_SOURCE } from '../constants/database'; import { ACCESS_REQUEST_APPROVAL_ADMIN_EMAIL } from '../constants/notifications'; import { SYSTEM_ROLE } from '../constants/rol...
<gh_stars>1-10 import * as t from 'io-ts'; import {RTTI_id} from '../Scalar/RTTI_id'; import {RTTI_Meta, IMeta} from './RTTI_Meta'; import {RTTI_uri} from '../Scalar/RTTI_uri'; import {RTTI_Element, IElement} from './RTTI_Element'; import {RTTI_code} from '../Scalar/RTTI_code'; import {RTTI_Narrative, INarrative} from ...
export enum charset { BACKSPACE = 0x8, // "\b" FORM_FEED = 0xc, // "\f" NEWLINE = 0xa, // "\n" CARRIAGE_RETURN = 0xd, // "\r" TAB = 0x9, // "\t" SPACE = 0x20, // EXCLAMATION_MARK = 0x21, // ! QUOTATION_MARK = 0x22, // " NUMBER_SIGN = 0x23, // # DOLLAR_SIGN = 0x24, // $ PERCENT_SIGN = 0x25, // % ...
<filename>ts/src-ts/day4.ts interface PolicyByr { min: number; max: number; } interface PolicyIyr { min: number; max: number; } interface PolicyEyr { min: number; max: number; } interface PolicyHgtCm { min: number; max: number; } interface PolicyHgtIn { min: number; max: number; } interface PolicyHc...
import {LoggerFactory} from './logger' import {Chapter, InputMedia, InputStream, OutputMedia, OutputStream} from './media' const logger = LoggerFactory.get('snippet'); export type Snippet = string export type Snippets = Snippet | Snippet[] export function toArray(snippets: Snippets): Snippet[] { return snippets ...
import { addCustomElement, addViteOptimizeDepsExclude, addViteOptimizeDepsInclude, addViteSsrExternal, addViteSsrNoExternal, noopModule, } from "@mr-hope/vuepress-shared"; import { path } from "@vuepress/utils"; import { useSassPalettePlugin } from "vuepress-plugin-sass-palette"; import { codeDemoDefaultS...
<reponame>ggmod/d3bind<gh_stars>1-10 import Observable, {WritableObservable} from "../observable/observable"; export interface ObservableScale<Domain, Range, Output> { (x: number): Output; domain(): Domain[], domain(domain: Domain[]): this, bindDomain(observable: Observable<Domain[]>): this, bi...
<gh_stars>1-10 import { flatMap, size } from 'lodash' import type { EdgeDefinition, EntityDefinition, ForeignKeyDefinition, PropertyDefinition, TableDefinition, } from '../adapters/types' import type { BuildContext } from '../compiler' import { build_type_qualified_coreferences } from '../coreference' import...
import { log, PackagePath, yarn, utils, kax } from 'ern-core' import { getYarnLockTopLevelDependencyRe, getYarnLockTopLevelGitDependencyRe, } from './yarnLockUtils' import _ from 'lodash' /** * Represent the changes (deltas) in term of MiniApps versions * between two sets (reference and comparand) */ export int...
/** * DetectedIssue Module */ import * as primitives from "@tangdrew/primitives"; import * as t from "io-ts"; import { CodeableConcept } from "./CodeableConcept"; import { Element } from "./Element"; import { Extension } from "./Extension"; import { Identifier } from "./Identifier"; import { Meta } from "./Meta"; im...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<filename>src/common/utils/index.ts export * from "./animation"; /* 获取地址栏参数 */ export const getParameterByName = (function () { let urlParamMap = {} let interrogationIndex = location.href.indexOf("?") + 1 let str = interrogationIndex === 0 ? "" : location.href.slice(interrogationIndex) if (str) { let arr = ...
import { IColor } from './color'; import { Map, Point } from 'leaflet'; import { MapMatrix } from './map-matrix'; import { CanvasOverlay, ICanvasOverlayDrawEvent } from './canvas-overlay'; export interface IShaderVariable { type: 'FLOAT'; start?: number; size: number; normalize?: boolean; } export interface I...
import { createExponentialScoreFuntion, ScoreFunction, sumReducer } from "./score-functions"; import { argsort, close, range } from "./utils"; export const DEFAULT_LOG_BASE_VALUE = 10; export const DEFAULT_D_VALUE = 400; export const DEFAULT_K_VALUE = 32; export const DEFAULT_S_VALUE = 1; export type MultiEloConfig =...
import zclopts from '@sovpro/zclopts' import promiseConnect from '@sovpro/promise-connect' import { HeosLib } from '@sovpro/heos-lib' import { declarations } from '@sovpro/heos-lib/lib/declarations' import { format } from 'util' // Configs for displayItem internal constants const ITEM_SEP_PAT = ' -' const ITEM...
import * as Cozy from 'Cozy'; import { Party } from './Party'; import { Character } from './Character'; import { Effect } from './Effect'; import { getSFX } from './Core'; import { Battle } from './battle/Battle'; export class ItemDef { key:string; sort:number; name:string; price:number; sellable...
import { MarkdownSerializerState } from "prosemirror-markdown"; import { Node } from "prosemirror-model"; import { NodeView } from "prosemirror-view"; import { ExternalEditorPlugin } from "../shared/external-editor-plugin"; import StateBlock from "markdown-it/lib/rules_block/state_block"; import MarkdownIt from "markdo...
// (C) 2019-2020 GoodData Corporation import every = require("lodash/every"); import get = require("lodash/get"); import includes = require("lodash/includes"); import isEmpty = require("lodash/isEmpty"); import isNil = require("lodash/isNil"); import omitBy = require("lodash/omitBy"); import set = require("lodash/set")...
<filename>src/client/Components/AudioVisualizer/AudioLine.tsx import { AudioAnalyser } from "../../../shared/audioAnalyser"; import { FixAverage } from "../../../shared/Arrays"; import { AudioLightSystem } from "../../Utils/AudioSystem"; import { BaseCanvas } from "../CanvasBase/CanvasBase"; interface AVLProps { ...
<reponame>kborgmann/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { CallCluster, CallClusterWithRequest } from...
// Copyright 2017-2019 @polkadot/types authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { assert } from '@polkadot/util'; import { Codec, Constructor } from '../types'; import Text from '../primitive/Text'; i...
import { EventDataCollector } from '../formatter/helpers' import { emitMetaMessage, emitSupportCodeMessages, getExpandedArgv, parseGherkinMessageStream, } from './helpers' import { validateInstall } from './install_validator' import * as I18n from './i18n' import ConfigurationBuilder, { IConfiguration, ICon...
/* Copyright seedceo */ const parseRange = require('http-range-parse'); import request = require('request'); import fs = require('fs'); import driveAuth = require('./drive-auth'); import driveUtils = require('./drive-utils'); import { DlVars } from '../dl_model/detail'; import constants = require('../.constant...
// move the index.js code here that make more sense to find where things are import { checkArray, isArrayLike, arrayTypeHandler, objectTypeHandler, combineCheck, } from '../base' import { DEFAULT_TYPE, ARRAY_TYPE, OBJECT_TYPE, ARGS_NOT_ARRAY_ERR, PARAMS_NOT_ARRAY_ERR, EXCEPTION_CASE_ERR, DATA_KE...
import fs from 'fs'; import path from 'path'; import semver from 'semver'; import { err, JSONable, log } from '../lib/common'; function readJSONTemplate(filePath: string): JSONable { try { const content = readFile(filePath); return content !== null && JSON.parse(content); } catch (error) { ...