text
stringlengths
9.82k
47.8k
<reponame>alesak/nbts /* * Copyright 2015-2018 Everlaw * * 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 applic...
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, AfterViewInit, forwardRef, TemplateRef, ElementRef, ViewChild } from '@angular/core'; import { NbDialogService, NbToastrService } from '@nebular/theme'; import { ElectronService } from 'ngx-electron'; import { TimeTrackerService } from './time-trac...
<reponame>zhakesi/engine import { assertIsTrue } from '../data/utils/asserts'; import { approx, lerp, pingPong, repeat } from '../math'; import { KeyframeCurve } from './keyframe-curve'; import { ccclass, serializable, uniquelyReferenced } from '../data/decorators'; import { RealInterpolationMode, ExtrapolationMode, Ta...
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import * as React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { returntypeof } from 'react-redux-typescript'; import { State } from '../../types' import *...
<reponame>chelog/PteroJS // Typedefs for PteroJS classes, structures and extensions import { EventEmitter } from 'events'; import WebSocket from 'ws'; export interface FetchOptions { force?: boolean; } export type Include<B> = { include?: string[] } & B; export interface OptionSpec { fetch: boolean; ca...
import pLimit from 'p-limit'; import { nanoid } from 'nanoid'; import ow from 'ow'; import { TypedEmitter } from 'tiny-typed-emitter'; import { addTimeoutToPromise, tryCancel } from '@apify/timeout'; import { Fingerprint, FingerprintInjector } from 'fingerprint-injector'; // eslint-disable-next-line @typescript-eslint/...
// Angular Core import { // ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, OnDestroy, OnInit, Inject, } from '@angular/core' // CDK import { ArrayDataSource } from '@angular/cdk/collections' import { CdkDragDrop, CdkDragMove, moveItemInArray, }...
<reponame>craftingmod/ncc_discord_auth<filename>src/ncc/ncfetch.ts import * as caller from "caller" import * as cheerio from "cheerio" import * as encoding from "encoding" import * as get from "get-value" import * as Entities from "html-entities" import { Agent } from "https" import * as querystring from "querystring" ...
<filename>src/client/ts/client.ts "use strict"; import { autoDetectRenderer, CanvasRenderer, Container, Graphics, loader, SCALE_MODES, Text, ticker, utils as PixiUtils, WebGLRenderer } from "pixi.js"; import AttackOverlay from "./attack-overlay"; import Colors from "./co...
<filename>src/common/core/item-list/item-list-base.ts import { ElementRef, QueryList } from "@angular/core"; import { Observable } from "rxjs/Rx"; import { clearTimeout, setTimeout } from 'timers'; import { GroupingService, IGroupInfo } from "../grouping/index"; import { ISortInfos, SortingService, SortOrder } from ".....
<gh_stars>0 /** @module helper-types.ts */ // import {IsFinite} from 'typescript-tuple' export enum adtn { ap = 'babakness/ap', map = 'babakness/map', chain = 'babakness/chain', flatMap = 'babakness/flatMap', } Array.prototype[ adtn.chain ] = function( fn ) { return this.reduce( ( acc, item...
<filename>src/index.ts<gh_stars>1-10 // File: oni2.ts // // Project: lieene.CodeFactory // // Author: <NAME> // // MIT License ...
import { CharacterCodes } from "./types"; import { forEachChild, reduceEachTrailingCommentRange, reduceEachLeadingCommentRange, Node, SyntaxKind, Identifier, Token, SourceFile, SymbolFlags, __String, ModifierFlags, NodeFlags, TextRange, ScriptKind, Extension, CommentRang...
<reponame>luna215/molstar-proto /** * Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { StateObject, StateObjectCell } from './object'; import { StateTree } from './tree'; import { StateTransform } from './transform'; import { St...
import { createBlock, createIconButton, deleteBlock, getAttrConfigFromQuery, getNthChildUidByBlockUid, getPageTitleByBlockUid, getPageUidByPageTitle, getReferenceBlockUid, getTextByBlockUid, getTreeByBlockUid, getUids, parseInline, parseRoamBlocksToHtml, RoamBlock, toRoamDate, TreeNode, ...
<gh_stars>0 'use strict'; //import * as path from 'path'; import * as URL from 'url'; import * as pg from 'pg'; import * as util from 'util'; import * as UID from 'uid-safe'; import { SystemInfo } from './system'; import Logger from './logger'; const logger = Logger.getLogger(); import { makeObjectNull, /...
// package: pb // file: proto/spell.proto import * as jspb from "google-protobuf"; export class Spell extends jspb.Message { getId(): number; setId(value: number): void; getName(): string; setName(value: string): void; getPlayer1(): string; setPlayer1(value: string): void; getTeleportzone(): string; ...
import { type TObs, get, obs, set } from '@preact-wmr-twind-zero/preact-things/observant/core/index.js'; import { preactObservant } from '@preact-wmr-twind-zero/preact-things/observant/preact/index.js'; import { ContextSlotsProvider, Slot } from '@preact-wmr-twind-zero/preact-things/slots.js'; import type { ComponentCh...
<reponame>sebgerlach/webesp /// <reference path='./serial.d.ts'/> let terminal: Terminal; const DEFAULT_BAUD = 115200; const FAST_BAUD = 460800; // Supported commands. https://github.com/espressif/esptool/wiki/Serial-Protocol enum Command { ESP_FLASH_BEGIN = 0x02, ESP_FLASH_DATA = 0x03, ESP_FLASH_END = 0x04, ...
import {Shader} from "./shader"; import {vec3} from "gl-matrix"; import {MatType} from "./Material"; import {Camera} from "../Camera"; import * as ImGui from "../imgui/imgui"; import {ImGuiIO} from "../imgui/imgui"; import * as ImGui_Impl from "../imgui/imgui_impl"; import {Global} from "../globals"; const random = re...
// this class seems to be mostly a bunch of utility functions not directly related to // streamdeck functionality. most of this file will probably be eventually removed // or split into separate modules. class Utils { sleep(milliseconds: number) { return new Promise(resolve => setTimeout(resolve, milliseconds)); }...
import { Contract } from "web3-eth-contract"; import * as utils from 'web3-utils'; const assert = require('assert') const BN = require('bn.js') const Web3 = require('web3'); const fs = require("fs"); const path = require("path") const http = require('http') const node_utils = require('util') const encoder = new node_u...
import { Cursor, Field, FieldType, Record, Table, TableOrViewQueryResult, ViewType } from '@airtable/blocks/models' import { Box, Button, CellRenderer, ConfirmationDialog, Icon, Label, Loader, Switch, Text, Tooltip, useLoadable, useRecordById, useViewMetadata, useWatchable, } from '@airtable...
import { walk } from 'estree-walker'; import { reserved, is_valid } from '../utils/names'; import create_module from './create_module'; import { create_scopes, extract_names, Scope, extract_identifiers } from './utils/scope'; import Stylesheet from './css/Stylesheet'; import { test } from '../config'; import Fragme...
import React, { useContext, useEffect, useMemo, useState } from 'react'; import { BigNumber } from '@ethersproject/bignumber'; import { Button as UIBtn } from '@mycrypto/ui'; import { useFormik } from 'formik'; import isEmpty from 'lodash/isEmpty'; import mergeDeepWith from 'ramda/src/mergeDeepWith'; import { connect,...
/* ----------------------------------------------------------------------------- | Copyright (c) Jupyter Development Team. | Distributed under the terms of the Modified BSD License. |----------------------------------------------------------------------------*/ /** * Ensure the integrity of the packages in the repo. ...
import { tx as webTx, types } from "@algo-builder/web"; import { getApplicationAddress, makeAssetTransferTxnWithSuggestedParams, modelsv2 } from "algosdk"; import { AccountStore, getProgram, parseASADef, Runtime } from "."; import { RUNTIME_ERRORS } from "./errors/errors-list"; import { RuntimeError } from "./errors/r...
// const vscode = require('vscode'); // import { workspace, languages, window, commands, ExtensionContext, Disposable } from 'vscode'; 'use strict'; import * as vscode from 'vscode'; import { workspace, window } from 'vscode'; // import { Script } from 'vm'; /* NOTE The problem of making different separators withou...
import path from 'path'; import { WalkerContext, Node } from 'estree-walker'; import { attachScopes } from 'rollup-pluginutils'; import { evaluate, UNKNOWN, FUNCTION, WILDCARD, wildcardRegEx } from './utils/static-eval'; import { Parser } from 'acorn'; import bindings from 'bindings'; import { isIdentifierRead, isLoop,...
/** @module @ember-data/record-data */ import { assert, inspect, warn } from '@ember/debug'; import { assign } from '@ember/polyfills'; import { run } from '@ember/runloop'; import { isEqual } from '@ember/utils'; import { DEBUG } from '@glimmer/env'; import { RECORD_DATA_ERRORS, RECORD_DATA_STATE } from '@ember-dat...
<filename>src/crypto/CrossSigning.ts /* Copyright 2019 - 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...
import { Component, OnInit } from '@angular/core'; import { Model, SurveyNG, StylesManager, Survey, IQuestion, surveyLocalization } from 'survey-angular'; import { SurveySpecificationService } from "src/app/survey/survey-specification.service"; import { ResponseConverterService } from "src/app/survey/response-converter...
<filename>packages/react-moveable/src/react-moveable/utils.ts<gh_stars>0 import { PREFIX, isWebkit } from "./consts"; import { prefixNames } from "framework-utils"; import { splitBracket, isUndefined, isObject, splitUnit, IObject } from "@daybrush/utils"; import { multiply, invert, convertCSStoMatrix, convertMa...
<reponame>microsoftly/BotBuilder // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // ...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Permission is her...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {FormattedMessage} from 'react-intl'; import {RouteComponentProps} from 'react-router'; import {PermissionsScope, ModalIdentifiers} from 'utils/constants'; import {localize...
import { BigNumber, Signer, providers, utils } from "ethers"; import PriorityQueue from "p-queue"; import { createLoggingContext, delay, getUuid, jsonifyError, Logger, NxtpError, RequestContext, } from "@connext/nxtp-utils"; import interval from "interval-promise"; import { Gas, WriteTransaction, Transac...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { EventEmitter } from "events"; import * as ClientUI from "@fluid-example/client-ui-lib"; import { Caret, CaretEventType, Direction, ICaretEvent } from "@fluid-example/flow-util-lib"; import ...
<gh_stars>0 import { formatGRT, join, Logger, Metrics, SubgraphDeploymentID, timer, toAddress, } from '@graphprotocol/common-ts' import { allocationRewardsPool, Allocation, AllocationStatus, INDEXING_RULE_GLOBAL, IndexingRuleAttributes, RewardsPool, indexerError, IndexerErrorCode, Transf...
import { parse } from "jsonc-parser"; import { orThrow } from "../common/assert"; import { Mesh } from "../common/mesh"; export interface IGraphicService { readonly gl: WebGL2RenderingContext; readonly skyboxCache: SkyboxCache; readonly textureCache: TextureCache; readonly shaderCache: ShaderCache; readonly mesh...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { ModalController } from '@ionic/angular'; import { Subject } from 'rxjs'; import { DIDPublishingComponent } from '../components/did-publishing/did-publishing.component'; import { Logger } from '../logger'...
<reponame>woflydev/general-projects import { default as insecureNodeFetch, RequestInit } from 'node-fetch'; import https from 'https'; import { dropSnodeFromSnodePool, dropSnodeFromSwarmIfNeeded, updateSwarmFor } from './snodePool'; import ByteBuffer from 'bytebuffer'; import { OnionPaths } from '../../onions'; import...
<gh_stars>100-1000 // CROPS import sunflowerSeed from "assets/crops/sunflower/seed.png"; import sunflowerCrop from "assets/crops/sunflower/crop.png"; import potatoSeed from "assets/crops/potato/seed.png"; import potatoCrop from "assets/crops/potato/crop.png"; import pumpkinSeed from "assets/crops/pumpkin/seed.png"; imp...
import { mount } from '@vue/test-utils'; import {Component, Vue} from 'vue-property-decorator'; import {Veranstaltung} from "../../types/Veranstaltung"; import {Person} from "../../types/Person"; // @ts-ignore import App from "../../src/App.vue"; import { createLocalVue } from '@vue/test-utils'; import BootstrapVue fro...
<filename>web/src/main/webapp/dataViews/heatmapView.ts /* * Copyright (c) 2017 VMware Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * 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 th...
import * as assert from 'assert'; import { Labels } from './labels'; import { zSocket } from './zesaruxSocket'; import { CallSerializer } from './callserializer'; import { Settings } from './settings'; import { Z80Registers } from './z80Registers'; import { Emulator } from './emulatorfactory'; import * as fs from 'fs';...
<gh_stars>10-100 import LRU from '../core/LRU'; const kCSSColorTable = { 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1], 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1], 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1], 'beige': [245, 245, 220, 1], 'bisque': [255...
<filename>src/common/models/Projection.ts<gh_stars>0 import _ from 'lodash'; import moment from 'moment'; import { RegionSummaryWithTimeseries, Timeseries, ActualsTimeseries, } from 'api'; import { CANPredictionTimeseriesRow, CANActualsTimeseriesRow, } from 'api/schema/CovidActNowStatesTimeseries'; /** * W...
// Copyright (C) 2021 The Android Open Source Project // // 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 applic...
<reponame>onap/archive-appc-cdt<gh_stars>1-10 /* ============LICENSE_START========================================== =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. Copyright (C) 2018 IBM. ==========================================...
<filename>src_ts/components/app-modules/interventions/pages/list/interventions-list.ts import {PolymerElement, html} from '@polymer/polymer'; import {property} from '@polymer/decorators'; import {Debouncer} from '@polymer/polymer/lib/utils/debounce'; import {timeOut} from '@polymer/polymer/lib/utils/async'; import '@po...
import { Ceremony, CeremonyEvent, CeremonyState, Contribution, ContributionState, ContributionSummary, Participant, ParticipantState, Project } from '../types/ceremony'; import firebase from 'firebase/app'; import "firebase/firestore"; import { jsonToCeremony, jsonToContribution } from './ZKPartyApi'; con...
<filename>web/settingsWidget.ts interface SettingsWidgetState { readonly visible: boolean; readonly repo: string | null; readonly settings: GG.GitRepoSettings | null; } class SettingsWidget { private readonly view: GitGraphView; private visible: boolean = false; private loading: boolean = false; priva...
export type Vec2 = { x: number, y: number } export type Line = { p1: Vec2, p2: Vec2 } export type HalfEdge = { origin: Vertex, target: Vertex, next: HalfEdge, prev: HalfEdge, left: Face, edge: Edge, twin?: HalfEdge obtuse: boolean fill: boolean } export type Edge = { half: HalfEdg...
<reponame>vipstar-dev/vipsinfo import assert from 'assert' import LRU from 'lru-cache' import { Op, Optional } from 'sequelize' import { Block, IBlock } from '@/lib' import { IBus } from '@/node/bus' import BlockModel, { BlockCreationAttributes } from '@/node/models/block' import HeaderModel from '@/node/models/header...
import { IGrid, IColumn, IGridColors, IGridFontSizes, IRow, IGroupRow } from '../models/GridTypes'; import { Observe, disposeOnUnmount, watch, property, DataSignal, computed } from 'rewire-core'; import Column ...
import {PolymerElement, html} from '@polymer/polymer'; import '@polymer/iron-icons/iron-icons.js'; import '@polymer/iron-flex-layout/iron-flex-layout.js'; import '@polymer/paper-input/paper-input.js'; import '@polymer/paper-button/paper-button.js'; import '@polymer/paper-toggle-button/paper-toggle-button.js'; import '@...
<filename>packages/pinia/src/store.ts import { watch, computed, inject, getCurrentInstance, reactive, DebuggerEvent, WatchOptions, UnwrapRef, markRaw, isRef, isReactive, effectScope, EffectScope, ComputedRef, toRef, toRefs, Ref, ref, set, del, isVue2 } from 'vue-demi' import { ...
import { WhatsOnChainApi } from "./apis/WhatsOnChain"; import { Group, isGroupLike } from "./Group"; import { IApiProvider } from "./IApiProvider"; import { ILinkProvider, ProviderData } from "./ILinkProvider"; import { getUnderlying, proxyInstance } from "./InstanceProxy"; import { InstanceStore } from "./InstanceStor...
import {readFileSync} from 'fs'; import {argv} from 'yargs'; import {normalize, join} from 'path'; import * as chalk from 'chalk'; var PluginsConfig = require('../app/js/config/config.plugins'); console.log("Plugins.gardening: ", PluginsConfig.plugins.gardening); // -------------- // Configuration. const ENVIRONMENT...
if(typeof Object.defineProperty==="undefined"){ Object.defineProperty = (obj:any,name:string,descriptor:any)=>{ obj[name] = descriptor.value; } } let _toString = Object.prototype.toString; function is_array(obj){ return _toString.call(obj)==="[object Array]"; } function in_array(arr:any[],item:an...
//temporary -- need to replace with good random num generator function getRand(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } function shuffleArray(array) { var counter = array.length, temp, index; // While there are elements in the array while (counter > 0) { // Pick...
/* Do not change these import lines. Datagrok will import API library in exactly the same manner */ import * as grok from 'datagrok-api/grok'; import * as ui from 'datagrok-api/ui'; import * as DG from 'datagrok-api/dg'; // @ts-ignore import * as svg from 'save-svg-as-png'; import $ from "cash-dom"; import {drawAxolab...
<reponame>jas-trainning/wijmo-system-min import * as wjcSelf from 'wijmo/wijmo'; export declare function getVersion(): string; export declare enum Key { Back = 8, Tab = 9, Enter = 13, Escape = 27, Space = 32, PageUp = 33, PageDown = 34, End = 35, Home = 36, Left = 37, Up = 38...
import { Component, OnInit } from '@angular/core'; import { Router,ActivatedRoute} from '@angular/router'; import { I18NService, Utils, MsgBoxService, HttpService, Consts} from 'app/shared/api'; import { BucketService} from '../buckets.service'; import { MenuItem ,ConfirmationService, Message} from '../../../components...
<filename>demos/model-builder/model-builder.ts /** * @license * Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
import React, { Component, createRef, forwardRef } from "react"; import classNames from "classnames"; import { detectNewLine, withNoLinebreakHandler, removeLineBreaksFromPaste, importEmbedModule, pasteImageAsBlockEmbed, withBlockquotesKeyboardBehavior, withLinkShortcut, isEmptyDelta, removeListKeyboar...
import { CSSProperties } from 'react'; import { SetDifference } from 'utility-types'; // basic types interface BaseProps { testID?: string; id?: string; className?: string; style?: CSSProperties; onTouchstart?: (e: any) => void; onTouchmove?: (e: any) => void; onTouchcancel?: (e: any) => void; onTouch...
'use strict'; import { EventFragment, Fragment, Indexed, Interface, JsonFragment, ParamType } from '@ethersproject/abi'; import { Block, BlockTag, Listener, Log, Provider, TransactionReceipt, TransactionRequest, TransactionResponse, } from '@ethersproject/abstract-provider'; import { Si...
import { Camera, FFMpegInput, MotionSensor, ScryptedDevice, ScryptedDeviceType, ScryptedInterface, ScryptedMimeTypes, VideoCamera, AudioSensor, Intercom, MediaStreamOptions, ObjectsDetected, VideoCameraConfiguration, OnOff } from '@scrypted/sdk' import { addSupportedType, bindCharacteristic, DummyDevice, HomeKitSession...
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { Raidbos...
<reponame>CodeMaxx/vscode-python-devicesimulator // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as cp from "child_process"; import * as fs from "fs"; import * as open from "open"; import * as path from "path"; import * as utils from "./extension_utils/utils"; import * as vscode fro...
import React from 'react'; import qs from 'qs'; import {RendererStore, IRendererStore, IIRendererStore} from './store/index'; import {getEnv} from 'mobx-state-tree'; import {Location, parsePath} from 'history'; import {wrapFetcher} from './utils/api'; import { createObject, extendObject, guid, findIndex, prom...
<reponame>kyjo2014/nerv<gh_stars>0 /* tslint:disable: no-empty*/ import { isString, isAttrAnEvent, isNumber, isArray, isFunction, MapClass } from 'nerv-utils' import createElement, { mountChild } from './create-element' import { Props, VText, isInvalid, VNode, isNullOrUndef, isValidElement, EM...
/** * SyncTasks.ts * Author: <NAME> * Copyright: Microsoft 2015 * * A very simple promise library that resolves all promises synchronously instead of * kicking them back to the main ticking thread. This affirmatively rejects the A+ * standard for promises, and is used for a combination of performance (wrapping...
import React, { useState, useContext } from 'react'; import { Form, Input, Checkbox, Select, message, Radio, InputNumber, Tooltip, } from 'antd'; import ClipLoader from 'react-spinners/ClipLoader'; import { useHistory, useLocation, Link } from 'react-router-dom'; import Icons from '../assets/icons'; imp...
import { ethers } from "hardhat"; import { LoanTerms } from "../test/utils/types"; import { createLoanTermsSignature } from "../test/utils/eip712"; import { Contract } from "ethers"; import { MockERC1155Metadata, MockERC20, MockERC721Metadata } from "../typechain"; import { SignerWithAddress } from "@nomiclabs/hardhat-...
<filename>spec/mocks/library.mock.ts import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; // import { p } from '@angular/core/src/render3'; import { flatMap } from 'rxjs/operators'; import { LegacyWalletV1, ImplicitAccount, OriginatedAccount, LegacyWalletV2, Activity, Legac...
<reponame>frostRed/indra<filename>modules/node/src/transfer/transfer.service.ts<gh_stars>0 import { Injectable } from "@nestjs/common"; import { Address, AppStates, Bytes32, CoinTransfer, ConditionalTransferAppNames, ConditionalTransferTypes, RequireOnlineApps, GraphBatchedTransferAppAction, GraphBatc...
import { MessageReaction, User, Message, Guild, GuildMember, TextChannel, RoleResolvable, DMChannel, VoiceChannel, PartialUser, Role, MessageEmbedFooter, MessageEmbed, Emoji, ClientUser } from "discord.js"; import { GuildUtil } from "../Utility/GuildUtil"; import { IRaidGuild } from "../Templates/IRaidGuild"; import { ...
/* * Copyright 2012-2020 Online-Go.com * * 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 { apiStatus, encryptToken, decryptToken, apiError } from '@storefront-api/lib/util'; import { Router } from 'express'; import PlatformFactory from '@storefront-api/platform/factory'; import jwt from 'jwt-simple'; import { merge } from 'lodash'; import AbstractUserProxy from '@storefront-api/platform-abstract/use...
<reponame>JayceLai/engine<filename>cocos/core/animation/exotic-animation/exotic-animation.ts import { EDITOR, TEST } from 'internal:constants'; import { binarySearchEpsilon } from '../../algorithm/binary-search'; import { ccclass, serializable } from '../../data/decorators'; import { assertIsTrue } from '../../data/uti...
/* * Copyright (c) 2006-2007 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * inclu...
import * as angular from 'angular'; import 'pascalprecht.translate'; import * as _ from 'underscore'; import {FeedServiceTypes} from "../../../services/FeedServiceTypes"; import {Common} from "../../../../common/CommonTypes"; import {DomainType, DomainTypesService} from "../../../services/DomainTypesService"; const mo...
import { ICommand, SolidPlugin, SolidPluginException, TMiddlewareType } from "./SolidPlugin"; import { nicePrint, newLine, printLoaderLine, setLoaderScope, execAsync, onProcessKilled, onProcessError } from "@solid-js/cli"; import { Directory, File, FileFinder } from "@solid-js/files" import { delay, noop } from "@sol...
/*- * ========================LICENSE_START================================= * TeamApps * --- * Copyright (C) 2014 - 2020 TeamApps.org * --- * 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...
import { Component, ReactNode, createElement } from "react"; import { findDOMNode } from "react-dom"; import moment from "moment"; import findIndex from "lodash/findIndex"; import { Planner, PlannerUISettings, PlannerEventSettings } from "./components/Planner"; import { PlannerWidgetContainerProps, Nanoflow } from ".....
<filename>src/glsl-canvas/glsl-canvas.ts // import '@babel/polyfill'; import 'promise-polyfill'; import Buffers, { IOBuffer } from './buffers'; import Common from './common'; import Context, { ContextDefaultFragment, ContextOptions, ContextVertexBuffers } from './context'; import Logger from './logger'; import Subscrib...
import { IconCommonArrowDropDown, IconCommonClose, IconCommonError, IconCommonRun, IconCommonSave } from '@app/assets/icons' import { SQLEditor } from '@app/components/SQLEditor' import { useBindHovering } from '@app/hooks' import { useBlockSuspense, useConnectorsGetProfile, useTranslateSmartQuery } from '@ap...
import type { LiteralNode } from '../../pattern/Nodes'; import { SyntaxKind } from '../../pattern/Nodes'; import type { SimpleNode } from '../../pattern/Simplifier'; import { simplify } from '../../pattern/Simplifier'; import type { LiteralGroup, WildcardGroup } from '../../pattern/Util'; import { computePatternMatchLe...
/** @format */ import { NSDatabase } from "@sqltools/types"; const reservedWordsArr = [ "ABORT", "ABORTSESSION", "ABS", "ACCESS_LOCK", "ACCOUNT", "ACOS", "ACOSH", "ADD", "ADD_MONTHS", "ADMIN", "AFTER", "AGGREGATE", "ALL", "ALTER", "AMP", "AND", "ANSIDATE", "AN...
<filename>src/components/schedule.tsx import { Course, CourseSelection, CourseSection, Timeslot, wkday_idx } from "./course"; import { DLXMatrix, Solution as DLXSolution, DLXEvaluator, DLXIterationAction } from "./dlxmatrix" import { string } from "prop-types"; import { AssertionError } from "assert"; import { crsdb } ...
/* eslint-disable complexity, no-unused-expressions */ /* eslint-disable no-magic-numbers, max-len, max-statements, prefer-template */ import Path from "path"; import _ from "lodash"; import boxen from "boxen"; import ck from "chalker"; import chokidar from "chokidar"; import readline from "readline"; import { fork } ...
import { Component, Property, ChildProperty, INotifyPropertyChanged, NotifyPropertyChanges, Animation } from '@syncfusion/ej2-base'; import { Browser, isNullOrUndefined as isNOU, getUniqueID, formatUnit, EventHandler } from '@syncfusion/ej2-base'; import { EmitType, Collection, Complex, setStyleAttribute, Event, Effec...
import LiteEvent from "./event"; import { BloomPlayerCore, PlaybackMode } from "./bloom-player-core"; import { sortAudioElements, ISetHighlightParams } from "./narrationUtils"; import { SwiperInstance } from "react-id-swiper"; const kSegmentClass = "bloom-highlightSegment"; const kMinDuration = 3.0; // seconds // Eve...
/* tslint:disable:no-any */ import { BACKSPACE, DOWN_ARROW, ENTER, ESCAPE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, } from '@angular/cdk/keycodes'; import { ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay'; import { forwardRef, AfterViewInit, ChangeDetectorRef, Compon...
import { _, Autowired, BeanStub, Events, IServerSideStore, LoadSuccessParams, Logger, LoggerFactory, NumberSequence, PostConstruct, PreDestroy, Qualifier, RowBounds, RowNode, RowNodeBlockLoader, RowRenderer, ServerSideStoreParams, ServerSideStoreSt...
import DatManagerInterface, { DatDownloadOptions, DatManagerOptions } from "./DatManagerInterface"; import fs from "fs-extra"; import path, { resolve, join } from "path"; import Dat from "dat-node"; import Debug from "debug"; import DatArchive, { DatStats, DatFileStats } from "./DatArchive"; import Datastore fr...
<gh_stars>1-10 // Componentes de Angular 2 import { Component, Input, OnChanges, SimpleChange } from "@angular/core" ; import { FormsModule } from "@angular/forms" ; import { CommonModule } from "@angular/common" ; // Botones primeng. import { ButtonModule } from 'primeng/primeng'; import {ToolbarModule, DialogModule ...