text stringlengths 9.82k 47.8k |
|---|
// Tencent is pleased to support the open source community by making LuaPanda available.
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of th... |
import * as PIXI from 'pixi.js'
import { InternalRenderer } from '.'
import { colorToNumber, RADIANS_PER_DEGREE, HALF_PI, movePoint, parentInFront, clientPositionFromEvent, pointerKeysFromEvent } from './utils'
import { Node, Edge, NodeStyle, equals } from '../..'
import { interpolate } from '../../utils'
import { Circ... |
<filename>gl-matrix/gl-matrix-tests.ts
/// <reference path="gl-matrix.d.ts" />
// common
import {vec2, mat2, mat3, mat4, vec3, vec4, mat2d, quat} from "./gl-matrix";
var outVal: number;
var outBool: boolean;
var outStr: string;
let vecArray = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
let vec2A = ve... |
import * as THREE from 'three'
import * as React from 'react'
import { render, invalidate, applyProps, unmountComponentAtNode, renderGl } from './renderer'
import { TinyEmitter } from 'tiny-emitter'
import { NamedArrayTuple } from './three-types'
import { ReactThreeFiber } from '.'
import { RectReadOnly } from 'react-u... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as assert from 'assert'
import base64url from "base64url"
import {
Ciphertext,
EcdhSharedKey,
Signature,
PubKey as RawPubKey,
PrivKey as RawPrivKey,
G1Point,
G2Point,
encrypt,
decrypt,
sign,
hashLeftRight,
hash12,
hash4,
hash5,
verifySignature,
ge... |
<reponame>baeeq/pivot
import * as Q from 'q';
import { List, OrderedSet } from 'immutable';
import { Class, Instance, isInstanceOf, immutableEqual, immutableArraysEqual, immutableLookupsEqual } from 'immutable-class';
import { Duration, Timezone, minute, second } from 'chronoshift';
import { $, ply, r, Expression, Expr... |
import * as qlogschema from '@/data/QlogSchema01';
import * as tcpschema from './qlog_tcp_tls_h2';
interface TCPConnection {
qlog:qlogschema.ITrace,
DEBUG_originalEntries:Array<any>,
probable_url:string|undefined, // guessed from the HTTP/2 :authority header
TLSAppDataTrailerSize:number|undefined,
... |
import { VOther, chromeVer_, doc, createRegExp } from "./utils"
import { dimSize_ } from "./rect"
interface kNodeToType {
[kNode.TEXT_NODE]: Text
[kNode.ELEMENT_NODE]: Element
[kNode.DOCUMENT_NODE]: Document
[kNode.DOCUMENT_FRAGMENT_NODE]: DocumentFragment | ShadowRoot
}
export const DAC = "DOMActivate", MDW ... |
import * as React from 'react';
import { render } from 'react-dom';
import { List, Map, Set } from 'immutable';
import matchSorter from 'match-sorter';
import Downshift, { StateChangeOptions, ControllerStateAndHelpers } from 'downshift';
import { Mapping, Expansion, Message, Workspace, Either, Result, Pointer } from '... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import {
assembleError,
err,
FxError,
ok,
ProductName,
ProjectSettings,
Result,
SystemError,
UserError,
UserErrorOptions,
} from "@microsoft/teamsfx-api";
import {
checkNpmDependencies,
defaultHelpLink,
DependencyStatu... |
<reponame>bitcv/gsn
import BN from 'bn.js'
import Web3 from 'web3'
import { BlockTransactionString } from 'web3-eth'
import { EventData, PastEventOptions } from 'web3-eth-contract'
import { PrefixedHexString, TransactionOptions } from 'ethereumjs-tx'
import { toBN, toHex } from 'web3-utils'
import {
BlockNumber,
Tr... |
import React, { useState, useCallback, useEffect, useMemo } from 'react';
import { connect } from 'react-redux';
import { withRouter, useHistory, useParams } from 'react-router-dom';
import {
SwapOutlined,
LockOutlined,
UnlockOutlined,
RetweetOutlined,
} from '@ant-design/icons';
import * as RD from '@devexpe... |
import { gql, useApolloClient } from "@apollo/client";
import {
AspectRatio,
Box,
Button,
Center,
HStack,
Spinner,
Text,
useColorModeValue,
useToast,
VStack,
} from "@chakra-ui/react";
import type { ElementDataBlob, ZoomBlob } from "@clowdr-app/shared-types/build/content";
import... |
<reponame>Syjalo/hypixel-translators-bot
import { setTimeout } from "node:timers/promises"
import { GuildMember, MessageEmbed, Role, TextChannel } from "discord.js"
import { db, DbUser } from "./dbclient"
import { closeConnection, getBrowser, MongoLanguage, Stats } from "./util"
import { colors, ids } from "../confi... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
#!/usr/bin/env -S deno run --allow-net --allow-read --no-check
/* global Deno */
import {main as clientMain} from './client.mjs'
/* Public API (partially un/documented) */
export const contentTypes: Record<string, string> = Object.assign(Object.create(null), {
'.css': 'text/css',
'.gif': 'image/gif',
'.ht... |
<reponame>jrcollado1987/icenium-cli
///<reference path=".d.ts"/>
"use strict";
import minimatch = require("minimatch");
import path = require("path");
var options:any = require("./options");
import util = require("util");
import helpers = require("./helpers");
import os = require("os");
import MobileHelper = require(... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as path from 'path';
import {
BlockDevice,
BlockDeviceVolume,
} from '@aws-cdk/aws-autoscaling';
import {
IVpc,
SubnetSelection,
SubnetType,
} from '@aws-cdk/aws-ec2';
import {
Rol... |
import { POGGameEngineBase } from './game.engine.base'
enum ActionType {
MoveTo = 1,
CrossOver = 2,
Split = 3
}
/**
* A class to RegroupingAnimation
*/
class RegroupingAnimation {
public index: Array<number>;
public actionType: ActionType;
public actionParam: any;
const... |
import { Component, Input, OnDestroy, OnInit, OnChanges, SimpleChanges, ViewChild, ElementRef } from '@angular/core';
import { HyTheme, HyThemeService } from 'hyper';
import { Subscription } from 'rxjs';
import { ExplorerType, RespCommon } from 'sys/src-com/app/domain';
import { LANGUAGE_TYPE, STATUS_CODE } from 'sys/s... |
/// <reference path='../typings/node/node.d.ts' />
'use strict';
import * as td from './td';
import * as assert from 'assert';
type JsonObject = td.JsonObject;
type JsonBuilder = td.JsonBuilder;
import * as azureSearch from "./azure-search"
import * as parallel from "./parallel"
var logger: td.AppLogger;
var artI... |
<gh_stars>0
import BN from 'bn.js';
import Big from 'big.js';
import { getLiquidity } from '~utils/pool';
import {
ONLY_ZEROS,
percentLess,
scientificNotationToString,
toNonDivisibleNumber,
toPrecision,
toReadableNumber,
} from '../utils/numbers';
import {
executeMultipleTransactions,
near,
ONE_YOCT... |
<gh_stars>1-10
/*
* Copyright © 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified... |
// src/components/CommitInfo/CommitInfo.tsx
import React from 'react';
import {
span,
formatDiff,
createCalendar,
CalendarMouseEventHandler,
CalendarElement,
Commit,
CommitFile,
} from '../CommitParser/parse-diff';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
import Edit... |
<gh_stars>0
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-var-requires */
import { GameBase, IAPGameState, IClickResult, IIndividualState, IValidationResult } from "./_base";
import { APGamesInformation } from "../schemas/gameinfo";
import { APRenderRep } from "@abstract... |
import React, { useEffect, useLayoutEffect, useState } from 'react'
import { history } from 'umi';
import {
Button, Table, Modal,
Input, message, Form, Card,
Upload, Dropdown, Popconfirm,
Popover, Tree
} from 'antd'
import { FormInstance } from 'antd/lib/form'
import {
UploadOutlined, FileAddOutlined,
Share... |
<reponame>otya128/web-bml<filename>client/resource.ts<gh_stars>100-1000
import { ComponentPMT, MediaType, ModuleListEntry, ProgramInfoMessage, ResponseMessage } from "../server/ws_api";
import { Indicator, IP } from "./bml_browser";
type Module = {
moduleId: number,
files: ReadonlyMap<string | null, CachedFile... |
/// <reference path="chai.d.ts" />
var expect = chai.expect;
declare var err: Function;
function chaiVersion() {
expect(chai).to.have.property('version');
}
function assertion() {
expect('test').to.be.a('string');
expect('foo').to.equal('foo');
}
function _true() {
expect(true).to.be.true;
expec... |
<filename>y2020/www/field_handler.ts
import * as configuration from 'org_frc971/aos/configuration_generated';
import * as web_proxy from 'org_frc971/aos/network/web_proxy_generated';
import {Connection} from 'org_frc971/aos/network/www/proxy';
import * as flatbuffers_builder from 'org_frc971/external/com_github_google_... |
/**
* this module is for normalizing demandware data to standardized data
*/
import jwtdecode from 'jwt-decode';
import { CommerceTypes as FSCommerceTypes } from '@brandingbrand/fscommerce';
import { ExtendedProductItem } from './Types';
// @ts-ignore - AxiosResponse response needs to be imported since FSNetworkRespo... |
<filename>example/volume_render2.ts
import {NrrdLoader, ENrrdDataArrayType} from '../src/loaders/nrrd_loader';
import { THREE, glMatrix } from '../src/3rd';
import { Volume } from '../src/volume/volume';
import { ArcballCamera } from '../src/camera/arcball_camera';
import { Controller } from '../src/controller/webgl_u... |
<filename>packages/core/src/stylable-transformer.ts
import { basename } from 'path';
import * as postcss from 'postcss';
import postcssValueParser from 'postcss-value-parser';
import isVendorPrefixed from 'is-vendor-prefixed';
import cloneDeep from 'lodash.clonedeep';
import type { FileProcessor } from './cached-proce... |
import {
DEFAULT_SPLITER,
DEFAULT_FONT_SIZE,
DEFAULT_FONT_WEIGHT,
DEFAULT_FONT_FAMILY,
PIVOT_CELL_PADDING,
PIVOT_CELL_BORDER,
PIVOT_LINE_HEIGHT,
PIVOT_MAX_CONTENT_WIDTH,
PIVOT_CHART_ELEMENT_MIN_WIDTH,
PIVOT_CHART_ELEMENT_MAX_WIDTH,
PIVOT_CHART_METRIC_AXIS_MIN_SIZE,
PIVOT_CHART_POINT_LIMIT,
PIV... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>src/runtime/api-channel.ts<gh_stars>0
/**
* @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 r... |
// Inspired by https://github.com/jwasilgeo/Leaflet.Canvas-Flowmap-Layer
import TWEEN from '@tweenjs/tween.js';
import L from 'leaflet';
import { cleanObject } from '@waldur/core/utils';
// layer source code
const canvasRenderer = L.canvas();
export const CanvasFlowmapLayer: any = L.GeoJSON.extend({
options: {
... |
<reponame>BitHaru/WebWallet
import { Injectable } from '@angular/core';
import * as blake from 'blakejs';
import { BigNumber } from 'bignumber.js'
const nacl = window['nacl'];
const account_letters = '13456789abcdefghijkmnopqrstuwxyz'.split('');
@Injectable({
providedIn: 'root'
})
export class UtilService {
const... |
import { IMatrixJSON, Matrix } from './matrix';
import { RandomMatrix } from './matrix/random-matrix';
import { Equation } from './matrix/equation';
import { sampleI } from './matrix/sample-i';
import { maxI } from './matrix/max-i';
import { softmax } from './matrix/softmax';
import { copy } from './matrix/copy';
impor... |
<filename>src/ical.ts
import fs from 'fs';
import axios from 'axios';
/* eslint-disable max-depth, max-params, no-warning-comments, complexity */
const { v4: uuid } = require('uuid');
const rrule = require('rrule').RRule;
import moment = require('moment-timezone');
function text(t = '') {
return t
.rep... |
// Copyright 2016-2018, 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
//
// Unless required by applicable law or... |
import {Constructor} from "../../util";
import {DOMException} from "../../DOMException";
import * as dom from '../../dom';
import {
comparePoints,
getDocument,
getNodeIndex, getNodeLength,
getRootContainer,
isCharacterDataNode,
isOrIsAncestorOf,
splitDataNode,
DomPosition
} from "../../d... |
<reponame>Azure-Samples/azure-maps-layer-legend
import * as azmaps from 'azure-maps-control';
import { OgcMapLayer } from '../internal/TypingsOverrides';
import { CategoryLegendItem, CategoryLegendType, ColorStop, GradientLegendType, ImageLegendType, LegendControl, LegendType } from '../control';
import { Utils } from ... |
export class Person {
id: string;
gender: string;
first_name: string;
last_name: string;
salary: number;
bonus: number;
total: number;
static async findOne(id: number): Promise<Person> {
return new Promise((res) => {
for (let p of allData) {
if (p.id ... |
<reponame>msaglJS/msagl-js
import {String} from 'typescript-string-operations'
import {LayerCalculator} from './layerCalculator'
import {LongestPathLayering} from './longestPathLayering'
import {
BasicGraphOnEdges,
mkGraphOnEdgesN,
} from '../../../structs/basicGraphOnEdges'
import {CancelToken} from '../../../util... |
/**
* Routines for building UI
* @module ui
**/
import {ElementOptions, IndexPredicate} from './src/const';
import {Viewer} from './src/viewer';
import {VirtualView} from './src/view';
import {Accordion, Dialog, InputBase, Menu, TabControl, TreeViewNode, Widget, RangeSlider} from './src/widgets';
import {toDart, to... |
<reponame>js-ts/pipeline-editor<gh_stars>1-10
/**
* @license
* Copyright 2022 <NAME>
* SPDX-License-Identifier: Apache-2.0
* @author <NAME> <<EMAIL>>
* @copyright 2022 <NAME> <<EMAIL>>
*/
import {
ArgumentType,
ComponentSpec,
StringOrPlaceholder,
isContainerImplementation,
isGraphImplementation... |
declare var OverrideOriginalUrl: string;
function RoutePath( path: string, templateUrl: string, controller: any, menuTitle: string, role: string = null )
{
if( path[0] !== '/' )
path = "/" + path;
this.path = path;
this.templateUrl = templateUrl;
this.controller = controller;
this.menuTi... |
<filename>base/Window.ts
import * as numbers from "./magic_numbers";
import {PageIndicator} from "./support_menus/PageIndicator";
import * as utils from "./utils";
export type TextObj = {
text: Phaser.BitmapText;
shadow: Phaser.BitmapText;
right_align: boolean;
initial_x: number;
text_bg?: Phaser.G... |
<filename>src/ts/default-picker.ts
import {ColorPicker} from "./model/colorpicker";
import {IOptions} from "./interface/options";
import {Color} from "./model/color";
import {TsDom} from "./model/tsdom";
const nearestColor = require('nearest-color');
class DefaultPicker extends ColorPicker {
private dragObject: an... |
<reponame>JBC-AI/BotFramework-Composer
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import fs from 'fs';
import { getNewDesigner } from '@bfc/shared';
import {
FileInfo,
DialogInfo,
LgFile,
LuFile,
dialogIndexer,
lgIndexer,
luIndexer,
createSingleMessage,
} from '@bfc/ind... |
import mapSeries from 'p-map-series';
import semver from 'semver';
import type { AspectLoaderMain } from '@teambit/aspect-loader';
import { difference } from 'ramda';
import { TaskResultsList, BuilderData, BuilderAspect } from '@teambit/builder';
import { readdirSync } from 'fs-extra';
import { resolve, join } from 'pa... |
<reponame>HanaPearlman/node-mongodb-native
import Denque = require('denque');
import { EventEmitter } from 'events';
import { ReadPreference, ReadPreferenceLike } from '../read_preference';
import { ServerDescription } from './server_description';
import { TopologyDescription } from './topology_description';
import { S... |
<reponame>norestlabs/force-bridge<filename>offchain-modules/packages/x/src/handlers/eth.ts
import { parseAddress } from '@ckb-lumos/helpers';
import { Reader } from 'ckb-js-toolkit';
import { BigNumber, ethers } from 'ethers';
import { ChainType, EthAsset } from '../ckb/model/asset';
import { forceBridgeRole } from '..... |
<filename>internals-js/src/coreSpec.ts
import { ASTNode, DirectiveLocation, GraphQLError, StringValueNode } from "graphql";
import { URL } from "url";
import { CoreFeature, Directive, DirectiveDefinition, EnumType, ErrGraphQLAPISchemaValidationFailed, ErrGraphQLValidationFailed, InputType, ListType, NamedType, NonNullT... |
/**
* Created by <NAME> on 15.10.2015.
*/
import {ModeWrapper} from './mode';
import * as d3 from 'd3';
import * as marked from 'marked';
import {StoryTransition} from './Player';
import {SlideNode, ProvenanceGraph, SelectionUtils, I18nextManager, IStateAnnotation, IFrameStateAnnotation, ITextStateAnnotation, IArrow... |
import React from "react";
import { useHistory, useParams } from "react-router";
import { useDispatch, useSelector } from "react-redux";
import { DragDropContext, Droppable, Draggable, DropResult } from "react-beautiful-dnd";
import { createStyles, makeStyles } from "@material-ui/core/styles";
import Drawer from "@mate... |
<reponame>duangsuse/Share
// http://www.websiteasteroids.com
var ASTEROIDS = ASTEROIDS || { nKill: 0, players: [] };
function Asteroids() {
class Vector { // mutable math xy / velocity
x:number; y:number;
constructor(x, y) { this.x = x; this.y = y; }
copy() { return new Vector(this.x, this.y); }
add(vec) {
... |
<gh_stars>1-10
import a221 from "../assets/audios/a221.mp3";
import a222 from "../assets/audios/a222.mp3";
import a223 from "../assets/audios/a223.mp3";
import a224 from "../assets/audios/a224.mp3";
import a225 from "../assets/audios/a225.mp3";
import a226 from "../assets/audios/a226.mp3";
import a227 from "../assets/a... |
<reponame>ThomasOrtiz/PUBG-Buddy
import * as Discord from 'discord.js';
import {
AnalyticsService,
CommonService,
DiscordMessageService,
ImageService,
ParameterService,
PubgPlatformService, PubgPlayerService, PubgRatingService, PubgValidationService,
SqlServerService,
SqlServerRegisteryS... |
/*
Copyright (c) 2019-2020 <NAME> Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to... |
<filename>src/Particles.ts<gh_stars>1-10
import vsSource from './shaders/particle.vert';
import fsSource from './shaders/particle.frag';
import { Renderer, Id, PrimitiveType, Type, CullMode, VertexLayout, ResourceLayout, BindingType, ShaderResourceLayout, BufferType, Usage, BufferLayout } from "./gfx/GfxTypes";
import... |
import * as React from "react";
import { XMLHttpRequest } from 'xmlhttprequest-ts';
export type PostProperties = {
// properties
hierarchy_class:string,
paged:boolean, // a check for if you're in a thread page or not
expanded: boolean, // a check for if thread has been expanded in page mode or not, default false if ... |
import {Balloon} from '../api/balloon';
import {Emitter, EventHandlerMap} from '../event';
import {Plugins} from '../plugins';
import * as utils from '../utils/utils';
import * as utilsDom from '../utils/utils-dom';
import {
d3_setClasses as setClasses,
d3_transition as transition
} from '../utils/d3-decorators... |
<filename>src/index.ts
/*
* Copyright 2021 Maritime Connectivity Platform Consortium.
*
* 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/LICENS... |
<reponame>elgine/react-transform-tool<gh_stars>0
// Copyright (c) 2019 Elgine
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import { EPS } from '../const';
const delExtraSpace = (str: string) => {
return str.replace(/\s+/g, ' ');
};
/**
* Affine matrix in 2d
* a ... |
<filename>src/al-objects/maps/symbols-map.ts
import IKeyValue from "../../helpers/models/key-value.model";
/* spell-checker: disable */
class Symbols implements IKeyValue {
[prop: string]: string;
abs = "Abs";
accountdata = "AccountData";
action = "Action";
active = "Active";
add = "Add";
addaction = "A... |
<reponame>Bhanditz/ShapeShifter<gh_stars>1-10
/* tslint:disable */
import * as collections from './_collections';
import * as paths from './_paths';
import * as tools from './_tools';
const pathElems = collections.pathElems;
const path2js = paths.path2js;
const js2path = paths.js2path;
const applyTransforms = paths.a... |
<reponame>talsewell/cerberus
import $ from 'jquery'
import _ from 'lodash'
import { Option, State, Compiler, InteractiveMode, ResultRequest, InteractiveRequest,
AllocModel, CoreOpt, ExecOpt, BmcModel } from './common'
import * as util from './util'
import View from './view'
import Widget from './widget';
impor... |
// @ts-nocheck
import * as fs from 'fs';
import {
SchemaAST,
generateSchemaAST
} from './schema-ast-util-object';
import {
parse,
DocumentNode,
ScalarTypeDefinitionNode,
DirectiveDefinitionNode,
DefinitionNode,
DirectiveNode,
FieldDefinitionNode,
EnumTypeDefinitionNode,
Enu... |
import {Component, Inject, OnInit} from '@angular/core';
import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';
import {LoggerService} from 'dds-angular8';
import {SchedulerService} from "../scheduler.service";
import {Schedule} from "../models/Schedule";
export interface DialogData {
schedule: Sche... |
<filename>src/migrate/migrate-cli.ts
import 'colors';
import { existsSync, mkdirSync, promises, WriteStream } from 'fs';
import { dirname, join, resolve } from 'path';
import { mkdir, readFile } from 'fs/promises';
import md5 from 'crypto-js/md5';
import {
DbContext,
DbContextConstructor,
DatabaseSchema,
genera... |
declare global {
interface String {
readonly width: number
// --- util methods
/** truncate string with fixed width and preserve color */
truncate (this: string, width: number): string
/** pad string to `<width>`
- character?: `' '`
... |
//#region Interfaces
interface Rectangle {
x: number,
y: number,
width: number,
height: number
collidedAny: boolean;
isCollidedWith(other: Rectangle): boolean;
}
interface PooledItem {
reset(): void;
}
interface Entity extends Rectangle, PooledItem {
isAlive: boolean;
age: number;
update(): voi... |
import React, { Component } from "react"
import { RouteComponentProps, withRouter } from "react-router-dom"
import Title from "./Title"
import ImportExport from "./ImportExport"
import RaceSelection from "./RaceSelection"
import Time from "./Time"
import BuildOrder from "./BuildOrder"
import BOArea from "./BOArea"
imp... |
import * as React from "react";
import styled from "styled-components";
import Web3 from "web3";
import { convertUtf8ToHex } from "@walletconnect/utils";
import Web3Modal, { themesList } from "web3modal";
// @ts-ignore
import WalletConnectProvider from "@walletconnect/web3-provider";
// @ts-ignore
import Fortmatic fro... |
<filename>src/component.ts
import {
Behavior,
Future,
isBehavior,
Now,
placeholder,
runNow,
sinkBehavior,
sinkFuture,
Stream,
instant,
Time,
tick
} from "@funkia/hareactive";
import { render } from "@funkia/hareactive/dom";
import { Monad, monad } from "@funkia/jabz";
import { copyRemaps, id, Me... |
<filename>src/TaggedText.ts
import * as PIXI from "pixi.js";
import { parseTagsNew, removeTags, EMOJI_TAG } from "./tags";
import {
TaggedTextOptions,
TextStyleSet,
TextStyleExtended,
TagWithAttributes,
AttributesList,
ImageMap,
ImageSourceMap,
IMG_REFERENCE_PROPERTY,
FinalToken,
isSpriteToken,
Te... |
import Controls from './controls';
import Fullscreen from './controls/fullscreen';
import { ControlItem, CustomMedia, EventsList, Languages, PlayerLabels, PlayerOptions, Source, Track } from './interfaces';
import Media from './media';
import Ads from './media/ads';
import { EVENT_OPTIONS, IS_ANDROID, IS_IOS, IS_IPHONE... |
<gh_stars>0
import { PlatformAccessory, Service, Characteristic, CharacteristicProps, WithUUID, APIEvent, Formats } from 'homebridge'
import {
AcceessoryDescription,
CharacteristicDescription,
ExtendedCharacteristic,
FakeGatoProvider,
HKServiceConfig,
HttpClientCharacteristic,
HttpClientServ... |
<reponame>anruky/Zeta<filename>zds-web/src/components/WorkSpace/Metadata/sub-view/index.ts
import MetadataLineage from './metadata-lineage.vue';
import DoeRemoteService from "@/services/remote/DoeRemoteService";
import * as d3 from 'd3'
import _ from 'lodash';
import Viz from 'viz.js';
import { EventBus } from '@/compo... |
import { ipcRenderer } from 'electron';
import * as fs from 'fs-extra';
import * as path from 'path';
import { Observable, Subject } from 'rxjs';
import { Camera } from './camera';
import { Conveyor, SysCal } from './conveyor';
import { DataController } from './data-io';
import { Item } from './item';
import { ItemQueu... |
import { WorkBook } from 'xlsx';
import cloneDeep = require('lodash/cloneDeep');
// +---------------------+
// | FORMULAS REGISTERED |
// +---------------------+
const xlsx_Fx = {
'FLOOR': Math.floor,
'FLOOR.MATH': Math.floor,
'ABS': Math.abs,
'SQRT': Math.sqrt,
'VLOOKUP': vlookup,
'MAX': max,
'SUM': sum... |
export * from 'mobx'
/* eslint-disable @typescript-eslint/ban-types */
import { useEffect, useReducer, useRef, useState, createContext, useContext, ReactNode } from 'react'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { createElement } from 'react'
import { CreateObservableOptions, observable, c... |
import { distinctIndexed } from './hyperg';
import {
Analysis,
CodeTblToHex,
gGrammarParsingLeafStateTransitions,
GrammarParsingLeafState,
GrammarParsingLeafStateCommon,
GrammarParsingLeafStateReduces,
GrammarParsingLeafStateTransitions,
groupByIndexed,
gRTShift,
HyperGEnvType,
IncVariator,
Pars... |
<reponame>cjemerson/RubiksCube<filename>src/Hackathon.ts
// <NAME>
// Started: 10 Nov 2018
// Updated: 11 Nov 2018
//
// For Hackathon 2018
function getIndex(i : number, j : number) : number {
return 9*i + j;
}
class HackathonApp {
renderingContext: FxRenderingContext;
t0 = 0;
t1 = 0;
... |
<filename>src/index.ts
// Variables
//======================================
const hexRadius = 18; // from center to one of the points
const hexLineWeight = 1; // thickness of drawing line
const hexDoubleLineOffset = 6; // space between double lines
const hexMargin = 2; // space around hexagon... |
<filename>src/fable-library/Util.ts
// tslint:disable:ban-types
export function bindThis(this$: any, source: any) {
for (const key of Object.keys(source)) {
if (typeof source[key] === "function") {
source[key] = source[key].bind(this$);
}
}
return source;
}
// Object.assign flattens getters and se... |
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { Logger } from '../../../../cli';
import { CommandError, CommandOption } from '../../../../Command';
import GlobalOptions from '../../../../GlobalOptions';
import commands from '../../commands';
import { BaseProjectCommand } from ... |
<reponame>Aquariuslife/dapTest2
import {devicePixelRatio} from '../config';
import * as util from '../core/util';
import Layer, { LayerConfig } from './Layer';
import requestAnimationFrame from '../animation/requestAnimationFrame';
import ZRImage from '../graphic/Image';
import env from '../core/env';
import Displayabl... |
<gh_stars>0
/**
@module @ember/object
*/
import { ENV } from '@ember/-internals/environment';
import { Meta, meta as metaFor, peekMeta } from '@ember/-internals/meta';
import {
guidFor,
makeArray,
observerListenerMetaFor,
ROOT,
setObservers,
wrap,
} from '@ember/-internals/utils';
import { EMBER_MODERNIZED_... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators, Dispatch } from 'redux';
import {
clearFields, FormSection, change, InjectedFormProps, formValueSelector, reduxForm,
} from 'redux-form';
import { FormattedMessage, IntlShape } from 'react-intl';
import momen... |
<filename>frontend/packages/dev-console/src/components/topology/topology-utils.ts
import * as _ from 'lodash';
import { EdgeModel, Model, NodeModel, NodeShape, createAggregateEdges } from '@console/topology';
import {
K8sResourceKind,
modelFor,
DeploymentKind,
referenceFor,
} from '@console/internal/module/k8s'... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/hidden_style_css.m.js';
import 'chrome://resources/cr_elements/shared_vars_css.m.js';
import './print_preview_vars_... |
<reponame>danfma/aurelia
import { PLATFORM, DI, bound, IContainer, IResolver, Registration, Writable } from '@aurelia/kernel';
export interface IClockSettings {
forceUpdateInterval?: number;
now?(): number;
}
const defaultClockSettings: Required<IClockSettings> = {
forceUpdateInterval: 10,
now: PLATFORM.now,
... |
import * as React from "react";
import styled from "styled-components/macro";
import { weakmapMemoize } from "./Util";
import { IRunMetadataDict } from "./RunMetadataProvider";
import { GaantChartExecutionPlanFragment } from "./types/GaantChartExecutionPlanFragment";
import { RunFragment } from "./runs/types/RunFragmen... |
<filename>src/settings.ts
import { DebugProtocol } from 'vscode-debugprotocol/lib/debugProtocol';
import { Utility } from './misc/utility';
//import * as path from 'path';
import * as fs from 'fs';
/**
* together with a boolean variable to tell (true) if the referenced files should be used and a filter string to allo... |
<filename>ts/myasset.ts
import * as d3 from 'd3';
import Vue from 'vue';
const CurrencyPair = {
btc_jpy: "btc_jpy",
xem_jpy: "xem_jpy",
mona_jpy: "mona_jpy",
bch_jpy: "bch_jpy",
eth_jpy: "eth_jpy"
} as const;
type CurrencyPair = typeof CurrencyPair[keyof typeof CurrencyPair];
function isCurrencyPair(a: string): a... |
import {
abort,
adv1,
availableAmount,
buy,
chatPrivate,
choiceFollowsFight,
cliExecute,
containsText,
create,
eat,
equip,
equippedAmount,
equippedItem,
getClanName,
getProperty,
haveEffect,
inMultiFight,
myClass,
myMaxhp,
myMaxmp,
myMp... |
<gh_stars>0
import { EventEmitter, Injectable } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService } from '@ngx-translate/core';
import { BaseBeforeImportHandler, BeforeImportHandler } from 'ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.