text stringlengths 9.82k 47.8k |
|---|
import {
Vector3,
Intersection,
Object3D,
OrthographicCamera,
Quaternion,
Euler,
Matrix4,
Vector2,
} from '@casual-simulation/three';
import { ContextMenuAction } from '../../shared/interaction/ContextMenuEvent';
import {
Bot,
BotCalculationContext,
ON_FOCUS_EXIT_ACTION_NAME,... |
<gh_stars>0
import {
check,
CheckFunction,
CheckHandle,
CheckInstanceof,
CheckInterface,
CheckProgramSymbolTable,
} from '@glimmer/debug';
import {
Bounds,
CompilableTemplate,
ComponentDefinition,
ComponentDefinitionState,
ComponentInstanceState,
ComponentManager,
Dict,
DynamicScope,
Eleme... |
import EventEmitter from 'eventemitter3';
import Log from '../../../Utils/Logger';
import Events from '../Events/index';
import MP4 from './mp4-generator';
import AAC from './aac-silent';
import Browser from './browser';
import { MediaSegmentInfo, MediaSegmentInfoList } from './media-segment-info';
import SampleInfo fr... |
<filename>src/SimplexSolver.ts
import Tableau from "./Tableau";
import HashTable from "./HashTable";
import { ObjectiveVariable, Variable, SlackVariable, AbstractVariable, DummyVariable } from "./Variable";
import Expression from "./Expression";
import HashSet from "./HashSet";
import { Constraint, EditConstraint, Stay... |
export default function getLanguage(lang: string): string {
const [language] = lang.split('-')
const languageCode: string = lang ? language.toLowerCase() : ''
return languages[languageCode] || language
}
export const languages = {
'aa': 'Afar',
'aar': 'Afar',
'ab': 'Abkhazian',
'abk': 'Abkhazian',
'ace': 'Ach... |
/* eslint-disable */
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import * as React from 'react'
import { VariableSizeGrid } from 'react-window'
import AutoSizer from 'react-virtualized-auto... |
<filename>apps/kettu/src/lib/util/APIs/pokemon.ts
/**
* @license MIT
* @Copyright Favware 2021
*/
import { fetch } from '@foxxie/fetch';
import { fromAsync, isErr, UserError } from '@sapphire/framework';
import { isNullish, isNullishOrEmpty } from '@sapphire/utilities';
import {
Query,
QueryGetLearnsetArgs,
... |
import { QrCode } from './qr';
import { QrOptions } from './types';
const MULTI = 1;
const QR_BORDER = 7;
const TILE_SIZE = 96 * MULTI;
const INC_TILE_SIZE = 96 * MULTI;
const SMALL_QR_SIZE = 25;
/**
* Returns the color of the module (pixel) at the given coordinates, which is false
* for white or true for black. Th... |
<reponame>dpanster/angular5-threejs-css3d
import * as THREE from 'three';
import * as CSS3DRenderer from 'three-css3drenderer';
import * as TrackballControls from 'three-trackballcontrols';
import { Geometry } from 'three';
import * as TWEEN from 'tween.js';
import * as EXIF from 'exif-js';
/////// NOT WORKING: global... |
<reponame>king-prawns/rx-player
/**
* 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 requir... |
declare const enum EncryptionId {
AES = 79,
AES_DES = 65
}
declare var NFCErrorDomain: string;
interface NFCFeliCaTag extends NFCNDEFTag, NFCTag {
currentIDm: NSData;
currentSystemCode: NSData;
pollingWithSystemCodeRequestCodeTimeSlotCompletionHandler(systemCode: NSData, requestCode: PollingRequestCode, ti... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import Sql = require("../infra/sql");
import DataUtil = require("../utils/dataUtil");
interface InfoAtualSemCiclo {
hoje: number;
anoAtual: number;
mesAtual: number;
}
interface InfoAtual extends InfoAtualSemCiclo {
cicloAtual: number;
mesInicialCiclo: number;
anoInicialCiclo: number;
mesFinalCiclo: number;
... |
/** Defines {@link Repository}. */
/** Imports. Also so typedoc works correctly. */
import * as knex from 'knex'
import { Marshaller, MarshalFrom, ArrayOf } from 'raynor'
import * as cuid from 'cuid'
import { devOnly } from '@truesparrow/common-js'
import { startupMigration } from '@truesparrow/common-server-js'
impo... |
<reponame>KBM90/CityOnBot
import { InlineKeyboardMarkup } from "./inline";
import { Chat, User } from "./manage";
import { PassportData } from "./passport";
import { Invoice, SuccessfulPayment } from "./payment";
export namespace Message {
interface ServiceMessage {
/** Unique message identifier inside this chat... |
import * as bitcoin from 'bitcoinjs-lib'
import * as bip39 from 'bip39'
import * as bip32 from 'bip32'
import ElectrumClient from 'electrum-client'
import accumulative from 'coinselect/accumulative'
import split from 'coinselect/split'
import Axios from 'axios'
import BigNumber from 'bignumber.js'
import RNSecureKeySto... |
<reponame>anshumanbiswal26121981/webdevelopment_certification
/*
* This is a TypeScript port of the original Java version, which was written by
* <NAME> as described in
* https://github.com/HdrHistogram/HdrHistogram
* and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero... |
<reponame>balciseri/xswf
import { IMultinameInfo } from "./multiname";
export enum InstructionCode {
add = 0xa0,
add_i = 0xc5,
astype = 0x86,
astypelate = 0x87,
bitand = 0xa8,
bitnot = 0x97,
bitor = 0xa9,
bitxor = 0xaa,
call = 0x41,
callmethod = 0x43,
callproperty = 0x46,
callproplex = 0x4c,
... |
<filename>src/renderPage.node.ts<gh_stars>0
import devalue from 'devalue'
import { getErrorPageId, getPageIds, route, isErrorPage, loadPageRoutes, getFilesystemRoute } from './route.shared'
import { renderHtmlTemplate, isHtmlTemplate } from './html.node'
import { getViteManifest, ViteManifest } from './getViteManifest.... |
<filename>src/js/utils/CSGMesh.ts<gh_stars>0
/**
*
* Copyright (c) 2011 <NAME> (http://madebyevan.com/), under the MIT license.
* THREE.js rework by thrax
*
* # class CSG
* Holds a binary space partition tree representing a 3D solid. Two solids can
* be combined using the `union()`, `subtract()`, and `intersect(... |
import { Mesh, NearestFilter, LinearFilter, Vector2, BoxGeometry, Color, MeshBasicMaterial, Group, MeshLambertMaterial, TextureLoader, Object3D, OrthographicCamera, PerspectiveCamera, Scene, AmbientLight, DirectionalLight, WebGLRenderer, Geometry, LineBasicMaterial, Vector3, LineSegments, } from "three";
import { Orbi... |
<filename>src/Cubes.ts
import { player, format } from "./Synergism"
import { achievementaward } from "./Achievements"
import { CalcECC } from "./Challenges"
import { calculateCubeBlessings, calculateSummationNonLinear } from "./Calculate"
import { upgradeupdate } from "./Upgrades"
import { revealStuff } from "./UpdateH... |
// Copyright (c) 2020 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 * as Common from '../../common/common.js';
import * as Host from '../../host/host.js';
import * as Platform from '../../platform/platform.js';
... |
<reponame>jakebailey/focus-dt<filename>src/github.ts<gh_stars>1-10
import { AsyncQuery, fn, from, fromAsync } from "iterable-query";
import { IssuesListCommentsResponseItem, Octokit, Options, ProjectsListCardsResponseItem, ProjectsListColumnsResponseItem, ProjectsListForRepoResponseItem, PullsGetResponse, PullsGetResp... |
<filename>src/service/transaction/reserve.ts<gh_stars>0
/**
* 予約取引サービス
*/
import * as moment from 'moment';
import * as factory from '../../factory';
import { MongoRepository as ActionRepo } from '../../repo/action';
import { MongoRepository as TransactionRepo } from '../../repo/assetTransaction';
import { MongoRepo... |
<gh_stars>0
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamingDelegate = void 0;
const child_process_1 = require("child_process");
const ... |
// @ts-nocheck
import { Line3, Plane, Triangle, Vector3 } from 'three'
/**
* Ported from: https://github.com/maurizzzio/quickhull3d/ by <NAME> (https://github.com/maurizzzio)
*/
const Visible = 0
const Deleted = 1
const _v1 = new Vector3()
const _line3 = new Line3()
const _plane = new Plane()
const _closestPoint =... |
<reponame>ytchang05/N-lang
import * as ast from '../grammar/ast'
import { displayType } from '../utils/display-type'
import { TypeChecker } from './checker'
import { Module } from './modules'
import NType, * as types from './n-type'
interface ScopeContext {
asStatement?: boolean
functionBody?: boolean
}
export cl... |
/// <reference path="_generated/abilities.d.ts" />
/// <reference path="_generated/units.d.ts" />
interface CDOTA_Ability_Lua {
/**
* Special Values for this ability.
*
* *Only use enums or literal values.*
*/
SpecialValues: AbilitySpecials;
/**
* Define all KV values for your ability here.
*
* *Only ... |
import Doc, { JSDOM, CONSOLE } from '../../Template/dom';
import { ProjectorMixin } from '@dojo/framework/widget-core/mixins/Projector';
// then
import { indieAuthProvider, indieAuthProviders, indieAuthMeRes, indieAuthData } from './interfaces';
import { authResponse } from '../../Request/interfaces';
import has from '... |
<filename>src/observer/index.spec.ts
import {
addPropertyWatcher,
defineReactiveProperty,
extractObservableFromProperty,
navigateToPropertyPath,
observe,
removePropertyWatcher,
} from '../../src/observer';
import { arrayMethods } from '../../src/observer/array';
import ComputedObservable from '../../src/obs... |
<reponame>poldown/grafana
// Libraries
import { map, throttleTime } from 'rxjs/operators';
import { identity } from 'rxjs';
import { ActionCreatorWithPayload, PayloadAction } from '@reduxjs/toolkit';
import { DataSourceSrv } from '@grafana/runtime';
import { RefreshPicker } from '@grafana/ui';
import {
AbsoluteTimeRa... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
/* eslint-disable max-len */
/**
* @interface Theme
* @subcategory Frontend
* @description
* Entire AdminBro interface is build with
* [styled-components]{@link https://styled-components.com/} backed by
* [styled-system]{@link https://styled-system.com/}. The core of
* the style information is the Theme. It is b... |
import { GenericApiResponse } from "api/ApiResponses";
import DatasourcesApi from "api/DatasourcesApi";
import { Datasource } from "entities/Datasource";
import { Plugin } from "api/PluginApi";
import {
ReduxActionErrorTypes,
ReduxActionTypes,
WidgetReduxActionTypes,
} from "constants/ReduxActionConstants";
impor... |
<filename>bindings/typescript/worker.ts
import {
Table, Vector, visitor, type, enum_
} from "apache-arrow";
import {
loadPerspective
} from "./psp.async";
const Module = loadPerspective({
wasmJSMethod: "native-wasm",
LOGGING: {
/* PSP_LOG_TIME: true,
PSP_LOG_STORAGE_RESIZE: true,
PSP_LOG_SCHEMA_GN... |
<filename>src/processTemplate.ts
import {
cloneNodeWithoutChildren,
getNextSibling,
newNonTextNode,
newTextNode,
getCurLoop,
isLoopExploring,
logLoop,
} from './reportUtils';
import { runUserJsAndGetRaw } from './jsSandbox';
import {
Node,
TextNode,
ReportData,
Context,
CreateReportOptions,
Im... |
<reponame>vmarkushin/ganache-core
import { Tipset } from "./things/tipset";
import { BlockHeader } from "./things/block-header";
import { CID } from "./things/cid";
import { RootCID } from "./things/root-cid";
import { Quantity, utils } from "@ganache/utils";
import Emittery from "emittery";
import { DealInfo } from ".... |
/*
* 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 to in writing, software
* distributed u... |
import {
base64ToUint8array, ecSignatureToSRVhex, hexStringToArray, hexStringToUint8, logger, pemOrBase64Orbase64urlToString, SignatureSRV,
stringToArray,
uint8arrayToBase64,
uint8ToBn,
uint8toBuffer,
uint8tohex
} from "./utils";
import {Asn1Der} from "./DerUtility";
import {CURVE_SECP256k1, CUR... |
<reponame>lukadriel7/quasar-extras-svg-icons<gh_stars>1-10
/* Icomoon Free Icons v0.0.0 */
export declare const icomoonFreeHome: string;
export declare const icomoonFreeHome2: string;
export declare const icomoonFreeHome3: string;
export declare const icomoonFreeOffice: string;
export declare const icomoonFreeNewspape... |
<gh_stars>0
/*
Copyright 2019 Adobe
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in
accordance with the terms of the Adobe license agreement accompanying
it. If you have received this file from a source other than Adobe,
then your use, modification, or distribution of it requ... |
//@ts-nocheck
import React, {
useCallback,
useRef,
useMemo,
useReducer,
useState,
} from 'react';
import { Tooltip, Table, Input, Row, Col, Button, ConfigProvider } from 'antd';
import {
FilterOutlined,
SearchOutlined,
CloseOutlined,
ReloadOutlined,
} from '@ant-design/icons';
import { ConfigProviderP... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------... |
<reponame>MetacatLedger/coc-tsserver<gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------... |
import { CoinFamily } from './base';
export enum NetworkType {
MAINNET = 'mainnet',
TESTNET = 'testnet',
}
export abstract class BaseNetwork {
public abstract readonly name: string;
public abstract readonly type: NetworkType;
public abstract readonly family: CoinFamily;
public abstract readonly explorerUr... |
<filename>web/src/regression/codeintel.test.ts
import expect from 'expect'
import { describe, before, after, test } from 'mocha'
import * as path from 'path'
import { range } from 'lodash'
import { ElementHandle } from 'puppeteer'
import { map } from 'rxjs/operators'
import * as child_process from 'mz/child_process'
im... |
import { Promise } from "es6-promise";
import {
ContextInfo,
List,
SPTypes,
Types
} from "gd-sprest";
/**
* The interface for the data.
*/
export interface IData {
Title: string;
County: string;
State: string;
}
/**
* Data Source
*/
export class Data {
/**
* Properties
*... |
import 'source-map-support/register';
import * as crypto from 'crypto';
import * as fs from 'fs';
import * as path from 'path';
import * as querystring from 'querystring';
import http from 'axios';
import * as ws from 'websocket';
const MINUTE = 60000;
const INTERVAL = 1000;
const FACTOR = 1.5;
const TOKEN = '.';
c... |
const vi = {
deposit: 'Nạp',
Deposit: 'Nạp',
withdraw: 'Rút',
Withdraw: 'Rút',
withdraw_token: 'Rút Token',
swap: 'Giao dịch',
Swap: 'Giao dịch',
exchange_tokens: 'Exchange Tokens',
pool: 'Pool',
Pool: 'Pool',
pools: 'Pools',
Pools: 'Pools',
Quiz: 'Câu hỏi',
no_tokens_deposited: 'Không có to... |
<reponame>tesYolan/WebSpeechRecorderNg
import {DFTFloat32} from '../../math/dft';
import {DSPUtils} from '../../dsp/utils'
import {CSSUtils} from '../../utils/css_utils'
import {Marker, Point} from './common';
import {Component, ElementRef, ViewChild} from "@angular/core";
import {AudioCanvasLayerComponent} from "./aud... |
<gh_stars>0
interface iCountry { name:string};
export const CountryList : iCountry[] = [
{name:"Germany"},
{name:"Afghanistan"},
{name:"Albania"},
{name:"Algeria"},
{name:"Andorra"},
{name:"Angola"},
{name:"Antigua and Barbuda"},
{name:"Argentina"},
{name:"Armenia"},
{name:"Aruba"},
{name:"Australia"},
{na... |
<filename>src/blueprint/blueprint-item.ts
import { Blueprint } from "./blueprint";
import { Vector2 } from "../vector2";
import { DrawHelpers } from "../drawing/draw-helpers";
import { BuildableElement } from "../b-export/b-element";
import { UiSaveSettings } from "../b-export/b-ui-screen";
import { Orientation } ... |
<filename>src/classes/DiscordWebhook.ts
import Bot from './Bot';
import { XMLHttpRequest } from 'xmlhttprequest-ts';
import TradeOfferManager, { TradeOffer } from 'steam-tradeoffer-manager';
import log from '../lib/logger';
import Currencies from 'tf2-currencies';
import { parseJSON } from '../lib/helpers';
import MyH... |
<gh_stars>0
import path from 'path'
import { ITag } from '../src_editor/runtime/T'
const validTags = ['p', 'subtitle', 'section', 'br', 'code', 'asciimath', 'youtube',
'title', 'module', 'lesson', 'shortdesc', 'break', 'drill', 'key', 'run']
export class LessonToITags {
public assetsURI: string = ''
pr... |
<gh_stars>100-1000
// Copyright 2019 <NAME>
//
// 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... |
<reponame>lume/autolayout<gh_stars>100-1000
import parser from './parser/parser.js';
import parserExt from './parser/parserExt.js';
import Attribute from './Attribute.js';
import Relation from './Relation.js';
const Orientation = {
HORIZONTAL: 1,
VERTICAL: 2,
ZINDEX: 4,
};
/**
* Helper function that inserts equal... |
<filename>server/src/server.ts
/*
* 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 to... |
<reponame>datalayer-externals/hpcc-visualization
import { HTMLWidget } from "@hpcc-js/common";
import { AbsoluteSurface } from "@hpcc-js/layout";
import { promiseTimeout } from "@hpcc-js/util";
import { map as d3Map } from "d3-collection";
import * as _GoogleMapsLoader from "google-maps";
const GoogleMapsLoader = _Goo... |
<reponame>kyleboyle/turnilo<gh_stars>1-10
/*
* Copyright 2015-2016 Imply Data, Inc.
* Copyright 2017-2018 Allegro.pl
*
* 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... |
<reponame>santteegt/influme-mobile
import { Component, ViewChild, OnInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
import { RadSideDrawerComponent } from "nativescript-ui-sidedrawer/angular";
import { RadSideDrawer } from 'nativescript-ui-sidedrawer';
import { RouterExtensions } from... |
<filename>src/pages/game/levels.ts
import level1Thumb from './assets/images/thumbnails/level_1_thumb.webp';
import level2Thumb from './assets/images/thumbnails/level_2_thumb.webp';
import level3Thumb from './assets/images/thumbnails/level_3_thumb.webp';
import level4Thumb from './assets/images/thumbnails/level_4_thumb.... |
<filename>src/impl/StyleImpl.ts
import {CssSelector, Extended} from "../api/CoreTypes";
import {
BorderImage_Object, Border_StyleType, GridTemplateAreas_StyleType,
GridTemplateAreaDefinition, GridTrack, GridTemplateAxis_StyleType, Marker_StyleType, Styleset,
CustomVar_StyleType, VarTemplateName, BoxShadow_... |
/* eslint-disable @typescript-eslint/no-namespace,import/export */
/**
* Flow Interoperability Project (flowinterop.org)
* Flow Runner
* Copyright (c) 2019, 2020 Viamo Inc.
* Authored by: <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa... |
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import { Map, fromJS } from 'immutable';
import { ConnectableObservable } from 'rxjs/observable/ConnectableObservable';
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/... |
<reponame>fangxm233/messyBot
import './prototypes/ConstructionSite'
import './prototypes/RoomPosition';
import './prototypes/RoomVisual';
import './prototypes/RoomPropertiesForAllStructureTypes';
import './prototypes/Structures';
import './prototypes/Room';
import './prototypes/Creep';
import './prototypes/prototype.Wh... |
// Peer dependencies
import * as cdk from '@aws-cdk/core';
import * as certificatemanager from '@aws-cdk/aws-certificatemanager';
import * as cloudfront from '@aws-cdk/aws-cloudfront';
import * as origins from '@aws-cdk/aws-cloudfront-origins';
import * as logs from '@aws-cdk/aws-logs';
import * as ecs from '@aws-cdk/a... |
<filename>src/draw-data/draw-data.component.ts
/**
* @license
* Copyright © 2017-2018 OSIsoft, LLC. All rights reserved.
* Use of this source code is governed by the terms in the accompanying LICENSE file.
*/
import { Component, Input, OnChanges, ElementRef, Inject, OnInit, ViewChild, Renderer2, OnDestroy, ChangeDe... |
<filename>types/react-table/index.d.ts
// Type definitions for react-table 7.0
// Project: https://github.com/tannerlinsley/react-table
// Definitions by: <NAME> <https://github.com/ggascoigne>,
// <NAME> <https://github.com/stramel>
// gargroh <https://github.com/gargroh>
// ... |
<filename>src/app/loadout/loadout.service.ts<gh_stars>0
import copy from 'fast-copy';
import _ from 'lodash';
import { queueAction } from '../inventory/action-queue';
import { SyncService } from '../storage/sync.service';
import { DimItem } from '../inventory/item-types';
import { DimStore, StoreServiceType } from '../... |
<filename>convertToJson.ts
import fs from 'fs';
import libxmljs, { Element } from "libxmljs";
import _ from 'lodash';
// import hepburn from "hepburn";
import verbs from 'jp-conjugation';
import { toRomaji, isRomaji } from 'wanakana';
import * as numOccurences from "./numOccurencesFromExamples"
import * as entities_me... |
import * as Matter from "matter-js";
import BotBehavior from "../../../libs/class/bot-behavior";
import Broadcaster from "../../../libs/class/networking/broadcaster";
import Coordinator from "../../../libs/class/networking/coordinator";
import { byId } from "../../../libs/class/system";
import SpriteTextureComponent fr... |
// DEBUG: import { b2Assert } from "../common/b2_settings.js";
import { b2_maxFloat, b2_angularSlop, b2_maxManifoldPoints } from "../common/b2_settings.js";
import { b2Min, b2Vec2, b2Rot, b2Transform } from "../common/b2_math.js";
import { b2ContactFeatureType, b2ContactID } from "./b2_collision.js";
import { b2Manifol... |
<gh_stars>0
import * as d3 from 'd3';
import './GroupedBarChart.scss';
import {Utils} from "./../../Utils";
import {Legend} from './../Legend/Legend';
import {Slider} from './../Slider/Slider';
import {ChartComponent} from "./../../Interfaces/ChartComponent";
import { ChartComponentData } from '../../Models/ChartCompon... |
<gh_stars>1-10
import CustomError = require("./Error");
import utils = require("./utils");
import Internal = require("./Internal");
import {Document, DocumentObjectFromSchemaSettings} from "./Document";
import {Model} from "./Model";
import { DynamoDB } from "aws-sdk";
const internalCache = Internal.Schema.internalCach... |
/* eslint-disable jsx-a11y/anchor-is-valid */
/* eslint-disable no-throw-literal */
import React, { Component } from 'react';
import { Scene, PerspectiveCamera, Mesh, WebGLRenderer, AmbientLight, DirectionalLight, Vector3, Color, Geometry, Face3, MeshLambertMaterial, Matrix4, Euler, Raycaster, Vector2 } from 'three';
i... |
<gh_stars>100-1000
import { BuildCtx, figplugDir } from './ctx'
import { Lib, StdLib, UserLib, LibProps, Product, IncrementalBuildProcess } from './pkgbuild'
import * as os from 'os'
import { existsSync, watch as watchFile } from 'fs'
import * as Html from 'html'
import { jsonfmt, rpath, fmtDuration, parseQueryString }... |
import { getConnection, getManager } from "typeorm";
import { createHash, randomBytes } from "crypto";
import { Pupil } from "../common/entity/Pupil";
import { Student } from "../common/entity/Student";
import { Match } from "../common/entity/Match";
import { Screener } from "../common/entity/Screener";
import { Screen... |
import { default as TarjanGraphConstructor, Graph as TarjanGraph } from "tarjan-graph";
import { encode64 } from "df/common/protos";
import { JSONObjectStringifier, StringifiedMap } from "df/common/strings/stringifier";
import * as adapters from "df/core/adapters";
import { AContextable, Assertion, AssertionContext, I... |
<reponame>justaugustus/kui
/*
* Copyright 2017 The Kubernetes Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
import * as BABYLON from 'babylonjs';
import * as Materials from 'babylonjs-materials';
import * as GUI from 'babylonjs-gui';
import { BaseGameGUI, PlayerGamePhase, CardGame, CardStack, StackDirection, StackType, Card, Player, PlayerListUI, VotingUI, BaseCardDeck} from './CardGame';
import { MixMaterial } from 'bab... |
import { IpcService } from "./IpcService";
import AppPaths from './AppPaths';
import * as electron from 'electron';
import * as path from 'path';
import * as imagemagick from 'imagemagick-darwin-static';
import * as graphicsmagick from 'graphicsmagick-static';
import * as os from 'os';
import * as gm from 'gm';
impo... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {InitialStylingFlags} from './interfaces/definition';
import {LElementNode} from './interfaces/node';
import ... |
// tslint:disable:member-ordering
import { Component, ViewChild, TemplateRef } from '@angular/core';
import { tap } from 'rxjs/operators';
import { ApiService } from '~/app/data/api.service';
import { addToWorkspace } from '~/app/data/util';
import { WorkspaceService } from '~/app/data/workspace.service';
import { Deta... |
<filename>nodejs/eks/cluster.ts
// 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
//
// Unle... |
/*
* Copyright (c) 2018 <NAME> (<EMAIL>).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
/** Gnome libs imports */
import * as Meta from 'meta';
import * as Shell from 'shell';
import {
buildMetaWindowIdentifier,
MsWindow,
MsWindowMatchingInfo,
} from 'src/layout/msWorkspace/msWindow';
import { MsWorkspace } from 'src/layout/msWorkspace/msWorkspace';
import { MsDndManager } from 'src/manager/ms... |
<filename>Collision/b2Distance.ts<gh_stars>1-10
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* 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.
* Permission is granted t... |
<gh_stars>10-100
import Physics, {
Vec2, Spring, Stick, Shape, AnyPhysicsObject, PinPoint, CollisionData, Body,
} from '../../src/physics';
import EditorInterface from './interfaces/editorInterface';
import './serialise/persistence';
import startPauseControlsFunction from './addons/startPauseControls';
import Modes ... |
import { useEffect, useState } from "react";
import styled from "styled-components";
import "./App.css";
import Countdown from "react-countdown";
import { Button, CircularProgress, Snackbar } from "@material-ui/core";
import Alert from "@material-ui/lab/Alert";
import * as anchor from "@project-serum/anchor";
import ... |
import { ViewRef, NgZone, ViewChild, ViewContainerRef, Type, ChangeDetectorRef, ChangeDetectionStrategy,
ComponentRef, EventEmitter, OnInit, AfterViewInit, Injectable, ComponentFactoryResolver, ComponentFactory,
Component, Injector, Inject, Output} from '@angular/core';
import { IdentifiableItf, IdNamePairItf, Clien... |
// Libaries
import _ from 'lodash';
// Constants
import { DEFAULT_ANNOTATION_COLOR } from '@grafana/ui';
import { GRID_CELL_HEIGHT, GRID_CELL_VMARGIN, GRID_COLUMN_COUNT, REPEAT_DIR_VERTICAL } from 'app/core/constants';
// Utils & Services
import { Emitter } from 'app/core/utils/emitter';
import { contextSrv } from 'app... |
<reponame>Subhra264/joplin
import { useEffect, useState, useRef, useCallback } from 'react';
import { AppState } from '../app';
import InteropService from '@joplin/lib/services/interop/InteropService';
import { stateUtils } from '@joplin/lib/reducer';
import CommandService from '@joplin/lib/services/CommandService';
im... |
<reponame>FanchTheSystem/matrix-react-sdk
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2018 New Vector Ltd
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with th... |
import {DanmakuManager} from "./danmaku/danmakuManager";
import {DanmakuItem} from "./danmaku/DanmakuItem";
import {EventBase} from "./eventBase";
declare function require(module: string);
declare const Hls: any;
const style = require('./player.css');
let DEBUG = false;
function log(info) {
if (DEBUG) {
... |
<filename>node_modules/sugar/sugar-extended.d.ts
// Extended type definitions for Sugar v2.0.4
// Project: https://sugarjs.com/
// Definitions by: <NAME> <<EMAIL>>
/// <reference path="sugar.d.ts" />
interface ArrayConstructor {
construct<T>(n: number, map: (i: number) => any): T[];
create<T>(obj?: number|ArrayLi... |
<reponame>kavinkumarrajendran/ej2-javascript-ui-controls
/**
*
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import { EventHandler, Internationalization } from '@syncfusion/ej2-base';
import { rippleEffect } from '@syncfusion/ej2-base';
import { removeClass, addClass, attributes, HijriParser } from '@syn... |
import { dlog, userWarning } from "../framework/logging"
import { registerHandlers } from "../framework/events"
import { arrayRemoveValue, isEmpty, shallowEquals, swap } from "../framework/util"
import {
add,
addAssign,
Area,
contract,
copy,
getCenter,
isIn,
multiply,
shiftNegative,
subtract,
} from... |
<filename>src/Player.ts
import { Client, Collection, GuildResolvable, Snowflake, User, VoiceState, Intents } from "discord.js";
import { TypedEmitter as EventEmitter } from "tiny-typed-emitter";
import { Queue } from "./Structures/Queue";
import { VoiceUtils } from "./VoiceInterface/VoiceUtils";
import { PlayerEvents, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.