text
stringlengths
9.82k
47.8k
<reponame>oatmealine/boteline<filename>src/commands/coin.ts import * as CommandSystem from 'cumsystem'; import * as fs from 'fs'; import * as Discord from 'discord.js'; import * as discordutil from '../lib/discord'; import * as util from '../lib/util'; const coinValue = JSON.parse(util.readIfExists('./data/coinvalue.j...
import * as _ from 'lodash'; import * as React from 'react'; import { ZeroEx, ExchangeEvents, SubscriptionOpts, IndexedFilterValues, ContractEvent, ContractEventEmitter, LogFillContractEventArgs, Token as ZeroExToken, LogWithDecodedArgs, TransactionReceiptWithDecodedLogs, } from ...
<gh_stars>0 /** * Created by yotam on 25/6/2015. */ //import {bind} from 'angular2/di'; //var _ = require('lodash'); import _ = require('lodash'); function toUnicode(theString) { var unicodeString = ''; for (var i=0; i < theString.length; i++) { var theUnicode = theString.charCodeAt(i); unicodeString += ...
<gh_stars>1-10 // https://github.com/tspoke/typescript-open-location-code // details at: https://github.com/google/open-location-code/tree/main/js // https://github.com/google/open-location-code/tree/main/js#public-methods /* OpenLocationCode.encode(LATITUDE, LONGITUDE); OpenLocationCode.encode(LATITUDE, LONGITUDE, PR...
import React from 'react'; import { Link } from "react-router-dom"; import { makeStyles, useTheme } from '@material-ui/core/styles'; import { Typography, Container, Paper, CircularProgress } from "@material-ui/core"; import axios from 'axios'; // Import jquery datatables.net import 'datatables.net-dt/css/jquery.dataTa...
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import * as ts from 'typescript'; import * as tsdoc from '@microsoft/tsdoc'; import { PackageJsonLookup, Sort, InternalError } from '@rushstack/node-core-library...
<filename>WebCola/src/gridrouter.ts<gh_stars>1-10 import {Point} from './geom' import {Rectangle} from './rectangle' import {Constraint, Solver, Variable} from './vpsc' import {Calculator} from './shortestpaths' export interface NodeAccessor<Node>{ getChildren(v:Node) : number[]; getBounds(v:Node) :...
import React, {useState} from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import T...
<filename>Samples/TypeScript/Demo/src/lappmodel.ts /** * Copyright(c) Live2D Inc. All rights reserved. * * Use of this source code is governed by the Live2D Open Software license * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. */ import { Live2DCubismFramework as...
/* * Copyright 2017-2019 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 agree...
/* * Copyright 2019 Kopano * * Use of this source code is governed by a MIT license * that can be found in the LICENSE.txt file. * */ 'use strict'; import * as SimplePeer from 'simple-peer'; import { WebRTCAnnounceStreamsEvent, WebRTCPeerEvent, WebRTCStreamTrackEvent } from './events'; import { IRTMTypeEnvelop...
<gh_stars>0 import type { AgentMessage } from '../../agent/AgentMessage' import type { AgentMessageReceivedEvent } from '../../agent/Events' import type { Logger } from '../../logger' import type { ConnectionRecord, Routing } from '../../modules/connections' import type { PlaintextMessage } from '../../types' import ty...
import { all, alt, optWhitespace, Parser, regexp, seq, string, succeed } from 'parsimmon'; import { AsciiCommand } from '../cmd_line/commands/ascii'; import { BangCommand } from '../cmd_line/commands/bang'; import { BufferDeleteCommand } from '../cmd_line/commands/bufferDelete'; import { CloseCommand } from '../cmd_lin...
import * as TMInfra from '../../tm_infra/node_lib/TMInfra' import * as _ from 'lodash'; import * as dateformat from 'dateformat' import * as fs from 'fs' import * as Stream from 'stream' import { Console } from 'console'; const printf = require('printf'); //this module can only be loaded this way in TypeScript export...
<filename>apps/rush-lib/src/logic/installManager/RushInstallManager.ts<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import * as glob from 'glob'; import colors from 'colors/safe'; import * as ...
/* * 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 the License at * * http://www.apache.org/licenses/LI...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>bolatovumar/RTL import { Action } from '@ngrx/store'; import { ErrorPayload } from '../shared/models/errorPayload'; import { DialogConfig } from '../shared/models/alertData'; import { RTLConfiguration, Settings, ConfigSettingsNode, GetInfoRoot, SelNodeChild } from '../shared/models/RTLconfig'; import { GetIn...
import { camelCase } from "lodash-es"; import { i18n } from "@/i18n"; /** * 通用属性 */ export interface CommonProperty { id: string; nopercent?: boolean; dmg?: boolean; noplus?: boolean; negative?: boolean; format?: (v: number) => string; } /** Property Calculate System @summary OPERATORS: base: the base ...
import { emitDeprecatedOptionWarning } from '../utils'; import Denque = require('denque'); import { EventEmitter } from 'events'; import { ReadPreference } from '../read_preference'; import { TopologyType, ServerType } from './common'; import { ServerDescription } from './server_description'; import { TopologyDescripti...
<reponame>theunisj/salesforce-alm /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import * as fs from 'fs-extra'; import * as path from 'pa...
import { Trans } from "@lingui/macro"; import { i18nMark, withI18n } from "@lingui/react"; import classNames from "classnames"; import isEqual from "lodash.isequal"; import { MountService } from "foundation-ui"; import { Hooks } from "PluginSDK"; import PropTypes from "prop-types"; import * as React from "react"; impo...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import { IconDefinition, IconLookup, IconName, IconPrefix, IconPack } from '@fortawesome/fontawesome-common-types'; export { IconDefinition, IconLookup, IconName, IconPrefix, IconPack } from '@fortawesome/fontawesome-common-types'; declare const pack: IconPack; export default pack; export const faAddressBook: IconDefin...
import { CharacterCodes, SyntaxKind, Token, DiagnosticMessage, DiagnosticCategory } from './types'; export interface ErrorCallback { (message: DiagnosticMessage, pos: number, length: number): void; } const textToTokenTable: ReadonlyMap<string, SyntaxKind> = new Map([ ["include", SyntaxKind.IncludeKeyword], ...
<gh_stars>10-100 import { Vue, Component, Prop, Watch } from 'vue-property-decorator' import { IList, IListProps, IPage, IPageProps, ScrollToMode } from './List.types' import BaseComponent from '../BaseComponent' import { IRectangle, findScrollableParent, getWindow, findIndex, getParent } from '@uifabric-vue/utilities'...
<gh_stars>0 /** * Utility constants and functions */ export const MAX_INT = 2147483647 export const MIN_INT = -2147483648 export const MAX_LONG = Number.MAX_SAFE_INTEGER export const MIN_LONG = Number.MIN_SAFE_INTEGER // special value to identify missing items. treated differently from undefined const MISSING = () ...
/* demo.js http://github.com/bgrins/javascript-astar MIT License Set up the demo page for the A* Search */ var json_str, rootNode : any = "<b>Passos:<b><br><br> S", passos : Any = [], score : Number = 0, totpassos : Number = 0; var reader : any; var lines : any = []; var saida : any; window.log = function(){ if(t...
<reponame>LeoDT/pathfinder-workbench import { ERROR_VALUE as FORMULA_ERROR_VALUE, Parser as FormulaParser } from 'hot-formula-parser'; import { compact, intersection, isEmpty, isEqual, last, pick, range, uniq } from 'lodash-es'; import { IObservableArray, action, autorun, computed, makeObservable, observable } from 'mo...
import { action, IObjectWillChange, intercept, observe, getAtom, extendObservable, observable, _interceptReads, _getAdministration, isComputedProp, computed, set, IObservableArray } from "mobx" import { fail, isPlainObject, isPrimitive, EMPTY_ARRAY, ...
<gh_stars>1-10 /* * Copyright (c) 2014 - 2017 Adobe Systems Incorporated. All rights reserved. * Copyright (c) 2018 - present The quadre code authors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "So...
import CompilationEnvironment, { GcnItem } from "./CompilationEnvironment" import { CoffeescriptCompilerArgs } from "./CoffeescriptCompiler" import { TypescriptCompilerArgs } from "./TypescriptCompiler" import FileDependencies from "./FileDependencies" import CompilationNode ...
import ResearchOption from '../models/research_option'; import { RESEARCH_OPTIONS } from '../enums/research_options'; import { RESEARCHES } from '../enums/researches'; import { RESOURCE_TYPES } from '../enums/resource_types'; const RTY = RESOURCE_TYPES; import { RESOURCE_TAGS } from '../enums/resource_tags'; const RTA ...
<reponame>toyobayashi/traveler import request from './request' import { sleep, parseStationName, seatTypeMap } from './util' export interface StationObject { stations: Station[] stationMap: { [key: string]: string } } export type User = { username: string, name: string, passengers: PassengerDTO[] } | ...
import stream from "stream"; import { TsUtil, TsChar } from "@chinachu/aribts"; import zlib from "zlib"; import { EntityParser, MediaType, parseMediaType, entityHeaderToString, parseMediaTypeFromString } from './entity_parser'; import * as wsApi from "./ws_api"; import { WebSocket } from "ws"; import { ComponentPMT, Ad...
import '../ui/google-btn'; import '@alenaksu/json-viewer'; import { FetcherState, Pilot, Tracker } from 'flyxc/common/protos/fetcher-state'; import { trackerPropNames } from 'flyxc/common/src/live-track'; import { round } from 'flyxc/common/src/math'; import { Keys } from 'flyxc/common/src/redis'; import { html, LitEl...
<gh_stars>0 import capnp from 'capnp'; import schema from 'capnp/schema.capnp.js'; import { StrDict, impossible, assertDefined, definedOr } from './util.js'; import * as iolist from './iolist.js'; type Polarity = "Pos" | "Neg"; type NodeId = string; type NodeMap = StrDict<schema.types_.Node.Reader>; interface Para...
import {Rectangle, Box, Sphere, Matrix3D, Vector3D, Point} from "@awayjs/core"; import {View, IPickingEntity, PickingCollision} from "@awayjs/view"; import {ElementsUtils, IMaterial} from "@awayjs/renderer"; import {AttributesBuffer, AttributesView, Float4Attributes, Float3Attributes, Float2Attributes, Short3Attribu...
<gh_stars>0 import countBy from "lodash-es/countBy"; import Mexp from "math-expression-evaluator"; import { computed } from "mobx"; import JulianDate from "terriajs-cesium/Source/Core/JulianDate"; import filterOutUndefined from "../Core/filterOutUndefined"; import isDefined from "../Core/isDefined"; import runLater fro...
<reponame>petermonky/js-slang<filename>src/utils/stringify.ts import { MAX_LIST_DISPLAY_LENGTH } from '../constants' import Closure from '../interpreter/closure' import { forceIt } from './operators' import { Value, Type } from '../types' export interface ArrayLike { replPrefix: string replSuffix: string replArr...
import Jsonpointer from 'jsonpointer'; import { Entity, EntityId, getEntityId, isEntity } from '../../entity'; import { toComponentId, getComponentDefId, getComponentEntityId, getComponentId } from '../../component'; import { createLog } from '../../util/log'; import { isRegex, isInteger, isString, isBoolean, isDate, i...
<reponame>yuribro/salto /* * Copyright 2022 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...
<reponame>CKylinMC/uno-game import CardService from "@/Services/CardService" import SocketService from "@/Services/SocketService" import PlayerService from "@/Services/PlayerService" import GameRoundService from "@/Services/GameRoundService" import ClientService from "@/Services/ClientService" import NumberUtil from "...
<filename>src/quicktype-core/input/JSONSchemaInput.ts import * as pluralize from "pluralize"; import * as URI from "urijs"; import stringHash = require("string-hash"); import { setFilter, EqualityMap, mapMap, mapFromObject, setSubtract, mapFromIterable, iterableFind, mapSortBy, mapMa...
import VM from "@ethereumjs/vm"; import { assert } from "chai"; import { BN, toBuffer } from "ethereumjs-util"; import fs from "fs"; import path from "path"; import semver from "semver"; import { ReturnData } from "../../../../src/internal/hardhat-network/provider/return-data"; import { createModelsAndDecodeBytecodes ...
import CPU from "./components/cpu"; import Memory from "./components/memory"; import GPU from "./components/gpu"; import Joypad from "./components/joypad"; import Cartridge from "./components/cartridge"; import EventBus from "./components/event-bus"; import { TimaTimer, DivTimer } from "./components/timers"; import { E...
// Type definitions for non-npm package Windows Image Acquisition 2.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/ms630368(v=vs.85).aspx // Definitions by: <NAME> <https://github.com/zspitz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 /// <refe...
<gh_stars>0 /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ----------------------------------------------------...
<gh_stars>10-100 import styled, { keyframes } from 'styled-components'; import { ThemedStyledComponentsModule } from "styled-components"; import { motion, transform } from "framer-motion"; export const heartBeat = keyframes` 25% {transform: scale(1.1);} 75% {transform: scale(0.6);} `; export const hahaFace ...
function randomColor() { let [r, g, b] = [255, 255, 255] .map(v => Math.floor(64 + (v - 64) * Math.random())) .map(v => v.toString(16)); return [r, g, b].join(""); } const textarea = ` /** * This is a prototype autocomplete/typeahead control * I've looked at the following solutions: * > the jquery autoc...
import { IUCAppState, UcAppState } from './uc.app-state'; import { UCAction, UCClickAction, UCDataUpdateAction, UCRouterAction, UCSearchUpdateAction, UCSettingsUpdateAction, UCTableOrderAction } from './uc.action'; import { DataService } from '../components/comparison/data/data.service'; imp...
<gh_stars>0 // @ts-nocheck /* eslint-disable */ // Segment object class Segment { constructor(a, b) { this.ptA = new Point(a); this.ptB = new Point(b); } intersection(other) { return intersect( this.ptA.x, this.ptA.y, this.ptB.x, this...
/* * Copyright 2022 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 { assertUnreachable } from '../lib/utils' import { Block } from 'web3/eth/types' import { UpdateRequest, ChannelState, InvalidationArgs, Sync, ThreadStateUpdate, ArgsTypes, channelUpdateToUpdateRequest } from '../types' import { ChannelStateUpdate, SyncResult, InvalidationReason } from '../types' import { Poller...
import * as React from "react" import * as ReactDOM from "react-dom" import * as Immutable from "immutable" import * as i18next from 'i18next' import {C, Mode, Cont, CmdCommon, Context, make_C, unit, bind} from './core' import {div, a} from './html' import {bool} from './primitives' export type RepeatProps<A> = { kin...
<gh_stars>10-100 /* * Copyright (c) 2018 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 the License at * * http://www.apac...
import { FieldCategory, Language, LinkLocation, Locale, } from '../../utils/api/definitions/enums' import { Translations } from './index' const en: Translations = { _language: Language.EN, _locale: Locale.EN, benefit: { oas: 'Old Age Security (OAS)', gis: 'Guaranteed Income Supplement (GIS)', ...
import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "yandex.cloud.cdn.v1"; /** * This option defines the protocol that will be used by CDN servers to request * content from an origin source. If not specified, we will use HTTP to connect * to an origin server. */ export declare enum OriginPr...
import Palette from "./palette"; import Matrix from "../structures/matrix"; import {bindController} from "../document/controller"; import {elements} from "../document/inspector"; import {create} from "../modules/common"; const tiles = new Image(); tiles.src = "tiles.png"; const icons = new Image(); icons.src = "icons....
import { DEFAULT_COLUMNS, AlertField, Notification, DefaultForm, ListCategoriesTags, ListFilters, ListFormHeader as IListFormHeader, Splitter as SplitterInternal, ListTable, LIST_CSS, ListFormResizer } from '../../index'; import { notification as antNotification } from 'antd'; import { SVG, ...
<filename>commands.ts /** * This is the file where the bot commands are located * * @license MIT license */ /// <reference path="typings/node.d.ts" /> import {Config} from './main' import {Room, getRoom} from './rooms' import {User, self, getUser} from './users' import {isEmpty, toId} from './utils' import { ...
/** * Created by jean on 6/25/16. */ import { Directive, ElementRef, Input, HostListener, forwardRef, Provider} from '@angular/core'; import {NgControl, DefaultValueAccessor, NgModel} from '@angular/common'; import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms'; const MASK_VALUE_ACCESSOR...
<gh_stars>1-10 import Tabulator from 'tabulator-tables'; import * as _ from 'lodash'; import * as d3 from 'd3'; import Cache from '../common/cache'; import {confirm_dialog,choice_or_cancel_dialog,accept_dialog} from '../common/dialog'; import { getConsentCookie } from '../common/cookies'; interface DependentTableData...
<reponame>owenr88/amplify-cli import fs from 'fs-extra'; import path from 'path'; import chalk from 'chalk'; import inquirer from 'inquirer'; import importGlobal from 'import-global'; import importFrom from 'import-from'; import { DynamoDBModelTransformer } from 'graphql-dynamodb-transformer'; import { ModelAuthTransfo...
import { Component, OnInit,Input, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ApiService } from '../../services/api.service'; import { CommonService } from '../../services/common.service'; import { NgbModal,NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { UserService } from ...
import cloneDeep from 'lodash-es/cloneDeep'; import Ajv from 'ajv'; import jsonDraft6 from 'ajv/lib/refs/json-schema-draft-06.json'; import { AbstractControl, FormArray, FormGroup } from '@angular/forms'; import { buildFormGroup, buildFormGroupTemplate, formatFormData, getControl } from './shared/form-group.f...
export = test; import * as _ from 'lodash'; import chalk from 'chalk'; import * as snyk from '../../../lib'; import * as config from '../../../lib/config'; import { isCI } from '../../../lib/is-ci'; import { apiTokenExists } from '../../../lib/api-token'; import { SEVERITIES, FAIL_ON, FailOn } from '../../../lib/snyk-...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../common/common.js'; import type {EventPayload} from './TracingManager.js'; type IgnoreListArgs = { [key: string]: string|nu...
<gh_stars>1-10 import check from 'check-more-types' import Debug from 'debug' import EE from 'events' import _ from 'lodash' import path from 'path' import browsers from './browsers' import pkg from '@packages/root' import { ServerCt } from './server-ct' import { SocketCt } from './socket-ct' import { SocketE2E } from...
<filename>sdk/cosmosdb/cosmos/src/utils/hashing/murmurHash.ts<gh_stars>1000+ // +----------------------------------------------------------------------+ // | murmurHash3js.js v3.0.1 // https://github.com/pid/murmurHash3js // | A javascript implementation of MurmurHash3's x86 hashing algorithms. | // |------------------...
<reponame>carboclan/dapp.honeylemon.market import { Web3Wrapper } from "@0x/web3-wrapper"; const { GraphQLClient } = require("graphql-request"); const { HttpClient, OrderbookRequest } = require("@0x/connect"); import { MinterBridge, MarketContractProxy, MarketContractMPX, CollateralToken, PaymentToken, DSP...
import { DirectionalHint } from '../common/DirectionalHint'; import { IRectangle, assign, getScrollbarWidth, Rectangle, getRTL, } from '../Utilities'; export enum RectangleEdge { top = 0, bottom = 1, left = 2, right = 3 } export enum Position { top = 0, bottom = 1, start = 2, end = 3 } let ...
<gh_stars>1-10 /* eslint-disable functional/no-loop-statement */ /* eslint-disable no-case-declarations */ /* eslint-disable functional/immutable-data */ /* eslint-disable functional/functional-parameters */ /* eslint-disable functional/no-try-statement */ /* eslint-disable functional/no-expression-statement */ /* esli...
<filename>language/src/language.ts import {Tree, SyntaxNode, ChangedRange, TreeFragment, NodeProp, NodeType, Input, PartialParse, Parser} from "../../lezer/common/index.ts" import type {LRParser, ParserConfig} from "../../lezer/lr/index.ts" import {Text, TextIterator} from "../../text/src/index.ts" import {Edit...
/* Copyright (c) 2019 Environmental Systems Research Institute, Inc. * Apache-2.0 */ import { ResourceObject } from "jsonapi-typescript"; import { IItem } from "@esri/arcgis-rest-portal"; import { HubType, HubFamily } from "../types"; import { collections } from "../collections"; import { categories as allCategories, ...
<filename>libs/ftr/ctr.ts /* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright © 2015-2016, xuewen.chu * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
import { NavController, AlertController, MenuController, ToastController, PopoverController, ModalController } from '@ionic/angular'; import { Component, OnInit, Input, OnChanges, AfterViewInit, ElementRef, Output, EventEmitter, ViewChild } from '@angular/core'; import { FormGroup, FormControl, Validators ...
import { Injectable } from '@angular/core'; import { Technique } from "./data.service"; declare var tinygradient: any; //use tinygradient // import * as tinygradient from 'tinygradient' declare var tinycolor: any; //use tinycolor2 // import * as tinycolor from 'tinycolor2'; import * as FileSaver from 'file-saver'; dec...
<reponame>moritzmhmk/dicom.ts<gh_stars>10-100 import * as Utils from "./utilities"; import Dictionary from "./dictionary"; import Siemens from "./siemens"; import { Charset } from "./constants"; const PRIVATE_DATA_READERS = [Siemens]; export const TagIds: Record<string, TagTupleID> = { // metadata TransferSyntax: [...
<filename>lib/gltfEx/gltfContainer.ts import Cesium = require('cesium'); import fs=require( "fs-extra"); import _=require("lodash") import fetch from 'node-fetch'; import dataUriToBuffer = require('data-uri-to-buffer'); import { Buffer } from 'buffer'; import { SrvRecord } from 'dns'; import { Envelope3D } from '../q...
import { InputArray, int, OutputArray } from './_types' /* * # Color Space Conversions * */ /** * The function converts an input image from one color space to another. In case of a transformation * to-from RGB color space, the order of the channels should be specified explicitly (RGB or BGR). Note * that the de...
<gh_stars>1-10 import { EventEmitter } from 'events'; import StrictEventEmitter from 'strict-event-emitter-types'; import StreamingClient, { HttpClient } from 'genesys-cloud-streaming-client'; import Logger from 'genesys-cloud-client-logger'; import jwtDecode from "jwt-decode"; import { ISdkConfig, ICustomerData, ...
<gh_stars>0 import BaseWidget = require('core/BaseWidget.class'); import Map = require("esri/map"); import SimpleMarkerSymbol = require("esri/symbols/SimpleMarkerSymbol"); import SimpleLineSymbol = require("esri/symbols/SimpleLineSymbol"); import SimpleFillSymbol = require("esri/symbols/SimpleFillSymbol"); import Col...
/// <reference types="react" /> /** * Types.ts * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Type definitions for ReactXP framework. */ import React = require('react'); import RX = require('./Interfaces'); export { default as SubscribableEvent, SubscriptionToken } f...
import { FrameBoundZ80Machine } from "./FrameBoundZ80Machine"; import { ILiteEvent, LiteEvent } from "../../shared/utils/LiteEvent"; import { ExecuteCycleOptions, ExecutionCompletionReason, EmulationMode, DebugStepMode, Z80MachineStateBase, SpectrumMachineStateBase, } from "../../shared/machines/machine-sta...
<filename>src/app/component/calendar/calendar.component.ts import {CommonModule} from '@angular/common'; import { NgModule, Component, OnInit, Input, Output, EventEmitter, OnDestroy, forwardRef, Inject, ElementRef } from '@angular/core'; import {ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR} from '@angular/for...
<reponame>Gruck/president import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import * as PusherTypes from "pusher-js"; import { cloneDeep } from "lodash"; import { AppThunk, RootState } from "../../app/store"; import { dealCards, Fold, Move, isAllSameFigure, getFigure, } from "../../services/car...
<gh_stars>10-100 import { expect } from 'chai' import { constants, BigNumber } from 'ethers' import { deployments } from 'hardhat' import 'hardhat-deploy' import { GraphTokenMock } from '../build/typechain/contracts/GraphTokenMock' import { GraphTokenLockSimple } from '../build/typechain/contracts/GraphTokenLockSimple...
<filename>js/packages/cli/src/helpers/gumdrop/claimant.ts import { AccountMeta, Connection as RPCConnection, Keypair, PublicKey, SystemProgram, TransactionInstruction, } from '@solana/web3.js'; import { AccountLayout, MintInfo, MintLayout, Token } from '@solana/spl-token'; import * as anchor from '@project-...
<filename>packages/core/src/view/view.ts /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Renderer2} from '../render/api'; import {checkAndUpdateElementDynam...
<filename>src/viewer.ts import chroma, { Color } from 'chroma-js' import debounce from 'debounce' import deepmerge from 'deepmerge' import nerdamer from 'nerdamer' import { AABB, arrayFromFunction, assert, DEG, int, M4, round10, V, V3 } from 'ts3dutils' import { GL_COLOR, GL_COLOR_BLACK, Mesh, TSGLContext } from 'tsgl'...
import { Provider, TransactionResponse, BlockTag, JsonRpcProvider } from '@ethersproject/providers' import { BigNumber, BigNumberish, ethers, Signer as AbstractSigner } from 'ethers' import { TypedDataDomain, TypedDataField } from '@ethersproject/abstract-signer' import { Interface } from '@ethersproject/abi' import { ...
<filename>src/app/buy-deso-page/buy-deso-eth/buy-deso-eth.component.ts<gh_stars>0 import { Component, OnInit, Input } from "@angular/core"; import { GlobalVarsService } from "../../global-vars.service"; import { BackendApiService } from "../../backend-api.service"; import { sprintf } from "sprintf-js"; import { SwalHel...
/** * Builds the structure of the right-side panel containing configuration and assorted tools. * It includes the regular tabs, to configure the Page (including several sub-tabs), and Field; * and allows other tools, such as Activity Feed, to be rendered temporarily in its place. * * A single RightPanel object is ...
<reponame>fatalcoder524/angular /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {FormatWidth, FormStyle, getLocaleDateFormat, getLocaleDateTimeFormat, getLoca...
/* * Copyright 2020 NEM * * 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 writi...
/* tslint:disable */ /** * cuon-matrix.ts (c) 2012 kanda and matsuda * adaptation of the cuon-matrix by kanda and matsuda * a class that implements a 4x4 matrix in typescript * equipped with functions equivalent to webgl matrix stack. * the matrix after conversion is calculated by multiplying the transformation ma...
<reponame>visgl/luma.gl // Tables describing WebGL parameters import GL from '@luma.gl/constants'; import { render } from '@luma.gl/shadertools/test/gpu-test-utils'; import {isWebGL2} from '../utils/webgl-checks'; import {GLParameters} from './webgl-parameters'; // DEFAULT SETTINGS - FOR FAST CACHE INITIALIZATION AND C...
import React, { Component } from 'react' import { Modal, Form, Select, message, Checkbox, Button } from 'antd' import { PlusOutlined, ShrinkOutlined } from '@ant-design/icons' import { modifyShift, queryModeMonitors, checkShift, } from '@/server/workManagement' import { getShiftListByOrgId, } from '@/server/wor...
import Bezier from "bezier-easing"; import uuid from "uuid/v4"; import { CompositionState } from "~/composition/compositionReducer"; import { CompositionSelectionState } from "~/composition/compositionSelectionReducer"; import { CompoundProperty } from "~/composition/compositionTypes"; import { reduceCompProperties } f...