text stringlengths 9.82k 47.8k |
|---|
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: @loopback/rest
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {Binding, Constructor, Context, inject} from '@loopback/context';
import {Application, CoreBindings, Server} from... |
<reponame>danilovkiri/generative-graphics-p5<gh_stars>100-1000
/*
* A fast javascript implementation of simplex noise by <NAME>
Based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java.
Which is based on example code by <NAME> (<EMAIL>).
With Optimisations by <NAME> (<EMAIL>).
Better rank ordering ... |
<reponame>dmitry-stepanenko/fundamental-ngx
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
OnDestroy,
OnInit,
Optional,
Output,
QueryList,
TemplateRef,
ViewChild,
ViewChildren,
ViewEncapsulation
} from '@angula... |
// ---------------------------------------------------------------------
// <copyright file="app.ts">
// This code is licensed under the MIT License.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF MERCHANTABILITY, ... |
import Cookies from 'js-cookie';
import React, { FC, useEffect, useState, useMemo, useCallback, useContext, RefObject, useLayoutEffect } from 'react';
import { unstable_batchedUpdates } from 'react-dom';
import { Col, Container, Row, Button } from 'react-bootstrap';
import { useHistory, Link, useLocation } from 'react-... |
import * as d3 from "d3";
import * as _ from "underscore";
import "../src/EDDDataInterface";
export interface GraphParams {
height: number;
width: number;
values: GraphValue[];
}
export interface GraphValue {
x: number;
y: number;
x_unit: string;
y_unit: string;
name: string;
col... |
<filename>src/accessory.ts
import dorita980, { RobotState, Roomba } from "dorita980";
import { AccessoryConfig, AccessoryPlugin, API, Logging, Service, CharacteristicValue, CharacteristicGetCallback, CharacteristicSetCallback } from "homebridge";
/**
* How long to wait to connect to Roomba.
*/
const CONNECT_TIMEOUT_... |
import { MutableObject, HashedObject, Hash, MutationOp, Hashing } from 'data/model';
import { Store } from 'storage/store';
import { MultiMap } from 'util/multimap';
import { Endpoint, NetworkAgent, NetworkAgentProxyConfig, SecureNetworkAgent } from '../agents/network';
import { PeerInfo, PeerSource, PeerGroupAgent, ... |
/******************************************************************************
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 of the License at
http://www.apache.org... |
<filename>src/common/ContractInteractor.ts
import Common from 'ethereumjs-common'
import Web3 from 'web3'
import log from 'loglevel'
import { BlockTransactionString } from 'web3-eth'
import { EventData, PastEventOptions } from 'web3-eth-contract'
import { PrefixedHexString, TransactionOptions } from 'ethereumjs-tx'
imp... |
import { UiSignalService } from '../../services/ui-signal.service';
import { BlockManager } from '../block_manager';
import { Area2D, BlockContextAction, Direction2D, FlowBlock, FlowBlockData, FlowBlockInitOpts, FlowBlockOptions, InputPortDefinition, Position2D, Movement2D, Resizeable } from '../flow_block';
import { F... |
<gh_stars>0
import * as uuid from 'uuid/v1';
import * as angular from 'angular';
import * as Moment from 'moment';
import { extendMoment } from 'moment-range';
const moment = extendMoment(Moment);
export class PageGanttComponent implements ng.IComponentOptions {
public template: string = require('./pageGantt.html... |
import { Server, Socket } from 'socket.io';
import Redis from 'ioredis';
import { BooleanDict, StringDict, NumberDict, User } from '.';
import { Room } from './room';
const jData = require('../jeopardy.json');
let redis = (undefined as unknown) as Redis.Redis;
if (process.env.REDIS_URL) {
redis = new Redis(process.e... |
/**
* This file is part of vue-boilerplate.
* @link : https://zhaiyiming.com/
* @author : <NAME> (<EMAIL>)
* @modifier : <NAME> (<EMAIL>)
* @copyright: Copyright (c) 2018 TINYMINS.
*/
/* eslint max-depth: "off" */
/* eslint no-param-reassign: "off" */
import qs from 'querystringify';
import { clone } from ... |
import { Injectable, TemplateRef } from '@angular/core';
import * as _ from 'lodash';
import { INode } from '../store';
export type IPosition = [number, number];
export interface IAbsolutePosition {
tl: IPosition;
tr: IPosition;
bl: IPosition;
br: IPosition;
}
export interface IVerticalAndHorizontalPosition {... |
<filename>Sources/Common/Core/index.d.ts
declare function toArrayBuffer(b64Str: any): ArrayBuffer;
export interface T100 {
toArrayBuffer: typeof toArrayBuffer;
}
declare function extractCellSizes(cellArray: any): any;
declare function getNumberOfCells(cellArray: any): any;
export interface T101 {
[key: strin... |
<filename>packages/select/src/mwc-select.ts
/**
@license
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... |
<reponame>travbid/vita<filename>src/index.ts
// @ts-ignore: An import path cannot end with a '.ts' extension
import { ProgramInfo } from "./interfaces.ts";
// @ts-ignore: An import path cannot end with a '.ts' extension
import { Mat4 } from "./matrix.ts";
// @ts-ignore: An import path cannot end with a '.ts' extension
... |
/*!
* Licensed under the MIT License.
*/
/* eslint-disable no-warning-comments */
import { load } from 'dotenv/types';
import * as MRE from '../../mixed-reality-extension-sdk/packages/sdk/';
import { Quaternion, User, Vector3 } from '../../mixed-reality-extension-sdk/packages/sdk/';
import App from './app'... |
<gh_stars>0
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { FormGroup, FormControl, FormBuilder, Validators , ValidatorFn, AbstractControl} from '@angular/forms';
import { of, Subject } from 'rxjs';
import { CommonService } from... |
import * as normalizeWheel from 'normalize-wheel';
import Render from '../render';
import CanvasPainter from '../painter/CanvasPainter';
import Element from '../shapes/Element';
import { valueToRgb } from '../color';
import { DOM_LAYER_CLASS } from '../constant';
import {
SyntheticEvent,
SyntheticMouseEvent,
Syn... |
import bowser from "bowser";
import Database from "../services/Database";
import OneSignalApiShared from "../OneSignalApiShared";
import Environment from "../Environment";
import Event from "../Event";
import Log from "../libraries/Log";
import { ServiceWorkerActiveState } from "../helpers/ServiceWorkerHelper";
import... |
<reponame>eternius/eos-supervisor
import * as Bluebird from 'bluebird';
import * as bodyParser from 'body-parser';
import * as express from 'express';
import { isLeft } from 'fp-ts/lib/Either';
import * as t from 'io-ts';
import * as _ from 'lodash';
import * as Path from 'path';
import { PinejsClientRequest, StatusErr... |
/*
The MIT License (MIT)
Copyright (c) <NAME> (<EMAIL>)
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,... |
<filename>packages/mdc-slider/test/component.test.ts
/**
* @license
* Copyright 2020 Google Inc.
*
* 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... |
// removed, throttle
import { PureComponent } from "react";
import { ExcalidrawImperativeAPI } from "../../types";
import { ErrorDialog } from "../../components/ErrorDialog";
import { APP_NAME, ENV, EVENT } from "../../constants";
import { ImportedDataState } from "../../data/types";
import { ExcalidrawElement } from "... |
<filename>ui/raidboss/data/05-shb/dungeon/heroes_gauntlet.ts
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import Zone... |
import * as widgets from "@jupyter-widgets/base";
import { WidgetModel, WidgetView } from "@jupyter-widgets/base";
import { isArray, isEqual, isNumber, isString } from "lodash";
import * as THREE from "three";
import { FigureView } from "./figure";
import { MeshDepthMaterialCustom, MeshDistanceMaterialCustom } from "./... |
type Countries = {
BD: 'Bangladesh';
BE: 'Belgium';
BF: 'Burkina Faso';
BG: 'Bulgaria';
BA: 'Bosnia and Herzegovina';
BB: 'Barbados';
WF: 'Wallis and Futuna';
BL: 'Saint Barthelemy';
BM: 'Bermuda';
BN: 'Brunei';
BO: 'Bolivia';
BH: 'Bahrain';
BI: 'Burundi';
BJ: 'Benin';
BT: 'Bhutan';
JM: ... |
<reponame>Bernard-Cloutier/imodeljs
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------... |
/**
* Copyright © 2019 Province of British Columbia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import React, { Component, DragEvent } from 'react';
import isEqualWith from 'lodash/isEqualWith';
import cs from '../_util/classNames';
import Node from './node';
import NodeList from './node-list';
import { isEmptyObject, isFunction } from '../_util/is';
import { ConfigContext } from '../ConfigProvider';
import {
g... |
<reponame>somkiet073/ci-demos-dashbord<gh_stars>0
import { Injectable } from '@angular/core';
export class OilProductionItem {
state: string;
month: string;
year: string;
value: number;
}
let oilProductionData: OilProductionItem[] = [
{ state: "Alaska", month: "Jan", year: "2016", value: 15985000 ... |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... |
<filename>sim/side.ts<gh_stars>0
/**
* Simulator Side
* Pokemon Showdown - http://pokemonshowdown.com/
*
* @license MIT license
*/
import {Pokemon} from './pokemon';
/** A single action that can be chosen. */
interface ChosenAction {
choice: 'move' | 'switch' | 'instaswitch' | 'team' | 'shift' | 'pass'; // acti... |
/**
* Copyright 2017 <NAME> All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* tslint:disable:max-classes-per-file */
import * as ByteBuffer from 'bytebuffer';
import FabricCAServices = require('fabric-ca-client');
import * as Long from 'long';
import { BaseClient } from './base';
interface Proto... |
<reponame>kissu/svelte
import MagicString from 'magic-string';
import Stylesheet from './Stylesheet';
import { gather_possible_values, UNKNOWN } from './gather_possible_values';
import { CssNode } from './interfaces';
import Component from '../Component';
import Element from '../nodes/Element';
import { INode } from '.... |
/**
* Docs: https://developer.paypal.com/docs/api/orders/v2/
*/
// https://developer.paypal.com/docs/api/payments/v2/#definition-ach_debit
export interface AchDebit {
account_holder_name: string;
account_number: string;
account_type?: AccountType;
routing_number: string;
}
export enum AccountType {
... |
/*
* Copyright 2020 Salto Labs Ltd.
*
* 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 ... |
<reponame>Emupedia/emupedia-app-noclip
import { GfxDevice, makeTextureDescriptor2D, GfxFormat } from '../gfx/platform/GfxPlatform';
import * as Viewer from '../viewer';
import { TPLTextureHolder, WorldRenderer } from './render';
import * as TPL from './tpl';
import * as World from './world';
import { SceneContext } fr... |
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
import { type ListElement } from "../utils/list.ts";
import { iter } from "../utils/iter.ts";
import { DataList, type TimeData } from "./data_list.ts";
class ColorRegistry {
#colors: Map<string, string>;
con... |
import { insert } from "../lib/database";
import { KnnectTableTypes } from "../lib/dbNames";
import logger from "../lib/logger";
const TuyAPI = require("tuyapi");
const { evaluate } = require("mathjs");
const utils = require("../lib/utils");
const debug = require("debug")("tuya-mqtt:tuyapi");
const debugState = requir... |
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-unsafe-call */
import { GameBase, IAPGameState, IClickResult, IIndividualState, IValidationResult } from "./_base";
import { APGamesInformation } from "../schemas/gameinfo";
import { APRenderRep } from "@abstractplay/rendere... |
<filename>core/common/src/ViewFlags.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------... |
<reponame>backtopyramidone/owid-grapher
import {
max,
min,
intersectionOfSets,
findClosestTimeIndex,
sumBy,
flatten,
uniq,
sortNumeric,
last,
groupBy,
isNumber,
isEmpty,
getClosestTimePairs,
sortedFindClosest,
pairs,
maxBy,
minBy,
cagr,
makeAnn... |
<gh_stars>0
import * as vscode from 'vscode';
import { TextDocument, Position, TextEdit } from 'vscode';
import * as format from './listreader';
import { LispAtom, Sexpression, indentationForNarrowStyle } from './sexpression';
import { CursorPosition } from './listreader';
export class ElementRange {
constructor(... |
/**
* This implementation is largely taken from the Apache project and reimplemented in TypeScript.
*
* The orginal project can be found here:
* https://github.com/apache/thrift/blob/master/lib/nodejs/lib/thrift/compact_protocol.js
*/
import { TProtocolException, TProtocolExceptionType } from '../errors'
import {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
<gh_stars>1-10
import DevSyncPull, { SyncPullInterface as DevSyncPullInterface, SftpOptions as DevSyncPullSftpOptions } from '@root/app/devsync/compute/SyncPull';
import BaseModel, { BaseModelInterface } from '@root/base/BaseModel';
import * as chokidar from "chokidar";
import { CliInterface } from '../services/CliSer... |
export interface Parser {
parse(input: string | Input, previousTree?: Tree, options?: {bufferSize?: number, includedRanges?: Range[]}): Tree;
getLanguage(): any;
setLanguage(language: any): void;
getLogger(): Logger;
setLogger(logFunc: Logger): void;
}
export type Point = {
row: number;
column: number;
}... |
<reponame>PrsPrsBK/vs-symbol-by-ctags
import * as vscode from 'vscode';
import fs from 'fs';
import { spawn } from 'child_process';
import readline from 'readline';
/*
* must dispose() on deactivation.
*/
let onSaveSubscription: vscode.Disposable;
export function activate(context: vscode.ExtensionContext)... |
<reponame>devfabiosilva/nano-electron<filename>react-redux-typescrypt/src/service/index.ts<gh_stars>1-10
import axios from 'axios';
import {
NANO_NODE_URL,
NANO_P2P_PORT,
NANO_P2P_URI
} from '../utils/nodes';
import {
NANO_PREFIX,
changeToNanoPrefix,
NANO_JS_COMMANDS,
MY_NANO_JS_VER... |
import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBar';
import { IPersonaProps } from 'office-ui-fabric-react/lib/Persona';
import { ComboBox, IComboBoxOption, VirtualizedComboBox } from 'office-ui-fabric-react/lib/ComboBox';
import Axios from 'axios';
import { TooltipHost, DirectionalHint }... |
<reponame>lifeindarkside/Bravo<filename>src/wwwroot/src/view/scene-analyze-model.ts
/*!
* Bravo for Power BI
* Copyright (c) SQLBI corp. - All rights reserved.
* https://www.sqlbi.com
*/
import { host, telemetry, themeController } from "../main";
import { i18n, I18n } from '../model/i18n';
import { Dic, Utils, _, _... |
const settings: Jobs.Config = {
startupDelay: 1 * 1000, // default 1 second
maxWait: 5 * 60 * 1000, // specify how long the server could be inactive before another server takes on the master role (default=5 min)
log: console.log,
autoStart: true,
};
function log(...args: any) {
typeof settings.log == 'function'... |
<reponame>Ra-Workspace/ffxiv-teamcraft
import { getCraftByPriority, getItemSource, ListRow } from './model/list-row';
import { deepClone } from 'fast-json-patch';
import { ModificationEntry } from './model/modification-entry';
import { LazyDataWithExtracts } from '../../lazy-data/lazy-data-types';
import { DataType } f... |
import {$} from '../caching/GlobalCache';
import {Colony, ColonyStage} from '../Colony';
import {log} from '../console/log';
import {CombatCreepSetup} from '../creepSetups/CombatCreepSetup';
import {bodyCost, CreepSetup} from '../creepSetups/CreepSetup';
import {TransportRequestGroup} from '../logistics/TransportReques... |
<gh_stars>10-100
import { Parser } from "m3u8-parser";
import { Mp4 } from "../../vendor/mp4.js/dist";
import {
ITrackHeaderBox,
ITrackRunBox,
IMediaDataBox,
IESDBox,
IMP4AudioSampleEntry,
IMovieHeaderBox,
ISampleDependencyTypeBox
} from "../../vendor/mp4.js/dist/interface.box";
import * as Hls from "hls.... |
<filename>src/lib/id3v2/id3v2.writer.raw.ts
import {WriterStream} from '../common/stream-writer';
import {IID3V2} from './id3v2.types';
import {ID3v2_EXTHEADER, ID3v2_FRAME_FLAGS1, ID3v2_FRAME_FLAGS2, ID3v2_FRAME_HEADER, ID3v2_FRAME_HEADER_LENGTHS, ID3v2_HEADER_FLAGS} from './id3v2.header.consts';
import {unflags} from... |
<reponame>ecs-193/robot<filename>src/robot.ts
import { Observable, Subject } from 'rxjs';
import { throttleTime } from 'rxjs/operator/throttleTime';
import * as SerialPort from 'serialport';
import { Conveyor } from './conveyor';
import { Item } from './item';
import { BCoord, Coord3, CoordType, RCoord, Util, Vector } ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import {Attribute} from '../../../attribute';
import {Graph} from '../../../graph';
import {Upsample} from '../../../ops/upsample';
import {Tensor} from '../../../tensor';
import {CpuInferenceHandler} from '../inference-han... |
import _ from 'lodash';
import Long from 'long';
import {google, Ydb} from '../proto/bundle';
import 'reflect-metadata';
import Type = Ydb.Type;
import IType = Ydb.IType;
import IStructMember = Ydb.IStructMember;
import IValue = Ydb.IValue;
import IColumn = Ydb.IColumn;
import ITypedValue = Ydb.ITypedValue;
import IRe... |
<gh_stars>0
import * as MAP from './map';
import * as UI from '../ui';
import * as Viewer from '../viewer';
// @ts-ignore
import { readFileSync } from 'fs';
import { DeviceProgram } from "../Program";
import { GfxProgram, GfxMegaStateDescriptor, GfxDevice, GfxCullMode, GfxBlendMode, GfxBlendFactor, GfxCompareMode, Gfx... |
<gh_stars>1-10
/* Copyright 2016 Google Inc. All Rights Reserved.
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 ... |
const wordList = [
// Borrowed from xkcd password generator which borrowed it from wherever
"ability", "able", "aboard", "about", "above", "accept", "accident", "according",
"account", "accurate", "acres", "across", "act", "action", "active", "activity",
"actual", "actually", "add", "addition", "additional", "a... |
/* eslint require-atomic-updates: off */
import {cpus, freemem} from 'os';
import {cursorTo, clearScreenDown, emitKeypressEvents} from 'readline';
import exec from 'execa';
import signalExit from 'signal-exit';
import {Workspace} from '@sewing-kit/model';
import {
Step,
LogLevel,
Loggable,
LogOptions,
Step... |
"use strict";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import sha512 from "hash.js/lib/hash/sha/512";
import { LAWNUM_TABLE, KEY_LENGTH } from "../law/lawNumTable";
import * as parser from "../parser";
import { throwError } from "../util";
import { Container, ContainerType } from "../... |
<filename>src/workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Autopilot/Directors/LNavDirector.ts
/// <reference types="msfstypes/JS/simvar" />
import { GeoCircle, GeoPoint, NavMath, UnitType, LinearServo, MagVar, BitFlags } from 'msfssdk';
import { EventBus, Publisher } fro... |
<gh_stars>0
import * as Utils from '../utils';
import * as Constants from '../constants';
import { Step, StepEnum } from '../Step';
import FixedOption, { OptionType } from '../options/FixedOption';
import SettingKeys from '../settings';
import HeroOption from '../options/HeroOption';
import OptionContainer from '../opt... |
<gh_stars>1-10
import {paintEventsSpeedIndex} from './index';
import speedline from 'speedline';
import {Options} from 'speedline';
import * as path from 'path';
const benchmarkData = [
['https://coderjoy.com(man)', 'man-coderjoy-com', 1440, 820],
['https://coderjoy.com', 'coderjoy-com', 1920, 1080],
['htt... |
<filename>src/Pushwoosh.ts
import {sendFatalLogToRemoteServer} from './helpers/logger';
import EventEmitter from './EventEmitter';
import API from './API';
import {
getVersion,
patchPromise,
clearLocationHash,
validateParams
} from './functions';
import {PlatformChecker} from './modules/PlatformChecker';
impor... |
import { URLExt } from '@jupyterlab/coreutils';
import { ServerConnection } from '@jupyterlab/services';
import { Dialog, showDialog } from '@jupyterlab/apputils';
import { Widget } from '@lumino/widgets';
import { PageConfig } from '@jupyterlab/coreutils';
export class AssignmentList{
released_selector: str... |
<reponame>actarian/rxcomp<gh_stars>10-100
import { Observable, Subject } from 'rxjs';
import { takeUntil, tap } from 'rxjs/operators';
import Component from '../core/component';
import Context from '../core/context';
import Factory, { CONTEXTS, getContext, NODES } from '../core/factory';
import Structure from '../core/... |
<reponame>livoras/amini
// tslint:disable: no-bitwise
// tslint:disable: no-big-function
// tslint:disable: cognitive-complexity
import { parseStringsArray, getByProp, readUInt8, readInt16, readUInt32, readFloat64, readInt8, getOperatantByBuffer, getOperantName } from "../utils"
export enum I {
MOV, ADD, SUB, MUL, DI... |
<reponame>mans-18/digest_front<gh_stars>0
import { Component, OnInit, Input, ViewChild, Inject, Optional } from '@angular/core';
import { ApiService } from '../../../services/api.service';
import { Router } from '@angular/router';
import { CookieService } from 'ngx-cookie-service';
import { Event } from '../../models... |
// TODO cloud save indication in the editor somewhere
import * as core from "./core";
import * as pkg from "./package";
import * as ws from "./workspace";
import * as data from "./data";
import * as cloud from "./cloud";
type Header = pxt.workspace.Header;
type File = pxt.workspace.File;
import U = pxt.Util;
const l... |
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
<reponame>ChalkPE/atom-title-bar-replacer
import TitleBarReplacer from "./title-bar-replacer";
import MenuUpdater from "./menu-updater";
const $: JQueryStatic = require("jquery");
const jQuery = $;
const remote: any = require('electron').remote;
const { shell } = require('electron');
var mainWindow: BrowserWindow;
var... |
const BattlePokemonIconIndexes: {[id: string]: number} = {
egg: 816 + 1,
pikachubelle: 816 + 2,
pikachulibre: 816 + 3,
pikachuphd: 816 + 4,
pikachupopstar: 816 + 5,
pikachurockstar: 816 + 6,
pikachucosplay: 816 + 7,
// unown gap
castformrainy: 816 + 35,
castformsnowy: 816 + 36,
castformsunny: 816 + 37,
deox... |
<reponame>SUSE/open-build-service-connector
/**
* Copyright (c) 2020 SUSE LLC
*
* 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 righ... |
import long from "long";
import type { PSTFile } from ".";
import {
PSTActivity,
PSTAppointment,
PSTContact,
PSTFolder,
PSTMessage,
PSTTask,
} from ".";
import type { DescriptorIndexNode } from "./DescriptorIndexNode";
import type { PSTDescriptorItem } from "./PSTDescriptorItem";
import { PSTNo... |
<gh_stars>0
export class CSPD {
public static BASE_URI = "base-uri";
public static BLOCK_ALL_MIXED_CONTENT = "block-all-mixed-content";
public static CHILD_SRC = "child-src";
public static CONNECT_SRC = "connect-src";
public static DEFAULT_SRC = "default-src";
public static FONT_SRC = "font-src";
public static F... |
/**
* @license
* Copyright (C) 2021 The Android Open Source Project
*
* 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 require... |
<filename>src/_enonicAdapter/guillotine/fetchContent.ts
import {getMetaQuery, MetaData, PAGE_FRAGMENT, PageComponent, PageData, PageRegion, RegionTree} from "./getMetaData";
import {Context} from "../../pages/[[...contentPath]]";
import adapterConstants, {
APP_NAME,
APP_NAME_DASHED,
FRAGMENT_CONTENTTYPE_N... |
import { Signal } from "../helpers/Signal";
import { IPageStack } from "./IPageStack";
import { inArray } from "../utils/arrayUtils";
import {
extractPathFromBase,
getBaseFromPath,
leadingSlash,
slugify,
trailingSlash,
} from "../utils/stringUtils";
const debug = require("debug")("lib:Router");
/**
* @credi... |
import assert from 'assert';
import {
charHasUprightVerticalOrientation,
charAllowsIdeographicBreaking,
charInComplexShapingScript
} from '../util/script_detection';
import verticalizePunctuation from '../util/verticalize_punctuation';
import {plugin as rtlTextPlugin} from '../source/rtl_text_plugin';
impor... |
// Constants
// =============================================================================
const ASSET_EXTENSIONS: Readonly<string[]> = ['gif', 'jpe?g', 'png'];
const CONTEXT_MAX_WIDTHS: Readonly<Record<AssetContext, number>> = {
l: 1280,
m: 768,
s: 480,
xl: 1920,
xs: 320,
};
const SELF_CLOSING_TAGS: Read... |
// ---------------------------------------------------------------------------------------------------------------------
// node-opcua
// ---------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2014-2021 - <NAME> - etienne.rossignon (at) ... |
<reponame>rbnpercy/embark
import * as fs from './fs';
import { Plugins } from './plugins';
import { Plugin } from './plugin';
import { EmbarkEmitter as Events } from './events';
import { filesMatchingPattern, fileMatchesPattern } from './utils/utils';
const path = require('path');
const deepEqual = require('deep-equal'... |
<filename>js/src/data.ts<gh_stars>1-10
// 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, ... |
import { Component, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';
import { DragEvent } from '../interfaces';
import { Material } from '../materials/material';
import { Materials } from '../materials/materials';
import { MaterialLibraryService } from '../materials/material-library.service';
import { Th... |
import * as url from 'url';
import HttpIntegration from './plugins/integrations/HttpIntegration';
import PostgreIntegration from './plugins/integrations/PostgreIntegration';
import MySQL2Integration from './plugins/integrations/MySQL2Integration';
import MySQLIntegration from './plugins/integrations/MySQLIntegration';
... |
// -*- js -*-
// Copyright © 2018 by Ezer IT Consulting. All rights reserved. E-mail: <EMAIL>
// Code to handle the specification of display and request features when creating an exercise. This
// code is used by the 'Features' tab of the exercise editor.
//************************************************************... |
<filename>src/operand.ts<gh_stars>100-1000
import {UInt64} from './util';
import {Expression} from './expression';
import Label from './Label';
export enum SIZE {
ANY = -1, // Any size.
NONE = 0, // Either unknown or not specified yet.
B = 8, // byte
W =... |
import {ParamsDictionary, Request, Response} from 'express-serve-static-core';
import {JsonStringNormalizer} from './json-string-normalizer';
import {JsonOverlayNormalizer} from './json-overlay-normalizer';
import {Logger, LogLevel} from './server-logger';
import * as fastXmlParser from 'fast-xml-parser';
import * as h... |
import * as bitcoin from 'bitcoinjs-lib'
import * as bip39 from 'bip39'
import * as bip32 from 'bip32'
import * as ElectrumClient from '@keep-network/electrum-client-js'
import * as coinSelect from 'coinselect/accumulative'
import * as coinSelectSplit from 'coinselect/split'
import Axios from 'axios'
import Dexie from ... |
<gh_stars>1-10
/// <reference path="./node_modules/@types/node/index.d.ts"/>
import tl = require('vsts-task-lib/task');
import * as vm from 'vso-node-api';
import * as ba from 'vso-node-api/BuildApi';
import * as bi from 'vso-node-api/interfaces/BuildInterfaces';
import * as tac from 'vso-node-api/TaskAgentApiBase';
i... |
import ESLBuffer from './ESLBuffer';
import Connection from './Connection';
import { EventEmitter } from 'events';
import { ConnectOptions } from './interfaces';
import { loglevel } from './types';
import utils from './utils';
import * as events from './events';
import EventParser from './parsers/EventParser';
import... |
import * as vscode from 'vscode';
import * as path from 'path';
import * as superagent from 'superagent';
let extensionPath: string; // 插件路径
let panel: vscode.WebviewPanel | undefined = undefined; // 查看内容窗口
let ithomEmoji = ["爱你", "爱心", "挨揍", "暗中观察", "白鸡", "抱拳", "比心", "闭嘴", "不好惹的鸡", "不是吧", "不咋行", "不正经滑稽", "擦鼻血", "菜刀",... |
<filename>src/TrivialTreeBox.ts
/*!
Trivial Components (https://github.com/trivial-components/trivial-components)
Copyright 2016 <NAME> (https://github.com/yamass) and other contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.