text
stringlengths
9.82k
47.8k
/** @file Type definitions and helper functions for dealing with the dex. */ // TODO: Split into multiple files. // TODO: Replace some types with aliases from @pkmn/types instead. /** Set of {@link Type} names. Each type has a 0-based unique index. */ export const types = { bug: 0, dark: 1, dragon: 2, ...
import ReadPreference = require('../read_preference'); import * as BSON from '../bson'; import { databaseNamespace } from '../utils'; import { OP_QUERY, OP_GETMORE, OP_KILL_CURSORS, OP_MSG } from './wire_protocol/constants'; // Incrementing request id let _requestId = 0; // Query flags const OPTS_TAILABLE_CURSOR = 2;...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ 'use strict'; import * as path from 'path'; import * as vscode from 'vscode'; import { WorkspaceFolder, DebugConfiguration, ProviderResu...
export type ItemType = | 'Item' | 'Fuel' | 'Other' | 'BuildingMaterial' | 'Tool' | 'HouseholdGoods' | 'Lubricant' | 'Battery' | 'Electronics' | 'MedicalSupplies' | 'Jewelry' | 'Pms' | 'FlashHider' | 'Silencer' | 'MuzzleCombo' | 'Compensator' | 'Thermal...
import * as d3 from "d3"; import DeviceLogic from "@/data/utils/DeviceLogic" import MyMath from "@/data/utils/MyMath" enum Palette1 { // https://offeo.com/learn/20-pastel-spring-summer-color-palettes#fws_5f8eaba0896e1 Green = "#CCD4BF", Brown = "#E7CBA9", Red = "#EEBAB2", White = "#F5F3E7", Pi...
<reponame>HuangLuGuang/ghkjsdfsd<filename>src/app/pages/equipment-board/central-four-jinhua/central-four-jinhua.component.ts import { Component, OnInit, ViewChild } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; import { HttpserviceService } from "../../../services/http/httpservice.service"; im...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { AbortError, AbortSignalLike } from "@azure/abort-controller"; import { Constants, MessagingError, RetryConfig, RetryOperationType, StandardAbortMessage, delay, retry, translate, } from "@azure/core-amqp";...
<reponame>chris-morgan/rollup<gh_stars>1-10 import * as acorn from 'acorn'; import * as ESTree from 'estree'; import { locate } from 'locate-character'; import MagicString from 'magic-string'; import ExportAllDeclaration from './ast/nodes/ExportAllDeclaration'; import ExportDefaultDeclaration, { isExportDefaultDeclara...
<filename>client/src/previewer.ts import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import { changeName, writeB64ToFile } from './unit'; import { utils } from 'mocha'; import { assert } from 'console'; let previewer...
import { Audio } from 'expo-av'; const sounds: { [id: string]: () => Audio.Sound } = { a: () => require('./sounds/a.mp3'), a1: () => require('./sounds/a1.mp3'), a3: () => require('./sounds/a3.mp3'), a4: () => require('./sounds/a4.mp3'), ae: () => require('./sounds/ae.mp3'), au: () => require('./sounds/au.m...
<reponame>jhutchings1/tv-automation-server-core<filename>meteor/server/migration/databaseMigration.ts<gh_stars>1-10 import { parseVersion, getCoreSystem, setCoreSystemVersion, Version, GENESIS_SYSTEM_VERSION, } from '../../lib/collections/CoreSystem' import { Meteor } from 'meteor/meteor' import * as _ from 'under...
import React, { useContext, useEffect, useState } from "react" import { Box, Button, Card, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, Collapse, Grid, Switch, TextField, Typography, useEventCallback, useTheme } from '@material-ui/core'; import { Link } from 'gatsby-theme-material-ui'; import useD...
<gh_stars>100-1000 import { Socket, createSocket, RemoteInfo } from 'dgram'; import { EventEmitter } from 'events'; import util from 'util'; import type log from 'loglevel'; import { encrypt, decrypt } from 'tplink-smarthome-crypto'; import type { MarkOptional } from 'ts-essentials'; import Device, { isBulbSysinfo, i...
import React, { useState, useEffect, useRef, useMemo, useCallback } from 'react' import { NavLink, Switch, Route, Redirect } from 'react-router-dom' import { useRouteMatch } from 'react-router' import { useAsync, NavigationArrow, getRandomColor, not, useKeyDown, noop, ConditionalWrap, Progressing, showError, removeItem...
<filename>src/components/blockly/dsl/servicesbase.ts import jsep from "jsep" import { Theme } from "@material-ui/core" import { withPrefix } from "gatsby" import { humanify, isNumericType, } from "../../../../jacdac-ts/jacdac-spec/spectool/jdspec" import { BuzzerCmd, JoystickReg, ServoReg, SRV_B...
<reponame>borekb/yarn.build import { Configuration, Manifest, Project, StreamReport, Workspace, FormatType, } from "@yarnpkg/core"; import isCI from "is-ci"; import { cpus } from "os"; import { PortablePath, NodeFS } from "@yarnpkg/fslib"; import { EventEmitter } from "events"; import PQueue from "p-queue"...
<filename>src/psbot/handlers/battle/ai/encoder/encoders.ts<gh_stars>1-10 /** @file Formats BattleState objects into data usable by the neural network. */ import * as dex from "../../dex"; import {ReadonlyHp} from "../../state/Hp"; import {ReadonlyMajorStatusCounter} from "../../state/MajorStatusCounter"; import {Readon...
import { BitcoinUnit, Chain } from '../../models/bitcoinUnits'; import RnLdk from 'rn-ldk/src/index'; import { LightningCustodianWallet } from './lightning-custodian-wallet'; import SyncedAsyncStorage from '../synced-async-storage'; import { randomBytes } from '../rng'; import * as bip39 from 'bip39'; import { HDSegwit...
/** # Type Checking, Mocks By Example The goal of this module is to provide simple, effective type-checking "by example" -- i.e. in most cases an example of a type can function as a type. Certain specialized types — enumerations in particular — are supported in a way that still allows types to be encoded as JSON. The...
<filename>src/atlasComponents/userAnnotations/tools/service.ts import { Injectable, OnDestroy } from "@angular/core"; import { ARIA_LABELS } from 'common/constants' import { Inject, Optional } from "@angular/core"; import { select, Store } from "@ngrx/store"; import { BehaviorSubject, combineLatest, fromEvent, merge, O...
/* Converted from JavaScript to TypeScript by * nmtigor (https://github.com/nmtigor) @2022 */ /* Copyright 2021 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 * *...
<filename>packages/database/scripts/parse.ts var { loadSheet } = require("./loadsheet.js"); var { v4 } = require("uuid"); var fs = require("fs"); import { ActantType, ActantStatus, EntityActantType, AllActantType, Certainty, Elvl, Position, Logic, Mood, MoodVariant, Virtuality, Partitivity, O...
<reponame>mosen/grafana-zabbix import _ from 'lodash'; import config from 'grafana/app/core/config'; import { contextSrv } from 'grafana/app/core/core'; import * as dateMath from 'grafana/app/core/utils/datemath'; import * as utils from './utils'; import * as migrations from './migrations'; import * as metricFunctions ...
import { callOnceLazy, memoize, __getMemoId } from "./util"; import { isTypedArray, isAnyArray, AnyArray, GenericArrayConstructor, } from "../../common/types/arraytypes"; import { IdentityInt32Index, LabelIndex, isLabelIndex } from "./labelIndex"; import { summarizeContinuous as _summarizeContinuous, summar...
import * as Fuse from 'fuse.js'; import * as I from 'immutable'; import * as LD from 'lodash'; import * as React from "react"; import * as ReactRedux from 'react-redux'; import { Button, Checkbox, Divider, Dropdown, Icon, Input, Label, List, Menu, } from 'semantic-ui-react'; import * as SUI from 'semantic-ui-react'...
"use strict"; import * as vscode from 'vscode'; import * as _ from 'lodash'; import { getAndUpdateModeHandler } from './../../extension'; import { Mode, ModeName, VSCodeVimCursorType } from './mode'; import { InsertModeRemapper, OtherModesRemapper } from './remapper'; import { NormalMode } from './modeNormal'; import...
import isObject from 'lodash.isobject'; import cloneDeep from 'lodash.clonedeep'; import differenceBy from 'lodash.differenceby'; import unionBy from 'lodash.unionby'; import merge from 'lodash.merge'; import pick from 'lodash.pick'; import flatten from 'lodash.flatten'; import type { I_Item } from './types'; import t...
import BitcoinBlockModel from './models/BitcoinBlockModel'; import BitcoinBlockDataIterator from './BitcoinBlockDataIterator'; import BitcoinClient from './BitcoinClient'; import BitcoinServiceStateModel from './models/BitcoinServiceStateModel'; import BitcoinTransactionModel from './models/BitcoinTransactionModel'; im...
declare class AVCaptureState extends NSObject { static alloc(): AVCaptureState; // inherited from NSObject static isAudioDisabled(): boolean; static isVideoDisabled(): boolean; static new(): AVCaptureState; // inherited from NSObject } declare class FancyRTCAudioTrack extends FancyRTCMediaStreamTrack { stat...
<reponame>prabakaranfresh/ember-template-recast import { preprocess, print as _print, traverse, AST } from '@glimmer/syntax'; import { getLines, sortByLoc, sourceForLoc } from './utils'; const leadingWhitespace = /(^\s+)/; const attrNodeParts = /(^[^=]+)(\s+)?(=)?(\s+)?(['"])?(\S+)?/; const hashPairParts = /(^[^=]+)(\...
import { computed, Computed, State } from 'easy-peasy' import flatten from 'lodash.flatten' import { storeStateProject } from '../../utils/store-assest' import type { StoreModel } from '../index' import { Property, AlreadyVariants } from './controlles' export const ContainerValue = 'container' export const DisplayValu...
<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. *------------------------------------------------...
/* eslint-disable no-global-assign */ import BN from 'bn.js' import { HttpProvider } from 'web3-core' import { ether } from '@openzeppelin/test-helpers' import { getEip712Signature } from '@opengsn/common/dist/Utils' import { TypedRequestData } from '@opengsn/common/dist/EIP712/TypedRequestData' import { defaultEnv...
import { EventEmitter } from 'events'; import { createSocket, Socket, RemoteInfo } from 'dgram'; import { networkInterfaces } from 'os'; import assert, { AssertionError } from 'assert'; import crypto from 'crypto'; function logBuffer(payload: Buffer) { for (let i = 0; i < payload.length; i += 16) { console.log([...
import {$} from '../caching/GlobalCache'; import {Colony} from '../Colony'; import {log} from '../console/log'; import {TerminalNetworkV2} from '../logistics/TerminalNetwork_v2'; import {TransportRequestGroup} from '../logistics/TransportRequestGroup'; import {Mem} from '../memory/Memory'; import {Pathing} from '../mov...
<gh_stars>0 /* Author: <NAME> */ /* Javascript version: <NAME> (https://github.com/alexanderk23/ayumi-js) */ /* Typescript version: Jos Kwanten */ const DECIMATE_FACTOR = 8; const FIR_SIZE = 192; const DC_FILTER_SIZE = 1024; const AY_DAC_TABLE = [ 0.0, 0.0, 0.00999465934234, 0.00999465934234, 0.0144502937362, 0...
import { AfterContentInit, ContentChildren, Directive, ElementRef, forwardRef, HostBinding, HostListener, Input, OnDestroy, OnInit, Optional, QueryList, Renderer2, Self, Output, EventEmitter, Inject } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { NgControl } from '@angular/forms'; import ...
<gh_stars>1-10 /* * Copyright 2022 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<reponame>sketchpunk/oito import type { TVec2, TMat3, TMat4 } from '@oito/types'; class Mat3 extends Float32Array{ //#region STATIC VALUES static BYTESIZE = 9 * Float32Array.BYTES_PER_ELEMENT; //#endregion //////////////////////////////////////////////////////// //#region CONSTRUCTORS constructor...
<gh_stars>10-100 import V = require("./VCL"); import VXCO = require("./VXContainer"); import VXO = require("./VXObject"); import VXM = require("./VXMenu"); export class TComponent extends VXO.TObject { /** Indicates the component that is responsible for streaming and freeing this component. **/ public ...
import React from 'react'; import ReactDOM from 'react-dom'; import { produce } from 'immer'; import { Direction, DirectionString, east } from '../hexagony/Direction'; import { Hexagony } from '../hexagony/Hexagony'; import { HexagonyState } from '../hexagony/HexagonyState'; import { ISourceCode, SourceCode } from '.....
/* * Copyright (c) 2006-2011 <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, ...
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState, useLayoutEffect, memo, useContext, RefObject } from 'react'; import VerticalRuler from '../vertical-ruler'; import HorizontalRuler from '../horizontal-ruler'; import WidgetItem from './canvas/layout-item...
import struct, { calcsize, pack, unpack, pack_into, unpack_from, Struct, } from '../' import { execSync } from 'child_process' /* function genRandomTestFormat(n: number,maxlen = 10): string[] { const ordertype = ['<' , '>' , '!' , '@' , '=' , ''] const size = [ '',...Array.from({length:...
<gh_stars>0 /** * @license * Copyright 2016 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.0 * * Unless required by appli...
<reponame>nicosampler/hop<filename>packages/stats-worker/src/BonderStats.ts<gh_stars>0 import path from 'path' import BlockDater from 'ethereum-block-by-date' import { BigNumber, providers, Contract, constants } from 'ethers' import { formatUnits, parseEther, formatEther, parseUnits } from 'ethers/lib/utils' im...
<filename>src/index.ts<gh_stars>10-100 import { PathProperty, Layer, Comp, Vector, Points, Vector2D, PathValue, Value, SourceRect, Property, } from 'expression-globals-typescript'; const thisProperty = new PathProperty([[0, 0]]); const thisLayer = new Layer(); const thisComp = new Co...
import { Alert } from 'react-native' import AsyncStorage from "@react-native-async-storage/async-storage"; import {PersistorUtil} from "./PersistorUtil"; import { LOGd, LOGe, LOGi, LOGw } from "../../logging/Log"; import { LOG_LEVEL } from "../../logging/LogLevels"; const LEGACY_BASE_STORAGE_KEY = 'CrownstoneStore_'; ...
<filename>katas.ts function points(games: string[]) { let ourpoints = 0; games.forEach((val) => { let split = val.split(":"); //? if (split[0] > split[1]) { ourpoints += 3 } else if (split[0] == split[1]) { ourpoints += 1 } }) return ourpoints } // points(['1:0', '2:0', '3:0', ...
<filename>src/client/providers/jediProxy.ts 'use strict'; import * as child_process from 'child_process'; import * as vscode from 'vscode'; import * as path from 'path'; import * as settings from './../common/configSettings'; import * as logger from './../common/logger'; import * as telemetryHelper from '../telemetry'...
/** * @author zz85 / http://www.lab4games.net/zz85/blog * * Creates extruded geometry from a path shape. * * parameters = { * * curveSegments: <int>, // number of points on the curves * steps: <int>, // number of points for z-side extrusions / used for subdividing segments of extrude spline too * amount: <i...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { IDisposable } from "@fluidframework/common-definitions"; import { IFluidObject, IRequest, IResponse, IFluidHandle, } from "@fluidframework/core-interfaces"; import { IAudience, IDelt...
import { Configuration, Manifest, Project, StreamReport, Workspace, FormatType, } from "@yarnpkg/core"; import isCI from "is-ci"; import { cpus } from "os"; import { Filename, PortablePath, ppath, xfs } from "@yarnpkg/fslib"; import { YarnBuildConfiguration } from "../../config"; import { EventEmitter } fr...
<reponame>marc-hughes/oli-torus-1 import { Environment, Evaluator, Lexer, Parser } from 'janus-script'; import { formatNumber, parseArray, parseBoolean } from 'utils/common'; import { CapiVariableTypes, getCapiType } from './capi'; import { janus_std } from './janus-scripts/builtin_functions'; export const looksLikeJs...
<gh_stars>1-10 /***************************************************************************/ /* */ /* Copyright 2018-2022 by */ /* Vily(<EMAIL>) */ /...
import Hammer from 'hammerjs' import { EventListener } from '../event/Event' import { InputEvent, InputState } from '../event/InputEvent' import { PanEvent, PanState } from '../event/PanEvent' import { PinchEvent, PinchState } from '../event/PinchEvent' import { SwipeEvent, SwipeState } from '../event/SwipeEvent' impor...
<reponame>rdarder/rollup import { timeEnd, timeStart } from './utils/timers'; import MagicString, { Bundle as MagicStringBundle, SourceMap } from 'magic-string'; import { blank, forOwn } from './utils/object'; import Module, { ModuleJSON } from './Module'; import finalisers from './finalisers/index'; import getExportMo...
import { Controller } from '@hotwired/stimulus'; import morphdom from 'morphdom'; import { parseDirectives, Directive } from './directives_parser'; import { combineSpacedArray } from './string_utils'; import { setDeepData, doesDeepPropertyExist, normalizeModelName, parseDeepData } from './set_deep_data'; import { haveR...
import { expectTypeOf } from 'expect-type'; import Maybe, { just, nothing } from 'true-myth/maybe'; import Result, { Ok, Variant, Err } from 'true-myth/result'; import * as ResultNS from 'true-myth/result'; import Unit from 'true-myth/unit'; const length = (x: { length: number }) => x.length; const double = (x: number...
<gh_stars>1-10 import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; ...
<reponame>ohoareau/microgen<gh_stars>1-10 import Service from './Service'; import Handler from './Handler'; import SchemaParser from './SchemaParser'; import Microservice from './Microservice'; import stringifyObject from 'stringify-object'; import {TestFileConfig} from './TestFile'; import MicroserviceTypeOperation, {...
import {leoRuntimesApi} from 'app/services/notebooks-swagger-fetch-clients'; import {disksApi, runtimeApi} from 'app/services/swagger-fetch-clients'; import { DEFAULT, switchCase, withAsyncErrorHandling } from 'app/utils'; import { ExceededActionCountError, ExceededErrorCountError, LeoRuntimeInitializationA...
<filename>generated/vega/tm/replay_pb.d.ts // package: tm // file: vega/tm/replay.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; export class TmEvent extends jspb.Message { hasReqInitChain(): boolean; clearReqInitChain(): void; getReqInitChain(): RequestInitChai...
import * as fs from 'fs'; import * as path from 'path'; import { window, Uri, commands, workspace, ViewColumn, WebviewPanel } from 'vscode'; import { vscodeFetchUnzip } from './fetchUnzip'; import { Helper } from './helper'; import { Global, vscode_version_match } from './global'; import { execHashList, revision } from...
<reponame>rbleattler/airmessage-web import DataProxyImpl from "platform-components/connection/dataProxy"; import CommunicationsManager, {CommunicationsManagerListener} from "./communicationsManager"; import ClientComm5 from "./comm5/clientComm5"; import DataProxy from "./dataProxy"; import {Conversation, ConversationIt...
/* * Copyright 2017,2019 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
<filename>packages/injector/src/injector.ts<gh_stars>1-10 import { isClassProvider, isExistingProvider, isFactoryProvider, isValueProvider, NormalizedProvider, ProviderWithScope, Tag, TagProvider, TagRegistry, Token } from './provider'; import { AbstractClassType, ClassType, CompilerContext, CustomError, getClassName, ...
import Taro, { Component } from "@tarojs/taro"; import { View, Text, Image, ScrollView, Button, Swiper, SwiperItem } from "@tarojs/components"; import "./index.less"; import { getYouhuiAppreciationInfo, getShareSign, wxXcxuWechatPay, getUserLastYouhuiId, geValueAddedPoster } from "./service"; import { getXcxQ...
<reponame>freifunkhamburg/ffffng import _ from "lodash"; import moment, {Moment, unitOfTime} from "moment"; import request from "request"; import {config} from "../config"; import {db, Statement} from "../db/database"; import * as DatabaseUtil from "../utils/databaseUtil"; import ErrorTypes from "../utils/errorTypes";...
export declare const enum enumFormat { Raw = 1, Format = 2, All = 4 } export declare enum enumReturn { Value = 0, Array = 1 } export declare const enum enumMove { validate = 0, left = 1, right = 2, up = 4, down = 8, page_up = 16, page_down = 32, begin = 64, disabl...
import whichPolygon from 'which-polygon'; import rawBorders from './data/borders.json'; type RegionFeatureProperties = { // Unique identifier specific to country-coder id: string; // ISO 3166-1 alpha-2 code iso1A2: string | undefined; // ISO 3166-1 alpha-3 code iso1A3: string | undefined; // ISO 3166-...
<gh_stars>0 import * as d3 from 'd3'; import * as utils from './utils/utils'; import * as searchUtils from './utils/search-matching'; import { Link, Node, Hull } from './data-interfaces'; import Tooltip from './utils/tooltip'; import { DiagramStyles } from './diagram-styles'; export function load( highlightedNodesCh...
<reponame>mbedded-ninja/NinjaTerm<gh_stars>10-100 import Marker, { Association } from '../Marker' import NewLineMarker from '../NewLineParser/NewLineMarker' import ColourMarker from './ColorMarker' declare global { interface RegExp { toPartialMatchRegex(): RegExp; } } RegExp.prototype.toPartialMatchRegex = f...
"use strict"; import { createServer } from "http"; import * as url from "url"; import * as WebSocketServer from "ws"; import * as express from "express"; import * as dgram from "dgram"; import * as readUInt64BE from "readuint64be"; import { Buffer } from "buffer"; import *...
import React, {useState, useEffect} from 'react'; import {RPC} from 'ckb-js-toolkit'; import {tryAcquire, E_ALREADY_LOCKED} from 'async-mutex'; import {AddressPrefix, privateKeyToAddress} from '@nervosnetwork/ckb-sdk-utils'; import {AddressTranslator, IAddressTranslatorConfig} from 'nervos-godwoken-integration'; import...
<gh_stars>0 export declare const ADD = "\uE63E"; export declare const ADD_COLUMN_LEFT = "\uE6F9"; export declare const ADD_COLUMN_RIGHT = "\uE6FA"; export declare const ADD_ROW_BOTTOM = "\uE6F8"; export declare const ADD_ROW_TOP = "\uE6F7"; export declare const ADD_TO_ARTIFACT = "\uE67C"; export declare const ADD_TO_FO...
<reponame>Bone008/finance-tracker<filename>src/app/money/analytics/analytics.component.ts import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import * as moment from 'moment'; import { BehaviorSubject, combineLatest, Subscription } from 'rxjs'; import ...
/** * ダウンロード用のObject */ export type DownloadObj = { posts: Record<string, PostObj[]>, id: string }; /** * 投稿情報のObject */ export type PostObj = { name: string, info: string, files: Record<string, FileObj[]>, html: string, cover?: FileObj }; /** * ファイル用のObject */ export type FileObj = { url: string, name: string,...
/** * 地图模块 */ import React, { useState, useEffect, memo, useRef } from 'react'; import { useSelector, shallowEqual, useDispatch } from 'react-redux'; import LoadMap from '@/common/mapEngine'; import Toolbar from './toolbar'; import vehicleIcon from '@/static/image/vehicleIcon.png'; import peopleIcon from '@/static/im...
import * as React from 'react'; import { getClient, IExtensionDataManager, IGlobalMessagesService, IProjectInfo, MessageBannerLevel, } from 'azure-devops-extension-api'; import { GitBranchStats, GitRef, GitRefUpdate, GitRefUpdateResult, GitRefUpdateStatus, GitRepository, ...
/** * `engine/utilities.ts` * - Simple Logger with timestamp + color * * @author <NAME> <<EMAIL>> * @date 2018-05-23 initial version * @date 2019-11-26 cleanup and optimized for `lemon-core#v2` * * @copyright (C) lemoncloud.io 2019 - All Rights Reserved. */ import { EngineCore, GeneralFuntio...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------------...
<gh_stars>1-10 import {Component, ElementRef, Input, OnDestroy, OnInit, TemplateRef, ViewChild} from '@angular/core'; import {I18nService} from "core-app/modules/common/i18n/i18n.service"; import {HalResourceService} from "core-app/modules/hal/services/hal-resource.service"; import {PathHelperService} from "core-app/mo...
<reponame>danr/projective<gh_stars>10-100 /** Store for some state Store laws (assuming no listeners): 1. `s.set(a).get() = a` 2. `s.set(s.get()).get() = s.get()` 3. `s.set(a).set(b).get() = s.set(b).get()` Store laws with listeners: 1. `s.transaction(() => s.set(a).get()) = a` 2. `s.transaction(() => s.set(s.g...
<gh_stars>10-100 import type { ScopeManager, Scope, Reference } from "eslint-scope" import type * as ESTree from "estree" import type { Context, ScriptsSourceCode } from "." import type { Comment, Locations, SvelteEachBlock, SvelteIfBlock, SvelteName, SvelteNode, Token, } from "../ast" impor...
import * as util from 'util'; import { Component, ComponentAPI, Inject, Subscribe, Variable } from '@ayanaware/bento'; import { Logger } from '@ayanaware/logger-api'; import { APIApplicationCommandOption, APIChatInputApplicationCommandInteraction, APIChatInputApplicationCommandInteractionData, ApplicationCommandO...
import { useRouter } from 'next/router'; import { FormEvent, useEffect, useRef, useState, } from 'react'; import { CheckIcon, PlusIcon, ReplyIcon, XIcon, } from '@heroicons/react/solid'; import { Snackbar, Alert } from '@material-ui/core'; import { TrashIcon } from '@heroicons/react/outline'; import RichMarkdownEdito...
<reponame>TomatoPana/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-----------------------------------...
<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. *------------------------------------------------...
<filename>pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this ...
// Copyright IBM Corp. 2018,2019. All Rights Reserved. // Node module: @loopback/rest // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import { Binding, BindingAddress, BindingScope, Constructor, Context, inject, } from '@loopback/context'; im...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import React, { useEffect, useState, useRef } from 'react'; import classNames from 'classnames'; import * as _ from 'lodash'; import { useHistory } from 'react-router'; import { LocationDisplay, Error } from 'modules/common/form'; import { BACK, NEXT, CREATE, CUSTOM_CONTENT_PAGES, REVIEW, FORM_DETAILS, TE...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// PyDvi - A Python Library to Process DVI Stream // Copyright (C) 2014 <NAME> // // 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 Foundation, either version 3 of the License, or // (at your option) any l...
export const cobolKeywords: string[] = [ "3-d", "absent", "accept", "access", "action", "active-x", "actual", "add", "address", "adjustable-columns", "advancing", "after", "alignment", "all", "allocate", "allowing", "alphabet", "alphabetic", "alphabetic-lower", "alphabetic-upper", "alphanumeric", ...
/* Copyright (c) 2017-2020 <NAME> 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, non-assignable, revocable and non-exclusive license to ...
<reponame>UniStuttgart-VISUS/spatiotemporal1d import { Dispatch, dispatch } from 'd3-dispatch'; import { Quadtree, quadtree } from 'd3-quadtree'; import { extent, range, sum } from 'd3-array'; import { scaleBand, scaleLinear } from 'd3-scale'; import { interpolatePlasma } from 'd3-scale-chromatic'; import * as T from ...
<reponame>EOCOnline/rangertrak /// <reference types="@types/google.maps" /> import { LatLng, LatLngBounds } from 'leaflet' import { catchError, map, Observable, of, Subscription } from 'rxjs' import { DOCUMENT, JsonPipe } from '@angular/common' import { HttpClient } from '@angular/common/http' import { Component, Elem...
type HttpStatus = { [key: string]: { code: string, phrase: string, description: string, spec_title: string, spec_href: string, } } export const status: HttpStatus = { '100': { 'code': '100', 'phrase': 'Continue', 'description': 'indicates that ...