text stringlengths 3.08k 15.5k |
|---|
import './TraceGraph.css';
import { Affix, Card, Col, Row, Space } from 'antd';
import * as d3 from 'd3';
import { flamegraph } from 'd3-flame-graph';
import * as d3Tip from 'd3-tip';
import { isEmpty, sortBy } from 'lodash-es';
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';... |
import React, { useState } from 'react';
import { CSSGrid, enterExitStyle } from 'react-stonecutter';
import styled from 'styled-components';
import { Button, Grow } from '@material-ui/core';
import { Theme, createStyles, makeStyles, useTheme } from '@material-ui/core/styles';
import { Molecule, useMolecules } from ... |
import { app, BrowserWindow, dialog, ipcMain, screen } from 'electron';
import * as path from 'path';
import * as fs from 'fs';
import * as url from 'url';
import { IpcService } from './ipc/ipc.service';
import { XplaneService } from './x-plane/x-plane.service';
import { IPC_EVENTS } from './ipc/ipc-events.enum';
impor... |
<reponame>youwol/kepler
import { DataFrame, Manager, Serie } from "@youwol/dataframe"
import {
Box3, BufferAttribute, BufferGeometry, CircleBufferGeometry,
Color, DoubleSide, Float32BufferAttribute, Material, Matrix4, Mesh, MeshStandardMaterial,
PlaneBufferGeometry, Quaternion, Vector3
} from "three"
impo... |
<filename>core/src/preload.ts
/* ***** BEGIN LICENSE BLOCK *****
Copyright (c) 2021-2021 Famibee (famibee.blog38.fc2.com)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
** ***** END LICENSE BLOCK ***** */
const {contextBridge, ipcRenderer} = require('electron');
imp... |
// Copyright 2020 <NAME>
// SPDX-License-Identifier: Apache-2.0
// (Re-)generated by schema tool
// >>>> DO NOT CHANGE THIS FILE! <<<<
// Change the json schema instead
import * as wasmtypes from "wasmlib/wasmtypes";
export const ScName = "testwasmlib";
export const ScDescription = "Exercise several aspects o... |
import React, { FunctionComponent, useState } from "react"
import {
ScrollView,
Alert,
TouchableOpacity,
StyleSheet,
View,
} from "react-native"
import { SvgXml } from "react-native-svg"
import { useTranslation } from "react-i18next"
import { useNavigation } from "@react-navigation/native"
import { useSafeAre... |
import { Observable, combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
import { assert } from '@polkadot/util';
import { FixedPointNumber, forceToCurrencyId, MaybeCurrency, Token } from '@acala-network/sdk-core';
import { CurrencyId, Position } from '@acala-network/types/interfaces';
import { DerivedLo... |
<filename>src/core/utils.ts
import { formatDateTime } from '@waldur/core/dateUtils';
import { ENV } from '@waldur/core/services';
export const FILESIZE_UNITS = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
export const formatFilesize = (
input,
fromUnit = 'MB',
toUnit = 'B',
customSuffix = '',
) => {
if (isNaN(parse... |
declare const require: (module: string) => any;
declare var global: any;
declare namespace NodeJS {
interface Global {
age?: number;
_cache: IGlobalCache;
__VERSION__: string;
Overmind: IOvermind;
Assimilator: IAssimilator;
print(...args: any[]): string;
deref(ref: string): RoomObject | null;
... |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
EventEmitter,
forwardRef,
HostBinding,
Input,
Output,
ViewChildren,
QueryList,
ContentChildren,
SimpleChanges,
Optional,
Inject,
OnDestroy,
OnChanges,
AfterViewInit,
AfterContentInit,
HostListener,
Injector
} from '@... |
// This is a file that was run only once to create the JSON data for the database.
// As such it is only included here for transparancy reasons and is not implemented
// in any other part of the code. There is only one image of a cat included to reduce
// bandwidth when cloning this repo. These were generated using thi... |
import { AxiosResponse, AxiosError } from 'axios';
// BigParser Types
export declare type DataType =
| 'STRING'
| 'NUMBER'
| 'DATE'
| 'DATE_TIME'
| 'BOOLEAN';
export declare type JoinOperator = 'OR' | 'AND';
export declare type GlobalFilterOperator = 'LIKE' | 'NLIKE' | 'EQ' | 'NEQ';
export declare type Fu... |
<filename>base/entity.ts<gh_stars>10-100
/// <reference path="utils.ts" />
/// <reference path="geom.ts" />
/// <reference path="task.ts" />
/// <reference path="sprite.ts" />
/// <reference path="tilemap.ts" />
// limitMotion: returns a motion vector that satisfies the given constraints.
function limitMotion(
co... |
import React, { useCallback, useEffect, useState } from 'react'
import { PageTitle } from '../../../components/PageTitle'
import { RepositoriesResult, SiteAdminRepositoryFields } from '../../../graphql-operations'
import { TelemetryProps } from '../../../../../shared/src/telemetry/telemetryService'
import {
Filtere... |
import { Mongo } from 'meteor/mongo'
import * as _ from 'underscore'
import { Time, applyClassToDocument, getCurrentTime, registerCollection } from '../lib'
import { Segments, DBSegment, Segment } from './Segments'
import { SegmentLines, SegmentLine } from './SegmentLines'
import {
IMOSExternalMetaData,
IMOSObjectSta... |
/*
* Enums
*/
export enum VERIFICATION_TYPES {
VOI = 'employment-income',
VOE = 'employment',
}
export enum VERIFICATION_USE_CASES {
MORTGAGE = 'mortgage',
BACKGROUND = 'background',
TENANT = 'tenant',
GOVERNMENT = 'government',
AUTO = 'auto',
CREDIT = 'credit',
IDENTITY = 'identity',
INSURANCE = ... |
import React from 'react';
import classnames from 'classnames';
import TabScroller from '@material/react-tab-scroller';
import Tab, {TabProps} from '@material/react-tab'; // eslint-disable-line no-unused-vars
import {MDCTabBarFoundation} from '@material/tab-bar/foundation';
import {MDCTabBarAdapter} from '@material/tab... |
<gh_stars>100-1000
import type { Ref } from 'vue';
import { computed, reactive, ref, unref, watchEffect } from 'vue';
import { useLocalization } from '/@/hooks/abp/useLocalization';
import { useValidation, ValidationEnum } from '/@/hooks/abp/useValidation';
import { HostAndPort, HttpMethods } from '/@/api/api-gateway/... |
<reponame>mynameisstephen/typescript-cucumber
import DataTable from './data-table';
import { Annotation } from './parser';
import Reporter, { ReportElement } from './reporter';
export interface TestContext {
name: string;
annotations: Annotation[];
meta: { [key: string]: any };
}
export interface FeatureContext... |
<filename>packages/libs/datastore/src/data-store/data-handle.ts
import { promises as fs } from "fs";
import { parseYAMLAst, YamlNode, parseYAMLFast } from "@azure-tools/yaml";
import { MappedPosition, Position } from "source-map";
import { JsonPath } from "../json-path/json-path";
import { getLineIndices } from "../par... |
import {BindGroupInfo, WGSL} from "./WGSL";
import {ShaderMacroCollection} from "../shader/ShaderMacroCollection";
import {
WGSLBeginMobileFrag,
WGSLBeginNormalVert,
WGSLBeginPositionVert,
WGSLBeginViewDirFrag,
WGSLBlendShapeInput,
WGSLBlendShapeVert,
WGSLColorShare,
WGSLColorVert,
W... |
import { EventEmitter } from 'events';
import ReconnectingWebSocket from 'reconnecting-websocket';
import axios, { AxiosPromise, AxiosResponse } from 'axios';
import { SigningStargateClient } from '@cosmjs/stargate';
import { OfflineDirectSigner, Registry } from '@cosmjs/proto-signing';
import SpClientError from './err... |
/**
* Copyright (c) <NAME> 2018 - present
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { spawn } from 'child_process';
import exec from '../exec';
import delay from '../delay';
import log from '../log';
import emulatorCmd from '... |
<filename>cocos/core/renderer/scene/directional-light.ts
/*
Copyright (c) 2020 <NAME> Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignab... |
/*
* Inspired by paulirish/lite-youtube-embed
* https://github.com/paulirish/lite-youtube-embed
*/
import * as React from 'react'
import clsx from 'clsx'
import styled from '@emotion/styled'
import usePrefetch from '~/lib/use-prefetch'
const LiteYouTubeWrapper = styled('div')`
display: block;
position: relativ... |
<filename>buildAddValidatorTx.ts
import {
Avalanche,
BinTools,
BN,
Buffer
} from "avalanche"
import {
AVMAPI,
KeyChain as AVMKeyChain,
SECPTransferOutput,
} from "avalanche/dist/apis/avm"
import {
PlatformVMAPI,
KeyChain as PlatformKeyChain,
Tx,
UnsignedTx,
UTXO,
UTXOSet,
StakeableLockOut... |
<filename>src/pages/Dashboard/BlockMyWallets/style.ts
import styled from 'styled-components';
const themeColor = {
dashboardTextTitleBlak: '#FFFFFF',
dashboardTextTitleLight: '#4F5159',
dashboardPointBtnBlak: '#FFFFFF',
dashboardPointBtnLight: '#000',
dashboardBackBlockBlak: '#1E1F23',
dashboardBackBlockLi... |
require('dotenv').config();
import express from 'express';
import EWSHelper from './helpers/ews_helper';
import { EWSEvent } from './model';
const ewsHelper = new EWSHelper();
const hbs = require('hbs');
const i18n = require("i18n");
i18n.configure({
locales:['et', 'en', 'ru'],
directory: './locales',
de... |
import * as PIXI from 'pixi.js';
import gsap, { Power0 } from 'gsap';
import PixiPlugin from 'gsap/PixiPlugin';
import jrvascii from './util/jrvascii';
import { browserVisibility } from './util/browserVisibility';
import { shuffleArray } from './util/shuffleArray';
import initPIXI, { PixiConfig } from './pixi';
impor... |
<reponame>Gohagga/TheExiledOnes
import { Log } from "Log";
import { IEnumUnitService } from "services/enum-service/IEnumUnitService";
import { Effect, Point, TextTag, Timer, Unit } from "w3ts/index";
export interface Forge {
temperature: number,
timer: Timer,
level: number,
tag: TextTag,
isRaiseOn:... |
import { Component, Injectable, Input, Output, EventEmitter, forwardRef, ViewChild, OnChanges, SimpleChanges, HostBinding, OnInit, Optional, ɵlooseIdentical as looseIdentical } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormControl, RequiredValidator } from '@angular/forms';
... |
<filename>lib/errors/validation-error.ts
import type { Model } from '../../types/lib/model';
import type { ErrorOptions } from './base-error';
import BaseError from './base-error';
/**
* An enum that is used internally by the `ValidationErrorItem` class
* that maps current `type` strings (as given to ValidationError... |
import {
AfterViewInit,
ChangeDetectorRef,
Component,
ElementRef,
NgZone,
OnDestroy,
OnInit,
ViewChild,
} from '@angular/core'
import {DataStore} from '../data/data-store'
import {BehaviorSubject, Subscription} from 'rxjs'
import {MatDialog} from '@angular/material/dialog'
import {isConstantQuotaRule, Q... |
<filename>elements/pfe-readtime/pfe-readtime.ts
import type { PropertyValues } from 'lit';
import { LitElement, html } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';
import { bound, initializer, observed, pfelement } from '@patternfly/pfe-core/decorators.js';
import style from './pfe... |
import { Stack } from "../src/Stack";
import { Visitor } from "../src/Visitor";
import { Node } from "../src/Node";
import { Token } from "../src/Token";
import { TestHarness } from "./TestHarness";
const expressionGrammar = () => {
return `
NUMBER_LITERAL = "\\d+";
PLUS_OP = "\\+";
MINUS_OP = "\\... |
/**
* @license
* Verifalia - Email list cleaning and real-time email verification service
* https://verifalia.com/
* <EMAIL>
*
* Copyright (c) 2005-2021 Cobisi Research
*
* Cobisi Research
* <NAME>, 31
* 35010 Vigonza
* Italy - European Union
*
* Permission is hereby granted, free of charge, to any person ... |
interface BINDING {
bindings_lazy_init(): void;
assembly_load(name: string): number;
call_method(method: number, thisArg: number | null, signature: any, args?: any[]): any;
call_static_method(fqn: string, args?: any[]): any;
find_class(assemblyHandle: number, namespace: string, name: string): n... |
import { InputStream } from "../core/InputStream";
import { isEof, isIdContinuation, isWs, Token, TokenType } from "../core/tokens";
/**
* This class implements the tokenizer (lexer) of WA# preprocessor expresion handler
*/
export class PreprocessorExpressionLexer {
// --- Already fetched tokens
private _ahead: ... |
<filename>src/app/pages/tables/smart-table/smart-table.component.ts
import {
Component,
OnInit,
Renderer2,
ElementRef,
ChangeDetectorRef,
Input,
Output,
EventEmitter,
} from "@angular/core";
import { LocalDataSource, ViewCell } from "ng2-smart-table";
import { HttpHeaders, HttpClient } from "@angular/co... |
import { Arr, Obj } from '@ephox/katamari';
import { Attribute, Insert, Remove, Replication, Selectors, SugarElement } from '@ephox/sugar';
import * as DetailsList from '../model/DetailsList';
import * as ColumnSizes from '../resize/ColumnSizes';
import * as LayerSelector from '../util/LayerSelector';
import { LOCKED_... |
<gh_stars>1-10
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { assert } from "@here/harp-utils";
import { CallExpr, LookupExpr, ObjectLiteralExpr, Value } from "../Expr";
import { ExprEvaluatorContext, Operato... |
import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material';
import { MatDialog, MatDialogRef } from '@angular/material';
import { DialogLogsComponent } from '../shared/dialog-logs/dialog-logs.component';
import { IndexService } from '../../shared/services/index';
import { ... |
import { useSearch } from '../hooks'
import { Resource, Id, resourceLookup, capitalizeFirstLetter } from '../../utils'
import { useMemo, useState } from 'react'
import styled from 'styled-components'
import { ResourceCard } from './ResourceCard'
import { PageTitle, width, smallerThan, largerThan, colours, fontInter } f... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
import * as cp from 'child_process';
import { log, localize, extendObject } from './utilities';
import * as net from 'net'... |
<reponame>italia/spid-cie-oidc-nodejs<filename>relying-party/src/createEntityConfiguration.ts
import { Configuration } from "./configuration";
import { createJWS, makeExp, makeIat } from "./utils";
import * as jose from "jose";
export async function createEntityConfiguration(configuration: Configuration) {
const iat... |
<filename>src/rot/noise/simplex.ts
/**!
* Copyright (c) 2012-now(), <NAME>
* 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 cop... |
import { Given, When, Then } from '@cucumber/cucumber';
import { browser, by, By, element, ExpectedConditions, WebDriver, WebElement, WebElementPromise, ElementArrayFinder } from 'protractor';
import { schemePage } from '../pageObjects/schemePO';
import chai from 'chai';
import { schemeCategory } from '../pageObjects/s... |
import type { JSX } from "../jsx";
export declare type Accessor<T> = () => T;
export declare const equalFn: <T>(a: T, b: T) => boolean;
export declare var Owner: Owner | null;
export declare var Listener: Computation<any> | null;
declare global {
var _$afterUpdate: () => void;
}
interface Signal<T> {
value?: T;... |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import styled, { css, ThemeProps, DefaultTheme } from 'styled-components';
import { math } from 'polished';
import { getColor, retrieveComponentStyl... |
/*
* Copyright 2018 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 in w... |
import SheetBasic from 'core/SheetBasic';
import { getCell } from './cell';
import { EmptyCell } from 'consts';
import { getColSize, colAdvanceByPixel } from './col';
import { getRowSize, rowAdvanceByPixel } from './row';
import { distanceOfCellToCanvasOrigin } from './distance';
import Viewport from 'core/Viewport';
i... |
<reponame>typescene/typescene
import {
ActionEvent,
ComponentEvent,
ComponentEventHandler,
managed,
ManagedEvent,
ManagedObject,
shadowObservable,
observe,
} from "../../core";
import { UICell } from "../containers/UICell";
import { UIComponentEvent, UIRenderableConstructor } from "../UIComponent";
impo... |
// Imports:
import { initResponse, query, addNativeToken, addNativeDebtToken, addToken, addLPToken } from '../../terra-functions';
import type { Request } from 'express';
import type { DebtToken, LPToken, NativeToken, TerraAddress, Token } from 'cookietrack-types';
// Initializations:
const project = 'anchor';
const ... |
import * as React from 'react';
import { Switch, Route } from 'react-router';
import routes, { GetRouteParams } from 'shared/routes';
import * as B from 'shared/models/Versioning/BuildCommitTree';
import * as CommitComponentLocation from 'shared/models/Versioning/CommitComponentLocation';
import {
CommitTag,
Commi... |
import webpack, {
Configuration,
Compiler,
MultiStats,
Stats,
StatsCompilation,
} from "webpack";
import { default as webpackHotServerMiddleware } from "@hedgepigdaniel/webpack-hot-server-middleware";
import { createFsFromVolume, Volume } from "memfs";
import path from "path";
import { merge } from "webpack-m... |
/*
* Copyright © 2021 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/* eslint-disable no-prototype-builtins */
import forge from 'node-forge';
import fs from 'node:fs';
import path from 'node:path';
import { env } from 'node:process';
type ROOTca = {
certificate: string,
privateKey: string,
validity: {
notBefore: Date,
notAfter: Date,
}
}
const makeNumberPos... |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
import semver from 'semver';
import chalk from 'chalk';
import fsx from 'fs-extra';
import path from 'path';
import BaseGenerator from './base-generator.class';
import spinner from '../utils/spinner';
import { getPrivateKeyPath, getProjectConfigJson, modifyJsonFile, setPackageJsonScript } from '../utils/helper';
impo... |
import { ethers } from "ethers";
import { getAddresses } from "../../constants";
import { StakingContract, MemoTokenContract, TimeTokenContract } from "../../abi";
import { setAll, getMarketPrice, getTokenPrice, getPairPrice, getProbondMarketPrice } from "../../helpers";
import { createSlice, createSelector, createAsyn... |
<filename>packages/nodes-base/nodes/Splunk/GenericFunctions.ts
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
ILoadOptionsFunctions,
NodeApiError,
} from 'n8n-workflow';
import {
OptionsWithUri,
} from 'request';
import {
parseString,
} from 'xml2js';
import {
SplunkCredentials,
Splunk... |
import isString from 'tui-code-snippet/type/isString';
import addClass from 'tui-code-snippet/domUtil/addClass';
import removeClass from 'tui-code-snippet/domUtil/removeClass';
import {
PopupInfo,
PopupOptions,
Pos,
ToolbarButtonInfo,
ToolbarGroupInfo,
ToolbarItem,
ToolbarItemInfo,
ToolbarItemOptions,
... |
<reponame>JunilHwang/black-coffee-study-lv3<gh_stars>1-10
import {Component} from "@/_core";
import {colorOptions} from "@/constants";
import {LineResponse, LineRequest, StationResponse} from "subway-domain";
import {parseFormData, selectOne} from "@/utils";
interface LineEditModalState {
visible: boolean;
formDat... |
<filename>packages/qgrid-core/src/model/model.d.ts
import { ActionState } from '../action/action.state';
import { AnimationState } from '../animation/animation.state';
import { BodyState } from '../body/body.state';
import { ClipboardState } from '../clipboard/clipboard.state';
import { ColumnListState } from '../colum... |
import React from 'react';
import { render, act } from '@testing-library/react';
import CashFlowChart from './CashFlowChart';
import { axe, toHaveNoViolations } from "jest-axe";
import axios from 'axios';
expect.extend(toHaveNoViolations);
const mockJson = {
data: {
"symbol": "IBM",
"annualReports": [
... |
<filename>src/parser/expression.ts
import { Token, Tokenizer } from "./lexical_analysis.ts";
import { Parser, satisfy } from "./syntactic_analysis.ts";
/**
* @name Parsing mathematical expressions
* @id parser / expression
* @type module
* @example parser_expressions.ts
*
* @introduction
* A **mathematical exp... |
<reponame>ddhmit/parking-control-admin<filename>src/utils/request.ts
/**
* request 网络请求工具
* 更详细的 api 文档: https://github.com/umijs/umi-request
*/
import { getDvaApp } from 'umi';
import { extend, ResponseError } from 'umi-request';
import { notification, Modal } from 'antd';
import appUrl from '@/config/appUrl';
imp... |
import Head from "next/head";
import { useContext, useState } from "react";
// import Checkbox from "@material-ui/core/Checkbox";
import withoutSession from "@hoc/withoutSession";
import { AuthenticationTemplate } from "@ui/template/authenticationDark";
import { css } from "@emotion/core";
import { COLORS, ThemeContex... |
/*
* Copyright (c) Microsoft
* All rights reserved.
* MIT License
*
* 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 u... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import Map from '@components/Map';
import RenderError from '@components/RenderError';
import RenderLatLng from '@components/RenderLatLng';
import {
LOCATION_SETTINGS,
ASPECT_RATIO,
DISTANCE_TO_CHECKOUT,
LOCATION_TO_REACH,
P1_LOCATION,
} from '@constants/Geoloc... |
import { Directory } from '@angular-console/schema';
import {
CommandRunner,
IncrementalCommandOutput,
CommandStatus,
Serializer
} from '@angular-console/utils';
import {
Component,
ElementRef,
ViewChild,
ViewEncapsulation,
ChangeDetectionStrategy
} from '@angular/core';
import {
AbstractControl,
... |
<reponame>VPanjeta/firebase-admin-node
/*!
* Copyright 2018 Google 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 re... |
<reponame>NoFishLikeIan/umbrella<filename>packages/dsp/src/osc.ts
import { Fn } from "@thi.ng/api";
import {
fract,
HALF_PI,
mix as _mix,
TAU,
wrap01
} from "@thi.ng/math";
import { StatelessOscillator } from "./api";
export class Oscillator implements Iterable<number> {
osc: StatelessOscillato... |
<filename>my-lib/yandex.ts
// TODO: usare il URL.SearchParam
import querystring from 'querystring'
import axios from 'axios'
import { get, first, replace, join } from 'lodash'
import md5 from 'md5'
import consola from 'consola'
import { Translation } from '../database/schema'
import { TranslationInterface } from '../d... |
import express from 'express';
import gravatar from 'gravatar';
import bcrypt from 'bcryptjs';
import jwt from 'jsonwebtoken';
import passport from 'passport';
import { check, validationResult } from 'express-validator';
import keys from '../../config/keys';
import activationMailer from '../../middleware/mailer';
impor... |
import * as vscode from 'vscode';
import * as path from 'path';
import * as https from 'https';
export class maxPlus implements vscode.TreeDataProvider<Dependency>{
//默认事件
private _onDidChangeTreeData: vscode.EventEmitter<Dependency | undefined> = new vscode.EventEmitter<Dependency | undefined>();
readonly onDidCha... |
<reponame>project-nodalis/nodalis<gh_stars>0
import { GraphQLFieldResolver } from 'graphql';
import { AbstractTypeResolver, AllInputTypes, FieldResolver, GetGen, GetGen3, HasGen3, NeedsResolver } from '../typegenTypeHelpers';
import { ArgsRecord } from './args';
import { AllEngramInputTypeDefs, AllEngramOutputTypeDefs ... |
import * as React from 'react';
import { IArchiveFilter, isFilterValid, keysOfIPostElementType, IArchiveFilterRange, IArchiveFilterPreset, IArchiveFilterSort, IPostElementType, IArchiveFilterModifier, isFilterExactlyEqual, filterPresets } from 'oftheday-shared';
import { EmphasizedSpan, fontDeclarations, lineHeights } ... |
<reponame>ILW8/rewind
import { BrowserWindow, dialog, Menu, screen, shell } from "electron";
import { join } from "path";
import { format } from "url";
import { RewindElectronSettings } from "./config";
const DEFAULT_WIDTH = 1600;
const DEFAULT_HEIGHT = 900;
const MIN_WIDTH = 1024;
const MIN_HEIGHT = 600;
const rende... |
import * as inflection from "inflection";
import {
ConnectorError,
DataSourceOperation,
DataSourceRequest,
HTTPRequest,
HTTPResponse,
ResourceCollectionResponse,
ResourceResponse,
} from "../../connectors/Connector";
import {
GraphQLArgumentMap,
GraphQLField,
GraphQLQuery,
SortInfoValue,
} from "... |
import {
AnimationAction,
AnimationClip,
AnimationMixer,
Euler,
Quaternion,
QuaternionKeyframeTrack,
Vector3,
VectorKeyframeTrack
} from "three"
interface Animator {
playerMixers: AnimationMixer[]
playerActions: AnimationAction[]
playerClips: AnimationClip[]
ballMixer: A... |
import { Position } from '@reach/popover'
import { TooltipPopup as ReachTooltipPopup, useTooltip } from '@reach/tooltip'
import VisuallyHidden from '@reach/visually-hidden'
import { NotificationInfo } from '@repay/cactus-icons'
import { border, CactusTheme, color, colorStyle, radius, shadow } from '@repay/cactus-theme'... |
import { OrganizationAccount } from "@takomo/aws-model"
import { ConfigSetType, ExecutionPlan } from "@takomo/config-sets"
import { ConfirmResult } from "@takomo/core"
import {
AccountsOperationIO,
AccountsOperationOutput,
} from "@takomo/organization-commands"
import { DeployStacksIO, UndeployStacksIO } from "@tak... |
<reponame>datalayer-externals/hpcc-visualization<filename>packages/form/src/OnOff.ts
import { IInput } from "@hpcc-js/api";
import { HTMLWidget } from "@hpcc-js/common";
import "../src/OnOff.css";
export class OnOff extends HTMLWidget {
_inputElement = [];
_input;
constructor() {
super();
... |
import { SyntheticEvent, useState, useEffect } from 'react';
import TextInput from '@weco/common/views/components/TextInput/TextInput';
import CheckboxRadio from '@weco/common/views/components/CheckboxRadio/CheckboxRadio';
import { font, classNames } from '@weco/common/utils/classnames';
import Space from '@weco/common... |
<filename>src/markdown/md-block-rule/begin-tabular/tabular-td.ts
import { TAttrs, TTokenTabular } from './index';
import {TDecimal} from "./common";
type TLines = {left?: string, right?: string, bottom?: string, top?: string};
type TAligns = {h?: string, v?: string, w?: string};
const verticalCellLine = (line: string... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Link } from 'react-router-dom'
import * as React from 'react'
import routesConfig from './config/routesConfig'
import logoHeaderConfig from './config/logoHeaderConfig'
import Dialog from '@material-ui/core/Dialog'
import Dropdown from 'react-bootstrap/Dropdown'
import { SynapseComponents, SynapseConstants } fr... |
import axios from 'axios';
import _ from 'lodash';
import {
MetaDataObject,
APIFieldMappingObject,
ObjectWithStringKeyAndArrayValues,
DBIdsObject,
BioThingsAPIQueryResponse,
IndividualResolverOutput,
GrpedBioThingsAPIQueryResponse,
} from './common/types';
import { APIMETA, TIMEOUT, MAX_BIOTHINGS_INPUT_S... |
<gh_stars>1-10
import {
AfterContentInit,
Component,
ContentChildren,
Directive,
Input,
OnChanges,
OnDestroy,
QueryList,
SimpleChanges,
ViewContainerRef,
HostBinding,
Output,
EventEmitter,
ContentChild,
TemplateRef,
ChangeDetectionStrategy,
} from '@angular/core';
import { Subject, Subsc... |
<gh_stars>0
export enum Currency {
USD = '840',
MXN = '484',
}
export enum Events {
DEVICES = 'bluetooth_devices',
CONNECTION = 'connection',
ERROR = 'error',
TRADE = 'trade',
}
export enum Mode {
BLUETOOTH = 'BLUETOOTH',
BLE = 'BLUETOOTH',
AUDIO = 'AUDIO',
USB = 'USB',
}
export enum TransactionT... |
/*
* 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 ... |
import { promises as fs } from "fs";
import * as path from "path";
import * as process from "process";
import * as semver from "semver";
import * as io from "@actions/io";
import * as core from "@actions/core";
import * as exec from "@actions/exec";
import * as tc from "@actions/tool-cache";
const PROFILES_MIN_VERSIO... |
<gh_stars>1-10
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2022-04-08 11:33:34
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\packages\components\graphics\corridor\index.ts
*/
import { createCommentVNode, defineComponent, getCurrentInst... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
<reponame>Slartbartfast1/arco-design<filename>components/index.tsx
export type { AlertProps } from './Alert/interface';
export { default as Alert } from './Alert';
export type { AnchorProps, AnchorLinkProps } from './Anchor/interface';
export { default as Anchor } from './Anchor';
export type { AffixProps } from './A... |
<gh_stars>0
import {Buffer} from 'buffer';
import {Alert, NativeEventEmitter, NativeModules, Platform} from 'react-native';
import {
check as checkPermission,
request as requestPermission,
PERMISSIONS,
RESULTS as PERMISSION_STATUS,
} from 'react-native-permissions';
import type {AUDIO_FORMATS, AUDIO_SOURCES,... |
import { ApolloError, FetchResult, useMutation, useQuery } from "@apollo/client";
import { message, Layout, Spin, Button } from "antd";
import produce from "immer";
import { useState } from "react";
import { RouteComponentProps } from "react-router";
import { Link } from "react-router-dom";
import { recordNumber } fro... |
import { assert } from 'console';
import * as manager from '../../lib/dayManager.js';
(function(){
manager.day(16, 'Flawed Frequency Transmission',
[
59281788,
96062868
],
(api) =>
{
const digits: number[] = api.time('read and parse', () => parseDigits(api.readInput()));
runTests();
api.doPart(1, () =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.