text
stringlengths
9.82k
47.8k
<reponame>thanhtr/maas-schemas /* undefined Personal document object !!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!! See https://www.npmjs.com/package/io-ts-from-json-schema */ import * as t from 'io-ts'; import * as Units_ from './components/units'; import * as Common_ from './components/common'; imp...
import { request } from '@nativescript-community/perms'; import { TWEEN } from '@nativescript-community/tween'; import { MapPosVector, fromNativeMapPos } from '@nativescript-community/ui-carto/core'; import { LineGeometry } from '@nativescript-community/ui-carto/geometry'; import { MergedMBVTTileDataSource } from '@nat...
#!/usr/bin/env node import fse from "fs-extra"; import path, { dirname, relative } from "path"; import { ASTContext, ASTNode, ASTNodeFactory, ASTReader, CompileFailedError, compileJson, compileJsonData, CompileResult, compileSol, compileSourceString, ContractDefinition, C...
<filename>test/integration/render/render.test.ts<gh_stars>10-100 /* eslint-disable no-process-exit */ import './mock_browser_for_node'; import canvas from 'canvas'; import path, {dirname} from 'path'; import fs from 'fs'; import {PNG} from 'pngjs'; import pixelmatch from 'pixelmatch'; import {fileURLToPath} from 'url';...
import assert from 'assert'; import { getNamedType, getNullableType, GraphQLCompositeType, GraphQLOutputType, isCompositeType, isEnumType, isInterfaceType, isListType, isScalarType, isUnionType, } from 'graphql'; import { pascalCase } from 'pascal-case'; import path from 'path'; import ts from 'type...
<filename>src/operations/db-sync.ts<gh_stars>0 import type { ServerSession, HttpResponse, Creditor, PinInfo, Wallet, Account, LogEntriesPage } from './server' import type { AccountLedgerRecord, TransferRecord, AccountRecord, AccountConfigRecord, PinInfoRecord, AccountDisplayRecord, AccountKnowledgeRecord, Account...
// These imports are made from migration file as there's a strong dependency on particulars of that migration import { EntityBuilderCheckerFunctions1541678210293 } from "../../../../../migrations/1541678210293-Entity_Builder_Checker_Functions"; import { chunk, uniq, sortBy } from "lodash"; import { Driver, EntityMana...
<filename>src/managers/RoomManager.ts<gh_stars>0 import * as roomStages from 'roomStages/roomStages'; import * as _ from 'lodash'; import { v4 as uuidv4 } from 'uuid'; import CollectorType from 'workers/type.collector'; import TransporterType from 'workers/type.transporter' import {setupPaths, setupMiningSpots, set...
import { BitBoard, Board, PieceBoard } from "./board" // tslint:disable-next-line:max-line-length import { BoundError, CantMoveError, CantPromoteError, DoublePawnFoul, DuplicateError, FoulError, MoveError, NeglectKingFoul, NoPieceError, NotOwnedPieceError, ShogiError, StrikingFoul, ThousandDaysFoul } from ...
<filename>src/lines.ts /*jslint todo: true, continue: true, white: true*/ import { JSONGeometryLine, JSONPosition } from "./JSONGeometry"; import util from "./util" // Written by <NAME> for ShopBotTools, Inc. export interface G3Commands { r?: number, i?: number, j?: number, k?: number } export interfa...
import "reflect-metadata"; const Entities = require('html-entities').AllHtmlEntities; const entities = new Entities(); import express from "express"; import { JWKS, JSONWebKeySet } from "jose"; import { MTLSVerificationMiddleware } from "../../../Common/Server/Middleware/MTLSVerification" import { GatewayRequest, G...
<filename>powershell/llcsharp/operation/method.ts<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--...
/** * * SourceFile is the class model of a squals source file * author: <NAME> * * @todo: can the input be typed when building methods * @todo: can we sort the parts of the interfaces so that the ? are below the required elements * @todo: can they also be sorted by single liners vs multi liner - single-liner ...
<gh_stars>1-10 /*! * Fast "async" scrypt implementation in modern JavaScript. * Copyright (c) 2019 <NAME> | MIT License * https://github.com/Cretezy/scrypt-async-modern */ export interface IScryptBaseOptions { N?: number; logN?: number; r?: number; p?: number; dkLen?: number; interruptStep?: number; } ...
<reponame>noopkat/oled-js import { Board, Pin } from "johnny-five" enum Protocol {I2C, SPI} enum TransferType {Command, Data} type Direction = 'left' | 'left diagonal' | 'right' | 'right diagonal' type Black = 0x00 type White = 0x01 | 0xff type Color = Black | White type Pixel = [number, number, Color] interface Oled...
// Import sudoku module import { T, DEBUG, Marked, readSudokuFromFile, Tsol, Tinit, permuteSuds, copyTo2d, allowed, checkSolved, deepCopy2D, deepCopy3D, } from "./sudoku.js"; // Colors const col1 = "#0A85FF"; const smallDigCol = "#DFD"; const rowColSquareForbidCol = "#FDD"; const sameDigCol = "...
import * as FFT from "./fft"; import { HistogramOverTime } from "./HistogramOverTime"; import { Color, Palette } from "./Palette"; import { Spectogram } from "./Spectogram"; import { Stats } from "./Stats"; // too lazy to sort out the typescript issue right now declare const Highcharts:any; function draw(ctx: CanvasR...
<filename>src/shaders/processing/shader-processor.ts<gh_stars>1-10 import { WebGLStat } from "../../gl"; import { Instance } from "../../instance-provider/instance"; import { ILayerProps, Layer } from "../../surface/layer"; import { BaseIOExpansion } from "../../surface/layer-processing/base-io-expansion"; import { F...
<gh_stars>0 import ConfettiGenerator from 'confetti-js'; import { setPrompt } from './prompt'; import { Stopwatch, StopwatchPlugin } from './stopwatch'; import { TermOutput } from './terminal'; import { create as createCommands } from './terminal/emulator-state/command-mapping'; import { Command, OutputRecord } from '...
<reponame>lancehalberd/spirit-world import { addObjectToArea, enterLocation, refreshAreaLogic, removeObjectFromArea } from 'app/content/areas'; import { createCanvasAndContext } from 'app/dom'; import { FRAME_LENGTH } from 'app/gameConstants'; import { showMessage } from 'app/render/renderMessage'; import { updateHeroM...
import React, { useState, useEffect } from 'react' import { useParams } from 'react-router-dom'; import { useForm, Controller, useFieldArray} from "react-hook-form"; import liff from '@line/liff'; import {getOmise, Omise, setOmise, OmiseForm, Ima} from 'utils/api/omise'; import { callbackStaffUrl } from 'utils/callbac...
<gh_stars>1-10 const crypto = require('crypto'); const WebSocket = require('ws'); const request = require('request'); const querystring = require('querystring'); // replace URLSearchParams import { Observable, ReplaySubject } from 'rxjs'; import { TMarketType, TMarketSide, TMarketBookOrder } from '../../market/interf...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { assert } from "./debug"; const enum CharacterCodes { nullCharacter = 0, maxAsciiCharacter = 0x7f, lineFeed = 0x0a, // \n carriageReturn = 0x0d, // \r lineSeparator = 0x2028, paragr...
import { sha256 } from 'js-sha256'; import { sha512 } from 'js-sha512'; import * as BlockchainSettings from '../blockchain-assets/blockchain-settings.json'; import environment from '../environments/environment'; import { EError, EInfo, EStages, IUbirchBlockchain, IUbirchBlockchainNet, IUbirchFormError, IU...
<filename>client/src/components/vis/periodChart.ts import 'tooltipster'; import * as pip from '../../services/pip'; import * as _ from 'lodash'; import * as d3 from 'd3'; import * as dataDP from '../../services/dataProcessor'; import { colorSchemes } from '../../services/helpers'; export interface Option { // svg l...
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<T>; export namespace Response { export interface Server<T> { data: T; } export type ServerError = { error: string; }; export interface VerifyStatusSefaz { status: 'online' | 'offline'; } export interface VerifyExpirationCertificadoA1...
import { VPC } from "../vpc/vpc"; import { RouteResource } from "../vpc/routeResource"; import { Security } from "../security/security-groups"; import { Roles } from "../security/roles"; import { LaunchTemplate } from "../servers/launch-template"; import { ALB } from "../servers/alb"; import { Tasks } from "../ecs/task...
import React from 'react'; import { useState, useEffect, useRef } from 'react'; import { urbitVisor } from '@dcspark/uv-core'; import { liveCheckPatp } from '../utils/utils'; import { query } from './App'; interface UrbitKey { ship: string; name: string; } interface UrbitChannel { title: string; type: 'post' | ...
/* eslint-disable no-await-in-loop */ /* eslint-disable no-continue */ /* eslint-disable no-restricted-syntax */ /* eslint-disable lines-between-class-members */ // eslint-disable-next-line max-classes-per-file import * as Comlink from 'comlink'; import { CargoType, Marketplace, OwnedShip, Planet, Location, Location...
<filename>packages/core/src/plugins.ts import type { Declarations, Plugin, PluginContext, Theme, ThemeValueResolver } from './types' import * as is from './is' import { corners, edges, expandEdges } from './helpers' import { join, joinTruthy, merge, tail, capitalize, hyphenate } from './util' // Shared variables let ...
import tippy, { Instance as TippyInstance } from 'tippy.js'; import { WidgetToolbarMultiSelect, WidgetToolbarMultiSelectItem, } from '../ui/widget-toolbar/widget-toolbar-multi-select'; import { Stage, StageEvent } from '../../model/stage'; import { Trace } from '../../model/trace'; import { formatMicroseconds } fro...
<reponame>jgstern/vscode<filename>src/vs/platform/files/node/diskFileSystemProvider.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for...
<reponame>p01/playwright /** * Copyright 2019 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft 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 * *...
<gh_stars>1-10 /** * Transaction Builder * =================== */ import { Address } from './address' import { Bn } from './bn' import { Constants as Cst } from './constants' import { HashCache, HashCacheLike } from './hash-cache' import { KeyPair } from './key-pair' import { PubKey } from './pub-key' import { Scrip...
<reponame>giomon/Agular /** * @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 {DebugElement__PRE_R3__, DebugNode__PRE_R3__, EventListener, getDebugNode, indexDebug...
import { Component, h, Host, Prop, State, Watch, Element, Event, EventEmitter } from '@stencil/core'; import { converter } from '../../utils/converter'; import { cdnAsset, buildMetaData, formatCurrency, formatNumber } from '../../utils/utils'; import { BaseHead } from 'stencil-head'; //let BB_API = 'http://localhost:5...
<reponame>nadaOuf/Babylon.js import { Engine } from 'babylonjs/Engines/engine'; import { Scene } from 'babylonjs/scene'; import { Vector3, Vector2 } from 'babylonjs/Maths/math.vector'; import { Color4, Color3 } from 'babylonjs/Maths/math.color'; import { FreeCamera } from 'babylonjs/Cameras/freeCamera'; import { Nullab...
export { default as Activity } from './icons/Activity'; export { default as Adjust } from './icons/Adjust'; export { default as AdobeXd } from './icons/AdobeXd'; export { default as Aeroplane } from './icons/Aeroplane'; export { default as AlarmFill } from './icons/AlarmFill'; export { default as Alarm } from './icons/...
<filename>src/Layers/effectLayer.ts import { serialize, serializeAsColor4, serializeAsCameraReference } from "../Misc/decorators"; import { Tools } from "../Misc/tools"; import { SmartArray } from "../Misc/smartArray"; import { Observable } from "../Misc/observable"; import { Nullable } from "../types"; import { C...
<reponame>azonys/imodeljs<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-----------------------------...
<reponame>lovelyBug/vue-next-master import { ParserOptions } from './options' import { NO, isArray } from '@vue/shared' import { ErrorCodes, createCompilerError, defaultOnError } from './errors' import { assert, advancePositionWithMutation, advancePositionWithClone, isCoreComponent } from './utils' import { N...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { inject, injectable } from 'inversify'; import Cdp from '../cdp/api'; import { ILogger, LogTag } from '../common/logging'; import...
import {Component, ElementRef,EventEmitter, OnInit, VERSION, ViewChild,NgZone,TemplateRef, SystemJsNgModuleLoader} from '@angular/core'; import { Injectable,Inject } from '@angular/core'; import { ROUTES } from '../components/sidebar/sidebar.component'; import {Location, LocationStrategy, PathLocationStrategy} from '...
import vk from './src/vk'; import { HearManager } from '@vk-io/hear' import { MongoClient } from 'mongodb'; import prequest from 'prequest'; import {Keyboard} from "vk-io"; import utils from "./src/utils"; const hearManager = new HearManager(); const client = new MongoClient('mongodb://localhost:27017/osucounter', { us...
/*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ // ConvertTo-TS run at 2016-10-04T11:26:58.1768850-07:00 import { Interval } from './misc/Interval'; import { Override } from './Decorators'; impo...
/******************************************************************************* pg_catalog types: http://www.postgresql.org/docs/current/static/catalogs.html *******************************************************************************/ export type name = string export type text = string export type integer = num...
/* eslint-disable */ import React, { useMemo, useState, useReducer, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import DialogTitle from "@material-ui/core/DialogTitle"; import Dialog from "@material-ui/core/Dialog"; import DialogActions from "@material-ui/core/DialogActions"; import...
<reponame>ManuelBlanc/vscode-fs-code-assist<gh_stars>1-10 import { basename } from "path"; import * as SJSON from 'simplified-json'; import { TextDecoder } from "util"; import * as vscode from "vscode"; import { activate as activateAdocAutocomplete } from './adoc-autocomplete'; import { RawSymbolInformation, TaskRunner...
<filename>src/rules/language-code.ts import { AbstractServiceArray } from './abstract-service-array'; export class LanguageCode extends AbstractServiceArray { /** * Services. */ protected get services(): Map<string, string[]> { /** * List extracted from http://www.loc.gov/standards...
import * as React from 'react'; import { PureComponent } from 'react'; import classnames from 'classnames'; import has from 'lodash-es/has'; import get from 'lodash-es/get'; import every from 'lodash-es/every'; import assign from 'lodash-es/assign'; import debounce from 'lodash-es/debounce'; import isEqual from 'lodash...
import {DemoSharedBase} from '../utils'; import {Screen, Utils} from "@nativescript/core"; import {func, images} from "./games/utils"; declare let Phaser: any, UIDevice; interface AccelerometerData { x: number; y: number; z: number; } type SensorDelay = "normal" | "game" | "ui" | "fastest"; interface Acceleromet...
<reponame>fossabot/c2wasm<filename>src/generation/expressions.ts<gh_stars>0 import {getFlags} from "../optimization/flags"; import {CFuncDefinition, CFuncDeclaration} from "../tree/declarations"; import {CIdentifier} from "../tree/expressions"; import * as c from "../tree/expressions"; import {constExpression} from ".....
<gh_stars>1-10 import Vue from 'vue'; import Vuex from 'vuex'; import * as d3 from 'd3'; import { EntityType, Feature, Instance, Metrics, SelectionAction, SelectionRecord, SelectionStrategy, Visualization, VisualizationType, } from './types'; import { difference, intersection, instanceById, xo...
import { AxiosError, AxiosResponse } from "axios"; import currency from "currency.js"; import { useFormik } from "formik"; import moment from "moment"; import NP from "number-precision"; import { useEffect, useMemo, useState } from "react"; import { IoLogoWhatsapp } from "react-icons/io5"; import * as Yup from "yup"; i...
<gh_stars>1-10 /* * Copyright (c) 2006-2011 <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 to anyone to use this software for...
<filename>src/gfx/render/GfxRenderer.ts import { GfxInputState, GfxRenderPass, GfxBindings, GfxRenderPipeline, GfxDevice, GfxSamplerBinding, GfxBindingLayoutDescriptor, GfxBufferBinding, GfxProgram, GfxPrimitiveTopology, GfxSampler, GfxBindingsDescriptor, GfxMegaStateDescriptor, GfxProgramReflection } from "../platfor...
import React, { memo, useEffect, useState, useCallback, useMemo, useRef } from 'react'; import { Controlled as CodeMirror } from 'react-codemirror2'; import { ExclamationCircleOutlined } from '@ant-design/icons'; import { Modal, Spin, Input, Radio, Select, message, Button, Tooltip, Checkbox } from 'antd'; import { Rad...
<gh_stars>0 import * as fs from 'fs'; import Lexer from './lexer'; import { Token } from './token'; import { BadIntError, BadUseMacroError, BadMacroNameError, UninitializedMacroInstanceError, BadChainError, BadBindingError, BadDeclarationError, BadEquivalenceError, BadIncludeErr...
<reponame>eloisetwaine/cypress import Bluebird from 'bluebird' import { EventEmitter } from 'events' import type { MobxRunnerStore } from '@packages/app/src/store/mobx-runner-store' import type { RunState } from '@packages/types/src/driver' import type MobX from 'mobx' import type { LocalBusEmitsMap, LocalBusEventMap, ...
/* * Copyright 2020-present Open Networking Foundation * * 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 appli...
/*! * IMQ-CLI command: service create * * Copyright (c) 2018, imqueue.com <<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 S...
<reponame>mjzffr/puppeteer<gh_stars>0 /** * Copyright 2017 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
import { OrbitControl } from '@oasis-engine/controls'; import { Animation, AnimationClip, AssetType, BoundingBox, Camera, Color, Entity, EnvironmentMapLight, GLTFResource, Material, MeshRenderer, PBRBaseMaterial, PBRMaterial, PBRSpecularMaterial, PointLight, PrimitiveMesh, Renderer, ...
<gh_stars>0 import * as Utils from '../utils/utils' import * as RebuildUtils from '../utils/RebuildUtils' import * as LoggerService from './LoggerService' var {spawnSync, exec} = require('child_process'); const UUID = require...
"use strict"; import fs from "fs"; import { resolve } from "path"; import type { Config } from "./config"; import { CodeFragment, Document, Fragment, FragmentType, Page, TableFragment, TableStyle, TocFragment } from "./document"; import { ElementNode, LinkNode, ListNode, Node, PropertyNode, SymbolNode, TextNode } fr...
import { struct, JsonObject } from "pb-util"; import get = require("lodash.get"); import has = require("lodash.has"); const _ = { get, has }; // TODO: Make this configurable or use fetch import axios from "axios"; export interface DFCheatRequestConfig { transformgrpc?: boolean; languageCode?: dflanguages; sessi...
import {Window, TextObj} from "../Window"; import * as numbers from "../magic_numbers"; import {GoldenSun} from "../GoldenSun"; import {Button} from "../XGamepad"; import {ItemSlot, MainChar} from "../MainChar"; import {CursorManager, PointVariants} from "../utils/CursorManager"; import {Ability, ability_types} from "....
import { IUCAppState, UcAppState } from './uc.app-state'; import { UCAction, UCClickAction, UCDataUpdateAction, UCDetailsAction, UCNewStateAction, UCRouterAction, UCSearchUpdateAction, UCSettingsUpdateAction, UCTableOrderAction } from './uc.action'; import { isNullOrUndefined } from ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import YAML from 'yaml'; import { YAMLConfiguration, YAMLConfigurationPage, YAMLConfigurationMenuTree, YAMLConfigurationDependencyMap, YAMLConfigurationGlobalMap, YAMLConfigurationGroupMap, YAMLConfigurationResourceMap, YAMLConfigurationPageTree, YAMLConfigurationMeta, YAMLConfigurationUsageContext,...
<filename>packages/core/src/view/view.ts import { calcDimension, MATCH_PARENT, Rect, RectLike, ViewCanvas, WRAP_CONTENT } from '../canvas'; import { CanvasPointerEvent, PointerAction } from '../pointer-event'; import { removeUndefinedProps } from '../utils'; import { xor } from '../utils/boolean.util'; import { RootCan...
<reponame>nickrobison/trestle /** * Created by nrobison on 6/11/17. */ import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChange} from "@angular/core"; import {Feature, FeatureCollection, GeometryObject} from "geojson"; import {BehaviorSubject, Subject} from "rxjs"; import {TrestleIndividual} fr...
/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { DocumentStructure } from "./documentStructure"; import marked from "marked"; import { copyFolder, createFile, escapeHTML, fetchChangelog, getPathFileName, getTagFromJSDoc, hasTagFromJSDoc, isLargeArr, isLargeObject, isLargeSignature } from "./utils"...
import {ethers, network} from 'hardhat'; import {BigNumber, utils} from 'ethers'; import {SignerWithAddress} from '@nomiclabs/hardhat-ethers/signers'; import {expect} from 'chai'; import { MockERC20, OpynPerpVault, IWETH, ShortOTokenActionWithSwap, IOtokenFactory, IOToken, StakedaoEcrvPricer, IOracle, ...
//Author: <NAME> /// <reference path="jquery.d.ts" /> interface ExpressionBuilderVariable { variableId: number, name: string, value?: any } interface HTMLElement { selectionStart: any, setSelectionRange: any; } interface ExpressionBuilderOption { suggestions?: 'up' | 'down', expression?: string, var...
<reponame>jfhbrook-at-work/boltzmann<gh_stars>0 'use strict' /*{# Hey, friend! Before you go to town, there's something you should know: !!! This file is included *before* the prelude !!! You should read the comments in the prelude before continuing. But once you're back, here are some ways that this file is both si...
import React, { ReactNode, useImperativeHandle, Ref, forwardRef, useRef, MutableRefObject, useState, useMemo, useEffect } from 'react' import AyCard from '../AyCard' import { theme } from '../Theme' import { Form, Row, Col, Input, Tooltip, Space, Button } from 'antd' import { AyFormField, AyFormProps,...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
<reponame>vives-projectweek-2021/project-repository-maximum-protection import { MouseConstraint } from 'matter'; import 'phaser'; import { LEFT, NONE, Physics } from 'phaser'; import GameOver from './gameOver'; import Shop from './shop'; import ShopCutscene from './shopCutscene'; import Upgrades from './Upgrades'; impo...
/* Copyright (c) 2019, because-why-not.com Limited 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...
<gh_stars>0 ///<reference path="../_definitions.ts"/> module away.parsers { import ColorMaterial = away.materials.ColorMaterial; import ColorMultiPassMaterial = away.materials.ColorMultiPassMaterial; import DefaultMaterialManager = away.materials.DefaultMaterialManager; import MultiPassMaterialBase = awa...
<gh_stars>10-100 import { findDocument, extractDocument, Point, Quad } from './process'; import { toPDF } from './pdf'; import { toImage, getData, download } from './io'; import { ProspectivePage, getFile, setFile } from './db'; import flashURL from 'url:./flash.svg'; import flashOffURL from 'url:./flash-off.svg'; impo...
<reponame>muraliQlogic/nodejs-firestore /*! * Copyright 2017 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
import type { MakeMandatory } from '../../utilities/MakeMandatory'; import type { NMRPeak1D } from '../NMRPeak1D'; /* * This library implements the J analyser described by Cobas et al in the paper: * A two-stage approach to automatic determination of 1H NMR coupling constants */ const patterns = ['s', 'd', 't', 'q'...
<gh_stars>0 import { Component, OnInit, ViewChild, Injectable, LOCALE_ID, OnDestroy } from '@angular/core'; import { NgForm } from '@angular/forms'; import { environment } from 'environments/environment'; import { HttpClient } from "@angular/common/http"; import { TranslateService } from '@ngx-translate/core'; import {...
<gh_stars>1-10 /* * Copyright 2021, 2022 Macquarie University * * 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 ...
import Nomics from "./index"; import {NomicsCurrencyInterval} from "./index"; /** * This class converts the data retrieved by the API * into an easy-to-process format and returns it. */ export class NomicsNode { private api: Nomics; constructor({ apiKey }: { apiKey?: string }) { this.api = new Nomics({ ap...
<gh_stars>1-10 /*----------------------------------------------------------------------------------------- * Copyright © 2021 <NAME>. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *-------------------------------------------------------------------...
<gh_stars>0 import { User } from './user' import { Channel } from './channel' import { hostmask, Hostmask, Line, StatefulDecoder } from 'irctokens' import { casefold } from './casemap' import { ISupport } from './isupport' import { Name } from './name' import { ChannelUser } from './channel_user' import { EventEmitter ...
<gh_stars>0 import * as https from 'https'; import { GraphQLClient, gql } from 'graphql-request'; import crossFetch from 'cross-fetch'; import { URL, URLSearchParams } from 'url'; import createHttpProxyAgent from 'https-proxy-agent'; import assert from 'assert'; import { tokenService } from '../services/token_service';...
import * as classNames from 'classnames'; import * as isWithinRange from 'date-fns/is_within_range'; import { some } from 'lodash-es'; import * as qs from 'qs'; import * as React from 'react'; import LazyLoad, { forceCheck } from 'react-lazyload'; import { connect, MapDispatchToProps } from 'react-redux'; import MediaQ...
<gh_stars>0 import * as cv2 from 'nativescript-opencv'; cv2.init(); import { ImageWorkerOptions } from './options'; const SMALL_HEIGHT = 300; const FULL_HEIGHT = 400; let resizedImage: cv2.Mat; let edgesImage: cv2.Mat; export function resize(img: cv2.Mat, output: cv2.Mat, height = SMALL_HEIGHT, allways = false) { ...
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; //var vscode2 = require("vscode"); import * as cp from "child_process"; import path = require('path'); import { setTimeout } from 'timers'; var ...
import * as path from 'path'; import * as fs from 'fs-extra'; import chalk from 'chalk'; import webpack, { MultiStats } from 'webpack'; import { Logger } from 'npmlog'; import { AggregatedResult } from '@jest/test-result'; import { GlobalConfig } from '@jest/types/build/Config'; import * as fg from 'fast-glob'; import ...
// monofuel import PlanetLoc from './planetLoc'; import { TILE_LAND, TILE_WATER, TILE_CLIFF, TILE_COAST } from './tileTypes'; import GameState, { ChunkEvent, ChunkChange, UnitEvent, UnitChange, UnitDeltaEvent, UnitDeltaChange, } from '../state'; import { updateUnit } from '../units/unitBalance'; i...
/// <reference types="windows-script-host" /> /// <reference types="activex-scripting" /> const collectionToArray = <T>(col: { Item(index: any): T } | SafeArray<T>) => { const results: T[] = []; const enumerator = new Enumerator<T>(col); enumerator.moveFirst(); while (!enumerator.atEnd()) { res...
import { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, Input, OnInit, Renderer2, ViewChild, ViewEncapsulation, ContentChildren, QueryList, NgZone, Directive, OnDestroy, HostListener, HostBinding, Optional, Self...
import { failIfValidOrNonExhaustive, } from './Utils'; export enum UpdateType { Enter = 'Enter', Exit = 'Exit', Update = 'Update', } /* tslint:disable:max-classes-per-file interface-name */ /* tslint:disable:interface-name */ // Note: every item of `T` needs to be JSON-serializable export class PersistentArra...
declare module 'react-native-mapbox-gl__maps'; import { Component, ReactNode, SyntheticEvent, } from 'react'; import { ViewProps, ViewStyle, StyleProp, TextStyle, ImageSourcePropType, } from 'react-native'; import ReactNative from 'react-native'; import { Geometry, Properties, Position, Featu...
import { resolve, basename, join } from 'path'; import { eraseLines } from 'ansi-escapes'; // @ts-ignore import { write as copy } from 'clipboardy'; import chalk from 'chalk'; import dotenv from 'dotenv'; import fs from 'fs-extra'; // @ts-ignore import inquirer from 'inquirer'; import mri from 'mri'; import ms from 'ms...