text stringlengths 9.82k 47.8k |
|---|
<reponame>iherman/respec-to-epub
/* eslint-disable max-lines-per-function */
/**
* ## Main entry points
*
* This module contains the main external entry points for the EPUB conversion. These are:
*
* * Main processing steps for the creation of EPUB files: the [[RespecToEPUB]] class;
* * A representation of the EP... |
import { IDefaults } from '../types/iquest';
import { Quest } from '../types/quest';
// Should all be language neutral
export const DEFAULT_OBJECT = {
afterDropIn: Quest.Utilities.NULL_FUNC,
afterLoad: Quest.Utilities.NULL_FUNC,
afterLoadForTemplate() {
this.afterLoad();
},
afterTakeOut: Quest.Utiliti... |
import * as Phaser from 'phaser'
import { RouteComponentProps } from 'react-router';
import Game from '../Game'
import * as GameDataStore from "../../store/GameData";
import HealthBar from "../HealthBar";
//Test Big Bug
//import testBugJson from "../../assets/gameAssets/animation/TentacleMothSheet.json";
import testB... |
import * as d3Array from 'd3-array';
import * as d3Scale from 'd3-scale';
const d3 = {
...d3Array,
...d3Scale,
};
import {
Unit
} from '../definitions';
import {Plot} from '../charts/tau.plot';
interface JSONSelector {
type: string;
isLeaf: boolean;
isLeafParent: boolean;
}
export function tra... |
<gh_stars>1-10
import fs = require("fs");
import path = require("path");
import os = require("os");
import pidusage = require("pidusage")
import { GameRule, GameRuleId } from "bdsx/bds/gamerules";
import { NetworkIdentifier } from "bdsx/bds/networkidentifier";
import { MinecraftPacketIds } from "bdsx/bds/packetids";
im... |
<gh_stars>1-10
import { Canvas, EdgeOptions, Glyph, GlyphBuilder, GlyphInstance, JsPoint as Vec2, Vec4 as RustColor, Vec4, Arrow } from "./display_backend/pkg/sseq_display_backend";
import { Shape, ChartClass, SpectralSequenceChart, INFINITY } from "./chart/lib";
// import { assert } from "console";
import { shapeToGly... |
export const austriaRenamingRegions = {
Vienna: 'Wien',
Eisenstadt: 'Burgenland',
Klagenfurt: 'Kärnten',
Innsbruck: 'Tirol',
Feldkirch: 'Vorarlberg',
};
export const cyprusRenamingRegions = {
Nicosia: 'Λευκωσία',
Limasol: 'Λεμεσός',
Ammochostos: 'Αμμόχωστος',
Morfou: 'Κερύνεια',
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
<filename>src/neuroglancer/widget/invlerp.ts
/**
* @license
* Copyright 2020 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... |
<reponame>ystarlongzi/iot-portal
export const COUNTRY_LIST = [
{ countryCode: '86', cnName: '中国', enName: 'China' },
{ countryCode: '1242', cnName: '巴哈马', enName: 'Bahamas' },
{ countryCode: '1246', cnName: '巴巴多斯', enName: 'Barbados' },
{ countryCode: '1264', cnName: '安圭拉', enName: 'Anguilla' },
{
country... |
import { DatePipe } from '@angular/common';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatSnackBar } from '@angular/material';
import { ActivatedRoute, Router } from '@angular/router';
import { TransformType } fr... |
<gh_stars>1-10
/*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. 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 as published by
* the Free Software Foun... |
import { nelderMead, bisect, conjugateGradient, zeros, zerosM, norm2, scale } from 'fmin';
import { intersectionArea, circleOverlap, circleCircleIntersection, distance } from './circleintersection';
/** given a list of set objects, and their corresponding overlaps.
updates the (x, y, radius) attribute on each set such... |
import { pick } from 'lodash-es';
import LineEdgeModel from '../model/edge/LineEdgeModel';
import PolylineEdgeModel from '../model/edge/PolylineEdgeModel';
import BaseNode from '../model/node/BaseNodeModel';
import { Point, Direction, EdgeConfig } from '../type/index';
import { getCorssPointOfLine, isInSegment } from '... |
import * as React from 'react';
import { styleRoot, styleChild, styles } from './styles.css';
import { Interaction, Point } from '../types';
import { isTouch } from '../utils';
import { AnimateOptions, ScaleToOptions, Props, DefaultProps } from './types';
const classnames = (base: string, other?: string): string =>
... |
enum MoveDir {
//% block="Forward"
Forward,
//% block="Backward"
Backward
}
enum RLDir {
//% block="Right"
Right,
//% block="Left"
Left
}
enum TailPort {
//% block="1"
One = 1,
//% block="2"
Two = 2,
//% block="3"
Three = 3,
//% block="4"
Four = 4,
/... |
<reponame>runner0502/SIP.js
import { EventEmitter } from "events";
import {
Contact,
DigestAuthentication,
Grammar,
IncomingInviteRequest,
IncomingMessageRequest,
IncomingNotifyRequest,
IncomingReferRequest,
IncomingRegisterRequest,
IncomingRequestMessage,
IncomingResponseMessage,
IncomingSubscri... |
import lockfile from 'proper-lockfile'
import Queue from './Queue'
import { Metadata, PublicMetadata } from './Metadata'
import { Actor, ActorMsg } from './Actor'
import * as Clock from './Clock'
import {
ToBackendQueryMsg,
ToBackendRepoMsg,
ToFrontendRepoMsg,
DocumentMsg,
SignReplyMsg,
SealedBoxReplyMsg,
... |
//import * as EventEmitter from 'events';
import { EventEmitter } from 'events';
import {
EthAddress,
PlanetMap,
Player,
PlayerMap,
QueuedArrival,
Planet,
Upgrade,
SpaceType,
LocationId,
} from '../_types/global/GlobalTypes';
// NOTE: DO NOT IMPORT FROM ETHERS SUBPATHS. see https://github.com/ethers-i... |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined
* in FIPS 180-2
* Version 2.2 Copyright Anonymous Contributor, <NAME> 2000 - 2009.
* Other contributors: <NAME>, <NAME>, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
//... |
<reponame>hexxone/three.ts<gh_stars>1-10
import {
UVMapping,
CubeReflectionMapping,
CubeRefractionMapping,
EquirectangularReflectionMapping,
EquirectangularRefractionMapping,
CubeUVReflectionMapping,
CubeUVRefractionMapping,
RepeatWrapping,
ClampToEdgeWrapping,
MirroredRepeatWrapping,
NearestFilter,
Nearest... |
import EventEmitter from "@scena/event-emitter";
import Gesto, { OnDrag, OnDragStart } from "gesto";
import { InjectResult } from "css-styled";
import { Properties } from "framework-utils";
import {
isObject,
camelize,
IObject,
addEvent,
removeEvent,
isArray,
isString,
between,
} from "@... |
import * as fp from 'lodash/fp';
import * as React from 'react';
import {useEffect, useState} from 'react';
import {Button, Clickable} from 'app/components/buttons';
import {FadeBox} from 'app/components/containers';
import {FlexColumn, FlexRow} from 'app/components/flex';
import {Header} from 'app/components/headers'... |
import { ProxyObjectRegistry, rpc_disposed } from './proxy-object-registry';
import {
AnyConstructor,
AnyFunction,
ClassDescriptor, ClassDescriptors, Descriptor, FunctionDescriptor, FunctionDescriptors, FunctionReturnBehavior,
getArgumentDescriptor, getEventDescriptor, getFunctionDescriptor, getProperty... |
/**
* @module module/multi-zoom-sk
* @description <h2><code>multi-zoom-sk</code></h2>
*
* The multi-zoom-sk element shows a zoomed-in comparison between two images (with a rendered
* diff). It supports many keybindings for navigation of the image, as well as clicking on the
* image thumbnails to navigate around.
... |
<reponame>sinequa/usage-analytics
import { Injectable } from '@angular/core';
import { ValidatorFn, Validators } from '@angular/forms';
import { Router, UrlSerializer } from '@angular/router';
import { Clipboard } from '@angular/cdk/clipboard';
import { Location } from '@angular/common';
import { Utils } from '@sinequa... |
// TODO(tbosch): clang-format screws this up, see https://github.com/angular/clang-format/issues/11.
// Enable clang-format here again when this is fixed.
// clang-format off
import {
describe,
ddescribe,
it,
iit,
xit,
xdescribe,
expect,
beforeEach,
beforeEachBindings,
inject,
AsyncTestCompleter,
... |
<reponame>Reiaa/Mannele<gh_stars>1-10
import axios, { AxiosInstance } from "axios";
import { setupCache } from "axios-cache-adapter";
import csv from "csv-parser";
import fs from "fs";
import Fuse from "fuse.js";
import {
jsonArrayMember,
jsonMapMember,
jsonMember,
jsonObject,
TypedJSON,
} from "typ... |
import express from "express";
import FileModel, { File } from "../models/files";
import Folder from "../models/folder";
import multer from "multer";
import checkAuth from '../middleware/check-auth';
import Action from "../models/action";
import PageSet from "../models/page-set";
import Page from "../models/page";
impo... |
import { openAlert, AlertButton, AlertConfig, closeAlerts } from './ui/alert/Alert'
import { closeToast, openToast, ToastAction } from './ui/toast/Toast'
import { ExtendedP2PPairingResponse } from './types/P2PPairingResponse'
import { PostMessagePairingRequest } from './types/PostMessagePairingRequest'
import { Extende... |
/* eslint-disable no-console */
import React, {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useMemo,
useRef,
useState,
} from 'react';
import PropTypes from 'prop-types';
import produce from 'immer';
import { ThemeContext, ThemeProvider } from 'styled-components';
import { CrosswordContext... |
import { ChatMessage, ChatMessageContext } from './chat-message';
import { ChatTab } from './chat-tab';
import { SyncObject } from './core/synchronize-object/decorator';
import { GameObject } from './core/synchronize-object/game-object';
import { ObjectStore } from './core/synchronize-object/object-store';
import { Eve... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import * as React from "react";
import * as sui from "./sui";
import * as core from "./core";
import * as coretsx from "./coretsx";
import * as pkg from "./package";
import * as cloudsync from "./cloudsync";
import Cloud = pxt.Cloud;
import Util = pxt.Util;
export funct... |
import RandomGen4Teams from '../gen4/random-teams';
import {Utils} from '../../../lib';
import {PRNG, PRNGSeed} from '../../../sim/prng';
export class RandomGen3Teams extends RandomGen4Teams {
battleHasDitto: boolean;
battleHasWobbuffet: boolean;
constructor(format: string | Format, prng: PRNG | PRNGSeed | null) {... |
/**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import isVendorPrefixed from 'is-vendor-prefixed';
import cloneDeep from 'lodash.clonedeep';
import { basename } from 'path';
import * as postcss from 'postcss';
import type { FileProcessor } from './cached-process-file';
import type { Diagnostics } from './diagnostics';
import { StylableEvaluator } from './functions';... |
<reponame>tpoikela/battles
import RG from './rg';
import * as Component from './component';
import * as Time from './time';
import * as Verify from './verify';
import * as World from './world';
import {ActorClass} from './actor-class';
import {ActorsData} from '../data/actors';
import {ActorMods} from '../data/actor-... |
export interface LocationFeatureSpecification {
/* amenity */
propertyID?: string;
/* restaurant */
value?: any; /* string | boolean | number | https://schema.org/StructuredValue; */
/* osm:979019920 */
valueReference?: any;
maxValue?: number;
minValue?: number;
measurementTechnique?: string;
unitC... |
<gh_stars>0
const eTokenType = {
SIGN: "SIGN", // 負
DIGIT: "DIGIT", // 一二三...
DECIMAL: "DECIMAL", // ·
INT_MULT: "INT_MULT", // 十百千萬億...
FRAC_MULT: "FRAC_MULT", // 分釐毫...
DELIM: "DELIM", // 又
ZERO: "ZERO", // 零
// pseudo tokens
BEGIN: "BEGIN", // <BEGIN>
END: "END" // <END>
};
var NUM_TOKENS = {
... |
/**********************************************************************************************************************
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
* ... |
import {
SfdxError
} from '@salesforce/core';
import alex = require('alex');
import {
setValue,
incrementValue,
getValue,
addValue
} from './JSONUtilities';
import {
mdmap
} from './mdmap';
import fs = require('fs-extra');
import xml2js = require('xml2js');
export function inventoryPackage(sourceDir... |
import { updateReplySed } from 'actions/svarpased'
import { resetValidation } from 'actions/validation'
import { PersonManagerFormSelector } from 'applications/SvarSed/PersonManager/PersonManager'
import Add from 'assets/icons/Add'
import classNames from 'classnames'
import AddRemovePanel from 'components/AddRemovePane... |
// <NAME> DS
import * as Viewer from '../viewer';
import * as CX from '../compression/CX';
import * as NARC from './narc';
import * as NSBMD from './nsbmd';
import * as NSBTA from './nsbta';
import * as NSBTP from './nsbtp';
import * as NSBTX from './nsbtx';
import { DataFetcher } from '../DataFetcher';
import Array... |
<reponame>a313008430/fairygui-wx
import { OrthographicCamera, Scene, Vector2, Renderer, AudioListener, Object3D, Camera, PerspectiveCamera, Vector3, WebGLRenderer, Matrix4, Matrix } from "three";
import { Timers } from "../utils/Timers";
import { DisplayObject, traverseUpdate, traverseHitTest } from "./DisplayObject";
... |
<reponame>Colorfingers/vircadia-web-sdk
//
// AvatarData.ts
//
// Created by <NAME> on 28 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.... |
<reponame>sandipchitale/devtools-frontend
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
* Copyright (C) 2009 <NAME>
* Copyright (C) 2010 Goo... |
<reponame>julien-c/exformer
/**
* Showing the top left part of exBERT, no information from the embeddings or the contexts
*/
import * as d3 from 'd3';
import * as _ from "lodash"
import * as R from 'ramda'
import * as tp from '../etc/types';
import * as rsp from '../api/responses';
import '../etc/xd3'
import { API }... |
//const Matter = require('matter-js');
import { Engine, Runner, Vector, MouseConstraint,Events, Composite,World } from 'matter-js'
import { Context } from '@playpuppy/puppyjs';
const clamp = (value: number, min: number, max: number) => {
if (value < min)
return min;
if (value > max)
return max;
return v... |
<reponame>atmina/graphql-codegen-plugins
import {TypeScriptDocumentsVisitor} from '@graphql-codegen/typescript-operations';
import {
BaseSelectionSetProcessor,
BaseVisitorConvertOptions,
ConvertNameFn,
DeclarationBlock,
generateFragmentImportStatement,
GetFragmentSuffixFn,
getPossibleTypes,
InterfaceOrV... |
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef, HostListener,
OnDestroy,
OnInit, QueryList,
Renderer2,
ViewChild,
ViewChildren
} from '@angular/core';
import {
GridsterComponent,
GridsterConfig,
GridsterItem,
GridsterItem... |
/*
* Author: GT<<EMAIL>>
* Date: 2021-02-24 18:06:47
* LastEditors: GT<<EMAIL>>
* LastEditTime: 2021-03-05 21:16:53
*/
import Heap from "./Heap";
export class AngleComparator
{
protected _o: cc.Vec2;
constructor(o: cc.Vec2) {
this._o = o;
}
// 此处的比较函数以从o点出发y轴正方向射线为起点,顺时针扫描一周
// 比较的时候注... |
<reponame>Highbury14/angular
/**
* @license
* Copyright Google LLC 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 ts from 'typescript';
import {absoluteFrom} from '../../../src/ngtsc/file_system... |
import {AfterViewInit, Component, OnDestroy, OnInit, SimpleChanges} from '@angular/core';
import { NbIconConfig, NbThemeService } from '@nebular/theme';
import { CapteureService } from 'app/_services/capteure.service';
import { WeatherService } from 'app/_services/weather.service'
import { ExploitationService } from 'a... |
<reponame>askirmas/postcss-plugin-css-d-ts
/** Generated by [postcss-d-ts](https://github.com/askirmas/postcss-d-ts) */
declare const identifiersMap: CssIdentifiersMap
export default identifiersMap
export type CssIdentifiersMap = {
"active": string|undefined
"affix": string|undefined
"alert": string|undefined
... |
import { ReactWidget } from '@jupyterlab/apputils';
import React, { useEffect, useRef, useState, useContext } from 'react';
import { UserContext } from './context';
import { requestAPI } from './handler';
import {
MenuItem, InputLabel, Stack, Collapse, Paper,
Typography, TextField,
FormControl,
Box,
... |
<filename>lib/rect.ts
import { doc, VOther, chromeVer_ } from "./utils"
import {
docEl_unsafe_, scrollingEl_, notSafe_not_ff_, ElementProto, isRawStyleVisible, getComputedStyle_, NONE,
querySelector_unsafe_, querySelectorAll_unsafe_, GetParent_unsafe_, HDN, createElement_, fullscreenEl_unsafe_,
IsInDOM_, scrollIn... |
<reponame>daquexian/coc.nvim
import { NeovimClient as Neovim } from '@chemzqm/neovim'
import debounce from 'debounce'
import { Definition, Disposable, DocumentHighlight, DocumentLink, DocumentSymbol, Hover, Location, MarkedString, MarkupContent, Position, Range, SymbolInformation, SymbolKind, TextDocument, CodeAction, ... |
import './KaraLine.scss';
import i18next from 'i18next';
import React, { Component, CSSProperties, Key, MouseEvent } from 'react';
import { SortableElement, SortableElementProps, SortableHandle } from 'react-sortable-hoc';
import { toast } from 'react-toastify';
import { DBKaraTag } from '../../../../../src/lib/types... |
<reponame>noaione/ihaapi-ts
/* eslint-disable max-len */
import moment from "moment-timezone";
import winston from "winston";
import xml2js from "xml2js";
import axios, { AxiosInstance, AxiosRequestConfig } from "axios";
import { basename } from "path";
import { capitalizeIt, fallbackNaN, getValueFromKey, hasKey, is_n... |
/*
Louis
"teddybot": "file:../pxt-teddybot"
Refer to maqueen about IR data
*/
/** regarding IR */
let IrPressEvent = 0
let teddybotmcb: Action
let teddybotmmycb: Action
let teddybotme = "1"
let teddybotmparam = 0
let alreadyInit = 0
enum state {
state1 = 0x10,
state2 = 0x11,
state3 = 0x20,
state4 = 0... |
import RG from './rg';
import {Entity} from './entity';
import {Pickup} from './component/component';
import {compsToJSON} from './component/component.base';
import {Random} from './random';
import {EventPool} from './eventpool';
import {verifyLevelCache} from './verify';
import * as Mixin from './mixin';
import {ELEM... |
<filename>frontend/src/three-ext/OrbitControls.ts
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
import {
EventDispatcher,
... |
<gh_stars>0
/*
* Copyright © 2020 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import { WLEDNightlightMode, WLEDLiveDataOverride, WLEDAPOpenBehavior, WLEDAutoWhiteMode, WLEDBusType, WLEDBusColorOrder, WLEDButtonType, WLEDIRRemoteType, WLEDPaletteBlendingMode, WLEDDMXMode, WLEDClockOverlay } from './constants';
import { RGBColor, RGBWColor, IPV4 } from './types';
import { PartialDeep } from 'type-... |
import { PeerJSSocket } from './PeerJSSocket';
import { ConnectionStatus, InputValues, TelegraphNetworkStats, SavedChecksum } from '../types';
import { ValueResult, ResultOk, ResultNotSynchronized } from '../resultTypes';
import { GameInput } from '../InputQueue';
import {
TelegraphMessage,
MessageInput,
MessageI... |
<reponame>Ructar/rdr2-inventory
class Item {
private id: number
private name: string
private quantity: number = 0
private attributes: {[k: string]: any} = {}
constructor(id: number, name: string, attributes: {}) {
this.id = id;
this.name = name;
this.attributes = attributes;
}
... |
import { LuaVisitor } from "./LuaVisitor";
import {
ChunkContext,
BlockContext,
NumberContext,
LuaParser,
StatContext,
IfContext,
AssignmentContext,
Varlist1Context,
Explist1Context,
LocalvardeclContext,
NamelistContext,
VarContext,
ExpContext,
Oper... |
// @ts-nocheck
// TODO: hideUnderline should be true by default
// TODO: enableErrors should be false by default
// TODO: enableErrors should derived from errorMessage prop
// TODO: use forwardRef to allow access to inner TextInput API
// TODO: add trailing/leading icon props
// TODO: support margin modifiers
import _ ... |
<reponame>mattharper/SymphonyElectron
import * as electron from 'electron';
import { app, BrowserWindow, BrowserWindowConstructorOptions, crashReporter, globalShortcut, ipcMain } from 'electron';
import * as fs from 'fs';
import * as path from 'path';
import { format, parse } from 'url';
import { apiName, WindowTypes ... |
import Metadata from './Metadata';
import Key from './Key';
import Switch from './Switch';
import Label from './Label';
import Ajv from 'ajv';
import backgroundSchema from './kle-json/v1/Background.schema.json';
import clusterSchema from './kle-json/v1/Cluster.schema.json';
import keyboardSchema from './kle-json/v1/Ke... |
<gh_stars>1-10
//
// MIT License
//
// Copyright (c) 2020 <NAME>
//
// 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, ... |
declare class PDFAction extends NSObject implements NSCopying {
static alloc(): PDFAction; // inherited from NSObject
static new(): PDFAction; // inherited from NSObject
readonly type: string;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class PDFActionGoTo extends PDFAction impl... |
<reponame>ewebinar/smooth-dnd
import * as constants from './constants';
import { defaultOptions } from './defaults';
import dragScroller from './scroller';
import { Axis, DraggableInfo, ElementX, GhostInfo, IContainer, MousePosition, Position, TopLeft, Orientation } from './interfaces';
import './polyfills';
import { a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
import {
Autowired,
Bean,
CellNavigationService,
CellPosition,
CellPositionUtils,
Column,
ColumnApi,
ColumnController,
Constants,
Events,
EventService,
GridApi,
GridOptionsWrapper,
GridPanel,
IRangeController,
IRowModel,
Logger,
LoggerFactory,
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { FileSystem } from '../platform/fileSystem';
import { getLocalizedString, loadLocalizedStringsUsingNodeFS, shouldLoadUsingNodeFS } from './localizeHelpers';
/* eslint-disable @typescript-eslint/no-na... |
<gh_stars>0
'use strict';
import * as os from 'os';
import * as fs from 'fs';
import * as path from 'path';
import * as util from 'util';
import * as assert from 'assert';
import * as glob from 'glob';
import * as mkdirp from 'mkdirp';
import * as detectIndent from 'detect-indent';
let pkg = require('../package');
c... |
<filename>src/ezDeFiInpageProvider.ts
// @ts-ignore
import { Duplex } from 'stream';
// @ts-ignore
import pump from 'pump';
import {
JsonRpcEngine,
createIdRemapMiddleware,
JsonRpcRequest,
JsonRpcResponse,
JsonRpcId,
JsonRpcVersion,
JsonRpcSuccess,
} from 'json-rpc-engine';
import { createStreamMiddleware... |
<filename>packages/providers/src.ts/base-provider.ts
"use strict";
import {
EventType,
Filter,
Listener,
Log,
Provider,
TransactionReceipt,
TransactionRequest,
TransactionResponse
} from "@ethersproject/abstract-provider";
import {BigNumber} from "@ethersproject/bignumber";
import {arra... |
<gh_stars>0
import {
ComplexToken,
EOFToken,
NodeBase,
ParserCoreImplementation,
ParserCoreOverrides,
ParserCoreTokenizeState,
ParserCoreTypes,
ParserUnexpectedOptions,
Position,
SOFToken,
SimpleToken,
SourceLocation,
TokenBase,
TokenValues,
ValueToken,
} from "./types";
import {
Diagnostic,
Diagnostic... |
/*
Copyright 2020 <NAME>,
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ... |
<gh_stars>1-10
import { define } from "./define";
import { AsaInfo } from "./asaInfo";
import { MiscAssetInfo } from "./miscAssetInfo";
import { SoundInfo } from "./soundInfo";
import { AssetInfo } from "./assetInfo";
import { entityUtil } from "../util/entityUtil";
import { spriteUtil } from "../util/spriteUtil";
impo... |
<gh_stars>1-10
/*
* Copyright 2018-2020 TON DEV SOLUTIONS LTD.
*
* Licensed under the SOFTWARE EVALUATION License (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.ton.dev/licenses
*
* Unless required by applicable law or agree... |
import * as PropTypes from 'prop-types';
import * as React from 'react';
import {connect} from 'react-redux';
import {withTheme, Theme} from '@material-ui/core/styles';
import withWidth, {isWidthUp} from '@material-ui/core/withWidth';
import queryString from 'query-string';
import * as Joyride from 'react-joyride';
imp... |
export const adjectives = [
"abroad",
"absorbing",
"abstract",
"academic",
"accelerated",
"accented",
"accountant",
"acquainted",
"acute",
"addicting",
"addictive",
"adjustable",
"admired",
"adult",
"adverse",
"advised",
"aerosol",
"afraid",
"aggravated",
"aggressive",
"agreeab... |
<reponame>YikaiHu/data-transfer-hub<filename>source/portal/src/assets/config/const.ts<gh_stars>10-100
import { EnumSourceType } from "../types/index";
export const GITHUB_LINK =
"https://github.com/awslabs/aws-data-replication-hub";
// Home page links
export const WHAT_IS_LINK = GITHUB_LINK + "#readme";
export const... |
// tslint:disable
// @ts-ignore
import * as SPARK_MAX_Types from "./SPARK-MAX-Types_pb";
export enum MotorType {
Brushed = 0,
Brushless = 1,
}
export enum SensorType {
NoSensor = 0,
HallSensor = 1,
Encoder = 2,
Sensorless = 3,
}
export enum ControlType {
DutyCycle = 0,
Velocity = 1,
Voltage = 2,
... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Product } from 'src/app/riesgos/riesgos.datatypes';
import { isWmsProduct, isVectorLayerProduct, isBboxLayerProduct, BboxLayerProduct,
VectorLayerProduct, WmsLayerProduct, WmsLayerDescription, is... |
import { createStitches } from "@stitches/react";
import type Stitches from "@stitches/react";
import {
sage,
red,
blue,
green,
yellow,
sageA,
redA,
blueA,
greenA,
yellowA,
whiteA,
blackA,
sageDark,
redDark,
blueDark,
greenDark,
yellowDark,
sageDarkA,
redDarkA,
blueDarkA,
green... |
<reponame>tokyo-digitaltwin/terriajs<gh_stars>10-100
import i18next from "i18next";
import { computed, runInAction } from "mobx";
import Cartesian3 from "terriajs-cesium/Source/Core/Cartesian3";
import Color from "terriajs-cesium/Source/Core/Color";
import createGuid from "terriajs-cesium/Source/Core/createGuid";
impor... |
import { Request, Response } from "express";
import { DB, dbPool } from "../db";
import { multiValidator, valid, Api, stringToArray } from "./handler";
import { shID, shDefaultIDs, shDefaultIDsAsText, shText, shDefaultTypeCreate, shDefaultTypeUpdate, shDefaultTypeUpdate2 } from "./default-schemas";
import { shDeviceT... |
<reponame>gameofbombs/awayjs
import {Box, Sphere, Vector3D} from "@awayjs/core";
import {AttributesBuffer, AttributesView, Byte4Attributes, Float1Attributes} from "@awayjs/stage";
import {View, PickingCollision, IPickingEntity, IPartitionEntity} from "@awayjs/view";
import {ElementsUtils, IMaterial} from "@awayjs/re... |
// Ported from <NAME>'s java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// <NAME> <EMAIL>
//
export interface NumberGenerator {
random: () => number
}
// Added 4D noise
export class SimplexNoise {
privat... |
<gh_stars>0
import { compareName, distinct, isEventHandler, makeNullable, map, nameWithForwardedTypes, toIType } from './utils';
import * as Types from './Types';
import Printer from './Printer';
import Components from './Components';
import TsIteratorExtractor from './TsIteratorExtractor';
import TypeUtils from './Typ... |
<reponame>calwild/ca-gov-payperiods
/*!
MIT License
Copyright (c) 2018-2022 State of California, Department of Fish and Wildlife
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 restrictio... |
import { Component, OnInit } from '@angular/core';
import * as Stomp from 'stompjs';
import * as SockJS from 'sockjs-client';
import { GlobalEffect, MultipleTargetEffect, SingleTargetEffect, MultiTargetBuff, MultiTargetDamage, MultiTargetHeal, SingleTargetDamageBuff, SingleTargetLifeBuff, SingleTargetDamage, SingleTar... |
/**
* This is the file where commands get parsed
*
* Some parts of this code are taken from the Pokémon Showdown server code, so
* credits also go to <NAME> and other Pokémon Showdown contributors.
* https://github.com/Zarel/Pokemon-Showdown
*
* @license MIT license
*/
import {Config, send} from './main'
import {Room,... |
import MathHelper from './MathHelper';
import {
getChargeText
} from './UtilityFunctions';
import Line from './Line';
import Vector2 from './Vector2';
class SvgWrapper {
public svg: any;
public opts: any;
public gradientId: any;
public paths: any;
public vertices: any;
public gradients: any;
... |
/* eslint-disable class-methods-use-this */
import * as mm from 'mingru-models';
import { SelectIO } from '../io/selectIO.js';
import { UpdateIO } from '../io/updateIO.js';
import { InsertIO } from '../io/insertIO.js';
import { DeleteIO } from '../io/deleteIO.js';
import {
VarDef,
ValueType,
CompoundTypeInfo,
g... |
import {debug_assert} from './debug_assert.ts';
import {faddr_to_addr, addr_to_string} from './addr.ts';
import type {FcgiAddr} from './addr.ts';
import {FcgiConn} from "./fcgi_conn.ts";
import {SetCookies} from "./set_cookies.ts";
const BUFFER_LEN = 8*1024;
export const SERVER_SOFTWARE = 'DenoFcgi/1.0';
const DEFAULT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.