text
stringlengths
9.82k
47.8k
import { IScript, IScriptInfo, IScriptTask, Scripts } from './scripts'; import { IProcess, ISpawnOptions, Process } from './spawn-process'; import * as fs from 'fs'; import * as path from 'path'; import { Logger } from './logger'; import { confirmPrompt, formatTime, stringify, stringToArgv, Colors, Limiter } from './co...
<filename>src/vs/workbench/common/views.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------...
<filename>src/manager.ts import { Buffer, Disposable, disposeAll, Document, Documentation, events, FloatFactory, Neovim, OutputChannel, Uri, workspace, WorkspaceConfiguration } from 'coc.nvim' import debounce from 'debounce' import fs from 'fs' import path from 'path' import { format } from 'timeago.js' import Git from...
import { css } from 'styled-components'; import { borderRadius, colors, fontSize } from '@atlaskit/theme'; import { browser, tableMarginTop, tableMarginBottom, tableSharedStyle, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorSmallZIndex, akEditorTableNumberColumnWidth, akEditorTableBorder, ak...
import { Meteor } from 'meteor/meteor' import * as _ from 'underscore' import { check } from '../../lib/check' import { Rundowns, Rundown, DBRundown, RundownId } from '../../lib/collections/Rundowns' import { PartId } from '../../lib/collections/Parts' import { SegmentId } from '../../lib/collections/Segments' import {...
import fs = require('fs') import path = require('path') import chalk = require('chalk'); import { SshShellCommand } from '../../ssh-shell-command'; import { Resource } from '../../config/resources/resource-configuration'; import { Dictionary, label_strings } from '../../constants'; import { ValidatedOutput } from '../....
import { parse, setFilterMap } from '../ij2tpl'; setFilterMap({ toClass: function(type_) { let class_ = 'unknown'; if (type_ == 'directory') class_ = 'dir'; else if (type_ == 'file') class_ = 'file'; return class_; } }); const template = parse(`\ {{?contents.length}} <ul> {{?cont...
import { AmmTransaction, Trades, AmmExchange, Cash, Cashes, MarketOutcome, TransactionTypes, MarketInfo, ActivityData, ProcessedData, } from '../utils/types'; import { BigNumber as BN } from 'bignumber.js'; import { getDayFormat, getDayTimestamp, getTimeFormat } from '../utils/date-utils'; import { ...
/* <EMAIL> modified from pxt-servo/servodriver.ts load dependency "magicbit": "file:../pxt-magicbit" */ enum Offset { //% block=one ONE = 0, //% block=two TWO = 1, //% block=three THREE = 2, //% block=four FOUR = 3 } // enum IrPins{ // P0= 3, // P1= 2, // P2= 1, // ...
<filename>src/PokemonSnap/motion.ts<gh_stars>0 import * as MIPS from "./mips"; import { ObjectField, Path, findGroundHeight, findGroundPlane, CollisionTree, computePlaneHeight, DataMap, StateFuncs, EndCondition, GeneralFuncs } from "./room"; import { bitsAsFloat32, angleDist, clampRange, clamp, Vec3Zero } from "../Math...
<reponame>unbounce/iidy //tslint:disable no-any strict-boolean-expressions import * as os from 'os'; import * as fs from 'fs'; import * as pathmod from 'path'; import * as process from 'process'; import * as child_process from 'child_process'; import * as _ from 'lodash'; import * as crypto from 'crypto'; import * as ...
/* Converted from JavaScript to TypeScript by * nmtigor (https://github.com/nmtigor) @2022 */ /* Copyright 2012 Mozilla 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 * *...
import { Component, ViewChild, ElementRef, NgZone } from '@angular/core'; import { IonicPage, Platform, NavController, NavParams, ModalController } from 'ionic-angular'; import { Dialogs } from '@ionic-native/dialogs'; import {BGService} from './lib/BGService'; import {TestService} from './lib/Test...
<gh_stars>100-1000 import * as capnp from "capnp-ts"; import * as s from "capnp-ts/src/std/schema.capnp.js"; import { format } from "capnp-ts/src/util"; import initTrace from "debug"; import ts from "typescript"; import { createClassExtends, createConcreteListProperty, createConstProperty, createMethod, crea...
<reponame>horizon-efrei/HorizonBot import { channelMention, hideLinkEmbed, roleMention, TimestampStyles, userMention, } from '@discordjs/builders'; import { stripIndent } from 'common-tags'; import type { MessageSelectOptionData } from 'discord.js'; import { SchoolYear } from '@/types'; import { EclassStatus ...
<filename>modules/unspents/src/dimensions.ts import * as utxolib from '@bitgo/utxo-lib'; import * as _ from 'lodash'; import * as t from 'tcomb'; import Codes, { ChainCode } from './codes'; import { getInputComponentsWeight, InputComponents, inputComponentsP2sh, inputComponentsP2shP2pk, inputComponentsP2shP2...
import * as React from 'react'; import { Dictionary, ElementModel, ElementIri, LinkTypeIri } from '../data/model'; import { FatLinkType, Element } from '../diagram/elements'; import { DiagramView } from '../diagram/view'; import { EditorController } from '../editor/editorController'; import { EventObserver } from '....
import * as Ast from '../../ast' import {_, TupleLength} from '../../utils' import {matchAll} from '../../match' import {Token, TokenType} from '../../token' import {Resolver} from '../../localresolver' type StrMap<A> = { [_: string]: A } const AnonFuncGenerator = (() => { let i = 0 return { gen: () => `anon${i++}`...
<reponame>kacheshmarova/igniteui-angular<filename>src/directives/for-of/for_of.directive.ts import { CommonModule, NgForOf, NgForOfContext } from "@angular/common"; import { ChangeDetectorRef, ComponentFactory, ComponentFactoryResolver, ComponentRef, Directive, DoCheck, EmbeddedViewRef, ...
<reponame>danielameyer/stratus<gh_stars>0 /** * @file IdxPropertySearch Component @stratusjs/idx/property/search.component * @example <stratus-idx-property-search> * @see https://github.com/Sitetheory/stratus/wiki/Idx-Property-Search-Widget */ // Runtime import _ from 'lodash' import {Stratus} from '@stratusjs/run...
// Generated by dts-bundle v0.7.3 export class common { static reject(deferred: JQueryDeferred<any>, reason: string): void; static notImplementedPromise(): JQueryPromise<any>; static executeQuery: (clientContext: SP.ClientContext) => JQuery.Promise<any, any, any>; static FilterArray<T>(items: Arr...
import React, { useContext, useEffect } from 'react' import isSameWeek from 'date-fns/isSameWeek' import parse from 'date-fns/parse' import { DateType, InnerLocale, RangeValue, EventValue, InnerLocaleKey, DisabledTimes, PanelMode, SharedTimeProps, PickerMode, TimeUnit, } from './interface' import C...
<gh_stars>0 // MakeCode extension for PN532 NFC RFID module let RFID_DEBUG = false; /* let serial: any; let basic: any; let pins: any; let NumberFormat: any; let control: any; let EventBusValue: any; */ const PN532_COMMAND_GETFIRMWAREVERSION = 0x02; const PN532_COMMAND_SAMCONFIGURATION = 0x14; const PN532_COMMAND_RF...
import { Token, __Kind } from "./token"; import { Lexer } from "./lexer"; interface Macro { /** Params of a function-like macro */ params?: string[], /** Macro body */ body?: Token[], builtin?: boolean, } const ESCAPED_NEWLINE_REGEX = /\\\n/g; // Implemented according to behavior described in htt...
<filename>src/widgets/VerticalSectionAnalysis/Widget.ts<gh_stars>0 import BaseWidget = require('core/BaseWidget.class'); import Draw = require("esri/toolbars/draw"); import SimpleMarkerSymbol = require("esri/symbols/SimpleMarkerSymbol"); import SimpleLineSymbol = require("esri/symbols/SimpleLineSymbol"); import Color =...
/** @jsxImportSource @emotion/react */ import React from 'react'; import { css } from '@emotion/react'; // components import { AccordionList, AccordionItem } from 'components/Accordion'; import LoadingSpinner from 'components/LoadingSpinner'; import Select from 'components/Select'; import ShowLessMore from 'components...
import { createClient, Stanzas, Agent, Constants, } from 'stanza'; import crypto from 'crypto'; import Client from './Client'; import Base from './Base'; import Endpoints from '../../resources/Endpoints'; import PartyMessage from '../structures/PartyMessage'; import FriendPresence from '../structures/FriendPresence';...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import Master from '../Master'; import { DEFAULT_PROJECT_CONFIG, DEFAULT_PROJECT_CONFIG_META, ProjectConfig, ProjectConfig...
import { proxy } from 'comlink' import { castArray, groupBy, identity, isEqual } from 'lodash' import { combineLatest, concat, EMPTY, from, Observable, of, Subscribable, throwError } from 'rxjs' import { catchError, debounceTime, defaultIfEmpty, distinctUntilChanged, map, mergeMap, switchMap...
<reponame>esweet431/vscode-cmake-tools import * as child_process from 'child_process'; import * as chokidar from 'chokidar'; import * as fs from 'fs'; import * as path from 'path'; import * as vscode from 'vscode'; import * as nls from 'vscode-nls'; import { platform } from 'os'; import { EnvironmentVariables, Debugge...
<gh_stars>100-1000 import * as Long from "long"; import { Writer, Reader } from "protobufjs/minimal"; export interface CMsgVector { x: number; y: number; z: number; } export interface CMsgVector2D { x: number; y: number; } export interface CMsgQAngle { x: number; y: number; z: number; } ...
// Type definitions for Kinvey JavaScript SDK // Definitions by: Kinvey <https://github.com/Kinvey> import { Observable } from 'rxjs'; export namespace Kinvey { export let appVersion: string; export function initialize(config?: ClientConfig): Promise<User> ; export function init(config?: ClientConfig): Client...
import { Theme, WithStyles, withStyles, } from "@material-ui/core"; import cytoscape from "cytoscape"; import coseBilkent from "cytoscape-cose-bilkent"; import edgehandles from "cytoscape-edgehandles"; import MouseTrap from "mousetrap"; import React, { Component } from "react"; import { ConnectDropTarget, Drop...
<gh_stars>1-10 import app = require("durandal/app"); import appUrl = require("common/appUrl"); import viewModelBase = require("viewmodels/viewModelBase"); import getDatabaseStatsCommand = require("commands/resources/getDatabaseStatsCommand"); import aceEditorBindingHandler = require("common/bindingHelpers/aceEditor...
import { Fork } from "../types"; const Op = Object.prototype; const objToStr = Op.toString; const hasOwn = Op.hasOwnProperty; type Deep = boolean | ((type: Type<any>, value: any) => void); // A type is an object with a .check method that takes a value and returns // true or false according to whether the value match...
<reponame>radchukd/umbra-protocol /** * @dev Simplifies interaction with the Umbra contracts */ import { AddressZero, arrayify, BigNumber, BigNumberish, Contract, ContractTransaction, defaultAbiCoder, getAddress, hexlify, isHexString, JsonRpcSigner, keccak256, Overrides, sha256, splitSi...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import { JsonFile, FileSystem, ITerminal, NewlineKind } from '@rushstack/node-core-library'; import * as Webpack from 'webpack'; import * as path ...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See License.md in the project root for license information. *----------------------------------------------------------------------...
<gh_stars>0 import { HTMLWidget, Platform, PropertyExt, Widget } from "@hpcc-js/common"; import { Grid } from "@hpcc-js/layout"; import { local as d3Local, select as d3Select, selectAll as d3SelectAll } from "d3-selection"; import * as Persist from "./Persist"; import "../src/PropertyEditor.css"; function hasProperti...
/** * @license * MIT License * * Copyright (c) 2018 F-List * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, co...
import React from 'react' import _ from 'underscore' import { Translated, translateWithTracker } from '../../lib/ReactMeteorData/react-meteor-data' import ClassNames from 'classnames' import { Spinner } from '../../lib/Spinner' import { MeteorReactComponent } from '../../lib/MeteorReactComponent' import { IOutputLayer...
import { Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Input, Output, ViewChild, ViewEncapsulation } from '@angular/core'; import { NG_VALUE_ACCESSOR } from "@angular/forms"; import { coerceBooleanProperty } from '@angular/material/core/coercion/boolean-property'; import { Ob...
import debounce from 'lodash/debounce'; import type vscode from 'vscode'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { ISelection, Emitter, Event, IRange, getDebugLogger, Disposable } from '@opensumi/ide-core-common'; import { ISingleEditOperation, IDecorationApplyOptions, IResourceOpenOptions } f...
import events from 'events' import dgram from 'dgram' import {MAVLinkMessage, MAVLinkModule} from '@gardsteinsvik/node-mavlink' import {messageRegistry} from './message-registry' import {GlobalPositionInt} from './messages/global-position-int' import {Feature, FeatureCollection, Point} from 'geojson' import {MissionCo...
import * as joi from 'joi'; import { zipObject } from 'lodash'; import * as _ from 'lodash'; import * as moment from 'moment'; import { Select } from 'squel'; import { CompoundConstraint, Constraint, ConstraintType, DefaultValue, Filter, RawConstraint, SqlRow, TableDataType, TableHeader, TableMeta } from '../co...
import {LogSocket} from '../../log'; import {DzrpRemote, AlternateCommand} from '../dzrp/dzrpremote'; import {Z80RegistersClass, Z80_REG, Z80Registers, Z80RegistersStandardDecoder} from '../z80registers'; import {Utility} from '../../misc/utility'; import {DZRP, DZRP_VERSION, DZRP_PROGRAM_NAME} from '../dzrp/dzrpremote...
// Vendor // @ts-ignore missing type definition import FontFaceObserver from 'fontfaceobserver-es'; // Constants import { ASSET_LOADED, ASSETS_LOADED } from '../constants'; // Events import { eventEmitter } from '../events/EventEmitter'; // Features import getBrowserType from '../features/browserFeatures/getBrowserT...
import { LuaArray } from "@wowts/lua"; export declare type UIPosition = "TOPLEFT" | "CENTER" | "BOTTOMLEFT"; export declare type UIAnchor = "ANCHOR_BOTTOMLEFT" | "ANCHOR_NONE"; export interface UIRegion { CanChangeProtectedState(): boolean; ClearAllPoints(): void; GetCenter(): [number, number]; G...
///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" /> import _ from 'lodash'; import moment from 'moment'; import * as dateMath from 'app/core/utils/datemath'; import * as Druid from 'druid.d' import angular from "angular"; const DRUID_DATASOURCE_PATH = '/druid/v2/datasources'; export def...
import { createElement, VNode, Fragment, BaseComponent, isArraysEqual, findElements, mapHash, RefMap, ColProps, CssDimValue, hasShrinkWidth, renderMicroColGroup, ScrollGridProps, ScrollGridSectionConfig, ColGroupConfig, getScrollGridClassNames, getSectionClassNames, getSectionHasLiquidHeight, getAllow...
import Cookie from "cookie"; import { options } from "../common/global"; import { socket, url, myshell, clientId } from "./main"; import { scrollDown, setCaret, getCaret2, caretIsAtEnd, nextChar, selectRowColumn, } from "./htmlTools"; import { socketChat, syncChat } from "./chat"; import { initTutorials, re...
<filename>packages/cli/src/extract.ts // Copyright IBM Corp. 2018,2020. All Rights Reserved. // Node module: strong-globalize-cli // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 import * as _ from 'lodash'; import * as assert from 'asse...
<reponame>Koniverse/SubWallet-Extension // Copyright 2019-2022 @polkadot/extension-koni authors & contributors // SPDX-License-Identifier: Apache-2.0 import { AuthUrls, Resolver } from '@subwallet/extension-base/background/handlers/State'; import { AccountJson, AuthorizeRequest, RequestAccountList, RequestAccountSubsc...
<gh_stars>0 import {SQLQuery, Queryable} from '@databases/pg'; import { bulkInsert, bulkSelect, bulkUpdate, bulkDelete, BulkOperationOptions, } from '@databases/pg-bulk'; const NO_RESULT_FOUND = `NO_RESULT_FOUND`; const MULTIPLE_RESULTS_FOUND = `MULTIPLE_RESULTS_FOUND`; export function isNoResultFoundError( ...
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit'; import { BrowseMediaUtil } from '../browse-media-util.js'; import { EmblaCarouselType } from 'embla-carousel'; import { HomeAssistant } from 'custom-card-helpers'; import { createRef, Ref, ref } from 'lit/directives/ref.js'; import { cus...
import { RenderResult } from '@dojo/framework/core/interfaces'; import { tsx, create, node } from '@dojo/framework/core/vdom'; import id from '@redaktor/widgets/middleware/id'; import focus from '@dojo/framework/core/middleware/focus'; import { createICacheMiddleware } from '@dojo/framework/core/middleware/icache'; imp...
import { join } from "path"; import { Nullable, Undefinable } from "../../../shared/types"; import * as React from "react"; import { Position, ButtonGroup, Popover, Menu, MenuItem, Divider, Tag, Tooltip, Pre, AnchorButton, ProgressBar } from "@blueprintjs/core"; import { Node, TargetCamera, Vector3, Anim...
/** * Copyright 2017 Google Inc. All rights reserved. * Modifications 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.or...
<filename>src/Generator.ts import * as changeCase from 'change-case' import dayjs from 'dayjs' import fs from 'fs-extra' import got from 'got' import path from 'path' import prettier from 'prettier' import { castArray, dedent, groupBy, isEmpty, isFunction, memoize, noop, omit, uniq, values, } from '...
import { CodegenOptions } from './options' import { RootNode, TemplateChildNode, TextNode, CommentNode, ExpressionNode, NodeTypes, JSChildNode, CallExpression, ArrayExpression, ObjectExpression, Position, InterpolationNode, CompoundExpressionNode, SimpleExpressionNode, FunctionExpression, ...
/* Copyright 2017 - 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-2.0 Unless required by applicable law or agreed...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { UserGridOptions, ansiEscapes, markupToAnsi, markupToHtml, markupToJoinedPlainText, markupToPlainText, } from "@inte...
<gh_stars>0 import { Subscription } from 'rxjs'; import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, Input, OnDestroy, OnInit, Output, Self, TemplateRef, ViewChild } from '@angular/core'; import { FeruiUtils } from '../../.....
// Type definitions for websocket 1.0 // Project: https://github.com/theturtle32/WebSocket-Node // Definitions by: <NAME> <https://github.com/loyd>, // <NAME> <https://github.com/flynetworks>, // <NAME> <https://github.com/zhaoleimxd> // <NAME> <https://github.com/jdneo>,...
<filename>src/render/Blueprint.ts<gh_stars>1-10 import { createCanvas } from "canvas"; import * as fs from "fs"; import { BlueprintData, BlueprintEntity, RenderPassType, Vector } from "../models"; import { BoundingBox } from "../models"; import { decodeBlueprint } from "../util/blueprint"; import { getEntity } from "./...
<reponame>vanackej/risco-lan-bridge import { RiscoBaseSocket, SocketOptions } from './RiscoBaseSocket'; import { RiscoDirectTCPSocket } from './RiscoDirectSocket'; import { PanelType, RiscoError, TimeZoneStr } from './constants'; import { Output, OutputList } from './Devices/Outputs'; import { Zone, ZoneList } from './...
// Timer export const timer = { start: () => console.time('Elapsed Time'), stop: () => console.timeEnd('Elapsed Time'), }; export const timeit = (cb: () => void) => { timer.start(); cb(); timer.stop(); }; // Read from file operations export const getDataFromFile = (day: number) => Deno.readTextFileSync(`${...
<gh_stars>100-1000 import * as util from "../util.js"; import type { Warnings } from "../util.js"; import jsesc from "jsesc"; import type { Request, Query, QueryDict } from "../util.js"; // TODO: partiallySupportedArgs const supportedArgs = new Set([ "url", "request", "compressed", "no-compressed", "digest"...
<reponame>ymzuiku/vanilla-document interface IGlobalValues { inherit: string; initial: string; unset: string; } interface IPosition { relative: string; absolute: string; fixed: string; static: string; inherit: string; sticky: string; '-webkit-sticky': string; } inte...
<reponame>muratyaman/pginfo import { Pool } from 'pg'; const sqlSelectSchemataAll = ` SELECT * FROM information_schema.schemata WHERE catalog_name = $1 ORDER BY schema_name; `; const sqlSelectSchemata = ` SELECT * FROM information_schema.schemata WHERE catalog_name = $1 AND schema_name <> 'information_schema' ...
// TODO upgrade this import * as React from 'react' import { map, uniqBy, filter, keys, groupBy, isEmpty, difference, find, clone } from '../charts/Util' import { observable, computed, action, autorun, reaction } from 'mobx' import { observer } from 'mobx-react' import * as parse from 'csv-parse' import { Modal } fro...
<filename>src/labels/labels.ts import {Utility} from '../misc/utility'; import {MemoryModel} from '../remotes/Paging/memorymodel'; import {Remote} from '../remotes/remotefactory'; import {Fasmgez80LabelParser} from './fasmgez80labelparser'; import {Z80Registers} from '../remotes/z80registers'; import {SjasmplusSldLabel...
import { decodeBase64String } from '../bin'; import { secp256k1Base64Bytes } from './secp256k1.base64'; // bitflags used in secp256k1's public API (translated from secp256k1.h) // tslint:disable:no-bitwise no-magic-numbers /** All flags' lower 8 bits indicate what they're for. Do not use directly. */ // const SECP256...
export interface IQuest { Command?: ICommand; Commands?: ICommands; Defaults?: IDefaults; FileSaver?: IFileSaver; IO?: IIo; NPC?: INpc; Parser?: IParser; SaveLoad?: ISaveLoad; Settings?: ISettings; Templates?: ITemplates; Text?: IText; Utilities?: IUtilities; World?: IWorld; lang?: ILang; } ...
/** * * client * */ import { ExecutionResult } from 'graphql'; import { GRAPHQL_TRANSPORT_WS_PROTOCOL, CloseCode, Sink, ID, Disposable, Message, MessageType, ConnectionInitMessage, ConnectionAckMessage, PingMessage, PongMessage, parseMessage, stringifyMessage, SubscribePayload, JSONMe...
/* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import * as fs from 'fs'; import { isAbsolute, relative, resolve, sep, normalize } from '...
import * as React from "react"; import * as ReactDOM from "react-dom"; import * as _ from "lodash"; import * as $ from "jquery"; import { getViewScale } from "../utils/scale-app"; /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer ...
<filename>src/tooltip.ts import {EditorView, ViewPlugin, ViewUpdate, Direction, logException} from "@codemirror/view" import {EditorState, StateEffect, StateEffectType, Facet, StateField, Extension, MapMode} from "@codemirror/state" const ios = typeof navigator != "undefined" && !/Edge\/(\d+)/.exec(navigator.userAge...
<reponame>geneeblack/ej2-javascript-ui-controls import { append, prepend, createElement, extend, EventHandler, closest, addClass } from '@syncfusion/ej2-base'; import { isNullOrUndefined, setStyleAttribute, remove } from '@syncfusion/ej2-base'; import { EventFieldsMapping, EventClickArgs, EventRenderedArgs, TdData, Not...
/* * Copyright 2016 the original author or authors. * * 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 ...
<gh_stars>0 import fs from 'fs'; import { AxiosRequestConfig } from 'axios'; import csv from 'csvtojson'; import axios from 'axios'; import qs from 'qs'; import moment from 'moment'; import meow from 'meow'; // HELPER FUNCTIONS (TODO move somewhere more general): const formatDateToISO = (dateString: string) => { co...
export declare function ArrayIncludes_Slow(a, b, c): any export declare function ArrayIndexOf(a, b, c): any export declare function ArrayIsArray(a): any export declare function ArraySpeciesConstructor(a): any export declare function GrowArrayElements(a, b): any export declare function IsArray(a): any export declare fun...
/** * @file Provides methods that implement the CRUD operations on the simulation runs in the mongo database. Is used by the controller to execute the user requests from the HTTP API. * @author <NAME> * @copyright BioSimulations Team, 2020 * @license MIT */ import { HttpService } from '@nestjs/axios'; import { ret...
<filename>packages/framework/src/database/live-database.ts /* * Deepkit Framework * Copyright (C) 2021 Deepkit UG, <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the MIT License. * * You should have received a copy of the MIT License along with this progra...
type TUrlThumb = { url: string[], title: string[], thumb: string[] }; type TYoutubeLinks = { iced: TUrlThumb, lol: TUrlThumb, musica: { covers: TUrlThumb, lyrics: TUrlThumb, touhou: TUrlThumb }, osu: { config: TUrlThumb, init: TUrlThumb, ...
<filename>src/aps/Emitter.ts import {Particle} from "./Particle"; const TOLERANCE = 1e-7; function limit(val: number, min: number, max: number): number { if (min != null && val < min) return min; else if (max != null && val > max) return max; else return val; } export interface ParticleInitialParameterObject { /...
<reponame>olimgroup/GLTFWebViewer import * as pc from "@animech-public/playcanvas"; declare module "@animech-public/playcanvas" { interface ScriptComponent { SkySphere?: SkySphere; } } type TextureAsset = Omit<pc.Asset, "resource"> & { resource: pc.Texture }; type ModelAsset = Omit<pc.Asset, "resource"> & { r...
<reponame>NoelDeMartin/soukai import Soukai from '@/Soukai'; import InvalidModelDefinition from '@/errors/InvalidModelDefinition'; import SoukaiError from '@/errors/SoukaiError'; import { deepClone } from '@/internal/utils/Obj'; import Arr from '@/internal/utils/Arr'; import Obj from '@/internal/utils/Obj'; import {...
/* * Copyright (c) 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with certain software (includin...
import * as React from "react" import { Scroll, ScrollEvents, ScrollProps } from "./Scroll" import { PageContainer } from "./PageContainer" import { InertialScroll, SpringOptions } from "../animation/Animators" import { MainLoopAnimationDriver } from "../animation/Drivers/MainLoopDriver" import { Rect, LayerProps, Prop...
import { Jurisdiction } from "@mmsi/jurisdiction"; /** * Get the country code corresponding to the given MID code, if it exists. * * In almost all cases the code is the ISO 3166 code for a country or other * jurisdiction, though not every MID code corresponds to an entity with an * ISO 3166 code. * * @param mid...
import jsPanel from "jspanel4/dist/jspanel"; import jQueryType from "jquery"; import React from "jsx-dom"; import roleColors from "./role-colors"; import { AccountInfo, CancelCoreprotectCommandResult, isStaff } from "./auth/auth-api"; declare global { interface Window { jQuery: typeof jQueryType; ...
<gh_stars>10-100 import { Bot, calculateBotValue, calculateStringTagValue, getBotTag, hasValue, SYSTEM_PORTAL, SYSTEM_PORTAL_BOT, SYSTEM_TAG, tagsOnBot, getTagMask, calculateBooleanTagValue, EDITING_BOT, EDITING_TAG, getShortId, isScript, EDITING_TAG_SPACE...
/* * Copyright (c) 2009 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * inc...
<filename>src/wallet/wallet.ts import * as bitcoin from 'bitcoinjs-lib' import * as bip39 from 'bip39' import * as bip32 from 'bip32' import * as ElectrumClient from 'electrum-client' import * as coinSelect from 'coinselect/accumulative' import * as coinSelectSplit from 'coinselect/split' import Axios from 'axios' impo...
import createElement, { appendChild } from "../../createElement"; import { Cordinate, IWindow, Position, Size, WindowBounds, WindowOptions } from "../../interfaces/window"; import { generateID } from "../../utils"; import TitleBar from "./titlebar"; import { dragElement, resizeElem } from "./utils"; import * as WindowM...
import * as T from './tracks' import { ChordLane, ChordLaneChord, Note, TimeSignature } from './types' import { getBeatLen, rand, randRange, sample } from './util' import samples from './samples' export const urlify = (sample: string) => `samples/${sample}.ogg` export const getSamples = (track: string) => { const s...
/* Code for procedurally generating diffent types of items. This is * mainly focused on weapons/armour now. */ import RG from '../src/rg'; import {meleeHitDamage, directDamage, resistance} from './shell-utils'; import {Random} from '../src/random'; import {mixNewShell} from './shell-utils'; import {IShell, StringMap...
<filename>src/core/rcollect.ts<gh_stars>1-10 import {Remover, NoopRemover, addListener, filteredIterable} from "./util" import {Data, dataEquals, refEquals} from "./data" import {Eq, Mutable, Remove, Source, Subject, Value, ValueFn, dispatchValue} from "./react" // // Reactive lists /** A read-only view of an ordered...
<filename>src/joy-con.ts import EventEmitter from 'events'; import HID from 'node-hid'; enum JoyConHIDIdentifiers { Left = 0x2006, Right = 0x2007, Pro = 0x2009, } enum LEDValue { ONE = 1, TWO = 2, THREE = 4, FOUR = 8, ONE_FLASH = 16, TWO_FLASH = 32, THREE_FLASH = 64, FOUR_FLASH = 128, } enum Su...