text
stringlengths
9.82k
47.8k
<reponame>setvik/codsen<filename>packages/eslint-plugin-test-num/src/rules/correct-test-num.ts // import stringify from "json-stringify-safe"; import op from "object-path"; import { left } from "string-left-right"; import prep from "../util/prep"; import getNewValue from "../util/getNewValue"; export interface Obj { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>fiersk17/client import logger from '../logger' import * as I from 'immutable' import * as FsGen from '../actions/fs-gen' import * as Constants from '../constants/fs' import * as ChatConstants from '../constants/chat2' import * as Types from '../constants/types/fs' const initialState = Constants.makeState() ...
<reponame>EricTousignant/screensaver /** * Custom element for a slide in a screensaver * * @module els/screensaver_slide */ /** */ /* * Copyright (c) 2015-2019, <NAME> All rights reserved. * Licensed under the BSD-3-Clause * https://opensource.org/licenses/BSD-3-Clause * https://github.com/opus1269/screen...
<gh_stars>0 /* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list...
import * as React from "react"; import { IExternalBaseLayer, GenericEvent } from "../api/common"; import { RuntimeMap, MapLayer, MapGroup, RuleInfo } from "../api/contracts/runtime-map"; import { LegendContext, ILegendContext } from "./context"; import { BaseLayerSwitcher } from "./base-layer-switcher"; import { isLaye...
/** * Copyright 2019 Splunk, 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 applicable law or agreed to in...
<reponame>naveedkhan8067/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *----------------------------...
export enum UnitOfMeasureModes { Standard = 0, Metric = 1, MixedStandard = 2, MixedMetric = 3 } export enum AngleUnit { Undefined = 0, Degree, Gradian, Radian, } export enum DensityUnit { Undefined = 0, KilogramPerCubicCentimeter, KilogramPerCubicMeter, KilogramPerCubic...
import * as numbers from "../magic_numbers"; import {range_360} from "../utils"; import {ability_target_types} from "../Ability"; import {fighter_types, permanent_status, Player} from "../Player"; import {GoldenSun} from "../GoldenSun"; import {PlayerInfo} from "./Battle"; import * as _ from "lodash"; import {battle_ac...
<reponame>psy-repos-typescript/semi-design<gh_stars>0 export { default as IconAbsoluteStroked } from './IconAbsoluteStroked'; export { default as IconActivity } from './IconActivity'; export { default as IconAlarm } from './IconAlarm'; export { default as IconAlertCircle } from './IconAlertCircle'; export { default as ...
import React, { Dispatch } from 'react'; import firebase from 'firebase'; import 'firebase/auth'; import { inject, observer } from 'mobx-react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import { change, ...
<filename>src/Parser/BuildAST/Index.ts /* * Copyright (c) 2020. yaser. All rights reserved * Description: 构建语法树 */ import {Stack} from "../DataStruct/Stack"; import { ArgumentList, ArrayExp, ArraySub, AssignStmt, BinaryExp, BlockStmt, CallExp, Exp, Expression, FunDeclaration, ...
'use strict' import * as sizeOf from 'image-size'; import * as path from 'path'; import * as fs from 'fs'; import { CancellationToken, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemProvider, CompletionList, ExtensionContext, languages, MarkdownString, Position, ProviderResult, Range, SnippetStri...
import * as classNames from 'classnames'; import * as dagre from 'dagre'; import * as React from 'react'; import {NODE_PHASE, NodePhase, NodeStatus} from '../../../../models'; import {Loading} from '../../../shared/components/loading'; import {Utils} from '../../../shared/utils'; import {CoffmanGrahamSorter} from './g...
import * as React from "react"; import Select from "react-select/base"; import { components } from "react-select"; import classNames from "classnames"; import isNil from "lodash/isNil"; import isEmpty from "lodash/isEmpty"; import map from "lodash/map"; import find from "lodash/find"; import some from "lodash/some"; im...
<gh_stars>0 /** * Human main module */ import { log, now, mergeDeep } from './helpers'; import { Config, defaults } from './config'; import { Result, Gesture } from './result'; import * as sysinfo from './sysinfo'; import * as tf from '../dist/tfjs.esm.js'; import * as backend from './tfjs/backend'; import * as mode...
import * as Dat from "dat.gui"; import Heap from 'heap-js'; let config:any = {}; window.onload = function() { var gui = new Dat.GUI(); const readableName = (n: string) => n.replace(/([A-Z])/g, ' $1').toLowerCase() function addConfig(name: string, initial: any, min?: any, max?: number) { config[name] = initia...
<filename>src/Config.ts<gh_stars>0 import { RequirementType as Req } from "Systems/Requirement/RequirementTracker"; export function InitConfiguration() { let models = Object.keys(Models); for (let m of models) { Preload(m); } } export const Orders = { AwakenEssence: "elementalfury", } ex...
<filename>device/core/src/internal_client.ts // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. 'use strict'; import { Stream } from 'stream'; import { EventEmitter } from 'events'; import * as fs from 'fs'; import * ...
/* * Copyright 2016 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/licenses/LICENSE-2.0 * * Unless required by applicabl...
/** * This module defines table parser classes,which parse plaintext-graphic tables * and produce a well-formed data structure suitable for building a CALS table. * * :Classes: * - `GridTableParser`: Parse fully-formed tables represented with a grid. * - `SimpleTableParser`: Parse simple tables, delimited by top...
<reponame>erwinel/usasoc_cst_src<filename>Scoped/TaskHelper.ts /// <reference path="types/index.d.ts" /> interface ITaskHelper extends ICustomClassBase<ITaskHelper, "TaskHelper"> { /** * Gets the caller or requestor. */ getCaller(): sys_userFields; /** * Indicates whether the caller/requesto...
<reponame>dineshondev/federation import { baseType, CompositeType, Directive, FieldDefinition, InputFieldDefinition, InputObjectType, InterfaceType, isEnumType, isInterfaceType, isObjectType, isUnionType, ListType, NamedType, newNamedType, NonNullType, NullableType, ObjectType, Schem...
<gh_stars>1-10 interface IBigNumber { Sign: number; Exponent: number; Depth: number; toString(decimals?: number): string; toNumber(): number; normalize(): void; parse(str: string): boolean; export(): object; update(sign: number, exponent: number, depth: number): this; from(str: ...
<filename>controls/diagrams/src/diagram/blazor-tooltip/blazor-Tooltip.ts<gh_stars>100-1000 /* eslint-disable valid-jsdoc */ /* eslint-disable jsdoc/require-param */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/ban-types */ import { Property, ChildProperty, Event, BaseEvent...
import moment, { Moment } from "moment-jalaali"; // library imports import { IElemPosition, IOptions, ISelectedDates, dateValue, } from "../models/general"; import Day from "./Day"; import { getValidatedMoment } from "../utils/getValidatedMoment"; import { defaultOptionsValue } from "../configs/defaultOptionsV...
<reponame>kcmvillarino/colabo import { Injectable, Inject } from '@angular/core'; import {GlobalEmittersArrayService} from '@colabo-puzzles/f-core/code/puzzles/globalEmitterServicesArray'; declare var d3:any; declare var knalledge:any; declare var hljs:any; declare var Reveal:any; declare var RevealMarkdown:any; exp...
import fs from "fs"; import { Map } from "immutable"; import * as os from "os"; import * as path from "path"; import PropTypes, { any } from "prop-types"; import React from "react"; import ReactDOM from "react-dom"; import { connect } from "react-redux"; import { addCertificateRequestCA, loadAllCertificates, removeAllC...
/** * Copyright (c) 2022 大漠穷秋. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { glMatrix, vec2 } from 'gl-matrix'; import isNil from 'lodash/isNil'; import merge from 'lodash/merge'; import round from 'lodash/round'; import...
const YAML = require("json-to-pretty-yaml"); const fs = require("fs"); const path = require('path') const util = require("util"); const extract = require("extract-comments"); const HTTPStatusCode = require("http-status-code"); const _ = require("lodash/core"); import { camelCase, snakeCase } from "change-case"; interf...
<reponame>shivs25/angular5-canvas-drawer<filename>src/app/drawer/services/drawer-object-helper.service.ts import { Injectable } from '@angular/core'; import { DrEllipse } from '../models/dr-ellipse'; import { DrImage } from '../models/dr-image'; import { DrObject } from '../models/dr-object'; import { DrPoint } from '....
<filename>inception/inception-brat-editor/src/main/ts/brat/util/Util.ts<gh_stars>0 /* * ## INCEpTION ## * Licensed to the Technische Universität Darmstadt under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership...
<reponame>alexander-mai/nstudio-nativescript-plugins declare class ICMActiveAdminsAvatarView extends UIView { static alloc(): ICMActiveAdminsAvatarView; // inherited from NSObject static appearance(): ICMActiveAdminsAvatarView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitColl...
import * as jspb from 'google-protobuf' import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb'; export class Vis extends jspb.Message { getVariablesList(): Array<Vis.Variable>; setVariablesList(v...
import React, { useState, useMemo, useEffect } from "react"; import { Link } from "react-router-dom"; import { OrgComponent } from "@ui_types"; import { Rbac, Model, Client, Auth, Api } from "@core/types"; import * as g from "@core/lib/graph"; import * as R from "ramda"; import { inviteRoute } from "./helpers"; import ...
import _ from 'lodash'; import moment from 'moment'; import pluralize from 'pluralize'; import i18nDict from './external/i18n'; import { Node } from './const'; import { toI18nKey } from './utils'; function ifExist(flag: string, str: string | ((s: string) => string)): string { if (!flag) { return ''; } if (t...
//============================================================================= // rpg_managers.js v1.5.0 //============================================================================= /** @global RPGMaker Plugin's Object */ declare var $plugins: Array<MV.PluginSettings>; /** @global RPGMakerMV Actor data. */ de...
<filename>js/src/client.ts import { deserialize, serialize } from "bson"; import { unzlibSync, zlibSync } from "fflate"; import { type } from "os"; import { PrivateKey, PublicKey, SharedKey, Token } from "./cryptography"; import { bytesToInt, intToBytes, b64encode, b64decode } from "./utils"; const {version} = require...
<filename>lib/Decoders.d.ts export type IEthernetInfo = { dstmac: string; srcmac: string; type?: number; length?: number; vlan?: { priority: number; CFI: boolean; VID: number; } } export declare const Ethernet: (b: Buffer, offset?: number) => { info: IEthernetInfo; offset: number; } export type...
<reponame>pfgithub/votebot import * as crypto from "crypto"; import { APIApplicationCommandOptionBase } from "discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base"; import * as d from "discord-api-types/v9"; import { assertNever } from "../.."; import { ginteractionhandler } from "../NewRout...
import * as React from 'react' import { RuntimeFunction, RuntimeFunctions } from '../../../lib/collections/RuntimeFunctions' import { EditAttribute, EditAttributeBase } from '../../lib/EditAttribute' import { Translated, translateWithTracker } from '../../lib/ReactMeteorData/react-meteor-data' import { Spinner } from '...
<gh_stars>10-100 import URI from 'urijs'; import * as BLTypes from '@/types/blacklabtypes'; import * as AppTypes from '@/types/apptypes'; import { FullFilterState } from '@/store/search/form/filters'; import { valueFunctions } from '@/components/filters/filterValueFunctions'; export function escapeRegex(original: str...
<filename>src/module.ts /* -*- Mode: typescript; indent-tabs-mode: nil; typescript-indent-level: 2 -*- */ ///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" /> import { MetricsPanelCtrl } from 'app/plugins/sdk'; import _ from 'lodash'; import $ from 'jquery'; import { SeriesWrapper, ...
import { closest, off, on, style } from 'dom-native'; import { clamp, findBelow, transform, Transform } from './utils.js'; ///////// // events (inspired from https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) // Uppercase to avoid any name conflict with real event names. // // - DRAGSTART - the ...
/* * Copyright 2019 gRPC authors. * * 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 t...
<gh_stars>1-10 import { Observable, Subject, Subscription, of, BehaviorSubject } from "rxjs"; import { map, flatMap, catchError, withLatestFrom, tap } from "rxjs/operators"; // import { createStore, StoreEnhancer } from "redux"; import { WsMessage, makeChatMessage, CHAT_MESSAGE_ADD, WsComma...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import {moveIndex, sortWithNullables} from '@frontend/src/augments/array'; import {copyWithJson, isJsonEqual, mapKeys, ValueOf} from '@frontend/src/augments/object'; import {isPromise} from '@frontend/src/augments/promise'; import { getCreatorDashboardData, saveCreatorDashboardData, } from '@frontend/src/canist...
import * as React from 'react'; import { BaseComponent, KeyCodes, css, getId, getRTL, getRTLSafeKeyCode, format, classNamesFunction, find, findIndex } from '@uifabric/utilities'; import { FocusZone } from 'office-ui-fabric-react/lib/FocusZone'; import { addDays, addWeeks, compareDates, compa...
/* * Copyright 2016 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ import { AbstractPureComponent, Boundary, DISPLAYNAME_PREFIX, Divider, IProps, Utils } from "@blueprintjs/core"; import classNames from "classnames"; import * as R...
<reponame>robertmassaioli/DefinitelyTyped // Type definitions for valerie // Project: https://github.com/davewatts/valerie // Definitions by: <NAME> <https://github.com/conficient> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="knockout" /> /** * * Extensions to KO function...
<filename>src/objects/RaycastVehicle.ts var Body = require('./Body'); var Vec3 = require('../math/Vec3'); var Quaternion = require('../math/Quaternion'); var RaycastResult = require('../collision/RaycastResult'); var Ray = require('../collision/Ray'); var WheelInfo = require('../objects/WheelInfo'); module.exports = R...
<gh_stars>0 import { enterpriseCompatibility } from "@octokit/plugin-enterprise-compatibility"; import path from "path"; import { retry } from "@octokit/plugin-retry"; import { throttling } from "@octokit/plugin-throttling"; import { Octokit, RestEndpointMethodTypes } from "@octokit/rest"; import { gitlogPromise as git...
<filename>packages/box2d/src/dynamics/joints/b2RevoluteJoint.ts /* * Copyright (c) 2006-2011 <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. * Permiss...
<filename>subgraphs/exchange/src/exchange/mappings/pair.ts import { ADDRESS_ZERO, BIG_DECIMAL_ZERO, MASTER_CHEF_ADDRESS, MINIMUM_USD_THRESHOLD_NEW_PAIRS, WHITELIST } from 'const' import { Address, BigDecimal, BigInt, log, store } from '@graphprotocol/graph-ts' import { Burn, Mint, Pair, Swap, Token, Transaction } from ...
/* * Copyright 2021 Collate * 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,...
/* * Copyright 2017-19 IBM Corporation * * 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 { ModelRenderer, buildTransform } from "./render"; import { ObjectSpawn, ActorDef, findGroundHeight, SpawnType, InteractionType, WaitParams, EndCondition, StateEdge, findGroundPlane, computePlaneHeight, fakeAux, CollisionTree } from "./room"; import { RenderData } from "../BanjoKazooie/render"; import { vec3, ma...
<reponame>roypearce/rhdp import { useEffect, useRef, useState } from 'react'; import ChainDate, { ChainDateType, TimePeriod } from './chain-date'; import { dotwSearchPaths } from './enums'; import { UseDatepickerProps, UseDatepicker, CalendarDay, InternalRef, SelectedDates, SearchDirection } from './types'; import { ...
/* eslint-disable max-len */ import {TypedIdentifier, IdentifierMeta} from "../types/_typed_identifier"; import {VoidType, CharacterType, StructureType, IStructureComponent, IntegerType, NumericType, DateType, TimeType, StringType, FloatType, XStringType, TableType, AnyType, UTCLongType} from "../types/basic"; import {...
import Vue,{ VNode, VNodeComponentOptions, VNodeData, CreateElement } from "vue"; import { cast } from "./Grid"; import { IDataColumn, DataColumn, IKeyValuePair } from "./DataColumn"; import { getFormatter, getFilterComponent, getSettings } from "../Config"; import buildSource, * as ds from "../DataSource"; import { ch...
import { expect, test } from 'vitest'; import type { Page, PageItemsProps } from './pageItems'; import { getPageItems } from './pageItems'; test('3 pages with 2 page items', () => { withDefaults({ totalPages: 3, maxPageItems: 2 }) .expectPages({ page: 1 }, [1, 2]) .expectPages({ page: 2 }, [2, 3]) .expec...
<gh_stars>10-100 import { FetchResponse, FetchOptions } from './platform/fetch'; import { URL } from './platform/URL'; import { features } from './platform/features'; import { getCallerKey, nodeRequire } from './platform/node'; import { Zalgo, assign, keys, getDir, appendSlash, emptyPromise } from './platform/util'; im...
<reponame>mewbak/co import { Pos, NoPos, SrcFile, Position } from "../../pos" import { token } from "../../token" import { ByteStr } from "../../bytestr" import { Int64 } from "../../int64" import { Num } from "../../num" import { numconv } from "../../numconv" import { StrWriter } from "../../util" import { Scope, En...
<reponame>matthiasamberg/pxt-ledmatrix enum LEDColorMode { //% block="RGB (GRB format)" GRB = 1, //% block="RGB+W (GRBW format) " GRBW = 2, //% block="RGB (RGB format) " RGB = 3 } enum FirstLEDPosition { //% block="top left" topLeft = 1, //% block="top right" topRight = 2, ...
import { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { Router, ActivatedRoute } from '@angular/router'; import { NgForm, FormControlName } from '@angular/forms'; import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; impo...
import React, { useEffect, useMemo, useState, useCallback, useRef, useImperativeHandle, KeyboardEventHandler, FocusEventHandler, FocusEvent, FormEvent, KeyboardEvent, ReactNode, ReactText } from 'react'; import DefaultThemeObj from './theme'; import { FixedSizeList } from 'react-window'; import styled, { css, DefaultTh...
<filename>Infobase/Client/renderChart.ts import * as d3 from "d3"; import { numberFormat } from "./translator"; import { ChartData, Point, LanguageCode, ChartType } from "./types"; import { BaseType } from "d3"; const marginY = 10; const marginX = 60; const width = 700; const height = 400; const moveToFront = functio...
<reponame>jmccloud/bit import path from 'path'; import fs from 'fs-extra'; import { slice } from 'lodash'; import { Harmony } from '@teambit/harmony'; import BluebirdPromise from 'bluebird'; import { merge } from 'lodash'; import { difference } from 'ramda'; import { compact } from 'ramda-adjunct'; import { Consumer, l...
<gh_stars>10-100 import { ASTNode as GraphQLASTNode, GraphQLEnumType, GraphQLError, GraphQLFormattedError, GraphQLInputObjectType, GraphQLLeafType, GraphQLObjectType, GraphQLScalarType, isLeafType, Kind, locatedError, } from "graphql"; import { DocumentNode, FieldNode, FragmentDefinitionNod...
// Copyright 2020-2021 the .NET Foundation // Licensed under the MIT License // // Based types used in the WWT WebGL engine. // // Try to keep everything alphabetized. /* eslint-disable @typescript-eslint/camelcase */ export enum AltTypes { depth = 0, altitude = 1, distance = 2, seaLevel = 3, terrain = 4 } ...
// modules build-in import fs from 'fs'; import path from 'path'; // package json import packageJson from './package.json'; // program name const api_host = 'https://prod-api-funimationnow.dadcdigital.com/api'; // modules extra import * as shlp from 'sei-helper'; import m3u8 from 'm3u8-parsed'; import hlsDownload f...
/** * Copyright <NAME>. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ import * as path from 'path'; import * as test from 'tape'; import * as fs from 'fs-extra'; import * as util from 'util'; import Client = require('fabric-client'); import FabricCAServices = require('fabric-ca-client'); const ...
<gh_stars>0 import axios, { AxiosRequestConfig, Method } from 'axios' import { Redis } from 'ioredis' import jsonrpc, { ErrorObject, IParsedObject } from 'jsonrpc-lite' import { JSONObject } from '@loopback/context' import { PocketAAT, Session, RelayResponse, Pocket, Configuration, HTTPMethod, Node } from '@pokt-networ...
<reponame>lulzzz/tellma // tslint:disable:member-ordering import { Component, Input, OnInit } from '@angular/core'; import { catchError, finalize, tap } from 'rxjs/operators'; import { ApiService } from '~/app/data/api.service'; import { Agent, AgentForSave } from '~/app/data/entities/agent'; import { addToWorkspace,...
import {Viewer, ViewerProps} from '@rcsb/rcsb-molstar/build/src/viewer'; import {PresetProps} from '@rcsb/rcsb-molstar/build/src/viewer/helpers/preset'; import { ChainInfo, OperatorInfo, SaguaroChain, SaguaroPluginInterface, SaguaroPluginModelMapType, SaguaroPosition, SaguaroRange, SaguaroSet } from "../Sag...
import * as grok from 'datagrok-api/grok'; import * as ui from 'datagrok-api/ui'; import * as DG from 'datagrok-api/dg'; import wu from 'wu'; import * as rxjs from 'rxjs'; import {Vector} from '@datagrok-libraries/utils/src/type-declarations'; import {vectorLength, vectorDotProduct} from '@datagrok-libraries/utils/sr...
<reponame>rktuxyn/swserver /* * Copyright (c) 2018, SOW ( https://safeonline.world, https://www.facebook.com/safeonlineworld). (https://github.com/safeonlineworld/cwserver) All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ import * as _fs from '...
<reponame>oliverwalsh7/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------...
import { Commitment, Connection, FeeCalculator, Blockhash, Transaction, TransactionSignature,SignatureStatus, SimulatedTransactionResponse, RpcResponseAndContext } from '@solana/web3.js'; import { TransactionInstruction, Keypair, PublicKey, AccountInfo } from '@solana/web3.js'; import { loadCandyProgram, loadWalletKey...
/** * @file KDSpeechSynth.ts * @version 1.1.0 * @author <NAME> * @copyright <NAME> 2020 * @license MIT * @fileoverview `export const KDSpeechSynth` * Class to simplify the use of the web speech synthesis engine. */ import { KDLoop } from "./deps/KDLoop"; import { KDHistory } from "./deps/KDHistory"; import { c...
import { Version } from '@microsoft/sp-core-library'; import { BaseClientSideWebPart, IPropertyPaneConfiguration, IPropertyPaneDropdownOption, PropertyPaneTextField, PropertyPaneDropdown } from '@microsoft/sp-webpart-base'; import { escape } from '@microsoft/sp-lodash-subset'; import { SPHttpClient, SPHtt...
<reponame>DEUTSCHKLUB/go-le-m import bluebird, { TimeoutError } from "bluebird"; import dayjs from "dayjs"; import utc from "dayjs/plugin/utc"; import duration from "dayjs/plugin/duration"; import { MarketDecoration } from "ya-ts-client/dist/ya-payment/src/models"; import { WorkContext, Work, CommandContainer } from "...
import {Vec3} from "../math/Vec3"; import {Vec2} from "../math/Vec2"; import {RGB} from "../RGB"; import {AssetLoader} from "../AssetLoader"; var Tri3_Temp = { a: 0, i: 0, t: 0, e: 0, u: 0, v: 0, f: 0, g: 0, s: 0, c: 0, h: 0, M: 0 }; function rayTriangle(origin, direction, tri) { // rayTriangle(from:Vec3, directi...
import React, { useEffect, useState } from "react"; import { RouteComponentProps } from "react-router-dom"; import firebase from "firebase/app"; import { useLedger, useStreamQueries } from "@daml/react"; import { ClientRole, ClientProject, ClientInvitation, AcceptRequest, ParticipantInvitation, ProposeSubm...
import { compileSFCTemplate, EmbeddedFileMappingData, TextRange } from '@volar/vue-code-gen'; import { parseRefSugarCallRanges, parseRefSugarDeclarationRanges } from '@volar/vue-code-gen/out/parsers/refSugarRanges'; import { parseScriptRanges } from '@volar/vue-code-gen/out/parsers/scriptRanges'; import { parseScriptSe...
<gh_stars>0 import { Inject, Injectable, InjectionToken, OnDestroy } from '@angular/core'; import { flatten, has, includes, isEmpty, isEqual as deepEqual, round } from 'lodash'; import { NotificationType } from 'ngx-base'; import { combineLatest, empty, from, Observable, of, ReplaySubjec...
import * as React from 'react'; // FIXME upgrading redux types is causing many errors at this time // eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { sortable } from '@patternfly/react-table'; import { useTr...
<reponame>Samev/inhouseBot 'use strict'; // Author: <NAME> import * as f from '../tools/f'; import * as Sequelize from 'sequelize'; import { Player } from '../game/player'; import { IBalanceInfo } from '../game/game'; /* This file handles database communication using sequelize The database is a mysql database, runn...
<reponame>myan9/kui /* * Copyright 2021 The Kubernetes Authors * * 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 a...
<gh_stars>1-10 import * as THREE from 'three'; import * as mathf from '../mathf/mathf'; import * as is from '../is/is'; import {Defer} from '../func/defer'; export interface threefGltfLoader { gltfPath: string; animationMarkerPath: string; // eslint-disable-next-line @typescript-eslint/no-explicit-any gltfLoad...
import {useEffect, useState} from "react"; import styled from "styled-components"; import confetti from "canvas-confetti"; import * as anchor from "@project-serum/anchor"; import {LAMPORTS_PER_SOL, PublicKey} from "@solana/web3.js"; import {useAnchorWallet} from "@solana/wallet-adapter-react"; import {WalletMultiButton...
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gridgain.com/products/software/community-edition...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>crownstone/crownstone-app<filename>app/ts/native/advertisements/StoneEntity.ts<gh_stars>1-10 import { LOG_LEVEL } from "../../logging/LogLevels"; import { LOGd, LOGe, LOGi, LOGw } from "../../logging/Log"; import { FALLBACKS_ENABLED } from "../../ExternalConfig"; import { Util } from "../....
<reponame>JelleZijlstra/pyright /* * dataClasses.ts * Copyright (c) Microsoft Corporation. * Licensed under the MIT license. * Author: <NAME> * * Provides special-case logic for the construction of dataclass * classes and dataclass transform. */ import { assert } from '../common/debug'; import { DiagnosticRule...
/** * Copyright 2015 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/licenses/LICENSE-2.0 * * Unless required by appli...
import * as React from 'react'; import { clamp } from '@radix-ui/number'; import { composeEventHandlers } from '@radix-ui/primitive'; import { useComposedRefs } from '@radix-ui/react-compose-refs'; import { createContext } from '@radix-ui/react-context'; import { useCallbackRef } from '@radix-ui/react-use-callback-ref'...
// <copyright file="learning-module.tsx" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // </copyright> import * as React from "react"; import { WithTranslation, withTranslation } from "react-i18next"; import * as microsoftTeams from "@microsoft/teams-js"; ...