text stringlengths 10 953k |
|---|
import * as React from 'react'
import BestPractices from './BestPractices'
import Types from './Types'
import States from './States'
import Variations from './Variations'
import Usage from './Usage'
import Rtl from './Rtl'
const SliderExamples = () => (
<>
<BestPractices />
<Types />
<States />
<Var... |
import type * as ts from 'typescript';
import { InterfaceOrClassDeclaration } from '../scope/scope';
import { core } from '../core/core';
export type GenericDeclarationSupported = InterfaceOrClassDeclaration;
export function extensionExpressionSupported(
expression: ts.LeftHandSideExpression
): expression is ts.Ide... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
/// <reference path="../types.d.ts" />
import { color } from "chroma.ts"
import { AABB, arrayFromFunction, DEG, M4, time, V, V3 } from "ts3dutils"
import { Mesh, Shader, TSGLContext } from "tsgl"
import posNormalColorVS from "../shaders/posNormalColorVS.glslx"
import varyingColorFS from "../shaders/varyingColorFS.glslx... |
import React from 'react';
import { CSSObject } from 'styled-components';
import {
ITheme,
IThemeNamespace,
ICSSProperties,
IThemeBase,
} from '@xcritical/theme';
/* BUTTON */
export type ButtonTags = 'button' | 'span' | 'a';
export type ICSSWideKeyword = 'initial' | 'inherit' | 'unset';
export interface IBa... |
/*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MerchantAccountComponent } from './merchant-account.component';
import { ClrFormsModule, ClrIconModule } from '@clr/angular';
import { ReactiveFormsModule } from '@angular/forms';
@NgModule({
imports: [
CommonModul... |
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import reportWebVitals from './reportWebVitals'
import Providers from './components/Providers'
import Router from './routes/Router'
ReactDOM.render(
<React.StrictMode>
<Providers>
<Router />
</Providers>
</React.StrictMod... |
/*
* Copyright (c) 2021.
* Author Peter Placzek (tada5hi)
* For the full copyright and license information,
* view the LICENSE file that was distributed with this source code.
*/
import { BuildInput, buildQuery } from '@trapi/query';
import { AxiosInstance } from 'axios';
import { UserPermission } from './entity'... |
import { Test, TestingModule } from '@nestjs/testing';
import { SystemService } from './system.service';
describe('SystemService', () => {
let service: SystemService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [SystemService],
}).compile();
... |
import { TestBed } from '@angular/core/testing';
import { OrderSaleServiceService } from './order-sale-service.service';
describe('OrderSaleServiceService', () => {
let service: OrderSaleServiceService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(OrderSaleServiceServic... |
import { NULL_ADDRESS } from '@celo/base/lib/address'
import { CeloContractName } from '@celo/protocol/lib/registry-utils'
import { getParsedSignatureOfAddress } from '@celo/protocol/lib/signing-utils'
import {
assertContainSubset,
assertEqualBN,
assertEqualBNArray,
assertEqualDpBN,
assertRevert,
assertSame... |
import React, { useRef } from 'react';
import { Animated, Text, TouchableOpacity, View } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import Ionicon from 'react-native-vector-icons/Ionicons';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { Actio... |
import * as React from 'react';
import { createSvgIcon } from '@fluentui/react-icons-mdl2';
const ToDoLogoBottomIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}>
<path d="M894 1082l-353 353h-89L55 1038l397-397 442 441z" /... |
/* tslint:disable */
// This is a generated file from running the "createIcons" script. This file should not be updated manually.
import React, { FC } from "react";
import { SVGIcon, SVGIconProps } from "@react-md/icon";
const RepeatOneSVGIcon: FC<SVGIconProps> = props => (
<SVGIcon {...props}>
<path d="M7 7h10... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
export interface VolumeCreationOptions {
size_gigabytes: number;
name: string;
description: string;
region: string;
}
export interface VolumeSnapshopCreationOptions {
name: string;
tags?: string[];
} |
import Bluebird from "bluebird";
import Datastore from "nedb";
import extend from "extend";
import http from "http";
import https from "https";
import { RoomBridgeStore, UserBridgeStore, AppServiceRegistration } from "matrix-appservice-bridge";
import { IrcBridge } from "./bridge/IrcBridge";
import { IrcServer, IrcServ... |
import {BehaviorSubject} from "rxjs/Rx";
import {Command} from "./Command";
import {DisabledMessage} from "./DisabledMessage";
import {PlateyDocument} from "../document/PlateyDocument";
import {Helpers} from "../../Helpers";
import {Well} from "../document/Well";
export class SelectRows implements Command {
private... |
// import * as L from 'leaflet';
// declare namespace LPlus {
// namespace GeometryUtil {
// function geodesicArea(latlngs: Coordinate[]): number;
// }
// namespace Control {
// class Search {
// constructor(options: any);
// }
// class mouseCoordinate {
// ... |
import * as assert from "assert";
import {
AccountSASPermissions,
AccountSASResourceTypes,
AccountSASServices,
AnonymousCredential,
BlobSASPermissions,
ContainerSASPermissions,
ContainerClient,
generateAccountSASQueryParameters,
generateBlobSASQueryParameters,
PageBlobClient,
BlobServiceClient,
... |
import { BigNumber } from 'ethers'
// exports for external consumption
export type BigintIsh = BigNumber | bigint | string | number
export enum TradeType {
EXACT_INPUT,
EXACT_OUTPUT
}
export const FACTORY_ADDRESS: { [chainId: number]: string } = {
56: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73',
97: '0xcA14... |
import { TestBed } from '@angular/core/testing';
import { SectorService } from './sector.service';
describe('SectorService', () => {
let service: SectorService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(SectorService);
});
it('should be created', () => {
exp... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { FeatureFlagStoreData } from 'common/types/store-data/feature-flag-store-data';
import { UnifiedScanResultStoreData } from 'common/types/store-data/unified-data-interface';
import { ContentPageComponent } from 'views... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
export interface ISpFxHttpClientProps {
apolloMissionImage: any;
} |
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css']
})
export class AppComponent {
} |
import { IModifyDeleter } from '../../definition/accessors';
import { AppBridges } from '../bridges';
export class ModifyDeleter implements IModifyDeleter {
constructor(private readonly bridges: AppBridges, private readonly appId: string) { }
public async deleteRoom(roomId: string): Promise<void> {
re... |
import BungieImage from 'app/dim-ui/BungieImage';
import ElementIcon from 'app/dim-ui/ElementIcon';
import Sheet from 'app/dim-ui/Sheet';
import { DimItem, DimSocket, PluggableInventoryItemDefinition } from 'app/inventory/item-types';
import { DefItemIcon } from 'app/inventory/ItemIcon';
import { allItemsSelector, prof... |
import { Assertions, GeneralSteps, Keyboard, Keys, Pipeline, Step, Waiter, Logger, Log } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock-client';
import { TinyApis, TinyDom, TinyLoader } from '@ephox/mcagar';
import Editor from 'tinymce/core/api/Editor';
import DOMUtils from 'tinymce/core/api/dom/DOMUtils... |
import { DrawingParametersEnum, ColoringModes } from "../MusicalScore/Graphical/DrawingParameters";
import { ChordSymbolEnum } from "../MusicalScore/VoiceData/ChordSymbolContainer";
import { FontStyles } from "../Common/Enums/FontStyles";
import { Dictionary } from "typescript-collections";
/** Possible options for th... |
import {XyToStatusPipe} from './xy-to-status.pipe';
import {XyToColorPipe} from 'projects/git/src/lib/git-command/xy-to-color.pipe';
describe('XyToStatusPipe', () => {
let pipe: XyToStatusPipe;
beforeEach(() => {
pipe = new XyToStatusPipe();
});
it('should create an instance', () => {
expect(pipe).to... |
/* tslint:disable */
/* eslint-disable */
/**
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0+dev-49-gaee5ef005
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the cla... |
/* eslint-disable react/jsx-one-expression-per-line */
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Link } from 'gatsby';
import * as utils from '../utils';
import { Row, Col, Icon, Select, Input, Menu, Button, Modal, Popover } from 'antd';
const { Option } = Select;
... |
export interface IText {
TextId: number;
PackageVersionId: number;
ResourceFileId: number;
TextKey: string;
OriginalValue: string;
DeprecatedInVersionId?: number;
FilePath: string;
PackageId: number;
FirstInVersion: string;
DeprecatedInVersion: string;
}
export class Text implements IText {
TextI... |
import {Component, OnInit} from '@angular/core';
import {ProductsService} from '../../../../_services/products.service';
import {Product} from '../../../../_classes/product';
import {Subscription} from 'rxjs/Subscription';
@Component({
selector: 'app-loyalty-products-table',
templateUrl: './loyalty-products-ta... |
import { Request, Response } from "express";
import { AuthenticateUserService } from "../services/AuthenticateUserService";
class AuthenticateUserController {
async handle(request: Request, response: Response){
const { code } = request.body
const service = new AuthenticateUserService();
... |
import { Component, Input } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterState } from '@angular/router';
import { NgSelectModule } from '@ng-select/ng-select';
import {
FeatureLevelDirective,... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* @file LensAlignment 镜头对准
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'lens-alignment',
false,
(h: IconHelper, props: ISvgIconProps) => (
... |
<TS language="zh_TW" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>右鍵點一下來修改位址或標記</translation>
</message>
<message>
<source>Create a new address</source>
<translation>產生一個新位址</translation... |
import React from 'react'
import styled from 'styled-components'
import { useWeb3React } from '@web3-react/core'
import { Card, CardBody, CardRibbon } from '@pancakeswap-libs/uikit'
import { Ifo, IfoStatus } from 'config/constants/types'
import useI18n from 'hooks/useI18n'
import UnlockButton from 'components/UnlockBut... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-vocabulary',
templateUrl: './vocabulary.component.html',
styleUrls: ['./vocabulary.component.css']
})
export class VocabularyComponent implements OnInit {
private heading: string = "Vocabulary";
private description: string = "In o... |
import { IsInt, IsNotEmpty, Length, IsPositive, IsNumber } from 'class-validator';
export class CreateProductDTO {
@Length(5, 100)
name: string;
@Length(5, 100)
state: string;
@Length(5, 100)
fkProfile: string;
} |
import * as path from "path";
import * as _ from "lodash";
import { Directory } from "./directory";
import {File} from "./file";
export enum ActionPriority {
PRESERVE = "preserve",
SyncLeftToRight = "sync left to right",
SyncRightToLeft = "sync right to left"
}
export enum FileCompareActionType
{
C... |
import React from 'react';
import { TouchableOpacity, View, Text, StyleSheet } from 'react-native';
import { Theme } from '../../components/theme';
const styles = StyleSheet.create({
container: {
height: 40,
width: '100%',
borderRadius: 5,
borderColor: Theme.darkBrown,
backgroundColor: Theme.bro... |
import { ServiceInputTypes, ServiceOutputTypes, TranscribeClientResolvedConfig } from "../TranscribeClient";
import { GetTranscriptionJobRequest, GetTranscriptionJobResponse } from "../models/models_0";
import {
deserializeAws_json1_1GetTranscriptionJobCommand,
serializeAws_json1_1GetTranscriptionJobCommand,
} from... |
export const getContext: import("@sveltejs/kit").GetContext = async () => {
const posts = await Promise.all(
Object.entries(import.meta.glob("/src/routes/blog/*.md")).map(
async ([path, page]) => {
const { metadata } = await page();
const filename = path.split("/").pop();
return { ..... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<app-account></app-account>
<router-outlet></router-outlet>
`
})
export class AppComponent { } |
export enum Border {
black,
borderless,
gold,
silver,
white,
} |
declare module "react-native-twilio-video-webrtc"{
import { ViewProps } from "react-native";
import React from "react";
interface TwilioVideoLocalViewProps extends ViewProps {
enabled: boolean;
ref?: React.Ref<any>;
}
interface TwilioVideoParticipantViewProps extends ViewProps {
trackIdentifier:... |
import { Konstanter } from './konstanter';
import client from 'part:@sanity/base/client';
import groq from 'groq';
const førsteTegnErLitenBokstav = (tekst: string): true | string =>
RegExp(/^[a-zæøå].*/).test(tekst)
? true
: 'Første tegn i feltet kan ikke være tall eller stor bokstav.';
const kunBokstaverOg... |
import path from 'path'
import pluginTester from 'babel-plugin-tester'
import { addToCypressConfigPlugin } from '../../src/ast-utils/addToCypressConfigPlugin'
import { addE2EDefinition } from '../../src/ast-utils/astConfigHelpers'
pluginTester({
pluginName: 'addToCypressConfigPlugin: e2e',
plugin: () => {
ret... |
/* eslint-disable no-undef */
import { useReducer } from 'react';
import { ActionType } from '../interface';
export default (props:any) => {
function reducer(state: any, action: ActionType) {
// 将触发reducer后更新的状态存储到本地已达到多个页面数据共享
window.sessionStorage.setItem('payload', JSON.stringify(action.payload)... |
import type AbstractScene from '../scenes/AbstractScene';
import Background from './Background';
export default class GameComponents {
scene: AbstractScene;
events: Phaser.Events.EventEmitter;
grd: CanvasRenderingContext2D | null;
background: Background;
constructor(scene: AbstractScene) {
this.scene ... |
export interface Snug {
id?: number;
name?: string;
thumbnail?: string;
description?: string;
createdAt?: Date;
updatedAt?: Date;
} |
export const COMPONENT_TYPES = {
DATE_ONLY: 'date-only',
TIME_ONLY: 'time-only',
DATE_TIME: 'date-time',
} as const;
export const MONTHS_IN_ROW = 4;
export const YEARS_IN_ROW = 4;
export const DAYS_IN_WEEK = 7;
export const KEYS = {
LEFT: 'ArrowLeft',
LEFT_IE: 'Left',
RIGHT: 'ArrowRight',
RIGHT_IE: 'R... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { atom } from "recoil";
import RecoilAtomKeys from "../../constants/recoil";
export type CustomCurrentUser = {
email: string;
};
type AuthAtomState = {
currentUser: CustomCurrentUser | null;
};
const authState = atom<AuthAtomState>({
key: RecoilAtomKeys.Auth,
default: {
currentUser: null,
},
});... |
import {
ProcessShadowUpdateValue,
WeightOfProcessShadowUpdateValue,
} from './dto/process-shadow-update.dto';
export type ProcessShadowUpdateValueInterface = ProcessShadowUpdateValue;
export type WeightOfProcessShadowUpdateValueInterface =
WeightOfProcessShadowUpdateValue;
export interface ICreateShadow {
Sha... |
import { UserSearchComponent } from './../user-search/user-search.component';
import { async, ComponentFixture, TestBed, inject } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import {
SharedModule, ServerResponse, PaginationService, ResourceService,
ConfigServi... |
import { CLIENT_NOT_READY, ERROR_CLIENT_DESTROYED } from '../../../logger/constants';
import { loggerMock } from '../../../logger/__tests__/sdkLogger.mock';
import { validateIfNotDestroyed, validateIfOperational } from '../isOperational';
describe('validateIfNotDestroyed', () => {
afterEach(() => { loggerMock.mock... |
import SettlementException from './SettlementException';
export class SettlementQueryException implements SettlementException {
public readonly message: string = 'Failed to retrieve settlements';
public readonly name: string = 'BITPAY-SETTLEMENTS-GET';
public readonly code: number = 152;
public readonly stack:... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About UCoin</source>
<translation>О UCoin</translation>
</message>
<message>
<location line="... |
/*
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* 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... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Copyright 2016-2019 IBM Corp. 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.apa... |
<TS language="it" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Fare clic con il tasto destro del mouse per modificare l'indirizzo o l'etichetta</translation>
</message>
<message>
<source>Create ... |
import React from 'react';
import {Link} from 'react-router-dom';
import {Image} from 'theme-ui';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import {Box, Flex} from 'theme-ui';
import {FRONTEND_BASE_URL} from '../../config';
import {
colors,
notification,
Badge,
Button,
Input,
Paragraph,... |
import { QueryInterface, SequelizeStatic } from 'sequelize';
export = {
up: (queryInterface: QueryInterface, Sequelize: SequelizeStatic) => {
},
down: (queryInterface: QueryInterface, Sequelize: SequelizeStatic) => {
}
}; |
import { TSESLint } from '@typescript-eslint/experimental-utils';
import rule, { MessageIds, Options } from '../../src/rules/naming-convention';
import {
PredefinedFormatsString,
selectorTypeToMessageString,
Selector,
} from '../../src/rules/naming-convention-utils';
import { RuleTester, getFixturesRootDir } from... |
import { faCaretLeft, faHandPaper } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Navbar, Nav, Form, Button } from 'react-bootstrap';
import { RubricRequirement } from '../../../__generated__/types';
import RubricMenu from '../Rubric/RubricMenu';
im... |
export default class CarDto {
model: string;
number: string;
} |
import styled from '@emotion/styled'
export const Grid = styled.div`
align-items: flex-start;
display: flex;
justify-content: space-between;
> * {
width: calc(50% - 1rem);
}
@media (max-width: 600px) {
align-items: center;
flex-direction: column;
> * {
width: 100%;
}
}
`
exp... |
import { Module } from '@nestjs/common';
import { SearchController } from './search.controller';
import { SearchService } from './search.service';
import { ArticleModelProvider } from '../../models/article.model';
@Module({
controllers: [SearchController],
providers: [ArticleModelProvider, SearchService],
})
e... |
import * as React from 'react'
import styled, { css } from 'styled-components'
import { padding, color, radius, font } from '@tinacms/styles'
export interface InputProps {
error?: boolean
small?: boolean
placeholder?: string
}
export const InputCss = css<InputProps>`
padding: ${padding('small')};
border-rad... |
import { DirectConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectConnectClient";
import { DeleteBGPPeerRequest, DeleteBGPPeerResponse } from "../models/models_0";
import {
deserializeAws_json1_1DeleteBGPPeerCommand,
serializeAws_json1_1DeleteBGPPeerCommand,
} from "../protocols/Aws... |
import * as React from 'react';
import { useState } from 'react';
import Preview from './Preview';
export interface GroupConsumerProps {
previewPrefixCls?: string;
}
export interface GroupConsumerValue extends GroupConsumerProps {
isPreviewGroup?: boolean;
previewUrls: Map<number, string>;
setPreviewUrls: Rea... |
// @strictNullChecks: true
// @noimplicitany: true
// @declaration: true
type Box<T> = {
value: T;
}
type Boxified<T> = {
[P in keyof T]: Box<T[P]>;
}
function box<T>(x: T): Box<T> {
return {value: x};
}
function unbox<T>(x: Box<T>): T {
return x.value;
}
function boxify<T>(obj: T): Boxified<T> {
... |
import { pri } from '../../../node';
import text from '../../../utils/text';
pri.commands.registerCommand({
name: ['dev'],
options: {
debugDashboard: {
alias: 'd',
description: 'Debug dashboard',
},
watchOnly: {
alias: 'w',
description: 'Watch only for component',
},
pat... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HeaderComponent } from '... |
import React, { FunctionComponent } from 'react';
import styles from '../../styles/styles.module.css';
export const Arrow: FunctionComponent<ArrowProps> = (props: ArrowProps) => (
<button className={styles.carouselArrow} onClick={props.onClick}></button>
);
export interface ArrowProps {
onClick: (...args: any) => an... |
import Phaser from 'phaser'
import AnimationProgress from './AnimationProgress'
const config: Phaser.Types.Core.GameConfig = {
type: Phaser.AUTO,
width: 800,
height: 600,
backgroundColor: '#2d2d2d',
parent: 'phaser-example',
scene: [AnimationProgress],
scale: {
mode: Phaser.Scale.ScaleModes... |
<TS language="af" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Regsklik om adres of etiket te verander</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
// These types are auto-generated from the GraphQL schema
import { gql } from 'graphql-request'
export const unrevisedEntitiesFragment = gql`
fragment unrevisedEntitiesData on AbstractEntityConnection {
nodes {
__typename
id
alias
... on Applet {
currentRevision {
title
... |
export function addBinary(a: string, b: string): string {
while (a.length < b.length) {
a = '0' + a;
}
while (b.length < a.length) {
b = '0' + b;
}
let carry = 0;
let point = a.length - 1;
const result: number[] = [];
while (point >= 0) {
let v = Number(a[point]) + Number(b[point]) + carry;
... |
export * from './drawer.component'
export * from './context' |
import { CONFIG_VARS } from '~/types/configuration'
const CONSTANTS = (): CONFIG_VARS => ({
apiVersion: process.env.npm_package_version,
port: 8080,
jwt: {
duration: 60 * 60 * 8, // seconds - minutes - hours
secret: process.env.JWT_SECRET
},
sentry: {
dsn: process.env.SENTRY_DSN
},
mongo: {
url: process... |
import * as astar from '../pages/blog/astar-csharp.mdx'
import * as dstructError from '../pages/blog/dstruct-error-list-map-tree.mdx'
import * as dstructPoster from '../pages/blog/dstruct-poster.mdx'
import * as dstructSet from '../pages/blog/dstruct-set-multiset-stack.mdx'
import * as dstructTables from '../pages/blog... |
export { CollisionType, CollisionValue };
import { Vertex } from "./Vertex";
import { CollisionResult } from "./CollisionResult";
enum CollisionType
{
Radius,
Rectangular,
Horizontal,
Vertical
}
class CollisionValue
{
private _Active:boolean;
private _Tags:string[];
private _Scale:Vertex;... |
import { NowRequest, NowResponse } from "@now/node";
export default (req: NowRequest, res: NowResponse) => {
res.json({ name: "John", email: "john@example.com" });
}; |
import "../index";
import { Errors } from "typescript-rest";
import { Model, Repository } from "sequelize-typescript";
import { sequelize } from "../index";
import { CountOptions, FindOptions, Identifier, InstanceUpdateOptions } from "sequelize";
import { ScopeOptions } from "sequelize/types/lib/model";
export abstrac... |
import Link from 'next/link'
import fetch from 'node-fetch'
import { useRouter } from 'next/router'
import Header from '../../components/header'
import Heading from '../../components/heading'
import components from '../../components/dynamic'
import ReactJSXParser from '@zeit/react-jsx-parser'
import blogStyles from '..... |
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import * as Sentry from '@sentry/node';
import '@sentry/tracing';
import * as cookieParser from 'cookie-parser';
import * as admin from 'firebase-admin';
import { AppModule } from './app.module';
admin.initializeApp({
creden... |
import vue from './vue';
import html from './html';
import iconify from './iconify';
import windicss from './windicss';
import visualizer from './visualizer';
const plugins = [vue, ...html, ...iconify, windicss, visualizer];
export default plugins; |
import { Logger } from '@nestjs/common';
import {
WebSocketGateway,
SubscribeMessage,
MessageBody,
OnGatewayInit,
OnGatewayConnection,
OnGatewayDisconnect,
WebSocketServer,
} from '@nestjs/websockets';
import { Server, Socket } from 'socket.io';
import { ChatService } from './chat.service';
import { CreateChatDt... |
// automatically generated by the FlatBuffers compiler, do not modify
import * as flatbuffers from 'flatbuffers';
export class F64 {
bb: flatbuffers.ByteBuffer|null = null;
bb_pos = 0;
__init(i:number, bb:flatbuffers.ByteBuffer):F64 {
this.bb_pos = i;
this.bb = bb;
return this;
}
v():number {
return this... |
import {
AfterViewInit,
Component,
ComponentFactory,
ComponentRef,
ElementRef,
forwardRef,
HostBinding,
HostListener,
Inject,
Injector,
Renderer,
TemplateRef,
ViewChild,
ViewContainerRef
} from "@angular/core";
import {DirectiveBase} from "../../util/directive-bas... |
import { of as observableOf, Observable } from 'rxjs';
import { Injectable } from '@angular/core';
import { Contacts, RecentUsers, UserData } from '../data/users';
@Injectable()
export class UserService extends UserData {
private time: Date = new Date;
private users = {
nick: { name: 'Atakan Demirkol', pict... |
import {Injectable} from '@angular/core';
import * as Binance from '../../assets/binance/bnbSDK.js';
import {getAddressFromPrivateKey} from './binance-crypto';
import {Observable, of} from 'rxjs';
import {HttpClient, HttpErrorResponse} from '@angular/common/http';
import {catchError, map} from 'rxjs/operators';
export... |
import arrowButton from "../objects/arrowButton";
import compoundLabel from "../objects/compoundLabel";
import button from "../objects/button";
import buttonOutline from "../objects/buttonOutline";
export default class O2gs extends Phaser.Scene {
private O2g: number;
private H2g: number;
private H2Og: numb... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.