text
stringlengths
9.82k
47.8k
interface RGB { r: number, g: number, b: number } export interface RGBColor extends RGB { a?: 1, format?: 'name' | 'rgb' } export interface RGBAColor extends RGB { a: number, format?: 'name' | 'rgba' } export interface HEX3Color extends RGB { a?: 1, format?: 'name' | 'hex3' } export interface HEX4C...
import { Utf8Tools } from '@nimiq/utils'; interface Config { cdn: string, network: 'test' | 'main', } type TransactionObjectIn = { sender: string, senderType?: Nimiq.Account.Type, recipient: string, recipientType?: Nimiq.Account.Type, value: number, fee: number, validityStartHeight...
<reponame>ruaruagerry/weagentclient<gh_stars>0 /** * 游戏进行中的界面 */ class GamePlayingPanel extends egret.Sprite { public static GAME_END: string = 'gameend' public static GAME_RESTART: string = 'gamerestart' private mode: number = 1 private skin: number = 1 private bgimg: egret.Bitmap private te...
type Position = { x: number, y: number} | number[]; type ForceSpecification = string | LuaForce; type PlayerSpecification = number | string | LuaPlayer; type SurfaceSpecification = number | string | LuaSurface; type TechnologySpecification = string | LuaTechnology | LuaTechnologyPrototype; type ItemStackSpecificat...
import * as fs from "fs"; import * as assert from "assert"; import * as path from "path"; import * as minimist from "minimist"; import {quantile, median, mean, max, min, sum, modeFast as mode, standardDeviation} from "simple-statistics"; import * as moment from "moment"; import {Ride, RideWithMap} from "./strava-activi...
import Moralis from "moralis/node.js"; import fetch from "node-fetch"; import AWS from "aws-sdk"; AWS.config.update({region:'us-east-1'}); const dynamoDb = new AWS.DynamoDB.DocumentClient(); import {get_total_pages,put_txns,get_all_txns,get_page_txns,put_inventory,get_all_inventory,get_page_inventory, put_tokenwise...
import { Scanner } from './Scanner'; import { Chunk } from './Chunk'; import { CONSTS_MAX, CTokenType, LOCALS_MAX, OpCode, Precedence, typeGuardSwitch } from './common'; import { disassembleChunk } from './debug'; import { funValue, numberValue, stringValue } from './value'; class Compiler { public fun: FunValue = n...
<reponame>MrAwesome/Liburry // [] check lang names for displayName everywhere // [] use async node file checks when in node mode to ensure that db files exist // [] create some test data that should fail various cases, to make sure validation is happening // [] create some test data that should pass various complex cas...
/* eslint-disable indent */ /** * Orthogonal Connector Router * - Given two rectangles and their connection points, returns the path for an orthogonal connector. * * https://jose.page * 2020 */ type BasicCardinalPoint = "n" | "e" | "s" | "w"; type Direction = "v" | "h"; type Side = "top" | "right" | "bottom" |...
<reponame>embbnux/firebase-js-sdk /** * @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 * * Unl...
/* Copyright 2019 <NAME> <<EMAIL>> Copyright 2015, 2016, 2019, 2020, 2021 The Matrix.org Foundation C.I.C. 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...
/** * @module format * @author <NAME> <<EMAIL>> * @created Mon Dec 03 2018 19:46:41 GMT+0800 (China Standard Time) * @modified Sat Apr 13 2019 18:23:46 GMT+0800 (China Standard Time) */ import { create, createFn, byte, upper, escapeStr, isFn, isNil, lower } from '../utils' import { get, parsePath } from '../path'...
<reponame>cathrinevaage/windicss import type { StaticUtility } from '../../interfaces'; // https://tailwindcss.com/docs/font-variant-numeric // This feature uses var+comment hacks to get around property stripping: // https://github.com/tailwindlabs/tailwindcss.com/issues/522#issuecomment-687667238 const fontVariants =...
// @ts-ignore import io from 'console-read-write' import BN from 'bn.js' import HDWalletProvider from '@truffle/hdwallet-provider' import Web3 from 'web3' import { Contract } from 'web3-eth-contract' import { HttpProvider } from 'web3-core' import { fromWei, toBN, toHex } from 'web3-utils' import ow from 'ow' import {...
/* Copyright 2018 - 2021 FM Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
import { Component, OnInit, ViewEncapsulation, EventEmitter, Output } from '@angular/core'; import $ from 'jquery'; import { FormBuilder, FormGroup } from '@angular/forms'; import { NgbRatingConfig } from '@ng-bootstrap/ng-bootstrap'; import { ModeService } from '../../services/mode.service'; import { MapsAPILoade...
<reponame>skkskine/ng-zorro-antd<filename>components/select/select.component.ts /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { FocusMonitor } from '@angular/cdk/a11y'; import { Dir...
///<reference path="../typings/node/node.d.ts"/> ///<reference path="../typings/mocha/mocha.d.ts"/> ///<reference path="../src/types.d.ts"/> import assert = require("assert"); import path = require("path"); import fs = require("fs"); import util = require('util'); import PersistentResults = require("../src/Persistent...
/// <reference path="../types/modules.d.ts" /> import * as axios from 'axios'; import * as Faye from 'faye'; import * as http from 'http'; import * as https from 'https'; import jwtDecode from 'jwt-decode'; import { Personalization } from './personalization'; import { Collections } from './collections'; import { Stre...
<reponame>eguneys/solsido<gh_stars>1-10 import { is_note, make_time_signature, time_note_value, time_nb_note_value, time_duration_bm } from './music/types' import { note_pitch, note_duration, note_octave, note_accidental } from './music/types' import { chord_note_rest_duration } from './piano' import { is_rest, make_no...
<filename>src/compiler.ts ///<reference path="pxtpackage.d.ts" /> import * as tf from '@tensorflow/tfjs' import * as tfi from './tfi' import * as U from './util' import * as ir from "./ir" import { Reg } from "./ir" import { float16AsUintToFloat } from './float16' export type Options = ir.Options export interface Co...
import { is as is_, isExists, merge, copy, clamp, getStringVariables, setStringVariables, getLeadingZerosNumber, getOrdinalNumber } from '@amaui/utils'; import { timezones, ITimezone } from './timezones'; interface IOptions { utc?: boolean; overrides?: { months?: string[]; monthsAbr?: string[]; daysWee...
<filename>meetup-gui/src/app/main-layout/system-diagram/renderer/renderer.component.ts<gh_stars>1-10 import { ChangeDetectorRef, Component, ElementRef, Input, OnDestroy, OnInit, ViewChild, ViewEncapsulation, } from '@angular/core'; import { Router } from '@angular/router'; import * as d3ContextMenu from 'd3-context-...
<filename>bdsx/cxxmap.ts // Visual C++ uses red black tree for std::map // https://en.wikipedia.org/wiki/Red%E2%80%93black_tree import * as util from 'util'; import { capi } from "./capi"; import { CxxLess } from "./cxxfunctional"; import { CxxPair, CxxPairType } from "./cxxpair"; import { mangle } from './mangle'; i...
<filename>packages/shared/src/models/chemical_incident-value.ts export enum ChemicalSubstance { UnknownLow = 'UnknownLow', UnknownMedium = 'UnknownMedium', UnknownHigh = 'UnknownHigh', alpha_Methylstyrene = 'alpha_Methylstyrene', Trichloroethane_1_1_1 = 'Trichloroethane_1_1_1', Dichloroethane_1_1 = 'Dichlor...
import { AfterContentInit, ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, Input, NgZone, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core'; import { NgForm } from '@angular/forms'; import * as moment from 'moment'; import { ModalDirective} from 'ngx-bootstrap'; import { P...
import constant from "./const"; import Minimap from "./minimap"; import Relation, { RelationData } from "./realtion/relation"; import spiralArrange from "./spiral-arrange"; import Table from "./table"; import { isColumnFk } from "./types/column"; import CommonEventListener from "./types/common-event-listener"; import C...
import { core, Script as LumosScript } from '@ckb-lumos/base'; import { serializeMultisigScript } from '@ckb-lumos/common-scripts/lib/secp256k1_blake160_multisig'; import { key } from '@ckb-lumos/hd'; import { sealTransaction, TransactionSkeletonType } from '@ckb-lumos/helpers'; import { RPC } from '@ckb-lumos/rpc'; im...
// This is a temporary hack and should be changed as soon as possible. // I'm not sure the cause of these errors but they are as follows: // PhantomCSS causes the compiler to throw an error because it cannot find resemble. // PhantomJS causes an error because it contains a duplicate definition of require which conflict...
<filename>src/BloomBrowserUI/bookEdit/js/arrowKeyWorkaroundManager.ts // This handler should be in a keydown event, not a keyup event. // If you use keyup, the selection will already have changed by the time you get the event. // But we would like to know the selection before pressing the arrow key. export function fix...
<reponame>mogsdad/eslint-plugin-yml<filename>src/rules/indent.ts import type { AST } from "yaml-eslint-parser" import { createRule } from "../utils" import { hasTabIndent, getNumOfIndent } from "../utils/yaml" import type { YAMLToken, Fix, RuleFixer } from "../types" import { isHyphen, isQuestion, isColon } from "../ut...
<filename>index.ts // #!/usr/bin/env babel-node // -*- coding: utf-8 -*- /** @module website-utilities */ 'use strict' /* ! region header [Project page](https://torben.website/website-utilities) Copyright <NAME> (info["~at~"]torben.website) 16.12.2012 License ------- This library written by <...
<filename>paginate-dom/index.ts type CutNode = { tagName: string, node: Node, top: number, bottom: number }; interface CutPage { original_closest: CutNode, closest: CutNode, outer: CutNode, /** elements that will be copied (parents) or moved (closest) to the next page */ stack: CutNode[], page:...
import React from "react"; import { updateComponent } from "../../../Component/Update"; import { WindowData, CreateWindowPayload, SetWindowCoordsPayload, SetWindowModePayload, SetWindowNamePayload, SetWindowPosPayload, SetWindowSizePayload, WindowId, WindowList, WindowManagerAction, WindowManagerActionTypes, WindowMana...
import * as fs from 'fs' import * as https from 'https' import { StateObject } from '../state-object' import { RequestEvent } from '../request-event' import { EventEmitter } from 'events' import { Config } from './config' export type RequestEventFn = <T extends RequestEvent>(ev: T) => Promise<T> export type ServerOpt...
import { App } from "../../engine/app"; import { Vec4, Vec2, Rect, Mat3, Shape, Vec3, Ray, IVec2, RayHit } from "../../engine/math"; import { levels, ILevelData } from './levels'; // import assets import tileBasePng from './assets/tile-base.png'; import nextLevelBtnPng from './assets/NextLevelBtn.png'; import { Textu...
import { BitstreamElement, BitstreamReader, BitstreamWriter, DefaultVariant, Field, FieldDefinition, Marker, Serializer, Variant, VariantMarker } from "@astronautlabs/bitstream"; import { U29Serializer } from "./u29"; // 00100011 export enum TypeMarker { Undefined = 0x00, Null = 0x01, False = 0x02, Tr...
<reponame>deep-cube/deep-cube<gh_stars>1-10 import { MoveT, CubieT, OriChg, PermChg, StickerT, StickerExtT } from "./Defs"; import { u, d, f, b, l, r, m, e, s} from "./Defs"; import { FaceletT, FaceletCubeT, corners_coord, edges_coord, u_face, f_face, color_map } from "./Defs"; import { Typ, Face, C, E, T, U, D, F, B, ...
<filename>packages/aura-language-server/src/tern-server/tern-aura.ts import * as infer from '../tern/lib/infer'; import * as tern from '../tern/lib/tern'; import * as walk from 'acorn-walk'; import * as fs from 'fs'; import * as path from 'path'; import { getComponentForJS, getLibFile, getLibraryForJS, getCmpImports, g...
<reponame>lukadriel7/quasar-extras-svg-icons /* Vaadin Icons v22.0.0-alpha7 */ export declare const vaadinAbacus: string; export declare const vaadinAbsolutePosition: string; export declare const vaadinAcademyCap: string; export declare const vaadinAccessibility: string; export declare const vaadinAccordionMenu: strin...
enum Queue { // Games on Custom games Custom = 0, // 5v5 Blind Pick games on Summoner's Rift // Deprecated in patch 7.19 in favor of queueId 430 SUMMONERS_RIFT_5V5_BLIND_PICK_DEPRECATED_2 = 2, // 5v5 Ranked Solo games on Summoner's Rift // Deprecated in favor of queueId 420 SUMMONERS_RIF...
import { ExtensionContext, Position, Range, TextDocument, workspace, window, Uri, DiagnosticCollection } from "vscode"; import { basename } from "path"; "use strict"; import * as fs from "fs"; import * as YAML from "yamljs"; import * as cp from "child_process"; import * as jsesc from "jsesc"; import { ...
import EmbeddedCollection from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/abstract/embedded-collection.mjs'; import { ActorData } from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/module.mjs'; import API from '../api.js'; import CONSTANTS from '../constants.js'; impo...
<reponame>jasonlai2006/mypacman<filename>src/engine/play.ts import {COIGIG, COLOR, COS, SIN} from './config'; import Game from './game'; import Item from './item'; import Stage from './stage'; import Map from './map'; class Play { _LIFE: number; _SCORE: number; constructor() { this._LIFE = 100...
<gh_stars>0 import { Component, ReflectiveInjector, Injector, Inject, Optional, NgModule, OnInit, AfterViewInit, OnDestroy, ViewChild, ElementRef } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { RimaAAAService } from '@colabo-rima/f-aaa/rima-aaa.service'; import {MaterialModule} fro...
// eslint-disable-next-line no-use-before-define import React, { useCallback, useEffect, useRef, useState } from 'react' import Button from '../semantic-tailwind/Button' import Grid from '../semantic-tailwind/Grid' import { Provider, useSubscribedState, SubscribedState as S } from 'react-subscribed-state' import dotPro...
import * as Ark from '@/ark'; import { StatMultipliers } from '@/ark/multipliers'; import { Stat } from '@/ark/types'; import { FOOD, HEALTH, NUM_STATS, SPEED, TORPOR } from '@/consts'; import { Server } from '@/data/firestore/objects'; import { intervalAverage, intFromRange, intFromRangeReverse } from '@/number_utils'...
/*- * ========================LICENSE_START================================= * TeamApps * --- * Copyright (C) 2014 - 2021 TeamApps.org * --- * 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...
// import firebase from "firebase/app"; import { db } from "../config/firebase"; import { v4 as uuid } from "uuid"; // Swal Notifications import Swal from "sweetalert2"; import withReactContent from "sweetalert2-react-content"; // Toastr Notification import { toast, ToastPosition } from "react-toastify"; import { No...
import { Spinner } from 'office-ui-fabric-react/lib/Spinner'; import { SpinnerSize } from 'office-ui-fabric-react'; import Waypoint from 'react-waypoint'; import { IPersonaSharedProps, Persona, PersonaSize, PersonaPresence } from 'office-ui-fabric-react/lib/Persona'; import { MessageBar, MessageBarType } from 'office-u...
<reponame>vltansky/angular-cli /** * @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 { UnsuccessfulWorkflowExecution } from '@angular-devkit/schematics'; import { N...
import { extend, isBlazor } from '@syncfusion/ej2-base'; import { remove, isNullOrUndefined, updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base'; import { IGrid, NotifyArgs, EditEventArgs, AddEventArgs, SaveEventArgs } from '../base/interface'; import { parentsUntil, isGroupAdaptive, refreshForeignD...
/** * @fileoverview Generated from diagnosticsMessages.json. Do not edit. * @license Apache-2.0 */ /** Enum of available diagnostic codes. */ export enum DiagnosticCode { Not_implemented_0 = 100, Operation_is_unsafe = 101, User_defined_0 = 102, Feature_0_is_not_enabled = 103, Low_memory_limit_exceeded_by_...
<reponame>kevjumba/oppia<gh_stars>1-10 // Copyright 2014 The Oppia 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/...
<reponame>sushmarchandran/kui /* * Copyright 2019-2020 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 requi...
/* global _WORKLET */ /** * Copied from: * react-native/Libraries/StyleSheet/normalizeColor.js * react-native/Libraries/StyleSheet/processColor.js * https://github.com/wcandillon/react-native-redash/blob/master/src/Colors.ts */ /* eslint no-bitwise: 0 */ import { Platform } from 'react-native'; import { makeRemot...
// Copyright (c) 2021-2022 <NAME> // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import { flow, Kind, Lazy, tupled } from '@fp4ts/core'; import { AndThen, Either, Identity, IdentityF, Left, List, Monad, None, Option, ...
declare var $: any; import { fabric } from 'fabric'; class StateManager { private currentState: string; private stateStack: string[]; // Undo stack private redoStack: string[]; // Redo stack private locked: boolean; // Determines if the state can currently be saved. private maxCount = 100; // We keep 100 ite...
import { envMap } from '../../cli-driver'; import { BzeroTargetStatusPollError, DigitalOceanBZeroTarget, DigitalOceanDistroImage, DigitalOceanSSMTarget, getDOImageName, getPackageManagerType, SsmTargetStatusPollError } from '../digital-ocean/digital-ocean-ssm-target.service.types'; import { DigitalOceanSSMTargetService...
/****************************************************** * Project: EFZ * Author: <NAME> * Purpose: Database management. Maintains the client connection * and dynamic query execution. * Revision History: None ******************************************************/ import * as locks from 'locks'; import * as cass...
<reponame>Frankiamme/uProxy-p2p /// <reference path='../../third_party/generic/jsurl.d.ts' /> /** * social.ts * * Interactions for network-specific social providers. * * To add new social providers, list them as dependencies in the primary * uProxy freedom manifest (freedom-module.json) with the 'SOCIAL-' prefix...
<gh_stars>100-1000 import { Vec } from "../math/Vec"; import { Mat3 } from "../math/Mat3"; import { Mat4 } from "../math/Mat4"; import { v3, Vec3 } from "../math/Vec3"; import { Box } from "../struct/3d/Box"; import { Sphere } from "../struct/3d/Sphere"; import { BufferAttribute, Float32BufferAttribute, Uint16BufferAtt...
import { gettext } from '../../../utils/gettext'; import type { CommentApp } from '../../CommentApp/main'; import type { Annotation } from '../../CommentApp/utils/annotation'; import type { Comment } from '../../CommentApp/state/comments'; import { DraftailEditor, ToolbarButton, createEditorStateFromRaw, serial...
import { Anim, AnimateParams, AnimEntity, ControlParams, Selector, StyleElement, SelectorContext, Instructions, IterationParams, AnimMarker, AnimTimeLine, AnimContainer, AnimPlayer, PlayArguments, PlayParams } from './types'; import { easeOutElastic } from './easings'; import { log, parseValue } from './utils'; import ...
import slugify from "slugify"; import { Record, ProductPrototype, ProductVariantPrototype, BulkDiscount, ID, Unpacked, FacetPrototype, FacetValuePrototype, OptionGroupPrototype, } from "./types"; import { IMPORT_OPTION_GROUPS, IMPORT_ATTRIBUTE_COLUMNS, } from "./data-utils/attributes"; import { se...
<filename>src/resolve.ts import { SrcFileSet, Pos, NoPos } from './pos' import { Universe } from './universe' import { TypeCompat, basicTypeCompat } from './typecompat' import { ErrorCode, ErrorReporter, ErrorHandler } from './error' import { debuglog as dlog } from './util' import { token } from './token' import { Num...
import coreModule from '../core_module'; import _ from 'lodash'; import $ from 'jquery'; import Sortable, { MultiDrag, Swap } from 'sortablejs'; import { parser } from '../lexer/cal.js'; import { inputElementCharByPosition, getPosition, strlen} from '../util/dom'; import { // getACompositeFactor, getAConstantsFact...
import { Component,ViewChild } from '@angular/core'; import { NavController, NavParams, Platform, Events, AlertController,LoadingController,Content } from 'ionic-angular'; import { NativeStorage,Diagnostic, Toast } from 'ionic-native'; import { Http, Headers, RequestOptions } from '@angular/http'; import { Camera, File...
<gh_stars>1-10 /* * 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.apache....
<reponame>Dahaden/node-slack-sdk /// <reference lib="esnext.asynciterable" /> // polyfill for async iterable. see: https://stackoverflow.com/a/43694282/305340 // can be removed once node v10 is the minimum target (node v8 and v9 require --harmony_async_iteration flag) if (Symbol['asyncIterator'] === undefined) { ((Sym...
<filename>src/RoomCrowsnest.ts<gh_stars>0 import { ButtonInteraction, GuildMember, MessageButton, MessageEmbed } from "discord.js"; import Room, { Action, interactionEdit } from "./Room"; import SpaceSquirrels from "./SpaceSquirrels"; import { Rooms } from "./utils"; enum ActionStates { READY = "ready", DAMAGED = "d...
#!/usr/bin/env node import * as bril from "./bril"; import {readStdin} from "./util"; interface PhiOperation { op: "phi"; args: bril.Ident[]; dest: bril.Ident; type: bril.Type; } type SSAInstruction = bril.Instruction | PhiOperation; type LatticeElement = "top" | "bottom" | bril.Value; type FlowWor...
/** * @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 {ViewEncapsulation} from '../metadata/view'; import {RendererTypeV2, RendererV2} from '../render/api'; impor...
<reponame>Thor--/Rabby /* eslint-disable @typescript-eslint/ban-types */ import { EventEmitter } from 'events'; import HDKey from 'hdkey'; import * as ethUtil from 'ethereumjs-util'; import * as sigUtil from 'eth-sig-util'; import TransportWebUSB from '@ledgerhq/hw-transport-webusb'; import Transport from '@ledgerhq/hw...
import vm from 'vm'; import crypto from 'crypto'; import path from 'path'; import { defaultErrorCodeMessageMappers } from './defaultErrorCodeMessageMappers.js'; import { createMapDiagnosticMessage } from './utils/errorMessageMapping.js'; import ts from 'typescript'; import { parse } from 'stack-trace'; import { BasicSo...
<gh_stars>1-10 import { FlipnoteFormat, FlipnotePaletteDefinition, FlipnoteAudioTrack, FlipnoteSoundEffectTrack, FlipnoteSoundEffectFlags, FlipnoteMeta, FlipnoteParserBase } from './FlipnoteParserBase'; import { ADPCM_INDEX_TABLE_4BIT, ADPCM_STEP_TABLE, clamp, pcmResampleNearestNeighbour, pcmG...
import {EventCallback, WebLayer} from './WebLayer' import { addCSSRule } from './dom-utils' import { Matrix4 } from 'three/src/math/Matrix4' import { ResizeObserver as Polyfill } from '@juggle/resize-observer' const ResizeObserver:typeof Polyfill = (self as any).ResizeObserver || Polyfill export interface WebLayerOpti...
import * as Exchange from "@keepkey/device-protocol/lib/exchange_pb"; import * as Messages from "@keepkey/device-protocol/lib/messages_pb"; import * as Types from "@keepkey/device-protocol/lib/types_pb"; import * as core from "@bithighlander/hdwallet-core"; import * as bitcoinjs from "@shapeshiftoss/bitcoinjs-lib"; im...
import { WithTagCategoriesProps } from '@renderer/containers/withTagCategories'; import { BackIn, ImportCurationData, ImportCurationResponseData } from '@shared/back/types'; import { ARCADE } from '@shared/constants'; import { GameMetaDefaults } from '@shared/curate/defaultValues'; import { convertEditToCurationMetaFil...
import * as THREE from 'three'; import Actor, { ActorDirMode, ActorState } from '../Actor'; import { AnimType } from '../data/animType'; import SampleType from '../data/sampleType'; import { LBA2BodyType, LBA1BodyType } from '../data/bodyType'; import { LBA2WeaponToBodyMapping, LBA2Items, LBA1Items, LBA1WeaponToBodyMap...
<reponame>FairyWorld/plugin_semi-design import BaseFoundation, { DefaultAdapter } from '../base/foundation'; import isPromise from '../utils/isPromise'; import { getUuidv4 } from '../utils/uuid'; import { strings, numbers } from './constants'; import { getFileSize, byteKB, endsWith, mapFileTree } from './utils'; const...
import { Scene, PerspectiveCamera, WebGLRenderer, LineBasicMaterial, Vector2, Line, Object3D, MathUtils, Raycaster, Geometry, Color, ShapeGeometry, Shape, Mesh, MeshBasicMaterial, Material, BufferGeometry, Vector3, LineDashedMaterial, BoxGeometry, AmbientLight } from "three"; import Stats from "thr...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { IDisposable, ITelemetryLogger, ITelemetryProperties, } from "@fluidframework/common-definitions"; import { IDeltaQueue, ReadOnlyInfo, IConnectionDetails, } from "@fl...
<filename>src/api/fx-block-data/amp.ts import { PARAM_TYPE } from './fx-param-common'; import { eqType } from './graphic-eq'; const ampType = [ '59 Bassguy', '65 Bassguy Nrml', 'Vibrato Verb', 'Deluxe Verb Vib', 'Double Verb Vib', 'Jr Blues', 'Class-A 15W TB', 'Class-A 30W', 'Class-...
/** * @license * Copyright 2018 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
import React from "react"; import { useEffect, useReducer, useRef, useState } from "react"; import { useSelector } from 'react-redux'; import { useHistory, useLocation, Link } from 'react-router-dom'; import { ExclamationTriangleIcon, PencilAltIcon, QuestionCircleIcon } from '@patternfly/react-icons'; import Editor fr...
import { Glevb, Keys } from './index'; import {ex2, ey2} from '@b3gm/algebr4/dist/Vec2'; import Vec2 from '@b3gm/algebr4/dist/Vec2'; let glevb:Glevb = new Glevb({ root: document.getElementById('cvsViewPort'), mouseLock: true, interval: 3000, runLoop: false }); const PI2 = Math.PI * 2; class Cursor { public po...
/* IMPORTMODULES ------------------------------------------------------------ */ /* jQuery connect ---------------- */ import * as $ from "jquery"; /* Slick connect ----------------- */ /// <reference path="@types/slick/index.d.ts"/> /// <reference path="@types/js-global.d.ts"/> // @tslink:inject plug-modules...
<filename>src/scenes/Game.tsx import { Scene } from '../common/game'; import ShaderProgram from '../common/shader-program'; import Mesh from '../common/mesh'; import * as MeshUtils from '../common/mesh-utils'; import * as TextureUtils from '../common/texture-utils'; import Camera from '../common/camera'; import FlyCame...
<filename>src/visualComponent/axes/helpers/axisHelper.ts /* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""S...
// Licensed Materials - Property of IBM // // IBM Watson Analytics // // (C) Copyright IBM Corp. 2019 // // US Government Users Restricted Rights - Use, duplication or // disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // ******** FOR INTERNAL USE ONLY! ******** // sample from https://observablehq.c...
<reponame>ztlevi/perfetto<filename>ui/src/controller/pivot_table_controller.ts // 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 // // ...
import { Component, OnInit } from '@angular/core'; import { Errorr } from '../../../acceso-datos/util/entidades/errorr'; import { Subscription, Observable } from 'rxjs'; import { ItemData } from '../../../acceso-datos/util/entidades/item-data'; import { Trabajador } from '../../../acceso-datos/models/trabajador'; impor...
<reponame>PikminGuts92/noclip.website import * as CMB from './cmb'; import * as CMAB from './cmab'; import * as CSAB from './csab'; import * as ZAR from './zar'; import * as ZSI from './zsi'; import * as Viewer from '../viewer'; import * as UI from '../ui'; import ArrayBufferSlice from '../ArrayBufferSlice'; import ...
import React, { useState, useEffect } from 'react'; import log from 'electron-log'; import path from 'path'; import { Link, useHistory } from 'react-router-dom'; import { Row, Typography, Upload, message, List, Col, Alert, Select, Button, Modal, notification, Tooltip, Divider, Checkbox, } fr...
/********* * * Code by <NAME>, * September 2020 * * * TO DO: * 1. Add in caching for precision and es50? lib-r-math.js is so fast this might not be necessary * *********/ "use strict"; import Validator = require('validatorjs'); /* Some validation rules */ const prob_inclusive_vrule: string = 'between:0,1'; const pr...
<reponame>AlexPiro/forge-convert-utils import * as path from 'path'; import crypto from 'crypto'; import * as fse from 'fs-extra'; import * as pipeline from 'gltf-pipeline'; import * as gltf from './gltf-schema'; import { isUndefined, isNullOrUndefined } from 'util'; import { IMaterial, IFragment, IMesh, ILines, IPoin...
<gh_stars>1-10 //======> Import Tornado UI Helpers <=======// import Tornado from './Tornado'; /**======> Referance By Comment <====== * ===> 01 - Form UI Methods * ===> 02 - Controls Placeholder * ===> 03 - Control Validation * ===> 04 - Form Validate * ===> 05 - File Uploader * ===> 06 - Progress Component * ...
<reponame>Emboar02/Lanette import type { Player } from '../../room-activity'; import { addPlayers, assert } from '../../test/test-tools'; import type { GameCategory, GameCommandDefinitions, GameFileTests, IGameAchievement, IGameTemplateFile } from '../../types/games'; import type { IPokemon } from '../../types/pokemon...
// @ts-nocheck import React, { useMemo, useRef, useState, useLayoutEffect, useCallback } from "react"; import styled, { ThemeProvider } from "styled-components"; import useTheme from "../useTheme"; import useTranslatedLabels from "../useTranslatedLabels"; import { spaces } from "../common/variables.js"; import { v4 as ...