text
stringlengths
3.3k
33k
<gh_stars>1-10 import EventEmitter from 'events'; import { Settings, ContextClass, PollingParams, MarkupClass, Middleware, pollHandler } from './types'; import axios from 'axios'; import { stringify } from 'querystring'; import { Context } from './context'; import { Request } from './request'; import { toArray } from '...
// Type definitions for react-sketchapp 3.0 // Project: https://github.com/airbnb/react-sketchapp // Definitions by: <NAME> <https://github.com/ricokahler> // DomiR <https://github.com/DomiR> // <NAME> <https://github.com/saschazar21> // Definitions: https://github.com/DefinitelyTyped/De...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
<reponame>reetou/rocketque import * as PIXI from 'pixi.js'; import createStores from './stores/createStores'; import { rectangle } from './utils/shapes'; import { createHealthBar, createLineOfBlocks, createRocket, createPointsBar, randomlyPlaceCosmoCirclesAt, randomizeBlocksPositions, } from './src/gameElem...
import { ComponentDescriptor, ElementDescriptor, createVElement, injectComponent, clock, scheduleMicrotask, matchesWithAncestors } from "kivi"; let startTime = 0; let lastMeasure: string | null; function startMeasure(name: string) { startTime = performance.now(); lastMeasure = name; } function stopMeasure() { ...
import * as anx from '../../src/index'; import { commitFile, copyAddGitCommit, copyFile, createRepository, deleteDirectory, setRepositoryAuthor, TestFile } from '../helpers'; const tag1 = 'v1.0.0'; const tag2 = 'v2.0.0-temp'; const tag3 = 'v2.0.0'; interface FooTag { name: string; objectName: string; taggerDate...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
/* * 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 React, { useState } from 'react'; import { FormattedMessage } from '@k...
<reponame>Axodus/builder import { action } from 'typesafe-actions' import { ChainId } from '@dcl/schemas' import { buildTransactionPayload } from 'decentraland-dapps/dist/modules/transaction/utils' import { Collection } from 'modules/collection/types' import { BuiltFile, Item, Rarity } from './types' // Fetch items e...
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import { CloudFrontHeaders } from 'aws-lambda'; import { readFileSync } from 'fs'; import { parse } from 'cookie'; import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; import { Agent } from 'https'...
import * as Vidyano from "../../libs/vidyano/vidyano.js" import * as Polymer from "../../libs/polymer/polymer.js" import { Path } from "../../libs/pathjs/pathjs.js" import { App } from "../app/app.js" import { ActionButton } from "../action-button/action-button.js" import { Popup } from "../popup/popup.js" import { Que...
// import React, { useEffect, useRef, useState, useCallback, useMemo } from 'react'; // import Carousel, { Modal, ModalGateway } from "react-images"; // import { // ReactPhotoCollageComponent, // } from './react-photo-collage-component'; // const createPhotoIds = (photos) => { // return photos.map((da...
import {Component, OnInit, ViewEncapsulation, Output, EventEmitter} from "@angular/core"; import {CrudService} from "../../../services/crud.service"; import {CompleterService, CompleterData, CompleterItem} from "ng2-completer"; import { IMultiSelectTexts, IMultiSelectSettings, IMultiSelectOption } from 'angular-2-dropd...
<reponame>tchannagiri/jbrowse-components import { lazy } from 'react' import Plugin from '@jbrowse/core/Plugin' import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType' import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType' import ViewType from '@jbrowse/core/pluggableElementTypes/V...
export enum RecordType { 'A' = 1, // a host address [RFC1035] 'NS' = 2, // an authoritative name server [RFC1035] 'MD' = 3, // a mail destination (OBSOLETE - use MX) [RFC1035] 'MF' = 4, // a mail forwarder (OBSOLETE - use MX) [RFC1035] 'CNAME' = 5, // the canonical nam...
import React, { ReactNode, useRef } from 'react'; import { Box, BoxProps, useStyleConfig, useTheme, useToken, } from '@chakra-ui/react'; import type { CSSObject } from '@emotion/react'; import ReactSelect, { GroupBase, Props } from 'react-select'; import AsyncReactSelect from 'react-select/async'; import Asy...
<gh_stars>0 import {Command, flags} from "@oclif/command" import {log} from "@blitzjs/display" const getPrismaBin = () => require("@blitzjs/server").resolveBinAsync("@prisma/cli", "prisma") let prismaBin: string let schemaArg: string const runPrisma = async (args: string[], silent = false) => { if (!prismaBin) { ...
import React, { useEffect, useRef, useState } from "react"; import { useHistory, useLocation } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { changeLang } from "../../../utils/i18n/i18n"; import { languages } from "../../../utils/i18n/Langs"; import { Button } from "../Button"; import...
import { gql } from 'apollo-server-express'; import Question from 'models/question'; import QuestionSpecialtyVote from 'models/question_specialty_vote'; import Comment from 'models/question_comment'; import QuestionTagVote from 'models/question_tag_vote'; import QuestionImage from 'models/question_image'; import Questi...
<gh_stars>10-100 import "settings.less"; import "invalid.less"; import { fileDialog } from "file-select-dialog"; import { App, ButtonComponent, Notice, Platform, PluginSettingTab, Setting, TextComponent, } from "obsidian"; import BrowserPacks from "./component/browser-packs"; import IconManager from "./...
import Color from 'color'; import { Theme } from '../components/Theme/Theme'; function createShadow(lightTheme = true, ...px: number[]) { let shadowKeyUmbraOpacity = 0.12; let shadowKeyPenumbraOpacity = 0.08; let shadowAmbientShadowOpacity = 0.05; if (lightTheme) { shadowKeyUmbraOpacity = 1 - shadowKeyUmb...
<filename>tests/typings/sync/sync.ts<gh_stars>0 import allure from '@wdio/allure-reporter' import type { MockOverwriteFunction, ClickOptions, TouchAction } from 'webdriverio' import { SevereServiceError } from 'webdriverio' declare global { namespace WebdriverIO { interface Browser { browserCu...
<filename>packages/cli/src/transforms/toktx.ts<gh_stars>0 /* eslint-disable @typescript-eslint/no-var-requires */ const fs = require('fs'); const minimatch = require('minimatch'); const tmp = require('tmp'); import { BufferUtils, Document, FileUtils, ImageUtils, Logger, Texture, Transform, vec2 } from '@gltf-transform...
import TransactionRepository = require("../repository/TransactionRepository"); import ITransactionBusiness = require("./interfaces/ITransactionBusiness"); import InventoryItemBusiness = require('../business/InventoryItemBusiness'); import StockBusiness = require('../business/StockBusiness'); import TransactionDetailBus...
/** * Copyright 2021 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://www.apache.org/licenses/LICENSE-2.0 * * or ...
import { AxiosRequestConfig } from 'axios'; import { CSSProperties, ReactNode } from 'react'; import { configure as configureDataSet, overwriteConfigMergeProps, overwriteDefaultConfig } from 'choerodon-ui/dataset'; import { AttachmentConfig as DataSetAttachmentConfig, Config as DataSetConfig, DefaultConfig as Dat...
import { FillQuoteTransformerOrderType } from '@0x/protocol-utils'; import { BigNumber } from '@0x/utils'; import { constants } from '../constants'; import { MarketOperation } from '../types'; import { FeeSchedule, NativeLimitOrderFillData, OptimizedMarketOrder } from './market_operation_utils/types'; import { getNat...
<filename>client/web/src/codeintel/useCodeIntel.ts import { useEffect, useRef, useState } from 'react' import { QueryResult } from '@apollo/client' import { ErrorLike } from '@sourcegraph/common' import { dataOrThrowErrors, useLazyQuery, useQuery } from '@sourcegraph/http-client' import { ConnectionQueryArguments } ...
import {HTMLFormComponent} from "fh-forms-handler"; import {EmbeddedViewEn} from "./i18n/EmbeddedView.en"; import {EmbeddedViewPl} from "./i18n/EmbeddedView.pl"; import {EmbeddedViewLt} from "./i18n/EmbeddedView.lt"; class EmbeddedView extends HTMLFormComponent { private src: any; private label: string = null;...
<filename>test/storage.test.ts<gh_stars>0 import * as sinon from 'sinon' import * as support from './support' import * as channel from '../lib/channel' import Payment from '../lib/payment' import * as BigNumber from 'bignumber.js' import Engine, { EngineMongo, EngineNedb, EnginePostgres } from '../lib/engines/engine' i...
<filename>src/Data/Characters/Xingqiu/index.tsx import { CharacterData } from 'pipeline' import { input } from "../../../Formula/index" import { constant, equal, greaterEq, infoMut, min, percent, prod, subscript, sum, unit } from "../../../Formula/utils" import { CharacterKey, ElementKey } from '../../../Types/consts' ...
import { fetchBackend } from 'helpers'; import moment from 'moment'; export const getEnelogicData = async (user: any, url: string, config: any) => { url += '?access_token=' + config.token.access_token; if (!config.measuringpoints) throw Error('Geen measuringpoints'); if (config.measuringpoints.electra) { url...
import React, { useEffect, useState } from 'react'; import { Card } from '~components/card/Card'; import { FormattedMessage } from 'react-intl'; import { FaAngleUp, FaAngleDown, FaExchangeAlt } from 'react-icons/fa'; import { TokenMetadata } from '~services/ft-contract'; import { Pool } from '~services/pool'; import { ...
<reponame>XiaNi/three-volumetric 'use_strict'; import * as fs from 'fs'; // @ts-ignore import draco3d from 'draco3d'; import { byteArrayToLong, lerp } from '../Shared/Utilities'; import { Action, IFileHeader, IBufferGeometryCompressedTexture, WorkerDataRequest, WorkerInitializationRequest, WorkerInitializationResponse ...
<reponame>yudppp/twirp-ts import * as http from "http"; import {TwirpContext} from "./context"; import {chainHooks, isHook, ServerHooks} from "./hooks"; import {Interceptor} from "./interceptors"; import { httpStatusFromErrorCode, InternalServerError, InternalServerErrorWith, TwirpError, TwirpErrorC...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * @fileOverview random layout * @author <EMAIL> */ import { IPointTuple, NodeConfig } from '../../types'; import isArray from '@antv/util/lib/is-array'; import isNumber from '@antv/util/lib/is-number'; import isString from '@antv/util/lib/is-string'; import isFunction from '@antv/util/lib/is-function'; import ...
import { BlankNode, Comparable, DataFactory, DataFactoryOpts, Feature, Indexable, Literal, NamedNode, Node, Quad, QuadPosition, Quadruple, SomeTerm, Term, TermType, } from "./types" const datatypes = { boolean: "http://www.w3.org/2001/XMLSchema#boolean", dateTime: "http://www.w3.org/2...
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner' import * as H from 'history' import AddIcon from 'mdi-react/AddIcon' import AutoFixIcon from 'mdi-react/AutoFixIcon' import HelpCircleOutlineIcon from 'mdi-react/HelpCircleOutlineIcon' import * as React from 'react' import { Redirect } from 'react-rout...
<reponame>ductran2702/aurelia-nest-auth-mongodb<filename>server/src/auth/services/auth.service.ts<gh_stars>0 import { BadRequestException, HttpException, Injectable, InternalServerErrorException, } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import * as crypto from 'crypto'; import { sign }...
<gh_stars>1-10 /* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { SDSEContent, _decode_SDSEContent, _encode_SDSEContent, } from "../DirectoryShadowAbstractService/SDS...
import { get } from 'svelte/store'; import config from '../../config.dev'; import type { Bet } from './fairroulette_client'; import { FairRouletteService } from './fairroulette_client'; import { Notification, showNotification } from './notifications'; import { address, addressesHistory, addressIndex, balance, firstTime...
import { PLAYER } from "../../../common"; import { draft, player, season, team, league } from ".."; import { idb } from "../../db"; import { achievement, defaultGameAttributes, g, genMessage, helpers, local, toUI, logEvent, random, orderTeams, } from "../../util"; import type { Conditions, PhaseReturn, Min...
/* * Copyright © 2022 SNOMED International * * 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 ...
import { EventEmitter } from 'events'; import { isRethinkDBError, RethinkDBError } from '../error/error'; import { QueryJson, TermJson } from '../internal-types'; import { ErrorType, QueryType, ResponseType, TermType } from '../proto/enums'; import { globals } from '../query-builder/globals'; import { parseOptarg } fro...
<filename>client/libs/sweep.ts // reused array instances const tr_arr = []; const ldi_arr = []; const tri_arr = []; const step_arr = []; const tDelta_arr = []; const tNext_arr = []; const vec_arr = []; const normed_arr = []; const base_arr = []; const max_arr = []; const left_arr = []; const result_arr = []; // core ...
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-call */ import { useTheme } from '@committed/components' import { Css, EdgeCollection, EdgeDataDefinition, EdgeSingular, EventObject, La...
<reponame>ue007/webgl-api<gh_stars>0 import { mat4 } from 'gl-matrix'; import { GLContext } from './Context'; import { SHADER_PREFIX } from './Shader'; let DEBUG = true; let attributeSizeMap = { 5126: 1, // WebGLRenderingContext.FLOAT 35664: 2, // WebGLRenderingContext.FLOAT_VEC2 35665: 3, // WebGLRenderingCont...
<filename>index.ts import type { PokemonSet } from '@pkmn/sets'; import type { GenerationNum, Move } from '@pkmn/data'; import { Sprites, Icons } from '@pkmn/img'; import { Dex } from '@pkmn/dex'; import { Generations } from '@pkmn/data'; import path from 'path'; import { Canvas, loadImage, FontLibrary } from 'skia-can...
import * as vscode from 'vscode'; import * as path from 'path'; import * as parse from './parsing'; import SourceSymbol from './SourceSymbol'; import CSymbol from './CSymbol'; import SubSymbol from './SubSymbol'; import { ProposedPosition } from './ProposedPosition'; import { activeLanguageServer, LanguageServer } from...
<gh_stars>1-10 import { Component, ElementRef, Inject, OnDestroy, OnInit, SkipSelf, ViewChild } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Store } from '@ngrx/store'; import { AppState } from '@core...
import createDatabaseSchema from '@linode/api-v4/lib/databases/databases.schema'; import { CreateDatabasePayload, DatabaseMaintenanceSchedule, } from '@linode/api-v4/lib/databases/types'; import { APIError } from '@linode/api-v4/lib/types'; import { useFormik } from 'formik'; import * as React from 'react'; import ...
/* * Copyright 2021 AI Redefined Inc. <<EMAIL>> * * 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 applica...
import type { ExtractPropTypes, VNode, WatchStopHandle, CSSProperties, PropType } from 'vue' import { useCommon, useLocale } from '@vue-cesium/composables' import usePosition from '@vue-cesium/composables/private/use-position' import { VcBtn, VcTooltip } from '@vue-cesium/components/ui' import { $ } from '@vue-cesium/u...
import { Table } from '@rocket.chat/fuselage'; import { useDebouncedValue, useMutableCallback } from '@rocket.chat/fuselage-hooks'; import moment from 'moment'; import React, { useMemo, useCallback, useState, FC } from 'react'; import GenericTable from '../../../components/GenericTable'; import NotAuthorizedPage from ...
import React from 'react'; import QueryBuilder from 'src/components/organisms/QueryBuilder/QueryBuilder'; import RouteOperation from 'src/components/organisms/RouteEntry/RouteOperation'; import DocsPopover from 'src/components/organisms/DocsPopover/DocsPopover'; import StringsArray from 'src/components/atoms/StringsAr...
import { FunctionExt } from '../../util' import { View } from '../../view/view' import { Graph } from '../../graph/graph' import { EventArgs } from '../../graph/events' import { Scroller } from '../scroller' namespace ClassName { export const root = 'widget-minimap' export const viewport = `${root}-viewport` exp...
<gh_stars>1-10 import { clone } from '@antv/util/lib'; import { IG6GraphEvent, ShapeStyle } from '../../types'; import Graph from '../../graph/graph'; import Base from '../base'; const DELTA = 0.05; interface FisheyeConfig { trigger?: 'mousemove' | 'click' | 'drag'; d?: number; r?: number; delegateStyle?: Sha...
<reponame>ben-rogerson/vscode-tailwindcss-twin<gh_stars>1-10 // dash word issue: https://github.com/microsoft/language-server-protocol/issues/937 import * as lsp from "vscode-languageserver" import { TextDocument } from "vscode-languageserver-textdocument" import chroma from "chroma-js" import { serializeError } from ...
import _ from 'lodash'; import {StyleSheet} from 'react-native'; import {Typography, Colors, BorderRadiuses, Spacings, ThemeManager} from '../style'; import {BorderRadiusesLiterals} from '../style/borderRadiuses'; import TypographyPresets from '../style/typographyPresets'; import {SpacingLiterals} from '../style/spacin...
import React from 'react'; import { defineMessages, InjectedIntlProps, injectIntl } from 'react-intl'; import rafSchedule from 'raf-schd'; import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close'; import ChevronDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-down'; import ChevronUpIcon from '@atlaskit/icon/g...
import type { InterpolatedPose } from "calla/audio/positions/InterpolatedPose"; // Chromium-based browsers give the user the option of changing // the output audio device. This flag indicates whether or not // we are in a browser that supports such a feature, without // hardcoding the project to a specific browser. im...
<filename>English/PresenterBotWebUI/scripts/Charactor.ts /// <reference path="./typings/createjs/createjs.d.ts" /> /// <reference path="./typings/jquery/jquery.d.ts" /> declare var images: any; function getAllValues<V>(dictionary: { [name: string]: V }): V[] { var result : V[] = []; for (var p in dictionary)...
import * as path from 'path'; import R from 'ramda'; import BitMap from '../bit-map/bit-map'; import { ComponentOrigin } from '../bit-map/component-map'; import { BitId } from '../../bit-id'; import { Version } from '../../scope/models'; import { PathLinux, PathOsBased } from '../../utils/path'; import VersionDependenc...
import * as _ from "lodash"; import { BubbleGrid, createBubbleGrid, key2Coords, canvas2Math, math2Canvas, pickRandomColor, Vec2, } from "./util"; export const SCALE = 10; export const RADIUS = 1; export const PLAYGROUND_WIDTH = 40; export const PLAYGROUND_HEIGHT = 30; const GUN_LENGTH = 5; const CANVA...
import { BuilderContext, Agent, DialogContext, Event, DialogEngine, Block, CompoundBlock, WhenBlock, GotoStateBlock, CustomBlock, } from "@chitchatjs/core"; import { Directive, RequestEnvelope, ResponseEnvelope } from "ask-sdk-model"; import { v1 } from "ask-smapi-model"; /** * Type aliases */ e...
import { negate, isNil, get, filter } from 'lodash'; import BigNumber from 'bignumber.js'; import { forkJoin, from, Observable, of } from 'rxjs'; import { map, switchMap, catchError } from 'rxjs/operators'; import { Pageable } from '@tezblock/domain/table'; import { SearchOptionData } from '@tezblock/services/search/m...
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...
import { render } from 'lit-html2'; import { ref, createRef, Ref } from 'lit-html2/directives/ref.js'; import { EG, p } from '@web-companions/gfc'; import 'vanilla-colorful/hex-color-picker.js'; import { css } from 'utils/common'; import { iconLoadNode } from './iconLoad.node'; import { iconEraseNode } from './iconEr...
import {IRedisConfig} from "../interfaces/redis-config.interface"; import {RedisClient as _RedisClient} from "redis"; import {RedisError} from "../exceptions/redis.exception"; import {EXCEPTIONS} from "../constants/exceptions.constant"; import {Observable, of, Subject, concat} from "rxjs/index"; import {IRedisProvider}...
<reponame>KevinSirius/typescript-cachecash import { PublicKey, TicketL1, TicketL2, TicketL2Info, BlockKey, TicketRequest, ColocationPuzzleInfo, TicketBundleSubdigests, TicketBundleRemainder, TicketBundle, ClientCacheRequest } from './proto/cachecash_pb'; const sha384 = requir...
import {Enum} from '@/services/data/tuples/enum-types'; import {findTopicAndFactor} from '@/services/data/tuples/indicator-utils'; import {Inspection, InspectMeasureOn} from '@/services/data/tuples/inspection-types'; import {isTopicFactorParameter} from '@/services/data/tuples/parameter-utils'; import {QueryBucket} fro...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { Node as AcornNode } from 'acorn'; import { isDummy } from 'acorn-loose'; import { traverse, VisitorOption } from 'estraverse'; i...
<reponame>hydro-dev/hydro import assert from 'assert'; import emojiRegex from 'emoji-regex'; import { isSafeInteger } from 'lodash'; import moment from 'moment-timezone'; import { ObjectID } from 'mongodb'; import { ValidationError } from '../error'; import { isContent, isName, isTitle } from '../lib/validator'; import...
<filename>packages/charts/src/core/chart-assists/chart-assist.ts import each from "lodash/each"; import keyBy from "lodash/keyBy"; import values from "lodash/values"; import { Observable, of, Subject, Subscription } from "rxjs"; import { filter, map, switchMap, takeUntil } from "rxjs/operators"; import { DESTROY_EVENT...
<reponame>uilibrary/neon-icon import { Injectable } from '@angular/core'; import { of, Observable, combineLatest } from 'rxjs'; import { startWith, debounceTime, switchMap } from 'rxjs/operators'; import { FormGroup } from '@angular/forms'; interface Icon { name: string; variations: any; } @Injectable({ provide...
import { IKakao, IKakaoMarker, IKakaoMarkerImageOptions, IKakaoMarkerImage, IKakaoMouseEvent } from "tenel-kakao-map"; import * as React from "react"; import PropTypes from "prop-types"; import MarkerContext from "./context"; import _hooks from "./hooks"; import MapContext from "../Map/context"; declare var kakao:...
'use strict'; import * as csproj2ts from 'csproj2ts'; import * as path from 'path'; import * as utils from './utils'; import {Promise} from 'es6-promise'; import * as _ from 'lodash'; let templateProcessor: (templateString: string, options: any) => string = null; export function resolveVSOptionsAsync(applyTo: IGrunt...
import { VFC, createRef, useState, useEffect } from 'react'; import Button from 'react-bootstrap/Button'; import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; import Tab from 'react-bootstrap/Tab'; import Table from 'react-bootstrap/Table'; import Tabs from 'react-bootstrap/Tabs'; import { SelectCallback } from...
import React, { CSSProperties } from 'react'; import cn from 'classnames'; import aaveSrc from 'resources/png/token-aave.png'; import ilvSrc from 'resources/png/token-ilv.png'; import linkSrc from 'resources/png/token-link.png'; import sushiSrc from 'resources/png/token-sushi.png'; import uslpSrc from 'resources/png/t...
import * as React from "react" import { QueryRepeatBlock } from "./queryRepeat" import { Row, Expr, IdExpr, PromiseExprEvaluator } from "mwater-expressions" import { QueryOptions } from "../../../database/Database" import _ from "lodash" import { localize } from "../../localization" import { InstanceCtx, getFilteredCon...
import { graphql } from "gatsby"; import React, { useEffect, useState } from "react"; import { LinkButton } from "../components/Basic/Button"; import Img from "gatsby-image"; import Human from "../components/svg/Human"; import ContactForm from "../components/BuildingBlocks/ContactForm"; import SeparationH from "../comp...
<reponame>viggin543/jitsu<filename>configurator/frontend/src/catalog/sources/lib/logos/index.ts export const airbyte = require('./airbyte').default(); export const apify = require('./apify').default(); export const default_logo = require('./default-logo').default(); export const amazon = require('./amazon').default(); ...
/* @license * Copyright 2019 Google LLC. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<filename>packages/grid/_modules_/grid/hooks/features/rows/useGridRows.ts import * as React from 'react'; import { GridEvents } from '../../../constants/eventsConstants'; import { GridComponentProps } from '../../../GridComponentProps'; import { GridApiRef } from '../../../models/api/gridApiRef'; import { GridRowApi } ...
import Account from "ethereumjs-account"; import { BN, bufferToHex, keccak256, KECCAK256_NULL, stripZeros, toBuffer, unpad, } from "ethereumjs-util"; import { Map as ImmutableMap, Record as ImmutableRecord } from "immutable"; import { callbackify } from "util"; import { assertHardhatInvariant } from "../...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { hexValue } from '@ethersproject/bytes'; import type { Contract, Event } from '@ethersproject/contracts'; import type { EventType, Filter, JsonRpcProvider, Listener, Log, Network, Provider, } from '@ethersproject/providers'; import { Formatte...
import { CodeEditor } from '@jupyterlab/codeeditor'; import { ITokensProvider } from '../editors/editor'; export type RuleFunction = (context: TokenContext) => boolean; export type QueryFunction = (context: TokenContext) => string[]; export class TokenContext implements CodeEditor.IToken { // ReadonlyArray ? toke...
/** numeric strings */ declare type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32"; /** string strings */ declare type StringType = "string" | "timestamp"; /** Generic JTD Schema without inference of the represented type */ export declare type SomeJTDSchemaType = (// ref...
import { Color } from "tns-core-modules/color"; import { Folder, knownFolders, path } from "tns-core-modules/file-system"; import * as utils from "tns-core-modules/utils/utils"; import { ARMaterial, ARMaterialProperty, ARMaterialWrapMode } from "../../ar-common"; export class ARMaterialFactory { static applyMateria...
import * as React from "react" import { computed, action, observable } from "mobx" import { observer } from "mobx-react" import { select } from "d3-selection" import { easeLinear } from "d3-ease" import { guid, uniq, makeSafeForCSS } from "grapher/utils/Util" import { Grapher } from "grapher/core/Grapher" import { Bou...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as coreClient from "@azure/core-client"; export type OfferTermInfoAutoGenerated...
/** * Modify RunCheck data using a CSV data file. */ import * as fs from 'fs'; import * as util from 'util'; import * as csvparse from 'csv-parse'; import * as dbg from 'debug'; import * as mongoose from 'mongoose'; import rc = require('rc'); import * as auth from '../app/shared/auth'; import * as history from '../...
<reponame>VIAME/VIAME-Web<filename>client/platform/desktop/backend/serializers/nist.ts import { MultiTrackRecord } from 'dive-common/apispec'; import fs from 'fs-extra'; import { AnnotationFileData } from 'platform/desktop/backend/serializers/viame'; import { TrackData, Feature, StringKeyObject, } from 'vue-media-...
import * as enem from "./enemy"; // enemy damage * DAMAGE_TO_TOWER_HEALTH_COEF = how much health tower loses // (tower health is from 0 to 1) export const DAMAGE_TO_TOWER_HEALTH_COEF = 0.2 export const TOWER_HEALTH_REGEN = 0.00001 * 2 export const PAUSE_AFTER_WAVE_TIME = 3000; export const PLAYER_HEALTH_REGEN: numb...
<gh_stars>0 import { Component, OnInit, ViewChild, NgZone, AfterViewInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { ClrWizard, ClrWizardPage } from '@clr/angular'; import { switchMap, filter, merge, catchError...
<reponame>moondropx/dogbot-node import * as request from 'request-promise-native'; import * as fs from 'fs-extra'; import * as ini from 'ini'; import { join, dirname } from 'path'; import { getCard, getCards, getClass } from './apolloClient'; import { CardMeta, ClassMeta } from './model'; import config from './config';...
import { nextTick } from 'vue' import XEUtils from 'xe-utils' import { VXETable } from '../../v-x-e-table' import { getDomNode, getAbsolutePos, getEventTargetNode } from '../../tools/dom' import { hasChildrenList } from '../../tools/utils' import { VxeGlobalHooksHandles, TableMenuMethods, TableMenuPrivateMethods } fro...
/* file : vector-pipeline.ts MIT License Copyright (c) 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modif...
<gh_stars>0 import { IGroup } from '@antv/g-base'; import { vec2 } from '@antv/matrix-util'; import { each, isFunction, isNil, isNumberEqual, isObject } from '@antv/util'; import { ILocation } from '../interfaces'; import { AxisLabelAutoHideCfg, BBox, LineAxisCfg, Point, RegionLocationCfg } from '../types'; import Them...