text
stringlengths
9.82k
47.8k
/** * @module node-opcua-server */ // tslint:disable:no-console import { EventEmitter } from "events"; import * as async from "async"; import * as chalk from "chalk"; import { assert } from "node-opcua-assert"; import { ErrorCallback, UAString } from "node-opcua-basic-types"; import { coerceLocalizedText, Lo...
<reponame>ngoctrantl/SLPDB<filename>slptokengraph.ts<gh_stars>0 import { SlpTransactionDetails, SlpTransactionType, LocalValidator, Utils, Slp, Primatives, SlpVersionType } from 'slpjs'; import BigNumber from 'bignumber.js'; import { BITBOX } from 'bitbox-sdk'; import * as bitcore from 'bitcore-lib-cash'; imp...
import {StorageStats} from 'filecoin-network-stats-common/lib/domain/Stats'; import {TimeseriesDatapoint} from 'filecoin-network-stats-common/lib/domain/TimeseriesDatapoint'; import {HistogramDatapoint} from 'filecoin-network-stats-common/lib/domain/HistogramDatapoint'; import ChartDuration from 'filecoin-network-stats...
// Copyright (C) 2016 <NAME> // MIT License. See LICENSE file for details. /** * Package x25519 implements X25519 key agreement. */ import { randomBytes, RandomSource } from "@stablelib/random"; import { wipe } from "@stablelib/wipe"; export const PUBLIC_KEY_LENGTH = 32; export const SECRET_KEY_LENGTH = 32; export...
<filename>src/languageFeatures.ts<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------...
<reponame>msaglJS/msagl-js<gh_stars>10-100 import {Stack} from 'stack-typescript' import {String} from 'typescript-string-operations' // import {Assert} from '../../utils/assert' import {Constraint} from './Constraint' import {ConstraintVector} from './ConstraintVector' import {DfDvNode} from './DfDvNode' import {Varia...
// Copyright 2017 <NAME> (<EMAIL>) import * as Konva from "konva"; import {CommandBuffer, ICommand} from "./command_buffer"; import {ComponentBuffer, IComponent} from "./component_buffer"; import {ImageLoader} from "./image_loader"; const snapDistance = 5; const gridSize = 50; const defaultNewLinePos = [20, 20, 20, 1...
<filename>module/src/index.ts import VF from 'vexflow'; /** * Identifies the closest item as well as the index within the list of that item. * @param iterable The list of items to iterate through. * @param closestFunct The function assigning a distance of an item of type T. * @returns The index of the closest item...
/* Copyright (c) 2020, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followin...
/** * * Contract Detail * @todo need to be refactor * */ import React, { useEffect, useState, useMemo } from 'react'; import styled from 'styled-components/macro'; import { useTranslation } from 'react-i18next'; import { translations } from 'locales/i18n'; import { useRouteMatch } from 'react-router-dom'; import {...
<reponame>visulate/visulate-for-oracle /*! * Copyright 2020 Visulate LLC. 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/L...
export interface ApplicationInformation { application_name?: string; application_version?: string; application_build_number?: string; install_referrer?: string; _package?: string; os?: ApplicationInformationOsEnum; apple_search_ads_attributes?: { [key: string]: { [key: string]: string } }; }...
import type { JSONSchema4, JSONSchema6, JSONSchema7, JSONSchema6Definition, JSONSchema7Definition, } from 'json-schema'; import type { OpenAPIV3 } from 'openapi-types'; import * as ts from 'typescript'; import { factory } from 'typescript'; import YError from 'yerror'; import camelCase from 'camelcase'; type...
/* * +-------------------------------------------+ * | MIITVIP | * +-------------------------------------------+ * | Copyright (c) 2020 makeit.vip | * +-------------------------------------------+ * | Author: makeit <<EMAIL>> | * | Homepage: https://www.makeit.vip ...
<filename>IndicatorsUI/MainUI/angular-app/src/app/map/google-map/google-map.component.ts<gh_stars>1-10 import { Component, Input, Output, ElementRef, ViewChild, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import 'rxjs/rx'; import { isDefined } from '@angular/compiler/src/util'; import { Googl...
import { date, publisher, title, toRule, url } from '@metascraper/helpers' import { sequenceT } from 'fp-ts/Apply' import * as E from 'fp-ts/Either' import { constVoid, flow, identity, pipe } from 'fp-ts/function' import * as IO from 'fp-ts/IO' import * as O from 'fp-ts/Option' import * as RA from 'fp-ts/ReadonlyArray'...
<reponame>bcgov/business-correct-ui<gh_stars>0 import { AccountTypes, ActionTypes, FilingCodes, FilingNames, FilingTypes } from '@/enums/' import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module/' import { AddressesIF, IncorporationFilingIF, NameRequestDetailsIF, NameRequestApplicantIF, OrgPersonIF, Shar...
<filename>src.ts/contract.ts 'use strict'; import { Zero } from './constants'; import * as errors from './errors'; import { defaultAbiCoder, formatSignature, parseSignature } from './utils/abi-coder'; import { getAddress, getContractAddress } from './utils/address'; import { BigNumber, bigNumberify } from './utils/b...
<reponame>raja1203/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 * as ts from 'typescript'; import {CollectorOptions} from './collector'; import {...
// // Copyright 2013 Google Inc. // Copyright 2014-21 <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...
<reponame>lideming/webfx // file: utils.ts import { IDOM, buildDOM } from "./buildDOM"; import { getDOM } from "./view"; const _object_assign = Object.assign; const _object_hasOwnProperty = Object.prototype.hasOwnProperty; // Time & formatting utils: export function strPadLeft(str: string, len: number, ch: string =...
import { MetadataGroup, validators } from '@ionic/cli-framework'; import { columnar, prettyPath } from '@ionic/cli-framework/utils/format'; import { isValidURL, slugify } from '@ionic/cli-framework/utils/string'; import { mkdir, pathExists, remove, unlink } from '@ionic/utils-fs'; import * as chalk from 'chalk'; import...
<filename>src/MatrixEventHandler.ts import { Bridge, RemoteUser, MatrixUser } from "matrix-appservice-bridge"; import { IEventRequest, IEventRequestData } from "./MatrixTypes"; import { MROOM_TYPE_UADMIN, MROOM_TYPE_IM, MROOM_TYPE_GROUP, IRemoteUserAdminData, IRoomEntry } from "./store/Types"; import { BifrostProto...
import { Svg, Path, Command } from '@svg-drawing/core' import { convertRGBAImage } from './utils/convertRGBAImage' import type { Rgba } from './palette' import type { PathObject } from '@svg-drawing/core' type ColorQuantization = number[][] // Edge node types ( ▓: this layer or 1; ░: not this layer or 0 ) // 12 ░░ ...
<reponame>misode/loot-table import { DataModel } from '@mcschema/core' import init, { biome_parameters, climate_noise, climate_sampler, multi_noise } from 'deepslate-rs' // @ts-expect-error import wasm from 'deepslate-rs/deepslate_rs_bg.wasm?url' import type { NoiseParameters } from 'deepslate/worldgen' import { FixedB...
'use strict'; import * as vscode from 'vscode'; import * as path from 'path'; import { Project, GroupOrder, Group, ProjectRemoteType, getRemoteType, DashboardInfos, ProjectOpenType, ReopenDashboardReason, ProjectPathType, sanitizeProjectName } from './models'; import { getDashboardContent } from './webview/webviewConte...
<gh_stars>0 /* eslint-disable space-before-blocks */ /* eslint-disable no-useless-concat */ /* eslint-disable no-lonely-if */ /* eslint-disable default-case */ /* eslint-disable brace-style */ /* eslint-disable array-callback-return */ /* eslint-disable no-plusplus */ /* eslint-disable eqeqeq */ /* eslint-disable @type...
import { request } from '@nativescript-community/perms'; import { TWEEN } from '@nativescript-community/tween'; import { MapPosVector } from '@nativescript-community/ui-carto/core'; import { GeoJSONVectorTileDataSource, MergedMBVTTileDataSource } from '@nativescript-community/ui-carto/datasources'; import { PersistentC...
/* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ /// <amd-module name="View"/> // @Typ...
<filename>ui/raidboss/data/05-shb/raid/e5s.ts import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } fro...
/* eslint-disable @typescript-eslint/no-this-alias */ /* eslint-disable @typescript-eslint/no-explicit-any */ import React, { Component } from 'react'; import { Form, Tabs, Row, Col, Table, Input, message, Spin, Badge } from 'antd'; import TableForm from '@/common/tableForm'; import styles from './index.module.less' im...
import Taro, { Component } from "@tarojs/taro"; import { AtIcon } from 'taro-ui'; import { View, Text, Image, ScrollView, Button, Swiper, SwiperItem } from "@tarojs/components"; import "./index.styl"; import ApplyToTheStore from '@/components/applyToTheStore'; import { discountCoupons } from "./service"; import { getLo...
// <reference path="../../../typings/globals/socket.io-client/index.d.ts" /> //-- // <reference path="../../../typings/globals/three/index.d.ts" /> //-- // <reference path="../shared/Player.ts"/> // <reference path="../shared/SnowBall.ts"/> // <reference path="./OutlineEffect.ts"/> // <reference path="../shared/Ter...
<reponame>ai-qing-hai/GUI import { CustomEvent, Group, Text } from '@antv/g'; import { clamp, deepMix, get, isUndefined, minBy } from '@antv/util'; import { Rail } from './rail'; import { Labels } from './labels'; import { Tag } from '../tag'; import { Marker } from '../marker'; import { LegendBase } from './base'; imp...
<filename>src/form.ts import fs = require('fs'); import os = require('os'); import { PassThrough, Readable } from 'stream'; import { Writable } from 'stream'; import { EventEmitter } from 'events'; import { IncomingHttpHeaders } from 'http'; import { StringDecoder } from 'string_decoder'; import createError = require('...
/* Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, ...
<reponame>Kaabi/OneSignal-Website-SDK<filename>src/bell/Bell.ts import bowser from 'bowser'; import { AppUserConfigNotifyButton, BellSize, BellPosition, BellText } from "../models/Prompts"; import { NotificationPermission } from "../models/NotificationPermission"; import OneSignalEvent from '../Event'; import MainHelpe...
import * as sql from "./driver_postgres_sql.ts"; import { ConnectionOptionsPostgres } from "../../connection_options.ts"; import { interpolate, stringify } from "../../builders/base/sql.ts"; import { IConnectionOperations } from "../../iconnection_operations.ts"; import { ParamSchemaDefinition } from "../../builders/pa...
import { ApiPage, ApiRevision, MwnPage } from 'mwn'; import { ApiQueryRevisionsParams } from 'mwn/build/api_params'; import { MwnError } from 'mwn/build/error'; import winston = require( 'winston' ); import { mwbot, $ } from 'src/modules/afc/util/index'; import { isReviewer } from 'src/modules/afc/util/reviewer'; asy...
import { Box3, Vector3, Quaternion, Matrix4, V_000, DIRECTION, V_111, Box2, Vector2, Q_IDENTITY } from './math-utils' import { EtherealLayoutSystem, Node3D } from './EtherealLayoutSystem' import { MemoizationCache } from './MemoizationCache' import { SpatialAdapter } from './SpatialAdapter' const InternalRawState = S...
<reponame>ghalliday/Visualization<filename>packages/common/src/Palette.ts import * as _colorbrewer from "colorbrewer"; import { values as d3Values } from "d3-collection"; import { rgb as d3RGB } from "d3-color"; import { interpolateLab as d3InterpolateLab } from "d3-interpolate"; import { interpolateInferno as d3Interp...
<gh_stars>0 import * as debugModule from 'debug'; import ChatServer from './app/server'; const debug = debugModule('chat:command'); import { strict as assert } from 'assert'; import { getTime, hashMessage } from './app/client'; import { isMsg, Msg} from './comm/proto3'; import { ServerChannelManager } from './chan/serv...
<reponame>IRE-vs/vscode-plsql-debug<filename>src/plsqlRuntime.ts import * as vscode from 'vscode'; import { readFileSync } from 'fs'; import { EventEmitter } from 'events'; import { DebugProtocol } from 'vscode-debugprotocol'; import { Handles } from 'vscode-debugadapter'; const { listen } = require('./lib/jdwp/listen'...
<filename>extras/ionicons-v4/index.d.ts /* Ionicons v4.6.3 */ export declare const ionIosAddCircleOutline: string; export declare const ionIosAddCircle: string; export declare const ionIosAdd: string; export declare const ionIosAirplane: string; export declare const ionIosAlarm: string; export declare const ionIosAlbu...
<reponame>jarryd229/rsps-VirtueRS3 import { EventType } from 'engine/enums'; import { Player } from 'engine/models'; import _events from 'engine/events'; import { varbit, varp, setVarp, setVarBit, setVarc } from 'engine/var'; import { hideWidget, setWidgetEvents, openCentralWidget, closeAllWidgets, openWidget } from '...
<filename>src/red.ts /** * This file implements a serializable factory function that is invoked once per sandbox * and it is used to create red proxies where all identities are defined inside * the sandbox, this guarantees that any error when interacting with those proxies, has * the proper identity to avoid leakin...
import { faArrowsAltV, faCheckCircle, faCircleNotch, faCog, faExclamationTriangle, faEye, faFileAlt, faPen, faPencilAlt, faPlus, faPlusCircle, faTimes, faTimesCircle, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useEffec...
/* eslint-disable func-call-spacing */ import { AlreadyDeclaredIdentifier, CompilationParseError, MissingPropertyError, SandboxError, SandboxPropertyError, UnknownIdentifier } from '#lib/Canvas/Util/ValidateError'; import { Parser } from 'acorn'; import * as CanvasConstructor from 'canvas-constructor/skia'; impor...
import { MutableRefObject, useCallback, useEffect, useRef, useState, useMemo, useLayoutEffect, } from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {DateTime} from 'luxon'; import {getMyTeams, getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams'; impor...
<reponame>Satsaa/Nomodbot import * as path from 'path' import TwitchClient from './client/client' import { IrcMessage, PRIVMSG } from './client/parser' import Data from './data' import deepClone from './lib/deepClone' import * as util from './lib/util' import { readDirRecursive } from './lib/util' import ParamValidato...
<reponame>harrisdt15f/multisite-admin<filename>src/app/routes/game/game-type/game-type.component.ts<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { _HttpClient } from '@delon/theme'; import { NzMessageService } from 'ng-zorro-antd'; import { GameService } from 'app/service/game.service'; import ...
<filename>src/utils/utilities.ts import cache from "../cache"; let ownUserName: string; /** * Dynamically determines the username of the current user. * * @return {string} * The determined user name. */ export function getUsername(): string { if (ownUserName) return ownUserName; if (_.size(Game.spawns) ==...
<filename>src/app/features/category-item-details/categories/categories-store.ts import { Injectable } from '@angular/core'; import { Store } from '@app/store'; import { Item } from '@app/core/interfaces/item'; import { RealtimeDbService } from '@app/core/firebase/realtime-db.service'; import { CategoryItemDetailsServic...
<reponame>snowpeak/EasyDockerForWSL2 import * as electron from "electron"; const app = electron.app; import {ipcMain} from "electron"; import {ElectronLog} from "electron-log"; import * as log from "electron-log"; import {Config} from './Config'; import path from "path"; import fs from "fs"; import {MainWin} from './...
<reponame>Zuoxiaoxian/mabo_eim<filename>src/app/pages-popups/system-set/edit-menu/edit-menu.component.ts import { Component, OnInit, ViewChild } from '@angular/core'; import { SYSMENUEDIT, MULU,SYSMENU, EDIT_MENU_ISMENU, ANNIU_PARTENT_MULU, UpSuccess, UpDanger } from "../../../appconfig"; import { NbDialogRef } from ...
<filename>src/span_to_data/spans_to_component.ts import { Disahkan, DocumentMetadata, MengingatNode, MenimbangNode, PasalSetNode, } from '../component'; import assertNever from 'assert-never'; import { chain, curry, isEmpty, isUndefined, keys, map, parseInt, reduce } from 'lodash'; import { Bab, Bagian, ...
// We need to do this because navigator.share and navigator.clipboard do not currently exist in TypeScript typings interface ShareOptions { url?: string; text?: string; title?: string; } interface NavigatorWithShare extends Navigator { share: (options: ShareOptions) => Promise<void>; } declare const navigator...
/* * Copyright 2014-2016 <NAME> <<EMAIL>> * * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. */ import * as path from 'path'; import Component from 'vue-class-component'; import Vue from 'vue'; import {WebComponent} from 'extraterm-web-component-decorators'; import {B...
/** * Background functions for the native messenger interface */ import * as semverCompare from "semver-compare" import * as config from "@src/lib/config" import { browserBg, getContext } from "@src/lib/webext" import Logger from "@src/lib/logging" const logger = new Logger("native") const NATIVE_NAME = "tridactyl...
import * as path from 'path'; import * as nodeutil from './nodeutil'; import * as child_process from 'child_process'; import * as fs from 'fs'; import * as buildengine from './buildengine'; import * as commandParser from './commandparser'; import U = pxt.Util; function fatal(msg: string) { U.userError(msg) } fun...
import React from 'react'; import {findDOMNode} from 'react-dom'; import {Renderer, RendererProps} from '../factory'; import {SchemaNode, Schema, Action} from '../types'; import {filter} from '../utils/tpl'; import cx from 'classnames'; import Button from '../components/Button'; import Checkbox from '../components/Chec...
<reponame>bscotch/stitch import { StitchError, assert } from './errors'; import fs from './files'; import { explode, md5, oneline } from '@bscotch/utility'; import paths from './paths'; import { YypComponents, YypComponentsLegacy } from '../types/Yyp'; import { Gms2ProjectComponents } from '../types/Gms2ProjectComponen...
<reponame>zewa666/aurelia-slickgrid import { autoinject } from 'aurelia-framework'; import { HttpClient as FetchClient } from 'aurelia-fetch-client'; import { HttpClient } from 'aurelia-http-client'; import { I18N } from 'aurelia-i18n'; import { AureliaGridInstance, AutocompleteOption, Column, Editors, Editor...
/* eslint-disable react-hooks/exhaustive-deps */ import React, {useEffect, useState} from 'react'; import { View, Text, ScrollView, TouchableOpacity, TextInput, FlatList, Keyboard, KeyboardAvoidingView, Platform, Alert, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; im...
import { App, ComponentPublicInstance as VueInstance } from "vue"; import { Action, RunOne, RunAll, RunFunc, ActionForSleep, ActionForResolve } from "me-actions"; import { DomUtils } from "me-utils-browserify"; import { createPopper, VirtualElement as PopperVirtualElement, Instance as PopperInstance, Placement ...
<reponame>jakoblistabarth/area-preserving-polygon-schematization import * as geojson from "geojson"; import { STEP } from "../../../src/UI/algorithm-navigator"; import config, { Config } from "../../schematization.config"; import Configuration from "../c-oriented-schematization/Configuration"; import FaceFaceBoundaryLi...
// @ts-nocheck import { BufferGeometry, FileLoader, Float32BufferAttribute, Group, LineBasicMaterial, LineSegments, Loader, Material, Mesh, MeshPhongMaterial, Points, PointsMaterial, Vector3, Color } from 'three'; // o object_name | g group_name const _object_pattern = /^[og]\s*(.+)?/; // mtllib file_ref...
import assert from 'assert'; import crypto from 'crypto'; import createDebug from 'debug'; import {SRP, SrpClient} from "fast-srp-hap"; import net, {Socket} from 'net'; import {ParsedUrlQuery} from "querystring"; import tweetnacl from 'tweetnacl'; import * as encryption from './crypto/encryption'; import {PairingFeatur...
type GL_CONSTANTS = { DEPTH_BUFFER_BIT: number; STENCIL_BUFFER_BIT: number; COLOR_BUFFER_BIT: number; POINTS: number; LINES: number; LINE_LOOP: number; LINE_STRIP: number; TRIANGLES: number; TRIANGLE_STRIP: number; TRIANGLE_FAN: number; ZERO: number; ONE: number; SRC_COLOR: number; ONE_MINUS...
<filename>carol.ts /** * Adopted from https://github.com/GoogleChromeLabs/carlo/blob/8f2cbfedf381818792017fe53651fe07f270bb96/lib/carlo.js * which is licensed as follows: * * Copyright 2018 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this...
import * as React from "react"; import * as THREE from "three"; import { Canvas, PointerEvent, useThree, ViewportData, } from "react-three-fiber"; import { animated, useSpring, SpringValue } from "@react-spring/three"; import { useGesture } from "react-use-gesture"; import styled from "@emotion/styled/macro"; i...
<reponame>viridia/sapling import { BackSide, Box2, BufferGeometry, CanvasTexture, Color, DoubleSide, Float32BufferAttribute, Group, LineSegments, Matrix4, Mesh, MeshStandardMaterial, Scene, sRGBEncoding, Vector2, Vector3, WireframeGeometry, } from 'three'; import { OutlineMaterial } fr...
<reponame>doc22940/trs80-cassette-reader-js import {frameToTimestamp} from "./AudioUtils"; import * as Basic from "./Basic"; import * as Hexdump from "./Hexdump"; import {Program} from "./Program"; import {Tape} from "./Tape"; import {Cassette, Trs80} from "trs80-emulator"; import {WaveformDisplay} from "./WaveformDisp...
<filename>components/AppContext.ts import { createSend, SendFunction } from '@oasisdex/transactions' import { createWeb3Context$ } from '@oasisdex/web3-context' import { trackingEvents } from 'analytics/analytics' import { mixpanelIdentify } from 'analytics/mixpanel' import { BigNumber } from 'bignumber.js' import { ...
<reponame>arguzmx/pika-gd-web import { AppEventBus } from './../../../@pika/state/app-event-bus'; import { ConfiguracionEntidad } from './../../model/configuracion-entidad'; import { EntidadesService, CONTEXTO } from './../../services/entidades.service'; import { Component, OnInit, Input, OnDestroy, ViewChild...
import {LitElement, html, customElement, query, property} from 'lit-element'; import {repeat} from 'lit-html/directives/repeat'; import '@polymer/iron-flex-layout/iron-flex-layout.js'; import '@polymer/iron-icon/iron-icon.js'; import '@polymer/marked-element/marked-element'; import {afterNextRender} from '@polymer/po...
import * as electron from 'electron'; import installDevToolsExtension from 'electron-devtools-installer'; import * as devTools from 'electron-devtools-installer'; import * as log from 'electron-log'; import * as path from 'path'; import * as url from 'url'; import * as fs from 'fs'; import * as child_process from 'chil...
import { XTEA } from "../xtea"; import { NetworkMessage, OutputMessage } from "../networkMessage"; import { g_rsa, g_config, g_game } from '../otserv'; import { GameState } from '../enums'; import { Protocol } from './protocol'; import * as crypto from 'crypto'; import { AuthService, IPService } from '../services'; imp...
import React, { useState } from 'react'; import { Arinc429Word } from '@shared/arinc429'; import { useUpdate } from '@instruments/common/hooks'; import { getSmallestAngle } from '@instruments/common/utils'; import { calculateHorizonOffsetFromPitch, calculateVerticalOffsetFromRoll, HorizontalTape, LagFil...
// noinspection DuplicatedCode import React from "react"; import cls from "classnames"; import lodash from "lodash"; import Icon, { MinusOutlined, SortAscendingOutlined, SortDescendingOutlined } from "@ant-design/icons"; import copyToClipboard from "copy-to-clipboard"; import SimpleBar from "simplebar-react"; import {...
<filename>src/bin/lib/lib.ts import * as LibPath from 'path'; import * as LibFs from 'mz/fs'; import * as recursive from 'recursive-readdir'; import { Field as ProtobufField, IParserResult as ProtobufIParserResult, Method as ProtobufMethod, Namespace as ProtobufNamespace, ReflectionObject as ProtobufReflectionObjec...
<filename>Source/Utils/URL/URLs.ts import { GetSelectedProposalID } from 'firebase-feedback'; import { Assert, VURL } from 'js-vextensions'; import { RootState } from 'Store'; import { GetNodeL2 } from 'Store/firebase/nodes/$node'; import { MaybeLog } from 'vwebapp-framework'; import { GetSelectedUserID, GetSelectedTer...
import {ResultSetModel} from "../models/ResultSetModel"; import {ResultModel} from "../models/ResultModel"; import {isEmpty} from "./Util"; import {GroupModel} from "../models/GroupModel"; import {ConvertFunctionEnum, ConvertFunctionModel} from "./ConvertFunction"; import {Chart, ChartStatus, ChartStatusEnum} from "../...
<filename>src/extensions/arrayExtensions.ts /* eslint-disable max-classes-per-file */ import './object'; import { MapDelegate, SimpleMapDelegate, IArrayOrderByConfig, IArrayDiff, IMergeWithOptions, MergeWithUpdateOperations, GroupingDelegate } from '../models'; import { ArgumentInvalidError, InternalError } from '.....
import { PathLike } from "fs"; import * as ts from "typescript"; // Circular references interface MyCircularInterface1 { foo: string; bar: MyCircularInterface2; } interface MyCircularInterface2 { foo: number; bar: MyCircularInterface1; } interface MyCircularInterface3 { next: MyCircularType; } interface MyCirc...
// TODO: CLEAN AND MODULARISE FILE CONTENTS - At the moment it is more just a set of exsperiments import { newEngine } from '@comunica/actor-init-sparql-file' import CommunicaEngine from '@ldflex/comunica' import * as fs from 'fs' import { PathFactory } from 'ldflex' import { namedNode } from '@rdfjs/data-model' impor...
import BigNumber from 'bignumber.js'; export interface SymbolMap<T> { [symbol: string]: T; } export type eNetwork = eEthereumNetwork | ePolygonNetwork | eXDaiNetwork | eAvalancheNetwork; export enum eEthereumNetwork { buidlerevm = 'buidlerevm', kovan = 'kovan', ropsten = 'ropsten', main = 'main', coverag...
<filename>src/app/paginas/crear-familiasmemorama/crear-familiasmemorama.component.ts<gh_stars>0 import { Component, OnInit, ViewChild } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import * as URL from 'src/app/URLs/...
<reponame>demaa-team/synthetix-subgraph // The latest Synthetix and event invocations import { Synthetix as SNX, Transfer as SNXTransferEvent, } from '../generated/subgraphs/issuance/issuance_Synthetix_0/Synthetix'; import { Synthetix32 } from '../generated/subgraphs/issuance/issuance_Synthetix_0/Synthetix32'; im...
import {LapackInfo} from "../info"; import {scopy} from "../blas/scopy"; import {sswap} from "../blas/sswap"; import {sgemm} from "../blas/sgemm"; import {strsm} from "../blas/strsm"; import {slaswp} from "../blas/slaswp"; import {sger} from "../blas/sger"; import {sscal} from "../blas/sscal"; import {isamax} from "../...
<reponame>kshetline/aw-clock // Started by using https://codepen.io/dudleystorey/pen/HLBki, but this has grown and changed *quite* a bit from there. import { AppService } from './app.service'; import $ from 'jquery'; import { DateAndTime, getDayOfWeek, getLastDateInMonthGregorian, DateTime, Timezone } from '@tubular/t...
<gh_stars>0 import { WebGLRenderer, PerspectiveCamera, DirectionalLight, Color, AmbientLight, LoadingManager, Quaternion, Object3D, Euler, Clock, } from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import URDFLoader, { URDFRobot } from '....
<reponame>maziac/z80-debug import * as fs from 'fs'; import {Utility} from '../misc/utility'; import {UnifiedPath} from '../misc/unifiedpath'; import {SourceFileEntry, ListFileLine} from './labels'; import {AsmConfigBase} from '../settings/settings'; import * as minimatch from 'minimatch'; import {MemoryModel} from '.....
<gh_stars>1-10 import app = require("teem"); import { randomBytes } from "crypto"; import appsettings = require("../appsettings"); import Abrangencia = require("../enums/abrangencia"); import abrangencias = require("./abrangencia"); import bancosTecnologia = require("./bancoTecnologia"); import BancoTecnologia = requi...
import { scaleOrdinal, scaleQuantize, scaleSequential, interpolateRgbBasis, } from 'd3'; const paletteCategory1 = [ '#e1c8df', '#9ecd9d', '#acd9d6', '#e4e36b', '#bfa1c5', '#e4d3b8', '#facba8', '#ced4ea', '#acd9d6' ]; const paletteCategory2 = [ '#b6dde2', ...
<reponame>jorroll/rschedule import { ArgumentError, DateAdapter, DateAdapterCTor, DateAdapterBase, DateInput, dateInputToDateAdapter, dateInputToDateTime, DateTime, getDifferenceBetweenWeekdays, InfiniteLoopError, IRunNextArgs, normalizeDateTimeTimezone, } from '@rschedule/core'; export interfa...
import { Direction } from '../../typings'; import { Boundary } from '../../utils/geometry/boundary'; import { Port } from '../element/port'; export interface Connection { source: Port; target: Port; } interface Endpoint { bounds: Boundary; direction: Direction; } const enum Orientation { Collinear, Clock...
/* Would rather use const than var, but end up with redeclaration errors. /** * Options for system.settings */ export enum SYS { CLOSED = 1 << 0, // System is closed to New Users SYSSTAT = 1 << 1, // Sysops activity included in statistics NOSYSINFO = 1 << 2, // Suppress system info display at logon PWEDIT ...
import { ConfigManager } from '@zwave-js/config' interface IGenericMap { [key: number]: string } interface IHassClass { [type: string]: { [type: string]: string } } interface ISensorType { sensor: string objectId: string props: ISensorProps } interface ISensorProps { device_class?: string icon?: string } ...
<gh_stars>0 import * as Discord from 'discord.js'; import * as sqlite3 from 'sqlite3' class ParseError extends Error { argument: Argument; constructor(err, argument) { super(err) this.argument = argument } } class TooManyArgumentsError extends Error { parseError: ParseE...