text
stringlengths
3.3k
33k
import ohm from 'ohm-js'; import _ from 'lodash'; import replaceAsync from "string-replace-async"; import '@logseq/libs'; export function regexPraser(input: string): RegExp { if (typeof input !== "string") { throw new Error("Invalid input. Input must be a string"); } // Parse input var m = inpu...
import * as assert from 'assert'; import { values } from 'bitcode-builder'; import { Abbr, BitStream, BlockInfoMap } from '../bitstream'; import { BLOCK_ID, FIXED, FUNCTION_CODE, VALUE_SYMTAB_CODE, VBR, } from '../constants'; import { encodeBinopType, encodeCallFlags, encodeCastType, encodeICmpPredicate, encodeS...
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed...
import { QueryType, TimeData } from '../types/types'; import { FFmpeg } from 'prism-media'; import YouTube from 'youtube-sr'; import { Track } from '../Structures/Track'; // @ts-ignore import { validateURL as SoundcloudValidateURL } from 'soundcloud-scraper'; import { VoiceChannel } from 'discord.js'; const spotifySon...
<filename>src/shared/Node.ts import inspect from 'browser-util-inspect' import Libp2p from 'libp2p' import Gossipsub from 'libp2p-gossipsub' import Mplex from 'libp2p-mplex' import { NOISE } from 'libp2p-noise' import Secio from 'libp2p-secio' import WebrtcStar from 'libp2p-webrtc-star' import Websockets from 'libp2p-w...
<gh_stars>10-100 import { SedDocument, SerializedSedDocument, SedModel, SerializedSedModel, SedSimulation, SedAbstractTask, SerializedSedAbstractTask, SedDataGenerator, SerializedSedDataGenerator, SedVariable, SerializedSedVariable, SedOutput, SerializedSedOutput, SedDataSet, SerializedSed...
<reponame>SuperFlyTV/xkeys import type * as USBDetectNS from 'usb-detection' import { EventEmitter } from 'events' import { XKeys, XKEYS_VENDOR_ID } from '@xkeys-lib/core' import { listAllConnectedPanels, setupXkeysPanel } from '.' interface USBDetectType { startMonitoring: typeof USBDetectNS.startMonitoring stopMon...
<filename>src/populate/index.ts import 'dotenv/config'; import faker from 'faker'; import 'reflect-metadata'; import '../config'; import { container } from 'tsyringe'; import AdminDataSource from '../datasources/postgres/AdminDataSource'; import CallDataSource from '../datasources/postgres/CallDataSource'; import Ins...
<filename>studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts<gh_stars>1-10 import dayjs from 'dayjs' import { find, isUndefined, compact, includes, isEqual, omitBy, isNull, isString } from 'lodash' import { Dictionary } from '@supabase/grid' import { PostgresTable } from '@supabas...
import * as fs from 'fs'; import { ExtensionQueryFlags, PublishedExtension } from 'azure-devops-node-api/interfaces/GalleryInterfaces'; import { pack, readManifest, IPackage, isWebKind, isSupportedWebExtension } from './package'; import * as tmp from 'tmp'; import { getPublisher } from './store'; import { getGalleryAPI...
import React, { useEffect, useState, useMemo } from "react"; import styled from "styled-components"; import Icon, { IconSize } from "components/ads/Icon"; import { StyledSeparator } from "pages/Applications/ProductUpdatesModal/ReleaseComponent"; import history from "utils/history"; import { TabComponent } from "compone...
import { URL } from 'url'; import { Request, Response } from 'detritus-rest'; import { ContentTypes, HTTPHeaders, HTTPMethods } from 'detritus-rest/lib/constants'; import { Snowflake } from 'detritus-utils'; import { Bucket } from './bucket'; import { Client } from './client'; import { RatelimitHeaders, ...
<gh_stars>0 import { Bounds, DynamicScope, Environment, ExceptionHandler, GlimmerTreeChanges, JitOrAotBlock, RuntimeContext, Scope, AotRuntimeContext, JitRuntimeContext, ElementBuilder, LiveBlock, UpdatableBlock, } from '@glimmer/interfaces'; import { // Tags combine, combineSlice, CON...
<gh_stars>0 /** * Exports `server`, set up to start using setupTestSuite(), e.g. * * import {assert, driver} from 'mocha-webdriver'; * import {server, setupTestSuite} from 'test/nbrowser/testUtils'; * * describe("MyTest", function() { * this.timeout(20000); // Needed because we wait for server...
import { KeyedTemplate, isIOS } from '@nativescript/core/ui/core/view'; import { Template } from '@nativescript/core/ui/core/view'; import { Length } from '@nativescript/core/ui/core/view'; import { ObservableArray, ChangedData } from '@nativescript/core/data/observable-array'; import { Observable } from 'tns-core-modu...
<filename>src/main.ts<gh_stars>1-10 import * as core from '@actions/core' import {context, getOctokit} from '@actions/github' import {err, ok, okAsync, Result, ResultAsync} from 'neverthrow' import minimatch, {IOptions} from 'minimatch' type GitHub = ReturnType<typeof getOctokit> interface RuntimeError { error: unk...
import { DataRow, DataType, EasyDataTable, EditorTag, EntityAttrKind, i18n, MetaEntityAttr, utils as dataUtils, ValueEditor } from '@easydata/core'; import { browserUtils, DateTimePickerOptions, DefaultDateTimePicker, DefaultDialogService, domel, DomElementBuilder, EasyGrid } from '@...
import * as logger from 'js-logger'; import { CANVAS_COLOR, IDLE_BACKUP_INTERVAL } from '../config/game.config'; import { BUSINESSES_GUI, SIDEMENU_GUI } from '../config/gui.config'; import { BUSINESS_INFO, BUSINESS_OPERATIONS, BusinessOperation, STARTING_MONEY } from '../config/business.config'; import { Base...
import { assert } from 'chai'; import 'mocha'; import { PID } from 'token-flow'; import { ENTITY, EntityToken, ATTRIBUTE, AttributeToken } from '../../src'; import { AttributeInfo } from '../../src/attributes/attribute_info'; import { Dimension } from '../../src/attributes/dimension'; import { AttributeItem } from '....
import Model from './model'; const Events = new Model('v3_events'); const Web3 = require('web3'); const fs = require('fs'); const privkey = process.env.PRIVKEY const chainid = Number(process.env.CHAIN_ID) const blocktime = Number(process.env.BLOCKTIME) * 1000; const rpc = process.env.NETWORK_URL const web3 = new We...
<gh_stars>0 import * as object_matcher from "./object_matcher"; import Spot from "./Spot"; import Alert from "./Alert"; import { ControlMessage, HighlightMessage, SpotsMessage, AlertsMessage, MessageType, TabsMessage, HighlightTabMessage, NotifyAlertsMessage } from "./Messages"; import { RigInformation } from "./RigCon...
<reponame>honk-world/honkswap-interfaceV2 import { AppDispatch, AppState } from '../index' import { useDispatch, useSelector } from 'react-redux' import { useCallback, useEffect, useMemo, useState } from 'react' import { Field, replaceLimitOrderState, selectCurrency, setRecipient, switchCurrencies, typeInput } from './...
<gh_stars>0 /** * @license * Copyright 2016 Google Inc. * 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 appli...
import React, { FC } from 'react'; import { StandardEditorProps } from '@grafana/data'; import { ColorPicker, Field, HorizontalGroup, InlineField, InlineFieldRow, InlineLabel, NumberValueEditor, RadioButtonGroup, SliderValueEditor, } from '@grafana/ui'; import { Observable } from 'rxjs'; import { useO...
// TODO: This file and the types here can be removed once everything is moved to cohesion. import { OwnerType } from "@artsy/cohesion" /** * Useful notes: * * At the bottom of this file there is an example of how to test track'd code. */ /** * The global tracking-info keys in Artsy’s schema. */ export interface ...
/** * This module contains the [[DefaultVisualizer]] class, which is the default * entry point of the code. * * The default visualization is organized around four panels: the * [[MetadataPanel|metadata]] panel; the [[PropertiesMap|map]] (a scatter plot of * properties), the [[ViewersGrid|structure viewer]], and t...
/** * * Copyright © 2021 Uncharted Software Inc. * * 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 requ...
<reponame>Kefff/TotovBuilder.Website import { IPrice } from '../../../models/utils/IPrice' import { ArmorModReaderService } from '../../../services/readers/ArmorModReaderService' describe('read() and readMarketData()', () => { it('should populate armor mod properties from Tarkov data', async () => { // Arrange ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // eslint-disable-next-line max-classes-per-file import { IAuthentication, IConnectionFactory, RecognizerConfig, ServiceRecognizerBase, SpeechServiceConfig } from "../../common.speech/Exports"; import { ...
import * as cases from 'change-case'; import * as fs from 'fs'; import * as handlebars from 'handlebars'; import * as path from 'path'; import { guard } from '../utils'; import { Explorer } from './explorer'; import { ConfigSchema } from './schema'; export class Introspection { readonly #config: ConfigSchema; con...
<reponame>patkujawa-wf/DefinitelyTyped<gh_stars>0 /// <reference path="../../stats/stats.d.ts" /> /// <reference path="../physijs.d.ts" /> var TWEEN: any; var SimplexNoise: any; Physijs.scripts.worker = '../physijs_worker.js'; Physijs.scripts.ammo = 'examples/js/ammo.js'; var initScene, render, ground_material,...
<reponame>patarapolw/csv-md-editor<gh_stars>1-10 import Handsontable from "handsontable"; import { ipcRenderer, remote, BrowserWindow } from "electron"; import fs from "fs"; import toastr from "toastr"; import url from "url"; import CsvParse from "csv-parse"; import CsvStringify from "csv-stringify"; import markdownRen...
/** * Copyright (c) 2017 The xterm.js authors. All rights reserved. * @license MIT */ import { ILinkMatcherOptions } from './Interfaces'; import { LinkMatcherHandler, LinkMatcherValidationCallback, Charset, LineData } from './Types'; import { IColorSet, IRenderer } from './renderer/Interfaces'; import { IMouseZoneM...
<gh_stars>0 import { ParsedOptions } from "../Master"; import Master from ".."; import Logger from "logger"; import { Colors, EmbedBuilder } from "core"; import { Worker, fork } from "cluster"; interface ClusterCreator { id: number; shards: Array<number>; firstShard: number; lastShard: number; } export default cl...
import {gql, useApolloClient, ApolloClient} from '@apollo/client'; import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorInfo'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment'; import {QueryPersistedStateConfig, useQueryPersistedState} from '../hooks/useQueryPersis...
<reponame>CodeDoes/Midnight-Lizard<filename>ts/ContentScript/SvgFilters.ts<gh_stars>100-1000 import { injectable } from "../Utils/DI"; import { IApplicationSettings, BrowserVendor } from "../Settings/IApplicationSettings"; import { IBaseSettingsManager } from "../Settings/BaseSettingsManager"; import { RgbaColor } from...
import { Feature } from 'ol'; import { FrameState } from 'ol/PluggableMap'; import LayerRenderer from 'ol/renderer/Layer'; import VectorLayer from 'ol/layer/Vector'; import Geometry from 'ol/geom/Geometry'; import { Vector as VectorSource } from 'ol/source'; import Point from 'ol/geom/Point'; import Delaunator from 'de...
import * as React from "react"; import { CommandBar, ContextualMenuItemType, ICommandBarItemProps } from "@fluentui/react"; import { useConst } from "@fluentui/react-hooks"; import * as domClass from "dojo/dom-class"; import * as Observable from "dojo/store/Observable"; import * as ESPRequest from "src/ESPRequest"; imp...
/* * CMSIS Debug Adapter * Copyright (c) 2019 Arm Limited * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
/* Copyright 2018, 2019 matrix-appservice-discord Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
import { installCanvasRecorder, scriptPlayingRecordedCanvases } from 'canvas-recorder' import { FetchOptions, JSDOM, ResourceLoader, VirtualConsole } from 'jsdom' import { BlobStore, installBlobs } from './blobs.js' import { installFonts, scriptLoadingFonts } from './fonts.js' import { trackDocumentLoad, PageTaskTracke...
import { EuiBadge, EuiButton, EuiButtonIcon, EuiCallOut, EuiFlexGroup, EuiFlexItem, EuiForm, EuiFormRow, EuiSpacer, EuiSuggest, EuiSuggestItemProps, EuiSuperSelect, EuiSwitch, EuiText, } from "@elastic/eui"; import { FAVORITE_STORAGE_KEY } from "components/modals/...
<gh_stars>1-10 // (C) Copyright 2015 Moodle Pty Ltd. // // 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 applicab...
<filename>src/backend/SD/parseSD.ts<gh_stars>10-100 // ------------ Program ------------- import { interactionDir, interactionType } from './util'; /** * parses an SD to an tree-like representation * @param SD input System Description * @returns a tree-like object representing the application logic of the SD */ e...
<reponame>josymar51/SIG_MA<gh_stars>0 import { distanceInWordsToNow, format } from 'date-fns'; import path from 'path'; import { commands, ConfigurationChangeEvent, Disposable, Event, EventEmitter, TreeItem, TreeItemCollapsibleState, Uri, } from 'vscode'; import { ProductBitbucket } from...
<filename>packages/sanity-plugin-nrkno-schema-structure/src/lib/structure-registry.ts<gh_stars>1-10 import { StructureBuilder as DefaultStructureBuilder } from '@sanity/structure'; import { CustomGroupId, GetUser, initRegistry, GroupRegistryApi } from './group-registry'; import { ListItemBuilder } from '@sanity/structu...
/* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "lic...
import path from 'path'; import fs from 'fs'; import { ipcRenderer } from 'electron'; import fileWatcher, { FSWatcher } from 'chokidar'; import admZip, { IZipEntry } from 'adm-zip'; import dragDrop from 'drag-drop'; const gamePath = process.argv.slice(-1)[0]; const settingsPath = path.join(gamePath, 'EternalMo...
<reponame>sadasant/vscode-jupyter // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { inject, injectable, named } from 'inversify'; import { SemVer } from 'semver'; import { EventEmitter, Memento, RelativePattern, Uri, workspace } from 'vscode'; import { IPythonApiP...
import { LocoPacketHandler, TalkClient, LocoRequestPacket, LocoResponsePacket, Long } from ".."; import { LocoManager, BookingData, CheckinData } from "../loco/loco-manager"; import { EventEmitter } from "events"; import { PacketMessageRes } from "../packet/packet-message"; import { PacketLoginRes } from "../packet...
<gh_stars>0 import { StreamViewType } from '@aws-cdk/aws-dynamodb' import { InfrastructureRocket } from '../../src' import { BoosterConfig, UUID } from '@boostercloud/framework-types' import { fake, replace, restore, spy } from 'sinon' import { expect } from '../expect' import { ApplicationStackBuilder } from '../../sr...
<filename>src/app/monster/edit-monster-template-dialog.component.ts<gh_stars>0 import {Component, Inject, OnInit} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import { MonsterInventoryElement, MonsterTemplate, MonsterTemplateSubCategory, MonsterTemplateType, ...
/* * Copyright 2021 Salto Labs Ltd. * * 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 { EOL } from "os"; import isEqual from "lodash.isequal"; import { BaseMatcher } from "./BaseMatcher"; import { DescriptionBuilder } from "./Description"; import { Matcher } from "./Matcher"; import { Diff, MatchResult, MatchResultBuilder } from "./MatchResult"; import { printArray, printValue } from "./Printin...
import { ManagedClasses } from "@microsoft/fast-components-class-name-contracts-base"; import React from "react"; import { keyCodeEnter, keyCodeTab } from "@microsoft/fast-web-utilities"; import { getDataFromSchema } from "@microsoft/fast-tooling"; import manageJss, { ManagedJSSProps } from "@microsoft/fast-jss-manager...
import copy from 'copy-to-clipboard' import ContentCopyIcon from 'mdi-react/ContentCopyIcon' import DotsHorizontalIcon from 'mdi-react/DotsHorizontalIcon' import FileDocumentIcon from 'mdi-react/FileDocumentIcon' import * as React from 'react' import { Link } from 'react-router-dom' import * as GQL from '../../backend/...
<reponame>weishiyanghahaha/ng-zorro-antd<gh_stars>1-10 import { DOCUMENT } from '@angular/common'; import { Component, Inject, OnInit } from '@angular/core'; import { manifest } from '@ant-design/icons-angular'; import { AccountBookFill } from '@ant-design/icons-angular/icons'; import { NzIconService } from 'ng-zorro-a...
import { SERVICES_SOURCE } from '@back/constants'; import { createTagsFromLegacy } from '@back/importGame'; import { ManagedChildProcess } from '@back/ManagedChildProcess'; import { BackState } from '@back/types'; import { Game } from '@database/entity/Game'; import { Playlist } from '@database/entity/Playlist'; import...
<reponame>avclarke/synthetix-subgraph import { Address, BigInt, dataSource, ethereum, store } from '@graphprotocol/graph-ts'; import { AddCommunityMemberCall, AddTeamMemberCall, DeleteProposal, ExecuteProposal, GrantsDAO, NewProposal, RemoveCommunityMemberCall, RemoveTeamMemberCall, UpdateToPassCall,...
<reponame>neil-yechenwei/autorest.cli<filename>src/AzureCli/TemplateAzureCliCustom.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for...
// @Libs import React, { useCallback, useEffect, useRef, useState } from 'react'; import { Col, Form, Input, Row, Select, Switch, Tooltip, Modal } from 'antd'; import debounce from 'lodash/debounce'; import get from 'lodash/get'; import cn from 'classnames'; // @Components import { LabelWithTooltip } from 'ui/component...
import { Helpers } from '@secret-agent/testing'; import * as Fs from 'fs'; import * as fpscanner from 'fpscanner'; import Core, { Session } from '@secret-agent/core'; import { ITestKoaServer } from '@secret-agent/testing/helpers'; import { Handler } from '../index'; const fpCollectPath = require.resolve('fpcollect/src...
import { Component, ComponentSet, IntrospectedComponent, ComponentGetter, PropertyFilter, Attribute, PropertyOperation, isComponentClassOrInstance, assertIsComponentClass, serialize, deserialize } from '@layr/component'; import {invokeQuery} from '@deepr/runtime'; import {possiblyAsync} from 'poss...
<reponame>zeyad-ahmad-aql/mathlive /* eslint-disable no-new */ import { getInfo, mathVariantToUnicode, } from '../core-definitions/definitions-utils'; import { Atom, ToLatexOptions } from './atom'; import { joinLatex } from './tokenizer'; import { getPropertyRuns, Mode } from './modes-utils'; import { Style } from ...
<gh_stars>0 import * as awrtc from "../awrtc/index" /** * Copy of the CallApp to test custom video input */ export class VideoInputApp { public static sVideoDevice = null; private mAddress; private mNetConfig = new awrtc.NetworkConfig(); private mCall: awrtc.BrowserWebRtcCall = null; //update lo...
import Ace from "react-ace"; import * as React from "react"; import { Modal } from "reactjs-components"; import "brace/mode/json"; import "brace/theme/monokai"; import "brace/ext/language_tools"; import { DataTriple } from "#SRC/js/components/SchemaForm"; import { Definition, forEachDefinition } from "#SRC/js/utils/F...
<filename>src/lib/controllers/uploadDownload.ts<gh_stars>0 import { BaseController } from '@phoenix/boc-server'; // import { DocMerge } from '../tools/doc-merge'; import { Utils } from '../tools/utils'; import { ExportExcel } from '../tools/export-excel'; import * as fs from 'fs'; import * as path from 'path'; import {...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as React from "react"; import * as ReactDOM from "react-dom"; import { InteractiveBrowserCredential, BrowserLoginStyle } from "@azure/identity"; import { ServiceBusClient } from "@azure/service-bus"; interface ClientDetails { tenan...
<filename>src/elix.d.ts // TypeScript declarations for the complete Elix library. // Files that export a single object. export { default as AriaListMixin } from "./base/AriaListMixin.js"; export { default as AriaMenuMixin } from "./base/AriaMenuMixin.js"; export { default as AriaRoleMixin } from "./base/AriaRoleMixin....
import * as React from "react"; import "../../locales/config"; import { Link, RouteComponentProps } from "react-router-dom"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import "../../assets/scss/App.scss"; import { PlatoonPlayer, PlatoonStats, ServerList } from "../../api/Ret...
<gh_stars>1-10 /** * This file is "temporary" storage for meta data about different property * types and configurations. */ import { booleanPropertyFactory, DEFAULT_BOOLEAN_PROPERTY_NAME, } from '../boolean-property'; import { emailPropertyFactory } from '../email-property'; import { DEFAULT_EMAIL_MASK, DEFA...
/** * QueryParams decorator. * @file 请求参数解析装饰器 * @module decorator/query-params * @author Surmon <https://github.com/surmon-china> */ import lodash from 'lodash'; import { Types } from 'mongoose'; import { createParamDecorator } from '@nestjs/common'; import { HttpForbiddenError } from '@app/errors/forbidden.erro...
import React, { useEffect, useRef, useState, useCallback, useImperativeHandle, Ref, forwardRef, } from "react"; import { Path, ReferencePoint, Point, ControlsType } from "../types"; import { ComplexNumber, SortedCoeffs } from "../fourierize"; import { fourierWidth, drawingWidth, drawingColor, T, ...
import { Component, Input, OnInit, OnDestroy } from '@angular/core'; import { NbThemeService } from '@nebular/theme'; import { SolarData } from '../../../@core/data/solar'; import { takeWhile } from 'rxjs/operators'; import { RestService } from '../../services/rest.service'; import { connectableObservableDescriptor } f...
/* * Copyright 2021 The MLX Contributors * * SPDX-License-Identifier: Apache-2.0 */ import React, { useContext, useState, ChangeEvent, FormEvent } from 'react' import StoreContext from '../../lib/stores/context' import Button from '../Button' import TextField from '@material-ui/core/TextField' import { requestArtif...
<reponame>felixhaeberle/ng-aquila import { Component, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, Inject, Optional, ChangeDetectorRef, ViewChild, ChangeDetectionStrategy, OnDestroy, AfterViewInit } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { AnimationE...
import BigNumber from 'bignumber.js' import { useCallback, useEffect, useMemo, useState } from 'react' import { Contract } from 'web3-eth-contract' import abi from '../../abis/controller.json' import { INDEX_SCALE, SWAP_EVENT_TOPIC, Vaults, WSQUEETH_DECIMALS } from '../../constants' import { ETH_DAI_POOL, SQUEETH_UNI_...
<gh_stars>1-10 /** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ const pkg = require('../package.json'); const intercept = require("intercept-stdout"); export function uuidValidate(value: string): boolean { return /^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]...
/******************************************************************************** * Copyright (C) 2017 TypeFox 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. * * Th...
<filename>src/start.ts import * as debug from "debug"; const log = debug("mahjong:*"); class Mahjong { public Start() { const users = [ [{ mahjong: [], peng: [], gang: [], banker: true }], [{ mahjong: [], peng: [], gang: [], banker: true }], [{ mahjong: [], peng: [], gang: [], banker: true }], ...
<reponame>naveedkhan8067/https-github.com-imodeljs-imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 <NAME>, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------...
<gh_stars>0 import { isObject, isPromise, isBoolean, RefTyped, wrap, unwrap, NO_OP, } from "../utils"; import { ref, Ref, watch, computed, reactive, UnwrapRef } from "../api"; type ValidatorFunc<T, TContext = any> = ( model: T, ctx: TContext ) => boolean | Promise<boolean>; type ValidatorObject<TVal...
<reponame>Shiba-Kar/DefinitelyTyped<filename>types/ember__object/test/octane.ts import { action, computed, default as EmberObject } from '@ember/object'; import { alias, and, bool, collect, deprecatingAlias, empty, equal, filter, filterBy, gt, gte, intersect, lt, ...
<filename>projects/ngx-lib/images-filmstrip/images-filmstrip.component.ts import { Component, ViewChild, OnInit, OnDestroy, AfterViewInit, ElementRef, Input, TemplateRef, Renderer2, ChangeDetectorRef, Inject, Optional, ViewContainerRef, OnChanges, } from '@angular...
import { Button, ButtonGroup, Callout, Classes, Dialog, Icon, InputGroup, Menu, MenuItem, Spinner, Tag, } from "@blueprintjs/core"; import { Popover2, Tooltip2 } from "@blueprintjs/popover2"; import axios from "axios"; import React from "react"; import { useLocation } from "wouter"; import { Chara...
<gh_stars>10-100 import { nodes } from "@design-sdk/core"; import { TextBuilder, WidgetBuilder } from "../widget-builders"; import * as flutter from "@flutter-builder/flutter"; import { makeSafelyAsStackList } from "../utils/make-as-safe-list"; import { makeFlutterDivider } from "../make/make-flutter-divider"; import {...
<gh_stars>0 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { FuncQuestion, Inputs, MultiSelectQuestion, ok, OptionItem, TextInputQuestion, Void, } from "@microsoft/teamsfx-api"; import { isBotNotificationEnabled } from "../../../common/featureFlags"; import { getLocalize...
export function getElementsByTextInclusion(str: string, tag: string = 'span') { return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.innerHTML.includes(str)); } export function addLinkButton(): void { // console.log("Adding button!"); const candidates = getElementsByTextInclusio...
<reponame>hkshqazi/blog import { loadScript, loadStyle } from './utils'; /** * Init PhotoSwipe * From: https://photoswipe.com/documentation/getting-started.html * @param gallerySelector */ var initPhotoSwipeFromDOM = function (gallerySelector) { // parse slide data (url, title, size ...) from DOM elements ...
<reponame>Ragzouken/blitsy-draw import { createContext2D, Sprite, decodeAsciiTexture, imageToSprite, drawSprite, colorToHex, Vector2, makeVector2, decodeTexture, hexToColor } from 'blitsy'; import { drawLine, fillColor, recolor } from './draw'; import { brushData } from './icons'; import { randomColor, downloadCanvasAs...
// First Party import React, { useEffect, useState } from "react"; import { useParams } from "react-router"; import { useHistory } from "react-router-dom"; // Third Party import { GridRow, GridCol, Table, BackLink, Button, H3, H4, Caption, ButtonArrow } from "govuk-react"; import DOMPurify from "dompurify"; // Projec...
import { Message, TextChannel, Member } from 'eris'; import { inject, injectable } from 'inversify'; import RatelimitBucket from '../bucket/RatelimitBucket'; import PermissionUtils from '../../util/PermissionUtils'; import { Translation } from '../Language'; import CommandContext from '../Context'; import NinoCommand f...
import {NextApiRequest} from 'next' import {Server} from 'socket.io' import {NextApiResponseSocketIO} from '../../objects/NextApiResponseSocketIO' import * as http from 'http' import {ironSession} from 'iron-session/express' import {sessionOptions} from '../../lib/session' import Permission from '../../objects/Permissi...
<filename>ao3_tracker/src/reader/reader.ts /* Copyright 2017 <NAME> 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...
/* * Copyright by LunaSec (owned by Refinery Labs, Inc) * * Licensed under the Business Source License v1.1 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * https://github.com/lunasec-io/lunasec/blob/master/licenses/BSL-LunaTrace.tx...
// @webtoon/psd // Copyright 2021-present <NAME> // MIT License import {PanicOutOfBoundArray} from "../../src/utils"; import {Cursor, ReadType} from "../../src/utils/bytes"; const ALL_ZEROS = [0, 0, 0, 0, 0, 0, 0, 0]; const ALL_ONES = [255, 255, 255, 255, 255, 255, 255, 255]; describe("Cursor", () => { it("should ...
import type { CSSProperties, VNode } from 'vue' import { computed, defineComponent, getCurrentInstance, nextTick, ref, createCommentVNode, h, reactive, watch } from 'vue' import type { VcCamera, VcComponentInternalInstance, VcZoomEvt, VcBtnTooltipProps, VcReadyObject, VcComponentPublicInstance } from '@vue-...
import * as freedomMocker from '../lib/freedom/mocks/mock-freedom-in-module-env'; import * as freedom_mocks from '../mocks/freedom-mocks'; declare var freedom: freedom.FreedomInModuleEnv; freedom = freedomMocker.makeMockFreedomInModuleEnv({ 'core.online': () => { return new freedom_mocks.MockFreedomOnline(); }, 'c...
<filename>packages/puppeteer-extra-plugin-recaptcha/src/content.ts import * as types from './types' export const ContentScriptDefaultOpts: types.ContentScriptOpts = { visualFeedback: true, } export const ContentScriptDefaultData: types.ContentScriptData = { solutions: [], } /** * Content script for Recaptcha ha...
import Shape from './Shape'; import { CommonAttr } from './Element'; import { equalWithTolerance, PI2, getPointOnPolar } from '../utils/math'; import { BBox, sectorBBox } from '../utils/bbox'; import { isPointInSector, isPointInSectorStroke } from '../geometry/contain/sector'; interface Point { x: number; y: numbe...