text
stringlengths
9.82k
47.8k
<reponame>pavel-petrenko/DefinitelyTyped // Type definitions for non-npm package webxr 0.3 // Project: https://www.w3.org/TR/webxr/ // Definitions by: <NAME> <https://github.com/robrohan> // <NAME> <https://github.com/RaananW> // <NAME> <https://github.com/capnmidnight> // Definitions: h...
<gh_stars>1-10 import { EventEmitter, Injectable } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { TranslateService } from '@ngx-translate/core'; import { BaseBeforeImportHandler, BeforeImportHandler } from 'app/shared/utils/import/base-before-import-handler'; import { Papa, Pa...
<reponame>digital-ECMT/acuity-vahub /* * Copyright 2021 The University of Manchester * * 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 ...
import { Component, OnInit, Inject, ViewChild, ElementRef, Renderer, AfterViewInit, ViewChildren, ViewContainerRef, Output, EventEmitter } from '@angular/core'; import { CategoryService } from '../category/category.service'; import { Category } from '../category/category'; import { UnitService } from '../unit/unit....
<gh_stars>0 import addClass from 'element-addclass'; import hasClass from 'element-hasclass'; import removeClass from 'element-removeclass'; import isPrintableKeycode from 'is-printable-keycode'; import './closest-polyfill'; import EnhancedListIds from './enhanced-list-ids'; import EnhancedListApi from './enha...
<reponame>nhducit/redux-saga import {Action} from "redux"; import {END, Channel, Task, Buffer, Predicate} from "./index"; type ActionType = string | number | symbol; type StringableActionCreator<A extends Action> = { (...args: any[]): A; toString(): string; }; type SubPattern = ActionType | Predicate<Action>...
<gh_stars>0 import { ExpressionService } from "../../valueService/expressionService"; import { Constants } from "../../constants/constants"; import { Autowired } from "../../context/context"; import { Component } from "../../widgets/component"; import { ICellRendererComp, ICellRendererFunc, ICellRendererParams } from "...
<filename>x-pack/plugins/ml/common/util/job_utils.ts<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import _ f...
<gh_stars>0 // This file is derived from the Cesium code base under Apache 2 license // See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md import {Vector3, Matrix4} from '@math.gl/core'; import {CullingVolume} from '@math.gl/culling'; import {load} from '@loaders.gl/core'; import...
import { LOCATION, POS, Message, MsgStart, MsgUpdateCard, MsgMove, HINT } from '@ego/message-protocol' import { CardRecordWithText, instantiate, MessageTemplate } from '@ego/common' interface ClientCardState { code: number controller: number location: number sequence: number position: number type?: numbe...
<filename>src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts<gh_stars>1-10 // Copyright (c) 2017 VMware, 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 Lice...
/** * Dev Notes * - State grouping: Often we want hierarchical state - i.e, set viewport for this node _and_ all of its children */ import GPUDevice, { GPUDeviceInternal, GPUProgram, GPUProgramInternal, GPUTexture, GPUTextureInternal, GPUVertexState, VertexAttribute, VertexStateDescriptor, AttributeLayout, shaderTy...
<gh_stars>0 import { expect } from 'chai'; import { blendColors, parseColor } from './browser-graphics-util'; import { doesCharacterGlyphExist, encodeForUri, getCssValue, getCssValues, getFont, getFontMetrics, htmlEscape, htmlUnescape, urlEncodeParams } from './browser-util'; import { classOf, clone, DateTimeOptions,...
<gh_stars>0 /*! * Copyright 2021 WPPConnect Team * * 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 ...
import { AttribLayer, GlobalEvents, InstanceAPI } from '@/api/internal'; import { Extent, GeometryType, IdentifyParameters, IdentifyResult, IdentifyResultFormat, IdentifyResultSet, LayerType, Point, QueryFeaturesParams, RampLayerConfig, RampLayerMapImageLayerEntryConfig, ...
<reponame>kavinkumarrajendran/ej2-javascript-ui-controls<gh_stars>100-1000 import { createCheckBox } from '@syncfusion/ej2-buttons'; import { IMulitSelect } from './interface'; import { Input, InputObject } from '@syncfusion/ej2-inputs'; import { EventHandler, select, removeClass, addClass, detach, compile, L10n } from...
// - Import react components import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/CardHeader'; import { grey } from '@material-ui/core/colors'; import Dialog from '@material-ui/c...
<gh_stars>0 import { LoggingDebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, BreakpointEvent, OutputEvent, Thread, StackFrame, Source, Handles, Breakpoint, ThreadEvent, Scope } from 'vscode-debugadapter'; import {DebugProtocol} from 'vscode-debugprotocol'; import {basename} from 'path'; import...
<gh_stars>0 import * as ts from 'typescript'; import * as path from 'path'; import { compileDts } from './compile-dts'; import { TypesUsageEvaluator } from './types-usage-evaluator'; import { getActualSymbol, getDeclarationNameSymbol, getDeclarationsForSymbol, getExportsForSourceFile, getExportsForStatement, has...
import { CipherTest, ITestState, IAnswerTemplate } from './ciphertest'; import { toolMode, ITestTimeInfo, menuMode, IState, IInteractiveTest } from '../common/cipherhandler'; import { ICipherType } from '../common/ciphertypes'; import { cloneObject, makeCallout, formatTime, NumberMap, timestampFromS...
import { Token, TokenType, AstWriter, ParserBase, ExpressionParser, Parser, AstNode, Expression, Statement, UnresolvedExpression, SimpleName, SubroutineDeclaration, SubroutineExpression, ArrayMemberAccessExpression, ArrayRefDeclaration, BarewordExpression, BeginStatement, BinaryExpression, Block, Block...
<gh_stars>0 import BaseWidget = require('core/BaseWidget.class'); import LoTemplate = require('lodash/template'); import Draw = require('esri/toolbars/draw'); import Graphic = require('esri/graphic'); import SimpleMarkerSymbol = require('esri/symbols/SimpleMarkerSymbol'); import SimpleLineSymbol = require('esri/symbol...
<gh_stars>0 import { IResolvers, SchemaDirectiveVisitor, mergeSchemas, IDirectiveResolvers, makeExecutableSchema, IResolverValidationOptions } from 'graphql-tools'; import { mergeGraphQLSchemas, mergeResolvers, IResolversComposerMapping, composeResolvers , getSchemaDirectiveFromDirectiveResolver } from 'graphql-toolkit...
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ----------------------------------------------------------------...
<filename>src/parameters.ts // Goto labels (we manually keep track of these) {{{1 // 1 - beginning of pulse sequence ('ze') // 2 - NS loop (go=2) // 3 - EA loop (lo to 3 times 2) // 4 - t1 loop (lo to 4 times l1) // 5 - HSQC-TOCSY DIPSI-2 // 6 - ASAP mixing // 7 - ROESY spin lock // 8 - TOCSY DIPSI-2 // 9 - 13C module ...
import { browser } from '../browser'; import { Button } from '../components/Button'; import { PageHeading } from '../components/PageHeading'; import { DOM } from './DOM'; import { Popup } from './Popup'; import { Settings } from './Settings'; import { Shared } from './Shared'; export interface SettingsWizardStep { do...
// // Created by <NAME> on 18/6/21. // illuspas[a]gmail.com // Copyright (c) 2018 Nodemedia. All rights reserved. // const EventEmitter = require('events'); const Logger = require('../core/logger'); const Crypto = require('crypto'); const Url = require('url'); const Net = require('net'); const AMF = require('../cor...
<reponame>carbon/uploader module Carbon { export class Progress { constructor(public loaded: number, public total: number) { this.loaded = loaded; this.total = total; } get value() { return this.total !== 0 ? (this.loaded / this.total) : 0; } toString() { return Math.roun...
<gh_stars>1-10 import * as Figma from 'figma-api'; import SVGO from 'svgo'; import fetch from 'node-fetch'; import { em, rem } from 'polished'; import setWith from 'lodash.setwith'; import colorConvert from 'color-convert'; import { getFile } from '../api'; import { logError } from '../utils/log'; import type { Dict...
// Copyright (c) 2022. <NAME> <<EMAIL>>. All rights reserved. import { trim } from "../modules/lodash"; export enum CountryCode { AF = "AF", AX = "AX", AL = "AL", DZ = "DZ", AS = "AS", AD = "AD", AO = "AO", AI = "AI", AQ = "AQ", AG = "AG", AR = "AR", AM = "AM", AW =...
<reponame>doorbash/hexy-io var names = [ 'EatBullets', 'PR0_GGRAM3D', 'CollateralDamage', 'TheSickness', 'Shoot2Kill', 'Overkill', 'Killspree', 'MindlessKilling', 'Born2Kill', 'TheZodiac', 'ZodiacKiller', 'Osamaisback', 'OsamasGhost', 'T3rr0r1st', 'ToySoldier'...
<filename>packages/rfx-parsers/src/protocol/index.ts /* Copyright 2011-2019, RFXCOM ALL RIGHTS RESERVED. The RFXtrx protocol is owned by RFXCOM, and is protected under Netherlands Copyright Laws and Treaties and shall be subject to the exclusive jurisdiction of the Netherlands Courts. The information from this file ma...
import bigInt from 'big-integer'; import {collectLatexStringFromReturnValue, print_expr,} from '../sources/print'; import {symbol} from './symbol'; export function breakpoint() {} // also change the version in the package.json file export const version = '1.3.1'; const SELFTEST = 1; // size of the symbol table expo...
import * as assert from 'assert'; import {EventEmitter} from 'events'; import {isString, isNullOrUndefined} from 'util'; import {ErrorCode} from '../error_code'; import {LoggerInstance, } from '../lib/logger_util'; import { StorageManager, StorageLogger, StorageDumpSnapshot, JStorageLogger } from '../storage'; import ...
import { kea } from 'kea' import { prompt } from 'lib/logic/prompt' import { getEventNamesForAction, objectsEqual, toParams, uuid } from 'lib/utils' import posthog from 'posthog-js' import { eventUsageLogic, InsightEventSource } from 'lib/utils/eventUsageLogic' import { insightLogicType } from './insightLogicType' impo...
<reponame>digisomni-syndicate/vircadia-web-sdk<gh_stars>10-100 // // SendQueue.ts // // Created by <NAME> on 5 Oct 2021. // Copyright 2021 Vircadia contributors. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // impo...
import { Type, EnumType, UnionType, ClassType, ClassProperty, TransformedStringTypeKind, PrimitiveStringTypeKind } from "../Type"; import { matchType, nullableFromUnion, directlyReachableSingleNamedType } from "../TypeUtils"; import { Sourcelike, maybeAnnotated, modifySource } from "../Sourc...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Software Co., Ltd. http://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, worldwi...
import { AriaAttributes, CSSProperties, CustomAttributes, } from '../../dom/types/attributes-core' export * from '../../dom/types/attributes-core' export interface SVGCoreAttributes<T> extends CustomAttributes<T> { /** * The `id` attribute assigns a unique name to an element. * * @see [https://develo...
import {Constant, Immediate, Operand, SIZE} from '../../operand'; import * as o from './operand'; import {Instruction, InstructionSet} from '../../instruction'; import * as p from './parts'; import {DisplacementValue} from "./operand/displacement"; import {RegisterK, RegisterX86} from "./operand/register"; import...
<reponame>uQr/winjs // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. /// <reference path="../../Core.d.ts" /> import Animations = require("../../Animations"); import _Base = require("../../Core/_Base"); import _Bas...
/* * Licensed to Gisaïa under one or more contributor * license agreements. See the NOTICE.txt file distributed with * this work for additional information regarding copyright * ownership. Gisaïa licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except ...
<filename>js/src/OHLC.ts /* Copyright 2015 Bloomberg Finance L.P. * * 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 require...
import Component, { ComponentEvent } from "@egjs/component"; import { XRFrame } from "webxr"; import Promise from "promise-polyfill"; import { glMatrix, vec3, mat3, mat4, quat } from "gl-matrix"; import ImReady, { OnReady } from "@egjs/imready"; import { util as mathUtil } from "../utils/math-util"; import { devicePix...
/* eslint-disable @typescript-eslint/no-unused-vars */ import React, { useState, useEffect, useReducer, useRef, SyntheticEvent, MouseEvent } from 'react' // eslint-disable-line import { registerCommandAction, registerLogScriptRunnerAction, registerInfoScriptRunnerAction, registerErrorScriptRunnerAction, registerWarnScr...
import * as baddress from './address'; import { reverseBuffer, writeUInt64LE } from './bufferutils'; import * as classify from './classify'; import * as bcrypto from './crypto'; import { ECPairInterface } from './ecpair'; import * as ECPair from './ecpair'; import { Network } from './networks'; import * as networks fro...
<reponame>cinjon/scaffold-eth import {deployments, ethers, getNamedAccounts} from "hardhat"; import { use, expect} from "chai"; import { waffleChai } from "@ethereum-waffle/chai"; import {solidity} from "ethereum-waffle"; import { BigNumber } from "ethers"; import AllocationTree from "../contracts/balance-tree"; import...
import {MQTTStatstics, PacketType} from "../utils/constants"; import {DataStreamDecoder, PIDGenerator, Deferred, encodedVarUint32Size} from "../utils/codec"; import {TopicMatcher, Observer, isPublishTopicValid} from "../utils/topic"; let WebSocket: any; if (typeof window === 'undefined') { WebSocket = requir...
<filename>projects/oblique/schematics/index/utils.ts import {Tree, Rule, SchematicContext} from '@angular-devkit/schematics'; import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks'; import {addPackageJsonDependency, NodeDependency, NodeDependencyType, removePackageJsonDependency} from '@schematics/angu...
<reponame>edqd/deep-state-observer import WildcardObject, { wildcardApi } from "./wildcard-object-scan"; import Path from "./ObjectPath"; export interface PathInfo { listener: string; update: string | undefined; resolved: string | undefined; } export interface ListenerFunctionEventInfo { type: string; liste...
<reponame>openharmony-gitee-mirror/third_party_jsframework /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you und...
<reponame>codyml/grandtour /* * This file handles the "View" feature of the website. The Travelers feature displays entries as dots, allowing one to color, size, and group * them according to certain properties. The Map feature is handled by mapbox.html. */ import d3 from "d3"; import { Component } from '@angular/...
import {Utils as _, Timer} from "../utils"; import {GridOptionsWrapper} from "../gridOptionsWrapper"; import {GridPanel, RowContainerComponents} from "../gridPanel/gridPanel"; import {ExpressionService} from "../expressionService"; import {TemplateService} from "../templateService"; import {ValueService} from "../value...
<gh_stars>1-10 import { useState, useEffect, useCallback } from 'react'; import { NativeEventEmitter, NativeModules } from 'react-native'; const { EpsonEpos } = NativeModules; const epsonEposEmitter = new NativeEventEmitter(EpsonEpos); export enum PrinterSeries { TM_M10 = EpsonEpos.PRINTER_TM_M10, TM_M30 = Epson...
import { tagLink } from "@objectiv/tracker-browser"; import React, { useEffect, useState } from 'react'; import { scrollToAnchor } from "../scroll-to-anchor/scrollToAnchor"; import baseUrl from "@generated/docusaurus.config" const SphinxPage = (props) => { const [data, setData] = useState('loading'); // map ...
import fs from 'fs' import { PRIVMSG } from '../../main/client/parser' import logger from '../../main/logger' import * as afs from '../../main/lib/atomicFS' import { PluginInstance, PluginOptions } from '../../main/commander' import PluginLibrary from '../../main/pluginLib' export const options: PluginOptions = { t...
#!/usr/bin/env node require('source-map-support').install() // @ts-ignore process.env.AWS_SDK_LOAD_CONFIG = true import updateNotifier from 'update-notifier' import * as Errors from '@tradle/errors' import { Errors as CustomErrors } from './errors' import { logger, colors, chalk } from './logger' import { Conf, Conf...
import fs from "fs-extra"; import klaw from "klaw"; import { minify } from "luamin"; import path from "path"; import * as ts from "ts-morph"; import { compileSourceFile } from "./compiler"; import { CompilerState } from "./CompilerState"; import { DiagnosticError } from "./errors/DiagnosticError"; import { LoggableErro...
import {Action} from "redux-actions"; import * as Types from "../types"; import {IProgressInfo} from "../types"; export type IAction<T> = Action<T>; export interface IDispatch { (action: IAction<any>): void; } export function dispatcher <T> (dispatch: IDispatch, actionCreator: (payload: T) => IAction<T>) { ret...
import { Builder, ByteBuffer } from "flatbuffers"; import { Direction, GridEngine, Position } from 'grid-engine'; import { AnimatedSpriteDirectionalFrames, entityTextureNames, textureMap } from "../../assets/spritesheets/Sprites"; import { ChatMessage } from "../../components/ChatArea"; import { MagicAttack, NormalAtta...
import { Component, OnInit,ViewChild, HostListener, ElementRef, TemplateRef } from '@angular/core'; import { ApiService } from '../../../shared/services/api/api.service'; import * as jsPDF from 'jspdf'; import 'jspdf-autotable'; import { Router } from '@angular/router'; import { Chart } from 'chart.js'; import * as mom...
/** * PptxGenJS: Table Generation */ import { CRLF, DEF_FONT_SIZE, DEF_SLIDE_MARGIN_IN, EMU, LINEH_MODIFIER, ONEPT, SLIDE_OBJECT_TYPES } from './core-enums' import PptxGenJS from './pptxgen' import { ILayout, ITableCell, ITableToSlidesCell, ITableToSlidesOpts, ITableRo...
<reponame>tizock82Cln/todo-list import { isPresent, isBlank, Type, isString, StringWrapper, IS_DART, CONST_EXPR } from 'angular2/src/facade/lang'; import {SetWrapper, StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection'; import { TemplateAst, TemplateAstVisitor, NgContentAst, Embed...
import { isUsernameValid, isStringValid } from "./formatChecker"; import { sendJsonp, displayServerAddr } from "./ajax"; import { generateInvitingQRCodeURL, onInvitingQRCodeDecoded } from "./qr"; import { verifyConversationCode } from "./codeVerify"; import { processCoordinates, ICoordinate } from "./location"; import ...
<gh_stars>0 import type { AccessLevelDefinition, Capability, Message, MessageConstructor, MessageParamValues, MessagePrefix, ServerProperties, SupportedModesByType } from 'ircv3'; import { CoreCapabilities, createMessage, MessageTypes, NotEnoughParametersError, ParameterRequirementMismatchError, parseMess...
import { ApplicationDefinition } from '../api/contracts/fusion'; import { MapGroup, MapLayer, RuntimeMap } from '../api/contracts/runtime-map'; import { Dictionary, IExternalBaseLayer, ReduxDispatch, ActiveMapTool, IMapView } from '../api/common'; import { MapInfo, IInitAppActionPayload, IRestoredSelectionSets, IGeneri...
<reponame>erickoledadevrel/packs-sdk<gh_stars>1-10 import type {AWSSignature4Authentication} from '../types'; import type {ArraySchema} from '../schema'; import {AttributionNodeType} from '../schema'; import {AuthenticationType} from '../types'; import type {BooleanPackFormula} from '../api'; import type {BooleanSchema...
<gh_stars>10-100 import {Injectable} from '@angular/core'; import * as _ from 'lodash'; const HUEARR: string[] = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900']; const AHUEARR: string[] = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'A100', 'A200', 'A400', 'A700']; expor...
<reponame>lnlfps/symphony-js import { getOverlayMiddleware } from "@next/react-dev-overlay/lib/middleware"; import { NextHandleFunction } from "connect"; import { IncomingMessage, ServerResponse } from "http"; import { WebpackHotMiddleware } from "./hot-middleware"; import { join, relative as relativePath } from "path"...
import pSeries = require('p-series'); import { Injectable, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di'; import { Tree, ITree, WatchEvent, ITreeNodeOrCompositeTreeNode, IWatcherEvent, TreeNodeType, } from '@opensumi/ide-components'; import { CommandService, IContextKeyService, URI, EDI...
<filename>src/tdlite-abuse.ts<gh_stars>10-100 /// <reference path='../typings/node/node.d.ts' /> 'use strict'; import * as td from './td'; import * as assert from 'assert'; type JsonObject = td.JsonObject; type JsonBuilder = td.JsonBuilder; import * as restify from "./restify" import * as parallel from "./parallel"...
<reponame>aycma/macro-executor /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------...
<filename>packages/mistx-core/src/entities/Trade.ts<gh_stars>1-10 import invariant from 'tiny-invariant' import JSBI from 'jsbi' import { BigintIsh, Exchange, ONE, TradeType, ZERO, MethodName } from '../constants' import { sortedInsert, calculateMinerBribe, estimatedGasForMethod, calculateMargin, computePriceImpact } f...
<gh_stars>1-10 import * as monaco from '@opensumi/monaco-editor-core/esm/vs/editor/editor.api'; /** * 用于文件内容搜索 */ import React from 'react'; import { createRef } from 'react'; import { Injectable, Autowired, Injector, INJECTOR_TOKEN } from '@opensumi/di'; import { Emitter, IEventBus, trim, isUndefined, loca...
import * as _ from 'lodash'; import { CacheService } from './apCacheService'; import { LookupFactory, Lookup } from '../factories/apLookupFactory'; import { UserFactory, User } from '../factories/apUserFactory'; import { FieldService } from './apFieldService'; import { IXMLListAttributeTypes } from '../constants/apXMLL...
// #!/usr/bin/env babel-node // -*- coding: utf-8 -*- /** @module FileInput */ 'use strict' /* ! region header [Project page](https://torben.website/react-material-input) Copyright <NAME> (info["~at~"]torben.website) 16.12.2012 License ------- This library written by <NAME> stand under a crea...
/// <reference path='require.d.ts' /> type Power = number class Sunburst { children: Map<string, Sunburst> = new Map<string, Sunburst>() cpu: Power = 0 disk: Power = 0 constructor(public name: string) {} addChild(path: string, cpu: Power, disk: Power): void { let dotIndex = path.indexOf('.') let m...
<gh_stars>10-100 import cPay from '../index'; import Config from './config'; import { Util } from 'lib/Util'; const Express = require('express'), bodyParser = require('body-parser'), app = new Express(), xmlparser = require('express-xml-bodyparser'), path = require('path'), ejs = require('ejs'), ...
<gh_stars>0 interface Window { indexViewModel: IndexViewModel; baseUrl: KnockoutObservable<string>; } class AjaxTracker { MyName(): void { console.log("AjaxTracker"); } postCount: KnockoutObservable<number> = ko.observable(0); isPosting: KnockoutObservable<boolean> = ko.observable(fal...
import {Component, h, Host, Prop, State, Element, Event, EventEmitter, Build, Watch} from '@stencil/core'; import {moveCursorToEnd, unifyEvent} from '@deckdeckgo/utils'; interface ResizeMatrix { a: 0 | 1; b: 0 | 1; c: 0 | 1; d: 0 | 1; } @Component({ tag: 'deckgo-drr', styleUrl: 'deckdeckgo-drr.scss', s...
import { flattenBinArray } from '../../format/hex'; import { AuthenticationInstruction, ParsedAuthenticationInstruction, ParsedAuthenticationInstructionMalformed, } from '../../vm/instruction-sets/instruction-sets-types'; import { authenticationInstructionIsMalformed, parseBytecode, serializeParsedAuthentic...
import {Component, HostListener, AfterViewInit, OnInit} from "@angular/core"; import {ActivatedRoute} from "@angular/router"; import * as createjs from 'createjs-module'; import {WindowSizeService} from "../shared/services/window.size.service"; import {PlayerControlService, ATTACK} from "../shared/services/player.contr...
<gh_stars>0 import { LitElement, css, html, property, customElement } from 'lit-element'; enum GameState { SplashScreen = 0, GameScreen = 1, ScoreScreen = 2 }; enum AnimationState { running = 'running', paused = 'paused' }; enum Sound { jump = "https://raw.githubusercontent.com/35niavlys/flappybird/maste...
<reponame>radix/pandt import * as I from 'immutable'; import "isomorphic-fetch"; import * as LD from 'lodash'; import * as React from 'react'; import * as ReactRedux from 'react-redux'; import * as JD from "type-safe-json-decoder"; import * as T from './PTTypes'; export type Action = | { type: "ResetState" } | { ...
<filename>src/state.ts<gh_stars>0 import { isDirectoryType, filterIsDirectoryType } from "./blogBuilderUtils/dirTree" import { isBlogDirectoryInfo, getBlogFilePath, getBlogPropsFilePath } from "./blogBuilderUtils/getBlogsInfo" import { notNil } from "./utils/lodash" import getFileNameWithoutItsExtension from ...
import INTERNAL_ATTRS from '../../processing/dom/internal-attributes'; import INTERNAL_PROPS from '../../processing/dom/internal-properties'; import SHADOW_UI_CLASSNAME from '../../shadow-ui/class-name'; import nativeMethods from '../sandbox/native-methods'; import * as urlUtils from './url'; import { get as getStyle }...
import * as Kb from '../../../../common-adapters' import * as React from 'react' import * as Styles from '../../../../styles' import * as Types from '../../../../constants/types/chat2' import * as Constants from '../../../../constants/chat2' import SystemAddedToTeam from '../system-added-to-team/container' import Syste...
<filename>packages/compat/src/v1-app.ts import { Memoize } from 'typescript-memoize'; import { sync as pkgUpSync } from 'pkg-up'; import { join, dirname } from 'path'; import Funnel from 'broccoli-funnel'; import mergeTrees from 'broccoli-merge-trees'; import { WatchedDir } from 'broccoli-source'; import resolve from '...
<reponame>badhop/grafana-statusmap<gh_stars>0 import _ from 'lodash'; import $ from 'jquery'; // TODO moment is used instead of @grafana/data to run in 6.2 and earlier. /* eslint-disable id-blacklist, no-restricted-imports, @typescript-eslint/ban-types */ import moment from 'moment'; import kbn from 'grafana/app/core...
import { Format, formats } from './format' import { Font, fonts } from './font' import { Formula, formulas, formulaReplaceParam } from './formula' import { Cell, defaultCell } from './cell' import { alphabet } from './alphabet' import { Select } from './select' import { unbind } from '../local/event'; export interface...
/** * jsBezier * * Copyright (c) 2010 - 2021 jsPlumb (<EMAIL>) * * licensed under the MIT license. * * a set of Bezier curve functions that deal with Beziers, used by jsPlumb, and perhaps useful for other people. These functions work with Bezier * curves of arbitrary degree. * * - functions are all in the 'j...
/* Copyright 2016 - 2021 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 applicable law or agreed...
import { BigNumber } from 'bignumber.js' import { IlkWithBalance } from 'features/ilks/ilksWithBalances' import _, { keyBy, sortBy } from 'lodash' import { combineLatest, Observable, of } from 'rxjs' import { switchMap } from 'rxjs/operators' import { supportedIlks } from '../blockchain/config' import { IlkDataList } ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React, { useState, useEffect } from 'react' import axios from 'axios' import Router from 'next/router' import styled, { css } from 'styled-components' import { useTranslation } from 'react-i18next' import ReactEChartsCore from 'echarts-for-react/lib/core' import echarts from 'echarts/lib/echarts' import 'echarts...
<reponame>COsborn2/Coalesce<gh_stars>0 import Vue from "vue"; // This will tree shake correctly as of v2.0.0-alpha.21 import { toDate, isValid, format, formatDistanceToNow, lightFormat } from "date-fns"; import { ClassType, Property, PropNames, resolvePropMeta, Value, EnumValue, PrimitiveValue, DateV...
/*! * Copyright 2020 Cognite AS */ import * as THREE from 'three'; import TWEEN from '@tweenjs/tween.js'; import debounce from 'lodash/debounce'; import ComboControls from '@cognite/three-combo-controls'; import { CogniteClient, IdEither } from '@cognite/sdk'; import { share, filter } from 'rxjs/operators'; import ...
<reponame>iamNoah1/fundamental-tools<gh_stars>10-100 // SPDX-FileCopyrightText: 2014 SAP SE <NAME> <<EMAIL>> // // SPDX-License-Identifier: Apache-2.0 import chalk from "chalk"; import path from "path"; import { sprintf } from "sprintf-js"; import { EmptyObject, Writer, isEmpty, log, fileLoad } from "./utils"; import ...
<reponame>kjrocker/date-fns import isValid from '../isValid/index' import defaultLocale from '../locale/en-US/index' import subMilliseconds from '../subMilliseconds/index' import toDate from '../toDate/index' import formatters from '../_lib/format/formatters/index' import longFormatters from '../_lib/format/longFormatt...
// if (typeof window.CustomEvent !== 'function') { // // @ts-ignore // window.CustomEvent = function(event, params) { // params = params || { bubbles: false, cancelable: false, detail: undefined }; // var evt = document.createEvent('CustomEvent'); // evt.initCustomEvent(event, params.bub...