text
stringlengths
3.08k
15.5k
import * as bip39 from 'bip39' import * as bip32 from 'bip32' import * as bech32 from 'bech32' import secp256k1 from 'secp256k1' import crypto from 'crypto' import { ECPair } from 'bitcoinjs-lib' const BECH32_PUBKEY_ACC_PREFIX = 'bandpub' const BECH32_PUBKEY_VAL_PREFIX = 'bandvaloperpub' const BECH32_PUBKEY_CONS_PREFI...
// <NAME> interface Tile { x: number, y: number, isBomb: boolean } let playing = true; // Funkcie const rand = <T>(arr: T[]) => { return arr[Math.floor(Math.random() * arr.length)]; } const getAdjanced = (tiles: Tile[], tile: Tile, width: number, height: number) => { const adjanced: Tile[] = []; ...
// Copyright Contributors to the Amundsen project. // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import * as Avatar from 'react-avatar'; import { RouteComponentProps } from 'react-router'; import { Link, NavLink, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; impor...
import { Flex, Message, Separator, Spacer, Theme } from "@artsy/palette" import { ArtistAboveTheFoldQuery, ArtistAboveTheFoldQueryVariables, } from "__generated__/ArtistAboveTheFoldQuery.graphql" import { ArtistBelowTheFoldQuery, ArtistBelowTheFoldQueryVariables, } from "__generated__/ArtistBelowTheFoldQuery.gr...
<reponame>cedricgc/core import http from 'http'; import { promisify } from 'util'; import { Middleware } from './application'; import Context from './context'; import { HeadersInterface, HeadersObject } from './headers'; import MemoryRequest from './memory-request'; import MemoryResponse from './memory-response'; impor...
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import * as React from 'react' import { observer } from 'mobx-react-lite' import { Shape, Indicator, HTMLLayer, Container, SelectionDetailContainer, ContextBarContainer, SVGContainer, } fr...
import { EventEmitter } from "events"; import * as http from "http"; import * as WebSocket from "ws"; import getLogger from "./../utils/log4js"; const logger = getLogger("WebSocketManager"); export type IClientRequestListener = ( req: http.IncomingMessage ) => Promise<{ type: string; extData?: any }>; export type I...
<gh_stars>10-100 /********************************************************************************************************************* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
<reponame>AlexanderWert/kibana<filename>x-pack/plugins/security_solution/public/common/hooks/eql/helpers.ts /* * 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 ...
import { Button } from '@mui/material'; import { useConnection, useWallet } from '@solana/wallet-adapter-react'; import { Keypair, SystemProgram, Transaction, TransactionSignature, PublicKey } from '@solana/web3.js'; import { FC, useCallback } from 'react'; import { useNotify } from './notify'; import bs58 from 'bs58';...
import { HTMLTableElement } from '@ephox/dom-globals'; import { Fun, Option, Strings } from '@ephox/katamari'; import { Attr, Body, Css, Element, Height, Node, Traverse, Width } from '@ephox/sugar'; import * as TableLookup from '../api/TableLookup'; import { TableSize } from '../api/TableSize'; import { getSpan } from ...
// Copyright 2021 the Deno authors. All rights reserved. MIT license. import { apply, css, theme, tw } from "../deps.ts"; import type { CSSRules, Directive } from "../deps.ts"; export type BaseStyles = keyof typeof baseStyles; export type StyleOverride = Partial<Record<BaseStyles, Directive<CSSRules>>>; const anchor ...
<reponame>amazeeio/lagoobernetes import * as R from 'ramda'; import { parsePrivateKey } from 'sshpk'; import { logger } from '@lagoobernetes/commons/src/local-logging'; import * as api from '@lagoobernetes/commons/src/api'; import * as gitlabApi from '@lagoobernetes/commons/src/gitlabApi'; import { getKeycloakAdminClie...
import * as React from 'react'; import { PureComponent } from 'react'; import { PluginKey } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; import { Popup, akEditorFloatingDialogZIndex } from '@atlaskit/editor-common'; import { EmojiTypeAhead as AkEmojiTypeAhead, EmojiDescription, Optiona...
<reponame>Lesmiscore/monapa-cli import Command from "../component/command"; import Config from "../config"; import { checkWalletExist } from "../misc/wallethelper"; import api from "../cp-client"; import { toBigNumber, toInteger, toBoolean } from "../misc/conv"; import { ArgumentParser } from "argparse"; import { Token...
import React, { useMemo } from 'react'; import { useDispatch } from 'react-redux'; import styled from 'styled-components'; import palette from '../styles/palette'; import TrashCanIcon from '../public/statics/svg/trash_can.svg'; import CheckMarkIcon from '../public/statics/svg/check_mark.svg'; import { TodoType } from...
import { Event } from '@ui5/webcomponents-react-base/lib/Event'; import { StyleClassHelper } from '@ui5/webcomponents-react-base/lib/StyleClassHelper'; import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePassThroughHtmlProps'; import { CarouselArrowsPlacement } from '@ui5/webcomponents-react/l...
<reponame>whispeer/whispeerSite declare var WHISPEER_BUSINESS : boolean const APIVERSION = "0.0.4"; const debug = require("debug"); import h from "../helper/helper"; import { connect } from "socket.io-client"; const config = require('../config.js'); import * as Bluebird from "bluebird"; import Observer from "../asse...
import { toString, isUndefined, unwrap, ArrayConcat, isArray, ObjectDefineProperty, getPrototypeOf, isExtensible, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, preventExtensions, hasOwnProperty, } from './shared'; import { ReactiveMembrane...
import * as svelte from 'svelte/compiler'; import { TemplateNode, Ast } from 'svelte/types/compiler/interfaces'; import { parse } from 'node-html-parser'; export type SvelteCodeFragment = { fragment: string; startLine: number; startChar: number; endChar: number; }; export type SvelteCodeFragments = { fileNa...
import * as crypto from 'crypto'; import * as moment from 'moment'; import * as fs from 'fs'; import * as path from 'path'; import * as xml2js from 'xml2js'; export function isObject(obj: any) { return Object.prototype.toString.call(obj) === '[object Object]'; } export function isArray(arr: any) { return Obje...
<gh_stars>0 /** * Cross-domain task proxy implementation for Bebras task API in TypeScript * Adapted from task-xd-pr.js from https://github.com/France-ioi/pem-platform/ * * It depends on jschannel. */ import { Observable, of } from 'rxjs'; import { catchError, delay, map, retryWhen, switchMap, take } from 'rxjs/o...
<filename>icc-api/model/models.ts export * from "./AbstractFilterDtoCode" export * from "./AbstractFilterDtoContact" export * from "./AbstractFilterDtoHealthElement" export * from "./AbstractFilterDtoInvoice" export * from "./AbstractFilterDtoPatient" export * from "./AbstractFilterDtoService" export * from "./AccessLo...
import { Operation } from 'apollo-link'; import { print } from 'graphql/language/printer'; /* * Http Utilities: shared across links that make http requests */ // XXX replace with actual typings when available declare var AbortController: any; //Used for any Error for data from the server //on a request with a Stat...
import { useState, useRef, useEffect, isValidElement, DOMAttributes } from 'react'; import { isFn } from '../utils'; import { ToastProps } from '../types'; import { useKeeper } from './useKeeper'; import { Direction } from '../utils/constant'; interface Draggable { start: number; x: number; y: number;...
import React from "react" import { ActivityIndicator, Image, TouchableHighlight, TextInput, Text, View } from "react-native" import AsyncStorage from '@react-native-community/async-storage'; import axios, { AxiosResponse } from "axios"; import { SvgUri } from 'react-native-svg'; import styled from 'styled-components'; ...
import { FC, useState, useEffect } from 'react'; import { RootDispatch, RootState } from '..'; import { TableMgntProps } from '../types/modals'; import Modal from 'react-modal'; import { makeStyles } from '@material-ui/core'; import Container from '@material-ui/core/Container'; import Typography from '@material-ui/cor...
<reponame>markbrouch/aws-sdk-js-v3 import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient"; import { GetContentModerationRequest, GetContentModerationResponse } from "../models/models_0"; import { deserializeAws_json1_1GetContentModerationCommand, serializeAws_j...
import React, { useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import clsx from 'clsx'; import moment from 'moment'; import { makeStyles } from '@material-ui/core/styles'; import { Avatar, Button, Card, CardContent, CardHeader, Divider, Grid, IconButton, Link, Toolti...
import React, { useContext } from "react"; import { createStackNavigator } from "@react-navigation/stack"; import { ProgressBar } from "react-native-paper"; import { FontAwesome } from "@expo/vector-icons"; import { Alert, FlatList, Image, RefreshControl, SafeAreaView, ScrollView, Text, TouchableOpaci...
import { motion } from "framer-motion"; import React, { ReactElement } from "react"; import { HeroListStats } from "../../gameParser"; import HeroAvatar from "../index/HeroAvatar"; import { heroIdMap } from "../index/Heroes"; const container = { hidden: { opacity: 0 }, show: { opacity: 1, trans...
import React from 'react'; import Guards from 'src/utils/guards'; import Section from './Section'; import Divider from './Divider'; const sizesOfSections = (children: React.ReactNode) => React.Children.toArray(children) .filter(Guards.notNull) .filter((el): el is React.ReactElement & { props: { s...
import { t, Trans } from '@lingui/macro'; import * as React from 'react'; import { withRouter, RouteComponentProps, Redirect } from 'react-router-dom'; import { Form, ActionGroup, Button, Spinner } from '@patternfly/react-core'; import { PartnerHeader, NamespaceForm, ResourcesForm, AlertList, closeAlertMixin...
import { ObjectMap } from '../../misc/Interfaces'; import { extend, flatten, index } from '../../misc/Util'; import { GridCell } from '../../model/GridCell'; import { GridRange } from '../../model/GridRange'; import { GridElement } from '../../ui/GridElement'; import { GridChangeSet } from '../common/EditingExtension';...
import { statSync } from 'fs'; import { dirname } from 'path'; import { Lexer, GraphQLSchema, Source, Kind } from 'graphql'; import { AST } from 'eslint'; import { asArray, Source as LoaderSource } from '@graphql-tools/utils'; import lowerCase from 'lodash.lowercase'; import chalk from 'chalk'; import { GraphQLESLintRu...
import { getItemByPosition } from '../dimension/dimension.helpers'; import { RevoGrid } from '../../interfaces'; export type DimensionDataViewport = Pick< RevoGrid.DimensionSettingsState, 'indexes' | 'positionIndexes' | 'positionIndexToItem' | 'sizes' | 'originItemSize' | 'realSize' | 'frameOffset' >; type ItemsT...
import { statusCode } from '../../config/index'; import Dynamic, { IDynamic, IDynamicComment } from '../../db/schema/dynamic'; import User, { IUser } from '../../db/schema/user'; import DynSingleDie, { IDynSingleDie } from '../../db/schema/dynSingleDie'; import DirExistUtils from '../../utils/DirExistUtils'; import BAS...
import { ICharacteristic, IPeripheral } from '../ble'; import { factory } from '../commands'; import { factory as decodeFactory, number } from '../commands/decoder'; import { ICommandWithRaw, DeviceId, SensorCommandIds, DriveFlag } from '../commands/types'; import { toPromise } from '../utils'; import { Queue }...
import { AfterContentInit, ChangeDetectorRef, Component, EmbeddedViewRef, Injector, Optional, QueryList, Self, TemplateRef, ViewContainerRef, } from '@angular/core'; import coreDefineProperty from '../common/core.define-property'; import coreForm from '../common/core.form'; import coreReflectDirect...
import { faDiscord, faPatreon, faPaypal } from '@fortawesome/free-brands-svg-icons'; import { faBook, faCalculator, faCog, faGavel, faIdCard, faTools } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { lazy, Suspense } from 'react'; import { Cont...
import {Actor} from 'report' import {Compute} from 'utilities/typescript' /* Welcome to the *。・゚★。 magic ☆゚・。° event file! You're probably here to add your new fabricated event to the event type! Don't. I'm a big meanie and _will_ block your PR. Instead, you'll want to set it up from your module file, using declarati...
import { ActionSequence, Session, Capabilities, Executor, WebElement, By, Builder, Key, IWebDriverOptionsCookie } from 'selenium-webdriver'; import { TestingUtil } from "./TestingUtil"; import { ToolsApps } from './Webparts/ToolsApps'; import { EventList } from './Webparts/EventList'...
// Models and validation for user data. import { _getPropertyModel, BooleanModel, ObjectModel, StringModel } from '@vaadin/form/Models'; import { Validator } from '@vaadin/form/Validation'; import { NotBlank, NotNull, Size } from '@vaadin/form/Validators'; import { TrackerIds, trackerPropNames } from './live-track'; ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { expect, fixture } from '@open-wc/testing'; import { CustomFieldElement } from '@vaadin/vaadin-custom-field'; import { SelectElement } from '@vaadin/vaadin-select'; import { IntegerFieldElement } from '@vaadin/vaadin-text-field/vaadin-integer-field'; import { createModel } from '@xstate/test'; import { createMa...
<reponame>bratter/us-map import { Topology, Objects, Properties, GeometryCollection, GeometryObject, GeometryObjectA, NullObject, } from 'topojson-specification'; /** * Modified TopoJSON GeometryCollection interface that ensures the members of a collection are * not `NullObject` therefore ensuring they...
import { BindingsFactory } from '@comunica/bindings-factory'; import { ActorQueryOperation } from '@comunica/bus-query-operation'; import { ActionContext, Actor, Bus } from '@comunica/core'; import type { IQueryOperationResultBindings } from '@comunica/types'; import { ArrayIterator } from 'asynciterator'; import { Dat...
<filename>src/i18next.ts import type { Cookie, SessionStorage } from "@remix-run/server-runtime"; import { pick } from "accept-language-parser"; import type { InitOptions, TFunction } from "i18next"; import { createInstance } from "i18next"; import type { Backend, Language } from "./backend"; import { Cache, CacheKey, ...
/** * Vega-Lite's singleton logger utility. */ import { AggregateOp } from 'vega'; import { LoggerInterface } from 'vega-util'; import { Channel, GeoPositionChannel } from './channel'; import { CompositeMark } from './compositemark'; import { ErrorBarCenter, ErrorBarExtent } from './compositemark/errorbar'; import { ...
// Copyright 2019 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 in ...
import {resolve, join, parse} from 'path'; import markdownTable from 'markdown-table'; import {pathExists, ensureDir} from 'fs-extra'; import type {FrontMatter} from './types'; import {createDependencyGraph} from '@shopify/docs-tools'; import {findUuid, strip, firstSentence} from './utilities/shared'; import {padBreak,...
import React, { Props, useEffect, useState } from 'react'; import axios from 'axios'; import TreeList, { Column, ColumnChooser, HeaderFilter, SearchPanel, Selection, } from 'devextreme-react/tree-list'; import DataGrid, { Column as GridColumn } from 'devextreme-react/data-grid'; import { Popup } from 'devextr...
<reponame>gracexwho/python-program-analysis import { SyntaxNode, Argument, Parameter } from './python-parser'; const comma = ', '; // tslint:disable-next-line: max-func-body-length function printTabbed(node: SyntaxNode, tabLevel: number): string { const tabs = ' '.repeat(4 * tabLevel); switch (node.type) { ca...
import { deepEqual } from 'fast-equals'; import { Encounter, Match, Node } from '@ecolect/graph'; import { Tokens } from '@ecolect/tokenization'; import { ValueEncounter } from './ValueEncounter'; /** * Options for a ValueNode. */ export interface ValueNodeOptions<V> { /** * Make the node try to match as much a...
import * as strtok3 from 'strtok3/lib/core'; import * as Token from 'token-types'; import * as initDebug from 'debug'; import * as riff from '../riff/RiffChunk'; import * as WaveChunk from './../wav/WaveChunk'; import { ID3v2Parser } from '../id3v2/ID3v2Parser'; import Common from '../common/Util'; import { FourCcTok...
import { Component, ViewChild, Injector, ElementRef, Output, EventEmitter, OnInit } from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap'; import { AppComponentBase } from '@shared/common/app-component-base'; import { Router,ActivatedRoute } from "@angular/router"; import { CompanyContactServiceProxy, S...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { select, Store } from '@ngrx/store'; import { takeUntil } from 'rxjs/operators'; import * as moment from 'moment'; import { State } from '../../../reducers'; import { Snapshot, SnapshotType } from '../....
<filename>source/server/tasks/DecimateMeshTask.ts /** * 3D Foundation Project * Copyright 2019 Smithsonian Institution * * 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.a...
<filename>packages/cws-bch/src/utils/transactionUtil.ts import { transport } from '@coolwallet/core'; import * as cryptoUtil from "./cryptoUtil"; import * as bufferUtil from "./bufferUtil"; import * as types from '../config/types'; const bitcore = require('bitcore-lib-cash'); const bchaddr = require('bchaddrjs'); exp...
import { GenPrinterWallet } from "../generated-typings"; import { mnemonicToEntropy, generateMnemonic, validateMnemonic } from 'bip39'; import { genSeedPhrase, validateSeedPhrase, entropyToRoot, genAccountKeyPrv, genAccountKeyPub, genStakeKey, genUTXOKey, genBaseAddr, genEnterpriseAddr, genPointerAddr, genRewardAddr } ...
import React, { useContext, useEffect, useState } from "react"; import { useRouter } from "next/router"; import { toast } from "react-toastify"; import { Formik, Form, useFormikContext } from "formik"; import * as yup from "yup"; import { AuthContext } from "./Stores/AuthContext"; import APIService from "../utils/api"...
import { each, size } from 'lodash'; import * as THREE from 'three'; import { WebXRManager } from 'three/src/renderers/webxr/WebXRManager'; import { MotionController } from '@webxr-input-profiles/motion-controllers'; import ControllerModel from './vr/ControllerModel'; import { createMotionController } from './vr/utils'...
import { ITypeInfo } from './scatter-chart.class'; import { ScatterChartTransactionTypeManager } from './scatter-chart-transaction-type-manager.class'; export enum DataIndex { X, Y, META, TRANSACTION_ID, TYPE, GROUP_COUNT } export enum MetadataIndex { AGENT_NAME, TRANSACTION_PREFIX_1, TRANS...
<filename>src/state/siren.ts<gh_stars>0 import { BaseState } from './base-state'; import { parseLink } from '../http/util'; import { Link, Links } from '../link'; import { resolve } from '../util/uri'; import { ActionInfo } from '../action'; import { Field } from '../field'; /** * Represents a resource state in the S...
<filename>src/analyzer.ts import NodeVisitor from '~/ast/NodeVisitor'; import * as ast from '~/ast'; import { Name } from '~/ast'; import { Yaksok as BuiltinYaksok, yaksok as builtinYaksok } from '~/builtin'; import { Compiler } from './compiler'; import { Type } from '~/type'; export class Analyzer extends NodeVisit...
import OutputPanel from './components/OutputPanel' import EditorPanel from './components/EditorPanel' import CodePanel from './components/CodePanel' import PanelToggler from './components/PanelToggler' import InspectionPanel from './components/InspectionPanel' import { DragManager, Resizeable } from './DragManager' imp...
import './steps.sass'; import { lookup } from 'fp-ts/lib/Array'; import { pipe } from 'fp-ts/lib/function'; import { getUseModelPropsDefinition, Model, useModel } from '../../composables/model'; import { DefaultThemePropsDefinition, useTheme } from '../../composables/theme'; import { ColorVariant } from '../../types/Co...
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor * license agreements; and to You under the Apache License, Version 2.0. " */ /* Written by Scopevisio AG 2021 */ /* * parse the contents of a cbor/cwt/zlib/base45 dgc * * Specs can be found at: * https://github.com/ehn-dcc-deve...
import {useEffect} from 'react'; import {useMount, useUnmount, useUpdate, usePrevious} from 'react-use'; import FileUp from 'fileup-core'; import File from 'fileup-core/lib/models/File'; import QueueCollection from 'fileup-core/lib/models/QueueCollection'; import _get from 'lodash-es/get'; import _isEqual from 'lodash-...
/* * 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, { Fragment, Component } from 'react'; import { EuiFormRow, ...
import { orThrow } from "../common/assert"; export interface IInputService { readonly keyboardState: KeyboardState; readonly mouseState: MouseState; cleanup(): void; } export type KeyboardState = { addMapping(code: string, reportOnlyOnRelease?: boolean, callback?: (isPressed: boolean) => void): void; removeMappi...
<gh_stars>1-10 /* * Thunderstorm is a full web app framework! * * Typescript & Express backend infrastructure that natively runs on firebase function * Typescript & React frontend infrastructure * * Copyright (C) 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
import { URL, URLSearchParams } from 'url'; import { Sha256 } from '@aws-crypto/sha256-js'; import { SignatureV4 } from '@aws-sdk/signature-v4'; import { HeaderBag, MemoizedProvider, QueryParameterBag } from '@aws-sdk/types'; import { paths } from '@millihq/terraform-next-api/schema'; import { Credentials } from 'aws-...
import React from 'react'; import {RouteComponentProps} from 'react-router/lib/Router'; import styled from '@emotion/styled'; import {Panel, PanelBody, PanelHeader, PanelAlert} from 'app/components/panels'; import {t, tct} from 'app/locale'; import AsyncComponent from 'app/components/asyncComponent'; import SettingsPa...
import React, { useCallback, useEffect, useRef, useState } from 'react'; import { CSSTransition } from 'react-transition-group'; import { classNames } from 'src/utils/helpers'; import AppInputTrigger from './InputTrigger'; import { Result } from 'src/utils/types'; import { useDebounceCallback } from 'src/utils/hooks'; ...
<reponame>Andre601/documentation-2<gh_stars>100-1000 import yaml from 'yaml'; import { readFileSync } from 'fs'; import { paths } from '../files'; import { Theme, defaultTheme } from '../themes'; import { urlToFile } from './helpers'; import { relativeToAbsolute } from '../urls'; // Maximum nesting level const maxLeve...
import { Box, Chip, CircularProgress, InputAdornment, TextField, Typography } from '@material-ui/core' import React, { useMemo, useState } from 'react' import { Archive } from 'api/archives.type' import Autocomplete from '@material-ui/lab/Autocomplete' import { Event } from 'api/events.type' import { Experiment } from...
<gh_stars>10-100 'use strict' import { app, protocol, BrowserWindow, ipcMain } from 'electron' import { createProtocol } from 'vue-cli-plugin-electron-builder/lib' import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer' import windowStateKeeper from 'electron-window-state' // Web socket and web...
<reponame>atiaxi/rotjs-ts<filename>src/types/rot.d.ts // String extensions interface FormatFunc { (...args: any[]): string; map: Object; } interface String { format: FormatFunc; } declare module ROT { var Map: MapStatic; var Display: Display; var Scheduler: SchedulerStatic; // Random Numb...
<filename>src/main.dev.ts<gh_stars>0 /* eslint global-require: off, no-console: off */ /** * This module executes inside of electron's main process. You can start * electron renderer process from here and communicate with the other processes * through IPC. * * When running `yarn build` or `yarn build-main`, this ...
<reponame>Bodachek/testCLORepo import { SPHttpClient, SPHttpClientResponse, ISPHttpClientOptions, SPHttpClientBatch } from '@microsoft/sp-http'; import { IServiceProperties } from '../models/IModels'; export interface IAdminDataService{ validateLists(serviceProps: IServiceProperties, owner: boolean): Promise<boolean...
import React, { useState, useRef, useCallback } from 'react'; import { Message, serializeMessage, parseMessage } from './messaging'; import { useEffect } from 'react'; import { ServerTimeSynchronizer } from './time-sync'; import { SimRunner, Sim } from './Sim'; import { FPSTimer } from './fps-timer'; import { SimViz } ...
<reponame>VyshnaviDasari/react import { pxToRem } from '../../utils' import { ComponentSlotStylesInput, ICSSInJSStyle } from '../../../types' import { ButtonProps, ButtonState } from '../../../../components/Button/Button' import { truncateStyle } from '../../../../styles/customCSS' const buttonStyles: ComponentSlotSty...
<filename>ts/routes/Progatt.Routes.ts<gh_stars>0 // Generated using generate.py import { RoutesCommon } from "./Common.Routes"; import { Router } from "express"; import * as Models from "../Models/Models"; export const Progatt = Router(); function GetUploadJson(file: any) { if (file==null) return { id:"nullish"...
<reponame>lucasbtobin/manager import * as Bluebird from 'bluebird'; import produce from 'immer'; import { Domain } from '@linode/api-v4/lib/domains'; import { Linode } from '@linode/api-v4/lib/linodes'; import { isEmpty } from 'ramda'; import { Action, Reducer } from 'redux'; import { ThunkAction, ThunkDispatch } from ...
import { PermissionLoggingOptions } from "../models/permissionLoggingOptions"; import { PermissionModel } from "../models/permissionModel"; import { PermissionResult } from "../models/permissionResult"; const chmod = "chmod"; const argumentPrefix = "--"; const delimiter = "-"; const allPerm = "a+rwx"; const noPerm = "...
/** @jsx jsx */ import { React, jsx, css, classNames, DataSource, ImmutableObject, IMState, IMSqlExpression, ReactRedux } from 'jimu-core' import { Button, hooks, Tooltip } from 'jimu-ui' import { loadArcGISJSAPIModules } from 'jimu-arcgis' import { SqlExpressionRuntime, getShownClauseNumberByExpression } from 'jimu-ui...
<reponame>yehonadav/backend-common-components // @ts-ignore import DynamoDB, { DocumentClient, DeleteItemOutput } from 'aws-sdk/clients/dynamodb'; import _omit from 'lodash/omit'; import _pick from 'lodash/pick'; import _isEmpty from 'lodash/isEmpty'; import { ExpressionAttributes, ConditionExpression, UpdateExpressi...
import { HelpConfig } from "./help.model"; import { defaultConfig } from "./help.config"; const TAB = " "; const BREAK = "\n"; export default class Help { private color; private command; private commands; private isRoot = false; private appName; private columnify; private columnifyOptions; private co...
/* * This is a AssemblyScript port of the original Java version, which was written by * <NAME> as described in * https://github.com/HdrHistogram/HdrHistogram * and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ import ByteBuffer from "./ByteBuffer"; import H...
<reponame>edwardsteven/ADR-Gateway<filename>src/MockServices/DhServer/Server/Helpers/TokenIssuer.ts import moment = require("moment") const {Entropy,charset64} = require("entropy-string") const entropy256bit = new Entropy({ charset: charset64, bits: 256 }) const entropy128bit = new Entropy({ charset: charset64, bits: 1...
import { FunctionVisitor } from 'typescript-to-lua/dist/transformation/context/visitors'; import * as ts from 'typescript'; import { createIdentifier, createVariableDeclarationStatement, Plugin, Statement, TransformationContext, } from 'typescript-to-lua'; import { getIdentifierSymbolId } from 'type...
<filename>colab-webapp/src/main/node/app/src/components/styling/style.ts /* * The coLAB project * Copyright (C) 2021 AlbaSim, MEI, HEIG-VD, HES-SO * * Licensed under the MIT License */ import { css, cx, keyframes } from '@emotion/css'; export const pictoColours = css({ '--pictoBlue': '#50BFD5', // main blue '...
<gh_stars>0 import { promises as fs } from 'fs' import path from 'path' import { DEPENDENCIES_FIELDS } from '@pnpm/types' import { Lockfile, ProjectSnapshot } from '@pnpm/lockfile-types' import { WANTED_LOCKFILE } from '@pnpm/constants' import rimraf from '@zkochan/rimraf' import yaml from 'js-yaml' import * as R from ...
<reponame>nasa/harmony<filename>test/helpers/stub-service.ts<gh_stars>10-100 /* eslint-disable @typescript-eslint/no-this-alias */ import { before, after, beforeEach, afterEach } from 'mocha'; import { stub, SinonStub } from 'sinon'; import request from 'superagent'; import { Logger } from 'winston'; import { CallbackQ...
import * as React from 'react'; const viewBoxStyles = { display: 'flex', height: '100%', width: '100%' }; export interface InteractiveViewBoxChildrenProps { /** An SVG viewbox string, suitable for use in a `<svg />` element */ viewBox: string; } export interface InteractiveViewBoxProps { /** ...
import React from 'react'; import clsx from 'clsx'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import { makeStyles } from '@material-ui/core/styles'; import LibraryAddOutlinedIcon from '@material-ui/icons/LibraryAddOutlined'; import PersonAddOutlinedIcon from '@material-u...
import { ActivePermissionResource, AuthProfileResource, } from '@rc-ex/core/definitions'; import { computed, watch } from '@ringcentral-integration/core'; import { reduce } from 'ramda'; import { Unsubscribe } from 'redux'; import { Module } from '../../lib/di'; import { DataFetcherV2Consumer, DataSource } from '....
<gh_stars>10-100 import { session } from "@hypertool/common"; import chalk from "chalk"; import { Command } from "commander"; import TaskList from "listr"; import packageData from "../package.json"; import * as authUtils from "./auth"; import * as manifest from "./manifest"; import { createCompiler } from "./compile...
<filename>tests/fixtures/entity-viewer/transcript.ts /** * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...