text stringlengths 10 953k |
|---|
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
interface ILinkedListNode<T> {
prev: ILinkedListNode<T> | null;
next: ILinkedListNode<T> | null;
key: number | null;
value: T | null;
}
export class LRUMap<T> {
private _map: { [key: number]: ILinkedListNode<T> } = {};
... |
import UserToken from '../infra/typeorm/entities/UserToken'
export default interface IUserTokensRepository {
generate(user_id: string): Promise<UserToken>;
findByToken(token: string): Promise<UserToken | undefined>;
} |
import Modal from "components/Modal";
import Navigation from "components/Navigation";
import Router from "components/Router";
import React, { FunctionComponent } from "react";
import Layout from "../Layout";
import Profile from "../Profile";
const Home: FunctionComponent = () => {
return (
<Layout>
<Modal ... |
import { ThemeItemType } from "@/common/type";
import themeWorker from "../../reducer/theme";
export const initThemeAction = () => themeWorker.actions.initTheme();
export const setThemeAction = (value: boolean) =>
themeWorker.actions.setTheme({ useTheme: value });
export const setThemeItemAction = (value: ThemeIte... |
export { default } from './Farms' |
import { Container, Scope } from 'typescript-ioc';
import { CalculatorService, ConverterApi } from '../../src/services';
import {
BadRequestError,
NotImplementedError,
} from 'typescript-rest/dist/server/model/errors';
class MockConverterService implements ConverterApi {
toNumber = jest.fn().mockName('toNumber'... |
// Sketch
//
// Need an easy way of getting and setting settings
// If a setting is not set, the default should probably be returned.
// That probably means that binds etc. should be per-key?
//
// We should probably store all settings in memory, and only load from storage on startup and when we set it
//
// Really, we... |
import React, {useState} from 'react'
import BottomNavigationAction from '@material-ui/core/BottomNavigationAction'
import HomeIcon from '@material-ui/icons/Home'
import BottomNavigation from '@material-ui/core/BottomNavigation'
import MailIcon from '@material-ui/icons/Mail'
import CakeIcon from '@material-ui/icons/Cak... |
import {describe, it, iit, ddescribe, expect, inject, beforeEach, beforeEachProviders,} from '@angular/core/testing/testing_internal';
import {AsyncTestCompleter} from '@angular/core/testing/testing_internal';
import {Injector, provide, ReflectiveInjector} from '@angular/core';
import {Location, LocationStrategy, APP_... |
<TS language="da" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Højreklik for at redigere adresse eller mærkat</translation>
</message>
<message>
<source>Create a new address</source>
<tr... |
const renderLoader = () => {
const imageStyle = [style, styles.loaderPlaceholder]
const activityIndicatorStyle = loadingIndicatorProps.style || styles.loader
const source = defaultSource
// if the imageStyle has borderRadius it will break the loading image view on android
// so we only show the ActivityIndi... |
import { TranslationCollection } from '../utils/translation.collection';
export interface CompilerInterface {
extension: string;
compile(collection: TranslationCollection): string;
parse(contents: string): TranslationCollection;
} |
import React from 'react'
import { Icon, IconProps } from '../Icon'
export function ArrowLeftIcon(props: IconProps) {
return (
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin... |
import {prisma} from "../../../../database/prismaClient"
interface ICreateDelivery{
item_name: string
id_client: string
}
export class CreateDeliveryUseCase {
async execute({item_name, id_client}: ICreateDelivery){
const delivery = await prisma.deliveries.create({
data: {
item_name,
i... |
namespace MIME {
/**
* The fasta sequence parser and data model
*/
export interface FastaSeq {
headers: string[];
sequence: string;
}
export function ParseFasta(stream: string): FastaSeq[] {
const seq: FastaSeq[] = [];
// 使用正则表达式进行切割并去除空白行
c... |
import util = require('util');
import coroutine = require('coroutine');
import Utilities = require("./Utilities");
import ChainInstance = require("./ChainInstance");
var prepareConditions = function (opts: FxOrmQuery.ChainFindOptions) {
return Utilities.transformPropertyNames(
opts.conditions, opts.prope... |
import colors from '@celo/react-components/styles/colors'
import { StackScreenProps } from '@react-navigation/stack'
import * as React from 'react'
import { ActivityIndicator, StyleSheet, View } from 'react-native'
import { WebView } from 'react-native-webview'
import { useSelector } from 'react-redux'
import { showErr... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... |
import Box from '@material-ui/core/Box';
import Link from '@material-ui/core/Link';
import { Theme } from '@material-ui/core/styles/createMuiTheme';
import makeStyles from '@material-ui/core/styles/makeStyles';
import Typography from '@material-ui/core/Typography';
import { mdiTrayArrowUp } from '@mdi/js';
import Icon ... |
export interface BackendData {
status: string,
data: any
} |
import Vec2 from 'vec2';
import { FenBoard } from '../../../../helpers/chess-board-helper';
export default abstract class MovementCondition {
public abstract canMove(oldPosition: Vec2, newPosition: Vec2, board: FenBoard): boolean;
} |
export * from "./healthController";
export * from "./userController";
export * from "./versionController"; |
import { Component, Input } from '@angular/core';
import { trigger, state, style, animate, transition } from '@angular/animations';
@Component({
selector: 'app-hamlist',
templateUrl: './hamlist.component.html',
styleUrls: ['./hamlist.component.css'],
animations: [
trigger('changeTrigger', [
state('ou... |
/// <reference types="jquery" />
$('input').iCheck({
labelHover: false,
cursor: true
});
// customize all inputs (will search for checkboxes and radio buttons)
$('input').iCheck();
// handle inputs only inside $('.block')
$('.block input').iCheck();
// handle only checkboxes inside $('.test')
$('.test input... |
import { IsArray, IsDate, IsNumber, IsOptional, IsString } from 'class-validator';
export class FieldDto {
@IsOptional()
@IsString()
name: string;
area: string;
@IsArray()
points: string[];
@IsOptional()
sowingDate: string;
@IsOptional()
cleaningDate: string;
@IsOptional()
@IsNumber()
a... |
import { EventEmitter } from "events";
/**
* Throws an error if the value is not an EventEmitter.
* @param {*} value - The value to verify.
* @param {string} name - The name of the variable.
*/
export function verifyEventEmitter(value: unknown, name: string): void {
if (!(value && value instanceof EventEmitte... |
import { extensionSpec, React, getAppStore, appActions, LayoutContextToolProps, i18n } from 'jimu-core'
import { defaultMessages } from 'jimu-ui'
export default class TextTool implements extensionSpec.ContextToolExtension {
index = 0
id = 'inline-editing'
widgetId: string
getGroupId (): string {
return nul... |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class CloudHSMV2... |
export * from './tarefas.module'
export * from './shared'
export * from './listar'
export * from './cadastrar'
export * from './editar'
export * from './tarefas-routing.module' |
import { IOfferResponse, IOfferUpdateRequest } from './../../../../model/dist/api/Offer.api.d';
import OfferService from './../services/offers';
import { IOffer, IDeleteOfferResponse } from "balanced-jobs-model";
import { Request, Response, NextFunction } from "express";
import * as HttpStatus from "http-status-codes";... |
export = Livechat;
declare class Livechat extends EventEmitter {
constructor(session: any, token: any, channel_id: any, video_id: any);
ctoken: any;
session: any;
video_id: any;
channel_id: any;
message_queue: any[];
id_cache: any[];
poll_intervals_ms: number;
running: boolean;
m... |
import { Component, Input } from '@angular/core';
import { Hero } from './hero';
@Component({
selector: 'my-hero-detail',
template: `
<div *ngIf="hero">
<h2>{{hero.name}} details!</h2>
<div><label>id: </label>{{hero.id}}</div>
<div>
<label>name: </label>
<input [(ngModel)]="hero.name" pl... |
import PaletteTable, { colorToRgb } from './PaletteTable';
let paletteTable: PaletteTable;
beforeEach(() => {
paletteTable = new PaletteTable();
});
describe('setByte', () => {
it('should set the corresponding byte in RAM', () => {
expect(paletteTable.getByte(0x3f09)).toBe(0);
paletteTable.setByte(0x3f09... |
import React from 'react';
import Select, { Option } from 'react-select';
import { HelpField } from '@spinnaker/core';
export interface ICustomInstanceConfig {
vCpuCount: number;
memory: number;
}
export interface ICustomInstanceConfigurerProps {
vCpuList: number[];
memoryList: number[];
selectedVCpuCount:... |
/**
* @license
* Copyright (C) 2016 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... |
import { TestBed } from '@angular/core/testing';
import { ControlsLibraryService } from './controls-library.service';
describe('ControlsLibraryService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ControlsLibraryService = TestBed.get(ControlsLi... |
import React from 'react'
import { useStaticQuery, graphql } from 'gatsby'
import { naviItem, headeritem} from "../../../styles/Header"
import Img from "gatsby-image"
import { css } from '@emotion/core'
interface HeaderProps {
readonly title: string
}
export const Header : React.FC<HeaderProps> = ({ title }: Header... |
import * as React from "react";
import { IIconProps } from "../styled";
const SvgMiscGrey10 = (props: IIconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 45 26"
width="1em"
height="1em"
{...props}
>
<path
fillRule="evenodd"
d="M41.354 16.6c0 .27-.229.5-.5.5h-1.... |
import { AttributesRepository } from './../repository/attributes.repository';
import { NewFieldsDto } from "./../dto/new-fields.dto";
import { FieldsRepository } from "./../repository/fields.repository";
import {GenericService} from "../../commons/services/generic.service";
import { Fields } from "../entity/fields.enti... |
import jwt from 'jsonwebtoken'
import {Response} from 'express'
import {RequestParams} from '../utils/requestDefinitionFile'
async function authMiddleware(request:RequestParams, response:Response, next:Function){
const authHeader = request.headers.authorization
if(!authHeader){
return response.status(400).json({re... |
import React from 'react';
import { Parameters } from "@storybook/react"
import toast, { Toast } from '../../components'
export default {
title: 'Toast',
component: Toast,
};
const DateTemplate: Parameters = (args) => {
const handle = () => {
toast(args)
}
return (
<button cl... |
export type SHA = string;
export type JWTStr = string;
export type UserID = string;
export type CreateRevReqClaims = {
ops: string[];
user_id: UserID;
base_sha: SHA;
}
export type CreateRevReqBody = { content: string }
export type CreateRevResp = {
sha: SHA;
base_sha: SHA;
modified_section_ids:... |
import { _Button, _UnmarshalledButton } from "./_Button";
/**
* <p>Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text. </p>
*/
export interface _GenericAttachment {
/**
* <p>The title of the option.</p>
*/
title?: string;
/**
* <p>The sub... |
// *** 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 { Label, Link, Stack, TooltipHost, TooltipOverflowMode } from 'office-ui-fabric-react';
import React, { useContext, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useWindowSize } from 'react-use';
import { style } from 'typestyle';
import { ReactComponent as InfoSvg } from '../... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ListUserComponent } from './list.component';
describe('ListUserComponent', () => {
let component: ListUserComponent;
let fixture: ComponentFixture<ListUserComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({... |
import * as React from 'react';
import { shallow } from 'enzyme';
import Page from '../submit';
describe('Submit Page', () => {
it('is defined', () => {
const app = shallow(<Page serverState={{}} />);
expect(app).toBeDefined();
});
}); |
import { newE2EPage } from '@stencil/core/testing';
describe('pv-certificate-summary', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<pv-certificate-summary></pv-certificate-summary>');
const element = await page.find('pv-certificate-summary');
expect(... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { User } from '../shared/models/user.model';
@Injectable()
export class UserService {
constructor(private http: HttpClient) { }
register(user: User): Observable<User> {
re... |
import createIcon from './../createIcon'
export default createIcon('la la-caret-left') |
export declare const isSquare: (width: number, height: number, options?: {
sqRatioAccuracy: number;
}) => boolean; |
// https://hackernoon.com/import-json-into-typescript-8d465beded79
declare module '*.json' {
const value: any;
export default value;
}
declare module '@susy-js/abi';
declare module '@susy-js/api/lib/util';
declare module '@susy-js/api/lib/util/format'; |
import {
getPythProgramKeyForCluster,
PythConnection,
} from "@pythnetwork/client";
import { clusterApiUrl, Connection } from "@solana/web3.js";
const connection = new Connection(clusterApiUrl("mainnet-beta"), "confirmed");
const pythConnection = new PythConnection(
connection,
getPythProgramKeyForCluster("mai... |
import { Component } from '@angular/core';
@Component({
selector: 'shopify-product-overview-features',
templateUrl: './product-overview-features.component.html',
styleUrls: ['./product-overview-features.component.scss'],
})
export class ProductOverviewFeaturesComponent {} |
export interface FAQ {
createdOn: number;
question: string;
answer: string;
} |
import { DataSourceError } from '@jamashita/catacombe-datasource';
import { Superposition } from '@jamashita/genitore-superposition';
import { EntranceInformation } from '../../domain/vo/EntranceInformation/EntranceInformation.js';
import { IdentityError } from '../../domain/vo/Identity/error/IdentityError.js';
import ... |
import { resolve } from "path";
import { Module } from "@nuxt/types";
export interface NuxtVillusOptions {
httpEndpoint?: string;
wsEndpoint?: string;
enableCompositionApi?: boolean;
}
const nuxtVillusModule: Module<NuxtVillusOptions> = function (moduleOptions) {
moduleOptions.enableCompositionApi = this.nuxt... |
export const divider = '<!-- START CHANGELOG -->'
export const releaseTemplate = `${divider}
## Unreleased
### Added
-
### Changed
-
### Fixed
-
### Removed
-` |
import { Router } from 'express'
import {
CreateUserController,
GetUserInfoController,
AuthenticateUserController
} from '@/controllers'
import { ensureAuthenticated } from '@/middlewares'
const usersRouter = Router()
const createUserController = new CreateUserController()
const authenticateUserController = ne... |
import m from 'mithril';
import { Nav } from '@/layout/nav/nav';
import { SideMenu } from '@/layout/side-menu/side-menu';
import { Footer } from '@/layout/footer/footer';
import { Flash } from '@/component/flash/flash';
import style from '@/layout/footer/footer.scss';
export const DashboardLayout = (): m.Component => ... |
import {
AxesHelper, BoxGeometry,
DirectionalLight, Mesh,
MeshBasicMaterial,
PerspectiveCamera,
Scene,
WebGLRenderer
} from "three"
import {OrbitControls} from "three/examples/jsm/controls/OrbitControls"
export class BaseScene {
public scene = new Scene()
public camera = new Perspecti... |
import { projectPathValidation } from "./extensionService";
import { IVSCodeObject } from "../../types/vscode";
import {
EXTENSION_COMMANDS
} from "../constants";
xdescribe("wizardSelectionSelector", () => {
let mockVsCode: IVSCodeObject;
let callbackExtension: Function;
describe("validate project name", (... |
import styled from 'styled-components';
export default styled.div`
background-image: linear-gradient(
-90deg,
#e7edf1 0%,
#f8f8f8 50%,
#e7edf1 100%
);
background-size: 400% 400%;
animation: shimmer 1.2s ease-in-out infinite;
@keyframes shimmer {
0% {
... |
import { Columns } from './columns.entity';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ColumnController } from './column.controller';
import { ColumnService } from './column.service';
@Module({
imports: [TypeOrmModule.forFeature([Columns])],
controllers: [Col... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*!
*
* Wijmo Library 5.20191.603
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Licensed under the GrapeCity Commercial License.
* sales@wijmo.com
* wijmo.com/products/wijmo-5/license/
*
*/
/**
* {@module wijmo.angular2.chart.interaction}
* Co... |
import { Builder, Requester, Validator } from '@chainlink/ea-bootstrap'
import {
Config,
ExecuteFactory,
ExecuteWithConfig,
MakeWSHandler,
AdapterRequest,
APIEndpoint,
} from '@chainlink/types'
import { DEFAULT_WS_API_ENDPOINT, makeConfig, NAME } from './config'
import * as endpoints from './endpoint'
impor... |
import { IRootScopeService } from 'angular';
import { StateService } from '@uirouter/angularjs';
export interface IDeckRootScope extends IRootScopeService {
$state: StateService;
authenticating: boolean;
feature: any;
pageTitle: string;
routing: boolean;
} |
<TS language="da" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Højreklik for at redigere adresse eller mærkat</translation>
</message>
<message>
<source>Create a new address</source>
<tr... |
import {
appEnvVarsSchemaKey,
applicationSchemaKey,
appStatsSchemaKey,
appSummarySchemaKey,
buildpackSchemaKey,
cfInfoSchemaKey,
cfUserSchemaKey,
featureFlagSchemaKey,
githubBranchesSchemaKey,
githubCommitSchemaKey,
githubRepoSchemaKey,
metricSchemaKey,
organizationSchemaKey,
privateDomainsS... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { AdSlot, slotService, utils } from '@ad-engine/core';
import { GoogleImaWrapper } from './google-ima-wrapper';
import { iasVideoTracker } from './plugins/ias/ias-video-tracker';
import { moatVideoTracker } from './plugins/moat/moat-video-tracker';
import { PorvataPlugin } from './plugins/porvata-plugin';
import... |
import * as React from 'react';
import { CSSTransition } from 'react-transition-group';
import styled, { css } from 'styled-components';
import { Elevation } from '../../../essentials';
import { Card, CardProps } from '../../Card/Card';
const ANIMATION_DURATION = 150;
const TRANSITION_KEY = 'centered-card-animation';
... |
import {
LitElement,
html,
css,
customElement,
property,
} from "lit-element";
import "@elements/core/images/ui";
export type Kind =
| "card-view"
| "game-display"
| "rounds"
| "hint"
| "next"
| "time-limit"
| "attempts"
| "score"
| "video-play"
| "video-feat... |
import { ValidationPipe } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import {
DocumentBuilder,
ExpressSwaggerCustomOptions,
SwaggerModule,
} from '@nestjs/swagger';
import { AppModule } from './app.module';
async function bootstrap() {
con... |
import * as React from "react";
import { merge } from "lodash";
import ChartBox, { ChartBoxProps } from "../../components/ChartBox";
interface ChartData {
name: string;
data: { category: string; value: number }[];
stack: string;
color?: string;
}
interface StackedBarChartProps extends ChartBoxProps {
data: ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-solar-system',
templateUrl: './solar-system.component.html',
styleUrls: ['./solar-system.component.css']
})
export class SolarSystemComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { Router } from '@angular/router';
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
import { Location } from '@angular/common';
@Component({
selector: 'lib-side-view-layout',
templateUrl: './side-view-layout.component.html'
})
export class SideViewLayoutComponent implements On... |
export const boost = 'messagesBoost';
export const disboard = 'messagesDisboard';
export const goodbye = 'messagesGoodbye';
export const goodbyeAutoDelete = 'messagesGoodbyeAutoDelete';
export const moderationAutoDelete = 'messagesModerationAutoDelete';
export const welcome = 'messagesWelcome';
export const welcomeAuto... |
/**
* For support ClashX runtime
*
* Clash Dashboard will use jsbridge to
* communicate with ClashX
*
* Before React app rendered, jsbridge
* should be checked if initialized,
* and also should checked if it's
* ClashX runtime
*
* @author jas0ncn
*/
/**
* declare javascript bridge API
*/
export interface... |
import React from 'react';
import {
DataToolbar,
DataToolbarItem,
DataToolbarContent,
DataToolbarFilter,
DataToolbarToggleGroup,
DataToolbarGroup,
DataToolbarProps
} from '@patternfly/react-core/dist/esm/experimental';
import {
Button,
ButtonVariant,
InputGroup,
Select,
SelectOption,
SelectVar... |
import { VoteActionType } from 'constants/voteActionType'
/**
* Vote action interface
*
* @export
* @interface IVoteAction
*/
export interface IVoteAction {
payload: any,
type: VoteActionType
} |
declare var x;
// Must emit as (x + 1) * 3
(x + 1 as number) * 3;
// Should still emit as x.y
(x as any).y;
// Emit as new (x())
new (x() as any); |
import faker from 'faker';
import { User } from '../../../src/models';
export interface UserTest {
email: string;
password: string;
name: string;
id?: string;
}
const getFakeUser = (): UserTest => {
return {
email: faker.internet.email(),
password: faker.internet.password(6),
name: faker.name.f... |
import * as React from "react";
import CsvButton from "components/CsvButton";
import { CsvButtonProps, GlobalFilterProps } from "cdm/MenuBarModel";
import GlobalFilter from "components/reducers/GlobalFilter";
import {
AppBar,
Box,
IconButton,
Menu,
MenuItem,
Toolbar,
} from "@material-ui/core";
import { Tab... |
// svg/microphone-minus.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgMicrophoneMinus = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl... |
import * as AWS from 'aws-sdk';
import type { ConfigurationOptions } from 'aws-sdk/lib/config-base';
import { Account } from './sdk-provider';
export interface ISDK {
/**
* The region this SDK has been instantiated for
*
* (As distinct from the `defaultRegion()` on SdkProvider which
* represents... |
import ThemeSwitcher from "./ThemeSwitcher";
import NavBar from "./NavBar";
export default function Topbar() {
return (
<div className="mt-4 w-full">
<div className="float-left ml-12">
<NavBar />
</div>
<div className="float-right mr-12">
<ThemeSwitcher />
</div>
</div... |
import { Injectable } from '@angular/core';
import { Mineral, Vespene } from './classes/resources';
import { BASE, MINERAL_FIELDS, VESPENE_GEYSERS } from './mock-base';
@Injectable()
export class ResourceService {
GetMineralFields(): Promise<Mineral[]> {
return Promise.resolve(MINERAL_FIELDS);
}
G... |
import { Level } from '../components/Game/types';
/**
* Map legend:
*
* 0 - Nothing
* 1 - Empty space
* 2 - Wall
*/
export const LEVELS: Level[] = [
{
id: 1,
map: [
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0... |
import { bindOutputs } from '@angular/compiler/src/view_compiler/event_binder';
import { Injectable } from '@angular/core';
import { NoAccessMissingMemberRule } from 'codelyzer';
@Injectable()
export class HeroesService {
private heroes:Heroe[]=[
{
nombre: "Aquaman",
bio: "El poder más reconocido... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../services/auth.service';
import { CartService } from '../services/cart.service';
import { ActivatedRoute, Router } from '@angular/router'
import { HttpClient } from '@angular/common/http';
import { browserRefresh } from '../app.component... |
import {Component} from '@angular/core';
import { FORM_DIRECTIVES, ControlGroup, FormBuilder } from '@angular/common';
import {ROUTER_DIRECTIVES, Router, RouteSegment} from '@angular/router';
import {Http, Response, HTTP_PROVIDERS, URLSearchParams } from '@angular/http';
import 'rxjs/Rx';
import { Observable } from 'rx... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
} from 'ethers'
import {
Contract,
ContractTransaction,
Overrides,
PayableOverrides,
CallOverrides,
} from '@ethersproject... |
import { IConstructor } from "../../metadata";
export declare type BaseCtor = Number | Boolean | String;
export interface IData {
[prop: string]: any;
}
export declare type IDataInvoker = () => IData;
export declare type IReadableData = IData | IDataInvoker;
export interface IConvertable {
get<T extends BaseCto... |
/*
* Copyright 2019 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 ap... |
import { assert } from 'chai'
import { Requester } from '@chainlink/external-adapter'
import { assertSuccess, assertError } from '@chainlink/adapter-test-helpers'
import { AdapterRequest } from '@chainlink/types'
import { makeExecute } from '../src/adapter'
describe('execute', () => {
const jobID = '1'
const execu... |
export = replaceAll
/**
* Modifies provided text with specified transformations.
*
* @param text base text
* @param transformations descriptions of changes to the text
*/
declare function replaceAll(
text: string,
transformations: { offset: number; length: number; change: string }[],
): string |
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
import * as tfc from '@tensorflow/tfj... |
import { Layer } from "./types";
/**
* Core middleware functionality.
* This is empty but may add default middleware later.
*/
const CoreLayer: Layer = {
middleware: [],
classes: [],
};
export default CoreLayer; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.