text
stringlengths
3.08k
15.5k
import { Stack, Construct, StackProps, Duration } from '@aws-cdk/core'; import { HostedZone, RecordTarget, ARecord } from '@aws-cdk/aws-route53'; import { CloudFrontTarget } from '@aws-cdk/aws-route53-targets'; import { PolicyStatement, Effect, CanonicalUserPrincipal, ServicePrincipal, CompositePrincipal...
import { Vec3 } from '../math/Vec3' import type { Body } from '../objects/Body' export type SpringOptions = { restLength?: number stiffness?: number damping?: number localAnchorA?: Vec3 localAnchorB?: Vec3 worldAnchorA?: Vec3 worldAnchorB?: Vec3 } /** * A spring, connecting two bodies. * * @class Spr...
import { app, BrowserWindow, screen, Menu, dialog, ipcRenderer, ipcMain } from 'electron'; import * as path from 'path'; import * as url from 'url'; import electronSquirrel from 'electron-squirrel-startup'; import * as PDFWindow from 'electron-pdf-window'; const { autoUpdater } = require('electron-updater'); const log...
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. * See 'LICENSE' in the project root for license information. * ------------------------------------------------------------------------------------------ */ 'use...
import Stream from 'mithril/stream'; import type { Glissando } from './types'; type PatchFn = (state: Glissando.State) => Glissando.State; const calculateNewIndex = ( state: Glissando.State, index: number | undefined, ) => { if (index === undefined || Number.isNaN(index)) { return { newIndex: state.i...
import { Guild, Message, VoiceChannel } from "discord.js"; import * as fetchVideoUntyped from "youtube-audio-stream"; import { Logger } from "../../../../utils/logger"; import { getChannel, getConnection, leaveConnection, playAudioStreamInChannel } from "../../../../utils/play-audio"; import { randomElement, shuffle } ...
<reponame>vivekpn/collaborative-workspaces import { Subscription } from 'rxjs/Subscription'; const detectPitch = require('detect-pitch') as (signal: Float32Array | {shape: ArrayLike<number>}, threshold: number) => number; import { animationFrames } from '../util/Observables'; /** * The volume underneath which we'll ...
<reponame>mariusGundersen/js-git "use strict"; import sha1 from 'git-sha1'; import applyDelta from '../lib/apply-delta.js'; import * as codec from '../lib/object-codec.js'; import {decodePack} from '../lib/pack-codec.js'; import {encodePack} from '../lib/pack-codec.js'; import makeChannel from 'culvert'; export defau...
import { Graphics } from "./Graphics"; import { Vec } from "./vector"; interface ICanvasGraphics extends Graphics { mousePos(): Vec } export function GraphicsCanvas(canvas: HTMLCanvasElement, callbacks?: any): ICanvasGraphics { var ctx = canvas.getContext('2d')!; var mousePos = { x: 0, y: 0 } var twopi = 2*3.1416...
<reponame>lweller/printmaps-ui<filename>src/app/services/printmaps.service.ts import {HttpClient, HttpErrorResponse, HttpHeaders} from "@angular/common/http"; import {Injectable} from "@angular/core"; import {EMPTY, Observable, of} from "rxjs"; import {catchError, concatMap, map, mapTo} from "rxjs/operators"; import {M...
import $ = require("jquery"); import ol = require("openlayers"); import { doif, getParameterByName } from "./common/common"; import { StyleConverter } from "ol3-symbolizer/ol3-symbolizer/format/ol3-symbolizer"; import pointStyle = require("ol3-symbolizer/examples/styles/star/flower"); import { Popup } from "ol3-popup/i...
import React, { FC, useEffect, useState } from 'react'; import styled from 'styled-components/native'; import Layout from '@src/components/Layout/Layout'; import { colors } from '@src/constants/colors'; import { useContainer } from 'unstated-next'; import { UserContainer } from '@src/containers/UserContainer/UserContai...
import isEqual from 'lodash/isEqual' import { Style } from 'treat' import omit from 'lodash/omit' import * as color from './colors' export const UNIT = 8 export const spacing = { 0: UNIT * 0, 1: UNIT * 1, 2: UNIT * 2, 3: UNIT * 3, 4: UNIT * 4, 5: UNIT * 5, 6: UNIT * 6, 7: UNIT * 7, 8: UNIT * 8, 9:...
<filename>stronghold/src/storage/levelup/store.ts import { DatabaseSchema, DatabaseStore, IDatabaseStoreOptions, IDatabaseTransaction, SchemaKey, SchemaValue, DuplicateKeyError, } from '../database' import { AsyncUtils } from '../../utils/async' import { BUFFER_TO_STRING_ENCODING } from '../database/encod...
<gh_stars>0 import { resolve } from "path"; import { Hash, Fn2, tee, not, toMap, Fn3 } from "../../utils"; import * as Common from "../common"; import { groupBy } from "lodash"; import { Type, Parameter, Primitive, Operation, Property, Alias, Enum, Module, Response, Schema, TypeUtils } from "../....
import { useState, useEffect, useRef } from 'react'; import { Bodies, Body, Composite, Engine, Events, Render, Runner, World, } from 'matter-js'; import catImage from './static/cat.png'; import cloudImage from './static/cloud.png'; import _ from 'lodash'; import './App.css'; function App() { const scene = useRef(n...
import { schema as actualSchema, JsonSchemaCommandArgument, JsonSchemaCommand } from "."; import { maybeDo, writeFile } from "./util"; import * as lo from "lodash"; import * as jsonSchema from "json-schema"; import { fixupClientTypescript } from "./patches/client"; /** occasionally redis-doc includes non-word characte...
import React, { FC, useRef, RefObject } from 'react'; import { useForm } from 'react-hook-form'; import { AddTodo, EditTodo, DeleteTodo, ToggleTodoComplete, } from '../store/types'; interface TodoFormProps { isItem?: boolean; id?: string; name?: string; description?: string; isComplete?: boolean; c...
import { MenuOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { ArrayField, Field } from '@formily/core'; import { observer, RecursionField, Schema, useField, useFieldSchema } from '@formily/react'; import { Table, TableColumnProps } from 'antd'; import { default as classNames, default as...
const MapMaker= (type:string):Array<number> =>{ const outArray = []; const colsArray = []; // This function returns the outArray, // which is a flat array containing all // of the values to assign tiles to a // world. Phaser makes the maps from arrays // of values to assign corresponding tiles // from ...
<filename>src/interpreter.ts<gh_stars>10-100 import strip from 'parse-comment-es6'; import findExports from "./findExports"; export interface ModuleItem { name?: string; default?: boolean; parse?: boolean; // whether should be parsed } export default class Interpreter { /** exec result index * 1 ...
import * as fs from 'fs'; import * as path from 'path'; import { green } from '../utilities'; if (process.env.SOLVE && process.env.SOLVE.toLowerCase() === 'true') { const challengePathname = path.resolve(__dirname, './input.txt'); const challengeFile = fs.readFileSync(challengePathname, 'utf-8'); const challen...
import React, { Fragment, useState } from "react"; import { Grid, IconButton, Icon, Box, Typography, Tooltip, withStyles, Theme, Chip } from "@material-ui/core"; import { useTranslation } from "react-i18next"; import moment from "moment"; import { Allocation } from "../interfaces"; import { useGlobalStyles } from "../...
<reponame>whg333/CocosCreator-ScrollVIewPlus<filename>assets/01/scripts/ScrollViewCtrl.ts import ItemPrefabCtrl from "./ItemPrefabCtrl"; import LoadingDialog from "../../prefabs/LoadingDialog"; const { ccclass, property } = cc._decorator; interface Iterator { hasNext(): boolean, next(value?: any) : IterationR...
import { AppendixComponents, CopyFiles, FileInfo, FilesInfo, ProjectConfigs, ReplaceInFiles, WalkPath } from "./base/lib/types"; const { exec } = require("child_process"); const cmd = (cmdStr: string) => new Promise<void>(resolve => { exec(cmdStr, (error, stdout, stderr) => { console.log(stdout); if (e...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../../../../core/common/common.js'; import * as Root from '../../../../core/root/root.js'; import * as UI from '../../legacy.js';...
import { SCHEMAS_DIR, SCHEMAS_EXTENDS_DIR } from '../../constants/path'; import fs from 'fs'; import { getGraphqlSchemas } from '../../libs/apollo/resolver'; import { gql } from 'apollo-server'; import log from '../../utils/log'; enum SCHEMA_TYPE { OBJECT = 'Object', OBJECTIO = 'ObjectIO', ENUM = 'enum' } cons...
import React, { useEffect } from "react"; import { userLogin } from "../redux/actions"; import { connect } from "react-redux"; import { useTranslation } from 'react-i18next'; import { Grid, makeStyles, Paper, TextField, Typography } from "@material-ui/core"; import clsx from "clsx"; import config from "../config"; impo...
import { FcalError } from '../FcalError'; import { Type } from '../types/datatype'; import { NumberSystem } from '../types/numberSystem'; import { Phrases } from '../types/phrase'; import { Unit } from '../types/units'; import { Token, TT } from './token'; class Lexer { public static notAlpha: string[] = [ TT.PL...
import assert from "assert" import Events from "events" import utils from "./utils" /** * Create an instance of `Enquirer`. * * ```js * const Enquirer = require('enquirer'); * const enquirer = new Enquirer(); * ``` * @name Enquirer * @param {Object} `options` (optional) Options to use with all prompts. * @par...
import React, { Fragment, useEffect, useState } from 'react'; import { Direction4 } from './Direction4'; // eslint-disable-next-line no-unused-vars import { State } from './State'; import useSizeObserver from './hooks/useSizeObserver'; import ThreeDotsVertical from './res/ThreeDotsVertical'; type Props = { id: stri...
<reponame>scaffold-sh/aws-static-website<filename>src/lib/constructs/continuousDeployment/pipeline.ts<gh_stars>10-100 import { Token } from "cdktf" import { Construct } from "constructs" import { CodebuildProject, Codepipeline, CodepipelineWebhook, DataAwsIamPolicyDocument, IamRole, IamRolePolicy, S3Buck...
<gh_stars>0 import { ElementRef } from '@angular/core'; import { BrMaskDirective } from './directives/br-mask.directive'; import { codeSort, formatDate, idToProperty } from './utils'; import { ReportValue } from 'app/pages/users/users.component'; import { Contract, ContractExpense } from '@models/contract'; import { ...
<reponame>bauer-da/hipocampo import { GraphQLID, GraphQLNonNull, GraphQLString } from 'graphql' import { fromGlobalId, mutationWithClientMutationId } from 'graphql-relay' import { DeckModel, FieldModel, ModelModel, NoteModel, TemplateModel, } from '../../mongo' import type { ContentState, ContentStateDoc...
<filename>packages/lib/src/components/Sepa/components/IbanInput/utils.ts import countries from './specifications'; /** * Parse the BBAN structure used to configure each IBAN __specification and returns a matching regular expression. * A structure is composed of blocks of 3 characters (one letter and 2 digits). Each ...
// identifier = letter { letter | unicode_digit } import { createToken, IToken, tokenMatcher, Lexer, TokenType } from 'chevrotain'; import { UnicodeCategory } from './unicode'; export const IdentifierName = createToken({ name: 'IdentifierName', label: 'Identifier', // TODO: should we change this regex for manual...
import { Component, ComponentFactoryResolver, OnDestroy, OnInit } from '@angular/core'; import { Edge } from '@swimlane/ngx-graph'; import { SidePanelService } from 'frontend/packages/core/src/shared/services/side-panel.service'; import { BehaviorSubject, combineLatest, Observable, Subject, Subscription } from 'rxjs'; ...
import {GLEAP_TOKEN} from '@env'; import {useNavigation} from '@react-navigation/native'; import {Button, Text} from '@ui-kitten/components'; import React, {FC, forwardRef, ForwardRefRenderFunction, useImperativeHandle, useRef, useState} from 'react'; import {FlatList, ListRenderItem, Platform, StyleSheet, View} from '...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // Originally copied from https://github.com/Microsoft/vscode/blob/1.27.1/src/vs/workbench/services/configurationResolver/node/variableResolver.ts import * as _ from "lodash"; import * as path from "path"; import * as...
import bodyParser from 'body-parser'; import type { Router } from 'express'; import type { ProbotOctokit } from 'probot'; import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { accountConfigs } from '../accountConfigs'; import type { MessageCategory } from '../dm/MessageCategory'; ...
<filename>lib/autofix/thirdPartyLicense.ts /* * Copyright © 2019 Atomist, Inc. * * 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 * * ...
import { Cardano, WalletProvider } from '@cardano-sdk/core'; import { DirectionalTransaction, FailedTx, TransactionDirection, TransactionFailure, TransactionsTracker } from './types'; import { EMPTY, Observable, Subject, combineLatest, concat, defaultIfEmpty, distinctUntilChanged, exhaustMap, ...
import * as React from 'react'; import {useEffect} from 'react'; import {Checkbox, Form, Button, Icon, Select, Drawer, Modal, Input, Radio} from 'antd'; import TagList from '../tagList'; import logType from '../../common/const/logType'; import {firstUpperCase} from '../../common/util'; import {useBusinessList} from '.....
import lineColumn = require('line-column') import LruCache = require('lru-cache') import parser = require('@solidity-parser/parser') import {ASTNode, BaseASTNode} from '@solidity-parser/parser/dist/ast-types' import {CheckerContext, FeatureSite, Filename, LineColumnFinder} from '../model/feature' import {CodeInfo, Cod...
import React, { useContext, useEffect, useState } from "react"; import { BarChart, LineChart, Bar, XAxis, YAxis, CartesianGrid, ResponsiveContainer, Line, Tooltip, TooltipProps, } from "recharts"; import { filterEntriesByRepositoryName, getColorFromRepositoryName, getPriceByRepositoryName, U...
<reponame>Draggha/pickdrasil-mithril<gh_stars>1-10 'use strict' /** * @module TreeNode */ // interfaces import { INodeData, INodeMetaData, IEventHandler, IDOMEventHandler } from './interfaces/common-interfaces' // external libs import m from 'mithril' import radio from 'radio' // PubSub library // local impo...
import { FormComponentType } from '../interfaces/enums'; export enum FormIntegrationProvider { EMAIL = 'email', GREEN_VALLEY = 'green_valley', TOPDESK = 'topdesk', } // tslint:disable-next-line:no-empty-interface export interface GVIntegrationConfig { } // tslint:disable-next-line:no-empty-interface export int...
<filename>Chapter02/samples_types_advanced.ts // Union types // =========== var unionType: string | number; unionType = 1; console.log(`unionType : ${unionType}`); unionType = "test"; console.log(`unionType : ${unionType}`); function addWithUnion(arg1: string | number, arg2: string | number) { return arg1.toStr...
<filename>js/reduce.algo2/delais_tests.ts import test, { ExecutionContext } from "ava" import { nbDays } from "./nbDays" import { delais, ChampsEntréeDelai, ChampsDettes, SortieDelais } from "./delais" import { ParHash } from "../RawDataTypes" import { ParPériode, makePeriodeMap } from "../common/makePeriodeMap" const...
import React, { useEffect, useRef, useState } from "react"; import uPlot from "uplot"; import { useWidth } from "./hooks"; import { DataBuffer, fpsFormat, PlotUpdateMethod, UpdatingUPlot } from "./plotting"; /* The Plot component (capital P) can be used to add uPlots to React. * <Plot /> takes an object of 5 argument...
import { InstanceFactory } from "../main/instancefactory"; import { AopFactory } from "../main/aopfactory"; import { TransactionAdvice } from "./transactionadvice"; import { NoomiError } from "../tools/errorfactory"; import { MysqlTransaction } from "./mysqltransaction"; import { NoomiTransaction } from "./noomitransac...
import { computed, ref, watchEffect } from 'vue'; import { getValidDate, isValidDate, setMonth, setYear, startOfDay, startOfMonth, startOfYear, } from '../util/date'; import { TableDate } from './TableDate'; import { TableMonth } from './TableMonth'; import { TableYear } from './TableYear'; import { Panel...
<reponame>pedro-m-vazquez/todoist-nodejs<gh_stars>10-100 export interface User { 'id': number; // The user’s token that should be used to call the other API methods 'token': string; 'email': string; // The user’s real name formatted as Firstname Lastname 'full_name': string; // The id of the user’s Inbox ...
import { ControllerAbstract, LONGPRESS_TIME } from './lib' import { PrompterViewInner } from '../PrompterView' const LOCALSTORAGE_MODE = 'prompter-controller-arrowkeys' /** * This class handles control of the prompter using Keyboard keys sent from a contour shuttle * Up: shift + control + alt + [1-7] * Down: shift...
import { EventParams } from 'socket.io/dist/typed-events'; import Utils from '../../utils/Utils'; import Eventable from '../../utils/Eventable'; import Board from '../board/Board'; import BoardService, { runDice } from '../board/BoardService'; import Player from '../player/Player'; import BankService from '../bank/Bank...
<filename>src/Schema.ts import { JSONSchema7 } from 'json-schema'; import Ajv from 'ajv'; import { guid } from './utils'; import { AnyValidateFunction } from 'ajv/lib/types/index'; export interface BaseRootSchema extends JSONSchema7 { type: 'object'; primaryKey?: string; } const defaultPrimaryKey = 'id' export c...
<reponame>deanearlwright/AdventOfCode // ====================================================================== // Dragon Checksum // Advent of Code 2016 Day 16 -- <NAME> -- https://adventofcode.com // // Typescript implementation by Dr. <NAME> III // =================================================================...
<reponame>tomByrer/solid-labels import { PluginObj } from '@babel/core'; import * as solid from 'solid-js'; import * as solidWeb from 'solid-js/web'; import * as solidStore from 'solid-js/store'; import { State } from './types'; import LABEL_PARSER from './label-parser'; import COMMENT_PARSER from './comment-parser'; i...
import { nanoid } from "nanoid"; import { AuthToken, getUserFromToken } from "../auth.js"; import { games, User, users } from "../datastores.js"; import { applyMoves, BOARD_SIZE, getScoresFromBoard, getShuffledBag, HAND_SIZE, isValidMove, LETTER_WEIGHTS, Move, words, } from "../game.js"; import { broa...
// eslint-disable-next-line camelcase import { subscribe, identity, toggle_class, query_selector_all } from 'svelte/internal' import { findSchemaPathForElement, withPathOf, runAll, isString, asArray, isHTMLFormElement, } from './utils' import type { FormupContext, SvelteActionResult, ValiditiyAction...
<reponame>lawvs/poi-plugin-quest-2<gh_stars>1-10 import { QuestData } from '../build/kcanotifyGamedata' import { GameQuest, QUEST_API_STATE } from './poi/types' type DocQuest = { code: string name: string desc: string memo?: string unlock?: number[] tracking?: number[][] } export type UnionQuest = { gam...
import React, { CSSProperties, ReactElement, ReactNode, useCallback, useEffect, useRef, useState } from 'react'; import classNames from 'classnames'; import { Theme } from 'LumX'; import { AUTOPLAY_DEFAULT_INTERVAL, FULL_WIDTH_PERCENT } from 'LumX/components/slideshow/constants'; import { CSS_PREFIX } from 'LumX/core...
// MIT License // // Copyright (c) 2016-2018 GenesisKernel // // 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...
import { Controller,Body,Post,Get,Query } from '@nestjs/common'; import { TradingService } from './trading.service'; import { ConfigService } from '@nestjs/config'; import { HttpsProxyAgent } from 'hpagent'; import got from 'got'; import { myTradesRes } from '../../mock/myTradesRes' const { binanceConnector } = requir...
<filename>src/matter_types.ts import { MatterBody } from './objects/MatterBody'; import { IConstraintRenderDefinition } from 'matter-js'; // Simple X,Y point. export type XYPos = { x: number, y: number }; // Use this to define a matter object within the world. export type ObjectIdentifiers = { index: number, ...
<filename>lib/construction/strategy/ConstructionStrategyCommonJsString.ts<gh_stars>10-100 import * as Path from 'path'; import type { IModuleState } from '../../loading/ModuleStateBuilder'; import type { ICreationStrategyCommonJsOptions } from './ConstructionStrategyCommonJs'; import { ConstructionStrategyCommonJs } fr...
import React from 'react'; import Box from '@mui/material/Box'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import { styled } from '@mui/material/styles'; import { Ava...
import { Cascader, Checkbox, Select, message } from 'antd'; import React, { useState, useRef, useEffect } from 'react'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; import { SorterResult } from 'antd/es/table/interface'; import Cre...
<reponame>cherba29/tally<filename>client/hbs/js/utils.ts import {TallyAccount, Statement, SummaryStatement} from './base'; import {Cell} from './cell'; import {Row} from './row'; /** * Create map of owner->type->accountname, it will be rendered in this format. * @param accountNameToAccount - account name->account m...
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/ban-types */ // typed-ember has not publihsed types for this yet // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import { getValue } from '@glimmer/tracking/primitives/cache'; import { assert } from ...
<reponame>fyzlog/mosaic // tslint:disable:no-console import { AfterViewInit, Component, ElementRef, NgModule, ViewChild, ViewEncapsulation } from '@angular/core'; import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-brow...
import axios from "axios"; import AwesomeSlider from 'react-awesome-slider'; import EventAircraftBookModal from './eventAircraftBookModal'; import DataTypes from './@types/userData'; import { useEffect, useState } from "react"; import { Button, Card, Spinner } from "react-bootstrap"; import { baseURL } from "../ctx/cfg...
<reponame>thomas-crane/n2<gh_stars>1-10 /** * @module net */ import { EventEmitter } from 'events'; import { Socket } from 'net'; import { PacketBuffer } from './packet-buffer'; import { Packets } from './packets'; import { RC4, OUTGOING_KEY, INCOMING_KEY } from './crypto'; import { Packet } from './packet'; import {...
import * as FileSystem from "../../core/io/FileSystem"; import * as path from 'path'; import Xml from '../../core/io/Xml'; import { CdsSolutions } from "../../api/CdsSolutions"; export default class SolutionFile { get file():string { return this._file; } private _file:string; private _xml:string; ...
import fetch from "node-fetch"; import * as config from "./config"; import { toCamelCase, toSnakeCase } from "./util"; export interface IDbApi { // Authentication isAuthenticated: () => boolean; login: (username: string, password: string) => Promise<Response<AuthResponseData | null>>; register: (username: string,...
import { Component, Inject, OnInit, ChangeDetectorRef, ElementRef, ViewChild, NgZone } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; import { debounceTime, distinctUntilChanged, tap } from 'rxjs/operators'; import { MatPaginator, MatTableDataSource, MatSort, MatDialog } from '...
<gh_stars>0 import { Success, Unsuccessful } from '@onekeyfe/connect'; import BigNumber from 'bignumber.js'; import { HardwareError, NotImplementedError } from '../basic/exceptions'; import { check } from '../basic/precondtion'; import { ChainInfo, CoinInfo } from '../types/chain'; import { AddressInfo, AddressVal...
import { forwardRef, Host, Input, SkipSelf, Self, Inject, TemplateRef, ViewContainerRef, Directive, Optional, EmbeddedViewRef, OnInit, } from '@angular/core'; import { AbstractControl, FormArray, FormControl, FormGroup, FormGroupDirective, NgModelGroup, ControlContainer, } from '@a...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import * as BBPromise from 'bluebird'; const replace = BBPromise.promisify(require('repl...
<gh_stars>100-1000 import { expect } from 'chai'; import { Container, inject, provide, REQUEST_OBJ_CTX_KEY, RequestContainer, scope, ScopeEnum } from '../../src'; import { CircularOne, CircularTwo, CircularThree, TestOne, TestTwo, TestThree, GatewayManager, GatewayService, GroupService, FunService, ...
<filename>src/classes/civilization.ts import { Collection } from './Collection'; import { Biome } from './biome'; import { Leader } from './leader'; interface Point { x: number; y: number; } export class Civilization { civName: string; leader: Leader; leaderName: string; color: string; location: str...
import * as graphqlTypes from "graphql"; import StorageManager, { StorageRegistry } from '@worldbrain/storex' import { StorageModuleInterface } from '@worldbrain/storex-pattern-modules'; import { PublicMethodDefinition, PublicMethodValues, PublicMethodValue, PublicMethodValueType, ensureDetailedPublicMethodVal...
import { Product } from '@prisma/client'; import { log } from '../../logger'; import { prisma } from '../prisma-client'; import { ArticlesAssignment, ProductAvailable, ProductComplete } from '../model'; import { get as getArticle } from '../article'; // Typed Return: convention on how to return // Use error as p...
<reponame>sondr3/minitest<filename>lib/runner.ts import { promises as fs } from "node:fs"; import { join, parse } from "node:path"; import { performance } from "node:perf_hooks"; import { pathToFileURL } from "node:url"; import { parseCli, printVersionHelp } from "./cli.js"; import { Test } from "./test_fn.js"; import...
import { IntervalTrack, BlendMode, Tile, IntervalInstance, IntervalInstances, IntervalTilePayload, Rect, UsageCache, Object2D, Text, OpenSansRegular, Renderable, Animator } from "genome-visualizer"; import { IntervalTrackModelOverride } from "./IntervalTrackModelOverride"; import { EntityType } from "valis"; import { ...
//TODO: Wildcard mapping for properties and types, so that we can 'mask' types for unit testing //Jasmine specific extensions (different library) for unit test helpers export const WILDCARD ='*'; export class ProxyFactory{ _map:Map<any,ProxyBuilder> =new Map<any,ProxyBuilder>(); builder(key:any):ProxyBuilder{...
<reponame>asopicki/CuerManager import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core'; import {PitchShifter} from 'soundtouchjs'; import { Cuecard } from 'src/app/events/cuecard'; import { CuecardService } from '../cuecard.service'; import { MessageService } from 'src/app/message.ser...
/* eslint-disable react/no-array-index-key */ import React, { FC, useEffect, useMemo, useState } from 'react'; import { styled } from '@linaria/react'; import classNames from 'classnames'; import { ErrorHint } from 'components/common/ErrorHint'; import { PasswordInput } from 'components/common/PasswordInput'; import ...
import * as React from 'react'; import uniq from 'lodash/uniq'; import styled from 'styled-components'; import { Meta } from '@storybook/react'; import { createTemplate, createStory } from '../../stories/utils'; import { Filters, FiltersProps } from '.'; import { SchemaSieve, Tag } from '../..'; import PokeDex, { getNa...
<filename>packages/sdk/src/types/service/marketplace.service.interface.ts import Account from '../model/account.interface'; export interface GetMerchantPaymentMethodsRequest { /** Filtered tags for serach by payment methods */ tags?: string; /** Hashed ID of the merchant */ merchantID: string; } /** * Abstra...
const isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // Special Keys interface keyMap { [propName: string]: number | string; } // type StatusKey = 'shiftKey' | 'altKey' | 'ctrlKey' | 'metaKey' // enum E1 { 'shiftKey', 'altKey', 'ctrlKey', 'metaKey' } in...
// deno-lint-ignore-file no-explicit-any import { ButtonStyles, CreateBotOptions, DiscordenoInteraction, DiscordenoMessage, InteractionApplicationCommandCallbackData, } from "../../deps.ts"; import { AkumaKodoCollection } from "../lib/utils/Collection.ts"; import { AkumaKodoCommand, rateLimitInterfa...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { Subject } from 'rxjs'; import { ApplicationService } from '../../../../services/application/application.service'; import { MappingApplication } from '@bedes-common/models/mapping-application/mapping-app...
/** @jsxImportSource https://esm.sh/preact */ import { Application, httpErrors, Router, send, } from "https://deno.land/x/oak@v10.4.0/mod.ts"; import { join, parse } from "https://deno.land/std@0.117.0/path/mod.ts"; // import { ensureFile, } from "https://deno.land/std@0.117.0/fs/mod.ts"; import { getDirname }...
<reponame>Gitoffthelawn/lazy-image-loader import {LazyImg, Message} from "./types"; import { isChrome, isFirefox, Tab, TabChgInfo, RedirectSpec, Sender, getBrowserObject, } from "./browser"; let browser = getBrowserObject(); async function lazyLoad(e: MouseEvent) { // Look for images under mouse point...
<reponame>fiedlr/gooddata-react-components // (C) 2007-2019 GoodData Corporation import map = require("lodash/map"); import zip = require("lodash/zip"); import values = require("lodash/values"); import flatten = require("lodash/flatten"); import identity = require("lodash/identity"); import { isStacked, toNeig...
<reponame>StephenMcConnel/BloomLibrary2 import UseAxios from "axios-hooks"; import { useMemo, useState } from "react"; import { setUserInterfaceTag } from "../model/Language"; import files from "./crowdin-file-names.json"; import * as Sentry from "@sentry/browser"; import englishCodeStrings from "./Code Strings.js...
<reponame>andmattia/ng-officeuifabric<gh_stars>100-1000 import * as angular from 'angular'; import { IPerson } from '../../core/person'; /** * @ngdoc interface * @name IFacepileScope * @module officeuifabric.components.facepile * * @description * This is the scope used by the `<uif-facepile>` directive. * * @p...
<gh_stars>0 import { ArgType, ArgTypeTuple } from './ArgType' import { choice, ParserState, ErrorMsgProvider, Parser } from 'parsers-ts' import { isOneOf } from './utils' /** The result of an Arg's parsing. */ export interface ArgResult<T> { /** The result is of type 'arg'. */ type: 'arg' /** The name of the argume...
<reponame>varijkapil13/atlaskit // @ts-ignore: unused variable // prettier-ignore import { css, Styles, StyledComponentClass } from 'styled-components'; import { akColorN40A, akColorB100, akColorB300, akColorB75, akColorN20, akColorN50, akColorR50, akColorR300, akColorR75, akColorN20A, akBorderRad...