text stringlengths 9.82k 47.8k |
|---|
<reponame>AntoniadisCorp/smartdeep
import { Component, OnInit, ElementRef, ViewChild, Inject, ChangeDetectorRef, AfterViewInit, SimpleChanges, OnChanges } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { SmartEngineService, Logger } from '../../../../services';
import { middlebar, config... |
import * as CodeMirror from 'codemirror';
import 'codemirror/addon/hint/show-hint';
import 'codemirror/addon/search/search';
import 'codemirror/addon/search/searchcursor';
import 'codemirror/addon/dialog/dialog';
import 'codemirror/addon/dialog/dialog.css';
import * as yaml from 'yaml';
import {
ConfigEditorRunConfi... |
import { spawn } from 'child_process'
import { debounce } from 'debounce'
import fastDiff from 'fast-diff'
import fs from 'fs'
import glob from 'glob'
import isuri from 'isuri'
import path from 'path'
import semver from 'semver'
import util from 'util'
import { Disposable, Emitter, Event } from 'vscode-languageserver-p... |
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
import { NgClass } from '@angular/common';
// todo: make internal to flowchart
import { IFlowchart } from '@models/flowchart';
import { NodeUtils, INode } from '@models/node';
import { IEdge } from '@models/edge';
import { ACTIONS } from ... |
/**
* Salvo!
* Built on
* MakeCode Arcade JavaScript Template v. 2.0
* Template last update: 20 May 2019 ak
* (C) 2019 Robo Technical Group LLC
* MIT license - See README.md
*/
/**
* Enumerations
*/
// Standard palette
enum Color {
Transparent, // 0
White, // 1 = RGB(255, 255, 255)
Red, // 2 = RGB... |
import {BB} from '../../bb/bb';
import {IRGB, IRGBA} from '../kl.types';
import {IBounds, IPressureInput} from '../../bb/bb.types';
import {IHistoryEntry, KlHistoryInterface} from '../history/kl-history';
const cellSize = 256;
interface IDrawBufferItem {
x: number;
y: number;
size: number;
opacity: nu... |
<gh_stars>0
import { ControlValueAccessor, NgForm, NgControl, FormGroupDirective, FormControl } from '@angular/forms';
import {
Directive,
OnInit,
EventEmitter,
Input,
ElementRef,
OnChanges,
Renderer2,
AfterViewInit,
OnDestroy,
Optional,
SimpleChanges,
NgZone,
HostBinding,
Self,
Output,
... |
<filename>src/viewer.ts<gh_stars>0
import { inferModelType, isTextureSource, loadCapeToCanvas, loadCustomModelToCanvas, loadEarsToCanvas, loadEarsToCanvasFromSkin, loadImage, loadSkinToCanvas, ModelType, RemoteImage, TextureSource } from "skinview-utils";
import { Color, ColorRepresentation, PointLight, Equirectangular... |
import { Constant } from '../shared/constants';
import Structure from './objects/structure';
import Campfire from './objects/campfire';
import Game from './game';
import Territory from './objects/territory';
import BoundaryWall from './objects/boundaryWall';
import Base from './objects/base';
export class HexTiles {
... |
import produce from "immer"
import * as React from "react"
import * as _ from "lodash"
import { Block, BlockDef, ContextVar, ChildBlock, createExprVariables } from "../../blocks"
import {
Expr,
Schema,
ExprUtils,
ExprValidator,
LocalizedString,
Row,
DataSource,
Column,
Variable
} from "mwater-expressi... |
<gh_stars>0
/*
* Planck.js
* The MIT License
* Copyright (c) 2021 <NAME>, <NAME>
*
* 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 without limitation the... |
<filename>lib/generated/yandex/cloud/serverless/triggers/v1/trigger.d.ts
import { Duration } from '../../../../../google/protobuf/duration';
import { LogLevel_Level } from '../../../../../yandex/cloud/logging/v1/log_entry';
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.serve... |
/*
* Copyright © 2020 Atomist, Inc.
*
* 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... |
import * as React from "react";
import InfiniteViewer from "react-infinite-viewer";
import Guides from "@scena/react-guides";
import Selecto, { Rect } from "react-selecto";
import styled, { StyledElement } from "react-css-styled";
import Menu from "./Menu/Menu";
import Viewport from "./Viewport/Viewport";
import { getC... |
<gh_stars>1-10
import { parse, ParseResult } from 'papaparse';
import { IActivity, IAddress, ICareProvider, ILocation, isLocationActive, toQueryTarget } from '../../../common/dist';
import { ICsvModel, locationToQueryTarget } from '../../../common/dist';
import { kvkService } from '../services/kvk-service';
import { pd... |
import {
CreateBucketCommand,
CreateBucketCommandInput,
DeleteBucketCommand,
DeleteBucketEncryptionCommand,
DeleteBucketPolicyCommand,
DeleteObjectCommand,
DeleteObjectCommandInput,
GetBucketEncryptionCommand,
GetBucketEncryptionCommandInput,
GetBucketEncryptionCommandOutput,
GetBucketLocationComm... |
import * as React from "react";
import AccountActions from "actions/AccountActions";
import AccountStore from "stores/AccountStore";
import AmountSelector from "components/Utility/AmountSelector";
import { connect } from "alt-react";
import "./join.scss";
import { withRouter, RouteComponentProps } from "react-router-do... |
<reponame>TatsuyaYamamoto/kxing<gh_stars>1-10
import BitMatrix from "../../common/BitMatrix";
import FormatInformation from "./FormatInformation";
import IllegalArgumentError from "../../error/IllegalArgumentError";
import FormatError from "../../error/FormatError";
import { ErrorCorrectionLevel } from "./ErrorCorr... |
import { Vector3, Vector3Like } from './vector3';
import { lerp } from './math_funcs';
import { CMP_EPSILON } from './math_defs';
const quat_pool: Quat[] = [];
export class Quat {
static new() {
let b = quat_pool.pop();
if (!b) b = new Quat;
return b.set(0, 0, 0, 1);
}
/**
* ... |
<filename>src/index.ts
import * as t from 'io-ts';
import ioTsReporters from 'io-ts-reporters';
import * as fc from 'fast-check';
import {
ArrayType,
IntersectionType,
NonEmptyBrandedArrayType,
NonObjectSpeck,
ObjectSpeck,
PartialType,
RecordType,
Speck,
TypeType,
UnionObjectsType,
UnionType,
_B... |
<reponame>featherbear/presonus-studiolive-api<gh_stars>10-100
// As of 20th November 2021
// https://github.com/featherbear/presonus-studiolive-api/blob/80e67e6bab77356f6c0898c98890515b0a5464b8/zlib.parsed
// Generated by https://quicktype.io
/* eslint-disable */
export interface ZlibPayload {
id: string;
chi... |
<filename>ActionBuilder/src/index.ts
/**
* Copyright (c) Cisco Systems, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// This file imports all of the webcomponents from "components" folder
import {
ht... |
<reponame>sbuttar/vscode-azurearmtools
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// tslint:disable:promise-function-async max-line-length /... |
import { Polyscript } from "../polyscript/Polyscript";
import { Diff } from "./PuzzleDiff";
export class PuzzleConverter {
static ValidatePuzzleDefinition(pd: PuzzleDefinition): string {
var ws = Polyscript.Workspace.deserialize(pd.workspace);
if (ws == null) {
return "Error parsing workspace.";
}... |
import _ from 'lodash';
import dateFormatter from '@/formatters/date-formatter';
import { CAGModelSummary, ProjectionConstraint, ScenarioProjection } from '@/types/CAG';
import { D3GElementSelection, D3ScaleLinear, D3Selection } from '@/types/D3';
import { TimeseriesPoint } from '@/types/Timeseries';
import { chartValu... |
<reponame>jianyexi/cadl<filename>packages/compiler/core/path-utils.ts
// Forked from https://github.com/microsoft/TypeScript/blob/663b19fe4a7c4d4ddaa61aedadd28da06acd27b6/src/compiler/path.ts
/**
* Internally, we represent paths as strings with '/' as the directory separator.
* When we make system calls (eg: Languag... |
/** 3rd Party imports */
import {parseString} from "xml2js"
import * as _ from 'underscore'
/** Other imports */
import ContentStore, { IDataBook } from "./ContentStore"
import { ApplicationMetaDataResponse,
BaseResponse,
MenuResponse,
GenericResponse,
CloseScreenResponse,
... |
/**
* @category pipeline
*/
import { Pass } from '../renderer/core/pass';
import { Model } from '../renderer/scene/model';
import { SubModel } from '../renderer/scene/submodel';
import { Layers } from '../scene-graph/layers';
import { legacyCC } from '../global-exports';
import { GFXBindingMappingInfo, GFXDescriptor... |
<reponame>w-okada/flect-chime-sdk-demo<filename>flect-amazon-chime-lib2/src/chime/FlectChimeClient.ts
import { ConsoleLogger, DefaultActiveSpeakerPolicy, DefaultDeviceController, DefaultMeetingSession, LogLevel, MeetingSessionConfiguration, Transcript, TranscriptEvent, TranscriptionStatus, TranscriptionStatusType, Vide... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import GoldenLayout = require("@glue42/golden-layout");
import registryFactory from "callback-registry";
const ResizeObserver = require("resize-observer-polyfill").default;
import { idAsString, getAllWindowsFromConfig, createWaitFor, getElementBounds } from "../u... |
import { SwaggerSailsModel, NameKeyMap, SwaggerRouteInfo, BlueprintActionTemplates, Defaults, Action2Response } from './interfaces';
import { Reference, Tag } from 'swagger-schema-official';
import { swaggerTypes, sailsAttributePropertiesMap, validationsMap, actions2Responses, blueprintParameterTemplates } from './type... |
// eslint-disable-next-line no-unused-vars
import React from 'react'
import * as ethJSUtil from 'ethereumjs-util'
import Web3 from 'web3'
import { addressToString, createNonClashingNameAsync, shortenAddress } from '@remix-ui/helper'
import { addNewInstance, addProvider, clearAllInstances, clearRecorderCount, displayNot... |
import React, { useEffect, useRef, useState } from 'react';
import {
FormControl,
Center,
Input,
FormErrorMessage,
InputGroup,
InputRightElement,
Button,
Box,
Switch,
Text,
Progress,
Spinner,
AlertDialog,
AlertDialogBody,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogContent,
Aler... |
import {
LogCategories,
Order,
Regex,
KeyCodes,
ScenarioIds,
Constants,
WorkerRuntimeLanguages,
Links,
SiteTabIds,
SubscriptionQuotaIds,
FunctionAppVersion,
} from './../../shared/models/constants';
import { Dom } from './../../shared/Utilities/dom';
import { Binding } from './../../shared/models/... |
import { NodePath } from '@babel/core';
import * as t from '@babel/types';
import generate from '@babel/generator';
import template from '@babel/template';
import * as path from 'path';
import fs from 'fs-extra';
import utils from '../utils';
import calculateComponentsPath from '../utils/calculateComponentsPath';
impor... |
/***************************************************************************/
/* */
/* Copyright 2018-2022 by */
/* Vily(<EMAIL>) */
/* ... |
/*
* indentationUtils.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*
* Provides code to get indentation and re-indent code to the given indentation.
*/
import Char from 'typescript-char';
import {
findNodeByOffset,
getFirstAncestorOrSelf,
getFirstAncestorOrSelfOfKind,
... |
/// <reference path="constants.ts" />
/// <reference path="drag-n-drop.ts" />
//
// html templates
//
// below are for the what-dishes-do-we-have AKA "dishes" view
/**
* Function for rendering all meal options for a given meal. E.g. "Breakfast":
* (all breakfast dishes entered in json file).
*
* @param meal name... |
<gh_stars>0
/*
* Software Name : IotMapManager
* Version: 2.6.8
* SPDX-FileCopyrightText: Copyright (c) 2020 - 2022 Orange
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT License,
* the text of which is available at https://github.com/Orange-OpenSource/IOT-Map-Component/blob/master/LICENSE... |
import {
DictionaryUnmarshaller,
List,
ListUnmarshaller,
RecordUnmarshaller,
Universe,
UniverseConstructor,
UniverseMixin
} from 'oma/data'
import { Expression } from 'oma/datatype'
import { Link } from 'oma/datatype/standard'
import * as assert from 'assert'
import * as mocha from 'mocha'
import * as d... |
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { Structure, StructureElement, StructureProperties, Unit } from '../../mol-model/structure';
import { Task, RuntimeContext } from '../../mol-task';
impo... |
import { v4 as uuidv4 } from 'uuid';
import moment from 'moment';
import React, { FC, useCallback, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { Card, Col, Container, Form, Row } from 'react-bootstrap';
import * as yup from 'yup';
import { Formik } from 'formik';
import AsyncPage fro... |
<gh_stars>0
/**
* Created by <NAME> on 14.08.2015.
*/
import * as d3 from 'd3';
import {merge, dropAble, delayedCall, forEach} from '../utils';
import Column, {IStatistics, ICategoricalStatistics, IFlatColumn} from '../model/Column';
import StringColumn from '../model/StringColumn';
import Ranking from '../m... |
/**
* Cheminformatics support
* @module chem
* */
import {BitSet, Column, DataFrame} from './dataframe';
import {FUNC_TYPES, SEMTYPE, SIMILARITY_METRIC, SimilarityMetric, TYPE, UNITS} from './const';
import {Subject, Subscription} from "rxjs";
import {Menu, Widget} from "./widgets";
import {Func} from "./entities";... |
/**
* ## Notices
* 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" WITHOUT ANY WARRANTY OF ANY KIND,
* EITHER EXPRESSED, IMPLIED, ... |
import json5 from "json5"
import parseMatplotlibrc from "./sample-matplotlibrc-parser"
/**
* Parses [matplotlib/lib/matplotlib/rcsetup.py](https://github.com/matplotlib/matplotlib/blob/b9ae51ca8c5915fe7accf712a504e08e35b2f69d/lib/matplotlib/rcsetup.py#L1), which defines the list of runtime configuration parameters an... |
import { walletsDbService } from "@/api/database/walletsDbService";
import { createStore } from "vuex";
import Bip32, { DerivedAddress } from "@/api/ergo/bip32";
import { explorerService } from "@/api/explorer/explorerService";
import BigNumber from "bignumber.js";
import { coinGeckoService } from "@/api/coinGeckoServi... |
import * as child_process from 'child_process';
import { ExecException } from 'child_process';
import * as fs from 'fs';
import { stat } from 'fs/promises';
import * as https from 'https';
import * as path from 'path';
import { match } from 'ts-pattern';
import * as url from 'url';
import { promisify } from 'util';
imp... |
// @ts-nocheck
import { error } from "util";
const fs = require("fs");
const moment = require("moment");
require("dotenv").config({ path: "./.env" });
import { Chat } from "../models/chats";
import { Batch } from "../models/batches";
import { Survey } from "../models/surveys";
import { errorHandler } from "../services... |
<reponame>Rudracool/MotherCareBackend-<gh_stars>0
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access ... |
import { ILaya } from "../../ILaya";
import { Event } from "../events/Event";
import { EventDispatcher } from "../events/EventDispatcher";
import { URL } from "../net/URL";
import { ICreateResource } from "../resource/ICreateResource";
import { Resource } from "../resource/Resource";
import { Texture } from "../resourc... |
<gh_stars>0
import { PlexServer } from './server';
import {
LibraryRootResponse,
SectionsResponse,
SectionsDirectory,
Location,
MediaItem,
} from './libraryInterfaces';
import { MediaContainer } from './util';
import { PlexObject } from './base';
import { Movie, VideoType } from './video';
import { Class } fr... |
/**
* Created by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* on 8/29/2017.
*/
export interface IBoundaryRect extends ClientRect {
placement?: string;
}
export interface IPlacement {
primary?: string;
secondary?: string
auto?: boolean
}
/**
* A set of utility methods for working with the DOM.
* ... |
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
/* eslint camelcase: "off" */
import React, {
useState,
useReducer,
useRef,
createRef,
RefObject,
} from "react";
import { FormattedMessage, useIntl, IntlShape } from "react-intl";
import { Formik, Form, FastField, FormikProps, FormikValue... |
<reponame>zsfelber/ts-pegjs
import {
ChoiceTraverser,
distinct,
EntryPointTraverser,
GrammarParsingLeafState,
GrammarParsingLeafStateCommon,
GrammarParsingLeafStateReduces,
GrammarParsingLeafStateTransitions,
HyperG,
IncVariator,
LinearTraversion,
ParseTable,
PNodeKind,
PRule,
PTerminalRef,
... |
<filename>packages/plugin-ext/src/plugin/plugin-context.ts<gh_stars>0
/********************************************************************************
* Copyright (C) 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v.... |
import { Component, OnInit, ViewChild } from '@angular/core';
import {
FormBuilder,
FormControl,
FormGroup,
ValidationErrors,
Validators
} from '@angular/forms';
import {
BaseControlValueAccessorAndValidator,
createControlValueAccessorAndValidatorProviders
} from '../base-control-value-accessor';
import {... |
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import { Contract, ContractSendMethod } from "web3-eth-contract";
import { TransactionReceipt } from "web3-core";
import {
Modal,
Input,
Button,
Label,
Box,
Toast,
Checkbox,
styled,
theme,
Tooltip,
} from "@... |
/**
* @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 {
JsonArray,
JsonObject,
JsonParseMode,
Path,
join,
logging,
normalize,
parseJson,
parseJson... |
/**
* @file Kin Parser
* @author <NAME> <<EMAIL>>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import { Vector3 } from 'three'
import Parser from './parser'
function hsvToRgb (h: number, s: number, v: number) {
h /= 360
s /= 100
v /= 100
let r, g, b
const i = Math.floor(h * 6)
... |
<gh_stars>0
/**
* Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import * as B from 'benchmark'
import * as util from 'util'
import * as fs from 'fs'
import fetch from 'node-fetch'
import { CIF } from '../mol-io/reader/cif'
import { Struc... |
import { Utils, ImageSource, Application, AndroidApplication } from "@nativescript/core";
import { AR as ARBase, ARAddBoxOptions, ARAddImageOptions, ARAddModelOptions, ARAddOptions, ARAddPlaneOptions, ARAddSphereOptions, ARAddTextOptions, ARAddTubeOptions, ARAddVideoOptions, ARCommonNode, ARDebugLevel, ARFaceTrackingAc... |
import {EditorSelection, EditorState, SelectionRange} from "@codemirror/state"
import {EditorView, DOMEventHandlers} from "./editorview"
import {ContentView} from "./contentview"
import {LineView} from "./blockview"
import {domEventHandlers, ViewUpdate, PluginValue, clickAddsSelectionRange, dragMovesSelection as dragBe... |
/* eslint-disable react/no-multi-comp */
import * as React from 'react';
import * as d3 from 'd3';
import * as ReactDOM from 'react-dom';
import * as _ from 'lodash';
import { confirmModal, errorModal } from '@console/internal/components/modals';
import SvgDefsProvider from '../svg/SvgDefsProvider';
import {
ViewNode... |
<reponame>zachsnow/quinix
import { logger, release, ResolvablePromise } from '../lib/util';
import { Debugger } from './debugger';
import { Memory, Address, Immediate } from '../lib/base-types';
import { MMU, AccessFlags, IdentityMMU, TwoLevelPageTablePeripheral, ListPageTablePeripheral } from './mmu';
import { Program... |
/*
* Copyright 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://aws.amazon.com/apache2.0/
*
* or in the "license" f... |
import { Duplex } from 'stream';
import Debug from 'debug';
import { EventEmitter } from 'events';
import process from 'process';
import axios from 'axios';
const { register, listen } = require('push-receiver');
let wrtc: any;
try {
wrtc = require('wrtc');
}
catch (e) {
console.warn('loading wrtc failed. tryin... |
<filename>src/remotes/mame/mameremote.ts
import {GenericBreakpoint} from '../../genericwatchpoint';
import {LogTransport} from '../../log';
import {Socket} from 'net';
import {Utility} from '../../misc/utility';
import {Settings} from '../../settings/settings';
import {Z80Registers, Z80_REG} from '../z80registers';
imp... |
import Component from './component';
import {
RectModel,
ClipRectAreaModel,
BoxSeriesModels,
StackTotalModel,
RectResponderModel,
MouseEventType,
} from '@t/components/series';
import {
ChartState,
BoxType,
ValueAxisData,
CenterYAxisData,
Series,
Axes,
Scale,
LabelAxisData,
} from '@t/store/... |
<filename>gen/lib.dom.audio.ts
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
}
/** An event which ta... |
import * as wjcCore from 'wijmo/wijmo';
import * as wjcInput from 'wijmo/wijmo.input';
import * as wjcSelf from 'wijmo/wijmo.grid';
export declare enum HeadersVisibility {
None = 0,
Column = 1,
Row = 2,
All = 3,
}
export declare class FlexGrid extends wjcCore.Control {
static _WJS_STICKY: string;
... |
import assert from "assert"
import {
cancelHodlInvoice,
GetInvoiceResult,
getPayment,
payViaPaymentDetails,
payViaRoutes,
} from "lightning"
import { toSats } from "@domain/primitives/btc"
import lnService from "ln-service"
import { TIMEOUT_PAYMENT } from "@services/lnd/auth"
import { MakeLndService } from "... |
<filename>src/modules/functions/poly2d/Stitch.ts
import {
arrMakeFlat,
distanceManhattan,
EEntType,
GIModel,
idsBreak,
idsMake,
isEmptyArr,
TEntTypeIdx,
TId,
Txy,
Txyz,
} from '@design-automation/mobius-sim';
import { checkIDs, ID } from '../../_check_ids';
import * as chk f... |
import { Point, Rect } from '../global/interfaces/geom';
import { Legend, NearestPoint, AxisLength, DataPoint, DataSet, DataSets, SVGOptions, Anim } from '../global/interfaces/charts';
import { getBoundingClientRect } from './common';
const xmlns:string = "http://www.w3.org/2000/svg";
export const createSVGElement = ... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { MovimientoService } from '../../services/movimiento.service';
import { MatTableDataSource, MatPaginator, MatSort, MatDialog} from '@angular/material';
import { Agente } from '../../model/bienes/agente.model';
import { Chart } from 'chart.js';
import... |
import fs from "fs";
import { CodeMaker } from 'codemaker';
import { execSync, exec } from 'child_process';
interface NodeIn {
comment: string,
name: string,
}
type NodeOut = NodeIn;
interface NodeAttr {
name: string,
type: string,
comment: string,
}
type NodeArg = NodeAttr;
interface Node {
... |
import { Point } from './point'
import { Line } from './line'
import { Rectangle } from './rectangle'
import { Polyline } from './polyline'
import { Geometry } from './geometry'
export class Curve extends Geometry {
start: Point
end: Point
controlPoint1: Point
controlPoint2: Point
PRECISION: number = 3
co... |
<reponame>ivanbuncic/deno<filename>ext/web/lib.deno_web.d.ts<gh_stars>0
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file no-explicit-any no-var
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare class DOMException extends Error {
constr... |
<filename>src/generators/ts.ts
import { exportTests } from "../blocks";
import { isBuiltinType } from "../builtins";
import {
Addition,
And,
Block,
Branch,
CaseStatement,
Const,
Constructor,
Destructure,
Division,
Equality,
Expression,
Field,
FixedType,
FormatStri... |
<filename>packages/ts-api-decorators/src/apiManagement/ManagedApi.ts
import { ManagedApiInternal, IApiClassDefinition } from "./ManagedApiInternal";
import { IApiDefinition, ApiMethod, IApiParamDefinition, ApiParamType, IApiTransportTypeParamDefinition, IApiDefinitionWithProcessors, IApiProcessors, ApiRawBodyParamType ... |
import {
dateDiffInDays,
flatten,
groupBy,
parseFloatOrUndefined,
difference,
minBy,
sortBy,
cloneDeep,
retryPromise,
memoize,
fetchText,
fetchJSON,
} from "grapher/utils/Util"
import moment from "moment"
import { csv } from "d3-fetch"
import { csvParse } from "d3-dsv"
im... |
/**
* cnsjs - JavaScript C&C Remake
* @author <NAME> <<EMAIL>>
* @license MIT
*/
import {
Box,
UIEntity,
UIScene,
MousePosition,
collideAABB,
collidePoint,
capitalize,
requestLoadFile,
requestSaveFile
} from '../../engine';
import {
TAB_WIDTH,
TAB_HEIGHT,
RADAR_HEIGHT,
ACTION_HEIGHT,
SID... |
import * as _ from 'lodash';
import 'core-js/shim';
import * as errors from '../../shared/utils/errors';
import EventEmitter from './utils/eventEmitter';
import * as fn_utils from './utils/functional';
// import logger from './utils/logger';
import { isWhitespace } from './utils/text';
import Path from './path';
impor... |
/**
* Badges plugin.
* Allows for creating and removing badges as well as granting and removing those bages from users.
* Written by <NAME>.
* @author MrSableye
*/
import {Badge, UpdateableBadgeAttribute, UserBadge} from '../badges';
import {FS, Utils} from '../../lib';
import Axios from 'axios';
import probe from... |
<gh_stars>1-10
import Canvas from 'canvas';
import merge from 'lodash.merge';
import { TileCache } from './tilecache';
import base64img from './base64img';
import type { TileData } from './tilecache';
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
export interface LatLng {
lat: number;
l... |
/* eslint-disable @typescript-eslint/no-dynamic-delete */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import jsonParseSerializedSymbols from "../util/jsonParseSerializedSymbols";
import longestCommonPrefix from "../util/longestCommonPrefix";
import objectHasOneProperty from "../util/objectHasOneProper... |
<gh_stars>10-100
'use strict';
declare function require(n:string):any
/*eslint-disable no-use-before-define*/
var common = require('./common');
var YAMLException = require('./exception');
var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
var DEFAULT_SAFE_SCHEMA = require('./schema/defaul... |
<reponame>jbedard/insert-assets<gh_stars>1-10
// Originally forked from https://github.com/bazelbuild/rules_nodejs/tree/0.41.0/packages/inject-html
"use strict";
import { Node, TreeAdapter } from "parse5";
import parse5 = require("parse5");
const treeAdapter = require("parse5/lib/tree-adapters/default") as TreeAdapter... |
/*
* Copyright 2018- The Pixie 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 required by applicable law or ag... |
<filename>flags-game/src/flagsService/flagList.ts<gh_stars>0
import { Continent } from "./continentList";
export interface FlagInfo {
Pic: string;
Eng: string;
Hun: string;
Loc: Continent|null;
}
export const flags: FlagInfo[] = [
{ Pic: "001-ethiopia.svg", Eng: "Ethiopia", Hun: "Etiópia", Loc: Co... |
<reponame>banyudu/vscode-npm-scripts
import * as cp from 'child_process';
import * as path from 'path';
import * as fs from 'fs';
import {
window, commands, workspace, languages, OutputChannel, ExtensionContext, ViewColumn,
QuickPickItem, Terminal, DiagnosticCollection, Diagnostic, Range, TextDocument, Diagnos... |
/* eslint-disable */
// @ts-nocheck
import { GraphQLContext } from '../IContext';
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K e... |
import { getDOM } from './get-dom';
// PRIVATE
import {
BROWSER_SANITIZATION_PROVIDERS,
SharedStylesHost,
DomSharedStylesHost,
DomRootRenderer,
DomEventsPlugin,
KeyEventsPlugin,
HammerGesturesPlugin,
ViewUtils
} from './__private_imports__';
// PRIVATE
import {
DOCUMENT,
EVENT_MANAGER_PLUGINS,
An... |
import React from 'react';
import {
listToMap,
listToGroupList,
isNotDefined,
isDefined,
} from '@togglecorp/fujs';
import {
PartialForm,
ObjectSchema,
ArraySchema,
forceUndefinedType,
requiredCondition,
emailCondition,
lessThanOrEqualToCondition,
defaultUndefinedType,
} from '@togglecorp/toggle... |
<filename>src/eve.helper.ts
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { SearchCategory } from './interface.helper';
import { Gas } from './types/gas';
import { Ice } from './types/ice';
import { Mineral } from './types/mineral';
import { Ore } from './types/ore';
interface IQueryPar... |
import {
isNumber,
assign,
forEach,
every,
debounce,
bind,
reduce
} from "min-dash";
import {
add as collectionAdd,
remove as collectionRemove
} from "../util/Collections";
import {
getType
} from "../util/Elements";
import {
append as svgAppend,
attr as svgAttr,
classes as svgClasses,
cr... |
<gh_stars>0
"use strict";
import _ from "lodash";
import os from "os";
import fs from "fs";
import path from "path";
import moment from "moment";
import Jimp from "jimp";
import Logger from "../utils/logger";
import Common from "../utils/common";
import AppConfig from "../models/app_config";
import { AppConfigJSON } ... |
import {LinkedList} from '@esfx/collections'
import {GeomConstants, ICurve, Point, Rectangle, Size} from '../math/geometry'
import {RTree, mkRTree} from '../math/geometry/RTree/rTree'
import {Algorithm} from '../utils/algorithm'
import {CancelToken} from '../utils/cancelToken'
import {closeDistEps, comparePointsXY} fro... |
import { effectTypes, xolombrisxInstruments } from "../../store/Track";
import DrumRack from "../../components/Layout/Instruments/DrumRack";
import { onlyValues } from "../../lib/objectDecompose";
import { range, startEndRange } from "../../lib/utility";
import kick1 from '../../assets/drumkit/kick2.mp3';
import clap f... |
<reponame>alixnovosi/sortviz
import { Constants } from "./constants";
import { SortStepper } from "./sortstepper";
// helper class for heapsort and block merge sort.
class MaxHeap {
public stepper: SortStepper;
public start: number;
public end: number;
constructor(stepper: SortStepper, start: number,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.