text
stringlengths
3.3k
33k
<reponame>Oupsla/whook import SwaggerParser from '@apidevtools/swagger-parser'; import type { $Refs } from '@apidevtools/swagger-parser'; import YError from 'yerror'; import type { OpenAPIV3 } from 'openapi-types'; import type { DereferencedRequestBodyObject, DereferencedResponseObject, WhookOperation, } from '@w...
<filename>bmp085.ts /** * <NAME> * May, 28 2020 *from Adafruit original Lib included in Arduino Lib tested in BMP085 and micro:bit during 3 days ********************************************************** * <NAME> @ The Inventor's House * https://github.com/sabas1080 * January 12, 2018 * https://github.com/sabas1080/uB...
import _ from 'lodash' import {rectExt, RectExt} from '../../../../Utils/Geometry' import {linearFnFomPoints} from '../../../../Utils/LinearFn' import {ChartStateDerived} from '../Chart' import {ChartUtils} from '../ChartUtils/ChartUtils' import { ChartPointerComponentDrawArg, ChartPointerComponentTargetArgs, } fro...
<gh_stars>1-10 import { App, AppOptions, BlockAction, BlockElementAction, DialogSubmitAction, ExpressReceiver, Installation, InstallationQuery, InteractiveAction, SlackAction, View, WorkflowStepEdit } from "@slack/bolt"; import { addTeamInformation, deleteInstallation, fetchInstallation, fetchToken } from "./auth"; imp...
import * as React from 'react'; import { connect } from 'react-redux'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { Sidebar, Segment } from 'semantic-ui-react'; import Viewport from '../../containers/Viewport'; import Map from '../../containers/Map'; import Toolbar from '../Toolbar'; imp...
<gh_stars>0 declare class Api { constructor(mock?: Partial<Mock>); public buildFindObjectsFilter(findObjectsFilter: FindObjectsFilter): string; public callApi( method: METHOD, endpointAndArgs: string, obj?: unknown, onSuccess?: (resp: unknown) => void, onError?: (resp: Error) => void, post...
<filename>src/contentScripts/task_action/kanban.ts import { useThrottleFn } from '@vueuse/core'; import $message from '../antdMessage/index'; import { $, $All, isEqualAndIgnoreSomeProp } from '~/common/utils'; let kanbanData = []; let interval; const getKanbanData = () => { const kanbanDragArea = $All('.kanban-boa...
function echo(object: any) { return object; } console.log(echo("Victor").length); console.log(echo(27)); console.log(echo(27).length); //Retornará undefined pois além do tipo number não possuir length, o compilador do Typescript não detectou erros de compilação pois o parâmetro e o tipo de retorno é do tipo any cons...
declare type CTX = CanvasRenderingContext2D; declare type DrawFunction = (ctx: CTX, x: number, y: number, width: number, height: number) => void; declare type DrawType = string | DrawFunction; interface Options$1 { font?: string; fontSize?: number; size?: number; tileWidth?: number; tileHeight?: num...
<reponame>mindofmatthew/oscope<gh_stars>0 /* * Adapted from the osc.js library * * Derivative portions Copyright 2014-2016, <NAME> * Licensed under the MIT and GPL 3 licenses. */ import { OSCBundle, OSCMessage, OSCArgumentTag, OSCArgumentTagList, OSCArgumentInputValue, OSCArgumentValue, OSCArgumentV...
import { GraphQLResolveInfo } from "graphql" export type Maybe<T> = T | null export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] } export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } & { [P in K]-?: NonNullable<T[P]> } /** All built-in and custom scalars, map...
<filename>server/services/qqwry.ts import path from 'path' import fs from 'fs' import GBK from 'gbk.js' import validator from 'validator' import { httpError, ErrorCode } from './error' import { IPInfo, InfoBase, IPInfoArea, IPInfoResponse } from '@/types/services/qqwry' import { merge } from 'lodash' import dns from 'd...
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import { request } from 'https'; import { TextEncoder } from 'util'; // this method is called when your extension is activated // your extension...
import * as tsdoc from "@microsoft/tsdoc" import { motion } from "framer-motion" import { NextSeo } from "next-seo" import { useRouter } from "next/router" import * as React from "react" import { useEffect, useState } from "react" import * as System from "../../../../lighthouse" import { useTheme } from "../../../../li...
import React, { useState, useMemo } from 'react' import { ExchangeSource } from '../../constants' import { useEthPrice } from '../../contexts/globalData' import { toK, formattedNum } from '../../utils/number' import tokensList from '../../tokens.json' import _find from 'lodash/find' import _get from 'lodash/get' import...
<reponame>asimihsan/simple_tracker import * as cdk from '@aws-cdk/core'; import * as apigateway from '@aws-cdk/aws-apigateway'; // import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2'; import * as certificatemanager from '@aws-cdk/aws-certificatemanager'; import * as cloudfront from '@aws-cdk/aws-cloudfront'; imp...
import {ChevronDownIcon} from '@sanity/icons' import React, { cloneElement, forwardRef, useCallback, useEffect, useMemo, useRef, useState, } from 'react' import {EMPTY_ARRAY} from '../../constants' import {focusFirstDescendant} from '../../helpers' import {useForwardedRef, useResponsiveProp} from '../../h...
/* eslint-disable @typescript-eslint/no-magic-numbers */ import type { ReactElement } from 'react' import type { Velocity } from '../State/Velocity/Velocity' import { fieldNames } from '../State/Velocity/Velocity' import EditableItem from './EditableItem' export interface VelocitiesDisplaySettings { color: string sc...
<filename>src/sql/base/browser/ui/panel/panel.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------...
<reponame>csumudu/engage-ui import { IDocument } from '../../Types'; import TextFieldExample from '../../examples/TextFieldExample/TextFieldExample'; import TextFieldExample1 from '../../examples/TextFieldExample/TextFieldExample1'; import TextFieldExample2 from '../../examples/TextFieldExample/TextFieldExample2'; impo...
import {Component, Input, OnChanges} from '@angular/core'; import {DanceEvent} from '../../../../common/o2cm-parser/entities/DanceEvent'; import {DancerName} from '../../services/IData'; import {DataService} from '../../services/data.service'; import {Dancer} from '../../../../common/o2cm-parser/entities/Dancer'; impor...
<reponame>patotoma/trading-signals<gh_stars>100-1000 import {Big} from 'big.js'; import {ADX} from './ADX'; import data from '../test/fixtures/ADX/data.json'; import {EMA, NotEnoughDataError} from '..'; const candles = data.candles; const adx14results = data.interval_14; describe('ADX', () => { describe('getResult'...
import path from 'path'; import execa from 'execa'; import fs from 'fs-extra'; import { ciEnv, localEnv } from '../scripts/utils/constants'; import serve from '../packages/yoshi-common/serve'; import { waitForPort, waitForStdout, terminateAsyncSafe, terminateAsync, tmpDirectory, replaceTemplates, } from './...
import React, { useState, useEffect } from 'react' import styled from '@emotion/styled' import { navigate, Link } from 'gatsby' import Terminal from 'terminal-in-react' import NewWindow from 'react-new-window' /** custom imports */ // @ts-ignore import { useDarkModeDispatch } from 'context/DarkMode' // @ts-ignore impor...
<gh_stars>0 import { DespawnAnimation } from "./models" import search from "../etc/astar" import NeuralNetwork from "../thirdparty/nn" import Agent, { AgentSettings, SpawnSettings, Task } from "./agent" import { allowedNeighbours, GAME_DURATION, nodeSelectionRange, NODE_SIZE, scaleFactor } from "./const" import { agent...
<gh_stars>0 import { Voyage } from '../voyage/voyage.model'; import { Location } from '../location'; import { HandlingEvent, HandlingEventType } from '../handling'; import { HandlingHistory } from '../handling/handling-history'; import { IValueObject } from '../../types/value-object.interface'; import { Validate } from...
import minimist from 'minimist' import ts from 'typescript' import * as fs from 'fs' import * as path from 'path' import * as chokidar from 'chokidar' import fse from 'fs-extra' import { Generator } from './core' import * as typescriptGenerator from './typescript-generator' import * as packageJson from '../package.json...
// DEBUG: import { b2Assert } from "../common/b2_settings.js"; import { b2_epsilon, b2_linearSlop, b2_maxLinearCorrection, b2MakeNumberArray, b2Maybe } from "../common/b2_settings.js"; import { b2Sq, b2Sqrt, b2Vec2, XY } from "../common/b2_math.js"; import { b2Joint, b2JointDef, b2JointType, b2IJointDef } from "./b2_jo...
import { computed, defineComponent, onMounted, onUnmounted, reactive, ref, watch } from 'vue'; import RotateLeftOutlined from '@ant-design/icons-vue/RotateLeftOutlined'; import RotateRightOutlined from '@ant-design/icons-vue/RotateRightOutlined'; import ZoomInOutlined from '@ant-design/icons-vue/ZoomInOutlined'; import...
import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { GUI } from "dat.gui" import { Raycaster } from 'three' import gsap from "gsap"; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; // Scene const hero = new THREE.Scene() const visual =...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. /** * @packageDocumentation * @module fileeditor-extension */ import { ILayoutRestorer, JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { createToolbarFactory, ICommandPal...
import classnames from 'classnames'; import isNull from 'lodash/isNull'; import React, { useEffect, useRef, useState } from 'react'; import { FaRegQuestionCircle } from 'react-icons/fa'; import { FiSearch } from 'react-icons/fi'; import { useHistory } from 'react-router-dom'; import API from '../../api'; import useBre...
// Copyright 2020 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 puppeteer from 'puppeteer'; import {$, click, getBrowserAndPages, resourcesPath, typeText, waitFor} from '../../shared/helper.js'; export co...
/* eslint-env mocha */ import 'reflect-metadata' import 'source-map-support/register' import * as chai from 'chai' import * as nock from 'nock' import { SinonSpy, spy } from 'sinon' import * as sinonChai from 'sinon-chai' import { Buckets, Event, InterprocessReportMessage, mapToTags, MetricRegistry, Metr...
import * as _ from 'lodash'; import { DataObj, isNewDataObjId, parseDataObjId, entityNameFromDataObjId } from '@domain/metadata/data_obj'; import { onEvent } from './delegated-events'; import { BACKEND_SERVICE, postData } from './backend.service'; import { serializeElemToObj, getEntityPropertyNameFromEl, isFormEl, Inp...
import { AddressBus, EMULATION_MODE } from '../memory/address-bus'; import { CPURegisters } from './cpu-registers'; import { OPCODES, ICPUCallbacks } from './opcodes'; import { CPUTimer } from './cpu-timer'; export class CPU { // Registers private registers: CPURegisters; // Memory private addressBus: Address...
<gh_stars>0 import { DrawBufferHolder, drawBufferInitialTable, LightType } from "./DrawBuffer"; import { SceneObjHolder } from "./Main"; import { ViewerRenderInput } from "../viewer"; import { GfxTexture, GfxDevice } from "../gfx/platform/GfxPlatform"; import { Camera } from "../Camera"; import { GfxRenderInstManager ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>0 import { ensureLeading0x, hexToBuffer } from '@celo/utils/lib/address' import { zip } from '@celo/utils/lib/collections' import BigNumber from 'bignumber.js' import Contract from 'web3/eth/contract' import { BlockType, TransactionObject, Tx } from 'web3/eth/types' import { EventLog, TransactionReceipt } fro...
/* Copyright (c) 2020 <NAME> Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use Cocos Cre...
/* * Copyright 2018-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
<filename>packages/emlint/types/index.d.ts<gh_stars>0 import { TypedEmitter } from "tiny-typed-emitter"; import { TagToken, CommentToken as CommentToken$1, TextToken as TextToken$1, RuleToken as RuleToken$1, AtToken as AtToken$1, EspToken as EspToken$1, } from "codsen-tokenizer"; declare type Range = | [...
<reponame>tormentedhollow/emaps2002 import { Component, OnInit, ChangeDetectionStrategy, Inject } from '@angular/core'; import { ROUTE_ANIMATIONS_ELEMENTS, NotificationService } from '../../../core/core.module'; import { Validators, FormBuilder } from '@angular/forms'; import {EmapsService} from '../../../services/emap...
<reponame>nwneisen/balena-cli /* Copyright 2016-2020 Balena Ltd. 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 {logger} from "core/logging" import {Signal0} from "core/signaling" import {div, remove} from "core/dom" import {wgs84_mercator} from "core/util/projections" import {GMapPlot} from "./gmap_plot" import {PlotView} from "./plot_canvas" import {RangeInfo, RangeOptions} from "./range_manager" type GMapRangeInfo = R...
<gh_stars>1-10 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "Licens...
/* * Copyright 2021 ThoughtWorks, 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 * * Unless required by applicable law or agr...
<filename>src/utils.ts<gh_stars>0 /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------...
import axios, { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, } from 'axios'; /** * Configuration for the Axios `request` method. */ export interface RetryConfig { /** * The number of times to retry the request. Defaults to 3. */ retry?: number; /** * The number of retries al...
<reponame>trevorade/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------...
import { CartChangedError, CheckoutSelectors, CheckoutSettings, OrderRequestBody, PaymentMethod } from '@bigcommerce/checkout-sdk'; import { memoizeOne } from '@bigcommerce/memoize'; import { compact, find, isEmpty, noop } from 'lodash'; import React, { Component, ReactNode } from 'react'; import { ObjectSchema } from ...
import tl = require("vsts-task-lib/task"); import tr = require("vsts-task-lib/toolrunner"); import path = require("path"); import fs = require("fs"); var archiver = require('archiver'); import * as packCommand from './packcommand'; import * as pushCommand from './pushcommand'; import * as restoreCommand from './restor...
export type CSSColorName = | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "co...
import * as React from 'react'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import Modal from '@material-ui/core/Modal'; import Fade from '@material-ui/core/Fade'; import Skeleton from '@material-ui/lab/Skeleton'; import CircularProgress from '@material-ui/core/CircularProgress'; import { CSSPr...
import * as React from 'react'; import { Chart, ChartBar, ChartStack, ChartAxis, ChartTooltip } from '@patternfly/react-charts'; import { VictoryLegend } from 'victory'; import { PfColors, getPFAlertColorVals } from '../../components/Pf/PfColors'; import { SUMMARY_PANEL_CHART_WIDTH } from '../../types/Graph'; import *...
import React, { ReactElement, useContext, useRef, useState } from 'react'; import { GroupChannel, AdminMessage, UserMessage, FileMessage, EmojiContainer } from 'sendbird'; import './index.scss'; import Avatar from '../Avatar'; import UserProfile from '../UserProfile'; import MessageStatus from '../MessageStatus'; impo...
/** * Provides a typed interface to CMake Tools' configuration options. You'll want * to import the `config` default export, which is an instance of the * `ConfigurationReader` class. */ /** */ import * as logging from '@cmt/logging'; import * as util from '@cmt/util'; import * as os from 'os'; import * as telemet...
// pack:ignore // This is the service worker for notify.moe. // When installed, it will intercept all requests made by the browser // and return a cache-first response. // request request // Browser -------> Service Worker ------> notify.moe Server // <------- // response (cach...
import { u128 } from './integer/u128'; // used for returning quotient and reminder from __divmod128 @lazy export var __divmod_quot_hi: u64 = 0; @lazy export var __divmod_rem_lo: u64 = 0; @lazy export var __divmod_rem_hi: u64 = 0; // used for returning low and high part of __mulq64, __multi3 etc @lazy export var __r...
// tslint:disable:no-console import { Card, CardBody, Radio, Split, SplitItem, Stack, StackItem, TextInput, } from '@patternfly/react-core'; import * as React from 'react'; import { ButtonLink } from '../Layout'; import { DndFileChooser } from './DndFileChooser'; import './OpenApiSelectMethod.css'; exp...
<gh_stars>0 import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { FirebaseQso, QsoService } from '../../shared/qso/qso.service'; import { GoogleMap } from '@angular/google-maps'; import { Observable } from 'rxjs'; import { Qso } from '../../qso'; // @ts-ignore import moment from 'moment'...
import * as PropTypes from 'prop-types'; import { Component } from 'react'; import {withTheme, Theme, withStyles, createStyles} from '@material-ui/core/styles'; import {connect} from 'react-redux'; import Joyride, {Step, StoreHelpers} from 'react-joyride'; import Paper from '@material-ui/core/Paper'; import MapCard fro...
import { MapSchema } from "@colyseus/schema"; import { Room, Client } from "colyseus"; import { World, Body, Box, Shape, Sphere, Vec3, Cylinder } from 'cannon-es'; import { GAME_MODES, GAME_MAPS } from '../Settings'; import Player from "../entities/Player"; import StateHandler from "../entities/StateHandler"; import * ...
import "@material/mwc-tab"; import "@material/mwc-tab-bar"; import { mdiClose, mdiTune } from "@mdi/js"; import { HassEntity } from "home-assistant-js-websocket"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators"; import { cache ...
<reponame>benhutchins/dyngoose import { DynamoDB } from 'aws-sdk' import * as _ from 'lodash' import { Attribute } from '../attribute' import { QueryError } from '../errors' import * as Metadata from '../metadata' import { Table } from '../table' import { Schema } from '../tables/schema' import { ComplexFilters, Filter...
import fetch from 'node-fetch' import { parseLDAT } from '../utils/ldat' import * as rsa from '../crypto/rsa' import * as crypto from 'crypto' import * as meme from '../utils/meme' import * as FormData from 'form-data' import { models } from '../models' import * as RNCryptor from 'jscryptor-2' import { sendMessage } fr...
import React from 'react'; import { mount } from 'enzyme'; import { act } from 'react-test-renderer'; import mountTest from '../../../tests/mountTest'; import Anchor, { AnchorProps } from '..'; import { isString } from '../../_util/is'; import { findNode } from '../utils'; import * as utilModal from '../utils'; import ...
import { AfterViewInit, Directive, ElementRef, EventEmitter, Input, NgZone, OnDestroy, Output } from '@angular/core'; import { EventSystem } from '@udonarium/core/system'; import { TabletopObject } from '@udonarium/tabletop-object'; import { PointerCoordinate, PointerDeviceService } from 'service/pointer-device.service...
import { Ctx, MoveFn } from "boardgame.io"; import { floorSetups, wallSetups } from "./azulConfig"; import { AzulGameState, AzulTileState, BoardType, TilePlaceholderState } from "./models"; export const INVALID_MOVE = "INVALID_MOVE"; export const selectSourceTile: MoveFn<AzulGameState> = (G, ctx, tile: AzulTileState)...
import path from "path"; import glob from "glob"; import { isScratchFile } from "./resolve"; import { getTokenAtPosition } from "tsutils"; import { existsSync, readFileSync } from "fs"; import { TextDocument, Selection } from "vscode"; import type { Symbol, Program, Diagnostic, SourceFile, TypeChecker, Com...
import Router from "@koa/router"; import { isLoggedIn } from "../../../Server/middleware"; import { Nomination } from "../../../Models/MCA_AYIM/nomination"; import { Category } from "../../../Models/MCA_AYIM/category"; import { Beatmapset } from "../../../Models/beatmapset"; import { User } from "../../../Models/user";...
import { GluegunToolbox } from "../types" import { spawnProgress } from "../tools/spawn" import { isAndroidInstalled, copyBoilerplate } from "../tools/react-native" import { packager } from "../tools/packager" import { command, direction, heading, igniteHeading, p, startSpinner, stopSpinner, clearSpinne...
/* eslint-disable camelcase */ import { Octokit } from '@octokit/rest'; import { promises as fs } from 'fs'; import path from 'path'; import semver from 'semver/preload'; import { promisify } from 'util'; type Repo = { owner: string; repo: string; }; type Release = { name: string; tag: string; notes: string...
// eslint-disable-next-line max-classes-per-file import { Class, DeepPartial, DeleteManyResponse, Filter, mergeFilter, QueryService, UpdateManyResponse, } from '@nestjs-query/core'; import { Args, ArgsType, InputType, PartialType, Resolver } from '@nestjs/graphql'; import omit from 'lodash.omit'; import {...
// (C) 2007-2022 GoodData Corporation import React from "react"; import cx from "classnames"; import isEqual from "lodash/isEqual"; import noop from "lodash/noop"; import mapboxgl from "mapbox-gl"; import invariant from "ts-invariant"; import { createClusterLabels, createClusterPoints, createPushpinDataLaye...
/* * 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, { FunctionComponent, useState } from 'react'; import { i18n } fr...
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
<reponame>AndrewLeedham/jest /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as path from 'path'; import type {Config} from '@jest/types'; import ty...
import { ServerConnection } from '@jupyterlab/services'; import { URLExt } from '@jupyterlab/coreutils'; import { Dialog, ReactWidget } from '@jupyterlab/apputils'; import { Button } from '@jupyterlab/ui-components'; import { InlineLoader, API_STATUSES } from '@quetz-frontend/apputils'; import { Message } from '@l...
import { AuthorizationServerOptions } from "../../authorization_server"; import { isClientConfidential, OAuthClient } from "../../entities/client.entity"; import { OAuthScope } from "../../entities/scope.entity"; import { OAuthToken } from "../../entities/token.entity"; import { OAuthUser } from "../../entities/user.en...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>HediAbed/codecharta import { Sprite, Vector3, Box3, Sphere, LineBasicMaterial, Line, Geometry, LinearFilter, Texture, SpriteMaterial, Color } from "three" import { LayoutAlgorithm, Node } from "../../codeCharta.model" import { CameraChangeSubscriber, ThreeOrbitControlsService } from "./threeViewer/threeOrbitC...
<reponame>adrai/aws-sdk-js-v3 import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protoc...
'use strict' import { QuerySyntaxError } from './Errors' import { X12Parser } from './X12Parser' import { X12Interchange } from './X12Interchange' import { X12FunctionalGroup } from './X12FunctionalGroup' import { X12Transaction } from './X12Transaction' import { X12Segment } from './X12Segment' import { X12Element } ...
<filename>src/app/core/services/keyboard-shortcut.ts /* * Copyright 2017-present Open Networking Foundation * 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/licen...
<reponame>felixroos/blog import { lefthand } from './../voicings/dictionary'; import { Chord } from '@tonaljs/tonal'; import { getRhythmChildren, makeRhythmParent, toRhythmObject } from '../util'; import { Voicing, VoiceLeading } from '../voicings/Voicing'; const { topNoteDiff } = VoiceLeading; import renderRhythmTree ...
// WorkflowRun is an execution instance of a run import {Action} from './action.model'; import {Vulnerability} from './application.model'; import {Event} from './event.model'; import {Hatchery} from './hatchery.model'; import {Job, StepStatus} from './job.model'; import {Parameter} from './parameter.model'; import {Spa...
<gh_stars>1-10 import { Particles, Canvas, Shape, HSL, RGB, ColorInput, Position } from './types' import { hexToRgb } from './funcs' import { particulate } from '../particulate' type Image = { obj?: CanvasImageSource ratio?: number loaded?: boolean src?: string } type ParticleT = { color: any ...
import React, { Component } from "react"; import "./ContractDeploy.css"; import JSONPretty from 'react-json-pretty'; import { connect } from "react-redux"; import { setCallResult } from "../../actions"; import { IAccount } from "types"; import { Button } from '../common/ui'; interface IProps { contractName: string; ...
import { DataQuery, DataSourceRef, getDefaultRelativeTimeRange, IntervalValues, rangeUtil, RelativeTimeRange, ScopedVars, TimeRange, } from '@grafana/data'; import { getDataSourceSrv } from '@grafana/runtime'; import { ExpressionDatasourceRef } from '@grafana/runtime/src/utils/DataSourceWithBackend'; im...
import * as PIXI from 'pixi.js'; import { color } from 'd3'; import { clamp } from '@equinor/videx-math'; import Vector2 from '@equinor/videx-vector2'; import { pixiOverlayBase } from '../pixiOverlayInterfaces'; import Mesh, { MeshData, MeshNormalData } from '../utils/Mesh'; import centerOfMass from '../utils/centerOf...
import React from "react"; import { Dimensions, Platform, StyleSheet, View } from "react-native"; import { TouchableOpacity } from "react-native-gesture-handler"; import MapView, { Marker, Polyline, PROVIDER_GOOGLE } from "react-native-maps"; import Icon from "react-native-vector-icons/MaterialCommunityIcons"; import *...
<filename>chrome/browser/resources/settings/people_page/sync_account_control.ts // Copyright 2018 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. /** * @fileoverview * 'settings-sync-account-section' is the settings pag...
<filename>packages/cli/src/commands/capabilities.ts import inquirer from 'inquirer' import { flags } from '@oclif/command' import { Capability, CapabilityArgument, CapabilitySummary, CapabilityJSONSchema, CapabilityNamespace, SmartThingsClient } from '@smartthings/core-sdk' import { APICommand, ListDataFunction, outp...
// This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import { setEvil, prepareNamespace } from 'emscripten-library-decorator'; import { _nbind as _globals } from './Globals'; import { _nbind as _type } from './BindingType'; import { _nbind as _value } fr...
import React, { useCallback, useState } from "react"; import { useQuery } from "react-query"; import { Tab, Tabs, TabList, TabPanel } from "react-tabs"; import softwareAPI, { ISoftwareCountResponse, } from "services/entities/software"; import { ISoftware } from "interfaces/software"; // @ts-ignore import { useDeboun...
<reponame>weslenng/chrome-launcher<filename>src/chrome-launcher.ts<gh_stars>0 /** * @license Copyright 2016 Google Inc. 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:/...
<gh_stars>1-10 import { undoDepth } from "@codemirror/history"; import "@material/mwc-button"; import { mdiClose } from "@mdi/js"; import "@polymer/app-layout/app-header/app-header"; import "@polymer/app-layout/app-toolbar/app-toolbar"; import { dump, load } from "js-yaml"; import { css, CSSResultGroup, html, L...
<reponame>ghostnumber7/human<filename>src/face.ts /** * Module that analyzes person age * Obsolete */ import { log, now } from './helpers'; import * as tf from '../dist/tfjs.esm.js'; import * as facemesh from './blazeface/facemesh'; import * as emotion from './emotion/emotion'; import * as faceres from './faceres/f...
import React from 'react'; import * as pc from '../../../../'; // @ts-ignore: library file import import Panel from '@playcanvas/pcui/Panel/component'; // @ts-ignore: library file import import SelectInput from '@playcanvas/pcui/SelectInput/component'; // @ts-ignore: library file import import LabelGroup from '@playc...