text stringlengths 9.82k 47.8k |
|---|
import { LogicalBoard } from './LogicalBoard';
import { Vertex, Color } from './Vertex';
import { paintCanvas } from './wood.js';
import { setRandomSeed, pseudoRandom } from './cheapSeed';
const starPoints:{[index:number] : [number,number][]} = {
9: [[5,5]],
13: [[4,4],[10,4],[4,10],[10,10]],
19: [[4,4],[10,4],[1... |
import {
User,
StatusUpdate,
Action,
SESSION_ID_CLAIM,
device,
RemoteActions,
} from '@casual-simulation/causal-trees';
import {
CausalRepoClient,
CurrentVersion,
treeVersion,
VersionVector,
} from '@casual-simulation/causal-trees/core2';
import {
AuxCausalTree,
auxTree,
... |
<reponame>yxsu/nni
/**
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including witho... |
import {Observable} from 'rxjs';
import {AGG, COLUMN_TYPE, SEMTYPE, TYPE} from './const';
/**
* DataFrame is a high-performance, easy to use tabular structure with
* strongly-typed columns of different types.
* In the API, the terms "Table" and "DataFrame" are used interchangeably.
* See usage samples: https://pub... |
/**
* @module PvsioProcess
* @author <NAME>
* @date 2020.04.02
* @copyright
* Copyright 2019 United States Government as represented by the Administrator
* of the National Aeronautics and Space Administration. All Rights Reserved.
*
* Disclaimers
*
* No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WIT... |
/* Copyright (c) 2021, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the followin... |
import type { MediaEntity, Status } from 'twitter-d'
export interface SpecialStatus extends Status {
quote_count?: number
reply_count?: number
}
export interface MediaEntityExtend extends MediaEntity {
ext_alt_text?: string
}
export interface Errors {
errors: {
code: number
message: string
}
}
exp... |
import { Injectable , Injector} from '@angular/core';
import { HttpClient, HttpHeaders , HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { Md5 } from 'ts-md5/dist/md5';
import { Data, IdNamePair } from '../src/app/@recolinli... |
<filename>src/games/amazons.ts
import { GameBase, IAPGameState, IClickResult, IIndividualState, IValidationResult } from "./_base";
import { APGamesInformation } from "../schemas/gameinfo";
import { RectGrid } from "../common";
import { APRenderRep } from "@abstractplay/renderer/src/schemas/schema";
import { Directions... |
<filename>src/type.ts
import { getAirPower, MASTER_URL } from "./utils";
import { Lang } from "./lang";
import { Image, fetchImage } from "./canvas";
export type Theme = "dark" | "74lc" | "74mc" | "74sb" | "official" | "dark-ex";
export type Range = 0 | 1 | 2 | 3 | 4;
export type Speed = 0 | 5 | 10 | 15 | 20;
export t... |
import RG from './rg';
import {Entity} from './entity';
import {ChunkManager} from './chunk-manager';
import {EventPool} from './eventpool';
import {Engine} from './engine';
import {GameMaster} from './game.master';
import {GameObject} from './game-object';
import {FactoryWorld} from './factory.world';
import {Random}... |
import * as ast from './python-parser';
import { Block, ControlFlowGraph } from './control-flow';
import { Set, StringSet } from './set';
import { DefaultSpecs, JsonSpecs, FunctionSpec, TypeSpec } from './specs';
import { SymbolTable } from './symbol-table';
class DefUse {
constructor(
public DEFINITION = new R... |
/** Gnome libs imports */
import * as Clutter from 'clutter';
import * as Gio from 'gio';
import * as GLib from 'glib';
import * as Meta from 'meta';
import * as Shell from 'shell';
import { MsWindow } from 'src/layout/msWorkspace/msWindow';
import {
MsWorkspace,
MsWorkspaceState,
} from 'src/layout/msWorkspace... |
import pump = require('pump')
import { resolve } from 'url'
import { CookieJar } from 'tough-cookie'
import { compose, Middleware, Composed } from 'throwback'
import { request as httpRequest, IncomingMessage, ClientRequest, Agent } from 'http'
import { request as httpsRequest, RequestOptions } from 'https'
import { con... |
import { BadRequestException, Dependencies, forwardRef, Inject, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { plainToClass } from 'class-transformer';
import { Company } from '../../companies/entities/Company.entity';
import { CustomerRepository } from '../../customers... |
//
import * as _ from './lodash'
import * as core from './core'
import * as rkeys from './rkeys'
import * as iex from './iex'
import * as webull from './webull'
import * as yahoo from './yahoo'
import * as hours from './hours'
export function applyFull(
{ symbol, quote, wbticker, wbquote, instrument, yhquote, iexite... |
import { loadModules } from 'esri-loader';
// tslint:disable-next-line:ban-types
const sceneViewResolvers: Function[] = [];
let sceneView: __esri.SceneView;
// tslint:disable-next-line:ban-types
const mapViewResolvers: Function[] = [];
let mapView: __esri.MapView;
export function getSceneView(): Promise<__esri.SceneV... |
import { Component, Input, NgModule, OnInit, OnDestroy, ViewChild, ElementRef, HostListener, NgZone } from '@angular/core';
// Components
import { IonicModule } from '@ionic/angular';
import { FhemComponentModule } from '../fhem-component.module';
import { PickerComponentModule } from '../../picker/picker.component';
... |
<reponame>cassinius/graphinius
import {
DIR,
GraphMode,
GraphStats,
NextArray,
MinAdjacencyListArray,
MinAdjacencyListDict,
} from "../interfaces";
import { IBaseNode, BaseNode } from "./BaseNode";
import { BaseEdgeConfig, IBaseEdge, BaseEdge } from "./BaseEdge";
import { prepareBFSStandardConfig, BFS, BFS_... |
// PPU: Picutre Processing Unit
// PPU scrolling
// https://wiki.nesdev.com/w/index.php/PPU_scrolling
import {Const} from '../const'
import {Address, Byte} from '../types'
import {kPaletColors, kStaggered, kFlipXBits} from './const'
import {HEventType, HEvents, HStatusMgr} from './hevent'
import {MirrorMode, PpuReg, ... |
<reponame>Shiba-Kar/DefinitelyTyped
// Type definitions for non-npm package nova-editor-node 4.1
// Project: https://docs.nova.app/api-reference/
// Definitions by: <NAME> <https://github.com/apexskier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.3
/// https://do... |
<filename>packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.ts
/**
* @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 {AST, BindingType, BoundTarget, I... |
export const internalProperties = ['pID','pName','pStart','pEnd','pClass','pLink','pMile','pRes','pComp','pGroup','pParent',
'pOpen','pDepend','pCaption','pNotes','pGantt','pCost','pPlanStart','pPlanEnd'];
export const getMinDate = function (pList, pFormat) {
let vDate = new Date();
vDate.setTime(pList[0].getStar... |
<reponame>cedric-vermeulen/aurelia
import {
camelCase, IContainer,
} from '@aurelia/kernel';
import {
AnyBindingExpression,
BindingMode,
BindingType,
IExpressionParser,
Char,
} from '@aurelia/runtime';
import { AttrSyntax, IAttributeParser } from './resources/attribute-pattern';
import { IAttrSyntaxTransfor... |
<reponame>mike-lischke/mysql-shell-plugins<filename>gui/frontend/src/tests/unit-tests/communication/ProtocolMrs.spec.ts
/*
* Copyright (c) 2022, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,... |
export type EvalContext = {
getResource: (name: string) => HTMLImageElement | string | null;
getCanvas: (n: number) => HTMLCanvasElement | null;
// getTempCanvas: () => HTMLCanvasElement | null;
getResult: (solution: boolean) => HTMLCanvasElement | null;
appendOutput: (s: string) => void;
solutionRun: boole... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License") you may
* not us... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
import { ActivityUnion, AniListError, Character, FuzzyDate, Media, MediaFormat, MediaListStatus, MediaRankType, MediaStatus, ModRole, PageInfo, Staff, Studio, User, UserFormatStatistic, UserStatisticTypes, UserStatusStatistic } from "../apis/anilist/AniListAPI.js";
import { ActionRowBuilder } from "../discord/builders/... |
<filename>packages/auth/src/team/Team.ts
import { Base64, randomKey, signatures, symmetric } from '@herbcaudill/crypto'
import { EventEmitter } from 'events'
import { generateStarterKeys } from '../invitation/generateStarterKeys'
import { keysetSummary } from '../util/keysetSummary'
import * as chains from '@/chain'
i... |
import { Component, HostListener, Injectable } from '@angular/core';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { interval } from 'rxjs';
const FileSystem = window["nodeRequire"]("fs");
const Path = window["nodeRequire"]("path");
const OperatingSystem = window["nodeRequire"]("os");
const... |
<gh_stars>1-10
import * as Blockly from 'blockly';
import * as BlocklyJavaScript from 'blockly/javascript';
// import * as SwaggerClient from 'swagger-client';
interface operations{
controller: any,
id:any
}
interface fieldXmlFunctions{
id: string,
gui:string,
methodAPI:any
}
interface KV{
key:string,
va... |
<gh_stars>0
/**
* ApplicationInsights.ts
* @copyright Microsoft 2018
*/
import {
IConfig, Util, PageViewPerformance, IAppInsights, PageView, RemoteDependencyData, Event as EventTelemetry, IEventTelemetry,
TelemetryItemCreator, Metric, Exception, SeverityLevel, Trace, IDependencyTelemetry,
IExcep... |
import * as pathlib from 'path';
import * as vscode from 'vscode';
import { EOL } from 'os';
import { SharedVarOfExec } from './SharedVarOfExec';
import { AbstractTest } from './AbstractTest';
import { TaskPool } from './util/TaskPool';
import { ExecutableRunResultValue, RunningExecutable } from './RunningExecutable';... |
import Vue from 'vue'
import { ActionTree } from 'vuex'
import * as types from './mutation-types'
import { formatBreadCrumbRoutes, isServer } from '@vue-storefront/core/helpers'
import { currentStoreView, localizedDispatcherRoute, localizedDispatcherRouteName } from '@vue-storefront/core/lib/multistore'
import { config... |
import { remove, createElement, closest, formatUnit, Browser } from '@syncfusion/ej2-base';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
import { DataManager } from '@syncfusion/ej2-data';
import { IGrid, IRenderer, NotifyArgs, VirtualInfo, IModelGenerator, InterSection } from '../base/interface';
import {... |
<reponame>Rostov1991/amcharts5
import * as am5 from "@amcharts/amcharts5";
import * as am5map from "@amcharts/amcharts5/map";
import am5geodata_worldLow from "@amcharts/amcharts5/geodata/worldLow";
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
// Create root element
// https://www.amcha... |
<filename>src/command.ts
// Copyright (c) 2019-2021 <NAME> <<EMAIL>>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDE... |
/*jslint node:true, nomen:true */
/*global it, describe, before, after */
import { matchObject, matchArray, setDefaults, resetDefaults } from "../src/searchts";
const should = require("should");
let data, searches;
data = [
{
name: "Alice",
fullname: "I am <NAME>",
age: 25,
birthday: new Date(1992, 1, 28),
... |
import { getRandomArrayItem, getRandomHexString, groupByProperty, isComponentColor } from '$lib/helpers';
import { namedColors } from '$lib/namedColors';
import type { ColorPalette, ComponentColor, CssColor, HslColor, HueRange, Result, RgbColor } from '$lib/types';
import { COMPONENT_COLORS } from '$lib/types';
const ... |
import EventEmitter from "event-emitter";
import {
extend,
borders,
uuid,
isNumber,
bounds,
defer,
createBlobUrl,
revokeBlobUrl,
} from "../../utils/core";
import EpubCFI from "../../epubcfi";
import Contents from "../../contents";
import { EVENTS } from "../../utils/constants";
import { Pane, Highlight, Underl... |
import { JSCodeshift } from 'jscodeshift';
import * as _ from 'lodash/fp';
const numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)((?:px|rem|%))?$/i;
export const subRegEx = /^(?<pre>.*?)(?<sub>__\d{1,}substitution__)(?<post>.*?)$/i;
const styledComponentsImportsToRemove = ['keyframes'];
export const styledComp... |
import {CodeHelper} from '../../../helpers/CodeHelper';
import {HTMLHelper} from '../../../helpers/HTMLHelper';
import {TextHelper} from '../../../helpers/TextHelper';
import {RequestHelper} from '../../../helpers/RequestHelper';
import {IProps, IState, DefaultProps, DefaultState, Base} from '../Base';
import {FullStac... |
import {
Component,
OnInit,
ChangeDetectionStrategy,
ViewChild,
AfterViewInit,
Input,
ElementRef
} from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { AnalysesService } from '@app/features/analysis/services/analysis.s... |
<reponame>akashic-games/db2asa
const g = require("@akashic/akashic-engine");
(<any>global).g = g;
import { Skin, Bone, BoneSet, Container, AnimeParams, Cell } from "@akashic-extension/akashic-animation";
import * as path from "path";
import * as fs from "fs-extra";
import * as sizeof from "image-size";
import * as recu... |
import { Component, OnInit, ViewEncapsulation, NgZone, ViewChild, ElementRef } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import {MatDialog} from '@angular/material/dialog';
import { DialogComponent } from '../shared/dialog/dialog.component';
import { TranslationServic... |
export function c2js(el: any, config?: c2js.Config, onReady?: c2js.OnReady) {
c2js.ready(() => { new c2js.Init(el, config, onReady); });
}
export namespace c2js {
export type Config = {
saveWith?: 'none' | 'cookie' | 'localStorage',
saveTime?: boolean,
speed?: { min?: number, max?: numb... |
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
#!/usr/bin/env node
/*****************************************************************************
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
* *
* Licensed under the Apache License, Version 2.0 (the "Lice... |
declare const Zotero: any
declare const Node: any
declare const Components: any
import { flash } from '../flash.ts'
import { Preferences as Prefs } from '../prefs.ts'
import { debug } from '../debug.ts'
import { JournalAbbrev } from '../journal-abbrev.ts'
import { kuroshiro } from './kuroshiro.ts'
const parser = requ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) <NAME>, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------------... |
<filename>projects/angular2-query-builder/src/lib/query-builder/query-builder.component.ts<gh_stars>1-10
import {
AbstractControl,
ControlValueAccessor,
NG_VALUE_ACCESSOR,
NG_VALIDATORS,
ValidationErrors,
Validator
} from '@angular/forms';
import { QueryOperatorDirective } from './query-operator.directive';... |
import { APIEvent } from 'homebridge';
import type { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig } from 'homebridge';
import { PLATFORM_NAME, PLUGIN_NAME } from './settings';
import { join } from 'path';
import { loadJson } from './magichome-interface/utils';
import { Switch } from './accessor... |
<gh_stars>0
import { IBaselineRPC, IBlockchainService, IRegistry, IVault, baselineServiceFactory, baselineProviderProvide } from '@baseline-protocol/api';
import { IMessagingService, messagingProviderNats, messagingServiceFactory } from '@baseline-protocol/messaging';
import { IZKSnarkCircuitProvider, IZKSnarkCompilati... |
import {
CLAIM_GAS_COST,
DEFAULT_GAS_PRICE_IN_GWEI,
EULERS_NUMBER,
INVALID_OUTCOME,
MarketReportingState,
MINIMUM_INVALID_ORDER_VALUE_IN_ATTO_DAI,
orderTypes,
SECONDS_IN_A_DAY,
SECONDS_IN_A_YEAR,
SubscriptionEventName,
WORST_CASE_FILL,
NewBlock,
MarketType,
MarketData,
OrderTypeHex,
Time... |
import {
AgChartOptions,
AgCartesianChartOptions,
AgPolarChartOptions,
AgHierarchyChartOptions,
AgCartesianAxisOptions,
AgBarSeriesOptions,
FontWeight,
AgChartLegendOptions,
AgChartPaddingOptions,
AgBaseChartOptions,
AgNavigatorOptions,
AgChartTooltipOptions,
AgChartC... |
<filename>src/psdWriter.ts
import { Psd, Layer, LayerAdditionalInfo, ColorMode, SectionDividerType, WriteOptions, Color, GlobalLayerMaskInfo } from './psd';
import {
hasAlpha, createCanvas, writeDataRLE, PixelData, LayerChannelData, ChannelData,
offsetForChannel, createImageData, fromBlendMode, ChannelID, Compression... |
declare class MLArrayBatchProvider extends NSObject implements MLBatchProvider {
static alloc(): MLArrayBatchProvider; // inherited from NSObject
static new(): MLArrayBatchProvider; // inherited from NSObject
readonly array: NSArray<MLFeatureProvider>;
readonly count: number; // inherited from MLBatchProvider
... |
enum Move {
Check,
Call,
Raise,
Fold
}
enum Stage {
PreFlop,
Flop,
Turn,
River
}
class Game {
deck: Deck;
players: Player[] = [];
playersInPlay: Player[] = [];
whoseTurn: number = 0;
dealer: number = 0;
smallBlind: number = 0;
bigBlind: number = 0;
currentBet: n... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Animate from 'rc-animate';
import { polyfill } from 'react-lifecycles-compat';
import Icon from '../Icon';
import { fullscreen, exitfullscreen, KeyCode, getStyle } from '../../utils';
import './styl... |
import { HttpResponseError } from '@taquito/http-utils';
import { DerivationType } from '@taquito/ledger-signer';
import { localForger } from '@taquito/local-forging';
import { InMemorySigner } from '@taquito/signer';
import { CompositeForger, RpcForger, Signer, TezosOperationError, TezosToolkit } from '@taquito/taquit... |
/**
* Copyright (c) 2020 <NAME>
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
// import * as fs from 'fs';
import Fuse from 'fuse.js';
import { TextDocument } from 'vscode-languageserver-textdocument';
import {
CallHierarchyItem, CompletionItem,
CompletionIt... |
/**
* query-interface.ts
*
* The "midium stage" for converting from an SQL ast to what the actual typescript types are.
* Everything that can be processed, that does **not** require access to the database is done.
* Also a plan of what to load exactly from the database is generated, so that the loading can be done... |
/**
* Custom element for the options UI
*
* @module els/app_main
*/
/** */
/*
* Copyright (c) 2015-2019, <NAME> All rights reserved.
* Licensed under the BSD-3-Clause
* https://opensource.org/licenses/BSD-3-Clause
* https://github.com/opus1269/screensaver/blob/master/LICENSE.md
*/
import {AppDrawerLayou... |
import VerovioWrapper from './utils/VerovioWrapper';
import { NewNote, VerovioMessage, VerovioResponse, EditorAction, Attributes, NoteTime } from './utils/Types';
import { uuidv4 } from './utils/random';
import { constants as c } from './constants';
import InsertModeHandler from './handlers/InsertModeHandler';
import ... |
import * as jspb from "google-protobuf"
export class BEIKE extends jspb.Message {
getCode(): number;
setCode(value: number): void;
getData(): BEIKE.DATA | undefined;
setData(value?: BEIKE.DATA): void;
hasData(): boolean;
clearData(): void;
getMsg(): string;
setMsg(value: string): void;
serializeBi... |
// ============================================================
// 旧暦計算処理
//
// 下記プログラムをもとに、TypeScript で書き換えて構築されました。
// ------------------------------------------------------------
// qreki.js: 旧暦計算サンプルプログラム rev. 1.1
// Coded by H.Takano (C)1993,1994
// Arranged for ECMAScript(ECMA-262) by <NAME> (C)1999
// http://kik... |
/*
* Buffer Controller
*/
import Events from '../events';
import EventHandler from '../event-handler';
import { logger } from '../utils/logger';
import { ErrorDetails, ErrorTypes } from '../errors';
import { getMediaSource } from '../utils/mediasource-helper';
import Fragment, { ElementaryStreamTypes } from '../load... |
<reponame>restorecommerce/libs<filename>packages/facade/src/gql/protos/graphql.ts
import {
GraphQLInputField,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLResolveInfo,
GraphQLSchema
} from "graphql";
import {
GraphQLEnumType,
GraphQLFieldConfig,
GraphQLFieldConfigMap,
GraphQLInputObjectTyp... |
<gh_stars>0
'use strict';
import * as assert from 'assert';
import { connect, Socket } from 'net';
import { crypt_md5, SDSConnection } from 'node-sds';
import { ContinuedEvent, DebugSession, InitializedEvent, OutputEvent, StoppedEvent, TerminatedEvent } from 'vscode-debugadapter';
import { DebugProtocol } from 'vscode... |
declare class PHAdjustmentData extends NSObject {
static alloc(): PHAdjustmentData; // inherited from NSObject
static new(): PHAdjustmentData; // inherited from NSObject
readonly data: NSData;
readonly formatIdentifier: string;
readonly formatVersion: string;
constructor(o: { formatIdentifier: string; form... |
import { Meta, Story } from '@storybook/react'
import React from 'react'
import { of } from 'rxjs'
import { LSIFUploadState } from '@sourcegraph/shared/src/schema'
import { WebStory } from '../../../../components/WebStory'
import { LsifIndexFields, LSIFIndexState, LsifIndexStepsFields } from '../../../../graphql-oper... |
import PropTypes from "prop-types";
import React, { ChangeEvent, FormEvent, ReactNode } from "react";
import {
BarGraph,
DataTable,
HelpPopover,
PlayerNameLabels,
} from "../components";
import useTitleBar from "../hooks/useTitleBar";
import { getCols, helpers, logEvent, toWorker, useLocalShallow } from "../util";
... |
<filename>PlatformGrafanaPlugins/Panels/toolsinsights/module.ts
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
import $ from 'jquery';
import moment from 'moment';
import * as FileExport from 'app/core/utils/file_export';
import { MetricsPanelCtrl } from 'ap... |
<filename>src/app/components/inputnumber/inputnumber.ts<gh_stars>0
import {NgModule,Component,ChangeDetectionStrategy, Input, ElementRef, ViewChild, OnInit, EventEmitter, Output, forwardRef, ViewEncapsulation, ChangeDetectorRef} from '@angular/core';
import {CommonModule} from '@angular/common';
import {InputTextModul... |
// import * as Kalidokit from "kalidokit";
import { Hand } from "kalidokit";
import { matrix, multiply, inv, transpose } from 'mathjs'
import { drawConnectors, drawLandmarks } from '@mediapipe/drawing_utils';
import { HAND_CONNECTIONS, NormalizedLandmarkListList, Results } from '@mediapipe/hands';
import { calcDistance... |
<reponame>googleinterns/step189-2020
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
<reponame>facet-ai/ag-psd
import { TextStyle, LayerTextData, ParagraphStyle, Font, AntiAlias, TextGridInfo, Justification, Color } from './psd';
interface Adjustments {
Axis: number[];
XY: number[];
}
interface TypeValues {
Type: number;
Values: number[];
}
interface ParagraphProperties {
Justifica... |
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import Icon from 'antd/lib/icon';
import Select, { OptionProps } from 'antd/lib/select';
import Radio, { RadioChangeEvent } from 'antd/lib/radio';
import Checkbox, { CheckboxC... |
<gh_stars>0
export const ROLES: string[] = [
'Rockerboy',
'Solo',
'Netrunner',
'Tech',
'Medtech',
'Media',
'Exec',
'Lawman',
'Fixer',
'Nomad',
];
export const CULTURAL_REGIONS: string[] = [
'North American',
'South/Central American',
'Western European ',
'Eastern European',
'Middle Easter... |
<reponame>Kerwin-L/labelbee-1
import { isNumber } from 'lodash';
import { EDragStatus, EGrowthMode, ELang } from '../../constant/annotation';
import EKeyCode from '../../constant/keyCode';
import { BASE_ICON, COLORS_ARRAY } from '../../constant/style';
import ActionsHistory from '../../utils/ActionsHistory';
import Att... |
import { calcPercentOfNum, calcWhatPercent, percentChance, randInt, reduceNumByPercent, round, Time } from 'e';
import { KlasaUser } from 'klasa';
import { Bank } from 'oldschooljs';
import { SkillsEnum } from 'oldschooljs/dist/constants';
import { checkUserCanUseDegradeableItem } from '../degradeableItems';
import { ... |
<filename>src/component/helper/MapDraw.ts
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License,... |
<filename>packages/router/src/route-tree.ts
/* eslint-disable @typescript-eslint/restrict-template-expressions */
import { ILogger, resolveAll, onResolve, Writable } from '@aurelia/kernel';
import { CustomElementDefinition, CustomElement } from '@aurelia/runtime-html';
import { IRouteContext, $RecognizedRoute } from '... |
<filename>src/eosjs2-serialize.ts
// copyright defined in eosjs2/LICENSE.txt
'use strict';
import { Abi, BlockTaposInfo } from './eosjs2-jsonrpc';
import * as numeric from './eosjs2-numeric';
export interface Field {
name: string;
typeName: string;
type: Type;
}
export interface Type {
name: string;
alias... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext, IconProps } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<path d="M80,56.00005h24a0,0,0,0,1,0,0v72a24,24,0,0,1-24,24h0a24,24,0,0,1-24... |
import {
areIdenticalVoxelOctreesOnSameMemory, cloneVoxelOctreesOnDifferentMemory, convertVoxelOctreeDepthToSide,
readVoxelMaterialAddressOfVoxelOctreeAtPosition, VOXEL_OCTREE_BYTES_PER_ELEMENT, VoxelOctree,
writeVoxelOctreeMaterialAddress
} from './octree';
import {
areIdenticalVoxelMaterialAddressesOnSameMemo... |
<reponame>dericatienza/nanoblock-designer<filename>src/app/nanoblock-editor/editor/instructions-generator.ts
import { Design, Brick, BrickType, BrickColor } from './editor.models';
import { BrickTypeService } from '../brick-type.service';
import { BrickColorService } from '../brick-color.service';
import { BrickObject ... |
import { v1 as uuidv1 } from 'uuid';
import Log from '@secret-agent/commons/Logger';
import { IBlockedResourceType } from '@secret-agent/core-interfaces/ITabOptions';
import {
ILocationStatus,
ILocationTrigger,
LocationStatus,
} from '@secret-agent/core-interfaces/Location';
import { IJsPath } from 'awaited-dom/b... |
<gh_stars>0
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injectable, OnDestroy, QueryList, Type, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, Test... |
import {
Animated,
AppState,
AppStateStatus,
Dimensions,
Easing,
EasingFunction,
GestureResponderEvent,
Image,
Keyboard,
PanResponder,
PanResponderGestureState,
SafeAreaView,
StyleProp,
StyleSheet,
Text,
TouchableOpacity,
View,
ViewStyle
} from 'react-native'
import React, { PureComp... |
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
import * as plaid from 'plaid';
import { CallableContext } from 'firebase-functions/lib/providers/https';
import { google, calendar_v3, Auth } from 'googleapis';
import googleCredentials from './credentials.json';
import plaidCred... |
import React, { Component } from "react";
import { Box, Grid, Hidden } from "@material-ui/core";
import { Category } from "./interface";
import { connect } from "react-redux";
import { Swiper, SwiperSlide } from "swiper/react";
import queryString from 'query-string';
import "swiper/swiper.scss";
import "./ViewAll.scss... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { Suspense, useEffect, useMemo, useState, useCallback } from 'react';
import { Breadcrumb, IBreadcrumbItem } from 'office-ui-fabric-react/lib/Breadcrumb';
import formatMessage f... |
"use strict";
import merge from 'lodash.merge';
import * as fastCsv from 'fast-csv';
import leo_logger from 'leo-logger';
import backoff from 'backoff';
import moment from 'moment';
import stream, {PassThrough} from 'stream';
import https from 'https';
import AWS from './leo-aws';
import {FlushWriteStream} from './flus... |
/* eslint-disable */
import path from "path";
import fs from "fs";
import { Readable } from "stream";
import { Logger } from "@nestjs/common";
import { EntityManager } from "typeorm";
import yaml from "js-yaml";
import { v5 as uuid } from "uuid";
import unzipper from "unzipper";
import tempy from "tempy";
import { L... |
<reponame>mewbak/co
// import { debuglog as dlog } from '../util'
import { ByteStr, asciiByteStr } from '../bytestr'
import { Num, numIsZero } from '../num'
import { Pos, NoPos } from '../pos'
import { Config } from './config'
import { Op } from './op'
import { ops, opinfo, fmtop } from "./ops"
import { PrimType, NumTy... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
Component, Input, HostListener, ChangeDetectorRef, SimpleChanges, ElementRef, ViewChild,
OnInit, OnDestroy, OnChanges
} from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { OpenVidu, Session, Subscriber, Publisher, Stream, Connection, LocalRecorder } from 'openvidu-browser';
im... |
import { OnRenderProp, QObjSelector, QSlotAttr } from '../util/markers';
import {
cleanupContext,
ComponentCtx,
getContext,
getProps,
QContext,
setEvent,
tryGetContext,
} from '../props/props';
import { isOn$Prop, isOnProp } from '../props/props-on';
import type { ValueOrPromise } from '../util/types';
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.