text stringlengths 10 953k |
|---|
import { ChimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeClient";
import {
GetVoiceConnectorTerminationHealthRequest,
GetVoiceConnectorTerminationHealthResponse,
} from "../models/models_1";
import {
deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommand,
serializeAws... |
export * from './dist/index';
import * as ginDownloader from './dist/index';
export default ginDownloader.gindownloader; |
const PlusIcon = () => {
return (
<svg viewBox="0 0 24 24" focusable="false">
<path
fill="rgba(255,255,255,0.96)"
d="M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.2... |
export { PropertyFilter } from './PropertyFilter';
export { PropertyFilterOptions } from './PropertyFilterOptions'; |
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('Authentication (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixtur... |
import * as React from 'react';
import { IDetailsHeaderBaseProps } from 'office-ui-fabric-react/lib/components/DetailsList/DetailsList.types';
import { CollapseAllVisibility } from 'office-ui-fabric-react/lib/GroupedList';
import { SelectAllVisibility, IDetailsHeaderState } from 'office-ui-fabric-react/lib/components/D... |
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
@Entity('Book')
export class Item {
@PrimaryGeneratedColumn()
readonly id: string;
@Column()
readonly title: string;
@Column()
readonly price: number;
@Column()
readonly description: string;
} |
import type { Validity } from "../types.ts";
import { invalid } from "../utils.ts";
export function isEmail(value: any): Validity {
// https://stackoverflow.com/a/46181
const regex =
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z... |
import { Tenant } from './user/tenant.model';
export class Answer {
id: number;
text: string;
tenants: Array<Tenant> = new Array<Tenant>();
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DaytraderCoin</source>
<translation>Sobre o DaytraderCoin</translation>
</message>
<message>... |
import { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
import { SipAccessItem, SipInject, SipNgInit, SipPage, SipProvidePages, SipSubscribe, SipTableColumn, SipTableServerManager, SipTableSettings } from 'sip-alain';
import { ListFormComponent } from '../../ui-demo/list-form/list-form.comp... |
import * as React from 'react';
import { mount, ReactWrapper } from 'enzyme';
import usePreventKey from '../usePreventKey';
describe('usePreventKey', () => {
function TestComponent({ keys }: { keys?: string[] }): JSX.Element {
const ref = React.useRef<HTMLDivElement>(null);
usePreventKey(ref, keys)... |
import * as React from 'react';
import { MentionProvider } from '../src/api/MentionResource';
import { PresenceProvider } from '../src/api/PresenceResource';
import MentionPicker, { Position } from '../src/components/MentionPicker';
import { MentionDescription, OnMentionEvent } from '../src/types';
import debug from '.... |
import {alertInterface, priceDataInterface} from '../common/types';
import {ABOVE_ALERT, BELOW_ALERT} from '../common/constants';
import {SOCKET_RESTART_DELAY, PRICE_PROCESS_DELAY, CURRENCY_PROCESS_DELAY} from "./constants";
import assets from "./assets";
import currencies from "./currencies"
import getCoinDisplayName ... |
// Required for installGlobals();
import "@remix-run/cloudflare-pages";
// Required for custom adapters
import type {
AppLoadContext,
ServerBuild,
ServerPlatform,
} from "@remix-run/server-runtime";
import { createRequestHandler as createRemixRequestHandler } from "@remix-run/server-runtime";
// Required only f... |
import classnames from 'classnames';
import {defineComponent} from 'vue';
export default defineComponent({
name: 'Badge',
props: {
prefixCls: {default: 'am-badge'},
hot: {type: Boolean, default: false},
size: {type: String, default: 'small'},
overflowCount: {type: Number, default: 99},
corner: ... |
export = index
declare class index {
static defaultMaxListeners: any
static init(): void
static listenerCount(emitter: any, type: any): any
static usingDomains: boolean
constructor(spinners: any, opts?: any)
frames: any
frameCount: any
indentStr: any
spinners: any
addListener(typ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { SubFeature, SubFeatureConfig } from '../../../../../features/common'... |
import * as React from 'react'
import * as draftjs from 'draft-js';
import { IBinding } from '@framework/Reflection';
import { HtmlContentStateConverter } from './HtmlContentStateConverter';
import './HtmlEditor.css'
import 'draft-js/dist/Draft.css'
import { InlineStyleButton, Separator, BlockStyleButton, SubMenuButton... |
import {Component, Input, OnInit} from '@angular/core';
@Component({
selector: 'app-shop-link',
templateUrl: './shop-link.component.html',
styleUrls: ['./shop-link.component.scss']
})
export class ShopLinkComponent implements OnInit {
@Input() link: string;
@Input() description: string;
constructor() {
... |
import React, { useEffect, useState } from 'react';
import { getAllChallenges, searchtChallenge } from '../../api/challenge';
import { ListChallenge } from '../../components/Challenges/listChallenge';
import { Layout } from '../../components/Common/Layout';
import PageHeader from '../../components/Common/PageHeader';
i... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from "react";
import style from "./SecondaryButton.module.scss";
export default function SecondaryButton(props: {
onClick?;
children: string;
isActive: boolean;
}) {
let btnStyle = [style.SecondaryButton];
if (!props.isActive) btnStyle.push(style.InActive);
return (
<button className={btnSt... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { Pool } from 'pg';
export const pool = new Pool({
connectionString: process.env.PG_CONN_STRING,
}); |
import { MapAPILoader, WindowRef, DocumentRef } from '../mapapiloader';
/**
* Protocol enumeration
*
* @export
* @enum {number}
*/
export declare enum ScriptProtocol {
HTTP = 0,
HTTPS = 1,
AUTO = 2,
}
/**
* Bing Maps V8 specific loader configuration to be used with the {@link BingMapAPILoader}
*
* @... |
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType('uploadFile')
export class uploadFile {
@Field()
success: boolean;
} |
// tslint:disable variable-name file-name-casing no-default-export no-import-side-effect no-null-keyword
import * as React from 'react'
import { connect } from 'react-redux'
import { Dispatch } from 'redux'
import { ImmutableState, StateKey } from '../../../../types'
import { PatternStateKey } from '../../../types'
im... |
import {config} from '..'
import * as Joi from 'joi'
export namespace Type {
export class I18n<T = string> {
[key: string]: T
static _typeArango: string = '0.4';
static schema: Joi.ObjectSchema = Joi.object().unknown().example({en:'Translation'});
static forClient(val: any, {req,session}: any){
const ses... |
import { Client } from 'discord-rpc';
import { DISCORD_APPLICATION_ID } from './constants';
import { handleError, log } from './util';
import { loadPresence } from './presence';
const rpc = new Client({ transport: 'ipc' });
log('Starting...');
rpc.once('ready', () => {
log('Ready');
const start = new Date();... |
import * as React from "react";
function SvgMove(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M3.8 6.2L2 8l1.8 1.8M6.2 3.8L8 2l1.8 1.8M9.8... |
import { ExportToExcelService } from './../../services/export-to-excel.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Router } from '@angular/router';
import { CryptService } from './../../services/crypt.service';
import { Component, OnInit } from '@angular/core';
import { PageandtipsService ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms'
import { LoginFormComponent } from './login-form/login-form.component';
import { RegisterFormComponent } from './register-form/register-form.component';
import { HttpClientModule } from... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LiveComponent } from './live.component';
const liveRoutes: Routes = [
{
path: '',
component: LiveComponent
}
];
@NgModule({
imports: [
RouterModule.forChild(liveRoutes)
... |
import {useEffect} from "react";
interface IListenerHandler {
callback: (data: any) => void;
id: string;
}
const listeners = new Map<string, IListenerHandler[]>();
const listenersToEvent = new Map<string, string>();
export function useEventRegister(eventName: string, callback: (data: any) => void) {
useE... |
import { TransferItem } from 'antd/lib/transfer';
import { Asset } from './assets/data/types';
import { License } from './licenses/data/types';
export type Resource = Asset | License; |
import React, { useEffect, useRef } from "react";
import cn from "classnames";
import Buttons from "../Buttons";
import { Variant } from "../common";
interface ContextState {
dropdownVisible: boolean;
setDropdownVisible: (visible: boolean) => void;
}
export const DropdownContext = React.createContext({
dr... |
/**
* 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... |
/** @ignore *//** */
export type {Cast} from './Cast'
export type {Clean} from './Clean'
export type {Compute} from './Compute'
export type {Contains} from './Contains'
export type {Equals} from './Equals'
export type {Extends} from './Extends'
export type {Key} from './Key'
export type {Is} from './Is'
export type {I... |
import Int32 from './Integers/Int32';
export default function asInt32(value: number): Int32
{
return new Int32(value);
} |
import Structure from './structure';
import SpatialHash from '../geometry/spatial-hash';
import { ValenceModel } from '../chemistry/valence-model';
export interface Data {
structure: Structure;
'@spatialLookup': SpatialHash | undefined;
'@valenceModel': ValenceModel | undefined;
}
export declare function cr... |
/* Copyright (c) 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. */
import React, { FC, useCallback } from 'react';
import styles from './styles.module.scss';
import classNames from 'classnames';
import { useFeature } from '~/application/utils/hooks';
const FeatureReadWrapper: FC ... |
import { Component, Vue } from 'vue-property-decorator';
import WithRender from './page-skeleton.html';
@WithRender
@Component
export class PageSkeleton extends Vue {} |
export class RowData {
tenantName: string;
purchaseOrderNumber: string;
reasonOfFailure: string;
modifiedOn: string;
tenantId: string;
entityId: string;
constructor(
tenantName: string,
purchaseOrderNumber: string,
reasonOfFailure: string,
mo... |
/**
* @abstract This script gets the API server setup.
*/
import express from "express";
import middlewares from "~middlewares";
import { connectToDB } from "~database";
import routes from "~routes";
import { logInfoMessage, logErrorMessage } from "~logger";
const { CLIENT, APIPORT } = process.env;
(async () => {
... |
import React, { useEffect, useRef } from 'react'
import CountUp from 'react-countup'
import { Text } from '@becoswap-libs/uikit'
interface TextProps {
isDisabled?: boolean
fontSize?: string
color?: string
bold?: boolean
}
interface BalanceProps extends TextProps {
value?: number
decimals?: number
unit?:... |
// cypress/plugins/index.js
/// <reference types="cypress" />
import { TeamsAuth } from './teams-auth';
/**
* @type {Cypress.PluginConfig}
*/
export default (on, config) => {
on('task', { TeamsAuth })
}; |
import { Point } from './math.helpers';
export declare const buildLinearPath: (data: Point[]) => string;
export declare function buildSmoothPath(data: Point[], radius: number): string; |
import { TableHeaderConfig } from '@/typings'
interface TableConfig {
[x: number]: {
tableColumn: TableHeaderConfig[]
}
}
export const mockTableColumn: TableConfig = {
700001: {
tableColumn: [
{
label: '计划单号',
value: 'billNo',
en: 'Plain Number',
width: '150px',
... |
class ConfigurationError extends Error {
constructor(name: string, message: string) {
super();
this.message = `The binding for component named ${name} is misconfigured: ${message}`;
}
toString() {
return this.message;
}
}
export default ConfigurationError; |
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { FirstComponent } from './first.component';
describe('FirstComponent', () => {
let component: FirstC... |
import {Injectable} from '@angular/core';
import {User} from '@control-tower/ct-models/User';
import {Actions, createEffect, ofType} from '@ngrx/effects';
import {Apollo, gql} from 'apollo-angular';
import {reduceGraph} from 'ngrx-entity-relationship';
import {toGraphQL} from 'ngrx-entity-relationship/graphql';
import ... |
import React from 'react';
import ServerButton from '../ServerButton';
import { Container, Separator } from './styles';
const ServerList: React.FC = () => {
return (
<Container>
<ServerButton isHome />
<Separator />
<ServerButton />
<ServerButton hasNotifications />
<ServerButton... |
export const chevronsUp24: string; |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// -------------------------------------------... |
/**
* @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.0
*
* Unless required by a... |
import { Piece } from './piece';
import { PieceRotation, PieceTypes } from './piece-enum';
import { Shapes } from './shape';
const ShapesI: Shapes = [];
ShapesI[PieceRotation.Deg0] = [
[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0],
[1, 1, 1, 1]
];
ShapesI[PieceRotation.Deg90] = [
[1, 0, 0, 0],
[1, 0, 0, 0],
... |
import {html} from './multicamera.html';
interface MultiCameraConfig {
maxWidth?: number;
maxHeight?: number;
}
export interface MultiCameraImg {
data: string;
width:number;
height: number;
}
export interface UsePhotoEvent extends CustomEvent {
detail: MultiCameraImg[];
};
export interface Can... |
/* tslint:disable:no-non-null-assertion */
import { pick } from '@vendure/common/lib/pick';
import { createErrorResultGuard, createTestEnvironment, ErrorResultGuard } from '@vendure/testing';
import gql from 'graphql-tag';
import path from 'path';
import { skip } from 'rxjs/operators';
import { initialData } from '../... |
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
DoCheck,
ElementRef,
forwardRef,
Input,
IterableDiffers,
QueryList,
ViewChild,
ViewChildren
} from '@angular/core';
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';
import { removeDuplicatedOptions ... |
import React from "react"
import Link from "gatsby-link"
import SEO from "../components/SEO"
import Layout from "../components/layout"
const Tags = ({ pageContext: { tags } }) => {
return (
<Layout>
<SEO title="Posts by Tag" />
<section>
<h1>Posts by Tag</h1>
<ul>
{tags.map(... |
import * as vscode from "vscode";
let statusBarItem: vscode.StatusBarItem;
const activate = () => {
statusBarItem = vscode.window.createStatusBarItem(
vscode.StatusBarAlignment.Right
);
statusBarItem.show();
};
const text = (input: string | number) => {
const output = `${input != null ? ": " + input : in... |
import {css} from 'styled-components/native';
export default {
w64: css`
width: 256px;
`,
}; |
import { CatalogState, Design, CATALOG_PREFIX } from "./types";
import { Reducer, AnyAction } from "redux";
import { makeReducer, getDefaultCrudState } from "../CRUD/reducer";
import { CrudAction } from "../CRUD/types";
import * as actions from "./actions";
export const baseReducer = makeReducer<Design>(CATALOG_PREFIX... |
/// <reference path="../../../dist/hogan.js.d.ts" />
import * as React from "react";
import Results from "../Results";
import { shallow } from "enzyme";
import { compile } from "hogan.js";
let results = [
{
key: "foo",
text: "bar"
},
{
key: "fizz",
text: "buzz"
}
];
cons... |
/**
* hide terminal cursor
*/
export const hideTerminalCursor = () => {
process.stderr.write('\x1B[?25l');
};
/**
* show terminal cursor
*/
export const showTerminalCursor = () => {
process.stderr.write('\x1B[?25h');
}; |
import { message, openURL } from '@/_helpers/browser-api'
import { timeout, timer } from '@/_helpers/promise-more'
import { getSuggests } from '@/_helpers/getSuggests'
import { DictSearchResult } from '@/typings/server'
import { SearchErrorType, SearchFunction, GetSrcPageFunction } from '@/components/dictionaries/helpe... |
import type {
SchemaConfig as SchemaConfiguration,
GraphQLLanguageConfig,
} from 'graphql-language-service';
import type { Options as PrettierConfig } from 'prettier';
export interface IDisposable {
dispose(): void;
}
export type SchemaConfig = SchemaConfiguration;
export interface IEvent<T> {
(listener: (e... |
import Component from 'vue-class-component';
import { Prop } from 'vue-property-decorator';
import { propOptional, propRequired } from '../../../../../utils/vue';
import { Api } from '../../../../../_common/api/api.service';
import { Community } from '../../../../../_common/community/community.model';
import AppFormCon... |
import passwordPrompt from 'password-prompt';
import { waitForUser } from './utils';
export interface UserInterface {
getWindowsEncryptionPassword(): Promise<string>;
warnChromeOnLinuxWithoutCertutil(): Promise<void>;
closeFirefoxBeforeContinuing(): Promise<void>;
startFirefoxWizard(certificateHost: string): P... |
import AlphabetSoup from "./utils/Alphabet";
let numVowels: number = 0;
let numConsonants: number = 0;
//===== FUNCTIONS THAT GET THE NEXT LETTER
// Get any letter from alphabet
function grabAnyLetter(): string {
let grabAlphabet: Array<string> = AlphabetSoup.wholeAlphabet();
return grabAlphabet[Math.floor(Math.r... |
import React from "react";
import cx from "classnames";
type Props = {
className?: string;
src: string;
alt: string;
};
const Image: React.FC<Props> = ({ className, src, alt }: Props) => {
return (
<div
className={cx(
"inline-flex items-center justify-center flex-1 md:mr-6 border border-gray... |
import { logger } from '@nrwl/devkit';
import { mocked } from 'ts-jest/utils';
import { buildJarExecutor } from './executor';
import { BuildJarExecutorOptions } from './schema';
import { mockExecutorContext } from '../../utils/test-utils';
import * as path from 'path';
//first, we mock
jest.mock('child_process');
je... |
import Generator from '../contracts/Generator'
import { GeneralSkillsExperience, RunecraftingSkillsExperience } from '../constants'
import { PlayerStats, SkillWeightEntity, SkillWeightGroup, SkyBlockProfile } from '../types/hypixel'
import { SkyBlockSkillGroupResponse } from '../types/hypixel/SkyBlockProfileStats'
cla... |
import { inject, scoped } from 'tsyringe';
import { Lifecycle } from 'tsyringe';
import { isValidUrl } from '../../Util/url';
import { isVideoId, isYoutubeUrl, linkFromId } from '../../Util/youtube';
import { MalformedUrl } from '../Exceptions/MalformedUrl';
import { Playable } from '../Playable';
import { Playlist } ... |
import { IsString, ValidateNested } from 'class-validator';
import { AgendaConfig } from '../../../domain/models/agenda-config';
import { GetAgendaConfigResponse } from '../../get-agenda-config/dto/get-agenda-config.dto.response';
export class SetAgendaConfigResponse {
constructor(agendaId: string, businessId: strin... |
import { NgModule } from '@angular/core';
import { NgbdSharedModule } from '../../shared';
import { ComponentWrapper } from '../../shared/component-wrapper/component-wrapper.component';
import { NgbdComponentsSharedModule, NgbdDemoList } from '../shared';
import { NgbdApiPage } from '../shared/api-page/api.component';... |
import * as React from 'react';
import {PlayerActions} from '../../actions.d';
import { PlayerState } from 'definitions';
import Map from 'models/Map';
import Artwork from 'app/Artwork';
import { Link } from 'react-router-dom';
const ColorThief = require('color-thief-browser');
require('./CurrentPlayingView.scss');
... |
import { HistoricalLocation } from "../HistoricalLocation";
import { Thing } from "../Thing";
import { EntityList } from "./EntityList";
export class HistoricalLocationThingsList extends EntityList<HistoricalLocation, Thing> {
public list(): Promise<Thing[]> {
return this._service.things.getFromEntity(this... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'averak portfolio';
} |
import * as vscode from "vscode";
import { getTestRunner } from "./lib/helpers";
export let globalRunner: any;
export const testType = ["focused", "file", "suite", "last"] as const;
const runTest = (
testStrategy: typeof testType[number],
context: vscode.ExtensionContext
) => {
if (
testStrategy === "last" ... |
import * as React from "react"
function Svg(props) {
return (
<svg
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
height="100%"
width="100%"
xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 200 200"
enableBackground="new 0 0 200 200"
... |
import { Injectable } from '@angular/core';
import { Router,CanActivate,ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class GuardGuard implements CanActivate {
constructor(private router: Router) { }
... |
/// <reference types="react" />
declare const PersonFacepalmingDarkSkinTone: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default PersonFacepalmingDarkSkinTone; |
import * as dotenv from 'dotenv';
dotenv.config({ path: __dirname + '/../../.env' });
export const config = {
database: {
host: process.env.DB_HOST,
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
},
}; |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GrFormView: IconType; |
// @target: esnext, es2020
class Foo {
#field = 1;
#method() {}
static #staticField= 2;
static #staticMethod() {}
check(v: any) {
#field in v; // expect Foo's 'field' WeakMap
#method in v; // expect Foo's 'instances' WeakSet
#staticField in v; // expect Foo's constructor
... |
import ray from "./ray";
import { hitRecord } from "./hitable";
import vec3 from "./vec3";
import { randomInUnitSphere } from './task.worker';
export default abstract class material {
abstract scatter(rIn: ray, rec: hitRecord, attenuation: vec3, scattered: ray) : boolean;
}
/**
* Lambertian (diffuse material)
*... |
import React from "react";
import ReactDOM from "react-dom";
import { MuiThemeProvider } from "@material-ui/core/styles";
import theme from "@iobroker/adapter-react/Theme";
import Utils from "@iobroker/adapter-react/Components/Utils";
import App from "./app";
let themeName = Utils.getThemeName();
function build(): vo... |
export * from './types';
export * from './constants';
export * from './Roadmap';
export * from './RoadmapAside'; |
function maxArea(height: number[]): number {
// [1,8,6,2,5,4,8,3,7]
// tracking variables
let max = 0;
let currentArea = 0;
let left = 0;
let right = height.length - 1; // 9 - 1 = 8
// iterate through array
// assign max to the max between current area and max
// compare left and right heights
// i... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Scope} from "../../scopes";
import {AnyNode, jsBindingArrayPattern} from "@internal/ast";
export default function JSBindi... |
import React from 'react';
import styles from './App.module.scss';
import { BrowserRouter, Route } from 'react-router-dom';
import routes from './Routes';
import useSomething from '../hooks/useSomething';
const App = () => {
const something = useSomething();
return (
<BrowserRouter>
<div cl... |
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'alert-error',
templateUrl: './alert-error.component.html',
styleUrls: ['./alert-error.component.css']
})
export class AlertErrorComponent implements OnInit {
@Output()
showChange: EventEmitter<boolean... |
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MarketplaceApplication = {
properties: {
name: {
type: 'string',
},
unique_hash: {
type: 'string',
},
object_storage_path: {
type: 'string',
},
... |
// TODO(#12167): remove the file
import { Component, ComponentRef, ViewContainerRef } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { of } from 'rxjs';
import { LaunchDialogService, LAUNCH_CALLER } from '../../layout';
import { AnonymousConsentLaunchDialogService } from './anonymous-cons... |
import { makeSchema } from "nexus";
import { nexusPrisma } from "nexus-plugin-prisma";
import { allow, nexusShield } from "nexus-shield";
import { validatePlugin } from "nexus-validate";
import { join } from "path";
import * as types from "./types";
export const schema = makeSchema({
contextType: {
export: "Con... |
import { HubCard } from './hub-card';
describe('hub-card', () => {
it('builds', () => {
expect(new HubCard()).toBeTruthy();
});
}); |
import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from "@angular/router";
import {DataService} from "../../service/data.service";
import {Store} from "@ngrx/store";
import {setSession} from "../../store/student/student.actions";
import {MatDialog} from "@angular/material/dialog";
import {... |
import {
babelPreset,
PresetOptions,
} from '@wpackio/babel-preset-base/lib/preset';
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
import fs from 'fs';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import path from 'path';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMiss... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.