text
stringlengths
9.82k
47.8k
<gh_stars>1-10 /* * Copyright (c) 2013 - 2017 Adobe Systems Incorporated. All rights reserved. * Copyright (c) 2018 - present The quadre code authors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "So...
<gh_stars>0 /* tslint:disable */ /* eslint-disable */ export type ValueTypes = { /** Card used in card game<br> */ ["Card"]: AliasType<{ /** The attack power<br> */ Attack?:true, /** <div>How many children the greek god had</div> */ Children?:true, /** The defense power<br> */ Defense?:true, attack?: [{ /** ...
/* Copyright 2017 <NAME> Copyright 2019, 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
import Snoowrap, {Comment, Submission, Subreddit} from "snoowrap"; import {Logger} from "winston"; import dayjs, {Dayjs} from "dayjs"; import {Duration} from "dayjs/plugin/duration"; import EventEmitter from "events"; import {BotInstanceConfig, Invokee, PAUSED, RUNNING, STOPPED, SYSTEM, USER} from "../Common/interfaces...
<reponame>federalies/dynamoco /* eslint-disable no-unused-vars */ import { URL } from 'url' import type { Key, QueryInput } from 'aws-sdk/clients/dynamodb' /* eslint-enable no-unused-vars */ import { reservedWords } from './dynamoReservedWords' import { brotliDecompressSync } from 'zlib' const { isArray } = Array con...
'use strict'; import { ITransaction, IServiceMessage, ServiceAction, IServiceCall, ServiceActionTypes, IVisualization, ITransactionState, IVisualizationItem, OpenTextDocumentOptions, UITypes, BytesValue, ConsoleViewState, ProtocolShortMetadata } from "../interfaces"; import { DelegatedPromise, PromiseCancelledError } ...
/** ****************************************************************************** * 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. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. ...
import { Component } from '@angular/core'; @Component({ selector: 'crosstab', template: ` <gc-spread-sheets (workbookInitialized)="workbookInit($event)"> <div id="crosstabHeader"></div> </gc-spread-sheets>`, }) export class AppComponent { workbookInit(args: any) { l...
/// <reference path="../../localtypings/pxtarget.d.ts" /> import * as React from "react" import * as data from "./data" import * as editor from "./toolboxeditor" import * as sui from "./sui" import * as core from "./core" import Util = pxt.Util; export const enum CategoryNameID { Loops = "loops", Logic = "lo...
/* * Copyright (C) 2013 Google Inc. 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 conditio...
import { AxiosPromise } from "axios"; import * as Config from "config"; import { LangString } from "domain/common"; import { AppState, state, setTitle } from "model/state"; import tippy, { Props } from "tippy.js"; import "tippy.js/dist/tippy.css"; import { deepFind, equals, clone, isEmpty } from "utils/objects"; import...
<reponame>megahirt/lameta import * as xml2js from "xml2js"; import * as fs from "fs"; import * as Path from "path"; const filesize = require("filesize"); import * as mobx from "mobx"; import assert from "assert"; const camelcase = require("camelcase"); import { Field, FieldType } from "../field/Field"; import { FieldDe...
import logger from '@sqltools/util/log'; import Config from '@sqltools/util/config-manager'; import { EXT_NAMESPACE, EXT_CONFIG_NAMESPACE } from '@sqltools/util/constants'; import { IConnection, IExtensionPlugin, ILanguageClient, IExtension, RequestHandler, NSDatabase, ContextValue, IQueryOptions } from '@sqltools/type...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
import React, { useEffect, useState } from "react" import { makeStyles, Theme, createStyles } from "@material-ui/core/styles" import { Card, Step, Stepper, StepLabel, Typography, Box, Grid, StepContent, useMediaQuery, useTheme, StepConnector, Backdrop, CircularProgress, Dialog, DialogActio...
<filename>index.ts import { LuaArray } from "@wowts/lua"; import { spellInfos } from "./spells"; export type UIPosition = "TOPLEFT" | "CENTER" | "BOTTOMLEFT"; export type UIAnchor = "ANCHOR_BOTTOMLEFT" | "ANCHOR_NONE"; export interface UIRegion { CanChangeProtectedState():boolean; ClearAllPoints():voi...
/** Bit-set of the STAT system status registers (Address = 0x9008) **/ import {crc16modbus} from "crc"; export enum STAT { /** * Drive source ON * 0: Drive source cut off * 1: Normal * This bit will turn 0 when the motor drive-source cutoff terminal is released. */ MPOW = 1 <...
import {Models} from "../base" import {version as js_version} from "../version" import {logger} from "../core/logging" import {BokehEvent, DocumentReady, ModelEvent, LODStart, LODEnd} from "core/bokeh_events" import {HasProps} from "core/has_props" import {Serializer} from "core/serializer" import {ID, Attrs, Data, Pla...
<reponame>zys-contrib/devtools-frontend // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../../../../core/common/common.js'; import * as i18n from '../../../../core/i18n/i18n.js'...
<reponame>Japestrale/spraypaint.js /* tslint:disable:member-ordering */ import { CollectionProxy, RecordProxy, NullProxy } from "./proxies" import { ValidationErrorBuilder } from "./util/validation-error-builder" import { refreshJWT } from "./util/refresh-jwt" import relationshipIdentifiersFor from "./util/relationship...
<filename>src/geometry/matrix.ts // Used only as a polyfill for DOMMatrix /* istanbul ignore file */ /* eslint @typescript-eslint/no-use-before-define: 0 */ const enum Matrix3D { M11 = 0, M12 = 1, M13 = 2, M14 = 3, M21 = 4, M22 = 5, M23 = 6, M24 = 7, M31 = 8, M32 = 9, M33 = 10, M34 = 11, M41 = 12, M42 = ...
import { BasicCredentialHandler } from "azure-devops-node-api/handlers/basiccreds"; import { DiskCache } from "../lib/diskcache"; import { getCredentialStore } from "../lib/credstore"; import { repeatStr } from "../lib/common"; import { TfsConnection } from "../lib/connection"; import { WebApi, getBasicHandler } from "...
<filename>msteams-ui-icons/core/src/index.ts import memoize = require('lodash.memoize'); import { TypeStyle } from 'typestyle'; export const iconWeights = { Regular: 0, Light: 1, }; export const iconTypes = { ASD: '"\\e900"', Activity: '"\\e344"', AddExpression: '"\\e348"', AddParticipant: '"\\e131"', A...
/* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable @typescript-eslint/consistent-type-assertions */ /* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable camelcase */ /* eslint-disable @typescript-eslint/camelcase */ /* eslint-disable @typescript-eslint/no-...
<reponame>kickserve/Babylon.js<gh_stars>1-10 import { DeepImmutable, Nullable } from "../types"; import { Matrix, Vector3 } from "../Maths/math.vector"; // This implementation was based on the original MIT-licensed TRACE repository // from https://github.com/septagon/TRACE. /** * Generic implementation of Lev...
<filename>src/Game/GameLogic.ts import { Game } from "../Entities/gameEntity"; import { AbstractPlayer } from "./AbstractPlayer"; import { AbmBase } from "../Entities/WorldObjects/Bases/AbmBase"; import { GameRules, nuclearStrikeDamage } from "./GameRules"; import { Rng } from "../Utils/Rng"; import { ArmyBase } from ...
import { Component, OnInit, ViewChild } from "@angular/core"; import { BaseSection } from "../../../extends/base-section"; import { IFormSection } from "../../../interfaces/form-section"; import { IResponseService } from "../../../interfaces/response-service"; import { AddressesUrlParams } from "../../../parameters/add...
import { IForeignCodeExtractor, IForeignCodeExtractorsRegistry } from '../extractors/types'; import { CellMagicsMap, LineMagicsMap } from '../magics/maps'; import { IOverridesRegistry } from '../magics/overrides'; import { DefaultMap } from '../utils'; import { Signal } from '@lumino/signaling'; import { CodeEditor...
/** * @file Stage * @author <NAME> <<EMAIL>> * @private */ import { Vector3, Box3 } from 'three' import { Signal } from 'signals' import { Debug, Log, Mobile, ComponentRegistry, ParserRegistry } from '../globals' import { defaults, createParams, updateParams } from '../utils' import { degToRad, clamp, pclamp } ...
<reponame>zerodragon123/Pokemon-Showdown-rougetest import { FS } from "../../../lib"; import { Teams, Pokemon, Battle, } from "../../../sim"; import { PetModeGymConfig } from "../../../config/pet-mode/gym-config"; import { Pokemonpool } from "../../../config/rouge/pokemonpool"; import { sample } from "./moves"; //impo...
<filename>src/simulator/index.ts import {resPerUnit, decayRates, villGatheringData} from "./info"; import { Res, GatherTypes, ResPatches, EnhancedResPatches, Instructions, Step, Entity, EnhancedResPatch, Task, TaskType, PropType, FindByType, StepDesc, Until, Constructions, Buildings, U...
import * as bip39 from 'bip39' import * as crypto from 'crypto' import { HDNode } from '@ethersproject/hdnode' import * as R from 'ramda' import React, { useCallback, useEffect, useRef, useState } from "react" import { ActivityIndicator, Alert, Button, SafeAreaView, ScrollView, Text, TextInput, View } from "react-nativ...
<reponame>valgussev/excalidraw<gh_stars>1-10 import { NonDeleted, ExcalidrawLinearElement, ExcalidrawElement, PointBinding, ExcalidrawBindableElement, } from "./types"; import { distance2d, rotate, isPathALoop, getGridPoint } from "../math"; import { getElementAbsoluteCoords } from "."; import { getElementPoi...
import * as fs from 'async-file'; import * as path from "path"; import { CancelToken } from './CancelToken'; export var DEBUG: boolean = false; function log(msg: string) { if (DEBUG) console.log(msg); } function error(msg: string) { if (DEBUG) console.error(msg); } async function canWriteToF...
/* eslint no-loop-func: "off" */ import * as cannon from "cannon"; import { CannonJSPlugin } from "babylonjs"; import * as BABYLON from "babylonjs"; import "babylonjs-loaders"; import { store, ReduxState } from "../store"; const frameRate = 60; var cannonPlugin = new CannonJSPlugin(true, 10, cannon); var signaler: ...
<filename>jassijs_report/remote/pdfmakejassi.ts //templating is slow so we chache var funccache: any = {}; //https://github.com/Mottie/javascript-number-formatter/blob/master/src/format.js //license https://github.com/Mottie/javascript-number-formatter/blob/master/LICENSE const maskRegex = /[0-9\-+#]/; const notMaskReg...
<gh_stars>0 import { negotiateMediaType, NegotiatedMediaType } from './http-utils' import * as Http from './http' export enum Is { PostRedirect = 'post-redirect?', MovedTemporarily = 'moved-temporarily?', ValidEntityLength = 'valid-entity-length?', MediaTypeAvailable = 'media-type-available?', KnownMethod = ...
/* * MIT License (MIT) * Copyright (c) 2018 Activeledger * * 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 rights * to use, copy, ...
/* * * --- Jaspr Source Parser --- * <NAME> <<EMAIL>> * * A Clojure-like syntax that parses to JSON. * * All JSON is valid Jaspr. Commas are whitespace, and strings may be unquoted. * Arrays may be written with parentheses, making Lisp forms valid Jaspr as * well. Within parenthesized lists, ""-quoted strings a...
import FDBError from './error' import { Watch, NativeTransaction, Callback, NativeValue, Version, } from './native' import { strInc, strNext, asBuf } from './util' import keySelector, {KeySelector} from './keySelector' import {eachOption} from './opts' import { TransactionOptions, TransactionOptionC...
import { ApiProject, ApiTag, SecurityDef } from './../models/ApiProject.model'; import { Injectable } from "@angular/core"; import apic from '../utils/apic'; import { JsonSchemaService } from '../components/common/json-schema-builder/jsonschema.service'; import { Utils } from './utils.service'; import { METHOD_WITH_BOD...
<filename>packages/core/src/helperFunctions/helperFunctions.ts import OperationLog, { getOperationIndex } from "./OperationLog"; import getElementOperationLogMapping from "./getHtmlNodeOperationLogMapping"; import getHtmlNodeOperationLogMapping from "./getHtmlNodeOperationLogMapping"; import initDomInspectionUI from "....
<filename>node/internal.ts import fs = require('fs'); import path = require('path'); import os = require('os'); import minimatch = require('minimatch'); import util = require('util'); import tcm = require('./taskcommand'); import semver = require('semver'); import crypto = require('crypto'); //-----------------------...
<filename>src/vs/base/browser/ui/grid/grid.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-----------------...
/* * Copyright (C) 2012 Google Inc. 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 conditio...
import { Utils } from "./utils"; import { SettingsComponent } from "./settings"; import { PrintSettingsComponent } from "./print-settings"; import { ToolbarComponent } from "./toolbar"; import { OverviewComponent } from "./overview"; import { ContentComponent } from "./content"; import { ImageViewerComponent } from "....
<filename>packages/dialog/test/commands/dialog/merge.test.ts /*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ // tslint:disable:no-console // tslint:disable:no-object-literal-type-assertion import {assert} from 'chai' import * as fs from 'fs-extra' import 'mocha' ...
<reponame>thejandj/xterm.js<filename>addons/xterm-addon-webgl/src/atlas/WebglCharAtlas.ts /** * Copyright (c) 2017 The xterm.js authors. All rights reserved. * @license MIT */ import { ICharAtlasConfig } from './Types'; import { DIM_OPACITY } from 'browser/renderer/atlas/Constants'; import { IRasterizedGlyph, IBoun...
import { readFileSync, rmdirSync, writeFileSync } from 'fs' import * as path from 'path' import commandExists from 'command-exists' import { addMinutes } from 'date-fns' import * as batchChanges from './batchChanges' import * as changelog from './changelog' import { Config, releaseVersions } from './config' import { ...
<filename>frontend/locales/en.ts import { LocaleMessageObject } from 'vue-i18n'; const msgs: LocaleMessageObject = { general: { close: 'Close', submit: 'Submit', save: 'Save', comment: 'Comment', change: 'Change', donate: 'Donate', continue: 'Continue', ...
import archy from "archy"; import * as path from "path"; import * as semver from "semver"; import { SemVer } from "semver"; import * as debug from "../util/debug"; import * as packageUtils from "../util/package"; import resolve from "../util/resolve"; import { SimpleCache } from "../util/SimpleCache"; import { URI } fr...
import { Box, Grid, Typography } from "@mui/material"; import { Chart } from "../../common/chartComponents/Chart"; import { TableChart } from "../../common/chartComponents/TableChart"; import { PoolDropDown } from "../../common/utilComponents/PoolDropDown"; import { PoolName, PoolNames } from "../../constants"; import ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable @typescript-eslint/ban-ts-comment */ import styled from 'styled-components' import { useMemo, useState } from 'react' import { useRouter } from 'next/router' import ArrowRight from '../public/icons/arrow-right-green.svg' import ArrowLeft from '../publi...
<gh_stars>100-1000 import { EventEmitter, Injectable, NgZone } from '@angular/core'; import { Subject } from 'rxjs'; import { PlatformUtil } from '../../core/utils'; import { FilteringExpressionsTree } from '../../data-operations/filtering-expressions-tree'; import { IgxGridBaseDirective } from '../grid/public_api'; e...
<filename>packages/router-lite/src/route-tree.ts import { emptyObject, ILogger, onResolve, resolveAll, toArray, Writable, } from '@aurelia/kernel'; import { ConfigurableRoute, Endpoint, RecognizedRoute, } from '@aurelia/route-recognizer'; import { CustomElementDefinition, } from '@aurelia/runtime-ht...
<gh_stars>1-10 import {Colony} from '../Colony'; import {log} from '../console/log'; import {isCreep, isZerg} from '../declarations/typeGuards'; import {CombatIntel} from '../intel/CombatIntel'; import {Movement, MoveOptions} from '../movement/Movement'; import {Overlord} from '../overlords/Overlord'; import {profile} ...
// https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html // https://rhardih.io/2021/04/listing-the-contents-of-a-remote-zip-archive-without-downloading-the-entire-file/ import fetch from "cross-fetch"; import { inflateRaw } from "pako"; // ZIP file signatures const SIG_CD = 0x504b0102; const SIG_LOCAL_FILE_H...
import { assert, assertUnreachable } from "../assert"; import { MathAst } from "./math-ast"; import { MathLayout, MathLayoutContainer, MathPhysicalLayout, MathLayoutRow, MathLayoutSymbol, MathLayoutText } from "./math-layout"; import { fromElement as fromMathMLElement, toElement as toMathMLElement } from "./mathml-util...
import { useState, useEffect, useMemo, useCallback, ReactNode } from 'react'; import styled from 'styled-components'; import { ethers } from 'ethers'; import { useRecoilValue, useSetRecoilState } from 'recoil'; import get from 'lodash/get'; import produce from 'immer'; import { SOR } from '@balancer-labs/sor'; import {...
import { cosmetic } from '../rng'; import { clamp } from '../utils'; export type ColorData = | [number, number, number] | [number, number, number, number]; export type ColorBase = string | number | ColorData | Color | null; export type LightValue = [number, number, number]; // function toColorInt(r: number, ...
import chalk from 'chalk' import durationUtil from '../../utilities/duration.utility' import { ButtonWidget } from '../../widgets/types/button.types' import { InputWidget } from '../../widgets/types/input.types' import { LayoutWidget } from '../../widgets/types/layout.types' import { MenuBarWidget } from '../../widgets...
/* Copyright Contributors to the Open Cluster Management project */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Grow } from '@material-ui/core' import { makeStyles } from '@material-ui/styles' import { Dropdown, DropdownItem, DropdownToggle, DropdownToggleCheckbox, EmptyS...
<gh_stars>1-10 import { LayoutController } from "./layout/controller"; import { WindowSummary, Workspace, WorkspaceOptionsWithTitle, WorkspaceOptionsWithLayoutName, Window as WorkspacesWindow, ComponentFactory } from "./types/internal"; import { LayoutEventEmitter } from "./layout/eventEmitter"; import { IFrameContr...
import {Circuit, EMPTY_MEM, Bacon} from "../../../../src/lib"; type UUID = string; function uuid4():UUID { return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, v = c == "x" ? r : (r & 0x3 | 0x8); return v.toString(16); }); } interface Todo { ...
import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import * as $ from 'jquery'; import 'qrcode-generator'; import { AuthenticationService } from '../services/authentication.service'; import { DefaultDataService } from '../services/default-data.service'; im...
import { v4 as uuid } from 'uuid'; import { IEasyEDASchematic, IEasyEDASchematicCollectionV6 } from './easyeda-types'; import { convertLibrary } from './library-v6'; import { encodeObject, ISpectraList } from './spectra'; // Doc: https://docs.easyeda.com/en/DocumentFormat/2-EasyEDA-Schematic-File-Format/index.html in...
import SourceLocation from './SourceLocation' import SourceToken from './SourceToken' import SourceTokenList from './SourceTokenList' import SourceType from './SourceType' import BufferedStream from './utils/BufferedStream' import calculateHeregexpPadding from './utils/calculateHeregexpPadding' import calculateNormalSt...
import { Application, Color, CoreTypes, Font, ImageSource, Utils, getTransformedText } from '@nativescript/core'; import { TabContentItem } from '../tab-content-item'; import { getIconSpecSize, itemsProperty, selectedIndexProperty, tabStripProperty } from '../tab-navigation-base'; import { TabStrip } from '../tab-strip...
<reponame>strautomator/core // Strautomator Core: Strava Activities import {StravaActivity, StravaGear, StravaProcessedActivity} from "./types" import {toStravaActivity} from "./utils" import {RecipeData} from "../recipes/types" import {UserData} from "../users/types" import stravaAthletes from "./athletes" import api...
import { AppActivity, logUnhandledException, managedChild, ManagedObject, UIComponent, UIComponentEvent, UIRenderable, UIRenderContext, UIRenderPlacement, UITheme, } from "typescene"; import { BrowserApplication } from "./BrowserApplication"; import { getWindowInnerHeightDp, getWindowInnerWidthDp } ...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/********************************************************************************************************************* * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. * * ...
<filename>extensions/vscode-vue-language-features/src/features/preview.ts<gh_stars>0 import * as vscode from 'vscode'; import { compile, NodeTypes } from '@vue/compiler-dom'; import * as path from 'path'; import * as fs from '../utils/fs'; import * as shared from '@volar/shared'; import { userPick } from './splitEditor...
import * as awsIot from 'aws-iot-device-sdk'; import { EventEmitter } from 'events'; import isEqual from 'lodash/isEqual'; import { isBeacon } from 'beacon-utilities'; import JSZip from 'jszip'; import { AdapterEvent, BluetoothAdapter } from './bluetoothAdapter'; import { MqttFacade } from './mqttFacade'; import { Cha...
<reponame>song2222/pxt-neopixel /** * Well known colors for a NeoPixel strip */ enum NeoPixelColors { //% block=red Red = 0xFF0000, //% block=orange Orange = 0xFFA500, //% block=yellow Yellow = 0xFFFF00, //% block=green Green = 0x00FF00, //% block=blue Blue = 0x0000FF, //% ...
/** * Copyright (c) Facebook, 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. */ import { ServerBridge, ServerQueryRequest, ServerQueryResponse, UserConfig, VERSION, } from "@internal/core"; import { Diagn...
import * as t from 'babel-types' import generate from 'babel-generator' import { codeFrameColumns } from '@babel/code-frame' import { NodePath, Scope } from 'babel-traverse' import { LOOP_STATE, TARO_PACKAGE_NAME } from './constant' import { cloneDeep } from 'lodash' import * as fs from 'fs' import * as path from 'path...
<reponame>ganshiqingyuan/angular-cn-1 /** * @license * Copyright Google LLC 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 {Injector} from '../di/injector'; import {isType, Type} from '../interfa...
<gh_stars>0 import fontkit from '@pdf-lib/fontkit'; import { Assets } from '..'; import { clip, clipEvenOdd, closePath, cmyk, degrees, drawRectangle, endPath, grayscale, LineCapStyle, LineJoinStyle, lineTo, moveTo, PDFDocument, popGraphicsState, pushGraphicsState, rgb, setLineJoin, S...
import React from 'react'; import CharacterSelect from '../character-select/CharacterSelect'; import './loadout-builder.scss'; import { D1Item, D1GridNode, DimItem } from '../inventory/item-types'; import { ArmorTypes, LockedPerkHash, ClassTypes, SetType, PerkCombination, D1ItemWithNormalStats } from './typ...
<reponame>fallenpegasus/node-zwave-js<gh_stars>0 import { ZWaveError, ZWaveErrorCodes } from "@zwave-js/core"; import { enumFilesRecursive, formatId, JSONObject, ObjectKeyMap, ReadonlyObjectKeyMap, stringify, } from "@zwave-js/shared"; import { entries } from "alcalzone-shared/objects"; import { isArray, isObject...
<reponame>XueMoMo/electron-builder import BluebirdPromise from "bluebird-lst" import { Arch, asArray, AsyncTaskManager, debug, DebugLogger, deepAssign, getArchSuffix, InvalidConfigurationError, isEmptyOrSpaces, log, isEnvTrue } from "builder-util" import { getArtifactArchName } from "builder-util/out/arch" import { Fil...
import React from "react"; import * as ReactDom from "react-dom"; import styled from "@emotion/styled/macro"; import { Range as MonacoRange, Position as MonacoPosition, editor, } from "monaco-editor"; import { parseDOM } from "htmlparser2"; import MonacoEditor from "react-monaco-editor"; import * as Button from "...
export type TimeSelection = 'day1' | 'day2' | 'combined'; export type IndexedChampionshipType = 'PAX' | 'Novice' | 'Ladies'; export type ChampionshipType = 'Class' | IndexedChampionshipType; export type ClassCategory = | 'Street Category' | 'Street Touring Category' | 'Street Prepared Category' | 'Street Modif...
import { AnimationAnimateRefMetadata, AnimationBuilder, AnimationMetadataType, AnimationReferenceMetadata } from '@angular/animations'; import { DOCUMENT } from '@angular/common'; import { ApplicationRef, ComponentFactory, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, Inj...
<filename>src/Chart.ts import * as d3 from "d3" import {DataTable, IDatum} from "./DataTable" import {Dimension} from "./Dimension" import {haloEffect, isInRange} from "./Utils" const CFG = { // Main DATA_CIRCLE_OPACITY: 0.7, DATA_CIRCLE_MIN_R: 2, DATA_CIRCLE_MAX_R_RATIO: 0.03, DATA_CIRCLE_STROKE: "#000000",...
import Weiwudi from "weiwudi"; import { MaplatMap } from "../map_ex"; import { Coordinate } from "ol/coordinate"; import { transform } from "ol/proj"; import { canvBase, MERC_CROSSMATRIX, MERC_MAX } from "../const_ex"; import { addIdToPoi, normalizeLayer, normalizeLayers, normalizePoi } from "../normalize_pois"...
<filename>src/platform/mobile/config/player.ts<gh_stars>0 /** * 编写作者:张诗涛 * 平台环境:四川移动 * 更新时间:2019年03月14日 */ import { PageEvent } from "stb/component/pageEvent"; import { SetTimeout } from "stb/basic/setTimeout"; import { SetInterval } from "stb/basic/setInterval"; var Ysten: any = {}; (function () { /* * Yste...
<gh_stars>100-1000 import * as vscode from 'vscode'; import * as cp from 'child_process'; import * as http from 'http'; import * as net from 'net'; import * as url from 'url'; import * as path from 'path'; import * as fs from 'fs'; import * as websockets from 'ws'; import { getConfig } from './config'; import compileDo...
<reponame>QuigonNetwork/xpjs<gh_stars>1-10 /** * Elrond Implementation for cross chain traits * Unsigned Transaction methods should be used for usage with @elrondnetwork/dapp * Note that Unsigned Transactions need to be manually handled after they have been added to the block * @module */ import { Account, Add...
<reponame>openpim/server<filename>src/channels/ozon/OzonChannelHandler.ts import { Channel } from '../../models/channels' import { ChannelAttribute, ChannelCategory, ChannelHandler } from '../ChannelHandler' import fetch from 'node-fetch' import * as FormData from 'form-data' import NodeCache = require('node-cache') im...
import Eventful from '../utils/Eventful'; import Render from '../render'; import CanvasPainter from '../painter/CanvasPainter'; import SVGPainter from '../painter/SVGPainter'; import Group, { GroupAttr } from './Group'; import * as lodash from '../utils/lodash'; import { ColorValue } from '../color'; import AnimateAble...
<reponame>ProfessorOz/pokemon-showdown /** * Hashcolor file. * * Credits go to: * - panpawn and jd * - Refactored by HoeenHero */ "use strict"; import { FS } from "../../lib/fs"; let customColors = FS("database/customcolors.json").readIfExistsSync(); if (customColors !== "") { customColors = JSON.parse(custom...
import Plotly from 'plotly.js-dist'; import { v4 as uuid } from 'uuid'; import { xyla } from '../../../index'; import { Transformable, DataVector, pTransformable } from '../../common/parasite/transformable'; import { Contextual, iContextual, pContextual } from '../../common/parasite/contextual'; import { Templatable } ...
import { ALPHABET_CHARS } from "./constants"; const manufacturers = [ "AAV", "Volkswagen South Africa", "AC5", "Hyundai South Africa", "ADD", "Hyundai South Africa", "AFA", "Ford South Africa", "AHT", "Toyota South Africa", "JA3", "Mitsubishi", "JA4", "Mitsubishi", "JA", "Isuzu", "J...
<gh_stars>0 import * as Baby from "babyparse"; import { parseBlockAttributes, stringifyBlockAttributes, } from "block-attributes"; import * as fs from "fs"; import * as less from "less"; import * as path from "path"; import * as request from "request"; import * as temp from "temp"; import HeadingIdGenerator from "....
//@ts-nocheck import { BufferAttribute, BufferGeometry, Float32BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, Vector3 } from 'three'; function computeTangents( geometry ) { geometry.computeTangents(); console.warn( 'THREE.Buff...
// NG2 import { Component, Input, Output, ElementRef, EventEmitter, OnInit, OnDestroy, Directive, HostListener, AfterContentInit, AfterViewInit, } from '@angular/core'; // Vendor import { Observable } from 'rxjs/Observable'; // APP import { NovoFormGroup } from './FormInterfaces'; import { OutsideClick } fr...
import { autoinject } from 'aurelia-framework'; import { IPrinter } from '../../printer'; import { HeightMap } from 'printer/PrinterCommonModels'; import * as THREE from 'three'; import { Line2 } from 'three/examples/jsm/lines/Line2'; import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry'; import { LineMa...