text stringlengths 3.08k 15.5k |
|---|
<filename>src/util/ticks.ts
// cSpell:ignore incrs mults mult expa linthresh
// 🐉🐉🐉
// This is code taken from uPlot. It's used for split calculation. It's copied and modified here so that
// we can control the split generation.
// FUTURE: Use commented out code as reference when finally asked to implement non-linea... |
import * as fs from "fs";
import * as path from "path";
import { join } from "path/posix";
import { green } from "../utilities";
// ============
// == Config ==
// ============
export const DAY_NUM = 8;
export const CHALLENGE_TITLE = "Seven Segment Search";
// ==========
// == Main ==
// ==========
if (process.env.S... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
<reponame>tinuF/eTuneBook2<filename>src/client/app/business/converter/abc-writer.ts
import * as moment from 'moment';
import { getSystemProperties } from '../system.properties';
import { Tune, TuneSetPosition, Playlist, PlaylistPosition, TuneSetPositionPlayInfo, TuneBook} from '../model/index';
import { AbcExportSetti... |
/**
* This is a gondel plugin which add a custom gondel resize event
*/
import { addGondelPluginEventListener, getComponentByDomNode, GondelComponent } from "@gondel/core";
import { INamespacedEventHandlerRegistry } from "@gondel/core/dist/GondelEventRegistry";
/**
* The COMPONENT_RESIZED_EVENT event will be fired ... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
import webpack from "webpack";
import { CleanWebpackPlugin } from "clean-webpack-plugin";
import ManifestPlugin from "webpack-manifest-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import TerserPlugin from "terser-webpack-plugin";
import Opti... |
/**
* 全局监听 currentNode 的变化
*/
import React, { useEffect, useRef, useCallback } from 'react';
import useSystemState from './useSystemState';
import useNativeState from './useNativeState';
import useAssets from './useAssetsState';
import * as INative from '../interface/native-interface';
import AnimationFrame from '../... |
import {Component, OnInit} from '@angular/core';
import {ResourcesRole, ResourcesUser, ResourceUser, Role, User, UserEntityService} from '../';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {ActivatedRoute} from '@angular/router';
import {FormSubmissionDialogComponent} from '../dynamic-form/... |
import { Component, OnInit, OnDestroy, Inject } from '@angular/core'
import { Subscription } from 'rxjs'
import {
Perfil,
PerfilService,
PerfilHasPermissao,
PerfilPermissaoService
} from 'src/app/shared'
import { Router } from '@angular/router';
import {
MatDialog,
MatSnackBar,
MAT_DIALOG_D... |
<filename>example/src/three.js/jsm/postprocessing/EffectComposer.ts
//@ts-nocheck
import {
BufferGeometry,
Clock,
Float32BufferAttribute,
LinearFilter,
Mesh,
OrthographicCamera,
RGBAFormat,
Vector2,
WebGLRenderTarget
} from 'three';
import { CopyShader } from '../shaders/CopyShader.js';
import { ShaderPass } f... |
import {
ChangeDetectionStrategy,
Component,
Inject,
InjectionToken,
Input,
OnInit
} from '@angular/core';
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
import { map, switchMap, tap } from 'rxjs/operators';
import { PaginatedList } from '../core/data/paginated-list.model';
imp... |
import React, { useState } from 'react'
// eslint-disable-next-line no-unused-vars
import { Project } from '../Classes/project'
// eslint-disable-next-line no-unused-vars
import { Skill } from '../Classes/skill'
// eslint-disable-next-line no-unused-vars
import { User } from '../Classes/user'
interface GroupProps {
... |
import Protocol from 'devtools-protocol';
import Trace from './trace/trace';
import { RootConnection, SessionConnection } from 'chrome-debugging-client';
export interface ITab {
isTracing: boolean;
/** The current frame for the tab */
frame: Protocol.Page.Frame;
onNavigate: (() => void) | undefined;
/** Add... |
import { Injectable } from '@angular/core';
import { HttpRequest, HttpResponse, HttpHandler, HttpEvent, HttpInterceptor, HTTP_INTERCEPTORS } from '@angular/common/http';
import { Observable } from 'rxjs';
import 'rxjs-compat/add/observable/of';
import 'rxjs-compat/add/operator/mergeMap';
import 'rxjs-compat/add/observa... |
import {List} from 'immutable';
import {moment, rangeMoment} from './momentConfig';
export function toNumber(string: String) {
return Number(string.replace(',', '.'));
}
export function toArray(iterable, start?, end?) {
if (!iterable || !iterable.length) {
return [];
}
if (typeof iterable === 'string') {
... |
/**
* Copyright (c) Intel Corporation
* Licensed under the MIT License. See the project root LICENSE
*
* SPDX-License-Identifier: MIT
*/
'use strict';
import { execSync } from 'child_process';
import { copyFileSync, existsSync, readFileSync, unlinkSync, writeFileSync } from 'fs';
import { join } from 'path';
im... |
import styled from "styled-components";
import { device } from "@/styles";
export const Wrapper = styled.div`
display: grid;
align-items: center;
grid-template-columns: repeat(1, minmax(10px, 1fr));
grid-template-areas: "logo" "." "." ".";
gap: 2rem;
@media ${device.mobileL} {
grid-template-columns: repeat(3,... |
<gh_stars>1-10
import fs from 'fs';
import path from 'path';
import session from 'express-session';
import Keycloak from 'keycloak-connect';
import express from 'express';
import exphbs from 'express-handlebars';
import bodyParser from 'body-parser';
import KeycloakAdapter from 'keycloak-lambda-authorizer/dist/Adapter... |
<reponame>Odoh/acquire-server
/**
* Describes this client's connetion information to an Acquire server.
*/
type ConnectionInfo = {
rootUrl: string
gameId: string,
selfId: string,
}
/** Draw the Acquire game.
*
* @param phaser an instance of AcquirePhaser.
* @param server the state of the AcquireServe... |
<gh_stars>10-100
import { RcFile } from 'antd/lib/upload'
import { useReducer, Reducer } from 'react'
import React from 'react'
import moment from 'moment'
import { Obj } from '@noreajs/common'
/**
* Convert array of object to object
* @param array array to convert
*/
export const arrayToObject = (array: any[]) => ... |
/*
Copyright Amazon.com, Inc. or its affiliates. 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-2.0
Unless required by applicable l... |
import * as http from 'http';
import { ConfigOptions as KarmaConfigOptions } from 'karma';
import * as webpack from 'webpack';
import * as webpackDevMiddleware from 'webpack-dev-middleware';
import * as yargs from 'yargs';
import { getTestConfigFromKarma } from '../helpers';
import { Logger } from '../utils';
import... |
<filename>src/plugins/copy-webpack-plugin/src/index.ts
import * as path from 'path';
import { copy } from 'fs-extra';
import * as webpack from 'webpack';
import { AssetEntry } from '../../../models';
import { InternalError, InvalidConfigError } from '../../../models/errors';
import { isInFolder, Logger, LogLevelStrin... |
<reponame>Versus-Virus-Team-359/ctc
import {OptionTypeBase, ClassNamesState} from 'react-select';
export const options = [
{value: 'US', label: 'United States'},
{value: 'Spain', label: 'Spain'},
{value: 'Italy', label: 'Italy'},
{value: 'Germany', label: 'Germany'},
{value: 'France', label: 'France'},
{value: '... |
/**
* 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
* "License"); you... |
<gh_stars>1-10
import BackwardIterator from './BackwardIterator'
// [Joshen] Needs to be fixed
export default function getPgsqlCompletionProvider(monaco: any, sqlEditorStore: any) {
return {
triggerCharacters: [' ', '.', '"'],
provideCompletionItems: function (model: any, position: any, context: any) {
... |
import {createHash} from 'crypto';
import {Feed} from 'feed';
import {transform as tempuraTransform} from 'tempura/esbuild';
import csso from 'csso';
import esbuild from 'esbuild';
import frontmatter from 'frontmatter';
import fse from 'fs-extra';
import MarkdownIt from 'markdown-it';
import mdAnchor from 'markdown-it-... |
import { S3 } from 'aws-sdk';
import {
DeployContext,
DeployOutputType,
PreDeployContext,
ProduceEventsContext,
ServiceConfig,
ServiceContext,
ServiceDeployer,
ServiceEventConsumer,
ServiceEventType,
UnDeployContext
} from 'handel-extension-api';
import { awsCalls } from 'handel-... |
<reponame>TBubba/windows-api
import { spawn } from 'child_process';
import * as windowsAPI from '../dist';
runDemo();
async function runDemo() {
// Run MS-Paint, wait for it's window to appear, then move and resize it and log its new position and size
await (async () => {
const proc = spawn('C:/Windows/System... |
/** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { useState, useEffect } from 'react';
import ReactTable from 'react-table';
import 'react-table/react-table.css';
import Select from 'react-select';
import { css } from '@emotion/core';
import {
Bullseye,
EmptyState,
Title,
} from '@patternfly/rea... |
<gh_stars>0
import { Injectable, HttpException, HttpStatus, UnauthorizedException, RequestTimeoutException } from "@nestjs/common";
import { InjectModel } from "@nestjs/mongoose";
import { Room, RoomSchema, RoomDocument } from '../rooms/room.schema';
import { User, UserSchema, UserDocument } from "src/users/user.schema... |
/** @format */
import { Block, IMatch, WholeRender } from '@/typings/muya'
import { CLASS_OR_ID } from '../../../config'
import { h } from '../snabbdom'
import { renderEditIcon } from './renderContainerEditIcon'
// import renderLineNumberRows from './renderLineNumber'
import renderCopyButton from './renderCopyButton'
... |
<reponame>benchling/ts-expose-status-plugin
import {IPC} from 'node-ipc';
import {appendFileSync} from 'fs';
import {homedir} from 'os';
import * as ts_module from 'typescript/lib/tsserverlibrary';
import {CALL_EVENT, RESPOND_EVENT, SERVER_ID, SimpleDiagnostic} from './Protocol';
import {resolve} from 'path';
const L... |
import { CommonModule, registerLocaleData } from '@angular/common';
import { CustomMatPaginatorIntl } from './shared/modules/language-translation/MatPaginationFr';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, NO_ERRORS_SCHEMA, LOCALE_ID } from '@angular/core';
import localeFr from '@ang... |
import React, { useState, useEffect, Fragment } from "react";
import {
Grid,
Select,
MenuItem,
FormControl,
InputLabel,
Rating,
Skeleton,
Stack,
Typography,
Button,
IconButton,
} from "@mui/material";
import "./index.css";
import RotateLeftIcon from "@mui/icons-material/RotateLeft";
import axios f... |
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import {
FileSystem,
ITerminal,
Terminal,
ConsoleTerminalProvider,
Path,
NewlineKind
} from '@rushstack/node-core-library';
import * as glob fr... |
/*
* Copyright The OpenTelemetry Authors
*
* 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... |
<gh_stars>0
"use strict";
function isContainer(node) {
switch (node._type) {
case 'Document':
case 'BlockQuote':
case 'List':
case 'Item':
case 'Paragraph':
case 'Header':
case 'Emph':
case 'Strong':
case 'Link':
case 'Image':
return true;
default:
return... |
import { Test, TestingModule } from '@nestjs/testing';
import { UserAuthenticationService } from './user-authentication.service';
import { UserService } from '../user.service';
import { getRepositoryToken } from '@nestjs/typeorm';
import { ConfigService } from '../../config/config.service';
import { JwtService } from '... |
import * as React from 'react';
import { NodeRenderStrategy } from './nodeRenderStrategy';
import { LeafNode, LeafNodeProps } from './leafNode';
import { InnerGlobals } from '../../props/globalProps';
import { NameValidator } from '../../nameValidator';
import { Constants } from '../../constants';
export interface Cr... |
import * as QueryString from 'qs'
import { defer, of, Observable } from 'rxjs'
import { catchError, concatMap, map, switchMap, tap, timeout } from 'rxjs/operators'
import { initialRxRequestInit } from './config'
import { Args, ObbRetType, RxRequestInit } from './model'
import { assertNever } from './shared'
/** igno... |
<filename>test/contracts/AssetHolder/transferAll.test.ts
import {ethers} from 'ethers';
import {expectRevert} from 'magmo-devtools';
// @ts-ignore
import AssetHolderArtifact from '../../../build/contracts/TESTAssetHolder.json';
import {
setupContracts,
newAssetTransferredEvent,
randomChannelId,
allocationToPara... |
/*
Implementation of Raymarching routines as a module for rendering scenes in the visualiser.
*/
import {FFTChannels, makeContext, Module, ModuleContext, ModuleValue} from "./Module";
import { Program } from "../webGL/GL";
import { vec2f as vec2 } from "../maths/Vec2";
import {Renderer} from "../webGL/Renderer";
con... |
/*!
* Copyright 2019, OpenTelemetry Authors
*
* 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... |
import Link from "next/link";
import { Flex, Box, Text, Image, Icon } from "@chakra-ui/react";
import { FlatButton } from "components/FlatButton";
import { Tweet } from "models/tweet";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import {
AiFillHeart,
AiOutlineHeart,
AiOutlineC... |
import { spawn, ChildProcessWithoutNullStreams } from 'child_process';
import path from 'path';
import { EventEmitter } from 'events';
import { Server } from 'ws';
export interface MyTlsRequestOptions {
headers?: {
[key: string]: any;
};
body?: string;
ja3?: string;
proxy?: string;
}
export interface MyT... |
<filename>src/framework/container/container.ts
import {
IContainerConfig,
IfIocComponent,
IfIocContainer,
IScopedComponentStorage,
} from '../../definitions';
import { ComponentScope } from '../../enums';
import { initIterator } from './initializer';
import FrameworkError from '../../exceptions/frameworkerror';... |
/*
* SonarTS
* Copyright (C) 2017-2019 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or ... |
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { RogerthatActionTypes, ScanQrCodeAction, ScanQrCodeUpdateAction } from '@oca/rogerthat';
import { of } from 'rxjs';
import { delay, switchMap } from 'rxjs/operators';
import { CirkloMerchant } from './cirk... |
<reponame>Stevertus/dManager
import { Injectable } from '@angular/core';
import { Http, Response, Headers, RequestOptions, ResponseContentType } from '@angular/http';
import 'rxjs/add/operator/map'
const URI:any = 'http://stevertus.ga/'//'http://localhost:3000/'//'http://stevertus.ga/'//
const URL = URI + 'api/'
@Inje... |
import React, { ReactNode, forwardRef, useImperativeHandle } from 'react';
import sdk from 'qcloud-iotexplorer-h5-panel-sdk';
import { onControlDevice } from '@hooks/useDeviceData';
import Bus from '@libs/utillib';
import { useDidMount, useWillUnmount } from 'beautiful-react-hooks';
let timer;
const info = {
curRati... |
import BbPromise = require('bluebird');
import * as babelCore from '@babel/core';
import stripIndent = require('strip-indent');
import { from, of } from 'rxjs';
const babelTransformEs2015 = [
require('babel-plugin-transform-block-scope-to-iife'),
require('@babel/plugin-transform-template-literals'),
require('@ba... |
<reponame>alibaba/general-scene-interface
/**
* Copyright (C) 2021 Alibaba Group Holding Limited
* All rights reserved.
*
* @description
*
* three 判断 material 是否为 shader material 的机制是:
* - material.type 不属于内置 matr 的 type
* - 同时 !isRawShaderMaterial
* 如果判断为 shader material,则会用 custom shader 创建 program。并用 materi... |
<reponame>andrewrothman/weka<filename>src/index.ts
import * as callsite from "callsite";
import * as path from "path";
import * as fs from "fs";
import { Watcher } from "./watcher";
import FunctionStore, { WekaFuncMeta, WekaFuncHandler, WekaFuncDef, WekaFuncDefES6, InternalWekaFunctionDef } from "./func_store";
import ... |
<reponame>allanice001/envkey
import { RELEASE_ASSET_REGION } from "./stack-constants";
import * as semver from "semver";
import { Infra } from "@core/types";
import { Credentials, S3, SharedIniFileCredentials } from "aws-sdk";
import fetch from "node-fetch";
import xmlParser from "fast-xml-parser";
// These artifact-h... |
/* eslint-disable max-len */
import { filterXSS } from 'xss';
import { TFunction } from 'i18next';
import { IOperator } from '../typings';
import customGameNames from '../constants/customGameNames';
import operatorHelper from '../helpers/operator.helper';
import { isLocal } from '../utils/url.util';
const Operator... |
import {
HttpApi,
} from '@aws-cdk/aws-apigatewayv2-alpha';
import {
RestApi as SoftChefRestApi,
} from '@softchef/cdk-restapi';
import {
Duration,
Stack,
} from 'aws-cdk-lib';
import {
RestApi,
} from 'aws-cdk-lib/aws-apigateway';
import {
AllowedMethods,
CacheCookieBehavior,
CachedMethods,
CacheHea... |
import type { BindOptions, RemoteInfo, Socket } from 'dgram';
import type { AddressInfo } from 'net';
import { EventEmitter } from 'events';
import {
EServiceFunction,
EServicePINGApplicationType,
EServicePINGFeatures,
EServiceType,
ESubProtocol,
IServicePing,
MAX_FRAME_COUNTER,
VBANPack... |
import {
smallStringType,
stringType,
largeStringType,
booleanType,
numberType,
objectKey,
smallArrayType,
arrayType,
largeArrayType,
smallObjectType,
largeObjectType,
nanoNumberType,
smallNumberType,
floatType,
doubleType,
dateType,
undefinedType,
nullType,
largeNumberType
} from ... |
<reponame>from-nibly/hallpass
import * as express from 'express';
import { NextFunction, Request, Response } from 'express';
import { RouteConfig, store, RouterConfig } from './router/store';
export interface Logger {
info: (...args: any[]) => void;
}
export interface HasConstructor {
constructor: {
name: str... |
import { BufferGeometryUtils } from 'three/examples/jsm/utils/BufferGeometryUtils';
import { TAsteroidBeltType } from '../models/TAsteroidBeltType';
import { IAllMergedAsteroidBeltGeometries } from '../models/IAllMergedAsteroidBeltGeometries';
import { assetsBaseUrl, au } from './constants';
import { IAsteroidDatum } ... |
<filename>src/store/post-share.ts
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
import { getMentionList, lookupTwitterUsers } from '@lib'
const LOCAL_STORAGE_MENTIONS_KEY = 'mentions'
const searchedMentionsStorage: ITweetUserData[] =
typeof window !== 'undefined' &&
localStorage... |
<reponame>oliverwalsh7/imodeljs<filename>core/frontend/src/tile/TileDrawArgs.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright ... |
import * as React from 'react';
import ReactResizeDetector from 'react-resize-detector';
import jQuery from 'jquery';
interface GridProps<T> {
data: T[];
columnMappings: GridColumnMapping[],
tableTitleHeight: number;
container: HTMLElement | Window;
searchKey: string;
showAll: boolean;
}
interface GridCol... |
import { EncoderOverrides, ContractTxFunctionObj, BaseContract } from '@0x/base-contract';
import { BlockRange, ContractAbi, ContractArtifact, DecodedLogArgs, LogWithDecodedArgs, TxData, SupportedProvider } from 'ethereum-types';
import { BigNumber } from '@0x/utils';
import { EventCallback, IndexedFilterValues, Simple... |
import { Component } from '@angular/core';
import { DeckService } from '../../services/deck-service'
import { HttpCardService } from '../../services/http-service'
import { ScryfallService } from '../../services/scryfall.service';
import { Card, Deck, MetaDeck, DeckCard } from '../../interfaces/interfaces';
@Component(... |
import React, { Suspense, useCallback, useState } from "react";
import { Box, Grid, InputAdornment } from "@material-ui/core";
import { AutoSizer } from "react-virtualized/dist/commonjs/AutoSizer";
import { List } from "react-virtualized/dist/commonjs/List";
import supportedLanguages from "../../assets/data/supported-l... |
import {
computed,
onMounted,
SetupContext,
ref,
watch,
inject,
shallowRef,
ComponentPublicInstance,
provide
} from 'vue'
import { isFunction, isObject, noop } from '@/helpers/util'
import { addClassName, getScrollDom, removeClassName } from '@/helpers/dom'
import { popupZIndex } from '@/helpers/layer... |
<reponame>HyperBrain/serverless-vscode
import * as chai from "chai";
import * as chaiAsPromised from "chai-as-promised";
import * as _ from "lodash";
import * as sinon from "sinon";
import {
Position,
Range,
Selection,
SnippetString,
TextDocument,
TextEditor,
TextEditorDecorationType,
TextEditorEdit,
TextEdito... |
import db from 'mysql2-async/db'
import { Cache, hashify } from 'txstate-utils'
import { Group, GroupFilter } from 'internal'
export const groupManagerCache = new Cache(async (groupId: string) => {
const managers = await db.getall('SELECT userId FROM users_groups WHERE groupId = ? AND manager IS TRUE', [groupId])
... |
<reponame>arsen2010/engine<gh_stars>0
import * as js from '../utils/js';
import { CallbacksInvoker } from './callbacks-invoker-base';
import Event from './event';
const fastRemove = js.array.fastRemove;
type Constructor<T = {}> = new(...args: any[]) => T;
export type IEventTargetCallback = (...args: any[]) => void;
... |
<filename>src/start.ts<gh_stars>1-10
import {ConfigurationLoader} from "./util/configuration";
import WebServer from "./server/WebServer";
import IndexRouter from './server/routers/IndexRouter';
import ApiRouter from "./server/routers/ApiRouter";
import MongoConnector from "./db/MongoConnector";
import AuthRouter from ... |
import React from "react"
import { css } from "@emotion/css"
import {
Typography,
Radio,
FormControlLabel,
RadioGroup,
Box,
Button,
SvgIcon,
TextField,
FormGroup,
Switch,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Tooltip,
} from "@material-ui/core"
import render, { theme } from ".... |
<gh_stars>1-10
import { divideByGCD } from "./divideByGCD";
import * as math from "mathjs";
import { ChangeTypes } from "../../ChangeTypes";
import { evaluate } from "../../util/evaluate";
import { NodeType } from "../../node/NodeType";
import { NodeStatus } from "../../node/NodeStatus";
import { NodeCreator } from ".... |
import { relative } from 'path'
import { green, red, yellowBright, cyanBright } from 'chalk'
import isEmpty from 'lodash/isEmpty'
import { bash } from "../utils"
import { GitStatus, RepositoryWithStatus } from "../interfaces/status"
import { Repository } from '../interfaces/ngm-dot'
import displayProcess from '../util... |
import { Space, SPACE_EMPTY, spaceGetColor, spaceGetType } from "./Space.ts";
import { assert } from "../logic/assert.ts";
import { Coord } from "./Coord.ts";
import { GameStatus, GAMESTATUS_ACTIVE } from "./GameStatus.ts";
import { CastleMap } from "./CastleMap.ts";
import { Color, COLOR_BLACK, COLOR_WHITE } from "./C... |
<filename>src/distribution/rendererIsolate/ROFunctions.ts
import Matrix4 from "../../vox/math/Matrix4";
import MathConst from "../../vox/math/MathConst";
import AABB from "../../vox/geom/AABB";
import AABB2D from "../../vox/geom/AABB2D";
import Sphere from "../../vox/geom/Sphere";
import Plane from "../../vox/geom/Pla... |
import { Card } from '../cardpayments/card'
import { GenericObject, IGenericObject } from '../generic'
import { ACHBankAccount } from './ACHBankAccount'
import { Address } from './address'
import { BACSBankAccount } from './BACSBankAccount'
import { DateOfBirth } from './dateofbirth'
import { EFTBankAccount } from './E... |
<filename>index.d.ts
// Type definitions for PrinceXMl,
// Project: PrinceXML
// Definitions by: <NAME> - https://github.com/johanneshhl/
// see http://www.princexml.com/doc/javascript/#js-pdf
declare namespace Prince {
/** Enable Prince box tracking */
var trackBoxes : boolean;
/** Page count c... |
function dynamicValue (value : any) {
if (!value) return []
return value.match(/{{(.*?)}}/g)
}
function tagTransformer (node : any) {
switch (node.name) {
case 'view':
node.name = 'div'
break
case 'text':
node.name = 'span'
break
case 'block':
node.name = 'template'
... |
<reponame>quanterion/ng-template
import { isObservable } from 'rxjs'
export type Evaluator = (code: string) => Promise<any>
interface Params {
templates: Map<string, HTMLElement>
}
/**
* return function to eval expression with variables defined in context
* @param context
*/
export function createEvaluator(cont... |
<filename>src/postgraphql/schema/createPostGraphQLSchema.ts
import { Pool, Client, ClientConfig, connect as connectPgClient } from 'pg'
import { GraphQLSchema, GraphQLOutputType } from 'graphql'
import { writeFile } from 'fs'
import { Inventory, Type, ObjectType, getNonNullableType } from '../../interface'
import { int... |
import { Buffer } from "buffer";
import assert from "assert";
import {
AccountInfo,
AccountMeta,
Connection,
PublicKey,
TransactionSignature,
Transaction,
TransactionInstruction,
Commitment,
Signer,
RpcResponseAndContext,
SimulatedTransactionResponse,
SendTransactionError,
} from "@solana/web3.j... |
<gh_stars>0
import * as os from "os";
import * as vscode from 'vscode';
import { ArtifactSource } from "./installation/interfaces";
import { log, vscodeReloadWindow } from "./util";
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
export interface InlayHintOptions {
typeHints: boolean;
parameterHints: ... |
import { getConfig } from '../config';
import { togglAuthenticate, togglGetProfile, jiraGetAccessCode, jiraAuthenticateErrorHandler, jiraResourceErrorHandler, authenticateApis, jiraGetSites, jiraGetUsersByProject, togglCreateProject, jiraSearchIssuesByProject, togglCreateTask } from '../api';
import { TogglGrantTypes, ... |
import React, { useEffect, useState } from "react";
import {
CButton,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCol,
CForm,
CFormGroup,
CTextarea,
CInput,
CLabel,
CSelect,
CRow,
CInputCheckbox,
} from "@coreui/react";
import CIcon from "@coreui/icons-react";
import { freeSet } from "@core... |
<filename>ionic/oNyCoin/src/app/bar/bar.component.ts<gh_stars>0
/**
* Created by bryan on 10-12-2018.
*/
import {Component, HostListener, OnInit} from '@angular/core';
import {BarService} from '../services/bar.services';
import {Observable} from 'rxjs';
import {barConsumable} from '../services/barConsumable';
import ... |
<reponame>Masha1996/BrowserBNB
/// <reference types="chrome"/>
import { Injectable } from '@angular/core';
import { environment } from '../../environments/environment';
import { debounce, map, switchMap } from 'rxjs/operators';
import { from, of, Observable, Subject } from 'rxjs';
import { BinanceService } from './bina... |
import { CodeCharacter, CodeLetter, codeLetters } from "./cryptoTypes";
import { words } from "./words";
export type cryptoMode = "encode" | "decode";
/**
* Split a message string into an array of CodeCharacters
* @param message
*/
export const splitIntoCodeCharacters = (message: string): CodeCharacter[] => {
re... |
require('./CharacterRoute.css');
import * as React from 'react';
import { ReactNode } from 'react';
import { Link } from 'react-router-dom';
import { CharacterModelFactory } from '../../models/CharacterModelFactory';
import { CharacterRouteProps } from './CharacterRouteProps';
import { CharacterRouteState } from './C... |
<reponame>DoctorPoor/vscode<filename>src/vs/editor/common/model/mirrorTextModel.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for lic... |
// disable "no-unused" for this file, to keep hooks consistent
// tslint:disable:no-unused
import type { Aggregate, Query } from 'mongoose';
import { DecoratorKeys } from './internal/constants';
import { assertion, getName } from './internal/utils';
import { logger } from './logSettings';
import type { DocumentType, E... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ITelemetryProperties } from "@fluidframework/common-definitions";
import { DriverError, DriverErrorType } from "@fluidframework/driver-definitions";
import { TelemetryLogger } from "@fluidframework/telemetr... |
import { isAlive, isStateTreeNode } from 'mobx-state-tree'
import { objectFromEntries } from '../util'
import { serializeAbortSignal } from './remoteAbortSignals'
import PluginManager from '../PluginManager'
import { AnyConfigurationModel } from '../configuration/configurationSchema'
export interface WorkerHandle {
... |
<filename>src/components/abstract-select.ts<gh_stars>100-1000
import { UIProperties } from './abstract-ui';
// Copyright 2018 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
//... |
<gh_stars>1-10
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { useRecoilValue } from 'recoil';
import { act, HookResult } from '@botframework-composer/test-utils/lib/hooks';
import jwtDecode from 'jwt-decode';
import { userDispatcher } from '../user';
import { UserSettingsPayload }... |
import * as React from "react";
import { connect } from 'react-redux';
// @ts-ignore
import { GetPostAction } from 'Actions/PostAction';
// @ts-ignore
import { Footer } from 'Layouts/Footer/Footer';
// @ts-ignore
import { Navbar } from 'Layouts/Navbar/Navbar';
// @ts-ignore
import { Loading } from 'Layouts/Loading... |
import * as L from "leaflet";
import {
getSum,
lengthUnits,
htmlTableRow,
plural,
featureStyles,
} from "./util";
import { BaseMap } from "./mapClasses/BaseMap";
import { IncidentInfo } from "./interfaces";
/**
* @param event
*/
function eventTooltip(event: IncidentInfo): string {
const listify = (str: s... |
import {
AfterViewInit,
Component,
Input,
OnChanges,
OnDestroy,
SimpleChanges,
OnInit
} from "@angular/core";
import { NbThemeService } from "@nebular/theme";
import { takeWhile } from "rxjs/operators";
import { LayoutService } from "../../../../@core/utils/layout.service";
import { ChartOptions, ChartTyp... |
<filename>packages/backend/src/workers/staker.ts
import crypto from 'crypto'
import {
QueryBalanceResponse,
RawTxRequest,
RpcError,
StakingStatus,
typeGuard,
} from '@pokt-network/pocket-js'
import Application from '../models/Application'
import PreStakedApp, { IPreStakedApp } from '../models/PreStakedApp'
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.