text
stringlengths
9.82k
47.8k
import Group from '@antv/g-canvas/lib/group'; import Path from '@antv/g-canvas/lib/shape/path'; import { vec2, mat3 } from '@antv/matrix-util'; import Global from '../global'; import { EdgeData, IBBox, IPoint, IShapeBase, LabelStyle, TreeGraphData, NodeConfig, ComboTree, ComboConfig } from '../types'; import { applyMat...
<reponame>Michel73/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------...
<reponame>kuzeydev/abaplint /* eslint-disable max-len */ import {statementType, statementVersion} from "../_utils"; import * as Statements from "../../../src/abap/2_statements/statements"; import {Version} from "../../../src/version"; const tests = [ "move 2 to lv_foo.", "move exact c_val to l_int.", "MOVE foo ?...
import * as path from 'path'; import test from 'ava'; import * as sinon from 'sinon'; import * as fontFinder from 'font-finder'; import { CharCellGrid } from "extraterm-char-cell-grid"; import { load } from './'; test.before(t => { sinon.stub(fontFinder, 'listVariants').callsFake(async (name: string) => { swit...
import { BN, Provider } from '@project-serum/anchor'; import { Connection, Keypair, PublicKey } from '@solana/web3.js'; import { bulkPollingUserSubscribe, BulkAccountLoader, ClearingHouse, initialize, ClearingHouseUser, isVariant, Markets, UserOrdersAccount, OrderRecord, getUserOrdersAccountPublicKey, calcu...
<gh_stars>0 /* eslint-disable @typescript-eslint/no-non-null-assertion */ import uuid from "uuid" import { MarkOperation, AddMarkOperation, AddMarkOperationInput, RemoveMarkOperation, RemoveMarkOperationInput, MarkMapWithoutOpIds, FormatSpanWithText, changeMark, applyAddRemoveMark, ...
<reponame>tranchess/contract-core import { expect } from "chai"; import { BigNumber, Contract, Wallet } from "ethers"; import type { Fixture, MockContract, MockProvider } from "ethereum-waffle"; import { waffle, ethers } from "hardhat"; const { loadFixture } = waffle; const { parseEther, parseUnits } = ethers.utils; im...
/** * Created by priya on 10/07/18. */ import { NgModule,Component, OnInit,Injectable,Directive, ElementRef, HostListener, Input} from '@angular/core'; import { Router } from '@angular/router'; import {FormGroup, FormsModule,AbstractControl, FormBuilder, Validators,ReactiveFormsModule} from '@angular/forms'; import ...
import {isThenable, IThenable} from '../../../../../../../main/common/async/async' import {Func} from '../../../../../../../main/common/helpers/typescript' import {Random} from '../../../../../../../main/common/random/Random' import { getCallState, getOrCreateCallState, invalidateCallState, } from '../../../../../.....
import logDefinitions from '../../resources/netlog_defs'; import NetRegexes from '../../resources/netregexes'; import { PlayerChangedDetail } from '../../resources/player_override'; import Regexes from '../../resources/regexes'; import { LocaleNetRegex } from '../../resources/translations'; import Util from '../.....
interface OTAudioBus extends NSObjectProtocol { readRenderDataNumberOfSamples(data: interop.Pointer | interop.Reference<any>, count: number): number; writeCaptureDataNumberOfSamples(data: interop.Pointer | interop.Reference<any>, count: number): void; } declare var OTAudioBus: { prototype: OTAudioBus; }; interf...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { Fragment, useState, useEffect, Suspense, useCallback } from 'r...
import { Injectable } from '@angular/core'; import { IgxGridBaseDirective } from './grid-base.directive'; import { first } from 'rxjs/operators'; import { IgxColumnComponent } from './columns/column.component'; import { IgxGridNavigationService } from './grid-navigation.service'; import { ISelectionNode } from './selec...
<reponame>mitani-kun/tree-state-manager import {ThenableIterator, ThenableOrIteratorOrValue, ThenableOrValue, TOnFulfilled} from '../../async/async' import {ThenableSync} from '../../async/ThenableSync' import {TClass, typeToDebugString} from '../../helpers/helpers' import {getObjectUniqueId} from '../../helpers/object...
import { execSync } from 'child_process'; import { readFileSync } from 'fs'; import ts from 'typescript'; import { CallParam, CallSignature, TypeDefinition, InterfaceDefinition, NamedType, Type, TypeDefs, TypeDoc, TypeKind, MemberDefinition, } from '../TypeDefs'; import { markdown, MarkdownContext ...
import * as React from 'react'; const { useState, useEffect, useCallback, useRef, useMemo, memo } = React; import message from './message'; import { REACT_INPUTS_VALIDATION_CUSTOM_ERROR_MESSAGE_EXAMPLE, DEFAULT_LOCALE, WRAPPER_CLASS_IDENTITIFIER, CONTAINER_CLASS_IDENTITIFIER, MSG_CLASS_IDENTITIFIER, usePrevious } from ...
import { TestBed, inject, async, resetFakeAsyncZone } from '@angular/core/testing'; import { ReflectiveInjector } from '@angular/core'; import { HttpClientModule, HttpClient, HttpHandler } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import...
import { Generator } from './Generator' import { GraphQLUnionType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLScalarType, GraphQLEnumType, GraphQLObjectType as GraphQLObjectTypeRef, GraphQLObjectType, GraphQLField, GraphQLArgument, GraphQLFieldMap, GraphQLInputFieldMap, } from 'graphql' ...
/** * This class represents a disassembly operation map */ export class OperationMap { /** * Operation code */ readonly opCode: number; /** * Instruction pattern */ readonly instructionPattern: string | null; /** * Indicates that this instruction is a ZX Spectrum Next operation */ read...
<reponame>chdh/plain-table // Table structure logic. import * as GridLayout from "virtual-grid-layout/GridLayout"; import {LayoutController, ViewportPosition, MeasureFunction} from "virtual-grid-layout/GridLayout"; import * as GridScroll from "virtual-grid-layout/GridScroll"; import {ScrollUnit} from "virtual-grid-lay...
import React, { useEffect, useState } from 'react'; import moment from 'moment'; import equal from 'deep-equal'; import { DatePicker } from './DatePicker'; import { Modepicker } from './ModePicker'; import { SearchInputField } from './SearchInputField'; import { Translations } from '../App/Localization'; import { get...
import React, { useEffect, useRef, useState, Fragment } from 'react'; import { Button, Form, Input, message, Modal, Radio, Select, Space, Skeleton } from 'antd'; import { MapInput, RadioGroup } from '@/components'; import type { Option } from '@/components/RadioGroup'; import { useRequest } from 'ahooks'; import { useM...
export type ValidateOptionsCallback<T> = (obj: T, invalid: (err: OptionsValidationError) => void) => void; export type ValidateOptionsFailCallback = (err: OptionsValidationError) => void; type Constructor<T> = { new(...args: any[]): T }; type Mutable<T> = { -readonly[P in keyof T]: T[P] }; type NonOptionalKeys<T> = { ...
import { findRedirect, getRandStr, resolvePageRoute, setStoreItem, sleep, TCCSVersion, TDefaultPageName, TOrder, TOrderInput, TPackageCromwellConfig, TProductReview, TStoreListItem, TUser, TUserRole, } from '@cromwell/core'; import { applyGetPaged, Attribu...
import EventEmitter from "events"; import { CallFeed, CallFeedEvent } from "./callFeed"; import { MatrixClient } from "../client"; import { CallErrorCode, CallEvent, CallState, genCallID, MatrixCall, setTracksEnabled } from "./call"; import { RoomMember } from "../models/room-member"; import { Room } from "../models/ro...
<reponame>daskre/sigma-usd<gh_stars>10-100 /* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; export function stablecoinprotocol_min_box_value(a: number, b: number): void; export function stablecoinprotocol_reservecoin_default_price(a: number, b: number): void; export function stablecoin...
import {LogMessage} from "../backends/elasticsearch/Elasticsearch" import {CopyHelper} from "../helpers/CopyHelper" import {escape} from "he" import {Query} from "./Query" import {Filter} from "../components/App" import moment from "moment" import {TimeZone} from "./Prefs" export type FieldsConfig = { timestamp?: st...
<gh_stars>1-10 /** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { StateAction, StateBuilder, StateTransformer, State } from '../../mol-state'; import { PluginContext } from '../../mol-plugin/context'; import { PluginStateObj...
import { Events } from '../_types/event/Events'; import { isXField, isYField } from './util'; import epsgCodes from '../web-map/config/epsg.json'; import * as convert from 'xml-js'; const DEFAULT_WELLKNOWNSCALESET = ['GoogleCRS84Quad', 'GoogleMapsCompatible']; const MB_SCALEDENOMINATOR_3857 = [ '559082264.0287178', ...
// Copyright (C) 2016 <NAME> // MIT License. See LICENSE file for details. /** * Package sha512 implements SHA-2-512 cryptographic hash function. */ import { SerializableHash } from "@stablelib/hash"; import { readUint32BE, writeUint32BE } from "@stablelib/binary"; import { wipe } from "@stablelib/wipe"; export co...
<gh_stars>0 export const challenge = 'challenge'; export const character = 'character'; export const math = 'math'; export const science = 'science'; export const R = 'R'; export const U = 'U'; export const I = 'I'; export const RM = 'RM'; export const RP = 'RP'; export const RC = 'RC'; export const RM1 = 'RM1'; export...
<reponame>avigoldman/codsen /* eslint @typescript-eslint/explicit-module-boundary-types: 0 */ import he from "he"; type EndOfLine = "lf" | "crlf" | "cr"; type EndOfLineVal = "\n" | "\r\n" | "\r"; interface Opts { fixBrokenEntities: boolean; removeWidows: boolean; convertEntities: boolean; convertDashes: bool...
/** * Cogl-1.0 */ import type * as Gjs from './Gjs'; import type * as GObject from './GObject-2.0'; import type * as GLib from './GLib-2.0'; import type * as GL from './GL-1.0'; export enum AttributeType { BYTE, UNSIGNED_BYTE, SHORT, UNSIGNED_SHORT, FLOAT, } export enum BitmapError { FAILED,...
<gh_stars>1-10 import _ from 'lodash'; import { extrapolateStyles } from './extrapolateStyles'; import { colorsMap } from './colorsMap'; import shadowStyles from './shadow-styles'; const colorStyles = extrapolateStyles(colorsMap, 'color'); //This needs to be fixed // const {width, height, scale} = Dimensions.get('win...
<gh_stars>0 /* eslint-disable camelcase */ export const finalBetRequestName = { final_0: 'final_0', final_1: 'final_1', final_2: 'final_2', final_3: 'final_3', final_4: 'final_4', final_5: 'final_5', final_6: 'final_6', final_7: 'final_7', final_8: 'final_8', final_9: 'final_9',...
import { SpectrumSpecificMode, OperationMap, extendedInstructions, bitInstructions, standardInstructions, indexedInstructions, indexedBitInstructions, q8Regs, q16Regs, r16Regs, calcOps, } from "./instruction-tables"; import { DisassemblyItem, DisassemblyOutput, MemorySection, MemorySection...
import { Vector3, Group, Scene, PerspectiveCamera, PlaneGeometry, MeshBasicMaterial, Mesh, WebGLRenderer, VideoTexture, FogExp2, LinearFilter, RGBFormat, InstancedBufferGeometry, InstancedBufferAttribute, InstancedMesh, BufferAttribute, Sha...
import { Attack, Defence } from '@civ-clone/core-unit/Yields'; import { Attack as AttackAction, BuildIrrigation, BuildMine, BuildRoad, CaptureCity, Disembark, Embark, Fortify, FoundCity, Move, NoOrders, Unload, } from '@civ-clone/civ1-unit/Actions'; import { CityRegistry, instance as cityReg...
import { select, selectAll } from "d3-selection"; import { scaleLinear } from "d3-scale"; import { linkHorizontal, linkVertical } from "d3-shape"; import { drag } from "d3-drag"; import { Basechart, TMargin } from "@buckneri/spline"; export type TLink = { dom: SVGElement, fill: string, id: string, nodeIn: TN...
<reponame>nico-abram/ettlua-for-vscode<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. * --------------...
/** * @license * Copyright 2017 Google LLC * * 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 ...
import { concatAST } from "graphql/utilities"; import { GraphQLSchema, DocumentNode, NoUnusedFragmentsRule, KnownDirectivesRule, UniqueOperationNamesRule, ValidationContext, OperationDefinitionNode, GraphQLError, specifiedRules, validate, DefinitionNode, GraphQLType, isNonNullType, Selection...
import * as fs from "fs"; import * as path from "path"; import { URL } from "url"; import * as express from "express"; import * as Handlebars from "handlebars"; import * as moment from "moment-timezone"; import * as bowser from "bowser"; import * as uuid from "uuid/v4"; import { STATIC_ROOT, STORAGE_ENGINE, config, ...
<reponame>nreese/maplibre-gl-js import browser from '../util/browser'; import {mat4, vec3} from 'gl-matrix'; import SourceCache from '../source/source_cache'; import EXTENT from '../data/extent'; import pixelsToTileUnits from '../source/pixels_to_tile_units'; import SegmentVector from '../data/segment'; import {Raster...
import { EventEmitter } from "events"; import * as timers from "timers"; import * as ByteBuffer from "bytebuffer"; import { BitStream } from "./ext/bitbuffer"; import * as assert from "assert"; import { MAX_EDICT_BITS, MAX_OSPATH } from "./consts"; import { ConVars } from "./convars"; import { Entities } from "./enti...
// Copyright (C) 2021 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<reponame>wulinsheng123/malagu import { isOSX } from '@malagu/core'; export type KeySequence = KeyCode[]; export namespace KeySequence { export function equals(a: KeySequence, b: KeySequence): boolean { if (a.length !== b.length) { return false; } for (let i = 0; i < a.length;...
import type * as RMOAS from './rmoas.types'; import type { OpenAPIV3_1 } from 'openapi-types'; import type { MatchResult } from 'path-to-regexp'; import $RefParser from '@readme/json-schema-ref-parser'; import { pathToRegexp, match } from 'path-to-regexp'; import getAuth from './lib/get-auth'; import getUserVariable f...
<filename>src/modules/uv-seadragoncenterpanel-module/SeadragonCenterPanel.ts import BaseCommands = require("../uv-shared-module/BaseCommands"); import Bounds = require("../../extensions/uv-seadragon-extension/Bounds"); import CenterPanel = require("../uv-shared-module/CenterPanel"); import Commands = require("../../ext...
import { EventEmitter2 } from 'eventemitter2'; import { diff_match_patch, DIFF_DELETE, patch_obj, DIFF_EQUAL, DIFF_INSERT, } from 'diff-match-patch'; import { isCursorOp, isTransientAttribute, isTransientElement, filterOperations, updateIndex, opsSort, } from './utils'; import { escapeDots, escape, decodeCar...
import crypto, { randomBytes } from 'crypto'; import dgram from 'dgram'; import { BASIC, DIGEST } from 'http-auth-utils/dist/index'; import net from 'net'; import { Duplex, Readable } from 'stream'; import tls from 'tls'; import { closeQuiet, createBindZero } from './listen-cluster'; import { timeoutPromise } from './p...
// Model Service // ------------- // Transformers import {keys} from 'ts-transformer-keys' // Runtime import _ from 'lodash' import angular from 'angular' import {Stratus} from '@stratusjs/runtime/stratus' // Stratus Core import { ErrorBase } from '@stratusjs/core/errors/errorBase' import { getAnchorParams, ...
/** * @license * Copyright 2020 Google LLC * * 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 o...
import { FastVertexArray } from './fast-vertex-array'; import TxView from './tx-view'; import { TransactionStripped } from 'src/app/interfaces/websocket.interface'; import { Position, Square, ViewUpdateParams } from './sprite-types'; export default class BlockScene { scene: { count: number, offset: { x: number, y: n...
<reponame>sc10ntech/extract-site-metadata<filename>src/extractor.ts import cheerio from 'cheerio'; import DOMPurify from 'dompurify'; import isEqual from 'lodash/isEqual'; import uniq from 'lodash/uniq'; import { NewsArticle, Article } from 'schema-dts'; import { URL } from 'url'; import formatter, { replaceCharacters ...
<reponame>chaance/harmonious<filename>packages/harmonious-type/src/index.ts import { HarmoniousRhythm, HarmoniousRhythmOptions, defaultConfig as defaultRhythmConfig, } from 'harmonious-rhythm'; import { ratios } from 'harmonious-scale'; import { isNumber, isObject, kebabCase, pick } from 'lodash'; import * as CSS...
<reponame>vt5491/lss ///<reference path="../../../typings/index.d.ts" /> import { Injectable, Injector } from '@angular/core'; import { IMoveableGameObject } from '../interfaces/imoveable-game-object'; import { BaseService } from './base.service'; import { Asteroid } from '../inner-games/asteroids/asteroid'; @Injectab...
export declare const TIMEOUT_IGNORED: number; export declare const ZERO: number; export declare const NO_ERROR: number; export declare const NONE: number; export declare const ONE: number; export declare const POINTS: number; export declare const SYNC_FLUSH_COMMANDS_BIT: number; export declare const DEPTH_BUFFER_BIT: n...
/** * This files generates C# classes from the TON Client SDK definitions location in JSON file (api.json). * The JSON file is taken from https://raw.githubusercontent.com/tonlabs/TON-SDK/1.1.0-rc/tools/api.json. */ import {TextWriter} from '@yellicode/core'; import {Generator} from '@yellicode/templating'; import ...
<filename>src/project.ts //===--- project.ts ------------ Project Engine ------------- TypeScript --===// // // TSAR Advisor (SAPFOR) // // This implements active project controller and single project representation. // //===---------------------------------------------------------------------...
<filename>src/Infra/UI.ts<gh_stars>1-10 // file: UI.ts import { ListView, ListViewItem, Dialog, ToastsContainer, TextView, View, DialogParent, MessageBox, Overlay, ItemActiveHelper, dragManager, ContextMenu, buildDOM, fadeout, formatTime, listenPointerEvents, numLimit, replaceChild, toggleClass, mountView, unmountVi...
<reponame>bstaeheli/node-sonos-ts<filename>src/services/av-transport.service.ts /** * Sonos AVTransportService * * <NAME> * https://svrooij.io * * This file is generated, do not edit manually. https://svrooij.io/sonos-api-docs */ import BaseService from './base-service'; import { SonosUpnpError } from '../models...
type THue = | "red" | "orange" | "yellow" | "lime green" | "green" | "blue green" | "cyan" | "sky blue" | "blue" | "purple" | "magenta" | "pink"; export type TCSSName = | "maroon" | "dark red" | "brown" | "firebrick" | "crimson" | "red" | "tomato" | "coral" | "indian red" | ...
import { CaptureModel, BaseField, BaseSelector } from '@capture-models/types'; import { action, computed, createStore, debug, thunk } from 'easy-peasy'; import { RevisionsModel } from './revisions-model'; import { createSelectorStore, updateSelectorStore } from '../selectors/selector-store'; import { batchedSubscribe }...
<filename>erizoClient/src/ErizoStream.ts import { RTCStreamEvent } from "./ErizoConnectionManager"; import { EventDispatcher, StreamEvent } from "./Events"; import { Room } from "./Room"; import { ErizoStreamCheckOptions, ErizoStreamOptions, MsgCb } from "./Stream"; import { ConnectionHelpers, CommonMediaTrackConstrain...
/* * Copyright (c) 2020 <NAME>. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import Animated from 'core/components/Animated' import Loading from 'core/components/Loading' import Paginate from 'core/components/...
<filename>test/index.ts import test from 'ava' import { spaceCase, camelCase, pascalCase, kebabCase, snakeCase, constantCase, pathCase, capitalCase, upperCase, lowerCase, } from '../src/index' // a bunch of different combinations const tests = [ 'ponytaVaporeonPOLIWRATH_ButterfreeA', 'PonytaVap...
<gh_stars>0 import { VimOption, BufferEvent, HyperspaceCoordinates, BufferType, BufferHide, BufferOption, Buffer, Window, Tabpage, GenericCallback, BufferInfo, Keymap } from '../neovim/types' import { Api, ExtContainer, Prefixes, Buffer as IBuffer, Window as IWindow, Tabpage as ITabpage } from '../neovim/protocol' impo...
import path from 'path' import fse from 'fs-extra' import postcss, { Result } from 'postcss' import type Processor from 'postcss/lib/processor' import postcssrc, { Result as PostcssrcResult } from 'postcss-load-config' import { Node as Tree, RawNode } from 'posthtml' import match from 'posthtml-match-helper' import ty...
<reponame>feberhard/ACO /* * //==============================================\\ * || Project: Ant Colony Optimization || * || Authors: <NAME>, <NAME>, || * || <NAME> <NAME> || * || Date: 05.12.2016 || * \\==============================================// */ ...
import * as _ from "underscore"; import { hasMainAbility } from "../combat/combat.services"; import { doesChanceWorkFloat } from "../drops/drops.services"; import { getEmitter, getServices } from "../main/bootstrap"; import MasterServices from "../master/master.services"; import { getMobInfo } from "../mobs/mobs.servic...
const THREE = require('../../../../../../vender/three'); import em from '../../../../bus' import {Tween, Easing} from '@tweenjs/tween.js'; import {start} from "repl"; import {EventDispatcher, Object3D, Quaternion, Vector2} from "three"; function log(txt) { em.emit('event/log/trace', {step: txt}); } enum STATE { ...
import React, { useEffect, useState, useContext } from 'react' import { View, Text, StyleSheet, TextInput, Platform, PermissionsAndroid, Linking, SafeAreaView, TouchableOpacity, StatusBar } from 'react-native' import AsyncStorage from '@react-native-async-storage/async-storage' import { useSelector,...
<gh_stars>0 import { utils, Fr, Fq, Fq12, PointG1, PointG2, pairing, sign } from 'noble-bls12-381'; function bytesToNumberBE(bytes: Uint8Array) { let value = 0n; for (let i = bytes.length - 1, j = 0; i >= 0; i--, j++) { value += (BigInt(bytes[i]) & 255n) << (8n * BigInt(j)); } return value; } function sam...
<reponame>collabsoft/ej2 /* eslint-disable valid-jsdoc */ /* eslint-disable @typescript-eslint/explicit-member-accessibility */ import { compile as templateComplier, remove, merge, createElement, isNullOrUndefined } from '@syncfusion/ej2-base'; import { SvgRenderer } from '@syncfusion/ej2-svg-base'; import { FontModel,...
<reponame>emptynick/fitbit-pure import { me as device } from 'device'; import { display, Display } from 'display'; import document from 'document'; import { vibration } from 'haptics'; import { ActivityDisplay } from './activity'; import { BatteryDisplay } from './battery'; import { addEventListener, Disposable, Event,...
<reponame>ppopth/DefinitelyTyped import sinon = require("sinon"); function testSandbox() { const obj = {}; sinon.createSandbox({ injectInto: obj, properties: ["spy", "stub"], useFakeTimers: true, useFakeServer: true, }); sinon.createSandbox({ injectInto: null, ...
import { AppStatus, AppStatusUtils } from '../definition/AppStatus'; import { AppMethod } from '../definition/metadata'; import { IPermission } from '../definition/permissions/IPermission'; import { IUser, UserType } from '../definition/users'; import { AppBridges } from './bridges'; import { AppCompiler, AppFabricatio...
import { Compiler } from "../Compiler"; import { ParsedIR } from "../../parser/ParsedIR"; import { LocationComponentPair } from "../../common/LocationComponentPair"; import { Pair } from "../../utils/Pair"; import { SPIRVariable } from "../../common/SPIRVariable"; import { SPIRBaseType, SPIRType } from "../../common/SP...
<reponame>NewtonsCow/physics-math /** * Representation and manipulation of physical units. * * These are based on SI, and in particular the * (Guide for the Use of the International System of Units (SI))[https://physics.nist.gov/cuu/pdf/sp811.pdf] * However, this does not try to be complete, and extends the set of...
import React, { Component, Fragment, CSSProperties, PointerEvent, WheelEvent } from 'react'; import { connect } from 'react-redux' import classNames from 'classnames' import ColorPicker from '../components/ColorPicker' import CharGrid from '../components/CharGrid' import CharPosOverlay, { TextCursorOverlay } from '.....
<reponame>yv53/Alyle-UI<gh_stars>0 import { Component, ChangeDetectionStrategy, ElementRef, Renderer2, Input, OnInit, forwardRef, ChangeDetectorRef, Output, EventEmitter, ViewChild, OnChanges, OnDestroy, QueryList, ViewChildren, InjectionToken, Inject, Optional} from '@angular/core';...
<reponame>mahadevanmani/frontend<filename>src/panels/lovelace/cards/hui-media-control-card.ts<gh_stars>1-10 import "@polymer/paper-icon-button/paper-icon-button"; import type { PaperIconButtonElement } from "@polymer/paper-icon-button/paper-icon-button"; import "@polymer/paper-progress/paper-progress"; import type { Pa...
/** * @license * Copyright 2019 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 applicable law or...
<filename>src/app/script/bb/input/pointer-listener.ts<gh_stars>0 import {addEventListener, removeEventListener} from './event-listener'; /** * Filters wheel events. removes swipe scrolling and pinch scrolling that trackpads do. (as best as it can) * Normalizes regular scrolls. * * Why: * - trackpad scrolling is ...
import { buildArray, getDataType, walk, getAnimationComponent, calculateProjection, createProgram, calculateOffset, normalize } from './utils'; import { Mesh, SkinnedMesh, Bone, Camera, Object3D, Scene, Light, UniformBuffer, Material } from './objects/index'; import { Matrix4, Box, Vecto...
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, DoCheck, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import { ColorService } from '../../services/color/index'; @Component({ selector: 'ux-slider', templateUrl: './slider.component.html', c...
export function randomAdjective(): string { return adjectives[Math.floor(Math.random() * adjectives.length)]; } export let adjectives = [ 'Abandoned', 'Able', 'Absolute', 'Adorable', 'Adventurous', 'Academic', 'Acceptable', 'Acclaimed', 'Accomplished', 'Accurate', 'Achi...
<gh_stars>0 import { AdapterRequest, AdapterResponse, Execute } from '@chainlink/types' import { AnyAction } from 'redux' import { combineEpics, createEpicMiddleware, Epic } from 'redux-observable' import { concat, EMPTY, from, merge, Observable, of, race, Subject, timer } from 'rxjs' import { catchError, concatMap...
import * as colors from 'colors'; import * as fs from 'fs'; import * as path from 'path'; import * as ProgressBar from 'progress'; import * as stripJsonComments from 'strip-json-comments'; import * as unzipper from 'unzipper'; import { fsutil } from './fsutil'; import { serverProperties } from './serverproperties'; i...
<reponame>huilinbo/novatec-service-dependency-graph-panel import _ from 'lodash'; import cytoscape from 'cytoscape'; import { ServiceDependencyGraph } from '../serviceDependencyGraph/ServiceDependencyGraph'; import ParticleEngine from './particle_engine'; import { CyCanvas, Particle, EnGraphNodeType, Particles, IntGrap...
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react" import styled from "styled-components" import Container from "components/Container" import { useForm } from "react-hook-form" import Result from "./Result" import TabView from "components/TabView" import { useLocation } from "react-router-...
import { BlueprintResultRundown, BlueprintResultSegment, NoteSeverity } from '@sofie-automation/blueprints-integration' import { Meteor } from 'meteor/meteor' import { Random } from 'meteor/random' import { ReadonlyDeep } from 'type-fest' import _ from 'underscore' import { SegmentNote, PartNote, RundownNote } from '.....
/** * This module exports a UserManager component, consisting of a list of emails, each with an * associated role (See app/common/roles), and a way to change roles, and add or remove new users. * The component is instantiated as a modal with a confirm button to pass changes to the server. * * It can be instantiate...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------...
function enumerable(allow:boolean) { return function (target:any,propname:string) { Object.defineProperty(target,propname,{enumerable:allow,writable:true,configurable:true,value:target[propname]}); } } export enum Doctypes{ Root, Namespace, Class, Member, Usage } export clas...
// pathfinder/client/src/reference-test.ts // // Copyright © 2017 The Pathfinder Project Developers. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This f...
<filename>web/src/main/webapp/dataViews/tsViewBase.ts /* * 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...
<reponame>nl253/GeneticAlgo-JS<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-explicit-any,@typescript-eslint/ban-ts-ignore,max-classes-per-file,complexity */ /** * You MAY override the following methods using inheritance (just extend GeneticAlgorithm): * - mutate * - crossover * - select * - isFinished * ...
<reponame>SoftwareAG/cumulocity-data-points-map-widget /** * Copyright (c) 2020 Software AG, Darmstadt, Germany and/or its licensors * * 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...