text stringlengths 9.82k 47.8k |
|---|
import BNMax from 'src/utils/BNMax'
import BNMin from 'src/utils/BNMin'
import Logger from 'src/logger'
import Store from './Store'
import chainSlugToId from 'src/utils/chainSlugToId'
import getBumpedBN from 'src/utils/getBumpedBN'
import getBumpedGasPrice from 'src/utils/getBumpedGasPrice'
import getProviderChainSlug ... |
<gh_stars>1-10
'use strict';
import * as _ from 'lodash';
import { Sequelize } from '../..';
import * as Errors from '../errors/index';
import { Model } from '../model';
import { IInclude } from '../model/iinclude';
import Op from '../operators';
import { Transaction } from '../transaction';
import { Utils } from '../... |
import { BlazorDotnetObject, Browser, Animation, select, remove } from '@syncfusion/ej2-base';
import { formatUnit, attributes, EventHandler, isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base';
import { AnimationModel, closest, setStyleAttribute, createElement, prepend } from '@syncfusion/ej2-base';... |
// Mikumark V3.0
// Markdown Parser
// 2019.10 Refactored in TypeScript
// Arch:
// MD → [Parser] → MarkdownDocument object(HTML included) → [Painter] → Web page
// Document:
/*
#!title: 标题
#!authors: 作者1, 作者2, ...
#!date: 2019-10-11
#!cover: 封面图片链接
#!type: 类型
#!tags: 标签1, 标签2, ...
#!{macro1}: 单行Markdown脚本
#!content... |
import { BN } from 'bn.js'
import cbor from 'cbor'
import * as abi from 'ethereumjs-abi'
import * as util from 'ethereumjs-util'
import { FunctionFragment, ParamType } from 'ethers/utils/abi-coder'
import TruffleContract from 'truffle-contract'
import linkToken from './LinkToken.json'
import { assertBigNum } from './ma... |
import gql from 'graphql-tag';
import * as React from 'react';
import * as ApolloReactCommon from '@apollo/react-common';
import * as ApolloReactComponents from '@apollo/react-components';
import * as ApolloReactHoc from '@apollo/react-hoc';
import * as ApolloReactHooks from '@apollo/react-hooks';
export type Maybe<T> ... |
<filename>src/reactions.ts<gh_stars>1-10
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS205: Consider reworking code to avoid use of IIFEs
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/mast... |
<filename>src/KeyValueEditor/Data.ts
import fz from 'fz';
export enum DataActionType {
SET_KEY_AT_INDEX = 'KVDATA__SET_KEY_AT_INDEX',
SET_VAL_AT_INDEX = 'KVDATA__SET_VAL_AT_INDEX',
REBASE = 'KVDATA_REBASE',
RESET = 'KVDATA_RESET',
APPEND_ENTRY = 'KVDATA__APPEND_ENTRY',
APPLY_FILTER = 'KVDATA__APPLY_FILTER'
}
in... |
<reponame>drewcoo/car_wars
import _ from 'lodash'
import { INCH } from '../utils/constants'
import Dice from '../utils/Dice'
import Log from '../utils/Log'
import Character from './Character'
import Vehicle from './Vehicle'
class Control {
static table =
// prettier-ignore
[
['safe', 'safe', 'safe', 's... |
<filename>src/L5/L5-ast.ts
// ===========================================================
// AST type models for L5
// L5 extends L4 with:
// optional type annotations
import { join, map, zipWith } from "ramda";
import { Sexp, Token } from 's-expression';
import { isCompoundSExp, isEmptySExp, isSymbolSExp, make... |
/** @module PaginationEmbed */
import {
DMChannel,
Emoji,
Message,
MessageReaction,
NewsChannel,
Snowflake,
StringResolvable,
TextChannel,
User
} from 'discord.js';
import { EventEmitter } from 'events';
import { Embeds } from '../Embeds';
import { FieldsEmbed } from '../FieldsEmbed';
/** @ignore */... |
<reponame>exlskills/spf-server<gh_stars>1-10
import * as express from 'express';
import config from '../config'
import {viewDashboard} from '../controllers/dashboard';
import {serveCoursesSitemap, viewCourses, viewCoursesTopicPage} from '../controllers/courses';
import {Request, Response, NextFunction} from 'express';
... |
<gh_stars>0
/// <reference path="readerSetup.io.ts" />
/// <reference path="../js/libsynphony/jquery.text-markup.d.ts" />
/// <reference path="../js/libsynphony/bloom_lib.d.ts" />
/// <reference path="../../lib/localizationManager.ts" />
/// <reference path="../../lib/jquery.d.ts" />
/// <reference path="../../lib/jque... |
<reponame>illuminati360/alt-hanzi<filename>src/eng.ts
import fs from 'fs';
import path from 'path';
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
import { CellData, GridMenu } from './GUI/gridMenu';
import { EngDatabase, levelData } from './database';
import { Vector2 } from '@microsoft/mixed-reality-e... |
type Function1<A, R> = (a: A) => R
type Function2<A, B, R> = (a: A, b: B) => R
type Function3<A, B, C, R> = (a: A, b: B, c: C) => R
type Predicate1<A> = Function1<A, boolean>
type Predicate2<A, B> = Function2<A, B, boolean>
type Predicate3<A, B, C> = Function3<A, B, C, boolean>
export function add(a: number): (b: num... |
export interface RecursiveMap<K, V> extends Map<K, RecursiveMap<K, V> | V> {
}
export interface RecursiveEntries<K, V> extends Array<[K, RecursiveEntries<K, V> | V]> {
}
export declare type CompositeMapCopyMethod = "on-write" | "keys";
export interface CompositeMapOptions {
/**
* Indicates when CompositeMap ke... |
import Formatter from '../core/Formatter';
import Tokenizer from '../core/Tokenizer';
import type { StringPatternType } from '../core/regexFactory';
import { EOF_TOKEN, Token } from '../core/token';
import { dedupe } from '../utils';
/**
* Priority 5 (last)
* Full list of reserved functions
* distinct from Keywords... |
<reponame>idokutela/HTTPStatusCodes<filename>HTTPStatusCodes.ts
// codes and meanings from https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
/**
* The server has received the request headers and the client should
* proceed to send the request body (in the case of a request for
* which a body needs to be sent;... |
import * as path from 'path';
import {CodeLens, commands, DecorationOptions, DecorationRangeBehavior, DecorationRenderOptions, ExtensionContext, OverviewRulerLane, Position, Progress, ProgressLocation, ProviderResult, QuickPickItem, Range, StatusBarAlignment, TextDocument, TextEditor, TextEditorDecorationType, ThemeCol... |
import Setting from 'lib/models/Setting';
import Logger from 'lib/Logger';
import shim from 'lib/shim';
import uuid from 'lib/uuid';
const { ltrimSlashes } = require('lib/path-utils.js');
const { Database } = require('lib/database.js');
const Folder = require('lib/models/Folder');
const Note = require('lib/models/Note... |
import { Router } from '@angular/router';
import { HttpApi } from './../../shared/do-service/http-api.service';
import { TreeNode, SelectItem, MultiSelectModule, InputTextModule } from 'primeng/primeng';
import { DoTreeService } from './../../shared/do-service/do-tree.service';
import { Component, OnInit, NgZone } from... |
import EmbedBuilder from "./EmbedBuilder";
import type ExtendedMessage from "./ExtendedMessage";
import type { BitData } from "./@types/MariaDB";
import type Command from "@cmd/Command";
import TempFiles from "@handlers/TempFiles";
import Yiffy from "@req/Yiffy";
import CommandError from "@cmd/CommandError";
import typ... |
import ColorMap from './colormap';
import { ColorValues } from './constants';
export const namedColors = new ColorMap<string, ColorValues>();
namedColors.setMany('aliceblue', [240, 248, 255, 208, 1, 0.97, 1], '#f0f8ff');
namedColors.setMany('antiquewhite', [250, 235, 215, 34, 0.78, 0.91, 1], '#faebd7');
namedColors.s... |
import React, { useState, useEffect } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Select from 'react-select';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Radio from '@material-ui/core/Radio';
import RadioGroup fro... |
import { Point, Rectangle } from '../geometry'
import { globals } from '../option'
import { State } from '../core/state'
import { DirectionMask } from '../enum'
import { segment } from './segment'
const orthBuffer = 10
const orthPointsFallback = true
const dirVectors = [
[-1, 0],
[0, -1],
[1, 0],
[0, 1],
[-... |
<filename>src/utils/rttc.ts
import * as babel from '@babel/types'
import * as es from 'estree'
import { cloneDeep } from 'lodash'
import { TypeError, UndefinedTypeError } from '../errors/errors'
import { RuntimeSourceError } from '../errors/runtimeSourceError'
import {
Environment,
RuntimeAny,
RuntimeBoolean,
R... |
<filename>target/flow-frontend/data-generator.ts
const chanceImport = require('chance');
const options: any = {};
options.BookGenre = [
"Children's books",
'Best sellers',
'Romance',
'Mystery',
'Thriller',
'Sci-fi',
'Non-fiction',
'Cookbooks',
'Dystopian',
'Horror',
'Health',
'History',
'Trave... |
import { KeyCombination } from 'insomnia-common';
import path from 'path';
import { unreachableCase } from 'ts-assert-unreachable';
import appConfig from '../../config/config.json';
import { version } from '../../package.json';
import { getDataDirectory, getPortableExecutableDir } from './electron-helpers';
const env... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
import {EventService} from "../eventService";
import {
AgEvent, Events, RowDataChangedEvent, RowEvent, RowGroupOpenedEvent, RowSelectedEvent,
SelectionChangedEvent
} from "../events";
import {GridOptionsWrapper} from "../gridOptionsWrapper";
import {SelectionController} from "../selectionController";
import {Co... |
/*
* Copyright 2017-18 IBM 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
*
* Unless required by applicable law or agreed ... |
/**
* Virtual DOM patching algorithm based on Snabbdom by
* <NAME> (@paldepind)
* Licensed under the MIT License
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
*
* Modified for Stencil's renderer and slot projection
*/
import * as d from '../../declarations';
import { BUILD } from '@app-data';
import... |
<reponame>matt-from-uk/scrypted
import { MixinProvider, ScryptedDeviceType, ScryptedInterface, MediaObject, VideoCamera, MediaStreamOptions, Settings, Setting, ScryptedMimeTypes, FFMpegInput, RequestMediaStreamOptions } from '@scrypted/sdk';
import sdk from '@scrypted/sdk';
import { once } from 'events';
import { Sett... |
import { ErrorReplyError } from "../errors.ts";
import { Redis } from "../redis.ts";
import { parseXId } from "../stream.ts";
import { delay } from "../vendor/https/deno.land/std/async/mod.ts";
import {
assert,
assertEquals,
assertNotEquals,
assertThrowsAsync,
} from "../vendor/https/deno.land/std/testing/asser... |
<reponame>estebanrfp/avatarmaker
// import html2canvas from 'html2canvas'
// import Canvg from 'canvg'
let skins: string[] = ['ffdbb4', 'edb98a', 'fd9841', 'fcee93', 'd08b5b', 'ae5d29', '614335']
let eyes: string[] = ['default', 'dizzy', 'eyeroll', 'happy', 'close', 'hearts', 'side', 'wink', 'squint', 'surprised', 'w... |
// Volume object abstracts user from volume components nexus and
// replicas and implements algorithms for volume recovery.
import assert from 'assert';
import * as _ from 'lodash';
import { Replica } from './replica';
import { Child, Nexus, Protocol } from './nexus';
import { Pool } from './pool';
import { Node } fro... |
<gh_stars>0
import fs from 'fs'
import path from 'path'
import { performance } from 'perf_hooks'
import _debug from 'debug'
import colors from 'picocolors'
import type { BuildOptions as EsbuildBuildOptions } from 'esbuild'
import { build } from 'esbuild'
import { init, parse } from 'es-module-lexer'
import type { Resol... |
<filename>src/types.ts
import { ViteSSGContext } from 'vite-ssg'
import { EventHook } from '@vueuse/core'
export type UserModule = (ctx: ViteSSGContext<false>) => void
export type EntityType = 'Entry' | 'Asset'
export type TagVisibility = 'private' | 'public'
export interface Upload {
sys: {
id: string
typ... |
<filename>src/controllers/System.ts
/* eslint-disable camelcase */
/* eslint-disable no-underscore-dangle, no-param-reassign, class-methods-use-this */
import Action, { UserType } from "@BrainlyAction";
import type {
MarketConfigDataType,
RankDataType,
} from "@BrainlyReq/GetMarketConfig";
import locale from "@root... |
<filename>scripts/deploy.ts
import hre, { ethers } from 'hardhat';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/dist/src/signer-with-address';
import { readFileSync, writeFileSync } from 'fs';
import { BigNumber, Contract } from 'ethers';
type Context = {
operator: SignerWithAddress,
deployedCo... |
<reponame>Julusian/tv-automation-server-core<gh_stars>0
import * as SuperTimeline from 'superfly-timeline'
import * as _ from 'underscore'
import { PieceUi, PartUi } from '../ui/SegmentTimeline/SegmentTimelineContainer'
import { Timecode } from 'timecode'
import { Settings } from '../../lib/Settings'
import {
SourceLa... |
<reponame>psnwd/Fire<filename>src/commands/Utilities/user.ts
import { Ban } from "@aero/ksoft";
import { ApplicationCommandMessage } from "@fire/lib/extensions/appcommandmessage";
import { FireGuild } from "@fire/lib/extensions/guild";
import { FireMember } from "@fire/lib/extensions/guildmember";
import { FireMessage ... |
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
import { SmoSystemGroup, SmoTextGroup, SmoScoreModifierBase, SmoPageLayout, SmoLayoutManager, SmoFormattingManager } from './scoreModifiers';
import { SmoSystemStaff, SmoSystemStaffParams } from './systemStaff';
import { SmoMusic } ... |
<filename>src/instrumenter/state_vars.ts
import {
ArrayTypeName,
assert,
Assignment,
ASTNode,
Conditional,
ContractDefinition,
ContractKind,
DataLocation,
ElementaryTypeName,
ErrorDefinition,
EventDefinition,
Expression,
ExternalReferenceType,
FunctionCall,
Fu... |
import { registerTheme } from "@antv/g2/esm/core";
import { isContrastColorWhite } from '@antv/g2/esm/util/color';
import { createThemeByStyleSheet } from '@antv/g2/esm/theme/util/create-by-style-sheet';
import { Types } from '../common/types';
import normalStyle from './normal.style';
import { merge, pxToNumber } from... |
/**
* Copyright 2015 CANAL+ Group
*
* 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 agreed t... |
import asa = require("@akashic-extension/akashic-animation");
/**
* asa.Actor機能拡張を目的としたクラス群
*/
export namespace asaEx {
/** asapjのアセット名→asa.Resourceのマップの型 */
export type ResourceMap = { [key: string]: asa.Resource };
/** アニメ名→ボーン名のマップの型 */
export type AnimBoneTable = { [key: string]: string };
/** asapjのアセット名→A... |
<reponame>pkmn/stats
import {Generation, ID, toID, PokemonSet, StatName, TypeName} from '@pkmn/data';
import * as util from './util';
// TODO: Where does this constant come from? (ie. rename!)
const LOG3_LOG2 = Math.log(3) / Math.log(2);
export const Classifier = new class {
classifyTeam(gen: Generation, team: Arra... |
import {dim2, vec2, rect} from "../core/math"
import {refEquals} from "../core/data"
import {Noop, NoopRemover, Remover, PMap, getValue} from "../core/util"
import {Mutable, Source, Subject, Value} from "../core/react"
import {PointerInteraction} from "../input/interact"
import {Control, Element, Host} from "./element"... |
<gh_stars>1-10
import * as THREE from "three";
import { Noise } from "@dcl/noise-utils";
import { BufferGeometryUtils } from "three/examples/jsm/utils/BufferGeometryUtils.js";
import * as math from "./math";
import { utils } from "./utils";
import * as voxels_shader from "./voxels_shader";
import * as voxels_tool from ... |
import {
Context,
verifyAccess,
getIp,
getNowUtc,
createAndSendException,
sendException,
sendSfxCertificateLink,
sendUnlimitedCertificatesLink,
sendCertificate,
sendLasVegasActivationAndReservationReceipt,
sendLasVegasActivationOnlyReceipt,
sendLasVegasReservationOnlyReceipt
} from '../../utils'... |
import { InstanceProvider } from "../../../instance-provider/instance-provider";
import { IAutoEasingMethod } from "../../../math/auto-easing-method";
import { copy2, copy4, dot2, scale2, Vec, Vec2 } from "../../../math/vector";
import { fontRequest, IFontResourceRequest } from "../../../resources";
import { KernedLayo... |
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import React, { ChangeEvent, useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import {
AtMostRentPeriodOptions,
DEFAULT_LIST_MAX_FUTURE_PERIOD,
... |
// tslint:disable:no-bitwise
import { ColorRGBA64 } from "./color-rgba-64";
import { normalize } from "./math-utilities";
export const namedColors: object = {
aliceblue: new ColorRGBA64(0.941176, 0.972549, 1, 1),
antiquewhite: new ColorRGBA64(0.980392, 0.921569, 0.843137, 1),
aqua: new ColorRGBA64... |
/// <reference path="probe-image-size.d.ts" />
/// <reference path="amp-toolbox-cache-url.d.ts" />
import {readFileSync} from "fs";
import {resolve, URL} from "url";
// tslint:disable-next-line:no-var-requires
const validator = require("amphtml-validator").newInstance(
// Let's not fetch over the network on every ru... |
import React, { useContext, useState } from 'react';
import {
Avatar,
Button,
Card,
Col,
Modal,
Row,
Tooltip,
Collapse,
Tree,
notification,
Dropdown,
Menu,
Form,
Input,
Radio,
Upload,
Empty,
} from 'antd';
import { useHistory, useParams } from 'react-router-dom';
import styled from 'st... |
<reponame>Kvis-Dev/vimium-plus
type TextElement = HTMLInputElement | HTMLTextAreaElement;
interface ElementWithHash extends HTMLElement {
onclick (this: ElementWithHash, event: MouseEvent | null, hash?: "hash"): void;
}
interface ElementWithDelay extends HTMLElement {
onclick (this: ElementWithDelay, event?: MouseE... |
import {
Box,
Button,
Input,
Label,
Modal,
styled,
theme,
Toast,
Tooltip,
} from "@cabindao/topo";
import React, { useCallback, useEffect, useState } from "react";
import axios from "axios";
import { useRouter } from "next/router";
import {
bytes32ToIpfsHash,
getStampContract,
ipfsAdd,
resolve... |
<reponame>mooyg/hydralite
/********************************************************************************
* Copyright (C) 2020 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.o... |
import { IconDefinition, IconLookup, IconName, IconPrefix, IconPack } from '@fortawesome/fontawesome-common-types';
export { IconDefinition, IconLookup, IconName, IconPrefix, IconPack } from '@fortawesome/fontawesome-common-types';
export const prefix: IconPrefix;
export const fas: IconPack;
export const faAddressBook:... |
/*
* Deepkit Framework
* Copyright (C) 2021 Deepkit UG, <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
*
* You should have received a copy of the MIT License along with this program.
*/
import { ClassSchema, ExtractClassDefinition, Field... |
import * as React from 'react'
import * as Kb from '../../../common-adapters'
import * as Styles from '../../../styles'
import * as RPCTypes from '../../../constants/types/rpc-gen'
import * as Constants from '../../../constants/teams'
import * as Types from '../../../constants/types/teams'
import * as Container from '.... |
<reponame>shygoo/pj64d-docs
// nodejs buffer defined in duktape
declare interface Buffer {}
declare interface MemTypeConstructor {}
declare class DrawingContext {
drawtext(x: number, y: number, text: string): void;
measuretext(text: string): TextMetrics;
drawimage(dx: number, dy: number, image: N64Image, ... |
<filename>src/app/npm-ui/npm-ui.component.ts
import { Component, OnInit, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { AmexioTabComponent } from 'amexio-ng-extensions';
import { AmexioGridLayoutService, GridConfig, GridConstants} from "amexio-ng-extensions";
import { ThrowSt... |
<gh_stars>10-100
import { Currencies, OffersData, TradesData, Depth, Currency, Interval, HighLowOpenClose,
Markets, Offers, Offer, BisqTrade, MarketVolume, Tickers, Ticker, SummarizedIntervals, SummarizedInterval } from './interfaces';
const strtotime = require('./strtotime');
class BisqMarketsApi {
private crypt... |
<filename>src/coreHandler.ts<gh_stars>1-10
import { CoreConnection,
CoreOptions,
PeripheralDeviceAPI as P,
DDPConnectorOptions,
PeripheralDeviceAPI
} from '@sofie-automation/server-core-integration'
import {
DeviceType,
CasparCGDevice,
DeviceContainer,
HyperdeckDevice,
QuantelDevice,
MediaObject
} from 'tim... |
<gh_stars>0
/**
* Types.ts
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Type definitions for ReactXP framework.
*/
import * as React from 'react';
import * as RX from './Interfaces';
export { default as SubscribableEvent, SubscriptionToken } from 'subscribableevent... |
<gh_stars>1-10
/**
* A library for common manipulations of `NoteSequence`s.
*
* @license
* Copyright 2018 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... |
export module InteractiveDataDisplay {
//Chart Viewer
export interface ViewState {
[name: string]: any;
}
export interface Titles {
[seriesName: string]: string;
}
export interface PlotInfo {
kind: string;
displayName: string;
titles?: Titles;
[pro... |
import React from 'react';
import _ from 'lodash';
import { WebsiteRegistry } from '../../../../websites/website-registry';
import DefaultFormSection from '../form-sections/DefaultFormSection';
import SubmissionService from '../../../../services/submission.service';
import SubmissionUtil from '../../../../utils/submiss... |
<reponame>gbd-consult/gbd-websuite
import * as ol from 'openlayers';
import * as proj4 from 'proj4';
import * as types from '../types';
import * as api from '../core/api';
import * as lib from '../lib';
import * as layer from './layer';
let layerTypes = {
'box': layer.BoxLayer,
'group': layer.GroupLayer,
... |
<gh_stars>1-10
// load modules from static linker filesystem.
if (process.argv.indexOf("--no-static-loader") === -1 && process.env["no-static-loader"] === undefined) {
require('../static-loader.js').load(`${__dirname}/../static_modules.fs`)
}
// Ensure that if we're running in an electron process, that things will w... |
<reponame>BuddyrecruitAdmin/buddyrecruit-frontend<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
import * as _ from 'lodash';
import { NbComponentStatus, NbGlobalPhysicalPositi... |
<reponame>gitter-badger/node-level<filename>src/Database.ts
/**
* Copyright (c) 2018-present, heineiuo.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import path from 'path'
import assert from 'assert'
import MemTable from './MemTa... |
<gh_stars>0
import GameBase from './game-base';
import GameResult, { ResultType } from './game-result';
import Position from './position';
import { GameContent } from './game-content';
import { DiscordMessage, DiscordUser, DiscordEmbed, DiscordMessageReactionAdd, DiscordInteraction, DiscordMessageActionRow, DiscordSele... |
<filename>lib/renderers/canvas.ts
import { Renderer } from "./renderer";
import { Cursor } from "../cursor";
import {
RenderInstructions,
TimelineEventInteraction,
InternalTimelineEvent,
TimelineZoomEvent
} from "../format";
import { scaleLinear, ScaleLinear } from "d3";
import { binarySearch } from "../search"... |
import { isArray } from '../common/types';
import { Style, ParseMode } from '../public/core';
import { getCharacterMetrics } from './font-metrics';
import { svgBodyToMarkup, svgBodyHeight } from './svg-box';
import { Mode } from './modes-utils';
import { Context } from './context';
/*
* See https://tex.stackexchange... |
import { IExchangeConnector } from "../../deps.ts";
import { Action, InvestmentAdvice, AssetInfo, LogLevel } from "../../mod.ts"
import { FinancialCalculator } from "../utilities/financial-calculator.ts"
import { VFLogger } from "../utilities/logger.ts";
import { VoFarmStrategy } from "./vofarm-strategy.ts";
export i... |
<filename>src/spec-transform-auto-layout.ts
import * as utils from './utils/utils';
import {FormatterRegistry} from './formatter-registry';
import * as d3 from 'd3-scale';
import {
ChartSettings,
GPLSpec,
ScaleGuide,
SpecTransformer,
Unit,
UnitGuide
} from './definitions';
import {Plot} from './... |
/*
Copyright (c) 2017-2020 <NAME> Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to ... |
import {
createContext,
useContext,
useRef,
useEffect,
useCallback,
useMemo,
isValidElement,
// createElement,
Fragment,
Children,
} from 'react';
import { Action as NavigationType, parsePath } from 'history';
import type { History, Location, Path, To } from 'history';
/////////////////////////////... |
import UserConfig from "@models/User/UserConfig";
import AntiSpam from "@cmd/AntiSpam";
import WebhookStore from "@util/WebhookStore";
import BotFunctions from "@util/BotFunctions";
import GuildConfig from "@models/Guild/GuildConfig";
import ClientEvent from "@util/ClientEvent";
import EmbedBuilder from "@util/EmbedBui... |
import Head from "next/head";
import JinaClient, {AnyObject, fileToBase64, RawDocumentData, SimpleQueries, SimpleResults,} from "@jina-ai/jinajs";
import {Results} from "../components/Results";
import React, {useCallback, useEffect, useRef, useState} from "react";
import {Spinner} from "../components/Spinner";
import {... |
import { EventDispatcher } from '../events/EventDispatcher';
import { Event } from '../events/Event';
import { IOErrorEvent } from '../events/IOErrorEvent';
import { URLRequest } from '../net/URLRequest';
import { SoundLoaderContext } from './SoundLoaderContext';
import { SoundChannel } from './SoundChannel';
import {... |
/**
* GristDoc manages an open Grist document on the client side.
*/
// tslint:disable:no-console
import {AccessRules} from 'app/client/aclui/AccessRules';
import {ActionLog} from 'app/client/components/ActionLog';
import * as CodeEditorPanel from 'app/client/components/CodeEditorPanel';
import * as commands from 'a... |
import { Meteor } from 'meteor/meteor'
import { Random } from 'meteor/random'
import * as _ from 'underscore'
import { logger } from '../../logging'
import { Rundown, RundownHoldState, RundownId } from '../../../lib/collections/Rundowns'
import { Part, DBPart, isPartPlayable } from '../../../lib/collections/Parts'
impo... |
<gh_stars>10-100
import { Client, ObjectNode, QueryFetcher } from 'gqless';
import { useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
import {
CommonHookOptions,
CreateOptions,
defaultEmptyObject,
FetchPolicy,
Headers,
IS_BROWSER,
IState,
IStateReducer,
IVariables,
lazyInitialSta... |
import {TransOver} from './transover_utils'
import XRegExp from 'xregexp/src'
import {SerializedSearchResult} from '@altlab/types'
import {options} from "./options";
/// <reference path="html_loader.d.ts"/>
import popup from './popup.html'
import tatPopup from './tat_popup.html'
import Node = JQuery.Node;
// these scr... |
<reponame>bayesianmind/arcs
/**
* @license
* Copyright (c) 2017 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at... |
<filename>packages/layers/xyz-poi-tile/src/POILayer.ts
import { specifyTexture } from '@gs.i/utils-specify'
import { isDISPOSED } from '@gs.i/schema-scene'
import { Mesh, PointMaterial, Geom, Attr } from '@gs.i/frontend-sdk'
import { Color } from '@gs.i/utils-math'
import {
XYZTileManager,
TileRenderables,
TilePromi... |
<reponame>akashic-games/akashic-animation<filename>src/Skeleton.ts
import {AnimationHandlerParam} from "./AnimationHandlerParams";
import {Animation, CurveTie, Curve, KeyFrame} from "./AnimeParams";
import {Attachment} from "./Attachment";
import {AttrId} from "./AttrId";
import {Bone} from "./Bone";
import {Posture} f... |
<filename>packages/three-modules/src/loaders/MD2Loader.ts
import { Box3 } from "three/src/math/Box3";
import { FileLoader } from "three/src/loaders/FileLoader";
import { Loader } from "three/src/loaders/Loader";
import { Vector3 } from "three/src/math/Vector3";
import type { MD2LoaderParsedGeometry } from "./MD2Loader... |
<gh_stars>0
/*
* Copyright 2017-2018 IBM 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
*
* Unless required by applicable ... |
<gh_stars>1-10
import { firestore } from "firebase";
import _ from "lodash";
import RedPanda from "./index";
import QueryBuilder from "./QueryBuilder";
/**
* Validates data according to a defined schema
* @param data data to validate
* @param options joi options
* @param schema joi schema
* @throws error if valid... |
import * as vscode from 'vscode';
import { getQueryUnderCursor, SoqlQuery } from '../commands/soql';
import { ANTLRInputStream, CommonTokenStream, Token, ParserRuleContext } from 'antlr4ts';
import { ParseTreeWalker } from 'antlr4ts/tree';
import { SoqlLexer } from './grammars/soql/SoqlLexer';
import * as SoqlParser f... |
<filename>web/src/app/modules/views/main/editors/modules/graphical-editor/components/graphical-editor.component.ts<gh_stars>1-10
import { ChangeDetectionStrategy, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { mxgraph } from ... |
import * as GRID_TYPES from '../utils/constants/action.types';
import {
FETCH_TESTCASES_BY_TREE_ID_SUCCESS, UPDATE_FIND_ADD_GRID_SIZE_SUCCESS, FETCH_TREE_DATA_FOR_LOCAL_TREE,
UPDATE_TESTCASES_BY_TREE_ID_SUCCESS, FETCH_TREE_DATA
} from '../utils/constants/action.events';
import { TCR_GRID_COLUMNS, TCR_GRID_PAGINAT... |
import * as Ax from "./animaxe"
import * as Rx from "rx"
import * as types from "./types"
import * as zip from "./zip"
import * as Parameter from "./Parameter"
export * from "./types"
export var DEBUG_LOOP = false;
export var DEBUG_THEN = false;
export var DEBUG_IF = false;
export var DEBUG_EMIT = false;
export var DE... |
<filename>web/music-searcher.ts
// Copyright 2010 <NAME>.
// All rights reserved.
import {
$,
clamp,
commonStyles,
createShadow,
createTemplate,
getCoverUrl,
getCurrentTimeSec,
getDumpSongUrl,
handleFetchError,
smallCoverSize,
} from './common.js';
import { isDialogShown, showMessageDialog } from '... |
import React, { useState, useEffect, useCallback, useRef } from 'react'
import {
View,
StyleSheet,
SafeAreaView,
StatusBar,
Platform,
PermissionsAndroid,
} from 'react-native'
import AsyncStorage from '@react-native-async-storage/async-storage'
import { useDispatch, useSelector } from 'react-redux'
import C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.