text stringlengths 9.82k 47.8k |
|---|
/*
* Copyright 2017 Next Century 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 ... |
<reponame>robertknight/passcards
import argparse = require('argparse');
import mkdirp = require('mkdirp')
import sprintf = require('sprintf');
import pathLib = require('path');
import underscore = require('underscore');
import agile_keychain = require('../lib/agile_keychain');
import asyncutil = require('../lib/base/a... |
<reponame>Vidyano/vidyano<filename>wwwroot/web-components/web-component/web-component.ts
import * as Polymer from "../../libs/polymer/polymer.js"
import * as Vidyano from "../../libs/vidyano/vidyano.js"
import { Path } from "../../libs/pathjs/pathjs.js"
import type { AppBase } from "../app/app-base.js"
import type { Ap... |
<reponame>joshuatz/markdown-it-do-co-pack
import type { AnchorOptions } from 'markdown-it-anchor';
import MarkdownItAnchor from 'markdown-it-anchor';
import { RulesByName } from './index.js';
import { MarkdownIt, RuleCore, Token } from './types.js';
import {
codeBlockEscape,
docoEscape,
getHtmlBlock,
getIsRuleEnabl... |
<gh_stars>10-100
import {Injectable, NgZone} from '@angular/core';
import {Subject} from 'rxjs';
import Collection from 'ol/Collection';
import VectorLayer from 'ol/layer/Vector';
import VectorSource from 'ol/source/Vector';
import {Cluster, Source} from 'ol/source';
import {DragBox, Draw, Modify, Snap} from 'ol/inter... |
// luma.gl, MIT license
// Texture class.
// @todo
// - [ ] cube texture init params
// - [ ] video (external) textures
import {
Device,
TextureProps,
Sampler,
SamplerProps,
SamplerParameters,
isObjectEmpty
} from '@luma.gl/api';
import {Texture, cast, log, assert, isPowerOfTwo, loadImage} from '@luma.gl/a... |
<reponame>xiiiAtCn/chrome-editor<gh_stars>0
/** @format */
import { Anchor, Block } from "types/muya";
import Muya from "..";
import { DEFAULT_TURNDOWN_CONFIG, HAS_TEXT_BLOCK_REG } from "../config";
import escapeCharactersMap, {
escapeCharacters,
} from "../parser/escapeCharacter";
import StateRender from "../parser... |
/// <reference path="typings/knockout/knockout.d.ts" />
/// <reference path="typings/knockout.es5/knockout.es5.d.ts" />
/// <reference path="common.ts" />
/// <reference path="idol.model.ts" />
/// <reference path="petit_idol.ts" />
/// <reference path="skill.ts" />
// 計算モード
enum CALCULATION_TYPE {
NORMAL = 0, //... |
import {
AnnotationEvent,
CoreApp,
DataQueryError,
DataQueryRequest,
DataQueryResponse,
DataSourceApi,
DataSourceInstanceSettings,
dateMath,
DateTime,
LoadingState,
rangeUtil,
ScopedVars,
TimeRange,
} from '@grafana/data';
import { BackendSrvRequest, FetchError, getBackendSrv } from '@grafana/... |
<filename>src/addons/messages/pages/group-conversations/group-conversations.page.ts<gh_stars>0
// (C) Copyright 2015 Moodle Pty 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
//
// ... |
/**
* @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 { logging } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
SchematicsException,
TaskId,... |
<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.
*-------------------------------------------------------------... |
<gh_stars>100-1000
import genFn from "generate-function";
import {
ArgumentNode,
ASTNode,
DirectiveNode,
FieldNode,
FragmentDefinitionNode,
getLocation,
GraphQLArgument,
GraphQLDirective,
GraphQLError,
GraphQLField,
GraphQLIncludeDirective,
GraphQLInputType,
GraphQLObjectType,
GraphQLSkipDir... |
<gh_stars>1-10
import path from 'path'
import wd from 'selenium-webdriver'
import config from '../../config'
import { ChSettingsData } from '../../db/dbTypes'
import { SubmissionTypeTitles } from '../../eventHandlers/submissionTypes'
import { SelUtils } from './selUtils'
/* eslint-disable no-await-in-loop, @typescrip... |
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
* @format
*/
// Types in this file are inaccurate compared to usage in terms of falsiness.
// We should try to rewrite some of this to do automated schema validation to
// guarantee correct types
/* eslint-disable @typescript-eslint/no-un... |
<gh_stars>1-10
export type Optional<T> = T | undefined | null;
export type Key = symbol | string | number;
export interface IDirective {
(part: AttributePart | EventPart | NodePart): void;
directive: boolean;
}
export type DirectiveFn = (part: AttributePart | EventPart | NodePart) => void;
export type AttributePart... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 <NAME>, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------------... |
<filename>projects/fhem-native-core/src/services/component-loader.service.ts
import { Injectable, Injector, ComponentFactoryResolver, NgModuleFactory, Type, ViewContainerRef } from '@angular/core';
import { Subject } from 'rxjs';
// Services
import { VariableService } from './variable.service';
import { StructureServi... |
<gh_stars>0
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* -------------------------------------------------... |
import {
ColumnApi,
GridApi,
GridReadyEvent,
RowClickedEvent,
} from "ag-grid-community";
import { NumberFormatValues } from "react-number-format";
import Swal from "sweetalert2";
import withReactContent from "sweetalert2-react-content";
import { db } from "../../config/firebase";
import {
BomDb,
bomDepartm... |
import { Component, OnInit, ChangeDetectionStrategy, ViewChild, ChangeDetectorRef, ViewContainerRef, ViewRef } from '@angular/core';
import {MatPaginator} from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import {MatTableDataSource} from '@angular/material';
import {FormControl, Form... |
// Type definitions for Qlik Sense 3.1
// Project: https://help.qlik.com/en-US/sense-developer/3.1/Content/APIs-and-SDKs.htm
// Definitions by: <NAME> <https://github.com/RubenSlabbert>, AginicX <https://github.com/AginicX>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
i... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
export const InstancePlatform = {
LinuxUnix: "Linux/UNIX",
RedHatEnterpriseLinux: "Red Hat Enterprise Linux",
SuseLinux: "SUSE Linux",
... |
import { HttpClient } from '@angular/common/http';
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
import {
AS_SEEN_FROM_SUN, AVG_SUN_MOON_RADIUS, DataQuality, JUPITER, JUPITER_FLATTENING, JupiterInfo, JupitersMoons, MOON_SHADOW, MoonInfo,
NAUTICAL_TWILIGHT, PlanetaryMoons, REFRACTI... |
/**
* Created by theophy on 02/08/2017.
*/
import * as path from 'path';
import { SwaggerSailsModel, HTTPMethodVerb, MiddlewareType, SwaggerRouteInfo, NameKeyMap, SwaggerActionAttribute, SwaggerModelAttribute, ActionType, SwaggerSailsControllers, AnnotatedFunction, SwaggerControllerAttribute, BluePrintAction, Swagger... |
<reponame>fabioandrec/akpoho-invoicing-software<gh_stars>10-100
import { AxiosResponse, AxiosError } from 'axios';
import { DataRows } from '../quasar_tables/state';
export interface RootState {
gtmID: string;
httpTimeout: number;
currentYear: number | null;
message: AlertInterface;
tokenRefreshTime: number;... |
/**
* Copyright 2022 <NAME>, Inc.
*
* Use of this software is governed by the Business Source License
* included in the file https://github.com/redpanda-data/redpanda/blob/dev/licenses/bsl.md
*
* As of the Change Date specified in that file, in accordance with
* the Business Source License, use of this software ... |
import React, { useEffect, useMemo, useState } from 'react';
import { useParams } from 'react-router-dom';
import { Button, Card, Carousel, Col, List, Row, Skeleton ,Table} from 'antd';
import { AuctionCard } from '../../components/AuctionCard';
import { Connection } from '@solana/web3.js';
import { AuctionViewItem } f... |
import Head from "next/head"
import { useState, useCallback, useRef, useEffect, useMemo } from "react"
import $ from "jquery"
import { sendOTP } from "@functionalities/emailManager"
import Link from "next/link"
import ImageCapture from "react-image-data-capture"
import ReactCrop from "react-image-crop"
import "react-... |
<reponame>alxmrs/arcs<filename>src/wasm/tests/wasm-api-test.ts<gh_stars>0
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* sub... |
import "v8-compile-cache"
import crypto from "crypto"
import type { Span } from "opentracing"
import fs from "fs-extra"
import path from "path"
import dotenv from "dotenv"
import { CoreJSResolver } from "./webpack/plugins/corejs-resolver"
import { CacheFolderResolver } from "./webpack/plugins/cache-folder-resolver"
im... |
import assert from 'assert';
import UrlNode from 'url';
import { PassThrough } from 'stream';
import _ from 'lodash';
import buildDebug from 'debug';
import { ErrorCode, isObject, getLatestVersion } from '@verdaccio/utils';
import { searchUtils, pluginUtils, pkgUtils, validatioUtils } from '@verdaccio/core';
import { ... |
import { CloseCircleOutlined, EnvironmentOutlined, SettingOutlined } from '@ant-design/icons';
import { Col, Drawer, Row } from 'antd';
import React from 'react';
import { Factory } from '../../utils/factory';
import { Gygax } from '../../utils/gygax';
import { Mercator } from '../../utils/mercator';
import { Comms, C... |
import { expect } from "chai"
import { advanceBlock, advanceBlockTo, bn, deployChef, deployContract, deployERC20Mock, setAutomineBlocks } from "./utilities"
import { ethers } from "hardhat"
import { BeethovenxMasterChef, BeethovenxToken, RewarderMock } from "../types"
import { SignerWithAddress } from "@nomiclabs/hardh... |
<reponame>ondewo/ondewo-t2s-client-typescript<gh_stars>0
import * as jspb from 'google-protobuf'
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
export class SynthesizeRequest extends jspb.Message {
getT2sPipelineId(): string;
setT2sPipelineId(value: string): SynthesizeReque... |
import commonUtil from "../utils/dragger-caculate-util";
interface DragAttributes {
// 实例属性
$draggle: HTMLElement | EventTarget;
pageClass: string; // 模板容器class名称,string类型
event: TouchEvent;
$pageContainer: HTMLElement; // 模板容器,页面dom
$movingBoundary: HTMLElement; // 可移动的边界,dom对象
dragWrapClass: string; //... |
import {
Cell,
Point,
Person,
Poster,
PersonInMap,
ChatGroup,
UserId,
ChatGroupId,
Direction,
RoomId,
PersonPos,
Tree,
AppEvent,
MapUpdateEntry,
} from "@/@types/types"
import fromPairs from "lodash/fromPairs"
import minBy from "lodash/minBy"
import groupBy from "lodash/groupBy"
import * as... |
<gh_stars>0
/******************************************************
* maze for MakerBit
* by <NAME> January 2021
* Version 0.5 24Jan2021
* Requires:
* BBC micro:bit version 1 or later
* MakerBit by <NAME>
* MakeCode editor
* MakeCode extension: "makerbit-touch"
* Connect 1 LED to digital pin ... |
// @ts-nocheck
import React, { useCallback, useContext, useEffect } from "react"
import { EmbedProps } from "./types"
import { LookerEmbedSDK, LookerEmbedDashboard } from '@looker/embed-sdk'
import {
ExtensionContext,
ExtensionContextData,
} from "@looker/extension-sdk-react"
import { Button, Heading, Label, Toggle... |
<reponame>troyronda/sidetree<gh_stars>0
import BitcoinBlockModel from './models/BitcoinBlockModel';
import BitcoinClient from './BitcoinClient';
import BitcoinTransactionModel from './models/BitcoinTransactionModel';
import ErrorCode from './ErrorCode';
import IBitcoinConfig from './IBitcoinConfig';
import LockMonitor ... |
import {
Component, OnInit, AfterViewInit, OnDestroy, EventEmitter, Output, Input, OnChanges,
ChangeDetectorRef
} from '@angular/core';
import {FormBuilder, FormGroup, FormControl, Validators} from '@angular/forms';
//import {FORM_DIRECTIVES, FormBuilder, Validators, ControlGroup, Control} from '@angular/common';
i... |
import { FC, createContext, useCallback, useContext, useEffect, useMemo } from 'react';
import BigNumber from 'bignumber.js';
import { AbiItem } from 'web3-utils';
import { useContractManager, useErc20Contract } from 'web3/components/contractManagerProvider';
import Erc20Contract from 'web3/erc20Contract';
import { for... |
<filename>packages/compiler-cli/src/metadata/collector.ts
/**
* @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 * as ts from 'typescript';
import {Evaluator, erro... |
import {assert} from "chai";
import {createCheckers, CheckerT, VError} from "../lib/index";
import * as t from "../lib/types";
import greetTI from "./fixtures/greet-ti";
import sample from "./fixtures/sample-ti";
import shapes from "./fixtures/shapes-ti";
import * as enumUnion from "./fixtures/enum-union";
import enumU... |
import { atob, btoa } from 'abab';
import fortune from 'fortune';
import { IntrospectionInterfaceType, IntrospectionType } from 'graphql';
import { each, find, findIndex, forOwn, get, has, isArray, isEmpty, isEqual, isPlainObject, isString, keys, set, toString } from 'lodash';
import fortuneCommon from '../node_modules... |
// main.ts
/// <reference path="./../../node_modules/pixi-typescript/pixi.js.d.ts" />
import PIXI = require("pixi.js");
const PATH_BG_1 = "./images/bg1.jpg";
const PATH_BG_2 = "./images/bg2.png";
const PATH_LOGO = "./images/logo.bmp";
const PATH_MAINMENU_BG = "./images/mainmenu_bg.bmp";
const PATH_BUTTON_NORMAL = "./... |
import { Context, Recogniser } from '.';
import match, { Match } from '../match';
/**
* Binary search implementation (recursive)
*/
function binarySearch(arr: number[], searchValue: number) {
const find = (
arr: number[],
searchValue: number,
left: number,
right: number
): number => {
if (rig... |
export type TypeWeiboApi_MyBlob_ListResponse = {
ok: 1
data: {
list: TypeWeiboApi_MyBlob_Item[]
"status_visible": 0
"topicList": []
}
}
export type TypeWeiboApi_MyBlob_Item = {
"visible": {
"type": 0,
"list_id": 0
},
"created_at": "Tue Feb 23 12:28:47 +0800 2021",
"id": 460774100959... |
<reponame>weiruanyahei/hms-cordova-plugin
/*
Copyright 2020. Huawei Technologies Co., Ltd. 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
https://www.ap... |
import React, { useEffect, useRef, useState } from "react"
import { MetadataNode } from "../../models/MetadataNode";
import { ChapterNode, CaretRange, Caret } from "../../models/ChapterNode";
import { DefinitionNode } from "../../models/DefinitionNode";
import { InlineCodeNode } from "../../models/InlineCodeNode";
impo... |
<filename>src/StringTable.ts<gh_stars>1-10
/*
MIT License
Copyright (c) 2019 github0null
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... |
<reponame>jyylui/fabric-operations-console<gh_stars>10-100
/*
* 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 applic... |
<gh_stars>1-10
/*
Tournaments Manager Feature
*/
const LANG_DIR = Plugins.resolve(__dirname, 'langs.json');
export let tournaments = Object.create(null);
export let tourData = Object.create(null);
export let winners = Object.create(null);
const Lang = Plugins.Language.load(LANG_DIR);
import * as LeaderboardsPath fro... |
// @todo: readd NpmInstallPlugin
// @todo: clean up this file (extra functions, commented out code, etc.)
import path from 'path';
// import address from 'address';
import webpack, { Loader } from 'webpack';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import { Plugin as ShakePlugin } fro... |
import * as React from 'react'
import { Table, Label, Search, Button, Segment, List, Header, Rail, Message, Input, Menu, Dropdown, Icon, Image, Loader, Confirm, Modal, Card, Divider, Tab } from 'semantic-ui-react'
import { Link , browserHistory} from 'react-router'
import MonitorButton from '../connected/MonitorButton'... |
import { Component, OnInit } from '@angular/core';
import { AngularFireDatabase } from 'angularfire2/database';
import { AngularFireStorage } from 'angularfire2/storage';
import { HttpClient } from '@angular/common/http';
import { CommonService } from '../../services/common/common.service';
import { ToastrService } fro... |
<reponame>cloudsmithconsulting/cds-for-code
import * as vscode from 'vscode';
import IContributor from '../../core/CommandBuilder';
import * as cs from '../../cs';
import * as fs from 'fs';
import * as eol from 'eol';
import * as child_process from 'child_process';
import { Utilities } from '../../core/Utilities';
impo... |
<filename>api/node_modules/sigma/src/renderers/webgl/index.ts
/**
* Sigma.js WebGL Renderer
* ========================
*
* File implementing sigma's WebGL Renderer.
*/
import graphExtent from "graphology-metrics/extent";
import isGraph from "graphology-utils/is-graph";
import Renderer from "../../renderer";
impor... |
/* eslint-disable */
// @ts-ignore
import * as resample from 'ndarray-resample';
// @ts-ignore
import * as ndarray from 'ndarray';
/* eslint-enable */
//import {log} from './index';
const FFT = require('fft.js');
// Safari Webkit only supports 44.1kHz audio.
const WEBKIT_SAMPLE_RATE = 44100;
const SAMPLE_RATE = 22050... |
<reponame>KhafraDev/SynergismOfficial
import { player, format } from './Synergism';
import { Globals as G } from './Variables';
import { CalcECC } from './Challenges';
import { calculateRuneLevels } from './Calculate';
import { achievementaward } from './Achievements';
import { DOMCacheGetOrSet } from './Cache/DOM';
c... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------... |
<filename>nativescript-core/ui/styling/style-scope.ts
import { Keyframes } from "../animation/keyframe-animation";
import { ViewBase } from "../core/view-base";
import { View } from "../core/view";
import { unsetValue, _evaluateCssVariableExpression, _evaluateCssCalcExpression, isCssVariable, isCssVariableExpression, i... |
export enum ManipulationModes {
None = 0,
TranslateX = 1,
TranslateY = 2,
TranslateRailsX = 4,
TranslateRailsY = 8,
Rotate = 16,
Scale = 32,
TranslateInertia = 64,
RotateInertia = 128,
ScaleInertia = 256,
All = 65535,
System = 65536,
}
export enum Visibility {
Visible = 0,
... |
<filename>src/extension.ts
"use strict";
import * as path from "path";
import { ChildProcessPromise } from "promisify-child-process";
import {
workspace,
ExtensionContext,
window,
env,
commands,
CodeLensProvider,
EventEmitter,
StatusBarAlignment,
ProgressLocation,
IndentAction,
languages,
Webvi... |
<reponame>nghinv990/react-native-material-kit
/**
* react-native-material-kit, the toolkit introducing {@link https://material.io/design/introduction/ | Material Design} to {@link https://facebook.github.io/react-native/ | React Native}.
*
* Author: ywu on 15/6/1.
* @packageDocumentation
*/
import { Compon... |
<filename>app-src/projects/reduce-store/src/lib/storage.ts
import { Observable, Subscriber, Subscription } from 'rxjs';
import { finalize } from 'rxjs/operators';
import { DeferredGetter, DeferredReducer, StateSubscriber } from './private-classes';
import { StateData } from "./StateData";
import { IConstructor, IState... |
import range from "lodash-es/range";
import flatten from "lodash-es/flatten";
import { g, helpers, random } from "../../../worker/util";
// import newScheduleCrappy from "./newScheduleCrappy";
import { groupByUnique } from "../../../common/groupBy";
import orderBy from "lodash-es/orderBy";
import type { Div, GameAttrib... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>libs/platform/src/lib/components/approval-flow/approval-flow.component.ts<gh_stars>0
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
OnDestroy,
OnInit,
Optional,
Output,
QueryList,
TemplateRef,
ViewChild,
... |
// https://www.w3.org/TR/css-syntax-3
import {fromCodePoint, toCodePoints} from 'css-line-break';
export enum TokenType {
STRING_TOKEN,
BAD_STRING_TOKEN,
LEFT_PARENTHESIS_TOKEN,
RIGHT_PARENTHESIS_TOKEN,
COMMA_TOKEN,
HASH_TOKEN,
DELIM_TOKEN,
AT_KEYWORD_TOKEN,
PREFIX_MATCH_TOKEN,
... |
import React, { FunctionComponent, SVGAttributes } from 'react';
import classNames from 'classnames';
import { CommonProps, keysOf } from '../common';
import addDataApp from './assets/app_add_data.svg';
import advancedSettingsApp from './assets/app_advanced_settings.svg';
import alert from './assets/alert.svg';
impor... |
import { Q } from '@nozbe/watermelondb';
import React from 'react';
import { FlatList } from 'react-native';
import { connect } from 'react-redux';
import { Observable, Subscription } from 'rxjs';
import { themes } from '../../constants/colors';
import { withActionSheet } from '../../containers/ActionSheet';
import Ac... |
<gh_stars>1-10
// #!/usr/bin/env babel-node
// -*- coding: utf-8 -*-
/** @module pluginAPI */
'use strict'
/* !
region header
Copyright <NAME> (info["~at~"]torben.website) 16.12.2012
License
-------
This library written by <NAME> stand under a creative commons
naming 3.0 unported license.
... |
<filename>src/Core/OrientedBoundingBox.ts
import { Cartesian2 } from './Cartesian2';
import { Cartesian3 } from './Cartesian3';
import { Cartographic } from './Cartographic';
import { CesiumMath } from './CesiumMath';
import { CesiumMatrix3, CesiumMatrix3 as Matrix3 } from './CesiumMatrix3';
import { Check } from './Ch... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/// <reference path="../DefinitelyTyped/react/react-global.d.ts" />
// Fixture taken from https://github.com/RyanCavanaugh/koany/blob/master/koany.tsx
interface Garden {
colors: Gardens.RockColor[];
shapes: Gardens.RockShape[];
}
namespace Gardens {
export enum RockShape {
Empty,
Circle,
Triangle,
Square,... |
<gh_stars>0
import { SlickPluginList } from '../enums/index';
import { CompositeEditorOption } from './compositeEditorOption.interface';
import {
Column,
ColumnSort,
DragRowMove,
Editor,
EditorValidationResult,
ElementPosition,
FormatterResultObject,
GridOption,
MultiColumnSort,
PagingInfo,
Single... |
<gh_stars>0
import {AssetTable} from './asset_table';
import {create_task, monitor_add_callback} from './monitor';
import {
dt_edit_drawcallback,
format_asset_title_for_ui,
reload_table_currency_val_if_existing,
showError,
showInfo,
suggest_element_until_click,
unsuggest_element
} from './ut... |
<reponame>miyuyu11/cactbot
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../t... |
<reponame>zys-contrib/devtools-frontend
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above co... |
<filename>src/main/resources/public/ts/MenuPanel.ts<gh_stars>1-10
import { useSelector } from "react-redux";
import { appState, store } from "./AppRedux";
import { AppState } from "./AppState";
import { Constants as C } from "./Constants";
import { AddFriendDlg } from "./dlg/AddFriendDlg";
import { ConfirmDlg } from ".... |
<filename>build/helpers/normalize.ts
import { BonusKey } from '../../dist/index.js'
import type { EffectVariables } from '../../dist/index.js'
export const BASE_UNIT_API_NAMES = ['TFT_TrainingDummy', 'TFT_VoidSpawn']
// Traits/Items
const CONSUMABLE_ITEM_IDS = [
200, // Neeko's Help
]
const ALTERNATE_ITEM_VERSION_... |
// package: toit.model
// file: toit/model/job.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
import * as toit_model_pubsub_topic_pb ... |
<filename>src/api/userprofile/service/user-leave-entitlement.service.ts
import { Injectable } from '@nestjs/common';
import { UserLeaveEntitlementDbService } from '../db/user-leave-entitlement.db.service';
import { UserLeaveEntitlementSummaryDbService } from '../db/user-leave-summary.db.service';
import { AssignLeavePo... |
/*
* Copyright (C) 2017 TypeFox and others.
*
* 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
*/
import { injectable, inject, postConstruct } from... |
<filename>src/git/parsers/logParser.ts<gh_stars>1-10
import { Range } from 'vscode';
import type { Container } from '../../container';
import { filterMap } from '../../system/array';
import { debug } from '../../system/decorators/log';
import { normalizePath, relative } from '../../system/path';
import { getLines } fro... |
import { CliInterface } from "../services/CliService";
import SyncPush, { LocalOptions, SyncPushInterface } from "./SyncPush";
import * as upath from "upath";
import * as path from 'path';
import { mkdir, readdirSync, statSync, unlink } from 'fs';
import _, { debounce } from 'lodash';
import { MasterDataInterface } fro... |
<filename>packages/protocol/blockchain_scripts/deployHelpers/index.ts
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../../node_modules/hardhat-deploy/src/type-extensions.ts" />
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../../n... |
import * as Argon from '@argonjs/argon';
import * as vuforia from 'nativescript-vuforia';
import * as http from 'http';
import * as file from 'file-system';
import * as platform from 'platform';
import {AbsoluteLayout} from 'ui/layouts/absolute-layout';
import * as util from './util'
import * as minimatch from 'minima... |
<reponame>mohanad1213/tellma<filename>Tellma.Api.Web/ClientApp/src/app/data/util.ts
import { EntitiesResponse } from './dto/entities-response';
import { WorkspaceService, TenantWorkspace } from './workspace.service';
import { GetByIdResponse } from './dto/get-by-id-response';
import { EntityWithKey } from './entities/b... |
import * as config from 'config';
import { isEmpty } from 'lodash';
import * as channelSegmentMockBackend from './channel-segment-mock-backend';
import * as waveformMockBackend from '../waveform/waveform-mock-backend';
import { gatewayLogger as logger } from '../log/gateway-logger';
import { HttpClientWrapper } from '.... |
/**
* Copyright (c) 2019-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 rights to
* use, copy, modify, merge, publ... |
import gunInfo from "@static/stc/GunInfo.json"
import gunTypeInfo from "@static/stc/catchdata/gun_type_info.json"
import gameConfigInfo from "@static/stc/catchdata/game_config_info.json"
import gunExpInfo from "@static/stc/catchdata/gun_exp_info.json"
import {Rarity} from "@app/model/Rarity";
import path from "path";
i... |
import axios from 'axios'
// Tried using crypto.randomUUID() but browserify like 10x's the build
// size to do it.
import { v4 as uuid } from 'uuid'
import * as t from './types.d'
import * as Mes from './Message.d'
import { debugFactory, exhaustive, getIpFromRTCSDP } from './util'
import { Repeater } from './Repeater... |
<gh_stars>0
import {
monorepoName,
getMonorepoRoot,
createLogger,
getLogLevel
} from '@design-systems/cli-utils';
import { Plugin } from '@design-systems/plugin';
import { execSync, ExecSyncOptions } from 'child_process';
import path from 'path';
import os from 'os';
import chunk from 'lodash.chunk';
import fs ... |
<gh_stars>0
export * from './ActionStatusType';
export * from './BedType';
export * from './BodyMeasurementTypeEnumeration';
export * from './CssSelectorType';
export * from './DataType';
export * from './DriveWheelConfigurationValue';
export * from './DrugCostCategory';
export * from './DrugPregnancyCategory';
export ... |
import { clamp } from "engine/core/math/math_funcs";
import { CMP_EPSILON } from "engine/core/math/math_defs";
import { Vector2 } from "engine/core/math/vector2";
import { Transform2D } from "engine/core/math/transform_2d";
import { BodyMode, CCDMode } from "engine/scene/2d/const";
import { CollisionSolver2DSW } from... |
import { AriaAttributes, SVGProps, SyntheticEvent, ClipboardEvent, CompositionEvent, DragEvent, FocusEvent, FormEvent, KeyboardEvent, MouseEvent, TouchEvent, PointerEvent, UIEvent, WheelEvent, AnimationEvent, TransitionEvent, ReactNode, Component, FunctionComponent, ReactElement } from 'react';
import { ScaleContinuous... |
import Long, { fromString } from "long";
import { addMarker, attachContextMenu, deleteMarker, drawAllMarkers, Marker } from "./marker";
import { SlimeChunkHandler } from "./slimeChunk";
export interface Vector2D {
x: number;
z: number;
}
export interface AABB {
x1: number;
z1: number;
x2: number;
... |
import path = require("path");
import tl = require("azure-pipelines-task-lib/task");
import fs = require("fs");
import util = require("util");
import env = require("./Environment");
import deployAzureRG = require("../models/DeployAzureRG");
import armResource = require("azure-pipelines-tasks-azure-arm-rest-v2/azure-ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.