text
stringlengths
9.82k
47.8k
<filename>components/src/page-builder/page-builder.ts import BuildProperties from "./page-build-properties.svelte"; export let components; export let items = []; export let sources = []; export let events = []; export let fields = []; export let fieldNames = []; export let pages = []; export let permissions = []; expo...
import React, { useEffect, useRef } from "react"; import * as THREE from "three"; // @ts-ignore import { BlurPass, EffectComposer, RenderPass } from "postprocessing"; // @ts-ignore import * as Perlin from "perlin"; import { BufferGeometryUtils } from "three/examples/jsm/utils/BufferGeometryUtils"; import { noise } fr...
import Hammer from 'hammerjs'; import { browserIsSafariDesktop, isMouseEvent } from './utils'; import { ViewPortCamera, ViewPortCameraInterface, ViewPortCameraValues } from './ViewPortCamera'; /** * This is just a type alias for `number`. Variables or parameters of this type * refer to client (as in the browser win...
<reponame>taylorhansen/pokemonshowdown-ai /** @file Formats BattleState objects into data usable by the neural network. */ import { assertEncoder, augment, concat, Encoder, map, nullable, optional, } from "../../../ai/encoder/Encoder"; import { booleanEncoder, checkLength, fillEn...
<gh_stars>0 import { customAlphabet } from 'nanoid'; import * as ConnectSdk from '@aindev/connect-sdk'; import * as fs from 'fs'; import { setIntervalAsync } from 'set-interval-async/dynamic'; import Logger from '../common/logger'; import * as types from '../common/types'; import * as K8sUtil from '../util/k8s'; import...
<reponame>geometryzen/Algebrite import { alloc_tensor } from '../runtime/alloc'; import { caddr, cadr, car, Constants, DEBUG, defs, ismultiply, ispower, NIL, SECRETX, SETQ, Tensor, TESTEQ, U } from '../runtime/defs'; import { stop } from '../runtime/run'; import { symbol } from "../runtime/s...
// load Boxplot component import Boxplot, { BoxplotProps } from '@veupathdb/components/lib/plots/Boxplot'; import FacetedBoxplot from '@veupathdb/components/lib/plots/facetedPlots/FacetedBoxplot'; import { preorder } from '@veupathdb/wdk-client/lib/Utils/TreeUtils'; import { getOrElse } from 'fp-ts/lib/Either'; import...
import { isNumber, isFunction, get, isUndefined, isString, cloneDeep, isEmpty, difference } from 'lodash-es'; import { strings } from '../treeSelect/constants'; import BaseFoundation, { DefaultAdapter } from '../base/foundation'; import { flattenTreeData, findDescendantKeys, findAncestorKeys, filter, ...
import { EventData, KeyedTemplate, layout, Length, View } from 'tns-core-modules/ui/core/view'; import { StackLayout } from 'tns-core-modules/ui/layouts/stack-layout'; import { ProxyViewContainer } from 'tns-core-modules/ui/proxy-view-container'; import * as common from './pager.common'; import { ItemEventData, ...
<gh_stars>10-100 import { path7za } from "7zip-bin" import BluebirdPromise from "bluebird-lst" import { Arch, asArray, AsyncTaskManager, exec, executeAppBuilder, getPlatformIconFileName, InvalidConfigurationError, log, spawnAndWrite, use } from "builder-util" import { CURRENT_APP_INSTALLER_FILE_NAME, CURRENT_APP_PACKAG...
<reponame>Nodarii/material2<gh_stars>0 /** * @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 {FocusKeyManager} from '@angular/cdk/a11y'; import {Directionality} fro...
<reponame>pkkummermo/aurelia-google-maps<filename>src/google-maps.ts import { inject } from 'aurelia-dependency-injection'; import { bindable, customElement, noView } from 'aurelia-templating'; import { TaskQueue } from 'aurelia-task-queue'; import { BindingEngine } from 'aurelia-binding'; import { getLogger } from 'au...
<gh_stars>1-10 /** * PS Help room auto-response plugin. * Uses Regex to match room frequently asked question (RFAQ) entries, * and replies if a match is found. * Supports configuration, and works in all rooms, though intended mainly for Help. * Written by Mia. * @author mia-pi-git */ import {FS, Utils} from '.....
<reponame>meonBot/azuredatastudio /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *-----------------------------...
<gh_stars>1-10 /// <reference path="../../ts-event-handlers-lite/events.d.ts" /> /// <reference path="../../@twg2/ts-twg-ast-codegen/code-types/ast-types.d.ts" /> /// <reference path="../../@twg2/ts-twg-ast-codegen/code-types/model-types.d.ts" /> /// <reference path="../../@twg2/ts-twg-ast-codegen/code-types/utils.d.t...
/** * Copyright 2016 by <NAME> * * PrettyModel.ts * * Models the substitutions within a text document */ import * as vscode from 'vscode'; import {Substitution, UglyRevelation, LanguageEntry, PrettyCursor, PrettyStyleProperties, PrettyStyle, assignStyleProperties, HideTextMethod} from './configuration'; import ...
<reponame>felipeochoa/thtml // These types were adapted from the DefinitelyTyped React 16.8 typings. /**! * This project is licensed under the MIT license. * Copyrights are respective of each contributor listed at the beginning of each definition file. * * Asana <https://asana.com> * AssureSign <http://www...
/** * GestureView.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * RN-specific implementation of the cross-platform GestureView component. * It provides much of the standard work necessary to support combinations of * pinch-and-zoom, panning, single tap and...
import * as Listr from "listr"; import { inspect } from "util"; import { faast, FaastModule } from "../index"; import { AwsOptions } from "./aws/aws-faast"; import { GoogleOptions } from "./google/google-faast"; import { FunctionStats, CommonOptions } from "./provider"; import { f1, keysOf, Statistics, sum } from "./sh...
<reponame>dckesler/wallet<gh_stars>10-100 import { Result } from '@celo/base/lib/result' import { Address, ContractKit } from '@celo/contractkit/lib' import { ActionableAttestation, AttestationsWrapper, } from '@celo/contractkit/lib/wrappers/Attestations' import { sleep } from '@celo/utils/lib/async' import { Attes...
<filename>src/datafolder.ts import { StateObject, keys, ServerConfig, AccessPathResult, AccessPathTag, DebugLogger, PathResolverResult, obs_readFile, tryParseJSON, obs_readdir, JsonError, serveFolderObs, serveFolderIndex, sendResponse, canAcceptGzip, Hashmap, ServerEventEmitter, resolvePath, statWalkPath, obs_stat, }...
interface plainObjectT { [key: string]: any } type argumentsType = any[] | plainObjectT; import events = require("events"); interface defaultLogObj { type: string, callerPaths: string[], } type defaultLogObjWithGrants = defaultLogObj & { grantRights: boolean } type defaultLogObjWithArgsAndGrants = defaul...
import { BlazorDotnetObject, Browser, Animation, select, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base'; import { formatUnit, attributes, EventHandler, isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base'; import { AnimationModel, closest, setStyleAttribute, createElement, prepend } f...
import React from "react"; import { BlockData } from "@library/control-builder/types"; import { createStyles, Divider, Theme, Typography, withStyles, WithStyles, } from "@material-ui/core"; import OutputJSONSchema from "@library/json-schema/output-schema"; import { FormulaText, JSONSchema, RESTBlockCo...
<filename>src/psbot/handlers/battle/formats/gen4/state/VolatileStatus.ts<gh_stars>10-100 import * as dex from "../dex"; import {Moveset, ReadonlyMoveset} from "./Moveset"; import {PokemonTraits, ReadonlyPokemonTraits} from "./PokemonTraits"; import {ReadonlyTempStatus, TempStatus} from "./TempStatus"; import { Read...
<gh_stars>10-100 /** * DDP client. Based on: * * * https://github.com/nytamin/node-ddp-client * * https://github.com/oortcloud/node-ddp-client * * Brought into this project for maintenance reasons, including conversion to Typescript. */ /// <reference types="../types/faye-websocket" /> import * as WebSocket fro...
// This file is part of bigfloat, copyright (c) 2015- BusFaster Ltd. // Released under the MIT license, see LICENSE. import { BaseInfo32, limbSize32, limbInv32, limbsPerDigit32 } from './BaseInfo32'; import { BigFloatBase } from './BigFloatBase'; import { trimNumber } from './util'; export class BigFloat32 implements...
<reponame>muhtajir/sourcegraph<filename>dev/release/src/release.ts import { ensureEvent, getClient, EventOptions } from './google-calendar' import { postMessage } from './slack' import { ensureTrackingIssue, getAuthenticatedGitHubClient, listIssues, getIssueByTitle, trackingIssueTitle, ensurePat...
import Histogram, { HistogramProps, } from '@veupathdb/components/lib/plots/Histogram'; import FacetedHistogram from '@veupathdb/components/lib/plots/facetedPlots/FacetedHistogram'; import BinWidthControl from '@veupathdb/components/lib/components/plotControls/BinWidthControl'; import LabelledGroup from '@veupathdb/c...
import { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, Input, OnDestroy, Optional, Output, TemplateRef, ViewChild, } from '@angular/core'; import { SkyAffixAutoFitContext, SkyAffixService, SkyAffixer, S...
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017, 2018, 2019 New Vector Ltd Copyright 2019 <NAME> <<EMAIL>> Copyright 2019 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 ...
<reponame>ArcGIS/interactive-legend<filename>app/Main.ts /* Copyright 2020 Esri 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...
<reponame>ButterCheezii/fchat-rising /*tslint:disable:max-line-length object-literal-sort-keys object-literal-key-quotes*/ const strings: {[key: string]: string | undefined} = { 'action.edit': 'Edit', 'action.view': 'View', 'action.cut': 'Cut', 'action.copy': 'Copy', 'action.copyWithoutBBCode': 'Cop...
import type { TypeScriptWorker } from "monaco-typescript/release/esm/tsWorker"; import type { BinaryExpression, BinaryOperatorToken, CallExpression, ClassDeclaration, Expression, FunctionExpression, FunctionLikeDeclaration, Identifier, JSDoc, MethodDeclaration, Node, NodeArray, ObjectLiteralExpression, Program, Propert...
// @ts-nocheck import {Statistic, Row, Col, Button, notification, Form, Input, Select} from 'antd'; import {AreaChartOutlined, ClockCircleOutlined, CommentOutlined, LikeOutlined, UserOutlined} from '@ant-design/icons'; import Link from 'next/link' import {useDispatch, useSelector} from "react-redux"; import {useRouter}...
<reponame>robertknight/passcards<filename>webui/details_view.ts<gh_stars>100-1000 import react = require('react'); import react_dom = require('react-dom'); import style = require('ts-style'); import agile_keychain_crypto = require('../lib/agile_keychain_crypto'); import button = require('./controls/button'); import co...
import { createHoverifier, DOMFunctions, findPositionsFromEvents, Hoverifier, HoverOverlay, HoverState, LinkComponent, } from '@sourcegraph/codeintellify' import { propertyIsDefined } from '@sourcegraph/codeintellify/lib/helpers' import { HoverMerged } from '@sourcegraph/codeintellify/lib/ty...
<gh_stars>0 import type {Uint, Match, MatchData, ListItem, UserID} from './types.js'; import type {Props} from './lib/dom.js'; import type {WindowElement} from './lib/windows.js'; import {clearElement, makeElement} from './lib/dom.js'; import {br, button, div, img, input, label, h1, li, span, table, tbody, td, th, thea...
<filename>src/schema.ts import OrderedMap from "orderedmap"; import { Node, TextNode } from "./node"; import { Fragment } from "./fragment"; import { Mark } from "./mark"; import { ContentMatch } from "./content"; import { NodeSpec, AttributeSpec, SchemaSpec, MarkSpec } from "./types"; // For node types where all att...
<filename>interpreter/demos/otf_spectrogram.ts /* * `otf_spectrogram.ts` implements the Leaflet.annotation tool * for annotating spectrograms. * * this demo generates and displays high-quality mel spectrograms * directly from the audio source "on the fly" in the browser. * * to compile this demo: * ` npm r...
<reponame>lwyj123/e-civ-planet declare function require(name: string): any; import Kernel from '../Kernel'; import Utils from '../Utils'; import MathUtils from '../math/Utils'; import Vertice from '../math/Vertice'; import Vector from '../math/Vector'; import MeshVertice from '../geometries/MeshVertice'; import Triangl...
<gh_stars>0 import { client as WebSocketClient } from 'websocket'; import axios from 'axios'; import { v1 as uuidv1 } from 'uuid'; import { KernelRoutines } from "./kernel-routines"; import { handleResponse } from 'bumblebee-utils' let Queue = require('better-queue'); const kernels = []; const aliases = {}; const re...
/// <reference path="Scripts/jquery.d.ts" /> /// <reference path="Scripts/google.maps.d.ts" /> import VXC = require("VCL/VXComponent"); import VXCO = require("VCL/VXContainer"); import VXU = require("VCL/VXUtils"); import V = require("VCL/VCL"); import VXO = require("VCL/VXObject"); import VXM = require("VCL/VXMenu"); ...
/** 渲染右侧配置区 */ import * as React from 'react' import * as _ from 'lodash' import * as uuid from 'uuid' import { message, Modal } from 'antd' import { Toolbar, NodePanel, DragSelector } from './components' import CanvasContent from './common/CanvasContent' import { useEditorStore, useKeyPress, useEventListener, useHisto...
/****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ import * as React f...
// Ported from js-yaml v3.13.1: // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da // Copyright 2011-2015 by <NAME>. All rights reserved. MIT license. // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. import { YAMLError } from "../error.ts"; import type { Repr...
<filename>src/CountlyAnalytics.ts /* Copyright 2020 Lepton Interaction. 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...
<reponame>juniorlima-dev/netlify-cms import { localForage, parseLinkHeader, unsentRequest, then, APIError, Cursor, ApiRequest, DataFile, AssetProxy, PersistOptions, readFile, CMS_BRANCH_PREFIX, generateContentKey, isCMSLabel, EditorialWorkflowError, labelToStatus, statusToLabel, DEFA...
<gh_stars>1-10 declare module 'request-container/libs/PromiseState' { /** * Created by allen on 2016/11/24. */ export type IResponse = any; interface PromiseState<T> { payload: T; status: PSEnum; error: Error; } export const enum PSEnum { none = 0, loading = 1, success = 2, e...
import React, { useEffect, useMemo, useState } from 'react' import classNames from 'classnames' import * as H from 'history' import { capitalize } from 'lodash' import ArrowCollapseRightIcon from 'mdi-react/ArrowCollapseRightIcon' import ChevronDownIcon from 'mdi-react/ChevronDownIcon' import ChevronRightIcon from 'md...
<reponame>Sotatek-DucPham/protocol import { ChainId, getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; import { FillQuoteTransformerOrderType, LimitOrder } from '@0x/protocol-utils'; import { BigNumber, providerUtils } from '@0x/utils'; import Axios, { AxiosInstance } from 'axios'; import { BlockPara...
<reponame>quuu/rome<gh_stars>1-10 /** * 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. */ /** * This library modifies the diff-patch-match library by <NAME> * by removing the patch and...
import { UniformBuffer, computePackedBufferLayout } from './UniformBuffer'; import * as Gfx from './gfx/GfxTypes'; import { vec3, vec4, mat4, mat3 } from 'gl-matrix'; import { GlobalUniforms } from './GlobalUniforms'; import { defined, assert } from './util'; import { RenderPrimitive } from './RenderPrimitive'; import ...
<gh_stars>0 import { inflateSync, deflateSync } from 'zlib'; import { Size } from '../types'; export interface PNGChunk { type: string data: Buffer } type ColorType = 0 | 2 | 3 | 4 | 6; type BitDepth = 1 | 2 | 4 | 8 | 16; export interface PNGEncoding { bitDepth: BitDepth colorType: ColorType int...
import * as highlightjs from "highlightjs"; import * as marked from "marked"; import { toArray } from "react-emoji-render"; import { dispatch } from "./AppRedux"; import { AppState } from "./AppState"; import { NodeCompTableRowLayout } from "./comps/NodeCompTableRowLayout"; import { NodeCompVerticalRowLayout } from "./...
<gh_stars>10-100 export enum FAIconName { glass, music, search, envelopeAlt, heart, star, starEmpty, user, film, thLarge, th, thList, ok, remove, zoomIn, zoomOut, powerOff, off, signal, gear, cog, trash, home, fileAlt, t...
'use strict'; // vscode imports import { commands, window, workspace, Disposable, StatusBarItem, Uri, ViewColumn, WorkspaceFolder, Webview, WebviewPanel, WebviewPanelOnDidChangeViewStateEvent, WebviewPanelSerializer } from 'vscode'; // fs data parsing imports import * as fs from 'fs'; ...
import "@/index.scss"; import Container from "@/items/container"; import Equipments from "@/items/equipments"; import { createItem } from "@/items/itemGenerator"; import Map from "@/map"; import { Camera } from "@/map/camera"; import Fov from "@/map/fov"; import { ABILITIES, Abilities } from "@/rpg/abilities"; import A...
<reponame>CannonStealth/clash-or-trash<filename>src/Client.ts import { Client as DJSClient, Collection, ClientOptions, MessageOptions, TextChannel, MessageEmbed, Snowflake, User, GuildMember, Guild, ColorResolvable, GuildChannel, Message, } from "discord.js"; import { join } from "path"; impor...
/** * Array Diff * * Based on https://github.com/google/diff-match-patch * * This library implements Myer's diff algorithm which is generally considered to be the best general-purpose diff. * A layer of pre-diff speedups and post-diff cleanups surround the diff algorithm, improving both performance and output qua...
import { Model, Sequence, Material, Layer, Texture, Geoset, GeosetAnimInfo, GeosetAnim, Node, Bone, Helper, Attachment, EventObject, HitTestShape, HitTestShapeType, ParticleEmitter2, Camera, Light, TVertexAnim, RibbonEmitter, ParticleEmitter, TextureReplacement } from './model'; import { Reader, AnimVectorT...
#!/usr/bin/env node import program from 'commander'; import fs from 'fs'; import Path from 'path'; import os from 'os'; import { Config, EdgeImpulseConfig } from './config'; import checkNewVersions from './check-new-version'; import inquirer from 'inquirer'; import { AddOrganizationTransformationBlockRequest, ...
import { Engine } from "@babylonjs/core/Engines/engine"; import { Scene } from "@babylonjs/core/scene"; import { ArcRotateCamera } from "@babylonjs/core/Cameras/arcRotateCamera"; import { Matrix, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLigh...
<filename>treeComponentFramework/sweepercraft/SweeperCraft.ts //onsave jtree build produce SweeperCraft.browser.js const { AbstractTreeComponentRootNode, AbstractTreeComponent, WillowConstants, AbstractCommander, TreeComponentFrameworkDebuggerComponent, AbstractGithubTriangleComponent } = require("../../products/TreeC...
import { Buffer, Neovim } from '@chemzqm/neovim' import fastDiff from 'fast-diff' import path from 'path' import { Disposable, Position, Range, TextEdit } from 'vscode-languageserver-protocol' import { TextDocument } from 'vscode-languageserver-textdocument' import { URI } from 'vscode-uri' import Document from '../../...
<reponame>kyflx/discord-akairo import { Channel, Collection, Message, TextChannel, User } from "discord.js"; import { AkairoError, BuiltInReasons, CommandHandlerEvents, OrArray, OrPromise, Util, } from "../../util"; import { AkairoClient } from "../AkairoClient"; import { AkairoHandler, AkairoHandlerOptions...
import { State } from '../interfaces/state'; import { GameDifficulty, SFX } from '../interfaces/game'; import { GhostName } from '../interfaces/ghost'; import { difficulty } from '../config/difficulty'; import { Pill } from '../objects/pill'; import { Portal } from '../objects/portal'; import { Pacman } from '../object...
import { WindowPostMessageStream } from "@metamask/post-message-stream"; import NodeDetailManager from "@toruslabs/fetch-node-details"; import { setAPIKey } from "@toruslabs/http-helpers"; import TorusJs from "@toruslabs/torus.js"; import deepmerge from "deepmerge"; import { JsonRpcRequest } from "json-rpc-engine"; imp...
<filename>src/attributes.ts // Taken from @types/react export interface Attributes { accessKey?: string; classes?: string[]; contentEditable?: boolean; contextMenu?: string; dir?: string; draggable?: boolean; hidden?: boolean; id?: string; lang?: string; slot?: string; spellCheck?: boolean; sty...
import * as React from "react"; import { Select, Button, Tag, InputNumber } from 'antd'; import {getNodeColor, constructNeighborSet, getNodeStatisticStr, constructGraphIn, skew_weight} from '../../../helper'; import { SettingOutlined } from '@ant-design/icons'; import GraphViewSettingsModalContainer from '../../...
import React, { FC, useCallback, useEffect, useRef, useState, Fragment } from 'react'; import { Button, Col, Collapse, Input, notification, Row, Select, Spin, Switch, Typography } from 'antd'; import { PlusOutlined, DownOutlined, RightOutlined } from '@ant-design/icons'; import AddSlotForm from './AddSlotForm'; import ...
<reponame>bridgedb/bridgedbjs /// <reference path="../typings/index.d.ts" /> // TODO use a cache, such as // https://github.com/levelgraph/levelgraph import "source-map-support/register"; declare global { // Augment Node.js `global` namespace NodeJS { interface Global { XMLHttpRequest: XMLHttpRequest; ...
import Util = require("../util/Util"); import RelationshipManager = require("./RelationshipManager"); import XmlDom = require("../xml/XmlDom"); /** * This module represents an excel worksheet in its basic form - no tables, charts, etc. Its purpose is * to hold data, the data's link to how it should be styled, and a...
import { ConfigurableWebComponent, config, Props, PROP_TYPE, ComplexType, createDisposableWindowListener, bindToClass, listenWithIdentifier, isNewElement, listen, wait } from 'wclib'; import { InfiniteListIDMap, InfiniteListClassMap } from './infinite-list-querymap'; import { createNumberList, any } from '../../...
declare function require(string): string; import $ = require('jquery'); import jQuery = require('jquery'); import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as VoxImplant from 'voximplant-websdk'; import LoginForm from "./UIElements/LoginForm"; import { Button, Modal, Input, Row, Col,...
import * as Component from './Component'; import * as Context from './Context'; import { CommandBus } from './CommandBus'; import { RpcBus } from './RpcBus'; import { EventBus } from './EventBus'; import { StateBus } from './StateB...
import { Graph } from "../App.types"; import { getStateId, getState, // insertVariableState, // insertState, deleteNodes, deleteNodesHelper, printRecordTree, getVariable, } from "./StateTree"; import { makeArrays } from "./Init/ContextualStateChartInit"; import { idText } from "typescript"; import { add...
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ /// <reference path="../typings/index.d.ts" /> import * as Promise from "bluebird"; import * as m from "Model"; import * as path fr...
<reponame>futureping/taqueria import type {UnvalidatedPluginInfo, InstalledPlugin, Config, ConfigArgs, Alias, Verb, Option, PositionalArg, PluginResponse, PluginAction, ProxyAction} from './taqueria-protocol/taqueria-protocol-types.ts' import {Task, PluginInfo} from './taqueria-protocol/taqueria-protocol-types.ts' impo...
<filename>controls/grids/src/grid/actions/resize.ts<gh_stars>0 import { EventHandler, detach, formatUnit, Browser, closest, classList, isBlazor, extend } from '@syncfusion/ej2-base'; import { Column } from '../models/column'; import { IGrid, IAction, ResizeArgs } from '../base/interface'; import { ColumnWidthService } ...
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner' import * as H from 'history' import { uniq } from 'lodash' import * as React from 'react' import { combineLatest, merge, Observable, of, Subject, Subscription } from 'rxjs' import { catchError, debounceTime, delay, distinctUntilChanged,...
import _ from 'lodash'; import $ from 'jquery'; import * as d3 from 'd3'; import { appEvents, contextSrv } from 'app/core/core'; import * as ticksUtils from 'app/core/utils/ticks'; import { HeatmapTooltip } from './heatmap_tooltip'; import { mergeZeroBuckets } from './heatmap_data_converter'; import { getColorScale, ge...
import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core'; import isEqual from 'lodash.isequal'; import throttle from 'lodash.throttle'; import clone from 'lodash.clonedeep'; import { AlarmsConfig, DataPoint, DataStream, MinimalViewPortConfig, SizeConfig, SizePositionC...
<reponame>UltimatePro-Grammer/wa<gh_stars>1-10 import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { // Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only be executed once when your extension is activated ...
import { ComponentRegistrationInfo, ComponentsOptionAnalyzer, createAnalyzer, ScriptBlockAnalyzer, getComponentName, } from '@vuedx/analyze' import { parse, SFCBlock, SFCDescriptor, SFCParseOptions, SFCStyleBlock, } from '@vuedx/compiler-sfc' import { CodegenResult, compile, ComponentImport } from '...
/*! Trivial Components (https://github.com/trivial-components/trivial-components) Copyright 2016 <NAME> (https://github.com/yamass) and other contributors 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 Licen...
/******************************************************************************** * 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. *...
<gh_stars>10-100 /* eslint-disable no-await-in-loop */ // /* eslint-disable indent */ import 'reflect-metadata'; import * as Discord from 'discord.js'; import * as Path from 'path'; // eslint-disable-next-line no-duplicate-imports import { ClientEvents, ClientOptions, ClientApplication, Guild, Message, User, Pe...
<gh_stars>1-10 /** * Helper.js * Some helpful functions for Dom and Bom operation. */ import { DEBUG } from './const'; import { arbitraryFree, deepSupplement, is_Array, is_Defined, is_Function, objectSupplement, once, removeArrayItem } from './util'; import { lyscrollTo } from './modules/lyscroll-to'; imp...
<filename>src/discord/runutil.ts import * as Discord from "discord.js" import Log from "../log" import { MainCfg } from "./runtime" export const blankChar = "\u{17B5}" const safeCmd = /(".+?")|('.+?')/i const seperator = "/" export enum ParamType { thing = "이/가", dest = "을/를/좀", for = "에게/한테", to = "으로...
<reponame>xxxxst/svg2font /** * ascent descent * SVGascent, descent and baseline https://riptutorial.com/svg/example/26220/ascent--descent-and-baseline * SVG https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty * vert-adv-y 默认值为 ascent 与 descent 总和 */ export function fontTemplate(DEFAULT_CONFIG) { const ...
const BASE = 1e7, LOG_BASE = 7, MAX_INT = 9007199254740992, MAX_INT_ARR = [4740992, 719925, 90], DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", LOBMASK_I = 1 << 30, LOBMASK_BI = ((BASE & -BASE) * (BASE & -BASE)) | LOBMASK_I; // This keeps the values from being generated until they're needed con...
import axios from "axios"; import {ChartOptions, ChartPoint} from "chart.js"; import jspdf from "jspdf"; import {Client, connect} from "mqtt"; import React, {Component} from "react"; import { Line } from "react-chartjs-2"; import ClipLoader from "react-spinners/ClipLoader"; import {Alert, Button} from "reactstrap"; imp...
<reponame>whscullin/apple2js<filename>js/ui/apple2.ts import MicroModal from 'micromodal'; import { base64_json_parse, base64_json_stringify } from '../base64'; import { Audio, SOUND_ENABLED_OPTION } from './audio'; import DriveLights from './drive_lights'; import { byte, includes, word } from '../types'; import { BLO...
<filename>src/widgets/forms/autocomplete/publicData.ts /* Logic to access public data stores * * including filtering resut by natural language etc * See https://solidos.solidcommunity.net/public/2021/01%20Building%20Solid%20Apps%20which%20use%20Public%20Data.html */ /* eslint-disable no-console */ import { NamedNode, L...
import * as mat4 from 'toybox/math/mat4' import * as vec3 from 'toybox/math/vec3' import * as vec4 from 'toybox/math/vec4' import {Context} from 'toybox/gl/context' import {GL} from 'toybox/gl/constants' import {ShaderProgram} from 'toybox/gl/shader' import {Texture} from 'toybox/gl/texture' import {TypedArrayList} fro...
import { GetPRInfo } from '../graphql/queries/pr-query'; import { PR as PRQueryResult, PR_repository_pullRequest as GraphqlPullRequest, PR_repository_pullRequest_commits_nodes_commit, PR_repository_pullRequest, PR_repository_pullRequest_timelineItems, PR_repository_pullRequest_timelineIte...
<reponame>king-prawns/rx-player /** * Copyright 2015 CANAL+ Group * * 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 requir...
export enum SyncType { LOCAL_ONLY = 'LOCAL_ONLY', MANUALLY = 'MANUALLY', REALTIME = 'REALTIME', } export const encodeSyncType: { [key: string]: number } = { LOCAL_ONLY: 0, MANUALLY: 1, REALTIME: 2, }; export const decodeSyncType: { [key: number]: SyncType } = { 0: SyncType.LOCAL_ONLY, 1: SyncType.MANU...
import { gainHealth, getAttackWithoutHealthBonuses, getAvatarPosition, getDefenseWithoutHealthBonuses, getLevelBonus, updatePlayerStats } from 'app/avatar'; import { drawEmbossedText, drawFrame, drawOutlinedImage } from 'app/draw'; import { emptyJourneyRadius, gridLength, maxTileLevel, minRadius } from 'app/ga...