text
stringlengths
3.08k
15.5k
// Originally ported from Go: // https://github.com/golang/go/blob/go1.12.5/src/encoding/csv/ // Copyright 2011 The Go Authors. All rights reserved. BSD license. // https://github.com/golang/go/blob/master/LICENSE // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. import { assert } from "../../_...
import React from 'react' import cn from 'classnames' import { ReducerContext } from 'reducers' import { getMusicPlayerCurrentSong, getMusicPlayerMode, getMusicPlayerVolume } from 'utils/music-player' import * as commonApis from 'apis/common' import useAsyncRequest from 'hooks/useAsyncRequest' import * as client...
<gh_stars>1-10 import crate from "../../crate/Cargo.toml" import * as species from "./species" import * as settings from "./settings" import { dens } from "./data/dens" import type { Raid } from "../../crate/pkg/raidtomi" //============================================================================= // Types. //====...
import { promisify } from 'util'; import fs from 'fs'; import path from 'path'; import { ArduinoAck } from './arduino-ack'; const exec = promisify(require('child_process').exec); // Default platforms enum ArduinoPlatform { avr = 'arduino:avr', /* Feel free to add more */ } // Default baords enum ArduinoBoard { ...
<gh_stars>0 /// <reference types="node" /> import { Options } from "."; import Context from "./Context"; import Language, { Localization } from "./Language"; import { PrettyVError } from "./util/format-verror"; export declare class NoDefaultLabelsError extends Error { readonly lang: Language; constructor(lang: ...
import { OpCode, typeGuardSwitch } from './common'; import type { Chunk } from './Chunk'; import { stringifyValue } from './value'; export function disassembleChunk(chunk: Chunk, name: string): void { console.log(`== ${name} ==`); for (let offset = 0 as Index; offset < chunk.code.length;) { offset = disassemb...
import { Response, NextFunction } from "express"; import pool from "../utils/database"; const jwt = require('jsonwebtoken'); /** * Funcion que se va a encargar de validar los datos * Esta funcion tiene solo una tarea: * verifica en cada ruta, el token * Si existen el token, pues continua con el proceso tipico de...
import { GraphQLNamedType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, SelectionNode, assertObjectType, isUnionType, } from 'graphql'; import formatLoc from '../../format-loc'; import {TextBuilder} from '../utils'; import { SelectedField, selectField, selectTypename, writeSelecte...
'use strict'; import { ServerMessage } from '../../server/ServerInfo'; import { ServerManager } from '../ServerManager'; import { WebRTCTools } from '../WebRTCTools'; /** * Pairs a Peer Connection with the camera feed that will be streamed. * If this stream is not currently being displayed, inUseIndex == -1. *...
<reponame>StashApp/Stash import queryString, { ParsedQuery } from "query-string"; import { FilterMode, FindFilterType, SortDirectionEnum, } from "src/core/generated-graphql"; import { Criterion, CriterionValue } from "./criteria/criterion"; import { makeCriteria } from "./criteria/factory"; import { DisplayMode }...
import { QuickPickItem, window } from 'vscode'; import * as vscode from 'vscode'; import { Tests, TestFunction, FlattenedTestFunction, TestStatus } from '../common/contracts'; import { getDiscoveredTests } from '../common/testUtils'; import * as constants from '../../common/constants'; import * as path from 'path'; ex...
<filename>src/video.ts import { Playable } from './base'; import { MediaItem } from './libraryInterfaces'; import { PlexServer } from './server'; import { Director, Country, Writer, Chapter, Collection } from './media'; import { FullMovieResponse, ChapterSource } from './videoInterfaces'; abstract class Video extends ...
import { JsonValue, Merge, Primitive } from 'type-fest' export type Pos = { x: number y: number } export enum Action { READY_ROTATE = 'readyRotate', ROTATE = 'rotate', STOP_ROTATE = 'stopRotate', } export type CallbackParams = { [extra: string]: Primitive | JsonValue | HTMLElement } export type Callback...
<reponame>yasir2000/brown-bear /** * Copyright (c) BrownBear, 2020-Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
<reponame>hicodingclub/mean-rest<filename>src/ui/angular/projects/composite/src/composite/composite.component.ts import { Component, Directive, Input, Output, OnInit, AfterViewInit, ViewContainerRef, ViewChildren, ViewChild, ComponentFactoryResolver, QueryList, EventEmitter, } from '@angular/cor...
import { Request } from 'express'; import { inject } from 'inversify'; import { controller, httpGet, httpPost } from 'inversify-express-utils'; import * as HttpStatus from 'http-status-codes'; import TYPES from '../constant/types'; import { IRes } from '../interfaces/i-res'; import Joi from '@hapi/joi'; import { Produc...
import path from "path"; import meow from "meow"; import fs from "fs-extra"; import { parse } from "amdx"; import { execSync } from "child_process"; // @ts-ignore import sortBy from "lodash.sortby"; import { buildSitemapXML } from "./helper/buildSitemapXML"; const cmd = `git --no-pager log --no-color --pretty=format:'...
<reponame>AraragiHokuto/kc3drei import electron from 'electron' import path from 'path' import fs from 'fs' import { MessageBusServer } from './MessageBus' interface KC3ProtoConfig { proxyConfig?: electron.Config } const PANEL_WIDTH = 600; const DEFAULT_GAME_WIDTH = 1200; const DEFAULT_GAME_HEIGHT = 720; const ...
<filename>source/modules/InformationFramework/AttributeTypeAndValue.ta.ts<gh_stars>1-10 /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, OBJECT_IDENTIFIER, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functio...
<reponame>olzzon/tv2-sofie-blueprints-inews import { NotesContext, TimelineObjectCoreExt, TSR, VTContent } from '@sofie-automation/blueprints-integration' import { AddParentClass, GetSisyfosTimelineObjForCamera, literal, PartDefinition, ServerParentClass, TransitionFromString, TransitionSettings } from 'tv2-comm...
import React from 'react' import ReactDOM from 'react-dom' import styles from './styles.module.css' import { PanZoom } from 'react-easy-panzoom' import _ from 'lodash' interface TreeViewProps { [x: string]: any; nodeView: any; emptyNode: any; nodeViewClasses: any; emptyNodeProps: any; showEmptyNodes: any; ...
import fs from 'fs'; import { PassThrough, Readable, Writable } from 'stream'; import makeChunkToScriptWriter from './chunkToScriptWriter'; export type InitArg = { id: string; data: unknown }[]; export type AssetItem = | string | { type: 'path'; path: string; } | { type: 'raw'; content: string };...
<gh_stars>10-100 import { Vue, Component, Prop } from 'vue-property-decorator' import { ActionButton } from '../Button' import { CreateElement, VNode } from 'vue' import BaseComponent from '../BaseComponent' import { Icon } from '../Icon' import { INavLinkGroup, INavLink, INavProps, INavStyles } from './Nav.types' impo...
<filename>packages/piecs/src/World.ts import type { Component, InsideWorld, OutsideWorld } from './types' import type { InternalQuery } from './Query' import type { System } from './System' import { createArchetype, InternalArchetype, transformArchetype, traverseArchetypeGraph, Archetype } from './Archetype' import { c...
<reponame>DanielKilgallon/screeps-code import { ErrorMapper } from 'utils/ErrorMapper'; import { runHarvester } from 'roles/harvester'; import { manageUpgraders } from 'managers/upgrade-manager'; import { managerHaulers } from 'managers/hauler-manager'; import { runBuilder } from 'roles/builder'; import { runTower } f...
import React, { useCallback, useState } from 'react'; import { Card, Divider, IconButton, Toolbar, Typography, makeStyles, useMediaQuery, useTheme } from '@material-ui/core'; import DateRangeIcon from '@material-ui/icons/DateRange'; import FilterListIcon from '@material-ui/icons/FilterLi...
<reponame>vince307/hm-web import { Action, createFeatureSelector, createSelector } from "@ngrx/store"; import { PublicActions, GET_HOME_PAGE_PAYLOAD, GET_HOME_PAGE_SUCCESS, GET_HOME_PAGE_FAILURE, GET_CONTACT_SUCCESS, GET_CONTACT_FAILURE, GET_SIGNIN_SUCCESS, GET_SIGNIN_FAILURE, GET_SIGNIN_TOKEN, GET...
<filename>src/dgit.ts import fs from 'fs'; import path from 'path'; import async from 'async'; import repo from './repo'; import { createLogger } from './log'; import { requestGetPromise, requestOnStream } from './request'; import { DgitGlobalOption, RepoOptionType, RepoTreeNode, DgitLifeCycle, Dgit...
import { action, computed, makeObservable, observable } from "mobx"; import { INSTANCE_ID } from "./common"; import { IDevtool } from "./devtool"; import { Devtool } from "./devtool"; import * as mixins from "./mixins"; import { IClass, IContainerConfig, IOptions } from "./types"; import { TInjection } from "./mixins/...
<reponame>itslenny/JUKEy import { SpotifyClient } from './spotify/spotify-client'; import { SpotifyApi, SpotifyPlayable } from './spotify/spotify-api'; export interface JukeBoxSearchResult { tracks: JukeBoxPlayable[]; albums: JukeBoxPlayable[]; playlists: JukeBoxPlayable[]; } export interface JukeBoxPlaya...
import cx from "classnames"; import Color from "color"; import { forwardRef, useEffect, useMemo, useRef, useState } from "react"; import { HexColorPicker } from "react-colorful"; import { debounce } from "../../utils/lodash/debounce"; import { OmitStrict } from "../../utils/types"; import { Icon } from "../Icon"; impor...
import {VMStorage} from '../vm-storage.js'; /* Because Firefox and Chromium don't behave the same, I've added the option to simulate either behaviour with Firefox as default I've thought about this and I feel like it should atleast be an option because this way bugs might be caught early due to inconsistent behavi...
<reponame>quinpallet/native2ascii import { parse } from 'https://deno.land/std/flags/mod.ts'; interface Comments { startsWith: string[]; // コメント開始文字列 endsWith: string[]; // コメント終了文字列 } interface CommentType { ML: Comments; // マルチラインコメント SL: Comments; // シングルラインコメント } const COMMENT: { [key: string]: C...
import React, {useEffect, useState} from 'react'; import {Link} from 'react-router-dom'; import {useDispatch} from 'react-redux'; import {Button, Col, Container, Row, Table} from 'react-bootstrap'; import NavBar from '../../components/NavBar/NavBar'; import styles from './lecturers.css'; import {setLecturers} from './l...
<reponame>brandonlehmann/node-db-abstraction // Copyright (c) 2020 <NAME> // // Please see the included LICENSE file for more information. import { format } from 'util'; export namespace Interfaces { /** * The database type */ export enum DBType { MYSQL, POSTGRES, ...
import React, { MutableRefObject, useState } from 'react'; import dayjs from 'dayjs'; import customParseFormat from 'dayjs/plugin/customParseFormat'; import localizedFormat from 'dayjs/plugin/localizedFormat'; import utc from 'dayjs/plugin/utc'; import DayPicker, { DayModifiers } from 'react-day-picker'; import DateP...
'use strict'; import * as rx from '../../node_modules/rxjs'; import * as shelljs from 'shelljs'; import * as spawnrx from 'spawn-rx'; import * as vscode from 'vscode'; import { getUseWsl } from './config'; import { Errorable } from './errorable'; import { Dictionary } from './dictionary'; export interface ExecOpts ...
import Dropdown from "../controls/Dropdown"; import NativeApp from "Native/App"; export default class ParametersEditor { haveSelected: boolean = false; developer: boolean = false; visible: boolean = false; sections: MenuSection[] = []; parameters: MenuParameter[] = []; mappedSections: {} = {}; ...
import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; import { ethers, network } from "hardhat"; import { DynamicLPStrategy, DynamicSubLPStrategy } from "../typechain"; const DEGENBOX = "0xD825d06061fdc0585e4373F0A3F01a8C02b0e6A4"; const JOE_USDCe_WAVAX_LP = ...
/** * Status Bar * 状态栏 */ import React from 'react' import { observer } from 'mobx-react' import { Helmet } from 'react-helmet' import styled from 'utils/styled-components' import { observable } from 'mobx' import Doc from 'components/Code/Doc' import Program from 'components/Code/Program' import H2 from 'components...
<filename>src/components/range-slider__track/range-slider__track.view.ts import { Provider, View } from '@core'; import { actionNames, IRangeSliderStoreState } from '@store'; import { useMemo } from 'core/utils'; import styles from '../../exports.scss'; class Track extends View { constructor(scale: TrackScale) { ...
<filename>src/config/validator.ts /* * Copyright (c) 2020-2021 Borkenware, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright...
import type { SandboxHooks, Sandbox } from '../core/sandbox'; import type { DocumentHooks, ProxyDocument } from '../proxy/document'; import { uniqueId } from '../utils/unique-id'; type LoadAndRunCode = Sandbox['loadAndRunCode']; export function createElementPlugin (hooks: SandboxHooks) { let currentSandbox: Sandbox...
import ToastContext from '../../context/ToastContext'; import { useContext, useEffect, useState } from 'react'; import AppContext from '../../context/AppContext'; import { sizes } from '../theme'; /** * returns the current width and height of the window. updates on resize */ const useWindowSize = function () { // ...
<gh_stars>1-10 const BASE = 10000; const GROWTH = 2500; /* Constants to generate the total amount of XP to complete a level */ const HALF_GROWTH = 0.5 * GROWTH; /* Constants to look up the level from the total amount of XP */ const REVERSE_PQ_PREFIX = -(BASE - 0.5 * GROWTH) / GROWTH; const REVERSE_CONST = REVERSE_PQ...
/* * Copyright 2020 Leanplum 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. import { List } from 'immutable'; import { BinaryExpr, CallExpr, Constant, Ident, IfExpr, Node, ParenExpr, UnaryExpr } from './ast'; import { Lexer } from './lex'; import ...
<filename>packages/models/src/utils/simulation.ts import { IInject, IInjectGroup, IScenario, InjectState, IInjectSimState, InjectType, InjectConditionType, toMsec, getChildren, IExecutionService, IInjectSimStates, } from '..'; /** * Prune all the injects in a trial, keeping only the ones relevan...
<gh_stars>1-10 import { DayElement } from "../../types/instance"; import { Plugin } from "../../types/options"; export type PlusRange = { rangeStartDay: Date; rangeEndDay: Date; rangeStartDayFormatted: string; rangeEndDayFormatted: string; rangeCheckbox: HTMLInputElement; }; export interface Config { days...
import * as React from "react" import Layout from "../components/layout" import { MailIcon } from '@heroicons/react/outline' import picture_Vikram_Deshpande from "../images/picture_Vikram_Deshpande.jpg" import picture_Shuvrangsu_Das from "../images/picture_Shuvrangsu_Das.jpg" import picture_Padmeya_Indurkar from "...
<reponame>Winner95/vrt-runner import fs from 'fs'; import path from 'path'; import { PNG } from 'pngjs'; import pixelmatch from 'pixelmatch'; // based on pixelMatch options type RGBTuple = [number, number, number]; export type ComparisonOptionsType = { threshold?: number; includeAA?: boolean; alpha?: numb...
import { Trim, IntegerStrings } from "../Utils"; import { StringLiteral, Expression, LogicalExpression, LogicalOperator, BinaryExpression, NullLiteral, BooleanLiteral, NumericLiteral, Identifier, MemberExpression, BinaryOperator, TableSpecifier, FieldSpecifier, VariableExpression, } from ".....
<filename>src/element-observable/element-style.ts import { ComponentStyleInterface } from './element-observable.model'; import { Iwe7StyleLoader } from './style-loader'; import sortBy from 'lodash.sortby'; import merge from 'lodash.merge'; import { BehaviorSubject } from 'rxjs'; const iwe7StyleLoader: Iwe7StyleLoader =...
import { IToRenderFull } from "sketch"; const DEBUG = false; const llog = (...args: any[]) => { if (DEBUG) { console.log(...args); } } addEventListener('message', (message) => { llog("Starting render..."); let params = message.data; let newPixels = calculateMandelbrot(params); if (newPixels) { llog("There ...
/* eslint-disable eqeqeq */ import type { Platform } from '@mikro-orm/core'; import { Collection, Entity, ManyToOne, MikroORM, OneToMany, OptionalProps, PrimaryKey, PrimaryKeyType, Property, Type } from '@mikro-orm/core'; import { mockLogger } from '../helpers'; class TransformType extends Type<0 | number | Date> { ...
import { createContext, ReactNode, useContext, useState } from "react"; import api from "../../services/api"; import { INewTypeForm } from "../../components/AdminClassNewType"; import { INewParamsForm } from "../../components/AdminClassNewParams"; import { useAuth } from "../Auth"; import { UseFeedback } from "../Us...
import React, { useEffect, useRef, ReactElement, ReactNode, useMemo } from 'react'; import { useReactive } from 'ahooks'; import useTouch from '../../hooks/useTouch/index'; import { getScrollTop, preventDefault } from '../../utils'; import useScrollParent from '../../hooks/useScrollParent'; export type PullRefreshProp...
<reponame>CoinbaseStablecoin/usdc.js import { HDKey, Mnemonic } from "wallet.ts"; import { randomBytes } from "crypto"; import { Account } from "./Account"; import { ETH } from "./eth"; import { USDC } from "./usdc"; import { RPC } from "./rpc"; import { ERC20 } from "./erc20"; import { ensureValidAddress } from "../ut...
<reponame>dankrajnak/dankland import { useMemo, useReducer, useRef } from "react"; import createIgnorablePromise from "../Utils/IgnorablePromise"; type Action<T = string, P = any> = { type: T; payload: P; }; export type useRequestState<T> = { isLoading: boolean; data: T | null; wasSuccessful: boolean; has...
import { Fragment } from './fragment'; import { Schema } from '../schema/'; import { NodeJSON, EditorNode } from './node'; export interface SliceJSON { content: NodeJSON[] | null; openStart?: number; openEnd?: number; } /** * @see https://github.com/ProseMirror/prosemirror-model/blob/master/src/replace.js#L...
import { CancellationToken, Disposable } from 'vscode'; import { map } from './iterable'; export type PromiseOrValue<T> = Promise<T> | T; export function any<T>(...promises: Promise<T>[]): Promise<T> { return new Promise<T>((resolve, reject) => { const errors: Error[] = []; let settled = false; for (const pro...
import type { AxiosResponse, ResponseType, Method } from "axios"; import { uploadFile, uploadLargeFile, uploadDirectory, uploadDirectoryRequest, uploadSmallFile, uploadSmallFileRequest, uploadLargeFileRequest } from "./upload"; import { downloadFile, downloadFileHns, getSkylinkUrl, getHnsUrl, getHnsresUrl, getMetadata,...
<reponame>delaneyb/nativescript-cli<gh_stars>0 import * as constants from "../constants"; import * as path from "path"; import * as os from "os"; import { RunController } from "../controllers/run-controller"; import { ITestExecutionService, IProjectDataService, IProjectData, } from "../definitions/project"; import {...
<reponame>c4spar/deno-fast-forward import type { Encoding } from "./encoding.ts"; import { EncodingEventStream } from "./encoding_event_stream.ts"; import { EncodingProcessAlreadyStarted, EncodingProcessNotStarted, FFmpegBinaryNotFound, FFmpegBinaryPermissionDenied, FFmpegCommandFailed, } from "./errors.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 with the Elastic License. */ import DateMath from '@elastic/datemath'; import { EuiFlexGroup, EuiFlexItem,...
import {Component, OnInit, Inject, NgModule, ElementRef, ViewChild} from '@angular/core'; import {MatDialog, MatButtonModule} from '@angular/material'; import {AddContactComponent} from '../add-contact/add-contact.component'; import {HttpErrorResponse, HttpHeaders} from "@angular/common/http"; import {AddContactServic...
// Copyright 2017-2020 @polkadot/app-contracts authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { SubmittableExtrinsic } from '@polkadot/api/types'; import type { ContractCallOutcome } from '@polkadot/api-contract/types'; import type { CallResult } from './types'; import BN from 'bn.js'; impo...
<filename>packages/market-service/src/coincap/coincap.ts import { adapters } from '@shapeshiftoss/caip' import { fromCAIP19 } from '@shapeshiftoss/caip/dist/caip19/caip19' import { FindAllMarketArgs, HistoryData, HistoryTimeframe, MarketCapResult, MarketData, MarketDataArgs, PriceHistoryArgs } from '@shap...
import * as am5 from "@amcharts/amcharts5"; import * as am5xy from "@amcharts/amcharts5/xy"; import am5themes_Animated from "@amcharts/amcharts5/themes/Animated"; // Create root element // https://www.amcharts.com/docs/v5/getting-started/#Root_element var root = am5.Root.new("chartdiv"); // Set themes //...
<reponame>Disparity/factorio-blueprint-editor<filename>packages/editor/src/containers/EntitySprite.ts<gh_stars>0 import * as PIXI from 'pixi.js' import G from '../common/globals' import F from '../UI/controls/functions' import { Entity } from '../core/Entity' import { PositionGrid } from '../core/PositionGrid' import {...
/** * # Slider Widget * Shows a slider that can select a continuous or nominal value out of a range * * ### Profile * invoked as `m(Slider, { * range: [number,number] | string[], * onchange: (v:number|string) => void * });` * * ### Attributes (node.attrs): * - `onchange:(v:number|string) => void`...
export type Style = { [key: string]: string | number }; type EventHandler<EL, EV> = (event: EV, element: EL) => void; interface Attributes<EL> { [name: string]: Style | string | undefined | EventHandler<EL, any>; } export type Child<EL> = Attributes<EL> | HTMLElement | DocumentFragment | string | undefined; con...
// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 import { AddIcon } from '@chakra-ui/icons'; import { Button, FormControl, FormLabel, Input, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text, useColorMode, useDisclosure, VStack, } ...
import { get, has } from 'lodash'; import React from 'react'; import type { Option } from 'react-select'; import type { IExecution, IPipeline, IPipelineTrigger } from '../../../../domain'; import { ExecutionBuildTitle } from '../../../executionBuild/ExecutionBuildTitle'; import type { ITriggerTemplateComponentProps } ...
/* * LiskHQ/lisk-commander * Copyright © 2019 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied...
import { JupyterFrontEnd } from "@jupyterlab/application"; import { INotebookModel, INotebookTools, INotebookTracker, NotebookPanel // NotebookActions, Notebook, NotebookPanel, INotebookModel } from '@jupyterlab/notebook'; import { SlideViewWidget } from './slideviewWidget'; // import { requestAPI }...
/* * 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 os from 'os'; import { flags, FlagsConfig } from '@salesforce/command'; impo...
<reponame>manhlicious/nanolooker import BigNumber from "bignumber.js"; const MIN_ACTION_TIME = 150; export enum Colors { CHANGE = "#722ed1", CHANGE_DARK = "#722ed1", PENDING = "#1890ff", PENDING_DARK = "#1890ff", SEND = "#df4567", SEND_DARK = "#e04576", RECEIVE = "#52c41a", RECEIVE_DARK = "#26e8a7", }...
<filename>src/compile/selection/selection.ts import parseSelector from 'vega-parser/src/parsers/event-selector'; import {Channel} from '../../channel'; import {SelectionDef, SelectionDomain, SelectionResolutions, SelectionTypes} from '../../selection'; import {Dict, extend, isString, stringValue} from '../../util'; imp...
<reponame>checodo/model-viewer /* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
<reponame>jodom/beachball import path from 'path'; import fs from 'fs-extra'; import _ from 'lodash'; import { RepositoryFactory } from '../fixtures/repository'; import { writeChangelog } from '../changelog/writeChangelog'; import { getPackageInfos } from '../monorepo/getPackageInfos'; import { writeChangeFiles } fr...
<reponame>rgatkinson/audere<filename>lib/feverProtocol.ts // Copyright (c) 2018 by Audere // // Use of this source code is governed by an MIT-style license that // can be found in the LICENSE file distributed with this file. // ======================================================================== // // PLEASE NOTE:...
/* eslint-disable react/jsx-key */ import * as React from "react"; import AddIcon from "./icons/AddIcon"; import ResetIcon from "./icons/ResetIcon"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; import { Link } from "react-router"; import { LaneData } from "../interfaces"; import Lane fro...
<reponame>mhuebert/codemirror.next import {EditorView, Command, ViewPlugin, PluginValue, ViewUpdate, logException} from "@codemirror/next/view" import {Transaction} from "@codemirror/next/state" import {completionState, setSelectedEffect, toggleCompletionEffect, setActiveEffect, State, ActiveSource, ActiveResul...
<reponame>ricardofct/single-spa-angular<filename>src/browser-lib/single-spa-angular.ts /* eslint-disable @typescript-eslint/no-use-before-define */ import { AppProps, LifeCycles } from 'single-spa' const defaultOpts = { // required opts NgZone: null, bootstrapFunction: null, template: null, // optional opts ...
<reponame>bobanetwork/boba // https://github.com/bobanetwork/boba/blob/develop/packages/boba/turing/test/005_lending.ts import { BigNumber, Contract, ContractFactory, providers, Wallet, utils, } from 'ethers' import { getContractFactory } from '@eth-optimism/contracts' import { ethers } from 'hardhat' impo...
<reponame>fkleuver/circleci-2.1<gh_stars>0 import { DI, PLATFORM, Reporter } from '@au-test/kernel'; import { AccessMember, AccessScope, CallMember, CallScope, ExpressionKind, ForOfStatement, Interpolation, IsBindingBehavior, PrimitiveLiteral } from './ast'; export interface IExpressionParser { cache(expressions: Re...
import { Injectable } from '@angular/core'; import * as THREE from 'three'; import { Observable ,Subject } from 'rxjs'; interface effectData { time: number; file: string; isEmotion: boolean; size: number; } @Injectable({ providedIn: 'root' }) export class EffectService { private _canEffe...
import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import Draggable from "react-draggable"; import TextureLibrary from "./TextureLibrary"; import PropLibrary from "./PropLibrary"; import SearchBar from "../../general-components/SearchBar"; import Dialog from "@mui/mate...
import React, { useContext, useEffect, useState } from 'react'; import { Dispatch, DRAW, Global, SET_ALIGN } from '../globalState'; import bottomImage from '../images/bottom.svg'; import centerImage from '../images/center.svg'; import colors from '../images/colors.svg'; import leftImage from '../images/left.svg'; impor...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ export const Constants = { LIBRARY_NAME: "MSAL.JS", SKU: "msal.js.common", // Prefix for all library cache entries CACHE_PREFIX: "msal", // default authority DEFAULT_AUTHORITY: "https://login.m...
import { ChildProcess, spawn } from 'child_process' import { isFileShareAccessorHandle, isHTTPProxyAccessorHandle, isLocalFolderAccessorHandle, } from '../../../../accessorHandlers/accessor' import { FileShareAccessorHandle } from '../../../../accessorHandlers/fileShare' import { HTTPProxyAccessorHandle } from '../....
import generateProject, { generateFlowConfig, generatePackageJson, generateSwagger, } from './generateProject'; import normalizeConfig from './normalizeConfig'; import fs from 'fs-extra'; import path from 'path'; import semver from 'semver'; import { FLOW_CONFIG_FILE, PKG_FILE } from './Constants'; import { chi...
<gh_stars>0 import * as _ from 'lodash'; import { JsonSchema } from '@jsonforms/core'; import { resolveSchema } from '@jsonforms/core'; import * as JsonRefs from 'json-refs'; const isObject = (schema: JsonSchema): boolean => { return schema.properties !== undefined; }; const isArray = (schema: JsonSchema): boolean...
<reponame>kitkatbr/secret-1<gh_stars>10-100 import { nanoid } from 'nanoid' import sha256 from 'crypto-js/sha256' import Base64 from 'crypto-js/enc-base64' import aes from 'crypto-js/aes' import enc from 'crypto-js/enc-base64' import utf8 from 'crypto-js/enc-utf8' import storage from './storage' import { CACHE_SPLIT,...
<reponame>m93a/punk-tex<filename>src/lib/ui-decorators/index.ts<gh_stars>0 import Iterable from '../react-helpers/Iterable'; // #region Obscure types type typeString = "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function"; type typeIndicator = typeString | ClassConstructor; type fromType...
<gh_stars>100-1000 import fs from 'fs' import path from 'path' import MagicString from 'magic-string' import { AttributeNode, NodeTypes } from '@vue/compiler-dom' import { Connect } from 'types/connect' import { addToHTMLProxyCache, applyHtmlTransforms, assetAttrsConfig, getScriptInfo, IndexHtmlTransformHook,...
import React, {useMemo} from 'react' import {DailyMediaView, DailyParticipant} from '@daily-co/react-native-daily-js' import {View, Text, StyleSheet, Image, Platform} from 'react-native' import theme from '../styles/theme' import {useCallState} from '../contexts/CallProvider' import Menu from './Menu' import { AccountT...
<reponame>Deliay/KnexEntity<filename>src/Model.ts import Knex, { QueryBuilder } from 'knex'; import _ from 'lodash'; import { EntityNotCreateError } from './Errors'; import { ReplaceCallStack } from './util/ErrorStackCleanHelper'; type _EntityColumnMap<T> = { [P in keyof T]: string }; export type EntityColumnMap<T> = ...
<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...