text stringlengths 10 953k |
|---|
import { Uri } from '../types';
import { HttpVerb, RequestOptions, RequestProvider, Response } from '../http';
import { AxiosProvider } from './AxiosProvider';
export class Api {
constructor(readonly provider: RequestProvider = new AxiosProvider()) {}
get = (uri: Uri, options: RequestOptions = RequestOptions.Json... |
export * from './react/gpu-canvas'
export * from './react/animation-loop' |
import { asFunction, AwilixContainer } from "awilix";
export const registerModelValidators = (container: AwilixContainer): void => {
// container.register({
// exampleValidator: asFunction(createYourValidator).singleton(),
// });
}; |
// *** 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 * as esbuild from 'esbuild-wasm';
import axios from 'axios';
import localforage from 'localforage';
const fileCache = localforage.createInstance({
name:'filecache'
});
export const fetchPlugin = (inputCode: string)=>{
return {
name:'fetch-plugin',
setup(build: esbuild.PluginBuild... |
export * from './src/source';
export * from './src/config'; |
import type { AWS } from '@serverless/typescript';
const serverlessConfiguration: AWS = {
service: 'desafio-serverless',
frameworkVersion: '2',
plugins: ['serverless-esbuild',
'serverless-dynamodb-local',
'serverless-offline'],
provider: {
name: 'aws',
runtime: 'nodejs14.x',
... |
export class LoginDto {
username: string
password: string
} |
export interface SkillRating {
id?: string;
rating: number;
comment: string;
clientId: string;
professionalId: string;
skillId: string;
postedAt: Date;
} |
// (C) Copyright 2015 Moodle Pty Ltd.
//
// 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 agree... |
import React from 'react';
import styled from '@emotion/styled';
const Image: React.FCX<{ src: string }> = ({ src, className }) => {
return <img className={className} src={src} alt='slide image' />;
};
export const StyledImage = styled(Image)`
position: absolute !important;
top: 0;
left: 0;
width: 100vw;
... |
import { Button, MenuItem, Select, TextField } from "@material-ui/core";
import React, { useContext } from "react";
import { Action, ActionType, AppContext } from "./state";
import { sampleLevels } from "./sampleLevel";
export const selectValueReducer = (
selectValue: string,
action: Action
): string => {
switch... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Code generation: Create "get structure" functions
* -------------------------------------------------
* This file generations the functions found in getStructureFunctions.ts
*
* Right now these are only used to get the structure for populating new overloads. This code needs a lot of work and
* might be used... |
import { EntityRepository, Repository } from 'typeorm';
import { Country } from './country.entity';
@EntityRepository(Country)
export class CountryRepository extends Repository<Country> {} |
import YaceBehavior from "../core/YaceBehavior";
import Drawable from "../core/interfaces/Drawable";
import YaceScene from "../core/YaceScene";
import TileSet from "../utils/TileSet";
export default class TileRenderer extends YaceBehavior implements Drawable {
public tileSet: TileSet;
public dirty: boolean;
... |
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import { App } from './components/App/index'
import './styles.css'
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./sw.js')
.then(() => navigator.serviceWorker.ready.then((worker) => {
worker.sync.register('syncdat... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TokenInterceptor } from './interceptors/token.interceptor';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
@NgModule({
declarations: [],
imports: [
CommonModule
],
providers: [
{
provide... |
import { PageModifier, trackModifierExecution } from "../_interface";
import CSSOMProvider, {
isMediaRule,
isStyleRule,
isSupportsRule,
} from "./_provider";
@trackModifierExecution
export default class ResponsiveStyleModifier implements PageModifier {
private oldWidth = window.innerWidth;
private ... |
import { Amount } from './TransactionDetails/Amount'
import { TransactionDetailsContainer } from './TransactionDetails/Container'
import { Row } from './TransactionDetails/Row'
import { Status } from './TransactionDetails/Status'
import { TransactionId } from './TransactionDetails/TransactionId'
import { Transfers } fr... |
import { useCallback } from "react";
import type { MutationHook } from "@commerce/utils/types";
import { CommerceError } from "@commerce/utils/errors";
import useSignup, { UseSignup } from "@commerce/auth/use-signup";
import type { SignupBody } from "../api/customers/signup";
import useCustomer from "../customer/use-cu... |
import * as React from 'react';
import { Box, Heading } from 'grommet';
import { Icon } from '../Icon';
import { HoverHide, HoverShow, StyledRow } from './Styled';
import { CopyToClipboard, formatTime, joinStringsGrammatically } from '../../Util';
import { PlayTokenFragment } from '../../Core/Player/Queries/types/PlayT... |
import {
Box,
Center,
Container,
Text,
useMultiStyleConfig,
} from '@chakra-ui/react'
const CitizenPrivacy = (): JSX.Element => {
const styles = useMultiStyleConfig('PrivacyTerms', {})
return (
<>
<Box sx={styles.headerContainer}>
<Text sx={styles.headerText}>Privacy Policy</Text>
... |
import { defineQuery } from 'bitecs'
import {
Mesh,
Points,
SphereBufferGeometry,
BoxBufferGeometry,
PlaneBufferGeometry,
BufferGeometry,
MeshBasicMaterial,
Vector3,
Matrix4,
Quaternion,
LineBasicMaterial,
Line,
MeshStandardMaterial,
Material,
Float32BufferAttribute
} from 'three'
import {... |
import { exampleUUID, createTestClient, randomUUID } from '@nice-cms/testing'
import {
createGallery,
deleteGalleryStack,
fetchGallery,
Gallery,
hydrateGallery,
hydrateStack,
hydrateStackImage,
Stack,
tagGalleryStack,
untagGalleryStack,
updateGalleryStack,
} from '../gallery'
import {
makeGaller... |
import * as TypeGraphQL from "type-graphql";
import { CreateManyMovieArgs } from "./args/CreateManyMovieArgs";
import { Movie } from "../../../models/Movie";
import { AffectedRowsOutput } from "../../outputs/AffectedRowsOutput";
@TypeGraphQL.Resolver(_of => Movie)
export class CreateManyMovieResolver {
@TypeGraphQL.... |
import { TableCell, Typography } from '@material-ui/core';
import React from 'react';
interface IProps {
content: string;
}
export const Cell: React.FC<IProps> = ({ content }) => (
<TableCell align="left">
<Typography variant="body2" component="span">
{content}
</Typography>
</TableCell>
); |
import "./typings";
declare global {
export const love: import("./typings/love/handlers").Handlers & {
handlers: import("./typings/love/handlers").Handlers;
};
} |
// some tests |
/* tslint:disable:no-default-export */
import { Header, ListTable } from '@opengov/component-library/capital';
import React from 'react';
import { ComponentExample, PropsTable } from '../../../components';
import LayoutComponents from '../../../components/Layouts/LayoutComponents';
export default () => (
<LayoutCo... |
export declare class ParametrosController {
instaladorLicencia(data: any): Promise<{
info: {
licencia: number;
nombreEmpresa: any;
database: any;
nombreTienda: any;
codigoTienda: any;
ultimoTicket: any;
botonesConPrecios: an... |
import {Injectable} from '@angular/core';
import {Observable, ReplaySubject} from 'rxjs';
import {HttpClient} from '@angular/common/http';
import {JwtHelperService} from '@auth0/angular-jwt';
import {tap} from 'rxjs/operators';
import {environment} from '../environments/environment';
import {NavController} from '@ionic... |
import React from 'react';
import { useStateLink } from '@hookstate/core';
import { Logger } from '@hookstate/logger';
interface Task { name: string }
export const ExampleComponent = () => {
const state = useStateLink([{ name: 'First Task' }, { name: 'Second Task' }] as Task[])
.with(Logger); // enable th... |
#!/usr/bin/env node
import fs from 'fs';
import _ from 'lodash';
import mkdirp from 'mkdirp';
import path from 'path';
import TurndownService from 'turndown';
import { getWidgets } from '../src/miro/miro-connector';
import { TEMPLATES_DIR } from './consts';
/**
* Tool to create Miro templates based on an existing M... |
import cheerio from 'cheerio';
import {SiteData} from './SiteData';
import {fetch} from '../spider/fetch';
import RemoteData from '../spider/RemoteData';
import RemoteImage from '../spider/RemoteImage';
async function fetchRemoteData(url: string): Promise<RemoteData> {
const images: RemoteImage[] = [];
try {
... |
import { IBacktestDataPoint } from './ibacktest-data-point';
export interface IBacktestResult {
rebalanceData: IBacktestDataPoint[];
holdingData: IBacktestDataPoint[];
} |
import { PublicKey } from "@solana/web3.js";
import fetch from "node-fetch";
export async function airdropUsdc(publicKey: PublicKey, amount: number) {
const body = {
key: publicKey.toString(),
amount,
};
await fetch(`${process.env.server_url}/faucet/USDC`, {
method: "post",
body: JSON.stringify(b... |
export const languages = {
ab: "Abkhazian",
aa: "Afar",
af: "Afrikaans",
ak: "Akan",
sq: "Albanian",
am: "Amharic",
ar: "Arabic",
an: "Aragonese",
hy: "Armenian",
as: "Assamese",
av: "Avaric",
ae: "Avestan",
ay: "Aymara",
az: "Azerbaijani",
bm: "Bambara",
ba: "Bashkir",
eu: "Basque",
... |
export default (html: string) => {
const template = document.createElement('template');
template.innerHTML = html;
return template.content;
}; |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { PoUiModule } from 'src/app/core/po-ui.module';
import { LayoutRoutingModule } from './layout-routing.module';
import { ListComponent } from './list/list.component';
import {... |
import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins";
import { ApwContext } from "~/types";
export default () =>
new GraphQLSchemaPlugin<ApwContext>({
typeDefs: /* GraphQL */ `
type PbApwPageSettings {
workflowId: ID
}
extend type PbPage... |
// *** 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";
/**
* R... |
import { BrowserModule } from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import { AppComponent } from './app.component';
import {HttpModule} from '@angular/http';
import {AppRoutingModule} from './app-routing.module';
import {SharedModule} from './shared/shared.module';
import {ShoppingListMod... |
import React from "react";
import { Tooltip, IconButton } from "@material-ui/core";
import { OpenInNew } from "@material-ui/icons";
export type OutLinkProps = {
href: string;
title?: Exclude<React.ReactNode, null | undefined>;
};
export const OutLink: React.FC<OutLinkProps> = ({ href, title = "" }) => {
return ... |
import React, {
ComponentPropsWithoutRef,
ComponentPropsWithRef,
ReactNode,
} from 'react';
import {
Field,
HelpMessage,
FieldInput,
withInputClassModifier,
} from '@axa-fr/react-toolkit-form-core';
import { InputManager } from '@axa-fr/react-toolkit-core';
import Number from './Number';
type Props = Co... |
/// <reference types="baseui"/>
import * as React from 'react';
import { StyletronComponent } from 'styletron-react';
export interface KIND {
neutral: 'neutral';
primary: 'primary';
positive: 'positive';
warning: 'warning';
negative: 'negative';
custom: 'custom';
}
export interface VARIANT {
solid: 'soli... |
import { monaco as m } from "@monaco-editor/react";
import * as Monaco from "monaco-editor";
import { emmetHTML, emmetCSS } from "emmet-monaco-es";
import emitter, { EVENT_TYPES } from "./event";
import localForage from "localforage";
import path from "path";
import { VFile, fs } from "./fs";
import { autorun } from "m... |
import { query as q } from 'faunadb';
import { fauna } from '../../../services/fauna';
import { stripe } from '../../../services/stripe';
export async function saveSubscription(
subscriptionId: string,
customerId: string,
createAction = false,
) {
const userRef = await fauna.query(
q.Select(
'ref',
... |
/* global globalThis */
import { DataObject, Procedure } from "@olenbetong/appframe-data";
/**
* Converts a database object parameter type to a typescript type
*
* @param {string} type Data object parameter type
* @param {boolean | undefined} isProc Whether the target is a data object field or a procedure paramet... |
export { default as getOktaApps } from './getOktaApps' |
/**
* @license
* Copyright 2022 Google LLC. 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 { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { filter, map } from 'rxjs/operators';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.c... |
import styled from 'styled-components';
import { Link } from 'gatsby';
export const Container = styled.nav``;
export const MenuLinksList = styled.ul`
font-size: 1.2rem;
font-weight: 300;
`;
export const MenuLinksItem = styled.li`
padding: 0.5rem 0;
.active {
color: #1fa1f2;
}
`;
export const MenuLink... |
export const RUN_MODE = {
LOCAL:'local',
STANDALONE:'standalone',
YARN_SESSION:'yarn-session',
YARN_PER_JOB:'yarn-per-job',
YARN_APPLICATION:'yarn-application',
};
export const DIALECT = {
FLINKSQL:'FlinkSql',
SQL:'Sql',
JAVA:'Java',
}; |
import { DialogContentText } from "@material-ui/core";
import ActionDialog from "@saleor/components/ActionDialog";
import useAppChannel from "@saleor/components/AppLayout/AppChannelContext";
import DeleteFilterTabDialog from "@saleor/components/DeleteFilterTabDialog";
import SaveFilterTabDialog, {
SaveFilterTabDialog... |
export class Rule {
constructor(
public code: string,
public descriptionArr: string,
public score: number,
public isActive: boolean
) { }
} |
export enum AssessmentManagmentAction {
approve = 'approve',
decline = 'decline',
} |
import { constants, providers } from 'ethers';
import {
BaseDebtToken,
BaseDebtTokenInterface,
} from '../baseDebtToken-contract';
import BaseService from '../commons/BaseService';
import {
eEthereumTxType,
EthereumTransactionTypeExtended,
InterestRate,
ProtocolAction,
tEthereumAddress,
transactionType,... |
import { ApiModelProperty } from '@nestjs/swagger';
import { IsString, IsDefined, IsEmail, IsDate, IsEnum } from 'class-validator';
import { Type } from 'class-transformer';
import { IUser } from '../repository/schema/user.entity';
import { Role } from '../repository/enum/role.enum';
export class UserDto implements IU... |
export enum Configuration {
HOST = 'HOST',
PORT = 'PORT',
SQL_URI = 'SQL_URI',
} |
/**
* Object Storage Service API
* Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources.
For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
[Overview of Archive Storage](/Content/Archive/Concepts/archives... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http';
import { ActivatedRoute, Router } from '@angular/router';
import { Subscription } from 'rxjs';
import { JhiEventManager, JhiParseLinks, JhiAlertService } from 'ng-jhipster';... |
import {
LayoutElement,
LayoutElementProperties,
} from "@vertigis/web/components";
import { useWatchCollectionAndRerender } from "@vertigis/web/ui";
import MenuList from "@vertigis/web/ui/MenuList";
import Typography from "@vertigis/web/ui/Typography";
import { FC } from "react";
import PointsOfInterestModel ... |
import { Field } from "../gen/siren";
import { BitcoinFeeService } from "./bitcoin/bitcoinFeeService";
import { getLogger } from "./logging/logger";
import { BitcoinWallet } from "./wallets/bitcoin";
import { EthereumWallet } from "./wallets/ethereum";
const logger = getLogger();
export interface DataSourceParameters... |
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Ml5ClassificationService } from '../../services/ml5-classification/ml5-classification.service';
import { ML5ClassificationResult } from '../../model/ML5ClassificationResult';
import * as d3 from 'd3';
export interface Data {
letter: ... |
import Bootstrapper from './bootstrapper';
import CommandFactory from './command-factory';
import WorkspaceAdaptor from './adaptors/workspace';
import ContentProvider from './content-provider';
import NormalisationRuleStore from './normalisation-rule-store';
import SelectionInfoRegistry from './selection-info-registry'... |
import {
AfterViewInit,
Component,
ElementRef,
HostListener,
Inject,
OnDestroy,
OnInit,
ViewChild,
ViewEncapsulation
} from '@angular/core';
import {PharosApiService} from '../pharos-services/pharos-api.service';
import {HeaderOptionsService} from '../pharos-services/header-options.service';
import {D... |
import { MockRouter } from "DevTools/MockRouter"
import React from "react"
import { storiesOf } from "storybook/storiesOf"
import { routes as artworkRoutes } from "../Artwork/routes"
storiesOf("Apps/Artwork", module)
.add("Default", () => {
return (
<MockRouter
routes={artworkRoutes}
initia... |
import React, { useState } from 'react';
import { ChevronRight, Edit, HelpCircle, Lock, ToggleRight, User } from 'react-feather';
import { useLocation } from 'react-router';
import { CATEGORY, CUSTOMER, DASHBOARD, PRODUCT } from 'src/constants/pages';
import { useAppDispatch, useAppSelector } from 'src/hooks/redux';
i... |
import NextLink, { LinkProps as NextLinkProps } from 'next/link';
const Link: React.FC<NextLinkProps> = ({ href, children, ...props }) => {
return (
<NextLink href={href}>
<a {...props}>{children}</a>
</NextLink>
);
};
export default Link; |
export interface DocumentMetadata {
title: string;
description: string;
keywords: string;
}
export const documentConstants: { [s: string]: DocumentMetadata } = {
LANDING: {
title: '0x: Powering the decentralized exchange of tokens on Ethereum',
description:
'0x is an open pr... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
// Python Tutor: https://github.com/pgbovine/OnlinePythonTutor/
// Copyright (C) Philip Guo (philip@pgbovine.net)
// LICENSE: https://github.com/pgbovine/OnlinePythonTutor/blob/master/LICENSE.txt
// OPT live programming prototype started on 2016-05-30
// first launched as a "Live Programming Mode" button on main OPT ... |
import React from "react"
import { Box, Sans } from "@artsy/palette"
import { createFragmentContainer, graphql } from "react-relay"
import { ViewingRoomPullQuote_viewingRoom } from "v2/__generated__/ViewingRoomPullQuote_viewingRoom.graphql"
interface ViewingRoomPullQuoteProps {
viewingRoom: ViewingRoomPullQuote_view... |
import packageInfo from "./package.json";
import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parse... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". //
//////////////////... |
import {
Component,
ComponentInterface,
Element,
Event,
EventEmitter,
Host,
Prop,
h,
Listen,
} from '@stencil/core';
import classNames from 'classnames';
@Component({
tag: 'ino-tab',
styleUrl: 'ino-tab.scss',
shadow: false,
})
export class Tab implements ComponentInterface {
@Element() el!: H... |
import axios from 'axios'
import {Resource, ResourceKey, ResourcePaths} from 'rest-resources'
import {AxiosResourceAdapter} from './AxiosResourceAdapter'
describe('AxiosResourceAdapter', () => {
let Adapter: AxiosResourceAdapter<TestModel>
@Resource('TestModels')
@ResourcePaths({
findAll: 'test-models-findA... |
#!/usr/bin/env node
import yargs from "yargs";
import { inspectChat } from "./commands/liveChat";
import { epicfail } from "epicfail";
epicfail(require.main?.filename!);
const argv = yargs(process.argv.slice(2))
.scriptName("masterchat")
.usage("$0 <video>", "inspect chat", (yargs) =>
yargs.positional("video... |
import * as React from "react";
import { Moment } from "moment";
import { makeStyles, Typography } from "@material-ui/core";
import GenericCalendarView, { DayViewProps } from "components/GenericCalendarView";
import { Link } from "react-router-dom";
import StylelessLink from "components/StylelessLink";
import { ISingle... |
import { renderer_render } from '@core/renderer/exports';
UTest({
'slot test' () {
var template = `
define Foo {}
section {
Foo {
slot fooTest (event) {
$(event.currentTarget).text('Baz');
}
button x-signal='click: fooTest' > 'Foo'
}
}
`;
var dom = renderer_rende... |
import { DynamicFormElementTemplate } from '../dynamic-form-element-template';
export interface DynamicFormModalTemplate extends DynamicFormElementTemplate {
title?: string;
titleHtml?: string;
width?: string;
minWidth?: string;
maxWidth?: string;
classNameTitle?: string;
classNameChildren?: string;
cl... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
export const OperationListResult: core... |
import OtherAccountSidebar from './OtherAccountSidebar.container'
export default OtherAccountSidebar |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TableComponent } from './table.component';
import { RouterTestingModule } from '@angular/router/testing';
import {
OrderByPipe,
SuggestionFilterPipe,
CostFilterPipe,
HoursFilterPipe,
ChanceFilterPipe,
DateFilterPipe,
RiskF... |
declare module 'monaco-editor/esm/vs/basic-languages/rust/rust'; |
import * as React from 'react';
import { Alert, Button, ButtonVariant } from '@patternfly/react-core';
import { LoadingInline } from '@console/internal/components/utils';
import { prefixedID } from '../../../utils';
import './modal-footer.scss';
type ModalErrorMessageProps = {
message: string;
};
export const Moda... |
import { renderWithWrappers } from "lib/tests/renderWithWrappers"
import React from "react"
import "react-native"
import { Modal } from "./Modal"
it("renders without throwing an error", () => {
renderWithWrappers(<Modal headerText="An error occurred" detailText="This is an error moop." />)
}) |
import { S3ControlClient } from "./S3ControlClient";
import {
CreateAccessPointCommand,
CreateAccessPointCommandInput,
CreateAccessPointCommandOutput,
} from "./commands/CreateAccessPointCommand";
import {
CreateBucketCommand,
CreateBucketCommandInput,
CreateBucketCommandOutput,
} from "./commands/CreateBuc... |
/**
* Find the index of the nearest element with the same value. Starts at given index and looks incrementally in either direction for the searchElement
* It's *NOT* inclusive: If the element matches the element at the startIdx, startIdx will be returned
* It prefers matches in the first half. If there's a tie it wi... |
import * as React from 'react';
import { ConnectDropTarget, DropTarget as dropTarget } from 'react-dnd';
import { dragActions } from '../../../actions/cell/drag';
import { insertActions } from '../../../actions/cell/insert';
import { connect } from '../../../reduxConnect';
import { ComponetizedRow } from '../../../type... |
namespace fgui {
export class GGraph extends GObject {
public _content: cc.Graphics;
private _type: GraphType = 0;
private _lineSize: number = 0;
private _lineColor: cc.Color;
private _fillColor: cc.Color;
private _cornerRadius: Array<number>;
private _sides... |
import path from "path";
import os from "os";
import fs from "fs";
import { strict as assert } from "assert";
import vscode from "vscode";
import { NeovimClient } from "neovim";
import {
attachTestNvimClient,
assertContent,
wait,
setCursor,
sendVSCodeKeys,
closeAllActiveEditors,
sendEscape... |
import domino from 'domino';
import {
atomInline,
blockquote,
createEditor,
doc,
em,
p,
pm,
schema as testSchema,
tableRow,
} from 'jest-prosemirror';
import { renderEditor } from 'jest-remirror';
import type { TextSelection } from '@remirror/pm/state';
import {
BlockquoteExtension,
BoldExtension... |
import { Component, OnInit, Sanitizer } from '@angular/core';
import { ApiService } from '../shared/api.service';
@Component({
selector: 'my-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
basicRowHeight = 80;
fitListHeight ... |
import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const ArrowCurveDownRight20Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
ret... |
/**
* 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... |
// *** 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";
/**
* D... |
import '@fortawesome/fontawesome-free/css/all.css';
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import clsx from 'clsx';
import React from 'react';
function AppIcon({
icon,
className,
title,
spinning,
}: {
icon: string ... |
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { switchMap, catchError, filter, map, withLatestFrom, concatMap } from 'rxjs/operators';
import { TestPersistenceProvider } from '../../providers/test-persistence/test-persistence';
import { from, of, interval } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.