text
stringlengths
9.82k
47.8k
<filename>src/template.ts import {FragmentStorefront} from "./fragment"; import cheerio from "cheerio"; import {TemplateCompiler} from "./templateCompiler"; import { CHEERIO_CONFIGURATION, CONTENT_NOT_FOUND_ERROR, NON_SELF_CLOSING_TAGS, PUZZLE_DEBUGGER_LINK, TEMP_FOLDER, TEMPLATE_FRAGMENT_TAG_NAME } from "./c...
<gh_stars>10-100 import { Log, LogTransport } from '../../log'; import { Socket } from 'net'; import { Settings } from '../../settings/settings'; import {Utility} from '../../misc/utility'; /* A list of all available ZEsarUX commands: Available commands: about Shows about message assemble ...
<filename>client/jassijs_editor/util/Parser.ts import { $Class } from "jassijs/remote/Jassi"; import typescript from "jassijs_editor/util/Typescript"; interface Properties { [details: string]: Entry; } interface Entry { value?: any; node?: ts.Node; } class ParsedDecorator { node?: ts.Decorator; ...
import { getColIdxFromClientX, getClientY, getClientX, selectAutoFillRange, setPosition, completeAction, showAggregate, dialog, locale, fillRange, hideAutoFillOptions, performUndoRedo, hideAutoFillElement } from '../../spreadsheet/index'; import { Spreadsheet, contentLoaded, positionAutoFillElement, getCellPosition, ge...
import { DisplayObject } from "../core/DisplayObject"; import * as CSSFunction from "./CSSSSystem"; import { ComponentEvent } from "../interaction/Index"; import { getStringFunctionParam } from "../utils/Utils"; /** * 定位方式 * * 元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。 * * absolute 生成绝对定位的元素,相对于第一个父...
import { property, html, css, LitElement, query } from 'lit-element'; import { ApolloClient, gql } from 'apollo-boost'; const styleMap = (style) => { return Object.entries(style).reduce((styleString, [propName, propValue]) => { propName = propName.replace( /([A-Z])/g, (matches) => `-${matches[0].toLow...
/* Copyright (c) 2020 <NAME>., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use Cocos Creato...
<gh_stars>0 import { color as Color, sprite as Sprite, utils as Utils, config as CONFIG, data as DATA, types as Types, random, make as Make, effect as Effect, } from 'gw-utils'; import { Tile, tiles as TILES } from './tile'; import * as Map from './map'; import * as Light from './lig...
<reponame>r351574nc3/auto-meme-steem-bot<filename>src/spam.service.ts import { Injectable, Logger } from '@nestjs/common'; import { HiveService } from './hive.service'; import { SteemService } from './steem.service'; import { config } from './config'; import * as Promise from 'bluebird'; import * as moment from 'moment...
import _ from "lodash"; import * as ProbDist from "./ProbDist"; import {assertNever, filterNonempty, sumObjects} from "./Utils"; import { Stat, StatsTable, CharClass, CharName, EquipName, AbilityName, HistoryEntryCheckpoint, HistoryEntryClass, HistoryEntryBoost, HistoryEntryMaxBoost, HistoryEntryEquipChange...
<reponame>Phoenix-OpsGroup/metar-plot /** * Weather Descriptor */ export class Weather { //Raw data code public abbreviation?: string; //Human readable text public meaning?: string; } /** * Depricated - for internal use only please use getWeatherLegend(key: string) * @param key weather abbriviatio...
import React, {useEffect, useRef, useState} from "react" import {ipcRenderer} from "electron" import {app} from "@electron/remote" import path from "path" import Slider from "rc-slider" import functions from "../structures/functions" import playButton from "../assets/icons/play.png" import playButtonHover from ...
<reponame>oleanders/fint-informasjonsmodell-documentation<gh_stars>0 import {AfterViewInit, Component, ElementRef, HostListener, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {DomSanitizer, SafeStyle, Title} from '@angular/platform-browser'; import {Router} from '@angular/router'; import {Subscription} fro...
import * as shared from '@volar/shared'; import { parseScriptRanges } from '@volar/vue-code-gen/out/parsers/scriptRanges'; import { SearchTexts, TypeScriptRuntime } from '@volar/vue-typescript'; import { VueDocument, VueDocuments } from '../vueDocuments'; import { computed, pauseTracking, ref, resetTracking } from '@vu...
<gh_stars>0 import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges, ElementRef, ViewEncapsulation, ChangeDetectorRef, Renderer, forwardRef } from "@angular/core"; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms"; import { IMyDate, IMyDateRange, IMyMonth, IMyCalendarDay, IMyWee...
<filename>router/src/router.ts import { Option, JSType, is_type, some, none, is_some, un_some, then_some, or_none, seek_some, filter_some, some_if, none_is, map_some, some_type, some_def, seek_some_rec, mk_seq, do_seq, tuple, any_to_str, Paired, Keyed, PairedAsKeyed, pa...
<gh_stars>1-10 import { Player } from 'engine/models'; import { EventType, Inv } from 'engine/enums'; import _events from 'engine/events'; import _config from 'engine/config'; import { varbit, setVarp, setVarc, setVarBit, varp } from 'engine/var'; import _component from 'shared/widget/component'; import { closeOverlay...
/* * Copyright (c) 2020, 2021 Yahweasel * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS...
import Serverless from 'serverless'; import { TerraformStack, TerraformOutput, TerraformResource, S3Backend, DataTerraformRemoteState, DataTerraformRemoteStateS3 } from 'cdktf'; import { Construct } from 'constructs'; import _ from 'lodash'; import { S3Bucket, DataAwsIamPolicyDocument, S3BucketPolicy, Cloudwat...
<reponame>doremon04/mimin3 import a511 from "../assets/audios/a511.mp3"; import a512 from "../assets/audios/a512.mp3"; import a513 from "../assets/audios/a513.mp3"; import a514 from "../assets/audios/a514.mp3"; import a515 from "../assets/audios/a515.mp3"; import a516 from "../assets/audios/a516.mp3"; import a517 from ...
import { Injectable, Logger } from '@nestjs/common'; import { HiveService } from './hive.service'; import { SteemService } from './steem.service'; import { config } from './config'; import * as Promise from 'bluebird'; import * as moment from 'moment'; import * as fs from 'fs'; import * as bot from 'talkify'; import * ...
<reponame>cau-se/titan-ccp-frontend /* eslint-disable @typescript-eslint/no-explicit-any */ declare let d3version3: any const d3: any = d3version3 export type d3Point = [Date, number]; class CanvasDataPlot { protected data: d3Point[][]; dataIDs: string[]; dataLabels: string[]; displayIndexStart: number[]; d...
import { TimelineState, ResolvedTimeline, Time, ResolvedTimelineObject, TimelineObjectInstance, ResolvedTimelineObjectInstance, Content, AllStates, StateInTime, TimeEvent, ResolvedStates, ResolvedTimelineObjectInstanceKeyframe, NextEvent, ResolverCache, } from '../api/api' import * as _ from 'underscore' ...
<filename>client/src/models/knoweng/results/SpreadsheetVisualization.ts /* * 1. CLASSES REPRESENTING RAW DATA */ /** Represents one row of data. */ export class Row { constructor( public values: any[], // ordered as they appear in the original spreadsheet public idx: number, // row index ...
<gh_stars>1-10 import { ChatroomCharacter, getPlayerCharacter } from "../characters"; import { BaseModule } from "./_BaseModule"; import { hookFunction, removeAllHooksByModule } from "../patching"; import { clamp, dictionaryProcess, isObject } from "../utils"; import { ChatRoomSendLocal } from "../utilsClub"; import { ...
import * as cp from 'child_process'; import * as path from 'path'; import * as net from 'net'; import * as data from './data'; import { TSEventEmitter } from './events'; import { Reconnector } from './reconnector'; import fs from './fs'; import * as GameJolt from './gamejolt'; import { Logger } from './logger'; import ...
<reponame>stuartpb/itwinjs-core<gh_stars>10-100 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------...
/** * @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 {SimpleChange} from '@angular/core'; import {fakeAsync, flushMicrotasks, tick} from '@angular/core/testing'; ...
/* Original work Copyright (c) Microsoft Corporation (MIT) See ThirdPartyNotices.txt in the project root for license information. All modifications Copyright (c) Robocorp Technologies Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance...
/* eslint-disable @typescript-eslint/no-namespace */ import { transformOauthGuildsAndUser } from '#lib/api/utils'; import { CATEGORIES as TRIVIA_CATEGORIES } from '#lib/games/TriviaManager'; import { Colors, LanguageFormatters } from '#lib/types/Constants'; import { DEV, PREFIX, VERSION as SKYRA_VERSION } from '#root/c...
import seedrandom from 'seedrandom'; import { format as fmt } from 'util'; import Cell from './Cell'; import { CELL_TAGS, CELL_TRAPS, DIRS } from './Enums'; import Logger, { LOG_LEVELS } from './Logger'; import { Position } from './Position'; const log = Logger.getInstance(); const MAX_CELL_COUNT = 2500; // control ma...
<filename>src/pipeline/links.ts import { DocumentNode, FieldNode, getNamedType, GraphQLArgument, GraphQLArgumentConfig, GraphQLEnumType, GraphQLEnumValue, GraphQLEnumValueConfigMap, GraphQLField, GraphQLFieldConfigArgumentMap, GraphQLInputFieldConfigMap, GraphQLInputObjectType, GraphQLInputType, GraphQLInte...
import * as util from 'util'; import { assign, trim, lowerCase, merge, set, clone } from 'lodash'; import * as escapeStringRegexp from 'escape-string-regexp'; import { Schema, Model, SchemaType, Types } from 'mongoose'; import { unflatten } from 'flat'; interface ILogger { debug: (...data: any) => void; warn: (......
<reponame>coin-au-carre/ShieldBattery import cuid from 'cuid' import { Immutable } from 'immer' import { container, singleton } from 'tsyringe' import { ReadonlyDeep } from 'type-fest' import { assertUnreachable } from '../../../common/assert-unreachable' import { isAbortError, raceAbort } from '../../../common/async/a...
/* eslint-disable no-underscore-dangle */ import bus from 'framebus'; import get from 'lodash/get'; import Client from '../../../client'; import { ELEMENT_EVENTS_TO_CLIENT, ELEMENT_EVENTS_TO_IFRAME, ELEMENTS, COLLECT_FRAME_CONTROLLER, ElementType, FRAME_ELEMENT, } from '../../constants'; import EventEmitter...
/******************************************************************************** * 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. *...
<filename>src/SuperMarioGalaxy/EffectSystem.ts import * as RARC from '../j3d/rarc'; import * as JPA from '../j3d/JPA'; import { createCsvParser, JMapInfoIter } from "./JMapInfo"; import { SceneObjHolder } from "./Main"; import { leftPad, assert, assertExists, fallback } from "../util"; import { GfxDevice } from "../g...
/// <reference path="./types/parcel-watcher.d.ts" /> import { Graph } from '@garment/dependency-graph'; import { Level, Logger } from '@garment/logger'; import { CacheProvider, File, file, getHandler, getRunnerContext, getSchema, getWatcher, InputFn, InputFnCallBack, OutputContainer, renderOption...
import m from 'mithril'; import Stream from 'mithril/stream'; import { IAppModel, UpdateStream } from '../meiosis'; import { FeatureCollection, Feature, GeoJsonObject, Point, LineString, Polygon } from 'geojson'; import { actions } from '..'; import L, { LeafletEvent } from 'leaflet'; import { NamedGeoJSONOptions } fro...
import {Timestamp, log} from "./util" import {UUID, uuidToString, uuidFromString} from "./uuid" import {Path} from "./path" import {Data, DataArray, DataMap, DataMapKey, DataSet, Record, isMap, isSet} from "./data" export type KeyType = "undefined" | "null" | "boolean" | "int8" | "int16" | "int32" ...
import React, { useCallback, useEffect, useMemo, useState } from 'react' import classNames from 'classnames' import * as H from 'history' import { capitalize } from 'lodash' import ChevronDownIcon from 'mdi-react/ChevronDownIcon' import ChevronRightIcon from 'mdi-react/ChevronRightIcon' import CloseIcon from 'mdi-reac...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2021 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
/** * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ import { Column, Table } from '../../../mol-data/db'; import { mmCIF_Database, mmCIF_Schema } from '../../../mol-io/reader/cif/schema/mmcif'; import { Spa...
type PackageName = string; export type HoisterTree = {name: PackageName, identName: PackageName, reference: string, dependencies: Set<HoisterTree>, peerNames: Set<PackageName>}; export type HoisterResult = {name: PackageName, identName: PackageName, references: Set<string>, dependencies: Set<HoisterResult>}; type Locat...
import { StyleSheet, css } from 'aphrodite'; import BroadcastChannel from 'broadcast-channel'; import debounce from 'lodash/debounce'; import nullthrows from 'nullthrows'; import Raven from 'raven-js'; import * as React from 'react'; import { connect } from 'react-redux'; import { Snack, SnackLogEvent, SnackListenerSub...
<gh_stars>100-1000 import { gte } from "semver"; import { AddressType, ArrayType, assert, ASTNodeFactory, Block, BoolType, BytesType, ContractDefinition, ElementaryTypeName, EnumDefinition, Expression, FixedBytesType, ForStatement, FunctionCallKind, FunctionDe...
import { selectFrom, selectWnd, getCurTab, runtimeError_, tabsGet, getTabUrl, getCurWnd, Tab, Window, browserTabs, browserWindows, getAllWindows, tabsCreate, safeUpdate, InfoToCreateMultiTab, openMultiTab, makeWindow } from "./browser" import { cKey, cPort, cRepeat, get_cOptions, set_cOptions, set_cPort, set_cRepea...
<filename>web/src/app/modules/views/main/editors/modules/graphical-editor/components/graphical-editor.component.ts import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { mxgraph } from 'mxgraph'; // Typings onl...
import * as apid from '../../../../node_modules/mirakurun/api'; import DateUtil from '../../Util/DateUtil'; import RuleUtil from '../../Util/RuleUtil'; import StrUtil from '../../Util/StrUtil'; import { SearchInterface } from '../Operator/RuleInterface'; import * as DBSchema from './DBSchema'; import DBTableBase from '...
import { createHmac, randomBytes } from "crypto"; import fs from "fs"; import { TextDecoder } from "util"; // This zmq must be used only for types. // zeromq runtime must be delay loaded in init(). import * as zmq from "zeromq"; import { isCompleteCode } from "./converter"; import { Executor } from "./executor"; impo...
<reponame>citrix/CitrixDeveloper-VSCode 'use strict'; // 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'; import {Uri} from 'vscode'; import { CPXItem } from './QuickPickItems/CPXItem'; import * as...
/** * * Author: <NAME> */ import { DbmsSupported } from '@libs/ontouml2db/constants/DbmsSupported'; import { Ontouml2DbOptions } from '@libs/ontouml2db/Ontouml2DbOptions'; import { StrategyType } from '@libs/ontouml2db/constants/StrategyType'; import { Ontouml2Db } from '@libs/ontouml2db/Ontouml2Db'; import { Graph...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { DebugProtocol } from 'vscode-debugprotocol'; import { BreakpointEvent, logger } from 'vscode-debugadapter'; import { ISetBreakpo...
<filename>src/feature_embedding.test.ts //@ts-nocheck import util from 'util'; import path from 'path'; import os from 'os'; import fs from 'fs-extra'; // import * as ms from '@jsonstack/data'; // import * as jskp from 'jskit-plot'; import { FeatureEmbedding, setBackend, } from './index'; import '@tensorflow/...
import * as Comments from "./comments"; import { PrInfo, BotError, BotEnsureRemovedFromProject, BotNoPackages } from "./pr-info"; import { CIResult } from "./util/CIResult"; import { ReviewInfo } from "./pr-info"; import { noNulls, flatten, unique, sameUser } from "./util/util"; type ColumnName = | "Needs M...
<reponame>tankist/pg-mem import { IMemoryDb, IMemoryTable, DataType, IType, TableEvent, GlobalEvent, ISchema, SchemaField, MemoryDbOptions, nil, Schema, QueryError, ISubscription, LanguageCompiler, ArgDefDetails, QueryResult } from './interfaces.ts'; import { Expr, SelectedColumn, SelectStatement, CreateColumnDef, Alte...
import "angular"; import "angular-strap"; import "angular-schema-form"; import "angular-animate"; import "ace"; import "ace/theme-monokai"; import "ace/mode-json"; import "angular-ui/ui-ace"; import "networknt/angular-schema-form-ui-ace"; import "OptimalBPM/angular-schema-form-complex-ui"; import "angular-schema-form...
import { ChangeDetectorRef, Component, CUSTOM_ELEMENTS_SCHEMA, EventEmitter, Input, NgModule, OnInit, Output } from '@angular/core'; import { GlobalVarsService } from '../../global-vars.service'; import { BackendAPIService } from '../../backend-api.service'; import { sprintf } from 'sprintf-js'; import ...
/** * @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 {Attribute, Component, ContentChild, ContentChildren, Directive, Host, HostBinding, HostListener, Inject, Inj...
import { browser } from 'webextension-polyfill-ts'; import { SchemContextManager } from '../contextManager'; import { getJsProperty, interopFunctions, invokeJsProcedure, schemToJs, coerceToSchem, coerceToJs, resolveJSPropertyChain, resolveToParentAndProperty } from '../javascriptInterop'; import { coreFunctions } from ...
<gh_stars>0 /* Copyright 2010-2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permissio...
<gh_stars>0 import MirroringMode from "../Common/MirroringMode"; import IPPU2C02 from "./IPPU2C02"; import MaskRegister from "./MaskRegister"; import ShiftRegister from "./ShiftRegister"; import Sprite from "./Sprite"; import StatusRegister from "./StatusRegister"; import VRamRegister from "./VRamRegister"; impo...
<reponame>reimagined/resolve import type { PassthroughErrorInstance, ExternalMethods, ReadModelCursor, ReadModelProcedureLedger, ProcedureResult, EventThreadData, ReadModelEvent, } from './types' import getLog from './get-log' import { LeveledDebugger } from '@resolve-js/debug-levels' const serializeErro...
import { Big } from "big.js"; import { ethers, BigNumber } from "ethers"; import { Mangrove, Market } from "."; import { Bigish } from "./types"; import { TypedEventFilter } from "./types/typechain/common"; import { Mutex } from "async-mutex"; import { Listener } from "@ethersproject/providers"; // Guard constructor a...
<gh_stars>0 import * as d3 from 'd3'; import {Project} from './models/project.model'; import {ProjectService} from './services/project.service' import {Node} from './models/node.model'; import {Edge} from './models/edge.model'; import {View} from './view.model'; const final = { /* --------------- NODE CONSTANTS ----...
import {Component, OnInit} from '@angular/core'; import { faCat, faDog, faPaw, faVenusMars, faGlobeEurope, faMap, faMapMarkedAlt, faBirthdayCake, faEnvelope } from '@fortawesome/free-solid-svg-icons'; import {PetService} from '../services/pet-service'; import {Pet} from '../entities/pet'; import {Wing...
<filename>index.d.ts // Type definitions for Angular JS 1.5 // Project: http://angularjs.org // Definitions by: <NAME> <http://github.com/trotyl> // Definitions: https://github.com/trotyl/typed-angular declare module 'angular' { export = angular } declare namespace angular { const callbacks: { counte...
// Type definitions for JsViews 1.0 // Version: "v1.0.5" // Project: http://www.jsviews.com/#jsviews // Definitions by: <NAME> <https://github.com/borismoore> // Definitions: https://www.jsviews.com/download/typescript/jsviews/index.d.ts // TypeScript Version: 2.3 /// <reference types="jquery" /> declare module 'jsvi...
<reponame>satopian/klecks import {BB} from '../../bb/bb'; import {IBounds, IPressureInput, IVector2D} from '../../bb/bb.types'; import {IHistoryEntry, KlHistoryInterface} from '../history/kl-history'; import {KL} from '../kl'; import {IRGB} from '../kl.types'; // let statCount = 1; // let statAcc = 0; // stats on win1...
<reponame>ekitabu-LLC/r2streamer // ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file expose...
import { Expression, ExpressionF, TableSubtype, Grouped } from '../query_types'; import { withParentheses, expressionWithParentheses, sqlmap } from '../utils'; import { SQLType } from '../columns'; import { TypeParser, AllTypes, defaultTypes } from '../types'; import { asET, Expr, AsET, Ambiguous, SQLTypeSet, possibleT...
import { Component, ViewEncapsulation, OnInit , Input, Inject } from '@angular/core'; import { RestService } from '../rest.service'; import { ActivatedRoute, Router } from '@angular/router'; import {ViewChild} from '@angular/core'; import {MatPaginator} from '@angular/material/paginator'; import {MatSort} from '@angul...
<reponame>equilibrium-eosdt/noble-secp256k1<filename>test/index.ts import * as fc from 'fast-check'; import * as secp from '..'; import { readFileSync } from 'fs'; import { createHash } from 'crypto'; import * as sysPath from 'path'; import * as ecdsa from './vectors/ecdsa.json'; import * as ecdh from './vectors/ecdh.j...
export declare enum AllianceType { RED = 0, BLUE = 1, } export declare enum ArtifactName { NONE = 0, ARTIFACT_TELEPATHY_1 = 1, ARTIFACT_TELEPATHY_2 = 2, ARTIFACT_TELEPATHY_3 = 3, ARTIFACT_TELEPATHY_4 = 4, ARTIFACT_TELEPATHY_5 = 5, ARTIFACT_ADDITIONAL_MONSTER_1 = 6, ARTIFACT_STOP_...
import { ARMCore } from './core'; import { GameBoyAdvance } from './gba'; import { ioAddr } from './io'; import { CPU_FREQUENCY } from './irq'; import { regionBase } from './mmu'; const PSG_MAX = 0x80; const SOUND_MAX = 0x400; const FIFO_MAX = 0x200; // const SOUND_BIAS = 0x200; const dutyLookUp = [0.125, 0.25, 0.5, ...
<reponame>gyojir/fullbody-ik-demo import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; import { SkeletonUt...
<gh_stars>10-100 import { strict as assert } from 'assert'; import { DbHandler} from "../dist/Prostgles"; import { DBHandlerClient } from "./client/index"; import * as fs from "fs"; export async function tryRun(desc: string, func: () => any){ try { await func(); } catch(err) { console.error(desc + " FAILE...
<gh_stars>10-100 /* eslint-disable no-restricted-imports */ import _ from 'lodash'; import $ from 'jquery'; import { PanelEvents, isTableData } from '@grafana/data'; import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk'; import { config } from '@grafana/runtime'; import { transformDataToTable } from './transform...
<reponame>KanishkaBandaru/google-play-vsts-extension import * as fs from 'fs'; import * as path from 'path'; import * as tl from 'azure-pipelines-task-lib/task'; import * as glob from 'glob'; import * as apkReader from 'adbkit-apkreader'; import * as googleutil from './googleutil'; async function run() { try { ...
// #!/usr/bin/env babel-node // -*- coding: utf-8 -*- /** @module internationalisation */ 'use strict' /* ! region header [Project page](https://torben.website/internationalisation) Copyright <NAME> (info["~at~"]torben.website) 16.12.2012 License ------- This library written by <NAME> stand u...
<filename>third_party/github.com/bazelbuild/rules_typescript/internal/tsc_wrapped/compiler_host.ts import * as fs from 'fs'; import * as path from 'path'; import * as tsickle from 'tsickle'; import * as ts from 'typescript'; import {FileLoader} from './cache'; import * as perfTrace from './perf_trace'; import {BazelOp...
/* * 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 by applicable l...
import { markdown } from '@codemirror/lang-markdown' import { parser as CSSAttrParser } from './grammars/css-attribute' import { cssLanguage, cssCompletion } from '@codemirror/lang-css' import { MarkdownConfig, Subscript, Superscript, Table, TaskList, Emoji, InlineParser, InlineContext, BlockContext, Line, Elemen...
import * as $ from 'jquery'; import * as moment from 'moment'; import ParseNumYears from './ParseNumYears'; declare var PptxGenJS : any; // information pertaining to the date export class DateEntry { public constructor(public month: number, public day: number, public name: string, public img: string) {} } class ...
<reponame>slashd0t/rotating-file-stream<gh_stars>0 "use strict"; import { ChildProcess, exec } from "child_process"; import { Gzip, createGzip } from "zlib"; import { Readable, Writable } from "stream"; import { Stats, close, createReadStream, createWriteStream, mkdir, open, readFile, rename, stat, unlink, write, writ...
<filename>modules/client/src/connext.ts import { ERC20 } from "@connext/contracts"; import { Address, AppAction, AppInstanceJson, AppInstanceProposal, AppRegistry, AssetId, ChannelMethods, ChannelProviderConfig, ConditionalTransferTypes, CONVENTION_FOR_ETH_ASSET_ID, DefaultApp, DepositAppName, ...
import assert from "assert"; import fs from "fs/promises"; import path from "path"; import { CorePlugin, Request, Response, Scheduler } from "@miniflare/core"; import { Compatibility, NoOpLog, PluginContext, STRING_SCRIPT_PATH, } from "@miniflare/shared"; import { logPluginOptions, parsePluginArgv, parseP...
<reponame>gregcorby/defi-cli-1 import BN from 'bn.js' import chalk from 'chalk' import ora from 'ora' import { fetchTrustWalletTokens, } from './components/fetch/index' import { castFiglet, } from './components/figlet/index' import { agreeDisclaimer, chainSelectionChoices, confirmProceed, confirmReload, c...
<reponame>JetBrains/web-types import {evaluate, LogLevelKind} from "@wessberg/ts-evaluator"; import * as fs from "fs"; import cloneDeep from "lodash/cloneDeep"; import * as path from "path"; import "streamjs"; import * as ts from "typescript"; import { BinaryExpression, CallExpression, ElementAccessExpressi...
<filename>src/channels/wb/WBChannelHandler.ts import { Channel, ChannelExecution } 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') import { Ite...
import { Injectable } from '@angular/core'; import { Oscillator } from '../synthesizer/oscillator/oscillator'; import { mapVal, unMap, MappingType} from './value-mapping.service'; import { FilterType } from '../synthesizer/filters/filters'; function _window() : any { return window; } enum TonePhase{ Attack, Rel...
<reponame>husky-koglhof/node-zwave-js import { Comparable, compareNumberOrString, CompareResult } from "alcalzone-shared/comparable"; import { entries } from "alcalzone-shared/objects"; import { SortedList } from "alcalzone-shared/sorted-list"; import { EventEmitter } from "events"; import * as SerialPort from "serialp...
<filename>src/compute-engine/canonical-forms.ts import { Expression } from '../math-json/math-json-format'; import { Form, ComputeEngine } from '../math-json/compute-engine-interface'; import { isAtomic, isNumberObject, getNumberValue, getFunctionName, getTail, getArg, getArgCount, getFunctionHead, PO...
import { parseDateStr, isIE, stripUnwanted, getOffset, formatDateStr, hashKey, internalProperties } from "./utils"; declare let g: any; // Function to open/close and hide/show children of specified task export const folder = function (pID, ganttObj) { let vList = ganttObj.getList(); ganttObj.clearDependencies();...
export { abi } from './abi' type TokenPair = { ctokenSym: string underlySym: string ctokenDecimal: number underlyDecimal: number ctokenIsEther: boolean } const defPair = ( ctokenSym: string, underlySym: string, ctokenDecimal = 18, underlyDecimal = 18, ctokenIsEther = false, ) => { return { ctoke...
<reponame>mscuthbert/wc-2048 import { LitElement, html, PropertyValues, css, } from 'lit'; import {customElement, property, query} from 'lit/decorators.js'; import choice from 'pick-random'; import {MGrid} from './grid'; import {button, sleep} from './help'; import {MScoreboard} from './scoreboard'; im...
import { ArrowUp16, Close20 } from '@carbon/icons-react'; import { InlineLoading } from 'carbon-components-react'; import cx from 'classnames'; import { unzipSync, strFromU8 } from 'fflate'; import { Stack } from 'office-ui-fabric-react'; import React, { useCallback, useEffect, useRef, useState } from 'react'; import A...
<gh_stars>0 /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ import * as typedoc from 'typedoc'; import * as fs from 'fs/promises'; import * as pathlib from 'path'; import * as sourceMap from 'source-map'; const litDevMonorepoPath = pathlib.resolve(__dirname, '..', '..', '..')...
<gh_stars>100-1000 import * as ts from 'typescript'; import { ParseArrayLiteral, ParseArrayType, ParseClassDeclaration, ParseDecorator, ParseDefinition, ParseDependency, ParseEmpty, ParseExpression, ParseIndexSignature, ParseInterfaceDeclaration, ParseIntersectionType, ParseLocation, ParseMeth...
import { Corners } from '../generalTypes.d.ts' interface Private {} export default class Observe { _: Private // parent p: any name: string id: string helpDiv: HTMLElement corner: Corners constructor(parent: any, name: string) { this.p = parent this.name...