text stringlengths 10 953k |
|---|
import { DataSourceSettings } from '@grafana/data';
import { AzureMLSecureJsonData } from './AzureMLSecureJsonData';
import { AzureMLDataSourceJsonData } from './AzureMLDataSourceJsonData';
export type AzureMLDataSourceSettings = DataSourceSettings<AzureMLDataSourceJsonData, AzureMLSecureJsonData>; |
import * as React from 'react';
import cx from 'classnames';
export type PointId = 'point-left' | 'point-right' | 'point-single';
export interface ISliderPointProps {
value: number;
disabled?: boolean;
position: string;
active: boolean;
}
function SliderPoint(props: ISliderPointProps) {
const { value, posi... |
/**
* Resource Inventory Management
* This is Swagger UI environment generated for the TMF Resource Inventory Management specification
*
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not e... |
import { NgModule, Type } from '@angular/core';
import { PopupModule } from '../popups/popup.module';
import { SharedModule } from '../shared/shared.module';
import { AddParticipantComponent } from './add-participant/add-participant.component';
import { AddStaffMemberComponent } from './add-staff-member/add-staff-membe... |
import toast from '../types/web/toast'
export { success, failed, action } from '../types/web/toast'
export default toast |
import { resolveNodeId } from "node-opcua-nodeid";
import { constructEventFilter } from "node-opcua-service-filter";
import {
AttributeIds,
ReadValueIdOptions,
TimestampsToReturn
} from "node-opcua-service-read";
import { CreateSubscriptionRequestOptions, MonitoringParametersOptions } from "node-opcua-servi... |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
import { createSelector } from 'reselect';
const searchedItemsSelector = (state: any) => state.pageSearch.items;
export const filterItems = (condition: any) => {
const filteredSelector = createSelector(
searchedItemsSelector,
(items: any) => items.filter((item: any) => item.value === condition),
);
}; |
import { createReducer, on } from '@ngrx/store';
import { Todo } from '../models/todo.models';
import { create, complete, edit, erase, completeAll } from './todo.actions';
export const initialState:Todo[] = [
new Todo('Add tasks'),
new Todo('Add tasks 2'),
new Todo('Add tasks 3'),
];
const _todoReducer = crea... |
import * as React from "react";
import { LayoutRow } from "@alethio/ui/lib/layout/content/LayoutRow";
import { LayoutRowItem } from "@alethio/ui/lib/layout/content/LayoutRowItem";
import { Label } from "@alethio/ui/lib/data/Label";
import { ITranslation } from "plugin-api/ITranslation";
import { ITxCounts } from "../IT... |
import { Employee } from './employee.entity';
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from "typeorm";
@Entity()
export class AddressOfEmployee {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({length: 9})
zipCode: string;
@Column({length: 30})
country: string;
@Column({length... |
class MensagemView extends View < String > {
template(model: string): string {
return `<p class="alert alert-info">${model}</p>`
}
} |
import { LitAnalyzerRuleName, LitAnalyzerRules } from "../analyze/lit-analyzer-config";
import { analyzeCommand } from "./analyze-command";
import { LitAnalyzerCliConfig } from "./lit-analyzer-cli-config";
import { parseCliArguments } from "./parse-cli-arguments";
import { camelToDashCase } from "./util";
const DEFAUL... |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { getStrategies } from '@rx-angular/template';
import { CoalescingTestService } from './coalescing-test.service';
@Component({
selector: 'rxa-demo-basics',
template: `
<rxa-... |
export { ClassProvider, ExistingProvider, FactoryProvider, InjectionToken, Injector, NormalizedProvider, Provider, ReflectiveInjector, ReflectiveDependency, TypeProvider, ValueProvider } from './injector';
export { InvalidProviderError, NoAnnotationError, NoMixMultiProviderError, NoProviderError, NoTokenError } from '.... |
/**
* Represents an event.
* Events enable a class or object to notify other classes or objects when something of interest occurs.
* The class that sends (or invokes) the event is called the publisher and the classes that receive (or handle) the event are called subscribers.
*
* Objects can create an instanc... |
export interface IEmailRow {
Id: number;
Email: string;
Dequeue: number;
SendGridKey: string;
When: string;
}
export interface IEmailRows {
rows: IEmailRow[]
} |
import Vue from "vue";
import { vueEventDispatcher } from "../vue-event-dispatcher";
import { VueEventChannels } from "../vue-event-channels";
import { PluginSettings } from "./plugin-settings";
import { UserConfigOptions } from "../../common/config/user-config-options";
import { defaultColorConverterOptions } from "..... |
/**
* Card Listing Component
* @author Irfan Andriansyah <irfan@99.co>
* @since 2019.07.15
*/
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { PropsInterface } from './interfaces/component.interface';
import Card from '@/shared/components/atoms/card/card.component';
import Image fr... |
import { Steps } from 'antd'
import React, { useState } from 'react'
import AuthenticationStep from './AuthenticationStep'
import DiscoveryStep from './DiscoveryStep'
import TestConnectionStep from './TestConnectionStep'
import './GatewayWizard.css'
const { Step } = Steps
const steps = [{
stepName: 'Discover',
... |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEllipsisH } from '@fortawesome/free-solid-svg-icons';
import * as React from "react";
import { Nullable, IExplorerExtensibilityGroup } from "babylonjs";
interface IExtensionsComponentProps {
target: any,
extensibilityGroups?: IExplore... |
import { CompositeKeyNode } from "../../precompile-output/composite-key-node";
import { _ckmHas } from "../query/_ckmHas";
/**
* Removes a path from the map (if existent)
* @param indexRoot Node representing the root of Composite Key Map
* @param path Path to object to be removed
* @returns Root object with change... |
import { PanelPlugin } from '@grafana/data';
import { plugin } from './module';
/*
Plugin
*/
describe('plugin', () => {
it('should be instance of PanelPlugin', () => {
expect(plugin).toBeInstanceOf(PanelPlugin);
});
}); |
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
import '@ionic/core';
import 'ionicons';
export namespace Components {
interface AppHome {}
interface AppHomeA... |
import React from 'react';
import WindowSize from '@reach/window-size';
import MobileView from './MobileView';
import DesktopView from './DesktopView';
type DatepikProps = {
value?: Date;
onChange: (value: Date | undefined) => void;
onError?: (error: string) => void;
onBlur?: () => void;
};
export const Datep... |
import { useState, useEffect } from "react";
import { RepositoryItem } from "./RepositoryItem";
import '../styles/repositories.scss';
interface Repository {
name: string;
description: string;
html_url: string;
}
export function RepositoryList() {
const [repositories, setRepositories] = useState<Repos... |
import { execCmd } from "./execCmd";
type GitCommand = string & { _brand?: "GitCommand" };
type GitCommandResult = {
gitIsMissing: boolean;
commandFailed: boolean;
stdout: string;
};
export { runGitCommand };
async function runGitCommand(
gitCommand: GitCommand
): Promise<GitCommandResult> {
if (await gitI... |
import type { Permissions, Snowflake } from '../../../globals.ts';
import type { InteractionType } from './responses.ts';
import type { APIMessage } from '../channel.ts';
import type { APIGuildMember } from '../guild.ts';
import type { APIUser } from '../user.ts';
import type { LocaleString } from '../../../v8.ts';
exp... |
import React from 'react';
import { useFonts } from 'expo-font';
import { Inter_400Regular, Inter_500Medium } from '@expo-google-fonts/inter';
import { Rajdhani_500Medium, Rajdhani_700Bold } from '@expo-google-fonts/rajdhani';
import AppLoading from 'expo-app-loading';
import { StatusBar, LogBox } from 'react-native';... |
/**
*
*
_____ _ _ _ _ _ _ _ __ _ _
| __ \ | | | (_) | | | | | (_) / _(_) |
| | | | ___ _ __ ___ | |_ ___ __| |_| |_ | |_| |__ _ ___ | |_ _| | ___
| | | |/ _ \ | '_ \ / _ \| __| / _ \/ _` | | __| | __| '_ \|... |
import { types } from 'cassandra-driver'
import { Transform, TransformCallback } from 'stream'
import { AddEvent2 } from './block-fetcher'
import { DeleteEvent } from './block-reader'
import { LimitedCapacityClient } from '../limited-capacity-client'
import { Coin } from '../models/coin'
import { RpcBlock, RpcClient, R... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const config = new DocumentBuilder()
.setTitle('Nest tutorial')
.setDescripti... |
import React from "react";
import { StyleSheet, Modal, FlatList, View } from "react-native";
import colours from "../../constants/Colours";
import CustomButton from "../UI/CustomButton";
import CustomText from "../UI/CustomText";
import ResultItem from "./ResultItem";
const ResultsModal = (props: any) => {
return (
... |
import { ProtoFab, filenameOutsideFabLocations, getContentType } from '@fab/core'
import {
InlineAssets,
RenamedAssets,
RewireAssetsArgs,
RewireAssetsMetadata,
} from './types'
import hasha from 'hasha'
import path from 'path'
import { InvalidConfigError, _log } from '@fab/cli'
// @ts-ignore
import { isBinaryPr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* @file IconTennis 网球
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'IconTennis',
true,
(props: ISvgIconProps) => (
<svg... |
import { forwardRef, Module } from '@nestjs/common';
import { GroupService } from './group.service';
import { GroupController } from './group.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Group } from './entities/group.entity';
import { PositionModule } from '../position/position.module';
impor... |
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiAutoFocusModule} from '@taiga-ui/cdk';
import {TuiButtonModule, TuiLinkModule, TuiSvgModule} from '@taiga-ui/core';
import {TuiInputInlineModule} from '@taiga-ui/kit';
import {Tui... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { expect } from 'chai';
import { SemVer } from 'semver';
import * as TypeMoq from 'typemoq';
import { ConfigurationTarget, TextDocument, TextEditor, Uri } from 'vscode';
import { IDocumentManager, IWor... |
import { Injectable } from '@angular/core';
import { MsalService } from '@azure/msal-angular';
import { HttpClient } from '@angular/common/http';
import { tap } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class UserService {
cachedUser: any;
constructor(private authService: MsalServic... |
import React from 'react';
import {mountWithApp, mount} from 'test-utilities';
import {
IndexRowContext,
IndexSelectionChangeContext,
IndexContextType,
IndexContext,
} from '../context';
import {
BulkSelectionDataOptions,
HandleBulkSelectionOptions,
SelectionType,
} from '../types';
import {
useIndexRo... |
import Employees from '../models/employees';
import followers from '../models/followers';
import projects from '../models/projects';
import user_accept from '../models/user_accept';
var async = require("async");
var moment=require("moment");
const mongoose = require('mongoose');
var Followers = mongoose.model('follow... |
import { Utilities } from '../../../Helpers/Utilities';
describe('Utility Methods', () => {
describe('# Utilities.removeUndefined', () => {
it('should return an empty object', () => {
const obj = {
name: undefined,
location: undefined
};
expect(Utilities.removeUndefined(obj)).toEqual({});
});
... |
import { browser, element, by } from 'protractor';
export class FooPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
export { Types16 as default } from "../"; |
import { TestBed } from '@angular/core/testing';
import { E2EImportsModule } from 'e2e-imports.module';
import { MediafileRepositoryService } from './mediafile-repository.service';
describe(`FileRepositoryService`, () => {
beforeEach(() => TestBed.configureTestingModule({ imports: [E2EImportsModule] }));
it(... |
/* eslint-disable max-len */
export {
table,
wordList1,
wordList2
}; |
/**
* See more
* https://www.w3.org/TR/webauthn-2/#dictdef-authenticatorselectioncriteria
*/
export declare class WrapAuthenticatorSelectionCriteria {
authenticatorAttachment: "platform" | "cross-platform";
residentKey: "discouraged" | "preferred" | "required";
requireResidentKey: boolean;
userVerifi... |
import * as React from 'react';
import Home from '../home/Home.component';
import Register from '../user/register/Register.components';
import Login from '../user/login/Login.component';
import Article from '../article/Article.component';
import Hashtag from '../hashtag/Hashtag.component';
import Theme from '../theme/... |
// @ts-ignore
import { PrismaClient } from '@prisma/client';
import IGuild from '../interfaces/IGuild';
import NezumiClient from '../NezumiClient';
import NCache from './Cache';
import GuildData from './GuildData';
export default class Database {
private cache: NCache;
public prisma: PrismaClient;
public... |
<TS language="tr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Adresi ya da etiketi değiştirmek için sağ tuşa tıklayın</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { v4 as uuid } from 'uuid';
import { Router } from '@angular/router';
import { FormBuilder } from '@angular/forms';
import {
Component,
ChangeDetectionStrategy,
ChangeDetectorRef
} from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Observable } from 'rxjs';
import { ROUTE_ANIMATIO... |
import { injectable } from 'inversify';
import { ASTNode } from '../ASTNode';
import { LineOfCodeCountableNode } from '../LineOfCodeContableNode';
@injectable()
export class LineOfCode {
convert(astNode: ASTNode) {
return new LineOfCodeCountableNode(astNode);
}
} |
/**
* Copyright 2015 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 appli... |
import { Clause } from '../model/clause.interface';
function getJsonData() {
}
export function getData(): Clause[] {
// TODO: Error handling needs to be applied in case the string didn't parse to a json object
return JSON.parse(getJsonData());
} |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import * as mongoose from 'mongoose';
export type CatDocument = Cat & Document;
@Schema()
export class Cat {
@Prop()
name: string;
@Prop()
age: number;
@Prop()
breed: string;
}
export const CatSchema =... |
import { useMemo, ComponentType } from "react";
import styled from "@emotion/styled";
import { Route, useParams } from "react-router-dom";
import {
Header,
AccessTab,
EventLogTab,
GeneralTab,
GitHubCommitQueueTab,
NotificationsTab,
PatchAliasesTab,
PeriodicBuildsTab,
ProjectTriggersTab,
VariablesTab... |
/**
* Main program module
*/
import commander from 'commander';
import Client from 'rtv-client';
import pkg from './pkg';
import getCommands from './commands';
import { initConfig, readFromFile } from './config-manager';
import { log as outputLog, error as outputError, table as outputTable } from './output';
import ... |
import 'reflect-metadata';
import 'dotenv/config';
import express, { Request, Response, NextFunction } from 'express';
import 'express-async-errors';
import routes from './routes';
import AppError from './errors/AppError';
import createConnection from './database';
createConnection();
const app = express();
app.us... |
import { ScrollStrategy } from '@angular/cdk/overlay';
import { Renderer2 } from '@angular/core';
import { NzMeasureScrollbarService } from '../../services/nz-measure-scrollbar.service';
export declare class NzBlockScrollStrategy implements ScrollStrategy {
private document;
private renderer;
private nzMeas... |
import { AppPage } from './app.po';
describe('sanjaipk-blog App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
}); |
import * as React from 'react';
import { module } from 'angular';
import { uniqWith, isEqual } from 'lodash';
import { react2angular } from 'react2angular';
import {
IEcsDockerImage,
IEcsServerGroupCommand,
IEcsTargetGroupMapping,
} from '../../serverGroupConfiguration.service';
import { HelpField, TetheredSelect... |
import errorHandler from "errorhandler";
import app from "./app";
/**
* Error Handler. Provides full stack
*/
if (process.env.NODE_ENV === "development") {
app.use(errorHandler());
}
/**
* Start Express server.
*/
const server = app.listen(app.get("port"), () => {
console.log(
" App is running ... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { Injectable } from "@angular/core";
import { SwUpdate } from "@angular/service-worker";
@Injectable({
providedIn: "root"
})
export class SwUpdateService {
constructor(updates: SwUpdate) {
updates.available.subscribe(event => {
updates.activateUpdate().then(() => document.location.reload());
}... |
import { CtlGrid } from './CtlGrid'
import { YvEvent } from './YvanEvent'
import { YvanDataSourceGrid } from './YvanDataSourceGridImp'
export interface CtlGridColumn {
hidden: boolean
field: string
title: string
width: number
maxwidth: number
minwidth: number
align: 'right' | 'left' | 'center'
sortable... |
import { ElementStylesModifier } from "~/types";
const width: ElementStylesModifier = ({ theme, element }) => {
const { width } = element.data.settings;
if (!width) {
return {};
}
return Object.keys(theme.breakpoints).reduce((returnStyles, breakpointName) => {
if (!width[breakpointName... |
"use strict";
import { printComet2State } from "../../src/ui/print";
import { sys } from "@maxfield/node-casl2-comet2-common";
import { Comet2State } from "@maxfield/node-comet2-core";
suite("ui", () => {
test("printComet2State", () => {
const state: Comet2State = {
PR: 0x0000,
nex... |
import { Injectable } from '@angular/core';
import { Store, StoreConfig } from '@datorama/akita';
export interface AlertState {
message: string;
details: string;
type: 'error' | 'info';
}
export function createInitialState(): AlertState {
return {
message: '',
details: '',
type: 'info'
};
}
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import BaseWorkerPool from "./base/BaseWorkerPool";
import type {
ChildMessage,
OnCustomMessage,
OnEnd,
... |
export interface IDiscoverDBConfig<T> {
apiKey?: string;
defaultAPILang?: string;
authName?: string;
endPoints: T;
} |
import { Component, OnInit } from '@angular/core';
import { NavController } from '@ionic/angular';
import { PhotoViewer } from '@ionic-native/photo-viewer/ngx';
import { CartMealboxService } from '../service/cart-mealbox.service';
@Component({
selector: 'app-mealbox-detail',
templateUrl: './mealbox-detail.page.htm... |
import SafeEventEmitter from '@metamask/safe-event-emitter';
import { errorCodes, EthereumRpcError, serializeError } from 'eth-rpc-errors';
type Maybe<T> = Partial<T> | null | undefined;
export type Json =
| boolean
| number
| string
| null
| { [property: string]: Json }
| Json[];
/**
* A String specify... |
/*
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { Component } from '@angular/core';
@Component({
selector: 'nb-select-clean',
templateUrl: './select-clean.component.html',
styleUrls: ['./select-exa... |
import axios from "axios";
const wdBaseUrl = "http://localhost:4444";
import * as fs from "fs";
/**
* This file must be moved to a separate repository,
* since it can be used across protractor projects.
*
* There will be very few changes in this file going forward
* The coding style also differs a lot.
*
* Impr... |
import { Module } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ConfiguModule } from './config/config.module';
import { User } from './users/e... |
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { SearchComponent } from "./search.component";
const routes: Routes = [
{ path: "", component: SearchComponent },
];
@NgModule({
imports: [NativeS... |
export interface IAppConfiguration {
dhis2_url: string;
dhis2_username: string;
dhis2_password: string;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SlideshowComponent } from './slideshow.component';
import { BrowserTransferStateModule } from '@angular/platform-browser';
import { PointerService } from './pointer.service';
@NgModule({
imports: [
CommonModule,
... |
import { getTags } from '@linode/api-v4/lib/tags';
import classNames from 'classnames';
import { withSnackbar, WithSnackbarProps } from 'notistack';
import { clone } from 'ramda';
import * as React from 'react';
import { compose } from 'recompose';
import Plus from 'src/assets/icons/plusSign.svg';
import CircleProgress... |
export class User {
id!: number;
username!: string;
password!: string;
firstName!: string;
lastName!: string;
token?: string;
} |
import React from 'react';
import ReactDOM from 'react-dom';
import { createServer, Model } from 'miragejs'
import { App } from './App';
createServer({
models: {
transaction: Model,
},
seeds(server) {
server.db.loadData({
transactions: [
{
id: 1,
title: 'Ordenado',
... |
import { Component, OnInit } from '@angular/core';
import { TheaterService} from '../../service/theater.service';
import { error } from 'util';
@Component({
selector: 'app-theater',
templateUrl: './theater.component.html',
styleUrls: ['./theater.component.css']
})
export class TheaterComponent implements OnInit {... |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://localhost:3333',
});
export default api; |
import { Transaction } from '@apollo/client';
import { useMemo } from 'react';
import { TokenType } from '../constants/parameters';
import { TransactionStatus, useTransactionsStore } from '../stores/transaction';
export const useEmberTxStatus = (tokenType: TokenType) => {
const transactionMap = useTransactionsStore(... |
require('es6-promise');
import {Signature} from './common/models';
import {constructJsonPartialSignRequest, constructJsonSignRequest, constructPublicJsonRequest} from './common/util';
import Config from './config';
import {sendGetJSON, sendPostJSON} from './utils/http';
const base58 = require('bs58')
class Project {
... |
import {Component, Input, OnInit} from '@angular/core';
import {SpArtist} from '../../../class/spotify';
@Component({
selector: 'app-artist-view',
templateUrl: './artist-view.component.html',
styleUrls: ['./artist-view.component.scss']
})
export class ArtistViewComponent {
@Input() artist: SpArtist;
constru... |
// Automatically generated from process_tokens.py. Do not modify.
export interface BasicToken {
// Name or symbol of the Basic token.
name: string;
// Tokenized byte.
token: number;
// Address in ROM of routine to handle token, if any.
address: number | undefined;
}
export const TRS80_MODEL_II... |
import { useState, useEffect, useCallback, Key, useRef } from 'react';
import {
TreeSelect,
Tree,
Input,
Button,
Modal,
message,
Typography,
} from 'antd';
import config from '@/utils/config';
import { PageContainer } from '@ant-design/pro-layout';
import Editor from '@monaco-editor/react';
import { reque... |
export interface PageObject {
path: string
} |
import { EventRecord } from "../Types/Event";
export function byCreated(a: EventRecord, b: EventRecord): number {
if (a.date > b.date) {
return 1;
}
return -1;
}
export function byReversedCreated(a: EventRecord, b: EventRecord): number {
if (a.date < b.date) {
return 1;
}
return -1;
} |
// Copyright 2021 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 p from 'path';
import {URL} from 'url';
import {inspect} from 'util';
import * as utils from './utils';
import {FileImporter, Imp... |
import { List as _List_ } from "@aws-sdk/types";
import { _PublicKey } from "./_PublicKey";
export const _PublicKeyList: _List_ = {
type: "list",
member: {
shape: _PublicKey
}
}; |
import Magipack from './index';
const ERROR_REGEX = /^Magipack/;
describe('Magipack', () => {
describe('single bit options', () => {
let magipack: Magipack;
beforeEach(() => {
magipack = new Magipack([
{name: 'first', size: 1, type: 'bool'},
{name: 'second', size: 1, type: 'bool'},
... |
import * as path from 'path';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import * as assets from '../lib';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-assets-docker');
const asset = new assets.DockerImageAsset(stack, 'DockerImage', {
directory: path.join(__... |
import app from "../../src/app";
describe("'message' service", () => {
it("registered the service", () => {
const service = app.service("message");
expect(service).toBeTruthy();
});
}); |
import { Tooltip } from '@material-ui/core';
import { observer } from 'mobx-react-lite';
import React, {
DetailedHTMLProps,
ImgHTMLAttributes,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import { GungiStoreContext } from 'src/stores/GungiStore';
import { symbolToName } from '.... |
import { dev } from "$app/env"
import { getPosts } from "$lib/data/posts"
export const get = async () => {
return {
body: (await getPosts(import.meta.glob(`./blog/*.svx`))).filter((post) =>
!dev ? post.metadata.published : true
),
}
} |
import {
Entity,
Column,
PrimaryGeneratedColumn,
CreateDateColumn,
UpdateDateColumn,
ManyToOne,
JoinColumn,
} from 'typeorm';
import User from '@modules/user/infra/typeorm/entities/User';
@Entity('appointments')
class Appointment {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
provider_... |
import IndexPage from '../pages/index'
import Page from '../pages/page'
import PrisonerProfilePage from '../pages/prisonerProfile'
import SearchForAPrisonerPage from '../pages/searchForAPrisoner'
import SearchForAPrisonerResultsPage from '../pages/searchForAPrisonerResults'
import { Prisoner } from '../../server/data/p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.