text stringlengths 9.82k 47.8k |
|---|
<gh_stars>0
// Copyright 2022 <NAME>. All rights reserved. MIT License.
import { http, path as stdPath } from "./deps.ts";
import { watchAssets, serveAsset } from "./assets.ts";
import { routerContext, noMatch } from "./router.ts";
import { HttpError, packResponse, unpack } from "./serial.ts";
import { cookieJar } fro... |
/* eslint-disable prettier/prettier */
/**
* Provide helpers for HTTP calls towards the API of the pre-ingest tooling.
*
* All class methods use arrow function expressions to ensure `this` is preserved and destructuring
* works, like:
*
* ```typescript
* const { getCollections, getChecksum, unpack } = useApi();
... |
import UserData from './types/userData';
import TaskData from './types/taskData';
import PlaneData from './types/planeData';
import AmChartsMap from './routeMap';
import axios from 'axios';
import { useEffect, useRef, useState } from 'react';
import { Card, ProgressBar, Button, FormControl, Form, Alert, InputGroup, Spi... |
<gh_stars>10-100
/**
* Copyright 2021 F5 Networks, 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 appl... |
type ReadableStream<T = any> = unknown;
type WritableStream<T = any> = unknown;
/// https://docs.nova.app/api-reference/assistants-registry/
export type AssistantsRegistrySelector = string | { syntax: string };
export interface AssistantsRegistry {
registerCompletionAssistant(
selector: AssistantsRegistrySelec... |
// An instance of Qpsc drives the gradient-projection portion of the Projection Solver.
import {number} from 'yargs'
// import {Assert} from '../../utils/assert'
import {Parameters} from './Parameters'
import {Variable} from './Variable'
// Store original weight to be restored when done. With the ability to re-Solve... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
// React imports:
import React, { useState, useEffect } from 'react';
// Next imports:
import { NextPage } from 'next';
import Router from 'next/router'
// Lodash
import _ from "lodash";
// Bootstrap imports:
import 'bootstrap/dist/css/bootstrap.min.css';
import Form from 'react-bootstrap/Form';
import Button from '... |
<reponame>swimos/swim
// Copyright 2015-2021 Swim.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 applica... |
<filename>src/views/inquiryEdit/inquiryEdit.ts
import { VueComponent, Prop, Watch } from 'vue-typescript'
import { dataService } from '../../service/dataService'
import * as VueRouter from 'vue-router'
import { aliupload } from '../../service/OssUploadService';
declare var $: any;
Vue.use(VueRouter);
var router = new... |
import { createAsyncThunk } from '@reduxjs/toolkit';
import { isEmpty } from 'lodash';
import { getBackendSrv, locationService } from '@grafana/runtime';
import {
AlertmanagerAlert,
AlertManagerCortexConfig,
AlertmanagerGroup,
ExternalAlertmanagerConfig,
ExternalAlertmanagersResponse,
Receiver,
Silence,
... |
import { combineEpics, ActionsObservable, EPIC_END } from 'redux-observable';
import * as mapboxgl from 'mapbox-gl';
import * as mapboxDraw from '@mapbox/mapbox-gl-draw';
import * as MapboxGeocoder from '@mapbox/mapbox-gl-geocoder';
import center from '@turf/center';
import bbox from '@turf/bbox';
import { featureColle... |
<reponame>davervw/ts-emu-c64
// c64-kbd.ts - Web browser keyboard events to Commodore 64 scan codes
//
////////////////////////////////////////////////////////////////////////////////
//
// ts-emu-c64
// C64/6502 Emulator for Web Browser
//
// MIT License
//
// Copyright (c) 2020 by <NAME>
// davevw.com
//
// Permissio... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import {ConfirmationService, MenuItem} from "primeng/api";
import {DirectoryService} from "../../services/directory/directory.service";
import {Default} from "../../models/default";
import {OperationsService} from "../../services/operations/operations.servi... |
import {
AfterViewInit,
Component,
ElementRef,
Input,
ViewChild,
HostListener,
SimpleChanges,
OnChanges
} from "@angular/core";
import * as THREE from "three";
import "./js/EnableThreeExamples";
import "three/examples/js/controls/OrbitControls";
import "three/examples/js/loaders/ColladaLoader";
import {... |
/*! noble-bls12-381 - MIT License (c) <NAME> (<EMAIL>) */
// bls12-381 is a construction of two curves.
// 1. Fq: (x, y) - can be used for private keys
// 2. Fq2: (x1, x2+i), (y1, y2+i) - (imaginary numbers) can be used for signatures
// We can also get Fq12 by combining Fq & Fq2 using Ate pairing.
// prettier-ignore
i... |
<reponame>vegertar/chickut
import React from "react";
import reactTagNames from "react-tag-names";
import { parseModule, ESTree } from "meriyah";
import isEqualWith from "lodash.isequalwith";
import isEmpty from "lodash.isempty";
import assign from "lodash.assign";
type ESTreeNodeType = ESTree.Node["type"] | ESTree.Ex... |
import {Injectable} from '@angular/core';
import {Http, RequestOptions, Response, Headers, URLSearchParams} from '@angular/http';
import {ShopInterface, ShopInterfaceArgs} from "./shopInterface";
import {Product} from "../../model/product";
import {Observable} from "rxjs/Observable";
import 'rxjs/add/operator/map';
i... |
<filename>src/api/routes.ts
/* eslint-disable max-lines */
import { URL_ENCODED, URL_FORM_DATA } from '../constants';
import { API_URL, THE_KEY_URL } from './utils';
const THE_KEY_OAUTH_URL = `${THE_KEY_URL}api/oauth`;
const CHALLENGES_URL = `${API_URL}/challenges`;
const GROUP_CHALLENGE_URL = `${API_URL}/community... |
<reponame>do4way/dadget
import { Proxy, ResourceNode, ServiceEngine, Subscriber } from "@chip-in/resource-node";
import * as AsyncLock from "async-lock";
import { serialize } from "bson";
import * as http from "http";
import * as URL from "url";
import { CORE_NODE, MAX_OBJECT_SIZE } from "../Config";
import { Persisten... |
<filename>src/datafolder.ts
import {
StateObject, keys, ServerConfig, AccessPathResult, AccessPathTag, DebugLogger,
PathResolverResult, obs_readFile, tryParseJSON, obs_readdir, JsonError, serveFolderObs, serveFolderIndex, sendResponse, canAcceptGzip, Hashmap, ServerEventEmitter, resolvePath, statWalkPath,
} fro... |
<filename>src/client/datascience/jupyter/kernels/kernel.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import type { KernelMessage } from '@jupyterlab/services';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
impor... |
<filename>src/extensions.ts<gh_stars>0
import { debounce } from 'debounce'
import fastDiff from 'fast-diff'
import fs from 'fs'
import isuri from 'isuri'
import path from 'path'
import rimraf from 'rimraf'
import semver from 'semver'
import { promisify } from 'util'
import { Disposable, Emitter, Event } from 'vscode-la... |
import {
Planet,
LocationId,
PlanetLevel,
WorldCoords,
Location,
SpaceType,
PlanetResource,
ExploredChunkData,
} from './GlobalTypes';
import {
ContractConstants,
EthAddress,
emptyAddress,
contractPrecision,
} from './Contract';
import {
ChunkStore
} from './LocalStorageManager';
import bigInt... |
import React, {FunctionComponent} from "react";
import {Refresh as RefreshIcon, Undo as UndoIcon} from "@mui/icons-material";
import {Box, Container, Grid, IconButton, Stack, Typography, useTheme} from "@mui/material";
import {Capability, ConsumableId, ConsumableState, useConsumableResetMutation, useConsumableStateQuer... |
<reponame>jsoref/ruffle
import { Ruffle } from "../pkg/ruffle_web";
import { loadRuffle } from "./load-ruffle";
import { ruffleShadowTemplate } from "./shadow-template";
import { lookupElement } from "./register-element";
import { Config } from "./config";
import {
BaseLoadOptions,
DataLoadOptions,
URLLoad... |
/// <reference path="../../core/networkcube.d.ts" />
/// <reference path="features.ts" />
/// <reference path="clustering.ts" />
/// <reference path="sorting.ts" />
/// <reference path="../widgets/widgets.d.ts" />
/// <reference path="../utils/animations.d.ts" />
var COLOR_DEFAULT = new THREE.Color(0x000000);
var C... |
<reponame>cocoxiang/IconPark
import { VNode } from 'vue';
import * as CSS from 'csstype';
interface CSSProperties extends CSS.Properties<string | number> {
}
declare type Booleanish = boolean | 'true' | 'false';
interface AriaAttributes {
'aria-activedescendant'?: string;
'aria-atomic'?: boolean | 'false' | ... |
import {
ArrowCircleRightIcon,
CogIcon,
FilmIcon,
PlayIcon,
} from '@heroicons/react/outline';
import {
CheckCircleIcon,
ChevronDoubleDownIcon,
ChevronDoubleUpIcon,
DocumentRemoveIcon,
ExternalLinkIcon,
} from '@heroicons/react/solid';
import axios from 'axios';
import Link from 'next/link';
import { ... |
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0";
import {
LuaArray,
LuaObj,
ipairs,
kpairs,
lualength,
pairs,
tonumber,
type,
wipe,
} from "@wowts/lua";
import { huge as INFINITY } from "@wowts/math";
import { find, len, lower, match, sub } from "@wowts/string";
import { co... |
/*------------------------------------------------------------------------------
About : <Write about the file here>
Created on : Fri Jun 16 2017
Author : <NAME>
Copyright (c) 2017 Mubble Networks Private Limited. All rights reserved.
--------------------------------------------------------... |
<gh_stars>0
// package: vega
// file: vega/markets.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as github_com_mwitkow_go_proto_validators_validator_pb from "../github.com/mwitkow/go-proto-validators/validator_pb";
import * as vega_oracles_v1_spec_pb from "../vega/o... |
<filename>lib/swaggerValidator/modelValidator.ts
import { ParsedUrlQuery } from "querystring";
import { inject, injectable } from "inversify";
import { FilePosition, getInfo, ParseError, StringMap } from "@azure-tools/openapi-tools-common";
import * as openapiToolsCommon from "@azure-tools/openapi-tools-common";
import... |
<gh_stars>0
// tslint:disable no-any no-array-mutation
import ECKey from '@neo-one/ec-key';
import { Constructor, utils } from '@neo-one/utils';
import { BN } from 'bn.js';
import base58 from 'bs58';
import xor from 'buffer-xor';
import { createCipheriv, createDecipheriv, createHash, createHmac, randomBytes } from 'cry... |
<reponame>l4u/n8n
import { getStyleTokenValue } from "@/components/helpers";
import { NODE_OUTPUT_DEFAULT_KEY, START_NODE_TYPE } from "@/constants";
import { IBounds, INodeUi, IZoomConfig, XYPosition } from "@/Interface";
import { Connection, Endpoint, Overlay, OverlaySpec, PaintStyle } from "jsplumb";
import {
IConne... |
export { AcceleratedComputing } from "../";
export { ActiveServer } from "../";
export { AddDevice } from "../";
export { AddDocument } from "../";
export { AdvancedFraudProtection } from "../";
export { AdvancedThreats } from "../";
export { Advocate } from "../";
export { Agriculture } from "../";
export { AirConditi... |
<gh_stars>1-10
import { ethers, network } from "hardhat"
import { wethAddress } from "./weth"
import { BigNumber, Contract } from "ethers"
import { LogDescription } from "ethers/lib/utils"
import fs from "fs"
import hre from "hardhat"
import { MarsERC20Token } from "../typechain"
var ADDR = {
daiToken: ""... |
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import * as React from 'react';
import { Component } from 'react';
import {
View, Keyboard, ToastAndroid, ScrollView, Alert, KeyboardAvoidingView, Dimensions, ShadowPropTypesIOS, Group,
} from 'react-native';
import {
Button, Text
} from 'react-native-elements';
import { ResourceType } from '../../enums';
import { ... |
import {
authentication,
AuthenticationProviderAuthenticationSessionsChangeEvent,
AuthenticationSession,
version as codeVersion,
commands,
Disposable,
env,
Event,
EventEmitter,
MarkdownString,
MessageItem,
StatusBarAlignment,
StatusBarItem,
ThemeColor,
Uri,
window,
} from 'vscode';
import { fetch, getPr... |
declare var require: any;
import { Injectable } from '@angular/core';
import { ApplicationRef } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { MatDialog, MatSnackBar } from '@angular/material';
import { BehaviorSubject } from 'rxjs';
import { SignalService } from './signal.serv... |
import path from 'path';
import { AutoscaleEnvironment } from './autoscale-environment';
import { AutoscaleSetting, SettingItemDictionary, Settings } from './autoscale-setting';
import { CloudFunctionProxy, CloudFunctionProxyAdapter } from './cloud-function-proxy';
import {
AutoscaleContext,
HeartbeatSyncStrate... |
import { createRef } from 'react';
import { observable, computed, action, runInAction } from 'mobx';
import debounce from 'lodash/debounce';
import find from 'lodash/find';
import throttle from 'lodash/throttle';
import dayjs, { Dayjs } from 'dayjs';
import weekOfYear from 'dayjs/plugin/weekOfYear';
import quarterOfYea... |
<reponame>hawkeye64/extra-svg-icons
/* Fontisto Icons v3.0.4 */
export declare const fontistoAmericanSignLanguageInterpreting: string;
export declare const fontistoAudioDescription: string;
export declare const fontistoBlind: string;
export declare const fontistoBraille: string;
export declare const fontistoDeaf: stri... |
import * as React from "react";
import * as PropTypes from "prop-types";
import * as Immutable from "immutable";
import utils from "common/utils";
import Translate from "react-translate-component";
import { connect } from "alt-react";
import MarketRow from "./MarketRow";
import SettingsStore from "stores/SettingsStore"... |
<filename>controls/navigations/demos/TreeView/demo.ts
import { TreeView, NodeExpandEventArgs, NodeSelectEventArgs, NodeEditEventArgs, DragAndDropEventArgs, DrawNodeEventArgs, DataBoundEventArgs, NodeKeyPressEventArgs, NodeClickEventArgs } from '../../src/treeview/treeview';
import { DataManager, Query, ODataV4Adaptor }... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Import React and Amplify packages
import React from 'react';
import { LinkContainer } from 'react-router-bootstrap';
import { API, graphqlOperation, I18n } from 'aws-amplify';
import { Logger } from '@aws-am... |
<reponame>BertKleewein/azure-iot-sdk-node
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
import { EventEmitter } from 'events';
import machina = require('machina');
import { errors, endpoint, Authent... |
import { Dictionary, GeneratorDefinitionWithPackage, getSchemaDirSync, getSchemaPathSync } from '@prisma/cli'
import { getPlatform } from '@prisma/get-platform'
import { getCompiledGenerators } from '@prisma/photon'
import 'array-flat-polyfill'
import chalk from 'chalk'
import { spawn } from 'child_process'
import cliC... |
<gh_stars>0
import * as Bluebird from 'bluebird';
import { stripIndent } from 'common-tags';
import { EventEmitter } from 'events';
import * as express from 'express';
import * as _ from 'lodash';
import StrictEventEmitter from 'strict-event-emitter-types';
import prettyMs = require('pretty-ms');
import * as config f... |
/**
* @author SYESILDAG
*
*/
import classNames from 'classnames';
import * as React from 'react';
import {
Alignment,
ArrowKeyStepper,
AutoSizer,
Grid,
GridCellProps,
GridProps,
Index,
ScrollPosition,
ScrollSync,
ScrollSyncChildProps,
} from 'react-virtualized';
import { ScrollIndices }... |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import {
faCalendarAlt,
faClipboardList,
faClock,
faHourglass,
} from "@rodlukas/fontawesome-pro-solid-svg-icons"
import * as React from "react"
import {
Alert,
Col,
CustomInput,
Form,
FormGroup,
Input,
InputGro... |
import { Workspace } from '.';
import { PointerHelper } from './pointer-helper';
import { CanvasState, CanvasMode, getTestGraph } from './canvas-state';
import { CanvasActions } from './canvas-actions';
import { NodeElement, NodeInfo, PORT_TYPE_OUTPUT, PORT_TYPE_INPUT, node_width, node_height } from './node-element';
i... |
<reponame>piersh/GLander
///<reference path="webgl.ts"/>
///<reference path="Math.ts"/>
///<reference path="Size.ts"/>
///<reference path="Util.ts"/>
///<reference path="Model.ts"/>
///<reference path="Terrain.ts"/>
///<reference path="Particle.ts"/>
///<reference path="ContentManager.ts"/>
const enum ActorTypes {
Ho... |
<gh_stars>1-10
/* For debugging various features of the game. Basically everything
* requiring
* manual testing is added to the end of create() function.
*/
import RG from '../src/rg';
import * as Component from '../src/component';
import * as Element from '../src/element';
import * as Item from '../src/item';
impo... |
import { XtrFragment, createXtrFragment, XtrElement, addText, addElement, addComponent, addParamNode, XtrParam, addParam, addDecorator, addLabel, addFragment, addCData, XtrCData, XtrPreProcessorFactory, XtrParamHost, XtrPreProcessorCtxt, XtrPreProcessor, XtrParamDictionary } from './ast';
const U = undefined,
CDAT... |
import { MdcDialog, MdcDialogRef } from '@angular-mdc/web/dialog';
import { CommonModule } from '@angular/common';
import { Component, Directive, NgModule, ViewChild, ViewContainerRef } from '@angular/core';
import { ComponentFixture, fakeAsync, flush, TestBed, tick } from '@angular/core/testing';
import { CookieServic... |
<reponame>lukemcredmond/webxr-practice
import {
Mesh,
CanvasTexture,
MeshBasicMaterial,
PlaneGeometry,
Matrix4,
Raycaster,
Scene,
WebGLRenderer,
Vector3,
Quaternion,
IcosahedronBufferGeometry,
} from "three";
import { CanvasKeyboard } from "./CanvasKeyboard";
/*An element is defined by
type: tex... |
import {AfterViewInit, Component, Inject, OnInit, TemplateRef, Type, ViewChild} from '@angular/core';
import {
MAT_DIALOG_DATA,
MatDatepickerInputEvent,
MatDialog,
MatPaginator,
MatSnackBar,
MatStepper,
MatTableDataSource
} from '@angular/material';
import {Depenses, IDepenses} from '../../model/depenses.... |
<reponame>codeforkosen/Kakomimasu
import { flat } from "./util.ts";
class Board {
public w: number;
public h: number;
public points: number[];
public nagent: number;
public nturn: number;
public nsec: number;
public nplayer: number;
public name: string;
constructor(
{ w, h, points, nagent, nturn... |
import { HTMLBodyElementImpl, createElement } from '../HTMLElement'
import { NODE_TYPE, NodeImpl } from '../Node'
import { AttrImpl } from '../Attr'
import { EventImpl } from '../Event'
import { HTMLCollectionImpl } from '../HTMLCollection'
import { NodeListImpl } from '../NodeList'
import { TextImpl } from '../Text'
... |
import {
Component,
AfterViewInit,
OnChanges,
OnDestroy,
Input,
Output,
EventEmitter,
ApplicationRef,
ElementRef,
SimpleChanges,
Injector,
ComponentFactoryResolver
} from '@angular/core';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
// import { takeUntil, map } fro... |
/*---------------------------------------------------------------------------------------------
* 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-unused-expressions */
/* eslint-disable no-loop-func */
/* eslint-disable no-console */
import { useQuery } from '@apollo/client';
import {
IconButton,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TablePagination,
TableRow,
Typography,
} from '@material-ui/core';
import use... |
<gh_stars>100-1000
/* istanbul ignore file */
/* eslint-disable */
import Debug from 'debug';
import events from 'events';
import SerialPort from 'serialport';
import Writer from './writer';
import Parser from './parser';
import Frame from './frame';
import PARAM from './constants';
import * as Events from '../../event... |
<filename>internal/cli-diagnostics/DiagnosticsPrinter.ts
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
Diagnostic,
DiagnosticIntegrity,
DiagnosticLanguage,
Diagnos... |
import React, { useEffect, useState, useRef } from 'react';
import ClipboardJS from 'clipboard';
import QRCode from 'qrcode.react';
import cloneDeep from 'lodash/cloneDeep';
import BigNumber from 'bignumber.js';
import { useHistory, useLocation, Link } from 'react-router-dom';
import { useInterval } from 'react-use';
i... |
<reponame>Afalon/client<filename>shared/constants/chat2/index.tsx<gh_stars>1-10
import * as Types from '../types/chat2'
import * as UserTypes from '../types/users'
import * as RPCChatTypes from '../types/rpc-chat-gen'
import * as RPCTypes from '../types/rpc-gen'
import * as TeamBuildingConstants from '../team-building'... |
import Vue from 'vue'
import { ActionTree } from 'vuex'
import * as types from './mutation-types'
import { breadCrumbRoutes, productThumbnailPath } from '@vue-storefront/store/helpers'
import { currentStoreView } from '@vue-storefront/store/lib/multistore'
import { configureProductAsync,
doPlatformPricesSync,
fil... |
<filename>src/SuperMarioGalaxy/LegacyActor.ts
import { mat4, vec3 } from "gl-matrix";
import { assertExists, hexzero } from "../util";
import { LiveActor, ZoneAndLayer, dynamicSpawnZoneAndLayer } from "./LiveActor";
import { SceneObjHolder, getObjectName } from "./Main";
import { JMapInfoIter, createCsvParser } from "... |
<gh_stars>100-1000
/**
* @module modules/debugger-page-sk
* @description The main module of the wasm-based SKP and MSKP debugger.
* Holds the loaded wasm module, pointer to the SkSurface in wasm, and SKP file state.
* Handles all the interaction and control of the application that does not cleanly fit
* within ... |
import { Fixture } from '../common/framework/fixture.js';
import { attemptGarbageCollection } from '../common/util/collect_garbage.js';
import {
assert,
range,
TypedArrayBufferView,
TypedArrayBufferViewConstructor,
unreachable,
} from '../common/util/util.js';
import {
EncodableTextureFormat,
SizedTextur... |
<gh_stars>0
import * as focusTrap from "focus-trap";
import {
disableBodyScroll,
enableBodyScroll,
BodyScrollOptions,
} from "body-scroll-lock";
import { on, delegate } from "@superkoders/sk-tools/src/event";
import { create } from "@superkoders/sk-tools/src/emmiter";
import loadYoutube from "@superkoders/sk-tools/s... |
// Copyright PrimeObjects Software Inc. and other contributors <https://www.primeobjects.com/>
//
// This source code is licensed under the MIT license.
// The detail information can be found in the LICENSE file in the root directory of this source tree.
import { isNumber } from 'lodash';
import { isIntString, isF... |
declare const tinymce: any;
interface IHiliteOpt {
code: string;
divstyles: string;
lexer: string;
linenos?: number;
style: string;
}
const setup = (editor: any, url: string) => {
const mainFunction = () => {
editor.windowManager.open({
title: 'Hilight',
body: [
{
// popup... |
<filename>packages/chart/src/XYAxis.ts
import { SVGWidget, Utility } from "@hpcc-js/common";
import { max as d3Max, min as d3Min } from "d3-array";
import { brush as d3Brush, brushSelection as d3BrushSelection, brushX as d3BrushX, brushY as d3BrushY } from "d3-brush";
import { hsl as d3Hsl } from "d3-color";
import { e... |
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* inclu... |
/*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { ChangeDetectionStrategy, ChangeDetectorRef... |
import { IGrupo } from './../interfaces/grupo/igrupo';
import { AutoService } from './../services/auto/auto.service';
import { AvisocamposComponent } from './../avisocampos/avisocampos.component';
import { MatsnackbarService } from './../services/matsnackbar/matsnackbar.service';
import { Bairro } from './../models... |
<filename>src/features/Handtracking/utils.ts
import produce from 'immer';
import {
CursorEventType,
HandCursor,
HandEventType,
leftHandCursor,
rightHandCursor,
CursorState,
HandIndex,
SideOfHandEventType,
Hand,
} from './models';
import {
// sendMouseDown,
// sendMouseEnter,
// sendMouseLeave,
... |
import fs from 'fs';
import path from 'path';
import { IAreaDef } from './Area';
import { AttributeFormula, IAttributeDef } from './Attribute';
import { BehaviorManager } from './BehaviorManager';
import { Channel, IChannelLoader } from './Channel';
import { Command, ICommandDef } from './Command';
import { Config } fr... |
import MultiFlyby from "../objects/multiflyby";
import Trajectories from "./trajectories";
import FlybyCalcs from "./flybycalcs";
import Kepler from "./kepler";
import { sub3, mag3, vec3, randomSign, cartesianToSpherical, sphericalToCartesian, mult3 } from "./math";
import { nelderMeadMinimize } from "./optim";
class ... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js';
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js';
import 'chrome... |
/*
Copyright (c) 2021 VMware, Inc.
SPDX-License-Identifier: MIT
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, m... |
import { FunctionExt } from '../../../util'
import { Rectangle, Point, snapToGrid } from '../../../geometry'
import { Cell } from '../../core/cell'
import { Node } from '../../core/node'
import { View } from '../../core/view'
import { Graph } from '../../core/graph'
import { Model } from '../../core/model'
import { Cel... |
import * as fs from 'fs';
// Note: breeze is available from both 'breeze-client' and indirectly from 'breeze-sequelize'
// if you compare them the ARE '==='.
import { EntityQuery, breeze} from 'breeze-client';
import { SaveMap, SequelizeManager, SequelizeQuery, SequelizeQueryResult, SequelizeSaveHandler, SequelizeSave... |
/* ***** BEGIN LICENSE BLOCK *****
Copyright (c) 2018-2021 Famibee (famibee.blog38.fc2.com)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
** ***** END LICENSE BLOCK ***** */
import {IEvtMng, argChk_Boolean, argChk_Num} from './CmnLib';
import {CmnTween} from './Cmn... |
<filename>packages/process/src/process_manager.ts<gh_stars>1-10
import {runProcessAction, runProcessNodeAction} from './platform_action_manager';
import { sendNotifications } from './notifications';
import { SteedosError } from '@steedos/objectql'
const objectql = require('@steedos/objectql');
const Fiber = require('f... |
<filename>src/widgets/PathAnalysis/Widget.ts
import BaseWidget = require('core/BaseWidget.class');
/*** Local ***/
/*** Esri ***/
import IdentifyTask = require('esri/tasks/IdentifyTask');
import IdentifyParameters = require('esri/tasks/IdentifyParameters');
import GraphicsLayer = require('esri/layers/GraphicsLayer');
... |
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
import { Transposable, SvgBox, SvgPoint } from '../../smo/data/common';
import { SmoSelection } from '../../smo/xform/selections';
declare var $: any;
export interface StrokeInfo {
stroke: string,
strokeWidth: string | number... |
<filename>src/pages/home/home.ts
import {
Component,
ViewChild,
ElementRef,
NgZone
} from '@angular/core';
import {
NavController,
Platform,
ModalController,
LoadingController
} from 'ionic-angular';
import {SettingsPage} from '../settings/settings';
import {GeofencePage} from '../geofence/geofence';
... |
// import playback-core here to make sure that the polyfill is loaded
import '@mux-elements/playback-core';
// @ts-ignore
import { MediaController } from 'media-chrome';
import MuxVideoElement, { MediaError } from '@mux-elements/mux-video';
import type { Metadata } from '@mux-elements/playback-core';
import MediaThemeM... |
<reponame>mewbak/co<filename>src/ast/gen/main.ts
import * as Path from 'path'
import { readFileSync, writeFileSync, existsSync } from 'fs'
import * as ts from "../../../node_modules/typescript/lib/typescript"
declare function print(msg :any, ...v :any[]) :void
const rootdir = Path.normalize(__dirname + "/../../..")
... |
<gh_stars>0
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { NbDialogRef } from '@nebular/theme';
import { Subscription } from 'rxjs';
import { UserService } from '@tod/uea-auth-lib';
import { NzMessageService } from 'ng-zorro-antd';
import { NbMomentDateService } from '@nebular/moment';
im... |
// 材料准备
import Taro, { Component, Config } from '@tarojs/taro';
import { View, Text, Image, Radio, RadioGroup, ScrollView } from '@tarojs/components';
import { AtIcon, AtButton, AtMessage, AtSteps } from "taro-ui"
import moment from 'moment'
import CInput from '../../components/Input';
import Addr from '../../component... |
import { remove, addClass, isNullOrUndefined, extend, isUndefined, Browser } from '@syncfusion/ej2-base';
import { IGrid, IRenderer, IModelGenerator, NotifyArgs } from '../base/interface';
import { Column } from '../models/column';
import { HeaderRender } from './header-renderer';
import { ContentRender } from './conte... |
// Types
import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
import { TabNavigationBase, getIconSpecSize, itemsProperty, selectedIndexProperty, tabStripProperty } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
import ... |
import {Promise} from "es6-promise";
import {
ContextInfo,
List,
Types
} from "gd-sprest";
/**
* The interface for the data.
*/
export interface IData {
City: string;
County: string;
State: string;
}
/**
* Data Source
*/
export class Data {
/**
* Properties
*/
private sta... |
/* tslint:disable:directive-selector-name */
/* tslint:disable:directive-selector-type */
import {
Component,
NgModule,
ElementRef,
EventEmitter,
NgZone,
Input,
Output,
ContentChild,
Directive,
forwardRef,
HostListener,
OnChanges,
DoCheck,
SimpleChanges
} fro... |
<filename>tools/turbolizer/src/source-resolver.ts
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { sortUnique, anyToString } from "../src/util";
import { NodeLabel } from "./node-label";
func... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.