text stringlengths 3.3k 33k |
|---|
<filename>webapp/packages/plugin-data-viewer/src/TableViewer/TableViewerModel.ts
/*
* cloudbeaver - Cloud Database Manager
* Copyright (C) 2020 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import { action, observ... |
import chalk = require('chalk');
import type {
CSpellReporter,
Issue,
MessageType,
ProgressFileBegin,
ProgressFileComplete,
ProgressItem,
RunResult,
} from '@cspell/cspell-types';
import { ImportError, isSpellingDictionaryLoadError, SpellingDictionaryLoadError } from 'cspell-lib';
import * a... |
export class HttpMethods {
public static GET = 'get';
public static POST = 'post';
public static DELETE = 'delete';
public static HEAD = 'head';
public static PATCH = 'patch';
public static PUT = 'put';
public static OPTIONS = 'options';
public static TRACE = 'trace';
}
export class Co... |
import React, { FC, useEffect, useMemo } from 'react';
import { Button, Col, Row, Table } from 'react-bootstrap';
import { useTable, useFilters, useGlobalFilter, useSortBy } from 'react-table';
import { createUseStyles } from 'react-jss';
import { useTranslation } from 'react-i18next';
import moment from 'moment';
impo... |
/* eslint-disable no-unused-vars */
import React, {
useState,
useRef,
useEffect,
useReducer,
ReactElement
} from 'react'
import { initialState, focusReducer } from './reducer/focusReducer'
import styles from './index.css'
import useScroll from './hooks/useScroll'
type ComboBoxProps = {
options: string[]
... |
<reponame>hirvinen/vscode-phpstan<filename>src/controller.ts
import {
commands,
languages,
workspace,
window,
Disposable,
Diagnostic,
DiagnosticCollection,
Range,
StatusBarAlignment,
StatusBarItem,
TextDocument,
Uri
} from "vscode";
import * as utils from "./utils";
import * as child_process fro... |
/*
* Copyright 2019 <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, copy, modify, merge, publish, distribute, ... |
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewScript extends cc.Component {
@property
distance = 30;//每次移动距离
@property
moveDuration = 0.05;//移动时间
// 主角跳跃高度
@property
jumpHeight = 150;
// 主角跳跃持续时间
@property
jumpDuration = 0.1;
// 最大移动速度
@prop... |
<filename>test/integration/ml_proxy.ts<gh_stars>1-10
/**
* Copyright 2019 Splunk, 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
*... |
<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { SchemaType } from "./SchemaType";
import { SchemaClass } from "./SchemaClass";
import { SchemaEnum } from "./SchemaEnum";
import { SchemaProperty } from "./SchemaProperty";
import { SchemaPropertyType... |
<filename>src/d15.ts
import {Array2} from "./array2";
import {ChallengeFromFile} from "./challenge";
import {ChallengeRegistry} from "./challenge_registry";
import {findMin} from "./common";
import {startIntcode, wakeIntcode} from "./intcode";
type Coord = [number, number];
type Map = Array2<Uint8Array>;
const MAX_WI... |
/* eslint-disable react/sort-comp */
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import moment from 'moment';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import SaveAltIcon from '@material-ui/icons/SaveAlt';
imp... |
import { EventEmitter } from 'events';
import { AddressZero } from 'ethers/constants';
import { filter, map } from 'rxjs/operators';
import { State, getStateSignerAddress, hashState, signState } from '@statechannels/nitro-protocol';
import * as rxjs from 'rxjs';
import _ from 'lodash';
import { AddressableMessage, Fu... |
<reponame>florianmartens/oatyp
import { MethodDeclaration, Scope, SourceFile, WriterFunctionOrValue, Writers } from 'ts-morph'
import { analyzePathOperations } from './project-analyzer'
import CodeFormatting from './code-formatting'
import CodeGen from './code-gen'
import type { OpenAPIV3 } from 'openapi-types'
import ... |
<gh_stars>0
import tl = require('azure-pipelines-task-lib/task');
import trm = require('azure-pipelines-task-lib/toolrunner');
import chardet = require('chardet');
import fs = require('fs');
import iconv = require('iconv-lite');
import moment = require('moment');
import path = require('path');
import xml2js = require('... |
import {
GatewayOutlined,
LayoutOutlined,
SettingOutlined,
SyncOutlined,
UnorderedListOutlined,
VideoCameraOutlined,
} from '@ant-design/icons';
import { Button, Form, Input, List, message, Modal, Popconfirm, Popover } from 'antd';
import React, { CSSProperties, PropsWithChildren, useState } from 'react';
import ... |
<filename>DropShadowTextControl/PCF-DropShadow-Text/DropShadowText/index.ts<gh_stars>1-10
import {IInputs, IOutputs} from "./generated/ManifestTypes";
export class DropShadowText implements ComponentFramework.StandardControl<IInputs, IOutputs> {
private controlId: string;
private svgContainer: HTMLDivElement;
pr... |
<filename>packages/ghostv/src/pragma/transform.ts<gh_stars>0
import {
VNode,
VNodeData,
} from 'snabbdom/vnode'
import {
Key,
GhostVElement,
GhostVPortal,
GhostVNode,
} from './define'
const modules: any = {
attrs: '',
props: '',
class: '',
data: 'dataset',
style: '',
hook: '',
on: ''
}
impo... |
<gh_stars>0
import Game from "../Game";
import GridCoordinates from "../world/GridCoordinates";
import Technology from "../techtree/Technology";
import Species from "../resources/Species";
import Tile, { typeofTileSchema } from "../world/Tile";
import Road from "../world/tiles/Road";
import Resource from "../resources/... |
import hirestime from "hirestime";
import assert from "minimalistic-assert";
import DefaultWeakMap from "mnemonist/default-weak-map.js";
import { EventEmitter } from "node:events";
import type TypedEmitter from "typed-emitter";
import { CongestionAvoidance } from "./congestion-avoidance";
import { RttEstimator } from ... |
const through2 = require('through2')
import Vinyl = require('vinyl')
import PluginError = require('plugin-error');
require('pkginfo')(module); // project package.json info into module.exports
const PLUGIN_NAME = module.exports.name;
import * as loglevel from 'loglevel'
const log = loglevel.getLogger(PLUGIN_NAME) // get... |
<gh_stars>0
import {IBoxPlotData, ICategoricalStatistics, IStatistics, LazyBoxPlotData, IAdvancedBoxPlotData, round} from '../internal';
import {IDataRow, IGroup, isNumberColumn} from '../model';
import {default as BoxPlotColumn} from '../model/BoxPlotColumn';
import Column from '../model/Column';
import {IBoxPlotColum... |
<filename>src/runtime/node/fs/_fs.ts<gh_stars>10-100
import type fs from 'fs'
import { notImplemented } from '../../_internal/utils'
import * as fsp from './promises'
interface Promisifiable {
(): any
native: Promisifiable
__promisify__: () => Promise<any>
}
function notImplementedAsync (name: string): Promisif... |
<reponame>cranpun/operate-tagtable
// *********************************************
// public
// *********************************************
export type OperateTabletagCompare = "number" | "text";
export type OperateTabletagOrder = "asc" | "desc";
// *********************************************
// private
// ******... |
<reponame>delude88/digitalstage-mediasoup
import {useCallback, useEffect, useState} from "react";
import debounce from 'lodash.debounce';
import omit from 'lodash.omit';
export interface ConnectionInfo {
NAT: number;
OS: string;
interfaceIP: string;
localBindPort: string;
localIP: string;
local... |
import _, { padStart } from 'lodash'
import { ApolloClient, MutationOptions } from 'apollo-client'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { createHttpLink } from 'apollo-link-http'
import fetch from 'node-fetch'
import pMap from 'p-map'
import moment from 'moment'
import dotenv from 'dotenv'
impor... |
import React, { useDebugValue, useState, useMemo } from 'react';
import { Group } from '@visx/group';
import { hierarchy, Tree } from '@visx/hierarchy';
import { LinearGradient } from '@visx/gradient';
import useForceUpdate from './useForceUpdate';
import LinkControls from './LinkControls';
import getLinkComponent from... |
import React, { useMemo } from 'react'
import { graphql, Link } from 'gatsby'
import styled from '@emotion/styled'
import { JsonLd } from 'react-schemaorg'
import { BreadcrumbList, Blog, Thing, Article } from 'schema-dts'
import '../styles/post.css'
import '../styles/syntax.css'
import colors from '../utils/colors'
im... |
<reponame>emersonmacro/ethereumjs-monorepo
import tape from 'tape'
import { SecureTrie } from '../src'
tape('SecureTrie', function (t) {
const trie = new SecureTrie()
const k = Buffer.from('foo')
const v = Buffer.from('bar')
t.test('put and get value', async function (st) {
await trie.put(k, v)
const ... |
<filename>src/model/Parser.ts
const babelCore = require('@babel/core');
import * as vscode from 'vscode';
import * as path from 'path';
import BaseErrorNode from './BaseErrorNode';
import Config from "./Config";
import IntlStorage from "./IntlStorage";
import utils from '../utils/index';
import Service from './Service'... |
import React from "react";
import { border } from "../border/border";
import { Icon, IconComponent } from "../icon/icon";
import { outline } from "../outline/outline";
import { text } from "../text/text";
import sFlat from "./flat.module.css";
import s from "./input.module.css";
import sOutset from "./outset.module.css... |
<reponame>jkauze/frontend
import { Component, OnInit, Inject } from '@angular/core';
import { AppService } from 'app/app.service';
import { MAT_DIALOG_DATA } from '@angular/material';
import { tableWeek } from 'app/horario/horario.component';
@Component({
selector: 'app-dialog-schedule-reserved',
template: `
<... |
<filename>packages/core/micro/test/sample-adjust-tree.spec.ts
import "mocha";
import {
createTreeDebug,
TreeConfiguration,
} from "../src/index";
import { simpleDeletionTest } from "./util";
const config = (order: number): TreeConfiguration<number> => ({
emptySegment: -1,
order,
extractSegmentRan... |
import React from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
interface Jobs {
label: string
items: string[]
}
const jobs: Jobs[] = [
{
label: 'Posizioni Aperte',
items: ['Software developer <strong>.net</strong> (Mid o Senior)', 'Software developer <strong>nod... |
import Service, { inject as service } from '@ember/service';
import Evented from '@ember/object/evented';
import debugLogger from 'ember-debug-logger';
import { tracked } from '@glimmer/tracking';
import ApplicationObject3D from 'explorviz-frontend/view-objects/3d/application/application-object-3d';
import LandscapeLis... |
<filename>src/server.ts<gh_stars>0
import {delay} from "lodash";
import {APIUser, WorkoutStat} from "sdk-library";
import WS from "ws";
import {initApp} from "./app";
//
// Interfaces
//
// Generic
export interface Message {
type: string;
user?: APIUser;
}
// Online Members
export const ONLINE_MEMBERS_MESSA... |
import { ProductionInstallation, writeInstallInfo } from "../utils/installation";
import {
NpmPackage,
removeNpmPackage,
isPackageEquals,
runNpmInstall,
buildNpmPackagePath,
downloadNpmPackage,
createNpmSymlinks,
getSubPackages,
} from "../utils/npm";
import { directoryExists, ensureDire... |
import { } from 'googlemaps';
import { ActivatedRoute, Router } from '@angular/router';
import CommonServices from '../../shared/services/CommonServices';
import { Component, OnInit, NgZone, ViewChild } from '@angular/core';
import { CompleterService, CompleterData, CompleterItem } from 'ng2-completer';
import { e... |
import { ThemeSettings } from './theme-settings';
import * as gulp from 'gulp';
const addSrc = require('gulp-add-src');
const browserify = require('browserify');
const browserSync = require('browser-sync').create();
const buffer = require('vinyl-buffer');
const cheerio = require('gulp-cheerio');
const cleanCSS =... |
<reponame>ffluffyhedgehog/xm-webapp
/* eslint-disable no-unused-expressions */
import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { JhiAlertService, JhiEventManager } from 'ng-jh... |
<gh_stars>0
/**
* link: https://juejin.cn/post/7002414029176061983
*/
import * as THREE from "three";
import Model from "./Model";
interface DragonParameters {
castShadow?: boolean;
}
export default class Dragon extends Model {
color!: Record<string, number>;
material!: Record<string, THREE.Material>;
... |
import { BigNumber, ethers } from 'ethers';
import { addresses } from "../constants";
import { abi as OlympusStakingv2 } from "../abi/OlympusStakingv2.json";
import { abi as sOHM } from "../abi/sOHM.json";
import { abi as ohmDAI } from "../abi/reserves/OhmDai.json";
import { abi as ierc20Abi } from "../abi/IERC20.json"... |
<filename>src/client/common/utils/text.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { Position, Range, TextDocument } from 'vscode';
import { isNumber } from './sysTypes';
export function getWindowsLineEndingCount(document: TextDocument, offs... |
<gh_stars>0
/**
* Entity Relationship Diagram (in TypeScript)
* @author <NAME>
* @version 1.0
* @remarks Copyright (C) 2022 <NAME>
* @remarks Licensed under MIT, see https://opensource.org/licenses/MIT
* @see https://hunyadi.info.hu/
**/
type IndexType = number;
type SizeType = number;
/**
* A vector (de... |
<reponame>arnodel/next-auth
/**
* next-auth.functions.js Example
*
* This file defines functions NextAuth to look up, add and update users.
*
* It returns a Promise with the functions matching these signatures:
*
* {
* find: ({
* id,
* email,
* emailToken,
* provider,
* poviderToken
... |
import React, { useState } from 'react'
import { getSession } from 'next-auth/client'
import { Avatar, Col, Form, Row, Switch } from 'antd'
import classNames from 'classnames'
import Button from '@/components/Button'
import Input from '@/components/Input'
import Page from '@/components/Page'
import PageTitle from '@/co... |
<reponame>doubler1125/study-gaiajs
import { Kafka, Consumer as KafkaJSConsumer, KafkaMessage, logLevel, LogEntry } from 'kafkajs';
import { promisify } from 'util';
import * as chan from 'chan';
const debug = require('debug')('gaia:kafka/consumer');
// const hessian = require('hessian.js');
import { Application, Contex... |
<reponame>danielgara/VariaMosBasic
import { mxgraphFactory } from 'ts-mxgraph';
import { Button } from './Button';
import { ConfigButtonActions } from './ConfigButtonActions';
import { ConfigElements } from './ConfigElements';
import { ConfigProperties } from './ConfigProperties';
import { ConfigKeys } from './ConfigKe... |
<reponame>MrBLightning/CannabisCounter_Server
import { Controller, Inject, Get, Param, Body, Post, Put, Delete, Req, UseGuards } from '@nestjs/common';
import { OrderReserveChickenService } from './order-reserve-chicken.service';
import { DataCatalogService } from '../../data/data-catalog/data-catalog.service';
import ... |
import { DragAndDropHandler, DragEventListener } from '../DragAndDropHandler';
import { FilePushStream, PushResponse } from './FilePushStream';
import { FilePushResponseStatus } from './FilePushResponseStatus';
type Resolve = (response: PushResponse) => void;
export type PushUpdateParams = {
pushId: number;
f... |
import {
CompassTrip,
CompassTripHeader,
AzimuthUnit,
DistanceUnit,
InclinationUnit,
LrudItem,
LrudAssociation,
CompassShot,
CompassDatFile,
} from '.'
import { SegmentParseError, Segment, SegmentParser } from 'parse-segment'
import { UnitizedNumber, Angle, Unitize, Length } from '@speleotica/unitized... |
export enum CardType { A, B, C, D, E, F, BP};
export enum CardId { A1, A2, B1, B2, C1, C2, D1, D2, E1, E2, F1, F2, BP};
export interface Card {
type: CardType;
id: CardId;
}
const Deck: Card[] = [
{ type: CardType.A, id: CardId.A1 },
{ type: CardType.A, id: CardId.A2 },
{ type: CardType.B, id: Card... |
<filename>scripts/prepare-data-files.ts
import * as fs from 'fs';
import { parse, ParseConfig, unparse } from 'papaparse';
const axios = require('axios').default;
const MAX_HEIGHT = 40;
const MAX_CROWN = 40;
const MAX_PLANTED = 2021;
const LAT_LON_ACCURACY_FACTOR = 10000000;
const IGNORED_ADDRESS_WORDS = [
' (Str... |
<reponame>MikaelSmith/kotsadm
import _ from "lodash";
import { IO, Nsp, SocketService, SocketSession, Socket } from "@tsed/socketio";
import { getPostgresPool } from "../../util/persistence/db";
import { KotsAppStore, UndeployStatus } from "../../kots_app/kots_app_store";
import { KotsAppStatusStore } from "../../kots_... |
<reponame>DedekindCuts/homebridge-hatch-baby-rest<filename>src/rest.ts
/**
* If you are viewing this code and considering extracting it for another use,
* please let me know with a GitHub issue! I would be happy to provide an API that
* can be used by other projects, but didn't want to go to the work until there wa... |
<reponame>zjurelinac/vscode-jsd-debug<filename>src/jsdDebug.ts
import {
Logger, logger,
LoggingDebugSession,
InitializedEvent, TerminatedEvent, StoppedEvent, BreakpointEvent,
Thread, StackFrame, Scope, Source, Handles, Breakpoint
} from 'vscode-debugadapter';
import { DebugProtocol } from 'vscode-debugp... |
<gh_stars>10-100
import { UsageLog } from '../UsageLog';
import { UserAttribute, pickUserAttribute } from '../UserAttribute';
import { EventType, UsageEvent } from '../UsageEvent';
import {
pickAwareEvent,
pickUserEvent,
pickUsageTracker,
pickSystemEvent,
UserEvent,
SystemEvent,
} from '..';
imp... |
import * as _ from 'lodash';
import * as uuid from 'uuid';
import {Logger} from '../../../common/util/Logger';
import {BudgetChangesetHint} from '../../models/BudgetChangesetHint';
import {Domain} from '../../models/Domain';
import {Layer} from '../../models/Layer';
import {createBudgetChangeset, singleRow} from './ut... |
<filename>source/definitions/universaltypes.ts
import { MarkdownString } from "vscode";
// TODO: Add the character string multipliers
export const END_OF_CONTENT_DEFINITION : MarkdownString = new MarkdownString(
"A special UNIVERSAL type used to signal the termination of an \
indefinite-length encoded ASN.1 element.... |
import React, { useContext, useEffect, useState } from 'react';
import styles from './functions-cannon.module.css';
import Cannon from './Cannon';
import SimulationContainer from '../../simulation-container/SimulationContainer';
import { applyCannonWheelStyle, initCannon, initCannonBall, initTestSquare } from './st... |
<filename>src/extensions/geo-export/obj-exporter.ts
/**
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { asciiWrite } from '../../mol-io/common/ascii';
import { Box3D } from '../../mol-math/geometry';
import { Vec3, Mat3, Mat4 } fr... |
<filename>apps/heft/src/plugins/NodeServicePlugin.ts
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as child_process from 'child_process';
import * as process from 'process';
import { performance } f... |
<filename>test.ts
import test from 'ava';
import {Roll20Client, Roll20Client1} from "./src/roll20Client";
import {Character} from "./src/Model/Character";
const dotenv = require("dotenv");
const fs = require("fs");
const nonGmEnv = dotenv.parse(fs.readFileSync(".env.test"));
const gmEnv = dotenv.parse(fs.readFileSync... |
/*
*************************************
* <!-- Scroll Reveal -->
*************************************
*/
import React, { Component } from 'react';
/*-- Apply Third-party plugins (import location should be in front of "GLOBAL STYLES") --*/
import '@/components/_plugins/_lib-bootstrap';
import '@/components/_plug... |
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
MasterAndShadowAccessPoints,
_decode_MasterAndShadowAccessPoints,
_encode_MasterAndShadowAccessPoints,
} from "../D... |
import { VCard, Address } from './types/vCard';
import { VCardEncoding } from './types/vCardEncoding';
import {
isPropertyWithParameters,
propertyToVCardString,
BasicPropertyParameters,
isPropertyWithParametersAddressValue
} from './types/parameter/BasicPropertyParameters.type';
import { nl, e } from './helpers... |
<reponame>EliasRut/Endless-Dungeon<filename>src/scripts/helpers/DynamicLightingHelper.ts
import globalState from '../worldstate';
import { DEFAULT_TILE_TINT, VISITED_TILE_TINT } from './constants';
import { GID_MULTIPLE, TILE_HEIGHT, TILE_WIDTH } from './generateDungeon';
import { isCollidingTile } from './movement';
... |
import fs from 'fs'
import sharp, { AvailableFormatInfo } from 'sharp'
import { EventEmitter } from 'events'
import { Readable } from 'stream'
import { bufferToStream, streamToBuffer } from './Utilities'
const DEFAULT_WIDTH: number = 400
export default function Photosaic(
sourceImage: PhotosaicImage,
subImages: P... |
<reponame>md604/shopify-assistant
import {
ShopifyTheme,
StorageThemesData,
ThemeMeta,
defaultThemeMeta
} from './interfaces';
/*
Storage model:
{
shops: {
'xxx.myshopify.com': {
themes: {
'theme_1_id': { theme_1 obj - raw shopify data },
'the... |
/**
* To define duration unit for whole project
*/
export type DurationUnit =
/** To define unit value of duration as minute */
'Minute' |
/** To define unit value of duration as hour */
'Hour' |
/** To define unit value of duration as day */
'Day';
/**
* To define grid lines in Gantt
*/
ex... |
<filename>src/userscript/sites/private/neu6.ts
import { ISearchFilter, ISiteMetadata, ITorrent } from '@/shared/types'
import PrivateSite from '../schema/AbstractPrivateSite';
import { AxiosRequestConfig } from 'axios';
import urlencode from 'urlencode';
export const siteMetadata: ISiteMetadata = {
name: '六维空间',
d... |
/* eslint @typescript-eslint/no-unsafe-argument: "warn" */
import { BigNumber } from '@ethersproject/bignumber';
import { Button, Col, Divider, Input, Row, Tooltip } from 'antd';
import { useEthersContext } from 'eth-hooks/context';
import { ContractFunction, utils } from 'ethers';
import { FunctionFragment } from... |
import { endPoint, Point3d, rad2Deg, rotatePoint } from "@lincode/math"
import store, { Reactive } from "@lincode/reactivity"
import { Vector3 } from "three"
import { interpret } from "xstate"
import { onBeforeRender } from "../../events/onBeforeRender"
import { onRender } from "../../events/onRender"
import { DUMMY_UR... |
<reponame>luna215/molstar-proto
/**
* Copyright (c) 2017 Mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { LinkType } from '../../../model/types';
import Structure from '../../structure';
import Unit from '../../unit';
import { getElementIdx, getElement... |
import React, { PureComponent } from 'react'
import scrollIntoView from 'scroll-into-view-if-needed'
import VirtualList, {
Props as VirtualListProps,
} from '@myntra/uikit-component-virtual-list'
import InputCheckbox from '@myntra/uikit-component-input-checkbox'
import classnames from './list.module.scss'
import { cr... |
import {
IAccount,
IChat,
IGame,
ITournament,
LobbyTournamentItem,
PersonalAccountData,
Tournament,
TournamentDefinition,
TournamentOptionsEnum,
TournamentPlayerStateDefinition,
TournamentStatus,
} from "@poker/api-server";
import { TournamentView } from "poker/table/tourname... |
import { AntColony } from "../tsp/Ant";
import { BruteForceSolver, getPathBrute } from "../tsp/Brute";
import { getPathDynamic } from "../tsp/Dynamic";
import { generateMatrix, generateNodes, getMatrixPaths, getMatrixWeights, nodesToLines } from "../tsp/Util";
import { Renderer } from "../util/Renderer";
export interf... |
<filename>src/client/webSocket/index.ts
import WebSocket, { CONNECTING, OPEN } from 'isomorphic-ws';
import type {
AuthTokenWebSocketRequestAuthenticatedSubscription,
AuthTokenWebSocketRequestSubscription,
MultiverseChain,
WebSocketRequest,
WebSocketRequestSubscription,
WebSocketRequestUnauthenticatedSubsc... |
/* eslint-disable react/sort-comp */
/* eslint-disable prefer-template */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { Dropdown, Menu, Select, Tag } from 'antd';
import { DownOutlined, PlusCircleOutlined } from '@ant-design/icons';
import Comparison from... |
/*
* Copyright 2018 ShipChain, 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 law or agreed... |
import * as functions from 'firebase-functions'
import * as admin from 'firebase-admin'
import { ottieniOrariClassiOAule, ottieniOrariProfessori, confrontaOrari } from 'parser-orario-galilei'
import { ImpostazioniCloudFunction } from './utils/impostazioni-cloud-function'
import { LogOrari } from './utils/log-orari.mode... |
<filename>test/types.ts<gh_stars>1-10
import * as ss from '../'
ss.addToMean(14, 5, 53); // => 20.5
ss.combineMeans(5, 3, 4, 3); // => 4.5
ss.combineVariances(14 / 3, 5, 3, 8 / 3, 4, 3); // => 47 / 12
ss.geometricMean([1.80, 1.166666, 1.428571]);
ss.harmonicMean([2, 3]).toFixed(2) // => '2.40'
ss.mean([0, 10]); // => ... |
<reponame>ajbanck/brxm<filename>channel-manager/ui/src/app/variants/components/characteristics-dialog/characteristics-dialog.component.ts
/*!
* Copyright 2020-2021 Bloomreach. All rights reserved. (https://www.bloomreach.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... |
import React, { useState, useEffect, useRef, useContext } from 'react';
import { HashRouter, Switch, Route } from 'react-router-dom';
import fs from 'fs';
import Nav from './Components/Nav';
import Ble from './Components/Ble';
import Serial from './Components/Serial';
import Error from './Components/Error';
import { E... |
import {BaseLoader} from "./base-loader";
// program.js
const TGX_PALETTE_COLORS = 2560;
// set according to team color
const set = 0;
export class Image {
width: number;
height: number;
offsetX: number;
offsetY: number;
imageData: Uint8ClampedArray;
}
class GM1Header {
ImageCount: number;
... |
import { updateCourseResources, courseChanged } from 'actions/course';
import * as viewActions from 'actions/view';
import { Resource, ResourceState } from 'data/content/resource';
import * as models from 'data/models';
import * as persistence from 'data/persistence';
import * as Immutable from 'immutable';
import * as... |
import got, { Method } from "got"
import { EventEmitter } from "events"
import { AlertType, Currency } from "./types";
import { GOT } from "./symbols";
import { parseDonation, parseUser } from "./parsers";
import { DA_URL } from "../constants";
const regexAccessToken = /access_token\s*=\s*('|")(?<token>[\w\.\\-]+)\... |
<reponame>UD-CISC374/coding-2-try-phaser-annapoliswu
import ExampleObject from '../objects/exampleObject';
import {DEFAULT_HEIGHT} from '../game';
import {DEFAULT_WIDTH} from '../game';
import {gameSettings} from '../game';
import Beam from '../objects/beam';
import Explosion from '../objects/explosion';
import Enemy f... |
<reponame>ryanbender2/sermon-audio-api-client<filename>src/index.ts
import { SermonSortOption, PaginatedResponse, Sermon, Broadcaster, SermonEventTypeDetail, SermonAudioNode, SeriesSortOrder, SeriesFilter, SermonSeries, Speaker, FilterOptions, HighlightedSermons } from './utils/models';
import { createSearchParams, get... |
import hl = require("../../parser/highLevelAST");
export declare function isDocumentationProperty(p: hl.IProperty): boolean;
export declare function isUsagePropertyName(name: string): boolean;
export declare function isUsageProperty(p: hl.IProperty): boolean;
export declare function isMasterRefProperty(p: hl.IProperty)... |
<gh_stars>0
import SerialPort = require('serialport')
import {decode, encode} from 'cobs'
import * as CRC32 from 'crc-32'
import {PB} from 'splitflapjs-proto'
export type MessageCallback = (message: PB.FromSplitflap) => void
interface QueueEntry {
nonce: number
encodedToSplitflapPayload: Uint8Array
}
const... |
<reponame>nicpottier/decent-profile-editor
import {
LitElement,
html,
svg,
customElement,
css,
property,
SVGTemplateResult,
} from 'lit-element';
import {Profile, TargetType, MAX_TEMP, MIN_TEMP} from '../types';
const MAX_Y = 13;
const Y_GRID = 2;
const X_GRID = 5;
@customElement('profile-chart')
export... |
<reponame>darekkay/equal-access<gh_stars>0
/******************************************************************************
Copyright:: 2020- IBM, 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 o... |
#!/usr/bin/env node
// tslint:disable:no-console
import program from 'commander';
import treeify from 'treeify';
import ora from 'ora';
import filesize from 'filesize';
import fs from 'fs';
import { disableAll } from '@openland/log';
import prompts from 'prompts';
disableAll();
import { Database, getTransaction, inTx... |
import { shell } from "electron";
import { normalize, join, extname } from "path";
import { readFile, watch, FSWatcher, pathExists } from "fs-extra";
import { transpile, ModuleKind, ScriptTarget } from "typescript";
import { Nullable } from "../../../shared/types";
import * as React from "react";
import { Spinner } f... |
<reponame>PreetiKripa/SunbirdEd-portal<gh_stars>1-10
export const chapterListComponentInput = {
sessionContext: {
framework: 'NCFCOPY',
currentRole: 'CONTRIBUTOR',
programId: '31ab2990-7892-11e9-8a02-93c5c62c03f1',
program: 'CBSE 2',
onBoardSchool: 'My School',
board: 'NCERT',
channel: 'b0... |
// Dependencies
import {h, Component, render, Fragment, JSX, RefObject} from 'preact';
import {produce} from 'immer';
import clsx from 'clsx';
// Shared across repo
import {uniqueId} from '../shared/general-functions';
import {
getCourses_throwable,
getCredentials,
getToken,
login_throwable,
logout,
} from '../sh... |
import utils = require("../common/utils");
import styles = require("./styles/styles");
import React = require("react");
import ReactDOMServer = require("react-dom/server");
import csx = require('./base/csx');
import {BaseComponent} from "./ui";
import * as ui from "./ui";
import {cast,server} from "../socket/socketClie... |
import {
Subject,
Subscription,
merge,
Observable,
Observer,
PartialObserver,
SubscriptionLike,
Subscribable,
of,
throwError,
} from 'rxjs';
import {
IActionSubscription,
IActionEmit,
IAjaxSubsription,
IAjaxEmit,
IActionMapper,
IAjaxMapper,
IGlobalActionSubscription,
IGlobalAjaxSubsription,
} from './... |
import React from 'react'
import _ from 'lodash'
import {
NodeController,
} from '../data-layer'
import {
ComponentWrapper,
UIEngineContext,
} from '../ui-layer'
import {
getComponent,
setComponentState,
} from '../helpers'
import {
UIEngineRegister,
} from '../helpers/UIEngineRegister'
import * as plugins... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.