text stringlengths 9.82k 47.8k |
|---|
<gh_stars>0
import { EventEmitter } from 'events';
import {
EthAddress,
Location,
Planet,
PlanetMap,
Player,
PlayerMap,
QueuedArrival,
PlanetVoyageIdMap,
LocationId,
ExploredChunkData,
VoyageContractData,
PlanetLevel,
Upgrade,
ChunkFootprint,
SpaceType,
} from '../_types/global/GlobalTypes... |
import { toggleMark } from 'prosemirror-commands';
import {
Fragment,
Mark as PMMark,
MarkType,
Node,
NodeType,
ResolvedPos,
Slice,
Schema,
NodeRange,
Mark,
} from 'prosemirror-model';
import { EditorView } from 'prosemirror-view';
import {
EditorState,
NodeSelection,
Selection,
TextSelectio... |
import React from 'react';
import _, { debounce, isEmpty } from 'lodash';
import * as MIME from '../../../types/MIME';
import { SessionEmojiPanel } from '../SessionEmojiPanel';
import { SessionRecording } from '../SessionRecording';
import {
getPreview,
LINK_PREVIEW_TIMEOUT,
SessionStagedLinkPreview,
} from '.... |
import { Component, Coordinate, Entity, Scene, THREE, ANode } from 'aframe';
/**
* These tests are examples from https://aframe.io pulled directly from the sample gallery.
* Types and some formatting have been added, but for the most part they remain unchanged.
*/
// disable checks for things done in the original,... |
<filename>server/chat-plugins/ps-china-auto-tour.ts
import { FS, Utils } from '../../lib';
import { PetUtils } from './ps-china-pet-mode';
import { AdminUtils } from './ps-china-admin';
type TourRules = {
bonus?: boolean,
playercap?: number,
autostart?: number,
forcetimer?: boolean,
allowscouting?: boolean,
auto... |
<reponame>aishimeth2135/Toram_Grimoire
import { EnchantCategory } from '../base';
import { EnchantStat, EnchantStepStat, EnchantEquipment, EnchantStep } from '../build';
import { EnchantStepTypes } from '../enums';
import { EnchantDollCategory } from './index';
interface MostUsePotentialStatItemUnused {
type: 'unuse... |
/**
* @module node_opcua_crypto
*/
// ---------------------------------------------------------------------------------------------------------------------
// crypto_explore_certificate
// ---------------------------------------------------------------------------------------------------------------------
// Copyrigh... |
import { Level, TimeState, PHYSICS_TICK_RATE } from "./level";
import OIMO from "./declarations/oimo";
import { PowerUp } from "./shapes/power_up";
import { Shape } from "./shape";
import { Trigger } from "./triggers/trigger";
import { Util } from "./util";
import { TrapDoor } from "./shapes/trap_door";
import { LandMi... |
import { Diagram } from '../../src/diagram/diagram';
import { TextStyle } from '../../src/diagram/core/appearance';
import { Segments, ConnectorConstraints } from '../../src/diagram/enum/enum';
import { NodeModel, PathModel, TextModel, BasicShapeModel } from '../../src/diagram/objects/node-model';
import { ConnectorMod... |
/*
* Created with @iobroker/create-adapter v1.30.1
*/
import * as utils from '@iobroker/adapter-core';
import * as SentryNode from '@sentry/node';
import luxtronik from 'luxtronik2';
import WebSocket from 'ws';
import { parseStringPromise } from 'xml2js';
import {
ContentItem,
ContentSection,
ItemBase,
... |
import { List, Range } from 'immutable'
import { GameType } from '../../../common/games/configuration'
import {
canAddObservers,
canRemoveObservers,
getLobbySlots,
getLobbySlotsWithIndexes,
getObserverTeam,
hasObservers,
humanSlotCount,
isInObserverTeam,
isTeamType,
isUms,
Lobby,
MAX_OBSERVERS,
... |
import React, {
FunctionComponent,
useCallback,
ReactNodeArray,
useRef,
} from 'react';
import { View, StyleSheet, findNodeHandle } from 'react-native';
import { State } from 'react-native-gesture-handler';
import { useDraxState, useDraxRegistry } from './hooks';
import { DraxContext } from './DraxContext';
import... |
<filename>src/services/Libs.ts<gh_stars>0
/**
* Copyright (c) 2017-2020 <NAME> and CAD Team (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/graphs/contributors)
* Licensed under MIT (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/blob/3.X.X-Branch/LICENSE)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHO... |
<filename>models/ObjectSerializer.ts<gh_stars>0
export * from './AbstractWebhookPayload.ts';
export * from './AliasDto.ts';
export * from './AliasProjection.ts';
export * from './AttachmentEntity.ts';
export * from './AttachmentMetaData.ts';
export * from './AttachmentProjection.ts';
export * from './BasicAuthOptions.t... |
import * as React from "react";
import * as PropTypes from "prop-types";
import utils from "common/utils";
import Translate from "react-translate-component";
// import SettingsActions from "actions/SettingsActions";
import classnames from "classnames";
import PriceText from "../Utility/PriceText";
import TransitionWra... |
/** 在浏览器端修改 prototype,需要更加小心 */
declare global {
interface String {
readonly width: number
// --- 工具方法
/** 截取字符串不超过 width 显示宽度的部分,并保留颜色
找到并记录能容纳 字符串 + … 的最后一个字符的位置 i_fitted
若完整的字符串长度超过 width,返回 slice(0, i_fitted + 1) + …
否则 ... |
import P5 from 'p5-svelte';
import { FunctionTrigger, SpawnTrigger, StopTrigger, ToggleTrigger, Trigger } from '../objects/triggers';
import type {World} from '../world/world';
import {QuadTree, Box, Point, Circle} from 'js-quadtree';
import Body, { COLLAPSE_LEN, GROUP_OBJ_SPACING } from './graph';
import Col from 'de... |
import '../social/monkey/process';
import * as arraybuffers from '../../arraybuffers/arraybuffers';
import * as crypto from 'crypto';
import * as linefeeder from '../../net/linefeeder';
import * as logging from '../../logging/logging';
import * as queue from '../../handler/queue';
import Pinger from '../../net/pinger'... |
/*************************************************************
*
* Copyright (c) 2017 The MathJax 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.ap... |
/* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import {
h,
defineComponent,
ref,
provide,
cloneVNode,
computed,
onBeforeUnmount,
watch,
withDirectives,
vShow,
Transition,
toRef,
nextTick,
onMounted,
watchEffect,
onUpdated
} from 'vue'
import type { CSSProperties, PropType, Ref, TransitionProps, VNode } from 'vue'
import { VResizeObse... |
<gh_stars>0
import { nanoid } from 'nanoid';
import Log, { ILogEntry, LogEvents, loggerSessionIdNames } from '@ulixee/commons/lib/Logger';
import RequestSession, {
IRequestSessionHttpErrorEvent,
IRequestSessionRequestEvent,
IRequestSessionResponseEvent,
IResourceStateChangeEvent,
ISocketEvent,
} from '@ulixee... |
import i18next from "i18next";
import { computed } from "mobx";
import filterOutUndefined from "../../../Core/filterOutUndefined";
import isDefined from "../../../Core/isDefined";
import TerriaError, { networkRequestError } from "../../../Core/TerriaError";
import {
ShortReportTraits,
MetadataUrlTraits
} from "../.... |
<filename>tools/expotools/src/commands/UpdateVendoredModule.ts
import os from 'os';
import path from 'path';
import chalk from 'chalk';
import fs from 'fs-extra';
import xcode from 'xcode';
import glob from 'glob-promise';
import JsonFile from '@expo/json-file';
import spawnAsync from '@expo/spawn-async';
import { Comm... |
import { Events } from '../events';
import { logger } from '../utils/logger';
import { ErrorDetails, ErrorTypes } from '../errors';
import { BufferHelper } from '../utils/buffer-helper';
import { getMediaSource } from '../utils/mediasource-helper';
import { ElementaryStreamTypes } from '../loader/fragment';
import type... |
// Type definitions for openpgp 4.0.1
// Project: http://openpgpjs.org/
// Definitions by: <NAME> <https://blog.lacasa.fr>
// <NAME> <https://github.com/errietta>
// <NAME> <https://github.com/damonpam>
// <NAME> <https://github.com/po5i>
// <NAME> <https:... |
import React, { PureComponent } from 'react'
import { push as pushRoute, replace } from 'connected-react-router'
import { UnregisterCallback } from 'history'
import moment from 'moment'
import { connect } from 'react-redux'
import { withRouter, RouteComponentProps } from 'react-router-dom'
import { Dispatch } from 're... |
import {
Annotation,
AnnotationType,
ImageSize,
NewAnnotation,
Position2D
} from "./common";
import SVGControls from "./controls";
import Element from "./element";
import ElementCreate from "./element-create";
import EpipolarPoint from "./epipolar-point";
import "./main.css";
import Point from "./point";
impo... |
<reponame>artemshein/chipmunk
import * as Path from 'path';
import * as FS from '../tools/fs';
import * as Net from 'net';
import * as util from 'util';
import Logger from '../tools/env.logger';
import { guid } from '../tools/index';
import ServiceElectron from './service.electron';
import ServiceElectronService from '... |
<gh_stars>10-100
const rcHightContrast = {
breakpoints: {
values: {
xs: 0,
sm: 641,
md: 960,
lg: 1280,
xl: 1920,
},
},
palette: {
primary: {
'50': '#e1f4fb',
'100': '#b2e3f4',
'200': '#82d1ed',
'300': '#66bffa',
'400': '#34b1e2',
'500':... |
<reponame>Cgiella1/MarbleBlast<filename>src/ts/parsing/dif_parser.ts
/* eslint-disable @typescript-eslint/no-unused-vars */
import { BinaryFileParser, Box3F, SphereF, Point3F, PlaneF } from "./binary_file_parser";
import { ResourceManager } from "../resources";
const NUM_COORD_BINS = 16;
export interface DifFile {
v... |
import { err, ERROR } from "../errors";
import {
ManagedCoreEvent,
ManagedEvent,
ManagedParentChangeEvent,
ManagedChangeEvent,
CHANGE,
} from "./ManagedEvent";
import type { ManagedReference } from "./ManagedReference";
import { observe } from "./observe";
import * as util from "./util";
import { HIDDEN } fro... |
export const fa: string;
export const faLg: string;
export const fa2X: string;
export const fa3X: string;
export const fa4X: string;
export const fa5X: string;
export const faFw: string;
export const faUl: string;
export const faLi: string;
export const faBorder: string;
export const faPullLeft: string;
export const fa... |
/*
* Copyright 2019-2021 <NAME>
* <https://github.com/brunexgeek/jane>
*
* 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
... |
import React, { CSSProperties } from 'react';
import { ArrayInputSelectableClass } from '../../../Models/ArrayInputSelectableClass';
import { SelectableValue, PanelEditorProps } from '@grafana/data';
import InputTextOrientedLink from '../../../Functions/Input/inputTextOrientedLink';
import InputSelectOrientedLink from ... |
import { DomainModel, KEY } from './domainmodel'
import * as moment from 'moment'
/**
* TDD of Global.ts: in debug.component.spec
* http://localhost:9876/debug.html?spec=DebugComponent
*/
export const SD = Number.NEGATIVE_INFINITY // '-'
export const NOT_DEF = 'S/D'
export enum VAR {
CO = 'CO',
CO2 =... |
import * as camelCase from 'camelcase';
import chalk from 'chalk';
import * as dashify from 'dashify';
import * as fs from 'fs';
import * as globby from 'globby';
import ignore from 'ignore';
import * as leven from 'leven';
import {flatten, groupBy, pick} from 'lodash';
import path from 'path';
import readline from 're... |
/// <reference path="./trimps.ts"/>
class Perk {
locked = true;
level = 0;
min_level = 0;
cost = 0;
gain = 0;
bonus = 1;
constructor(
private base_cost: number,
public cost_increment: number,
private scaling: (level: number) => number,
public max_level: number = Infinity,
private cost_exponent: numbe... |
<gh_stars>10-100
import type { EvmAccountInfo, EvmContractInfo } from '@acala-network/types/interfaces';
import {
EventType,
FeeData,
Filter,
Listener,
Log,
Provider as AbstractProvider,
Provider,
TransactionReceipt,
TransactionRequest,
TransactionResponse
} from '@ethersproject/abstract-provider';
... |
import patchRequire from "./require-rebuild";
patchRequire();
import {
app,
App,
BrowserWindowConstructorOptions,
ipcMain,
MenuItem,
BrowserWindow,
dialog,
shell,
Notification
} from "electron";
import { CustomBrowserWindow } from "./browser-window";
import { AppMenu } from "./menu";
im... |
/// <reference path='../../../interfaces/async/async.d.ts'/>
/// <reference path='../../../interfaces/mustache/mustache.d.ts'/>
import async = require("async");
import util = require("util");
import fs = require("fs");
import path = require("path");
import abstractController = require("./abstractController");
import ... |
/**
* load.ts
*
* The "last stage" for converting from an SQL ast to what the actual typescript types are.
* Converting the plan generated from [query-interface.ts](./query-interface.ts) into actual types.
* Loads the needed data from the database.
*/
import { isEqual, groupBy, isNil, isEmpty, isUniqueBy, first ... |
<reponame>agoraxyz/discord-runner<filename>src/api/actions.ts
/* eslint no-return-await: "off" */
import {
GuildMember,
PartialGuildMember,
Role,
Permissions,
GuildChannel,
MessageEmbed,
Channel,
ThreadChannel,
OverwriteResolvable,
Collection,
TextChannel,
Message,
PermissionOverwrites,
Mes... |
<filename>src/browser/AsteroidsGame.ts<gh_stars>1-10
import { Container } from "@pixi/display";
import { BatchRenderer, Renderer, AbstractRenderer, autoDetectRenderer } from '@pixi/core';
import { InteractionManager } from '@pixi/interaction';
import { AsteroidsGame as CoreAsteroidsGame, controls, GameStatus, wasdMappi... |
/*
Copyright (c) 2020 <NAME> 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 use Cocos Cre... |
import commands from '../../commands';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import { v4 } from 'uuid';
import {
CommandOption,
CommandValidate
} from '../../../../Command';
import SpoCommand from '../../../base/SpoCommand';
import Utils from '../../../../... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as vscode from 'vscode';
import { Httpgd } from './httpgd';
import { HttpgdPlot, IHttpgdViewer, HttpgdViewerOptions, PlotId, ExportFormat, HttpgdState } from './httpgdTypes';
import * as path from 'path';
import * as fs from 'fs';
import * as ejs from '... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Fragment, SFC, useEffect, useState } from 'react';
import { ... |
<reponame>CODE-AND-MORE/stencil-core-build
declare const createAttributeProxy: (caseInsensitive: boolean) => any;
declare class MockAttributeMap {
caseInsensitive: boolean;
constructor(caseInsensitive?: boolean);
get length(): number;
item(index: number): MockAttr;
setNamedItem(attr: MockAttr): void;
setNam... |
<reponame>Luthaf/chemiscope
/**
* @packageDocumentation
* @module structure
*/
import assert from 'assert';
import { default as $3Dmol } from './3dmol';
import { assignBonds } from './3dmol/assignBonds';
import { SavedSettings } from '../options';
import { GUID, generateGUID, getByID, getElement, unreachable } fr... |
<gh_stars>0
import {
GraphQLArgument,
GraphQLDirective,
GraphQLEnumType,
GraphQLEnumValue,
GraphQLField,
GraphQLInputField,
GraphQLInputObjectType,
GraphQLInterfaceType,
GraphQLNamedType,
GraphQLObjectType,
GraphQLScalarType,
GraphQLSchema,
GraphQLUnionType,
Kind,
ValueNode,
DirectiveLoc... |
<gh_stars>0
import { Config, ILaunchSetting, IMenu, ISettings } from './config-loader';
import { Logger } from './logger';
import { Executor } from './executor';
import { launchMenu } from './launch-menu';
import * as fs from 'fs';
import * as path from 'path';
import { confirmPrompt, formatTime, parseArgs, showArgsHel... |
<filename>src/app/model/hive/hivedatasync.ts
import PQueue from 'p-queue';
import { Logger } from "src/app/logger";
import { GlobalStorageService } from "src/app/services/global.storage.service";
declare let hiveManager: HivePlugin.HiveManager;
export class SyncContext {
name: string;
/**
* An entry exis... |
<reponame>Yaser-wyx/QinScript
/*
* Copyright (c) 2020. yaser. All rights reserved
* Description: 解释器
*/
import {cleanInterpreter, getInterpreter, Interpreter} from "./DataStruct/Interpreter";
import {createFunByFunDefStmt, FUN_CLASSES, FUN_TYPE, GeneralFun, InnerFun, StaticFun} from "./DataStruct/Fun";
import {Stack... |
<reponame>DeciderWill/zaplib
// This file should only be imported by WebWorkers
/// <reference lib="WebWorker" />
import { RpcSpec } from "rpc_types";
import {
CallRustSync,
CreateBuffer,
FileHandle,
MutableBufferData,
RustZapParam,
TlsAndStackData,
WasmEnv,
WasmExports,
ZapArray,
ZapParam,
ZapPa... |
<reponame>schlpbch/sbb-angular
import { animate, AnimationBuilder, style } from '@angular/animations';
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
import { DOWN_ARROW, ENTER, ESCAPE, TAB, UP_ARROW } from '@angular/cdk/keycodes';
import {
FlexibleConnectedPositionStrategy,
Overlay,
... |
import { Injectable } from '@angular/core';
import { AppService } from './app.service';
import { AdbClientService, ConnectionStatus } from './adb-client.service';
import { StatusBarService } from './status-bar.service';
import { SongItem } from './song-pack-manager/song-pack-manager.component';
import { LoadingSpinnerS... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import MockDate from "mockdate";
import moment, { isMoment } from "moment-timezone";
import { LocalDate, LocalDateFormat } from "./LocalDate";
MockDate.set("2020-09-27T10:00:00");
const a = new LocalDate("2020-01-01");
const b = new LocalDate("2021-01-01");
// Checks that the passed array's type covers every format ... |
/* eslint-disable */
// @ts-nocheck
import {
Backdrop, CircularProgress,
createTheme as createMuiTheme,
ThemeProvider as MuiThemeProvider
} from '@mui/material'
import { View } from 'colay-ui'
import { useImmer } from 'colay-ui/hooks/useImmer'
import * as R from 'colay/ramda'
import { Graph } from 'perfect-graph/... |
<filename>core/backend/src/test/LocalHub.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-----------------------------... |
import {replace, push} from "redux-little-router";
import {ToInt} from "js-vextensions";
import {Vector2i} from "js-vextensions";
import {NodeUI_Inner} from "../../UI/@Shared/Maps/MapNode/NodeUI_Inner";
import {GetOpenMapID, ACTSetPage, ACTSetSubpage, ACTNotificationMessageAdd, GetPage, GetSubpage} from "../../Store/ma... |
// todo: Refactor code ♻
// note: When refactoring code, improve wrtc instance clean up
// note: which includes removing event listeners.
// todo: Implement switch room feature.
import { FC, Fragment, useEffect, useRef, useState } from "react";
import { TopNav, TopNavItem, TopNavItemContainer } from "./TopNav";
... |
<filename>src/assets/emoji/emoji.ts
export const emojiCategory = [
{
id: 'paopao',
name: '泡泡',
icon: '',
textPattern: '@(${value})',
type: 'image'
},
{
id: 'alu',
name: '阿鲁',
icon: '',
textPattern: '@[${value}]',
type: 'image'
},
{
id: 'big',
name: '大脸',
ico... |
import { Component, OnInit, TemplateRef } from '@angular/core';
import { FormControl } from '@angular/forms';
import { CatalogService } from '../../../../services/catalog.service';
import { PersonService } from '../../../../services/person.service';
import { SelectItem } from 'primeng/api/selectitem';
import { ItemServ... |
import * as LoByte from 'lobyte';
import * as Binary from '../util/binary';
import * as QA from '../util/qa';
export enum OpcodeKind {
Op0 = (0b1011 << 4), // 1011xxxx (Op1 w/type = 11 -> no argument)
Op1 = (0b10 << 6), // 10ttxxxx
Op2 = (0b0 << 7), // 0abxxxxx
Var = (0b11 <... |
import Matrix from "./renderer/Matrix";
import PenSkin from "./renderer/PenSkin";
import Rectangle from "./renderer/Rectangle";
import ShaderManager, { DrawMode, Shader } from "./renderer/ShaderManager";
import SkinCache from "./renderer/SkinCache";
import { effectBitmasks } from "./renderer/effectInfo";
import { Spri... |
import { Component, OnInit, TemplateRef, ViewChild, ViewChildren, OnDestroy } from '@angular/core';
import { BsModalService } from 'ngx-bootstrap/modal';
import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
import { PackageDetailComponent } from '../../package-detail.component';
import { DATETIME_... |
// Register memory positions
export const REG_GCONF = 0x00;
export const REG_GSTAT = 0x01;
export const REG_IFCNT = 0x02;
export const REG_SLAVECONF = 0x03;
export const REG_OTP_PROG = 0x04;
export const REG_OTP_READ = 0x05;
export const REG_IOIN = 0x06;
export const REG_FACTORY_CONF = 0x07;
export const REG_IHOLD_IRUN... |
<reponame>AlexMax/rock3d.js
/*
* rock3d.js: A 3D game engine for making retro FPS games
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
... |
import * as _ from 'lodash';
import { BsModalService } from 'ngx-bootstrap';
import { PageChangedEvent, PaginationComponent } from 'ngx-bootstrap/pagination';
import { Component, ContentChild, DoCheck, EventEmitter, Inject, Input, IterableDiffers, OnInit, Optional, Output, Renderer2, TemplateRef, ViewChild } from '@an... |
<reponame>matthewjh/rules_nodejs
import * as fs from 'fs';
import * as path from 'path';
import * as tsickle from 'tsickle';
import * as ts from 'typescript';
import {Plugin as BazelConformancePlugin} from '../tsetse/runner';
import {CachedFileLoader, FileLoader, ProgramAndFileCache, UncachedFileLoader} from './cache... |
import { Camera, MOUSE, OrthographicCamera, PerspectiveCamera, Quaternion, Spherical, Vector2, Vector3 } from 'three'
import { EventDispatcher } from '../../common/classes/EventDispatcher'
const STATE = {
NONE: -1,
ROTATE: 0,
DOLLY: 1,
PAN: 2,
TOUCH_ROTATE: 3,
TOUCH_DOLLY: 4,
TOUCH_PAN: 5
}
const CHANG... |
<reponame>catpunknet/XREngine
import { Quaternion, Vector3 } from 'three'
import { ComponentType } from '../../ecs/functions/ComponentFunctions'
import { RaycastComponent } from '../components/RaycastComponent'
import { putIntoPhysXHeap } from '../functions/physxHelpers'
import { loadPhysX } from '../physx/loadPhysX'
... |
import { Callback, maybePromise, MongoDBNamespace, ns } from '../utils';
import { Long, Document, BSONSerializeOptions, pluckBSONSerializeOptions } from '../bson';
import { ClientSession } from '../sessions';
import { MongoDriverError } from '../error';
import { ReadPreference, ReadPreferenceLike } from '../read_prefer... |
<filename>controls/filemanager/demos/accessibility/file-manager/locale.ts
import '../../../node_modules/es6-promise/dist/es6-promise';
import { L10n } from '@syncfusion/ej2-base';
import { FileManager } from '../../../src/file-manager/base/file-manager';
import { NavigationPane, DetailsView } from '../../../src/file-ma... |
import { useFocusRing as useAriaFocusRing } from "@react-aria/focus";
import _classNames from "classnames";
import * as React from "react";
export { default as createUseScreenVariants } from "./createUseScreenVariants";
// From https://stackoverflow.com/questions/54775790/forcing-excess-property-checking-on-variable-... |
import * as d3 from 'd3'
import { HTML } from 'ducd'
import { clone, stringhash } from 'ducd'
import { googlePalette } from 'ducd'
import { HypertreeArgs } from '../../models/hypertree/model'
import { N } from '../../models/n/n'
import { Path } from '../../models/path/path'
import { setZ } from '../../models/n/n-layout... |
import React, { createElement, CSSProperties, KeyboardEventHandler, ReactNode } from 'react';
import PropTypes from 'prop-types';
import moment, { isMoment, Moment, MomentInput, MomentParsingFlags } from 'moment';
import classNames from 'classnames';
import raf from 'raf';
import isPlainObject from 'lodash/isPlainObjec... |
<filename>src/debugger/breakpoint_handler.ts
// Copyright 2020-2021 ETH Zurich and the DaCe-VSCode authors.
// All rights reserved.
import * as path from 'path';
import * as vscode from 'vscode';
import { DaCeVSCode } from '../extension';
import { SdfgViewerProvider } from '../components/sdfg_viewer';
import { SdfgBre... |
import assert from "assert";
import { Command } from "commander";
import fs from "fs";
import path from "path";
import plist from "simple-plist";
import { Access, Characteristic, Formats, Units } from "../Characteristic";
import { toLongForm } from "../util/uuid";
import {
CharacteristicClassAdditions,
Characterist... |
import * as _ from 'lodash';
import { IMap, task, RunWay, IAssertDist, ITaskContext, Src, Pipe, OutputPipe, ITaskInfo, TransformSource, ITransform, Operation, PipeTask, bindingConfig } from 'development-core';
import { Gulp } from 'gulp';
import * as path from 'path';
import { IBundlesConfig, IBundleGroup, IBuidlerConf... |
<reponame>ktpolanski/dc6s
import {
adv1,
autosell,
buy,
cliExecute,
create,
drink,
Effect,
equip,
equippedItem,
eudora,
Familiar,
getWorkshed,
handlingChoice,
inebrietyLimit,
inHardcore,
Item,
itemAmount,
Location,
mallPrice,
Monster,
m... |
import {readFileSync} from 'fs';
import {Utility} from '../misc/utility';
import {MemoryModelAllRam, MemoryModelUnknown, MemoryModelZx128k, MemoryModelZx48k, MemoryModelZxNext} from '../remotes/MemoryModel/predefinedmemorymodels';
import {AsmConfigBase, SjasmplusConfig} from '../settings/settings';
import {LabelParserB... |
<reponame>keawade/chip8-emu
import * as _ from 'lodash';
import { leftPad } from './leftpad';
enum LogLevels {
ERROR = 0,
WARN,
LOG,
DEBUG,
}
/**
* All possible keypad key names.
*/
type KeyName = '1' | '2' | '3' | 'C' | '4' | '5' | '6' | 'D' | '7' | '8' | '9' | 'E' | 'A' | '0' | 'B' | 'F';
/**
* Chip-8 E... |
import { createCommentVNode, defineComponent, h, ref, Ref, PropType, inject, nextTick, ComputedRef, onBeforeUnmount, onMounted } from 'vue'
import XEUtils from 'xe-utils'
import GlobalConfig from '../../v-x-e-table/src/conf'
import { VXETable } from '../../v-x-e-table'
import { mergeBodyMethod, getRowid, getPropClass, ... |
import crypto from 'crypto'
import path from 'path'
import fs from 'fs-extra'
import glob from 'glob'
import { table, getBorderCharacters } from 'table'
import findUp from 'find-up'
import _ from 'lodash'
import colorize from 'json-colorizer'
import stringify from 'json-stringify-pretty-compact'
import chalk from 'chal... |
import { SvgIconComponent } from "@material-ui/icons";
import { RenNetwork } from "@renproject/interfaces";
import {
ArbitrumBlackIcon,
ArbitrumCircleIcon,
ArbitrumColorIcon,
AvaFullIcon,
AvaIcon,
AvalancheChainCircleIcon,
BchDashedIcon,
BchFullIcon,
BchGreyIcon,
BchIcon,
BinanceChainFullIcon,
... |
import { Button, Collapse, Intent, Popover, Position } from '@blueprintjs/core'
import ExamQuestion, {
AnswerProps,
QuestionProps,
QuestionType
} from 'common/components/ExamQuestion'
import SectionCard from 'common/components/SectionCard'
// import Toaster from 'common/components/Toaster'
import { fromUrlId, Sch... |
/*eslint-disable no-shadow */
import * as Image from './image'
import * as path from 'path'
import * as core from '@actions/core'
import {
Annotation,
TestDetail,
TestDetails,
TestFailure,
TestFailureGroup,
TestFailures,
TestReport,
TestReportChapter,
TestReportChapterDetail,
TestReportChapterSumm... |
import React, {
createContext,
useReducer,
useCallback,
useEffect,
useState,
} from "react";
import { StateType, initialState, ItemCategory } from "./initialState";
import { mainReducer, CollectedActionsType, DataActionsType } from "./reducers";
import { arrayUnique, arrayObjUnique } from "../utils";
impor... |
/*
Copyright (c) 2018 <NAME> 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 use Cocos Cre... |
import { AfterViewInit, Component, ElementRef, EventEmitter, Inject, Input, OnChanges, OnDestroy, Optional, Output, SimpleChanges, TemplateRef, ViewChild } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { asyncScheduler, combineLatest, fromEvent, merge, NEVER, Observable, of, Subject } from "... |
/* eslint-disable react/display-name */
import cloneDeep from 'lodash/cloneDeep'
import { NextPage } from 'next'
import React from 'react'
import Head from 'next/head'
import Dropzone from 'react-dropzone'
import {
Box,
Button,
Chip,
Checkbox,
FormControlLabel,
} from '@material-ui/core'
import FormControl fr... |
import * as jspb from 'google-protobuf'
export class Card extends jspb.Message {
getSuit(): Suit;
setSuit(value: Suit): Card;
getRank(): Rank;
setRank(value: Rank): Card;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Card.AsObject;
static toObject(includeInstance: boolean, msg: ... |
import {Utils} from '../lib';
import {toID, BasicEffect} from './dex-data';
import {EventMethods} from './dex-conditions';
const DEFAULT_MOD = 'gen8';
const MAIN_FORMATS = `${__dirname}/../.config-dist/formats`;
const CUSTOM_FORMATS = `${__dirname}/../.config-dist/custom-formats`;
export interface FormatData extends ... |
<reponame>dlr-eoc/ukis-frontend-libraries
import { Feature } from 'ol';
import { FrameState } from 'ol/PluggableMap';
import LayerRenderer from 'ol/renderer/Layer';
import CanvasVectorLayerRenderer from 'ol/renderer/canvas/VectorLayer';
import VectorLayer from 'ol/layer/Vector';
import Geometry from 'ol/geom/Geometry';... |
<gh_stars>0
import type {TimePickerProps} from './TimePickerProps';
import {Component, DateTime, Lab1, component, Property, Signal, TimeSpan, IComponent} from "@lab1/core";
import {Color, OpenTo, Orientation, Picker, PickerVariant, TimeEditMode, Typo, Variant} from "../../MaterialExports";
import {Material} from "../..... |
<gh_stars>0
import {
Component,
NgModule,
ElementRef,
EventEmitter,
NgZone,
Input,
Output,
OnChanges,
DoCheck,
SimpleChanges
} from '@angular/core';
import DxDataGrid from 'devextreme/ui/data_grid';
import { DxComponent } from '../core/dx.component';
import { DxTemplateHos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.