text stringlengths 9.82k 47.8k |
|---|
import React, { FC, useState, useRef, useEffect } from 'react'
import Image from 'next/image'
import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import type { Locale } from '@/models/locale'
import HuxxWolf from '@/components/3D/HuxxWolf'
import ... |
///<reference path="../../../lib/golden-layout/index.d.ts"/>
//import GoldenLayout = require("golden-layout");
//declare var GoldenLayout;
class ReaderLayout {
private favoriteManager: FavoriteManager;
protected newFavoriteDialog: NewFavoriteDialog;
readerLayout: GoldenLayout;
readerHeaderDiv: HTMLDiv... |
<reponame>phac-aspc/Datatool-PASS
import * as d3 from "d3";
import { numberFormat } from "./translator";
import { ChartData, TPoint } from './types';
const marginY = 10;
const marginX = 60;
const width = 700;
const height = 400;
const moveToFront = function (node: any) {
return node.each(function () {
nod... |
<reponame>holocrononline/swgoh-sheets-core
/** refresh guilds data */
function refreshData(): void {
Core.refreshData();
}
/** workaround to tslint issue of namespace scope after importingtype definitions */
declare namespace SwgohHelp {
function getGuildData(allycode: number): GuildData;
function getPlayerData(... |
//A shuffled list of names
const listOfRandomFirstNames =
[
"Rudy",
"Adolfo",
"Alfred",
"Augustus",
"Kymani",
"Gabriella",
"Justice",
"Payton",
"Mollie",
"Bruno",
"Kaitlyn",
"Kenneth",
"Monserrat",
"Terre... |
<gh_stars>10-100
// =============================================================================
// Euclid.js | Boolean Operations for Polygons
// (c) Mathigon
// =============================================================================
import {last} from '@mathigon/core';
import {nearlyEquals} from '@mathigon/f... |
import crypto from 'crypto';
import { Table } from './table/table';
import { IModel } from './Model.types';
import { ModelSerializer } from './ModelSerializer';
import { Query } from './Query';
import { IQueryFilter } from './QueryUtils';
import { ObjectUtils } from './utils/ObjectUtils';
interface IModelDirtyContext ... |
/******************************************************************************
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
***************************************************************... |
import _ from "lodash";
import queryString from "query-string";
import React, {
useCallback,
useRef,
useState,
useEffect,
useMemo,
} from "react";
import { ApolloError } from "@apollo/client";
import { useHistory, useLocation } from "react-router-dom";
import Mousetrap from "mousetrap";
import { IconProp } fr... |
import { createStore } from "vuex";
import { getClient } from "@/lib/DashClient";
import { Storage } from "@capacitor/storage";
import { msgDate } from "@/lib/helpers/Date";
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// const timestamp = () => Math.floor(Date.now())
const getDef... |
<reponame>dongyue1999/visflow
import { Component, Watch } from 'vue-property-decorator';
import { forceSimulation, Simulation, forceLink, forceManyBody, forceCenter } from 'd3-force';
import { event as d3Event, select } from 'd3-selection';
import { line, curveBasis, curveLinearClosed } from 'd3-shape';
import { zoom, ... |
<reponame>rgraciano/codex<gh_stars>1-10
import { anyid } from 'anyid';
import { Game, EventDescriptor, RuneEvent } from '../game';
import { ObjectMap } from '../game_server';
import { Board } from '../board';
import { Ability, DamageAnyBuildingAbility } from './ability';
import * as Color from './color';
import { Spell... |
export {
buildPlatform,
IPlatform
} from './backburner/platform';
import {
buildPlatform,
IPlatform,
} from './backburner/platform';
import {
findTimerItem,
getOnError,
isCoercableNumber,
TIMERS_OFFSET
} from './backburner/utils';
import searchTimer from './backburner/binary-search';
import DeferredAc... |
import {resolve, relative, join, dirname, basename, extname, normalize} from "path"
import module from "module"
import crypto from "crypto"
import * as ts from "typescript"
import * as terser from "terser"
import * as combine from "combine-source-map"
import * as convert from "convert-source-map"
import {read, write... |
import type { IDisposable, Scene } from "../scene";
import type { Nullable } from "../types";
import type { Observer } from "../Misc/observable";
import { Observable } from "../Misc/observable";
import { Vector3, TmpVectors, Matrix } from "../Maths/math.vector";
import { Sprite } from "./sprite";
import { SpriteS... |
<filename>zaplib/web/webgl_renderer.ts<gh_stars>100-1000
import { assertNotNull } from "common";
import {
ShaderAttributes,
SizingData,
Texture,
Uniform,
UniformType,
} from "types";
import { ZerdeParser } from "zerde";
type UniformLocation = {
name: string;
offset: number;
ty: string;
loc: WebGLUnif... |
/// <reference types="node" />
import { CssClassMap } from './jsx-interfaces';
export { CssClassMap } from './jsx-interfaces';
export interface CoreContext {
addListener?: AddEventListener;
attr?: number;
dom?: DomController;
emit?: (elm: Element, eventName: string, data?: EventEmitterData) => void;
... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
// Heavily inspired from https://github.com/codemirror/CodeMirror/blob/master/addon/tern/tern.js
import tern, { Server, Def } from "tern";
import ecma from "constants/defs/ecmascript.json";
import lodash from "constants/defs/lodash.json";
import base64 from "consta... |
/**
* @fileoverview Creates a node_modules directory in the current working directory
* and symlinks in the node modules needed to run a program.
* This replaces the need for custom module resolution logic inside the process.
*/
import * as fs from 'fs';
import * as path from 'path';
// Run Bazel with --define=VER... |
import { Theme } from '../types/theme';
const UniversalTheme: Theme = {
id: 'universal',
name: 'Universal',
hues: [
{
id: 'red',
name: 'Red',
primary: '#E81123',
shades: [
{ name: '3 shades lighter', colour: '#F4ABBA', white_ink: false },
{ name: '2 shades lighter', colour: '#E6808... |
<filename>src/runtime/join.ts
//---------------------------------------------------------------------
// Generic join in Typescript over triples (EAVs)
//---------------------------------------------------------------------
let perf = global["perf"];
import {MultiIndex, TripleIndex} from "./indexes";
import {Block, B... |
import styled from '@emotion/styled'
import dateformat from 'dateformat'
import { graphql } from 'gatsby'
import get from 'lodash/get'
import React, { useEffect } from 'react'
import Helmet from 'react-helmet'
import LazyLoad from 'react-lazy-load'
import { useDispatch, useSelector } from 'react-redux'
import ArticleSe... |
<reponame>lillyBC/bondage-club-extended
import { ChatRoomActionMessage, ChatRoomSendLocal, getVisibleGroupName, isBind } from "../utilsClub";
import { ChatroomCharacter, getAllCharactersInRoom, getChatroomCharacter, getPlayerCharacter } from "../characters";
import { hookFunction } from "../patching";
import { arrayUni... |
<reponame>crisp-dev/engine.io-client
import { transports } from "./transports/index.js";
import { installTimerFunctions, byteLength } from "./util.js";
import { decode } from "./contrib/parseqs.js";
import { parse } from "./contrib/parseuri.js";
import debugModule from "debug"; // debug()
import { Emitter } from "@sock... |
<gh_stars>10-100
import './style.scss'
import { EventEmitter } from 'eventemitter3'
import { Danmaku } from '@/player/danmaku/danmaku'
import { Ui, UiString } from '@/player/ui'
import { DanmakuLayerOptions, MakeDanmakuLayerOptions, } from '@/player/danmaku/danmakuLayer'
import { QualityLevel, QualityLevelAdapter } fro... |
import { createMapFromTemplate } from "./core";
import { SyntaxKind, CharacterCodes, TokenFlags, DiagnosticCategory, ScanError } from "./types";
import { assertNever } from "./service/util";
export interface Scanner {
readonly end: number;
readonly pos: number;
readonly startPos: number;
readonly tokenPos: number;... |
<reponame>ManfredSteiner/typescript
import * as vfs from './vfs';
import { IVfsEnvironment, IVfsShellCmds, PipeReadable, PipeWritable, VfsShellCommand,
IParsedCommands, IParsedCommand, IVfsCommandOption, IVfsCommandOptions,
AppVersion, GitInfo, CmdCompleterResult, VfsShellCommandError, IQuestionOption... |
<filename>ng-a-parse/projects/parse/src/lib/date/parse/parse-date.ts
import {
FormStyle,
getLocaleDayNames,
getLocaleDayPeriods,
getLocaleEraNames,
getLocaleMonthNames,
getLocaleNumberSymbol,
NumberSymbol,
TranslationWidth,
} from '@angular/common';
import { isDevMode } from '@angular/core';
import { DA... |
import { ASJsonLdProfileContentType, isASLink } from "../activitystreams";
import {
Activity,
ASLink,
ASObject,
Collection,
isActivity,
LDObject,
Place,
} from "../types";
import {
HasLinkPrefetchResult,
LinkPrefetchFailure,
LinkPrefetchResult,
LinkPrefetchSuccess,
} from "../types";
import { crea... |
import EventEmitter from '../vendors/events';
import { Defer } from '../utils/defer';
import * as request from './request';
import nestedProxy from '../utils/nested-proxy';
const SUCCESS_EVENT_PREFIX = 'wx-event-';
const FAILURE_EVENT_PREFIX = 'wx-err-';
const COMPLETE_EVENT_PREFIX = 'wx-activity-';
export class WXSe... |
// Type definitions for node-usb 1.5
// Project: https://github.com/tessel/node-usb
// Definitions by: <NAME> <https://github.com/underscorebrody>
// <NAME> <https://github.com/thegecko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { EventEmi... |
import {
col,
getCurrentRegion, getFilesFromFolder, getOrganization, getRegion, isIterable,
isOauthUsed,
obfuscatePW,
setOrganization
} from './common-functions'
import {
createTableValue, showTableFromTobject
} from '../common/tables'
import { Global } from '../models/base'
import { CallConfig, LoginCookie... |
<reponame>rehan-akmal/sasjs
import 'isomorphic-fetch';
import * as e6p from "es6-promise";
(e6p as any).polyfill();
export interface SASjsRequest {
serviceLink: string;
timestamp: Date;
sourceCode: string;
generatedCode: string;
logFile: string;
SASWORK: any;
}
export interface SASjsWatingRequest {
reque... |
<filename>packages/cactus-plugin-odap-hermes/src/test/typescript/integration/odap/odap-api-call-with-ledger-connector.test.ts<gh_stars>0
import http from "http";
import fs from "fs-extra";
import { Server as SocketIoServer } from "socket.io";
import { AddressInfo } from "net";
import secp256k1 from "secp256k1";
import ... |
import { Component, OnInit } from '@angular/core';
import { Observable, from } from 'rxjs';
import { pluck } from 'rxjs/operators';
import { Router } from '@angular/router';
import { MatDialog, MatSnackBar, } from '@angular/material';
import { contactconversation, ContactconversationService, ContactService, ErrorMessag... |
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-present, Egret Technology.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
/... |
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
import { NoteSeverity } from '@sofie-automation/blueprints-integration'
import { SegmentNote } from '../../../lib/api/notes'
import { RundownPlaylist } from '../../../lib/collections/RundownPlaylists'
import { SegmentId } from '../... |
<gh_stars>0
import Weiwudi from "weiwudi";
import { MaplatMap } from "../map_ex";
import { Coordinate } from "ol/coordinate";
import { transform } from "ol/proj";
import { canvBase, MERC_CROSSMATRIX, MERC_MAX } from "../const_ex";
import {
addIdToPoi,
normalizeLayer,
normalizeLayers,
normalizePoi
} from "../nor... |
<reponame>nmtigor/pdf.ts
/* Converted from JavaScript to TypeScript by
* nmtigor (https://github.com/nmtigor) @2022
*/
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... |
<gh_stars>1-10
// Core code of 3-Shining.
// by z0gSh1u & LongChen.
import '../../3rd-party/MV'
import '../../3rd-party/initShaders'
import { WebGLHelper3d } from '../../framework/3d/WebGLHelper3d'
import * as WebGLUtils from '../../framework/WebGLUtils'
import { DrawingObject3d } from '../../framework/3d/DrawingObject... |
<filename>scripts/test/localOldDaoDeploy.ts
/***
* deploy complete DAO for testing purposes.
* for example run:
* npx hardhat run scripts/test/localDaoDeploy.ts --network develop
* then to test upgrade process locally run:
* npx hardhat run scripts/upgradeToV2/upgradeToV2.ts --network develop
*/
import { networ... |
import * as Immutable from 'immutable';
import {Account} from './account';
import {Category, CategoryGroup, CategoryRule} from './category';
import {Currency, SUPPORTED_CURRENCIES} from './currency';
import PDate from './pdate';
import {TypedRecordClass} from './precord'; // Todo: remove this import once we can upgrade... |
<gh_stars>0
const _ = require('lodash');
let async = require('async');
import { IReadWriteClient } from "./IReadWriteClient";
import { IReferenceable, IParameterized, Parameters, IReferences, Descriptor, RandomBoolean, FilterParams, PagingParams, DataPage, ITrackable, IIdentifiable, INamed } from "pip-services3-common... |
<reponame>fitzgen/witx-bindgen
import { readFileSync } from 'fs';
import * as assert from 'assert';
import * as imports from './imports/bindings.js';
import * as exports from './exports/bindings.js';
import { WASI } from 'wasi';
async function run() {
const wasm = readFileSync(process.argv[2]);
const wasi = new WA... |
import { measuringExecutionTime, readInputFile } from './utilts';
const day = '20';
console.log(`\n🎄🎄🎄🎄🎄 Day ${day} 🎁🎁🎁🎁🎁\n`);
const challengeInput = readInputFile(day).split('\n');
/*
--- Day 20: Jurassic Jigsaw ---
The high-speed train leaves the forest and quickly carries you south. You can even see a ... |
import { ancestor, simple } from '../utils/walkers'
import { generate } from 'astring'
import * as es from 'estree'
import { RawSourceMap, SourceMapGenerator } from 'source-map'
import { AllowedDeclarations, Context, NativeStorage, ValueWrapper } from '../types'
import { ConstAssignment, UndefinedVariable } from '../er... |
<reponame>iget-esoares/angular
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ConstantPool, Expression, Identifiers, ParseError, ParsedHostBindings, R3Depe... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import os from 'os';
import path from 'path';
import electron from 'electron';
import {getInstance as getLogger} fro... |
<reponame>DarkWorldsArtist/oldschoolbot<gh_stars>0
import { MessageAttachment } from 'discord.js';
import {
calcPercentOfNum,
calcWhatPercent,
increaseNumByPercent,
objectKeys,
reduceNumByPercent,
round,
Time,
uniqueArr
} from 'e';
import { CommandStore, KlasaMessage, KlasaUser } from 'klasa';
import { Bank, Mo... |
import { AudioManager } from "../audio";
import { ResourceManager, DirectoryStructure } from "../resources";
import { MisParser, MissionElementType, MissionElementScriptObject, MisFile } from "../parsing/mis_parser";
import { setupButton } from "./ui";
import { Util } from "../util";
import { homeScreenDiv } from "./ho... |
<reponame>pranavramesh123/game_making
const serverRequire = require;
let THREE: typeof SupEngine.THREE;
// NOTE: It is important that we require THREE through SupEngine
// so that we inherit any settings, like the global Euler order
// (or, alternatively, we could duplicate those settings...)
if ((<any>global).window =... |
import _ from 'lodash';
import API from '@/api/api';
import { startPolling, Poller } from '@/api/poller';
import {
Scenario,
ConceptProjectionConstraints,
NewScenario,
NodeParameter,
EdgeParameter,
CAGModelSummary,
CAGGraph,
NodeScenarioData,
ScenarioParameter,
CAGModelParameter
} from '@/types/CAG'... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
<filename>src/parser/compiler.ts<gh_stars>1-10
import {
ActionDeclaration,
ActionsDeclaration,
Expression,
ExpressionDeclaration,
grammar,
GraphDeclaration,
OuterConstDeclaration,
OuterDeclaration,
OuterFunctionDeclaration,
ParserOutput,
PointDeclaration,
PolygonDeclarati... |
/**
* Copyright (c) 2020 Visa, Inc.
*
* This source code is licensed under the MIT license
* https://github.com/visa/visa-chart-components/blob/master/LICENSE
*
**/
/*! @preserve
* numeral.js
* version : 2.0.6
* author : <NAME>
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/
/***************... |
import React, { useState, useRef, useCallback, useImperativeHandle, useReducer } from 'react';
import { getTranslateDOMPositionXY } from 'dom-lib/translateDOMPositionXY';
import PropTypes from 'prop-types';
import isFunction from 'lodash/isFunction';
import flatten from 'lodash/flatten';
import Row, { RowProps } from '... |
import {PerspectiveCamera, Object3D, Euler, Vector3, Ray, Box3} from "three";
import {Constants} from "./constants";
import {InputControlService} from "../app/services/input-control.service";
import {World} from "./world";
import {CollisionMnemento} from "./collision";
import {ObjectControl} from "./objects";
import {H... |
<gh_stars>0
import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk';
import _ from 'lodash';
import $ from 'jquery';
import kbn from 'grafana/app/core/utils/kbn';
import TimeSeries from 'grafana/app/core/time_series2';
import { D3Wrapper } from './d3wrapper';
import { Transformers } from './transformers';
import { ... |
<filename>packages/semi-foundation/select/foundation.ts<gh_stars>0
/* argus-disable unPkgSensitiveInfo */
/* eslint-disable max-len */
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
import KeyCode from '../utils/keyCode';
import { isNumber, isString, isEqual, omit } from 'lodash';
import warning f... |
import React, { useCallback, useEffect, useState } from "react";
import cx from "classnames";
import { CodeStreamState } from "../store";
import { FormattedMessage } from "react-intl";
import Icon from "../Stream/Icon";
import Button from "../Stream/Button";
import { InlineMenu } from "../src/components/controls/Inline... |
<filename>src/datatypes/dataset.ts
/*
* Copyright 2012-2015 Metamarkets Group Inc.
* Copyright 2015-2016 Imply Data, 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:... |
/*
* Copyright 2017 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 agreed to ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>SaFrMo/THREE.extendMaterial
import * as THREE from 'three'
// Author: Fyrestar https://mevedia.com (https://github.com/Fyrestar/THREE.extendMaterial)
const {
ShaderChunk,
UniformsLib,
Vector2,
Color,
EventDispatcher,
TangentSpaceNormalMap,
MultiplyOperation,
Material,
S... |
import * as _ from 'lodash';
import * as d3 from 'd3';
import * as pip from '../../services/pip';
import * as dataPC from '../../services/dataProcessor';
import { colorSchemes } from '../../services/helpers';
import * as DT from '../../services/server.itf';
export interface Option {
// layout
height?: number;
... |
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { Unit, StructureElement, ElementIndex, ResidueIndex, Structure } from '../../../../../mol-model/structure';
import { Segmentation, SortedArray } from '../../../../../mol-data... |
<reponame>marinrusu1997/thermopylae
import { RequireSome, Seconds, Threshold, UnixTimestamp } from '@thermopylae/core.declarations';
import uidSafe from 'uid-safe';
import { compareTwoStrings } from 'string-similarity';
import { createException, ErrorCodes } from './error';
import type { AuthenticationStatus } from '.... |
<gh_stars>0
/* eslint "@typescript-eslint/type-annotation-spacing": [2, { "before": true, "after": true }] */
import { notP } from "../../../Data/Bool"
import { equals } from "../../../Data/Eq"
import { cnst, flip, ident } from "../../../Data/Function"
import { fmap } from "../../../Data/Functor"
import { all, any, con... |
<reponame>ssythe/nh
import { Socket } from "net"
import { EventEmitter } from "events"
import Game, { Environment, Disconnectable } from "./Game"
import Team from "./Team"
import Brick from "./Brick"
import * as scripts from "../scripts"
import PacketBuilder, { PacketEnums } from "../net/PacketBuilder"
import createP... |
<gh_stars>1-10
// tslint:disable: no-object-mutation
// tslint:disable: readonly-keyword
import { isPlatformServer } from '@angular/common'
import { maybe, IMaybe } from 'typescript-monads'
import { swapItemsViaIndices } from './helpers'
import { Subject, fromEvent, of, interval, merge, BehaviorSubject, Observable } f... |
<filename>src/geometry/mesh/Graph.ts
// name: graph.ts
// author: <NAME>
// purpose: HalfEdge Mesh in 3D.
// This does mean that the order around a vertex is not staight forward, and must be handled using normals.
// TODO
// - graph clean
// - graph delete vert
// - to line renderable
// - keep track of faces, for qu... |
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewEncapsulation, Inject, PLATFORM_ID } from '@angular/core';
import { Subscription, Observable, of } from 'rxjs'
import { take, map, mergeMap } from 'rxjs/operators'
import { HttpClient, HttpHeaders } from '@angular/common/http'
import { ActivatedRou... |
// SASS Color ported to TypeScript.
// dart-sass copyright:
// Copyright 2016 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
// Upstream: 20978e0
import invariant from "tiny-invariant"
type ColorRGB = ... |
import * as angular from 'angular';
import * as _ from 'lodash';
import { KeyCodes } from './keyCodes';
mdDropdownService.$inject = ['$document', '$rootScope'];
export function mdDropdownService($document, $rootScope) {
let openScope = null;
let lastOpenScope = null;
let _event = null;
const closeDropdown = (e... |
<reponame>alarkbentley/imodeljs<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*---------------------------... |
<reponame>MaximVansteenkiste/pxt<filename>webapp/src/cloud.ts
import * as core from "./core";
import * as auth from "./auth";
import * as ws from "./workspace";
import * as data from "./data";
import * as workspace from "./workspace";
import * as app from "./app";
type Version = pxt.workspace.Version;
type File = pxt.... |
<filename>src/parser.ts<gh_stars>0
/**
* BOT COMMANDER ASYNC
*
* TypeScript library for parsing commands from interactive interfaces (bot chats)
* Based on and inspired by [tj/commander.js] and [friscoMad/botCommander]
*
* (1) Added async functionality for embedding within iopa-bot or Microsoft botbuilder framewo... |
<gh_stars>0
import { formatDate } from '@angular/common';
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { STColumn, STColumnTag, STRes, STComponent } from '@delon/abc/st';
import { G2TimelineMap } from '@delon/... |
/* @preserve The source code to this website is under the MIT license and can be found at https://github.com/magcius/noclip.website */
// Parcel HMR workaround.
// https://github.com/parcel-bundler/parcel/issues/289
declare var module: any;
if (module.hot) {
module.hot.dispose(() => {
window.location.relo... |
/*
* 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 ... |
<reponame>lambkin179294/cactbot<gh_stars>0
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../... |
import GL from '@luma.gl/constants';
import {getWebGL2Context, assertWebGL2Context, log} from '@luma.gl/gltools';
import Resource, {ResourceProps} from './resource';
import Texture2D from './texture-2d';
import Renderbuffer from './renderbuffer';
import {clear, clearBuffer} from './clear';
import {copyToDataUrl} from '... |
import { Component, ViewChild, ElementRef } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/Rx';
import { appRoutes, Route } from './app.module';
import { Router, ActivatedRoute, NavigationStart } from '@angular/router';
import { EJComponents } from 'ej-angular2/src/ej/core';
@Component({
... |
import './styles.module.scss';
import Page from 'components/Page';
import type { ClientStoryPage, PublicStory, StoryLogListings } from 'lib/client/stories';
import Link from 'components/Link';
import Router, { useRouter } from 'next/router';
import type { Dispatch, SetStateAction } from 'react';
import React, { useStat... |
import {Player} from "entities/player";
import {World} from "entities/world";
import {global} from "globals";
import {PickupManager} from "pickupmanager";
import {Camera} from "camera";
import {glMatrix, mat4, vec3, vec4} from "gl-matrix";
import {BasicModel} from "entities/models/basicmodel";
import {Renderer} from "r... |
import "./picker.less";
/*------------------------------------------------------------------------*\
# classes
\*------------------------------------------------------------------------*/
class SaiStyleColorPicker {
// mini pub/sub
private subscriptions: any = {};
// config (options)
private de... |
<reponame>rafikalid/gridfw-compiler<gh_stars>0
import { _errorFile } from "@src/utils/errors";
import { debug, info } from "@src/utils/logs";
import ts from "typescript";
import { join, relative, dirname, normalize } from 'path';
import Glob from 'glob';
import { ImportName, _importName } from "@src/utils/get-import";
... |
<reponame>DRIVER-EU/scenario-editor<filename>packages/tmt2/src/services/states/app-state.ts
import Stream from 'mithril/stream';
import { applyPatch, Operation } from 'rfc6902';
import { IRestService, restServiceFactory, SocketSvc, runServiceFactory, actions } from '..';
import {
deepCopy,
IAsset,
IExecutingInjec... |
<reponame>gcnew/parakeet<gh_stars>1-10
import { test } from '../test_util'
import * as C from '../../src/cache'
import {
StringParser,
char, anyChar as any, string, number, digit, ws, asciiId, oneOf, notOneOf, token,
getLineCol
} from '../../src/string_combinators'
import {
EosExpected,
pair,... |
import '../sass/main.scss';
import '../images/chat.png';
import config from '../../config.json';
import * as faceapi from 'face-api.js';
import { IExchange } from './Exchange/IExchange';
import { Firebase } from './Exchange/Firebase';
import { ICommunication } from './Communication/ICommunication';
import { WebRTC } ... |
<reponame>kankedelangzi/miniReact
import { Fiber, Lanes, Update, UpdateQueue,
FiberRoot, Placement,Container,
ShouldCapture, DidCapture, StackCursor,
HydratableInstance,Instance,TextInstance,
IndeterminateComponent,
TypeOfMode,ChildDeletion, HostText,HostComponent,
ContentReset, REACT_ELEMENT_TYPE, IReac... |
import { tagged } from 'src/log';
import { gConfig } from 'src/config';
import { gWatchlist } from 'src/watchlist';
import { gCache } from 'src/cache';
import { gDataServer, RulesSpec } from 'src/dataserver';
import { gSender } from 'src/sender';
import { sha1 } from 'src/hashutil';
import { gStorage } from 'src/storag... |
<gh_stars>0
/**
* @packageDocumentation
* @module structure
*/
import assert from 'assert';
import { JSmolApplet, JmolObject } from 'jsmol';
import { SavedSettings } from '../options';
import { generateGUID, getByID } from '../utils';
import { PositioningCallback } from '../utils';
import { StructureOptions } fr... |
<reponame>msnraju/cal-to-json<filename>src/cal/property-map.ts
import { PropertyType } from './property-type';
import IBaseClass, { BaseClass } from '../models/base-class';
export interface IPropertyMap {
name: string;
type: PropertyType;
}
export interface IProperty extends IBaseClass {
name: string;
type: P... |
import request = require('request');
import domain = require('domain');
import userModel = require('../models/userModel');
import proposalModel = require('../models/proposalModel');
import proposalBackingModel = require('../models/proposalBackingModel');
import offerModel = require('../models/offerModel');
import sel... |
import { AES } from "./../redPanda/crypto";
import { File } from "@ionic-native/file";
import { Storage } from "@ionic/storage";
import { Injectable } from "@angular/core";
import * as bitcoin from "bitcoinjs-lib";
import * as bs58 from "bs58";
import { Global } from "./Global";
import * as ByteBuffer from "bytebuffer... |
<reponame>chandrika31/TNCSC-SCM
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { Dropdown, SelectItem, MessageService } from 'primeng/primeng';
import { AuthService } from 'src/app/shared-services/auth.service';
import { DatePipe } from '@angular/common';
import * as XLSX from 'xlsx';
... |
import {
constants as sharedConstants,
EtherscanLinkSuffixes,
Networks,
Styles,
utils as sharedUtils,
} from '@0xproject/react-shared';
import { BigNumber, errorUtils, fetchAsync, logUtils } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as _ from 'lodash';
... |
import type { Player } from "../../room-activity";
import { ScriptedGame } from "../../room-game-scripted";
import type { GameCommandDefinitions, IGameAchievement, IGameTemplateFile } from "../../types/games";
import type { User } from "../../users";
interface ISpaceAttributes {
achievement?: boolean;
currency?: boo... |
<reponame>manken/needle
import { v4 as uuid } from 'uuid';
import { Factory } from '../annotations/factory';
import { Inject } from '../annotations/inject';
import { Lazy } from '../annotations/lazy';
import { Optional } from '../annotations/optional';
import { Strategy } from '../annotations/strategy';
import {
DI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.