text
stringlengths
9.82k
47.8k
<filename>src/ui/script/renderer.ts import { ipcRenderer, remote, BrowserWindow } from 'electron'; import { TestRun } from '../../ts/types/TestRun'; import { TestStatus } from '../../ts/types/TestStatus'; import { TestCaseOutcome } from '../../ts/types/TestCaseOutcome'; import * as reactTree from './reactTree'; import ...
import "module-alias/register"; import { Address, Account, AaveContractSettings, Bytes, MethodologySettings, ExecutionSettings, IncentiveSettings, ExchangeSettings, } from "@utils/types"; import { ADDRESS_ZERO, ZERO, EMPTY_BYTES, MAX_INT_256, MAX_UINT_256 } from "@utils/constants"; import { BaseManag...
<filename>BiLiveNoVIP/BiLiveNoVIP.user.ts // ==UserScript== // @name bilibili直播净化 // @namespace https://github.com/lzghzr/GreasemonkeyJS // @version 4.0.6 // @author lzghzr // @description 屏蔽聊天室礼物以及关键字, 净化聊天室环境 // @supportURL https://github.com/lzghzr/GreasemonkeyJS/issues // @include /^https:\/\...
/* eslint-disable no-use-before-define */ import { createDirectStore } from 'direct-vuex'; import Vue from 'vue'; import Vuex from 'vuex'; import vtkProxyManager from 'vtk.js/Sources/Proxy/Core/ProxyManager'; import { InterpolationType } from 'vtk.js/Sources/Rendering/Core/ImageProperty/Constants'; import '../utils/r...
<reponame>plazaproject/plaza-core<filename>frontend/src/app/flow-editor/ui-blocks/renderers/responsive_page.ts import { Subscription } from "rxjs"; import { UiSignalService } from "../../../services/ui-signal.service"; import { Area2D, FlowBlock, Position2D } from "../../flow_block"; import { ContainerFlowBlock, Contai...
import { yupResolver } from '@hookform/resolvers/yup'; import { constant, constFalse, pipe } from 'fp-ts/lib/function'; import * as O from 'fp-ts/lib/Option'; import { GetServerSideProps } from 'next'; import { useSession } from 'next-auth/client'; import Head from 'next/head'; import Link from 'next/link'; import { us...
import { Component, OnInit, Inject, OnDestroy, ElementRef, ViewChild } from '@angular/core'; import { FirebaseService, FileService, ProjectService, AuthService, BrokerService , MailerService } from '../../../shared'; import { MatDialog, MatDialogRef, MatDialogConfig, MAT_DIALOG_DATA } from '@angular/material/dialog'; i...
interface HiScore{ playerName: string; score: number; } interface Button{ x: number; y: number; w: number; h: number; func: string; } interface asteroid{ x: number; y: number; dir: number; sprite: string; speed: number; } interface SpriteSheetTexture { name: string;...
import 'jest-extended'; import { BackendUtilityService, Column, CollectionService, ExtensionService, ExtensionUtility, FilterService, Formatter, GridEventService, GridOption, GridService, GridStateService, GroupingAndColspanService, OnRowCountChangedEventArgs, OnRowsChangedEventArgs, OnSet...
<reponame>kdenhartog/stablelib<gh_stars>0 // Copyright (C) 2017 <NAME> // MIT License. See LICENSE file for details. import { SerializableHash } from "@stablelib/hash"; import { readUint32LE, writeUint32LE } from "@stablelib/binary"; import { wipe } from "@stablelib/wipe"; export const BLOCK_SIZE = 128; export const ...
import { Component, DoCheck, ElementRef, EventEmitter, Input, KeyValueDiffer, KeyValueDiffers, ChangeDetectorRef, OnDestroy, OnInit, Output, ChangeDetectionStrategy } from '@angular/core'; import { bisector } from 'd3-array'; import { axisBottom, axisLeft, AxisScale } from 'd3-axis'; import { ea...
import * as React from 'react'; import * as fs from "fs"; import * as path from "path"; import worker from 'workerize-loader!./Scrapers'; import recursiveReaddir from "recursive-readdir"; import fileURL from "file-url"; import wretch from "wretch"; import uuidv4 from "uuid/v4"; import {getCachePath, randomizeList} fro...
<gh_stars>0 import * as vscode from 'vscode'; import { IKeyRemapping } from './iconfiguration'; import { Logger } from '../util/logger'; import { ModeHandler } from '../mode/modeHandler'; import { Mode } from '../mode/mode'; import { VimState } from './../state/vimState'; import { commandLine } from '../cmd_line/comman...
<reponame>usa-m/echarts<filename>src/chart/tree/TreeView.ts /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under t...
import { typeChartLineDashboard, typeFilter, typeInterval, typeIntervalDashboard, typeRedirectValue, typeTrash, typeDistributionOffer, fieldTypeRedirect, } from '../intrefaces/interface' interface IValueObject { name: string value: string } interface IValueTrashSetting { name: string value: ty...
/* * <NAME> makes this available to you under the Apache License, * Version 2.0 (the "License"). You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Unless requi...
import React, { useState, useContext, ChangeEvent, useEffect } from 'react'; import { Box, FormControl, Stack, Heading, Button, Text, Switch, IconButton, Avatar, Flex, useColorModeValue, Spacer, LightMode, Badge, Checkbox, Code, Divider, Tooltip, Link as ChakraLink, } from '@chakra-ui/react'; import ...
import React, { ReactNode, useEffect, useMemo, useRef, useState } from 'react'; import { observer } from 'mobx-react'; import { Progress } from 'antd'; import { ProgressWrapper, SceneWrapper, SceneContainer, ScenePreview, } from '@/components/styles/3DScene'; import { IAttribute, IHall, ModelType, IModelItem, I...
/* * Copyright 2015-2016 Imply Data, Inc. * Copyright 2017-2019 Allegro.pl * * 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 * * Unl...
import { customElement, inject, bindable, children, Container, View, ViewCompiler, ViewResources, ViewSlot } from 'aurelia-framework'; import { computedFrom, bindingMode } from 'aurelia-binding'; import { BsColumn } from './column'; import { Deferred } from './deferred'; import { BsResizeContainer } from '../resize-co...
<gh_stars>1-10 import { DBObjectId } from "../types/DBObjectId"; import { Carrier, CarrierPosition } from "../types/Carrier"; import { Game } from "../types/Game"; import { User } from "../types/User"; import AIService from "./ai"; import BattleRoyaleService from "./battleRoyale"; import CarrierService from "./carrier"...
import * as React from "react"; import * as moment from "moment"; import Items from "./items/Items"; import InfoLabel from "./layout/InfoLabel"; import Sidebar from "./layout/Sidebar"; import Header from "./layout/Header"; import Columns from "./columns/Columns"; import GroupRows from "./row/GroupRows"; import ScrollEl...
<reponame>dennisja/wadle const WORD_LIST = [ 'aantu', 'abaas', 'ababa', 'ababi', 'abafu', 'abaha', 'abahe', 'abahi', 'abami', 'abana', 'aband', 'abany', 'abari', 'abasa', 'abato', 'abaza', 'abeeg', 'abeka', 'abiri', 'abomu', 'accra', 'added', 'addis', 'afica', 'afire', ...
<gh_stars>0 /** * Copyright 2015 CANAL+ Group * * 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...
import { AbilityName, Condition, Data, Dex, EggGroup, EvoType, FormeName, GenderName, GenerationNum, ID, ItemName, Move, MoveCategory, MoveName, MoveSource, Nature, Nonstandard, Species as DexSpecies, SpeciesAbility, SpeciesName, SpeciesTag, StatID, StatsTable, Tier, Ty...
import React, { useState ,useEffect, useContext, useRef } from 'react'; import { Form, Input, Button, Row, Col, DatePicker, Upload, message, Steps, Divider, Modal, Select, Table, Radio, InputNumber,Popconfirm } from 'antd'; import moment from 'moment'; import { InboxOutlined } from '@ant-desig...
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { NetMa...
import React from 'react'; import { createLinkPlugin, LINK_TYPE, pluginLink } from 'wix-rich-content-plugin-link'; import { createLinkPreviewPlugin, LINK_PREVIEW_TYPE, LinkPreviewProviders, pluginLinkPreview, } from 'wix-rich-content-plugin-link-preview'; import { createLineSpacingPlugin, LINE_SPACING_TYPE,...
export interface Script { chart: ScriptChartItem[]; symbols: ScriptSymbol[]; keyboard: ScriptKeyboard; } export interface ScriptChartItem { consonant: string | null; chars: [ string | null, string | null, string | null, string | null, string | null ]; } export interface ScriptSymbol { ...
import { SelectionModel } from '@angular/cdk/collections'; import { ElementRef, EventEmitter, forwardRef, Injector, NgZone, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { BehaviorSubject, Observable } from 'rxjs'; import { OFilterBuilderComponent } from '../components/filt...
/* * Copyright 2021 <NAME> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
import '../sass/main.scss'; import '../images/chat.png'; import config from '../../config.json'; import { IExchange } from './Exchange/IExchange'; import { Firebase } from './Exchange/Firebase'; import { ICommunication } from './Communication/ICommunication'; import { WebRTC } from './Communication/WebRTC'; import { ...
import Location, { LocationLike, LocationMutableProps, isLocationLike, } from './Location' import Edge, {getEdgeKey, EdgeMutable, EdgeLike, isEdgeLike} from './Edge' import {Star, Shape, ShapeMap, ShapeSubclass, ShapeParams} from '../drawables' import { Pointed, CanvasStyleType, LocationStyler, LocationSh...
<gh_stars>0 import { Device, Buffer, Shader, RenderPipeline, RenderPipelineParameters, PrimitiveTopology, assert, AttributeBinding, Binding } from '@luma.gl/api'; import {cast} from '@luma.gl/api'; import {WebGPUShader} from '..'; import WebGPUDevice from '../adapter/webgpu-device'; import WebGPUBuffe...
/******************************************************************************** * Copyright (C) 2017 Ericsson and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * T...
<filename>example/assembly/index.ts // Export AssemblyScript-side glue code or not everything will work (for example the customElements API). export * from '../node_modules/asdom/assembly/glue' import { document, Audio, Element, HTMLDivElement, HTMLTemplateElement, Text, HTMLElement, HTMLImageElement, Node, ...
/** * ColorHug-1.0 */ import type * as Gjs from './Gjs'; import type * as Gio from './Gio-2.0'; import type * as GObject from './GObject-2.0'; import type * as GLib from './GLib-2.0'; import type * as GUsb from './GUsb-1.0'; import type * as Colord from './Colord-1.0'; export enum ColorSelect { RED, WHITE, ...
<filename>prisma/generated/typegraphql-prisma/enhance.ts<gh_stars>1-10 import { ClassType } from "type-graphql"; import * as crudResolvers from "./resolvers/crud/resolvers-crud.index"; import * as actionResolvers from "./resolvers/crud/resolvers-actions.index"; import * as relationResolvers from "./resolvers/relations/...
// import { Component, OnInit } from '@angular/core'; import { CdkDragDrop, moveItemInArray, transferArrayItem, copyArrayItem } from '@angular/cdk/drag-drop'; import { SelectionModel } from '@angular/cdk/collections'; import { FlatTreeControl } from '@angular/cdk/tree'; import { Component, Injectable, ElementRef, ViewC...
<gh_stars>0 import { Hash, sha512 } from './hash' import { CurveType, Constants } from './curve' import { KeyUtils } from './key-utils' import { SerializationFunctions, IntFactory, B32, hexToBytes, bytesToHex, Hex, PrivKey } from './serialization' import { MathFunctions } from './math' import { BigIntType, Integers } f...
import * as bufferutils from './bufferutils'; import { reverseBuffer } from './bufferutils'; import * as bcrypto from './crypto'; import * as bscript from './script'; import { OPS as opcodes } from './script'; import * as types from './types'; const typeforce = require('typeforce'); const varuint = require('varuint-bi...
/** * Virtual DOM patching algorithm based on Snabbdom by * <NAME> (@paldepind) * Licensed under the MIT License * https://github.com/snabbdom/snabbdom/blob/master/LICENSE * * Modified for Stencil's renderer and slot projection */ import * as d from '../../declarations'; import { Build } from '../../util/build-c...
<filename>src/app/pages/eimboard/real-time-monitoring-update/real-time-monitoring-update.component.ts import { Component, OnInit } from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; declare var layui:any; // 引入jquery declare var $:any; // echart let rtmjs = require('../../../../assets/eimdo...
<gh_stars>0 // Types. import { Point, View as ViewDefinition, dip } from "."; // Requires import { ViewCommon, layout, isEnabledProperty, originXProperty, originYProperty, automationTextProperty, isUserInteractionEnabledProperty, traceEnabled, traceWrite, traceCategories, traceError, traceMessageType, ShowModa...
declare class uPlot { /** when passing a function for @targ, call init() after attaching self.root to the DOM */ constructor( opts: uPlot.Options, data?: uPlot.AlignedData, targ?: HTMLElement | ((self: uPlot, init: Function) => void) ); /** chart container */ readonly root: HTMLElement; /** status */ rea...
import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { Button, InputNumber, Spin } from 'antd'; import { Link, useHistory } from 'react-router-dom'; import { useConnection, useUserAccounts, MetaplexModal, MetaplexOverlay, formatTokenAmount, useMint, PriceFloorType, AuctionDa...
<gh_stars>1-10 /** * Copyright (c) Microsoft 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 applic...
import debounce = require('lodash.debounce'); import { observable, action, observe, computed } from 'mobx'; import { Injectable, Autowired } from '@opensumi/di'; import { toDisposable, WithEventBus, ComponentRegistryInfo, Emitter, Event, OnEvent, ResizeEvent, SlotLocation, CommandRegistry, localize...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * * Based on the ATS/Postiats lexer by <NAME>. *----------------------------...
<gh_stars>0 import { action, computed, observable, runInAction } from 'mobx'; import moment from 'moment'; import { get, includes, isEqual } from 'lodash'; import Store from './lib/Store'; import Request from './lib/LocalizedRequest'; import { ALLOWED_TIME_DIFFERENCE, DECENTRALIZATION_LEVEL_POLLING_INTERVAL, MAX_...
/* Copyright 2016 The TensorFlow Authors. 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 applicable law or agree...
// ------------------------------------------------------------- // WARNING: this file is used by both the client and the server. // Do not use any browser or node-specific API! // ------------------------------------------------------------- import INTERNAL_ATTRS from '../../processing/dom/internal-attributes'; impor...
import {KIND_TEXT} from '@remote-ui/core'; import type { RemoteRoot, RemoteComponent, RemoteText, RemoteChild, } from '@remote-ui/core'; import {Fragment} from '../Fragment'; import {createVNode} from '../create-element'; import {EMPTY_ARRAY} from '../constants'; import {removeNode} from '../utilities'; import...
// tslint:disable:max-line-length import * as boc from '@phoenix/boc'; import * as uuid from 'uuid'; import * as fs from 'fs'; import * as path from 'path'; import * as cookie from 'cookie'; import * as _ from 'lodash'; import * as express from 'express'; import { getReferencesOfEntity } from '@phoenix/schema'; import ...
<reponame>node-casl2-comet2/node-comet2-core "use strict"; import * as _ from "lodash"; import { Register16bit } from "../parts/register16bit"; import { Flag } from "../parts/flag"; import { Stack } from "../parts/stack"; import { Memory } from "../parts/memory"; import { Comet2Option, defaultComet2Option } from "./op...
<reponame>Dantedan/hanteki<filename>server/game/basecard.ts import _ = require('underscore'); const AbilityDsl = require('./abilitydsl.js'); const CustomPlayAction = require('./customplayaction.js'); const Effects = require('./effects'); const EffectSource = require('./EffectSource.js'); import CardAbility = require('...
///<reference path="../../Scripts/typings/FileSaver/FileSaver.d.ts"/> ///<amd-dependency path="filesaver"/> import G = require('./ggraph'); /** This class, and its concrete subclasses, correlate a geometry object with the SVG object that's currently rendering it. Note that while the geometry object persists for the d...
/** * @module botbuilder-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { LUISRuntimeClient as LuisClient, LUISRuntimeModels as LuisModels } from '@azure/cognitiveservices-luis-runtime'; import * as msRest from '@azure/ms-rest-js'; import { BotTel...
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { Raidbos...
<reponame>tyfkda/nesemu<filename>src/nes/cpu/inst.ts // Instruction definitions export const enum Addressing { UNKNOWN, IMPLIED, ACCUMULATOR, IMMEDIATE, IMMEDIATE16, ZEROPAGE, ZEROPAGE_X, ZEROPAGE_Y, ABSOLUTE, ABSOLUTE_X, ABSOLUTE_Y, INDIRECT, INDIRECT_X, INDIRECT_Y, RELATIVE, } export c...
import {LineLayoutArray, LineExtLayoutArray} from '../array_types'; import {members as layoutAttributes} from './line_attributes'; import {members as layoutAttributesExt} from './line_attributes_ext'; import SegmentVector from '../segment'; import {ProgramConfigurationSet} from '../program_configuration'; import {Tria...
import { LogicalKey } from './LogicalKey'; // HIDキーコード定義, キーボードの言語やレイアウトによらない共通部分 const enum HidKey { KU_RESERVED = 0, KU_A = 4, KU_B, KU_C, KU_D, KU_E, KU_F, KU_G, KU_H, KU_I, KU_J, KU_K, KU_L, KU_M, KU_N, KU_O, KU_P, KU_Q, KU_R, KU_S, KU_T, KU_U, KU_V, KU_W, KU_X, ...
import * as React from "react"; import * as ReactBootstrap from "react-bootstrap"; import Checkbox from '../Checkbox'; import FontAwesome from 'react-fontawesome'; const jsonic = require('jsonic'); import { select, Selection, event } from 'd3-selection'; import { drag } from 'd3-drag'; import * as d3Zoom ...
<reponame>darekg11/gb-js-multi-emu export enum NON_PREFIX_OP_CODES { NOOP = 0x00, DISABLE_INTERRUPTS = 0xF3, ENABLE_INTERRUPTS = 0xFB, HALT = 0x76, SCF = 0x37, CPL = 0x2F, CCF = 0x3F, DAA = 0x27, LOAD_TO_REG_A_VALUE_OF_REG_A = 0x7F, LOAD_TO_REG_A_VALUE_OF_REG_B = 0x78, LOAD_...
<reponame>lyn-boyu/x6 import { StringExt, ObjectExt, NumberExt } from '../../util' import { Point, Rectangle, Angle } from '../../geometry' import { Size, KeyValue } from '../../types' import { Cell } from './cell' import { PortData } from './port' import { Markup } from './markup' import { Edge } from './edge' import ...
import { Bee, bees } from 'Bee/Bee'; import { PowerBee } from 'Bee/PowerBee'; import { profile } from '../profiler/decorator'; @profile export class Traveler { private static structureMatrixCache: { [roomName: string]: CostMatrix } = {}; private static creepMatrixCache: { [roomName: string]: CostMatrix } = {}...
<reponame>grafana/grafana-polystat-panel<filename>src/ctrl.ts<gh_stars>10-100 import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk'; import _ from 'lodash'; import $ from 'jquery'; import kbn from 'grafana/app/core/utils/kbn'; import TimeSeries from 'grafana/app/core/time_series2'; import { D3Wrapper } from './d3...
<filename>packages/babel-plugin-transform-block-scoping/src/index.ts<gh_stars>1-10 import { declare } from "@babel/helper-plugin-utils"; import type { NodePath, Visitor, Scope } from "@babel/traverse"; import { visitor as tdzVisitor } from "./tdz"; import type { TDZVisitorState } from "./tdz"; import { traverse, templa...
<reponame>NomuraS/ELVis import * as _ from 'lodash'; import * as Util from '../lib/util'; import * as Vis from '../lib/vis'; // import * as Vis from 'vis'; // import * as $ from 'jquery'; import { Either } from 'tsmonad'; import { string2number } from '../lib/util'; declare let $: any //----------------------------...
import { CanvasMode } from './canvas-state'; import { CanvasElement, D3Selection } from './canvas-element'; import * as d3 from 'd3'; export const PORT_TYPE_INPUT = 1; export const PORT_TYPE_OUTPUT = 0; export interface NodeSelector extends d3.Selection<SVGElement, NodeElement, any, any> { } export const node_widt...
<gh_stars>0 import { Browser, addClass, removeClass, createElement, Draggable, extend, formatUnit, detach } from '@syncfusion/ej2-base'; import { EventHandler, setStyleAttribute, BlazorDotnetObject, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base'; import { BlazorDragEventArgs, MouseEventArgs, select } from '@s...
<gh_stars>1-10 import * as t from 'io-ts'; import {RTTI_id} from '../Scalar/RTTI_id'; import {RTTI_Meta, IMeta} from './RTTI_Meta'; import {RTTI_uri} from '../Scalar/RTTI_uri'; import {RTTI_Element, IElement} from './RTTI_Element'; import {RTTI_code} from '../Scalar/RTTI_code'; import {RTTI_Narrative, INarrative} from ...
import { Component, OnInit, ViewEncapsulation, AfterViewInit, OnDestroy } from '@angular/core'; import { BehaviorSubject, forkJoin, Observable, of, Subscription } from 'rxjs'; import { map, withLatestFrom, switchMap, filter } from 'rxjs/operators'; import { Graph } from 'graphlib'; import { featureCollection as tFeatur...
<filename>src/simulationcraft/definitions.ts import { ClassId } from "@wowts/wow-mock"; import { SpecializationName } from "../PaperDoll"; import { LuaObj, LuaArray, pairs, lualength, ipairs, kpairs } from "@wowts/lua"; import { AstNode, NodeType, AstAnnotation } from "../AST"; import { TypeCheck } from "../tools";...
<filename>src/estimate.ts<gh_stars>0 import { ExnDomain, ExnPrecision, MINIMUM_EXPONENT } from "./defs"; import { ErrorEstimate, RoundingMode } from "./error-estimate"; import { EstimateIvl } from "./estimate-ivl"; import { LFSpecial, LongFloat } from "./longfloat"; // Import some macros //! import './macros/debug.jsm...
import { AssetEvent, LoaderEvent, AssetLibrary, URLRequest, URLLoaderEvent, RequestAnimationFrame, AudioManager, PerspectiveProjection, CoordinateSystem, ColorUtils, Loader, WaveAudioParser, EventDispatcher, Vector3D, } from '@awayjs/core'; import { DisplayObjectContainer, MovieClip, FrameScriptManager...
/* Utility */ /* ============================= type() ============================= */ export const type = (function(global) { // An iffy to catch the global object (window / global) var cache = {}; return function(obj) { // This function is what takes in the argument -> type(argument) var key; ...
<reponame>christine0908/angular /** * @license * Copyright Google Inc. 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 {AttributeMarker, ComponentTemplate} from '..'; import {SchemaMetadata} from ...
import { Component, OnInit } from '@angular/core'; import BigNumber from 'bignumber.js'; import {AddressBookService} from '../../services/address-book.service'; import {BehaviorSubject} from 'rxjs'; import {WalletService} from '../../services/wallet.service'; import {NotificationService} from '../../services/notificati...
<reponame>design-automation/mobius-parametric-modeller-dev-0-7 import { Component, Output, EventEmitter, Input, OnInit, ViewEncapsulation, OnDestroy} from '@angular/core'; import { ProcedureTypes, IFunction, IProcedure } from '@models/procedure'; import { IFlowchart } from '@models/flowchart'; import * as CircularJSON...
<gh_stars>0 import { Component, OnInit, AfterViewInit, Inject } from '@angular/core'; import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog'; import Errores from 'src/app/Backend/XML/Analizador/Excepciones/NodoErrores'; import tablaSimbolos from 'src/app/Backend/XML/Analizador/Simbolos/tablaSimbolos'; im...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
import { NgModule, Component, ElementRef, OnInit, AfterViewInit, AfterContentInit, AfterViewChecked, OnDestroy, Input, Output, Renderer2, EventEmitter, forwardRef, ViewChild, ChangeDetectorRef, TemplateRef, ContentChildren, QueryList, ContentChild, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; ...
import { clamp } from '../math/math_utils'; import { HSVVector } from './color_vectors/hsv_vector'; import { RGBAVector } from './color_vectors/rgba_vector'; import { HSLAVector } from './color_vectors/hsla_vector'; import { HSVAVector } from './color_vectors/hsva_vector'; const PARSE_RGBA = /rgba\((\d\d?\d?)\s*,\s*(\...
<reponame>swimos/swim // Copyright 2015-2021 Swim.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 applica...
<gh_stars>0 import {Dgeni, DocCollection} from 'dgeni'; import {Injector} from 'dgeni/lib/Injector'; import { Symbol } from 'typescript'; import {ReadTypeScriptModules} from '.'; import {AccessorInfoDoc} from '../../api-doc-types/AccessorInfoDoc'; import {ClassExportDoc} from '../../api-doc-types/ClassExportDoc'; impor...
/* eslint-disable no-new-func */ /* eslint-disable eqeqeq */ /** * 个性化组件utils工具包 * @date: 2019-12-15 * @version: 0.0.1 * @author: zhaotong <<EMAIL>> * @copyright Copyright (c) 2019, Hands */ import React from 'react'; import { Form, Input, InputNumber } from 'hzero-ui'; // import { groupBy, isNil, isArray, isEmp...
<reponame>matthew-mcallister/dance<filename>src/commands/select.ts // Select / extend // https://github.com/mawww/kakoune/blob/master/doc/pages/keys.asciidoc#movement import * as vscode from "vscode"; import { Command, CommandFlags, CommandState, InputKind, registerCommand } from "."; import { EditorState } from "../s...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
<reponame>Coestaris/simple-interactive-interpreter<gh_stars>1-10 class Variable { public name: string; public value: number; public constructor(name: string, value: number) { this.name = name; this.value = value; } } class SyntaxLogic { public expressionStack: Token[]; public...
<gh_stars>10-100 import { Euler, EulerOrder } from "./Euler"; import { Matrix4 } from "./Matrix4"; import { Quaternion } from "./Quaternion"; import { makeQuaternionFromRotationMatrix4 } from "./Quaternion.Functions"; import { Vector2 } from "./Vector2"; import { Vector3 } from "./Vector3"; export function makeMatrix4...
<reponame>neoblizz/apexo<gh_stars>0 import { raw } from "./raw"; export const es: typeof raw = { patient: "paciente", appointment: "cita", treatment: "tratamiento", logout: "cerrar sesión", operators: "operadores", missed: "perdido", "who are you?": "¿quién eres tú?", "switch user": "cambiar de usuario...
<filename>src/filesystem/ntfs.ts<gh_stars>0 // Documentation from: https://github.com/libyal/libfsntfs/blob/master/documentation/New%20Technologies%20File%20System%20(NTFS).asciidoc import { toHex, expect, toBitmap, hexDump } from '../common'; import { File } from '../file'; import { BinaryReader } from '../reader'; i...
<gh_stars>1-10 interface ArrayEx extends ArrayConstructor { from: any; } /**Extend the Window object */ interface WindowEx extends Window { attachEvent: boolean; } //https://github.com/nathancahill/split // The programming goals of Split.js are to deliver readable, understandable and // maintainable code, wh...
import ASTNode from '~/syntax/ASTNode'; import { Location } from '~/parser/Tokenizer'; import INodeVisitor from '~/syntax/INodeVisitor'; import { TType, TInteger, TFloat, TChar, TBool, TArray, TStruct, TTuple, TInferred, TFunction, TUnion, TGeneric, TParam, TAny, TNever, TUnknown, determineGeneralType } from '~/typ...
import { MediaManagerPluginEntry, MediaPluginEnvType } from 'mmir-lib'; import { PluginExportConfigInfo , RuntimeConfiguration, SettingsBuildEntry , SpeechConfigField , AppConfig , PluginExportInfo , DirectoriesInfo , ResourceConfig , PluginOptions , PluginConfig , TTSPluginSpeechConfig , PluginExportBuildConfig , P...
<gh_stars>0 import { RoomAgent } from "agents/RoomAgent"; import { SpawnAgent } from "agents/SpawnAgent"; import { PlaceConstructionSites } from "tasks/PlaceConstructionSites"; import { gridFortress } from "utils/layouts/gridFortress"; import { COLORS, getLogger } from "utils/Logger"; import { distance } from "utils/ma...
import '../next-server/server/node-polyfill-fetch' import chalk from 'chalk' import gzipSize from 'next/dist/compiled/gzip-size' import textTable from 'next/dist/compiled/text-table' import path from 'path' import { isValidElementType } from 'react-is' import stripAnsi from 'next/dist/compiled/strip-ansi' import { Re...
import {transformToViewState, applyViewStateToTransform, cloneTransform} from '../utils/transform'; import {normalizeStyle} from '../utils/style-utils'; import {deepEqual} from '../utils/deep-equal'; import type { Transform, ProjectionSpecification, ViewState, ViewStateChangeEvent, DragPanOptions, ZoomRota...
<filename>lib/client.ts<gh_stars>0 /** * @license * Copyright 2021 Open Ag Data Alliance * * 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...