text
stringlengths
3.08k
15.5k
<reponame>recats/cdeebee import { Dispatch } from 'redux'; export enum cdeebeeTypes { CDEEBEE_REQUESTMANAGER_SHIFT = '@@cdeebee/REQUESTMANAGER_SHIFT', CDEEBEE_REQUESTMANAGER_SET = '@@cdeebee/REQUESTMANAGER_SET', CDEEBEE_ERRORHANDLER_SET = '@@cdeebee/ERRORHANDLER_SET', CDEEBEE_ENTITY_CHANGE_FIELD = '@@cdeebee/...
import React from "react"; import {Canvas, CanvasContext} from "react-three-fiber"; import * as THREE from "three"; import {Scene} from "../../types/Scene/Scene"; import LoaderComponent from "../Loader/LoaderComponent"; import GroundShapeComponent from "../GroundShape/GroundShapeComponent"; import ProjectScene from ".....
import { MdcComponent, Size } from '@aurelia-mdc-web/base'; import { MDCSliderAdapter, strings } from '@material/slider'; import { bindable } from 'aurelia-typed-observable-plugin'; import { inject, useView, PLATFORM, customElement, observable } from 'aurelia-framework'; import { applyPassive } from '@material/dom/even...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
import arg from 'arg' import bytes from 'bytes' import endent from 'endent' import * as Glob from 'fast-glob' import * as fs from 'fs-jetpack' import kleur, { bold, dim } from 'kleur' import { isEmpty } from 'lodash' import * as Path from 'path' import { Report } from '../types' import { assertCasesHandled, fatal } fro...
import { Card, CardContent, CardHeader, createMuiTheme, Grid, List, ListItem, ThemeProvider, } from "@material-ui/core"; import * as React from "react"; import {KgSource} from "shared/models/kg/source/KgSource"; import { KgNodeContext, KgNodeContextRelatedNodeLabel, KgNodeContextTopEdge, } from "s...
import config from '../../shared/config'; import Player from './player'; import * as GameProtocols from '../../shared/game_protocols' interface ShipsOnTheObject { player: Player, count: number } interface occupyingStatus { // 占领比率 percent: number, // 该占领比率属于的玩家 player: Player } export type FuncSolarObjectChange...
<reponame>SparkFountain/BlitzBasicScript import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; export interface ScreenProperties { width: number, height: number, origin: { x: number, y: number }, color: { red: number, green: number, blue: number }, clsColo...
<filename>src/index.ts<gh_stars>1-10 import * as puppeteer from 'puppeteer'; /** * Type defenition for the finviz stock data that is returned. This stock data is displayed on the [Finviz](https://finviz.com/quote.ashx) website. */ export type FinVizObject = { [key: string]: string }; export class Finviz { /** ...
import React from 'react' import { useRouter } from 'next/router' import { useGetMyBlogsQuery, useSetLastActiveBlogMutation, } from '@/generated/graphql' import Link from 'next/link' import clsx from 'clsx' const BlogSelect = () => { const router = useRouter() const [myBlogsResult] = useGetMyBlogsQuery({ r...
import source from 'data/source/miscSources' import ammunition, { AmmunitionModificationsList } from '../modifications/ammunition' import barrel from '../modifications/barrel' import barrelExt, { BarrelExtModificationsList } from '../modifications/barrelExt' import boost, { BoostModificationsList } from '../modificati...
/* * Copyright (c) 2014 Samsung Electronics Co., 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 app...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OBJECT_IDENTIFIER, OCTET_STRING, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { AlgorithmIdentifier, _decode_AlgorithmIdentifier, _encode_AlgorithmIdenti...
import {extractFragment, insertMarkdownSyntax} from './markdown' const containers: WeakMap<Element, ContainerConfig> = new WeakMap() let installed = 0 const edgeBrowser = /\bEdge\//.test(navigator.userAgent) type ConfigOptions = { quoteMarkdown?: boolean copyMarkdown?: boolean scopeSelector?: string } type Co...
/* * @Author: czy0729 * @Date: 2022-05-13 05:32:07 * @Last Modified by: czy0729 * @Last Modified time: 2022-05-17 05:35:40 */ import React from 'react' import { View } from 'react-native' import { _, systemStore, subjectStore, rakuenStore } from '@stores' import { runAfter } from '@utils' import { navigationRefere...
import { PALETTE_SIZE } from "../util/consts"; import { Dimensions, Drawable, ImageCoordinates, SpriteDimensions, SpriteDataStore, } from "../util/types"; import Color from "./Color"; import ImageCanvas from "./ImageCanvas"; import Palette from "./Palette"; interface ISprite extends Drawable { dimensions: ...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OBJECT_IDENTIFIER, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; export { KEY_AGREEMENT } from "../ANSI-X9-42/KEY-AGREEMENT.oca"; export { Schemes } from "../ANSI-X9-42/Schemes.osa...
import { Message } from 'discord.js'; import fetch from 'node-fetch'; import { IKamihimeDB } from '../../../typings'; import ErosComamnd from '../../struct/command'; import shuffle from '../../util/shuffle'; type PromptType = 'name' | 'element' | 'rarity' | 'tier' | 'type'; type ChoicesSupplier = (isWeapon?: boolean) ...
import { createInterface, ReadLine } from "readline"; import { existsSync, mkdirSync, readdirSync, copyFileSync, createWriteStream } from "fs"; import { exec, spawn, ChildProcess } from "child_process"; import { resolve } from "path"; import { inspect } from "util"; import HTTP2Server from "./Server"; const ShellPath ...
import React from 'react'; import R from 'ramda'; import styled, { ThemedStyledProps } from 'styled-components'; import Color from 'color'; import { Link as RouterLink } from 'react-router-dom'; import { ButtonComponent, ButtonProps } from './Button.types'; import { Theme } from '../../theme/theme.types'; import { asse...
<reponame>mong98/namcheong import { EmailValidator } from '@angular/forms'; import { DateTimeAdapter } from 'ng-pick-datetime'; export interface ApplicantStatus { Id: number ApplicantStatus: string } export interface Currency { Id: number Currency: string } export interface ApplicantDropdownId { AllowanceI...
import { createContext, ReactNode, useCallback, useEffect, useState, } from "react"; import { useRouter } from "next/router"; import Cookies from "js-cookie"; import { useToast } from "@chakra-ui/react"; import { useTranslation } from "next-i18next"; import { floor, isEqual, isMatch, omit, uniqWith } from "lo...
<reponame>hackupc/live<filename>src/data/activities.ts import imageBiene from '@/assets/img/activities/biene.png' import imageFreehand from '@/assets/img/activities/freehand.png' import imageHackuphone from '@/assets/img/activities/hackuphone.png' import imageNerf from '@/assets/img/activities/nerf.png' import imagePho...
<gh_stars>0 import path from 'path'; import fs, { constants } from 'fs'; import matchAll from 'string.prototype.matchall'; import fromEntries from 'object.fromentries'; import { PluginOptions, CSSModuleList } from '../types'; import { PATTERN_CLASSNAME, PATTERN_CLASS_DIRECTIVE, PATTERN_CLASS_SELECTOR, PATTERN_I...
import '../assets/css/Sen2AgriJobManager.scss' import '../assets/css/App.scss' import React, { Component } from 'react' import { connect } from 'react-redux' import moment from 'moment' import Sen2AgriL2APanel from './Sen2AgriL2APanel' import Sen2AgriL3BPanel from './Sen2AgriL3BPanel' import * as Yup from 'yup' imp...
/* eslint-disable no-await-in-loop */ /* eslint-disable @typescript-eslint/no-unused-expressions */ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Steps, Radio, Button, Checkbox, Divider, Form, Input, message, } from 'antd'; import { SyncOutlined } fr...
/** @jsx jsx */ import { jsx } from '@emotion/core'; import React from 'react'; import { useSpotifyPlayer } from '../spotify/hooks/useSpotifyPlayer'; import { Typography, Button, Space, Slider } from 'antd'; import { HeartIcon } from '../icons/Heart'; import { PlayIcon } from '../icons/Play'; import { SkipBackwardIcon ...
import { Aspect, defineAspects, Hint } from './operation'; import { ReadPreference } from '../read_preference'; import { maxWireVersion, MongoDBNamespace, Callback, normalizeHintField } from '../utils'; import { MongoError } from '../error'; import type { Document } from '../bson'; import type { Server } from '../sdam/...
import X from "xlsx"; import builder from "../builder.js" const utils = builder.utils; /** Export to XLSX function @function @param {string|object} filename Filename or options @param {object|undefined} opts Options or undefined @param {array} data Data @param {array} columns Columns @param {callback} cb Call...
<gh_stars>1-10 //@ts-ignore import { mat4, mat2 } from "gl-matrix"; import { dom2img } from "./utils"; import vsSource from "./shader/vertex"; import fsSource from "./shader/fragment"; import { insertCanvas, removeCanvas, initWebglProgram, initParticlesData, } from "./utils/index"; interface IConfig { m?: num...
<filename>src/domain/domain.ts<gh_stars>0 export interface StringValueObject { readonly value: string; } export interface EntityIf<T extends StringValueObject> { readonly id: T; } export class Note implements StringValueObject { constructor( readonly value: string ) { } toObject(): any { return thi...
const operators = ['+', '-', '*', '/'] as const; type Operator = typeof operators[number]; interface OpNode { left: OpNode | number; right: OpNode | number; operator: Operator; } interface Fraction { // p / q p: number; // numerator q: number; // denominator } const isValidFraction = (f: Fraction) => f...
<filename>src/agents/controllers/CreepController.ts import { COLORS, getLogger } from "utils/Logger"; import { BaseController, ReturnCodeSwitcher } from "./BaseController"; const logger = getLogger("agents.controllers.CreepController", COLORS.controllers); export class CreepController extends BaseController<Creep> { ...
<reponame>mmzliveid/lib-tools import * as path from 'path'; import { ensureDir, pathExists, writeFile } from 'fs-extra'; import * as webpack from 'webpack'; import { BuildConfigInternal, PackageJsonLike } from '../../../models'; import { LogLevelString, Logger } from '../../../utils'; const placeholderRegExp = /\[PL...
<reponame>accelerator-blueprints/mira<filename>src/version.ts import chalk from 'chalk' import fs from 'fs' import FileHelpers from './filehelpers' // eslint-disable-next-line const minimist = require("minimist"); const args = minimist(process.argv.slice(2)) /** * MiraVersion checks the CDK version consistency acros...
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import React, {useRef, useState, useEffect} from 'react' import { Dimensions, SafeAreaView, View, StatusBar, ScrollView, StyleSheet, AppState, Platform, Animated, } from 'react-native' import {useIntl} from 'react-intl' import {StackNavigationProp} from '@react-navigation/stack' import {containerStyl...
import * as functions from 'firebase-functions' import { IncomingWebhook, IncomingWebhookSendArguments } from '@slack/webhook' import { Webhooks } from '@octokit/webhooks' const credit = { name: 'github-sponsor-webhook', author: 'Yu-ichiro', url: 'https://github.com/yu-ichiro/github-sponsor-webhook' } interface...
import { createStoreContext } from '../utils/context' import { toggleSettingsEventEmitter, newDocEventEmitter, newFolderEventEmitter, searchEventEmitter, toggleSideNavigatorEventEmitter, focusTitleEventEmitter, focusEditorEventEmitter, togglePreviewModeEventEmitter, toggleSplitEditModeEventEmitter, ...
/** * @fileOverview IBAN validator */ import isEmpty from '../utils/empty'; type Options = { countryCode?: string; }; // IBAN format patterns map by country code const REGEX_PATTERNS: Record<string, RegExp> = { AL: /^AL\d{10}[0-9A-Z]{16}$/, AD: /^AD\d{10}[0-9A-Z]{12}$/, AT: /^AT\d{18}$/, BH: /^BH\d{2}[A-...
import { AsyncQueue, Channel, compose, drain } from "./async-queue"; import { Event } from "./event"; import { makeLogger } from "./log"; import { Pattern, match } from "./pattern"; /** * A logger instance namespaced to this module. */ const logger = makeLogger("step"); /** * A step is a channel that takes events ...
<reponame>PrincetonUSG/ReCal<gh_stars>10-100 /// <reference path='../../ts/typings/tsd.d.ts' /> import ISection = require('../interfaces/ISection'); import ICourseSearchScope = require('../interfaces/ICourseSearchScope'); import ICourse = require('../interfaces/ICourse'); import Course = require('../models/Course'); i...
<gh_stars>1-10 // (C)opyright 2021-07-15 <NAME>, h<EMAIL>. All rights reserved. import tty from "tty" import { renderMessages } from "../common/data/convert" import { LogHandler, LogHandlerOptions, LogLevel, LogMessage, } from "../common/log-base" import { useLevelFilter, useNamespaceFilter } from "../common/l...
<reponame>soulmachine/crypto-bars<filename>src/bars/common.ts import { strict as assert } from 'assert'; import { BboMsg } from 'coin-bbo'; import { TradeMsg } from 'crypto-crawler'; import _ from 'lodash'; import { AggregateMsg, BboIndicators, TradeAggregateMsg, TradeIndicators } from './bar_msg'; export function agg...
import { IPacket } from "../../../ipacket.js"; import { computeChecksum, computeChecksumPseudo } from "../../../util/checksum.js"; import { IPHdr, IPPROTO } from "../index.js"; export const enum TCP_FLAGS { NS = 0x100, CWR = 0x80, ECE = 0x40, URG = 0x20, ACK = 0x10, PSH = 0x08, RST = 0x04, ...
<reponame>yufeiminds/pulumi-ucloud<filename>sdk/nodejs/ulb/lbListener.ts // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types...
<filename>src/processor.ts export type Grid = { rows: number; cols: number } /** represents coordinate system in the game */ export type Coordinates = { [rowIdx: string]: { [colIdx: string]: true } } export type GameState = { grid: Grid population: Coordinates } /** determine whether space should be popu...
import {ChangeDetectionStrategy, Component, Inject, OnInit, Optional} from '@angular/core'; import {BehaviorSubject, Observable, of} from 'rxjs'; import {map, startWith, switchMap, tap} from 'rxjs/operators'; import {FieldComponent} from '../../field/field.component'; import {FieldData} from '../../interfaces/field-dat...
<filename>src/dataViz/barChart.ts import * as d3 from 'd3'; import { formatNumber } from './Utils'; export interface Datum { x: string; y: number; fill?: string; stroke?: string; tooltipContent?: string; tooltipContentOnly?: boolean; onClick?: () => void; } interface Dimensions { width: number; heig...
import { ConstDefinition, EnumDefinition, ExceptionDefinition, ServiceDefinition, StructDefinition, ThriftStatement, TypedefDefinition, UnionDefinition, } from '@creditkarma/thrift-parser' import { Statement } from 'typescript' import { IThriftError } from './errors' export type DefinitionType = | C...
<reponame>UPCSocialNetwork/backend<filename>src/routes.ts import { Router } from 'express'; import swaggerUi from 'swagger-ui-express'; import apiSpec from '../openapi.json'; import * as CentreUniversitariController from './controllers/CentreUniversitari'; import * as AssignaturaController from './controllers/Assignat...
import * as React from 'react'; import { Box, Grid, Typography } from '@mui/material'; import { ColumnsType, DetailTable } from 'src/components/DetailTable'; import { mixnodeToGridRow, scrollToRef } from 'src/utils'; import { useParams } from 'react-router-dom'; import { BondBreakdownTable } from 'src/components/BondBr...
import Mock from 'mockjs' import qs from 'qs' import { Constant, randomAvatar, waitTime } from './utils' const { ApiPrefix } = Constant const usersListData = Mock.mock({ 'data|80-100': [ { id: '@id', name: '@name', nickName: '@last', phone: /^1[34578]\d{9}$/, 'age|11-99': 1, ...
import { inject, LogManager } from 'aurelia-framework'; import { Router } from 'aurelia-router'; import { CssAnimator } from 'aurelia-animator-css'; import { EventAggregator } from 'aurelia-event-aggregator'; import { Globals } from '../globals'; interface CardSet { name: string; number: number; } const logger = ...
<reponame>zhangshine/DotMap<gh_stars>0 // @ts-ignore import GeoJsonGeometriesLookup from "geojson-geometries-lookup"; // @ts-ignore import {createSVGWindow} from "svgdom"; // @ts-ignore import {registerWindow, SVG} from '@svgdotjs/svg.js' import fs from "fs"; import {Location} from "./common"; const provinceJsonData ...
// @ts-nocheck import React from 'react' import Image from 'next/image' import dynamic from 'next/dynamic' import Head from 'next/head' import Script from 'next/script' import { serialize } from 'next-mdx-remote/serialize' import { MDXRemote } from 'next-mdx-remote' import fs from 'fs' import path from 'path' import ma...
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Injector, OnDestroy, OnInit, ViewChild, ViewEncapsulation, } from '@angular/core'; import { MediaObserver } from '@angular/flex-layout'; import { MatSidenav } from '@angular/mat...
<reponame>fengboyue/jsdk<filename>source/sugar/Aop.ts /** * @project JSDK * @license MIT * @website https://github.com/fengboyue/jsdk * * @version 2.5.0 * @update Move to sugar package * * @version 2.0.0 * @author Frank.Feng */ module JS { export namespace sugar { let T = Types; /** ...
import classNames from 'classnames'; import { useRef, useEffect, useMemo, Children, createContext, forwardRef, HTMLAttributes, useCallback, useContext, useState, cloneElement, ReactElement, MouseEventHandler, } from 'react'; import Transition, { ENTERED, ENTERING, EXITING } from 'react-transit...
import * as fs from "fs"; import * as path from "path"; // Mine import * as core from "./core"; import * as coreClone from "./core-clone"; import * as dvcsUrl from "./dvcs-url"; import * as repo from "./repo"; import * as util from "./util"; function doSemiInstall() { const startDir = process.cwd(); core.cdRootDi...
import {PlexClient} from './plex_client'; import * as http from 'http'; import * as nock from 'nock'; const testServerAddress = 'http://sever-ip-address-and-port.com'; const testToken = '<PASSWORD>-network-console'; const playlistXml = `<?xml version="1.0" encoding="UTF-8"?> <MediaContainer size="9"> <Playlist rating...
import { forwardRef, HttpStatus, Inject, Injectable } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { InjectRepository } from '@nestjs/typeorm'; import * as config from 'config'; import { SignOptions, TokenExpiredError } from 'jsonwebtoken'; import { CustomHttpException } from '../exception/cu...
<filename>src/app/money/analytics/bucket-breakdown.component.ts import { AfterViewInit, Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewChild } from '@angular/core'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { ChartData, ...
import React, { FC, useCallback, useState } from 'react'; import { useRouter } from 'next/router'; import isEmpty from 'lodash/isEmpty'; import { useAsyncFn, useMountedState } from 'react-use'; import { useTranslation } from 'next-i18next'; import cn from 'classnames'; import { useDebounceEffect } from 'hooks/useDebou...
import React, { useEffect, useState } from "react" import { Card, CardContent, CardMedia, Grid, Typography } from "@material-ui/core" import { makeStyles, createStyles, Theme } from "@material-ui/core/styles" import boxNotEvaluatedIcon from "../../../../assets/icons/boxNotEvaluatedIcon.png" import boxEvaluatedIcon from...
import { interactiveLogin } from "@azure/ms-rest-nodeauth"; import { ComputeManagementClient, ComputeManagementModels as Models } from "@azure/arm-compute"; import { NetworkManagementClient, NetworkManagementModels as NetworkModels } from "@azure/arm-network"; import { RestError, RestResponse, RequestOptionsBase } from...
<reponame>protoman92/paxos-js<gh_stars>0 import { Observable, Subscription } from 'rxjs'; import * as uuid from 'uuid'; import { Nullable, Try } from 'javascriptutilities'; import * as API from './API'; import * as Message from './Message'; import { Participant } from './Role'; import * as SID from './SuggestionId'; t...
import * as React from "react"; import { RootNode as DivetreeNode, NodeKind, Split, TightLeafNode, Id, NavNode, } from "divetree-core"; import { unreachable } from "./util"; import { NavTree } from "divetree-react"; type Expression = BinaryExpression | NumericLiteral | Hole; enum ExpressionKind { Binary...
import JSXExporter, { getAncestors, JSXDocument, ClassDefinitionBuilderContext, AttributeClassPropDefinition, AttributeClassDefinition, ImportMap, JSXDocumentBuilderContext } from "./JSXExporter"; import { Project, Node, ClassDeclaration, Type } from "ts-morph"; export function inheritsFromViewBase(cl: ClassDeclarati...
<reponame>start/up<gh_stars>1-10 import { distinct } from './CollectionHelpers' import { FORWARD_SLASH, HASH_MARK } from './PatternPieces' import { URL_SCHEME_PATTERN } from './Patterns' import { Settings } from './Settings' // The `Settings` provided by the user are almost always imcomplete. // // This class: // // ...
/* * Copyright 2019 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...
<gh_stars>10-100 import { parse as parseUrl } from 'url'; import type { ParsedUrlQuery } from 'querystring'; import { createHmac, createHash } from 'crypto'; import type { IncomingMessage, ServerResponse } from 'http'; import { makeClassProvider } from '@machinat/core/service'; import type { ServerAuthenticator, Re...
<reponame>spantaleev/matrix-hookshot import { BridgeConfigJira } from "../Config/Config"; import { generateJiraURL } from "./AdminCommands"; import { JiraOAuthResult } from "./Types"; import { MessageQueue } from "../MessageQueue"; import { OAuthRequest } from "../WebhookTypes"; import { Router, Request, Response, Next...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // ...
<filename>assets/scripts/GameManager.ts // Learn TypeScript: // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/manual/en/scrip...
interface BaseFieldDefinition<ObjShape> { dbName: string; name: keyof ObjShape; } export interface TableFieldDefinition<ObjShape> extends BaseFieldDefinition<ObjShape> { isEncrypted?: boolean; isHash?: boolean; isPwHash?: boolean; isCC?: boolean; isInsertTimestamp?: boolean; isUpdateTimestamp?: boole...
/* eslint-disable @typescript-eslint/camelcase */ import axios from 'axios' import MockAdapter from 'axios-mock-adapter' import APIClient, { Options } from '../src/APIClient' import { Project } from '../src/models' const mock = new MockAdapter(axios) // set mock adapter on default axios instance const BUSINESS_ID = 1...
<filename>src/_shared.ts import BigNumber from 'bignumber.js' import gql from 'graphql-tag' import BLACKLIST from './constants/blacklist' import { client } from './apollo/client' import { PAIR_RESERVES_BY_TOKENS, PAIRS_VOLUME_QUERY_STRING, SWAPS_BY_PAIR, TOP_PAIRS, PAIR_FROM_TOKENS, TOTAL_LIQUIDITY } from './apollo/qu...
<reponame>sprucelabsai/spruce-cli-workspace<gh_stars>1-10 import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter' import { EventContract } from '@sprucelabs/mercury-types' import { Terminal } from 'terminal-kit' import { BaseWidget, UniversalWidgetOptions, WidgetFrame, WidgetFrameCalculated, Widge...
<reponame>jgarverick/reqt-integrator // --------------------------------------------------------------------- // <copyright file="visualizerDialog.ts"> // This code is licensed under the MIT License. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF // ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LI...
<gh_stars>100-1000 import _ from 'lodash'; import moment from 'moment'; import logCallsRemaining from '../../logCallsRemaining'; import loadPrs from './loadPrs'; import { Octokit } from '@octokit/rest'; import { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-re...
<reponame>renovate-bot/rushstack<filename>apps/rush-lib/src/cli/actions/AddAction.ts // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import * as os from 'os'; import * as semver from 'semver'; import { Import ...
// Copyright (c) 2019 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. import React from "react"; import { AppState, Alert, Image, StatusBar, StyleSheet, Text as SystemText, TouchableOpacity, View, } from "r...
<filename>src/utils/color.ts<gh_stars>0 import Numbers from "./numbers"; export namespace Color { export type RGB = { r: number; g: number; b: number; }; export type HSV = { hue: number; saturation: number; value: number; }; /** * Converts a h...
<filename>src/server/getters/get-markets.ts import * as t from "io-ts"; import * as Knex from "knex"; import { Address, MarketsContractAddressRow, SortLimitParams, TotalInitialREPStakeRow } from "../../types"; import { getMarketsWithReportingState, queryModifier, marketPassesInitialREPFilter } from "./database"; import...
<reponame>mnubo/smartobjects-js-client<gh_stars>0 import { base64Encode } from './utils/underscore'; import { http } from './http/http'; import { RequestOptions } from './http/request'; import * as promiseRetry from 'promise-retry'; import { Owners } from './ingestion/owners'; import { Objects } from './ingestion/obje...
import { Box, createStyles, Grid, makeStyles, Theme, Typography, } from '@material-ui/core'; import { Canvas, ThreeEvent } from '@react-three/fiber'; import React, { createRef, FC, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Euler, Event, Group, Obje...
<reponame>naetverkjs/naetverk import { NodeEditor } from '@naetverkjs/naetverk'; import { Position } from './interfaces/position.interface'; import { SelectionOptions } from './interfaces/selection-options.interface'; import { Size } from './interfaces/size.interface'; import { cleanSelectionArea, drawSelectionAre...
import { escapeRegExp, isEmpty, sortByLengthDesc } from '../utils'; /** * Builds a RegExp containing all operators for a SQL dialect * @param {string} monadOperators - concatenated string of all 1-length operators * @param {string[]} polyadOperators - list of strings of all >1-length operators */ export const crea...
import Collectable from './Collectable'; import Letter from '../Objects/Letter'; import InventoryScene from '../Scenes/InventoryScene'; interface InventoryConfig { scene: InventoryScene; size: number; x: number; y: number; backgroundSpriteKey: string; slotWidth?: number; slotHeight?: number; paddingX?: numb...
<filename>sdk/nodejs/policy/protoutil.ts // Copyright 2016-2019, Pulumi Corporation. // // 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 /...
<gh_stars>1-10 import { resolve } from 'path'; import { pathToFileURL } from 'url'; import * as fromParse5 from 'hast-util-from-parse5'; import { Code, Parent } from 'mdast'; import { Mermaid } from 'mermaid'; import { parseFragment } from 'parse5'; import * as puppeteer from 'puppeteer'; import { optimize, OptimizeOp...
<gh_stars>1-10 import * as vscode from 'vscode'; import { workspace } from 'vscode'; import * as fs from 'fs'; import * as path from 'path'; // this method is called when your extension is activated // your extension is activated the very first time the command is executed export function activate(context: vscode.Ext...
import { graphql, useStaticQuery } from 'gatsby'; import * as React from 'react'; import * as styles from './Search.module.scss'; import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import Skills from '../components/skills/Skills'; import Roles from '../components/roles/Roles'; import Industry ...
import * as THREE from "three"; import settings from "../settings"; import { CarLightsPlacement, CustomCarLightMaterial, CustomCarLightMesh, GUIParams, } from "../types"; const fragmentShader = ` uniform vec3 uColor; void main() { vec3 color = vec3(uColor); gl_FragColor = vec4(color,1.); } `;...
import { Frame, FramesRenderer } from "paperclip-web-renderer"; import * as path from "path"; import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from "react"; import { render } from "react-dom"; import { useAppStore } from "../../../../hooks/useAppStore"; import { FrameContainer } fro...
#!/usr/bin/env node /* eslint-disable no-process-exit */ import net from 'net' import {log} from './logger' import {config} from './config' import {Server, ServerList} from './typings' import {closeQueries, queryServer} from './query' import {sanityClient} from './sanity' import {getHttpServer} from './http' import {f...
import { BgColors } from "@/lib"; import * as DsIcons from "@navikt/ds-icons"; import * as DsReact from "@navikt/ds-react"; import * as DsReactInternal from "@navikt/ds-react-internal"; import { format } from "date-fns"; import { nb } from "date-fns/locale"; import babel from "prettier/parser-babel"; import prettier fr...
import assertNever from "assert-never"; import { List, Map, Set } from "immutable"; import { Notice } from "obsidian"; import { File_Parents, File_Types, RelationResolverAPI, RelationType, } from "./api"; import { revertRelType } from "./misc"; import RelationResolver from "./rr-main"; const CIRCULAR_REF_ID =...
<gh_stars>0 /* eslint-disable @typescript-eslint/restrict-template-expressions */ import { createHash } from 'crypto'; import type { DebouncedFunc } from 'lodash'; import { env, OutputChannel, Uri, workspace } from 'vscode'; import * as Mixpanel from 'mixpanel'; import { Diagnostic, DiagnosticSeverity as Severity...