text stringlengths 3.3k 33k |
|---|
import { Keyring, WsProvider } from "@polkadot/api";
import { createTestPairs } from "@polkadot/keyring/testingPairs";
import { KeyringPair } from "@polkadot/keyring/types";
import {
Provider,
Signer,
TestAccountSigningKey,
} from "@reef-defi/evm-provider";
import axios from "axios";
import { Contract, ContractFa... |
import { alpha, ColorPalette } from '@allthings/colors'
import Downshift, {
DownshiftState,
GetItemPropsOptions,
StateChangeOptions,
} from 'downshift'
import { css, keyframes } from 'glamor'
import matchSorter from 'match-sorter'
import React, { createRef, PureComponent, ReactNode } from 'react'
import Absolute ... |
<gh_stars>1-10
import { EventDBO } from "../../typings/Event";
import { clone } from "ramda";
import { NumberCarouselVariants } from "../Components/Common/QuantitySelection";
import create from "zustand";
export type Variant = (
NumberCarouselVariants[number] &
{ shopifyVariantId: number } &
{ productCollectionR... |
<gh_stars>1-10
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
'use strict';
import { IProviders } from "../transitional";
import { Operations } from "../business/operations";
const passport = require('passport');
const OIDCStrat... |
import React, { Component, ReactElement } from "react";
import WaveSurfer from "wavesurfer.js";
import { WaveSurferParams } from "wavesurfer.js/types/params";
import { ListenerDescriptor } from "wavesurfer.js/types/util";
import { capitaliseFirstLetter } from "./helpers";
const wavesurferParams = new Set([
"audioCon... |
const content = document.getElementById("content");
const contentDummy = document.getElementById("content-dummy");
const titleImage = document.getElementById("title-image") as HTMLImageElement;
const text = document.getElementById("content-text");
const modVersion = document.getElementById("mod-version");
const modVers... |
import ProcessedDatum from '../types/ProcessedDatum'
import { Axis2D } from '../../../common/types/geometry'
import Datum from '../types/Datum'
import ErrorBarsMode from '../types/ErrorBarsMode'
import Options from '../types/Options'
import { CanvasDrawer } from '../../../common/drawer/types'
import { LineOptions } fro... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import type * as nbformat from '@jupyterlab/nbformat';
import { CancellationToken, Memento } from 'vscode';
import { isPythonNotebook } from '../notebooks/helpers';
import { IPythonExtensionChecker } from '../platform/api/ty... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Not, Repository } from 'typeorm';
import { Investition } from '../../entities/Investition';
import { Variant } from '../../entities/Variant';
import { map } from 'p-iteration';
import { FieldUpdateDto } from '../..... |
import {ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {Subject, Subscription} from 'rxjs';
import {DeepLeftNodeChild} from '../../modules/utils/deep-left-node-child';
import {DeepRightNodeChild} from '../../modules/utils/deep-right-node-child';
import {FirstSubStrin... |
<gh_stars>0
import axios, { AxiosResponse } from "axios";
import { JSDOM, ResourceLoader } from "jsdom";
import cheerio, { CheerioAPI } from "cheerio";
import { response } from "../../plugins";
import Joox from "./joox";
import { Formatter, TiktokStalk, FormatPostTTDownloader, ITTDownloader, IMussically, ITiktokV... |
import { Node } from "../node";
import { chainObjects } from "../../util/object";
import { DropShadow } from "../dropShadow";
export type ShapeLineCap = undefined | 'round' | 'square'; // null is for 'butt'
export type ShapeLineJoin = undefined | 'round' | 'bevel'; // null is for 'miter'
export abstract class Shape... |
<gh_stars>10-100
import * as b from "bobril";
import * as styles from "./styles";
import * as c from "./styleConsts";
import * as colors from "./colors";
export interface ISliderData extends b.IValueData<number> {
min?: number;
max?: number;
step?: number;
disabled?: boolean;
tabindex?: n... |
import React from 'react'
import {get} from 'lodash'
import {Item as DefaultItem, List as DefaultList} from 'part:@sanity/components/lists/default'
import {Item as SortableItem, List as SortableList} from 'part:@sanity/components/lists/sortable'
import ArrayFunctions from 'part:@sanity/form-builder/input/array/function... |
<reponame>innovationlove/meteor
import {
isString,
isObject,
has,
} from "underscore";
import { matches as archMatches, isLegacyArch } from "../utils/archinfo";
import {
pathJoin,
pathNormalize,
pathDirname,
pathBasename,
convertToOSPath,
convertToPosixPath,
containsPath,
} from "../fs/files";
impo... |
// Copyright (C) 2021 Toitware ApS. All rights reserved.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
import { clean, gt } from "semver";
import { commands as Commands, env, ExtensionContext, Uri, window as Window, workspace as Workspace } from "vscode";
impo... |
import React, {useState, memo} from 'react';
import {
StyleSheet,
View,
Animated,
Easing,
FlatList,
Keyboard
} from 'react-native';
import PropTypes from "prop-types";
import Camera from "./Camera";
import XButton from "./XButton";
import Button from "./Button";
import ListItem from "./ListItem";
import DefaultMo... |
<reponame>franz-josef-kaiser/hull-mailjet
import _ from "lodash";
import IHullUserUpdateMessage from "../types/user-update-message";
import IHullClient from "../types/hull-client";
import IPrivateSettings from "../types/private-settings";
import MailjetClient from "./mailjet-client";
import IMailjetClientConfig from "... |
/// <reference path="./highlight.d.ts" />
import Audio, { Canvases, numCanvases, State } from "./audio";
import { Tuple, Options, Windowing } from "./types";
import {
useRef,
useState,
useLayoutEffect,
useErrorBoundary,
useEffect,
} from "preact/hooks";
import { h, RefObject } from "preact";
import AudioH... |
<gh_stars>0
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Faceboo... |
import { ClientCard, COLORS, Packet, ClientNetData, playerColors, removeFromArray } from "./commons.js";
import { ClientGame } from "./clientgame.js";
import { WebSocketHandler } from "./ws";
import { UICard, createCard, addElem, updatePlayer, addPlayerCard, showFrontMessage, setPlayerTurn, selectCol, updateCardPos, sh... |
import { isObject } from 'lodash';
import { Checkbox } from '../../../app/case/case';
import { DocumentType } from '../../../app/case/definition';
import { TranslationFn } from '../../../app/controller/GetController';
import { FormContent, FormFieldsFn } from '../../../app/form/Form';
import { ValidationError, atLeast... |
import type { DUpdater } from '../../hooks/common/useTwoWayBinding';
import type { DModalFooterProps, DModalFooterPropsWithPrivate } from './ModalFooter';
import type { DModalHeaderProps, DModalHeaderPropsWithPrivate } from './ModalHeader';
import { isNumber, isString, isUndefined } from 'lodash';
import React, { useE... |
<reponame>Hanmourang/SandDance
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { Layout, LayoutBuildProps, LayoutProps } from './layout';
import { Binnable, binnable } from '../bin';
import { FieldNames, SignalNames } from '../constants';
import { displayBin, seria... |
import zhCN from './locale/zh_CN';
import enUS from './locale/en_US';
import ptBR from './locale/pt_BR';
export type Scaler = (from: HTMLCanvasElement, to: HTMLCanvasElement) => Promise<any>;
export function debounce(func, wait, immediate: boolean = false) {
let timeout;
return function debounceFunc() {
const ... |
import * as debug from "debug";
import { PreventIframe } from "express-msteams-host";
import { TurnContext, CardFactory, MessagingExtensionQuery, MessagingExtensionResult, MessagingExtensionAction, ActionTypes, MessagingExtensionAttachment } from "botbuilder";
// import { MessagingExtensionQuery, MessagingExtensionResu... |
<reponame>bobheadlabs/sourcegraph
import * as path from 'path'
import { createAggregateError } from '@sourcegraph/common'
import { DiffResolvedRevisionSpec } from '../../repo'
import { FileInfo, DiffInfo } from '../shared/codeHost'
export interface BitbucketRepoInfo {
repoSlug: string
project: string
}
cons... |
<filename>src/app/layouts/land-page/land-page-layout.component.ts
import {
Component,
OnInit,
ElementRef,
Inject,
Renderer2,
AfterViewInit,
OnDestroy,
ViewChild,
HostListener
} from "@angular/core";
import { Router, NavigationStart } from '@angular/router';
import { TranslateService } from "@ngx-trans... |
import { View } from 'react-native'
import NumberFormat from 'react-number-format'
import { InfoRow, InfoType } from '@components/InfoRow'
import { InfoText } from '@components/InfoText'
import { NumberRow } from '@components/NumberRow'
import { SummaryTitle } from '@components/SummaryTitle'
import { TextRow } from '@c... |
import { Box, Button, Grid, Heading, Image, Layer, Stack } from "grommet"
import * as Icons from "grommet-icons"
import React, { Dispatch } from "react"
import { useDispatch, useSelector } from "react-redux"
import {
deleteThumbnail,
getNetworkThumbnails,
IThumbnailDetails,
} from "../../../firebase/thumbnailMana... |
import {Component, Host, h, Prop, State, Element, Event, EventEmitter, Listen, Method, Watch} from '@stencil/core';
import {WebManager, WebManagerService} from "../../services/WebManagerService";
import {HostElement} from "../../decorators";
import {getProductPopOver} from "../../utils/popOverUtils";
import wizard from... |
declare function require(path: string): any;
import Vue from "vue";
import * as Neo from "../../common";
import NetStatus from "../../components/netStatus/netStatus";
import "./userInfo.scss";
// 图像上传裁切指令
import "../../directives/imgCropper";
import "../../../../assets/js/mui.picker.min.js";
const { plus, mui, plus... |
/**
* @license
* Copyright (C) 2015 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... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Visitor, types as t } from "@babel/core"
import { State, ResolvedHintImport } from "../state"
import { assertTSType, isClass } from "../utilities"
import { resolveGenericTypeAnnotation, toQID } from "../typeReferenceResolver"
function... |
<filename>src/app.ts
import { Pose, Maze, Cell, Facing, Marker } from './maze';
import { RecursiveBacktracking } from './recursive_gen';
import { InputEventHandler, KeyEvent, GamepadStateEvent, GamepadState, GamepadButton, GamepadAxis, InputController } from './input';
import { Menu } from './menu';
import { Coder, Maz... |
import { parseTypes, isPropositional, cloneTree } from "./parser";
import { ParseTree } from "./types";
import { stringifyFormula } from "./compiler";
let stateID = 0;
export function resetStateID() {
stateID = 0;
}
export class SFA {
startStates: State[];
acceptingStates: State[];
constructor() {
... |
<filename>scripts/bundles/compiler.ts<gh_stars>0
import fs from 'fs-extra';
import { join } from 'path';
import rollupCommonjs from '@rollup/plugin-commonjs';
import rollupJson from '@rollup/plugin-json';
import rollupNodeResolve from '@rollup/plugin-node-resolve';
import { aliasPlugin } from './plugins/alias-plugin';
... |
import React, { useState, useEffect } from 'react';
import cx from 'classnames';
import moment from 'moment';
import Big from 'big.js';
import { Button, Notification, Select, TextInput } from 'hds-react';
import { useTranslation } from 'react-i18next';
import StatusText from '../common/statusText/StatusText';
import {... |
import { DSPEvent, BaseChannelProcessor } from "@liquidapps/dsp-lib-base";
import Web3 from "web3";
import * as ecc from 'eosjs-ecc'
const Base58 = require('base-58');
// TODO: annoying path/require?
const link = require('../../../../../../contracts/eth/build/contracts/evmtokenpeg.json');
interface Message {
messa... |
<reponame>dgomesbr/aws-secure-environment-accelerator
import { AccountStacks } from '../../common/account-stacks';
import { StackOutput } from '@aws-accelerator/common-outputs/src/stack-output';
import * as c from '@aws-accelerator/common-config';
import { VpcOutputFinder } from '@aws-accelerator/common-outputs/src/vpc... |
import React from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import MuiLink from '@material-ui/core/Link';
import Grid from '@material-ui/core/Grid';
... |
import {
Client,
ClientOptions,
Message,
User,
Content,
Room,
} from "@mrwhale-io/gamejolt";
import { BotOptions } from "./types/bot-options";
import { Command } from "./commands/command";
import { CommandDispatcher } from "./commands/command-dispatcher";
import { CommandLoader } from "./commands/command-l... |
<filename>src/Cli.ts
import Mri = require('mri')
import * as Utils from './utils'
import { EventEmitter } from 'events';
import { FCliGlobalCommand, CliCommand } from './Command';
import CliOption = require('./Option')
import { DEFAULT_ARGS } from './ctrl';
function showHelpOnExit (cli: FCli): boolean {
return cli.t... |
<gh_stars>0
import { DbSet } from '#lib/database';
import { LanguageHelp } from '#lib/i18n/LanguageHelp';
import { LanguageKeys } from '#lib/i18n/languageKeys';
import { SkyraCommand, UserPaginatedMessage } from '#lib/structures';
import { GuildMessage } from '#lib/types';
import { BrandingColors } from '#utils/constan... |
/**
* Core Code come from https://github.com/schmich/instascan
* Now I just rewrite again by typescript
* ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.
* You can get everything here https://github.com/zxing/zxing
... |
<filename>persisters/IndexedDbSpi.ts
import DbUtil = require("./DbUtil");
class IndexedDbSpi {
public db!: IDBDatabase;
public util!: DbUtil<IDBDatabase>;
constructor(db: IDBDatabase, util: DbUtil<IDBDatabase>) {
this.db = db;
this.util = util;
}
public getDatabase(): IDBDataba... |
<gh_stars>0
import { PiaFormat } from "./pia-format";
import {gatsbyShowFutureEarningsPage} from "../../constants/config";
import {
UserProfile,
EarningsRecord,
EarningsMap,
FutureAwiPredictionEnum,
} from "../user-state-context";
import {
PiaYear,
PiaEarnings,
PiaTypeOfWageIncreaseAssumption,
PiaTypeOf... |
import https from 'https'
import http from 'http'
import qs from 'querystring'
// @ts-ignore
import rsa from 'jsrsasign'
let loginDetails = null as null | { token: string, sessionKeys: any, sessionState: any}
// Generic http(s) post
const postData = async (ssl: boolean, options: any, data: any) => {
options.method ... |
import { QueryDefinition, UpdatedQueryDefinition } from '../Types/QueryData';
import IGrafanaAttrs from '../Interfaces/IGrafanaAttrs';
import IDatasourceRequestOptions from '../Interfaces/IDatasourceRequestOptions';
import DatasourceRequestHeaders from '../Interfaces/IDatasourceRequestHeaders';
import HumioHelper from ... |
import {
AfterViewInit,
Component,
ElementRef,
forwardRef,
Inject,
Injector,
OnInit,
Optional,
ViewChild,
ViewEncapsulation
} from '@angular/core';
import { ValidatorFn } from '@angular/forms';
import moment from 'moment';
import { NgxMaterialTimepickerComponent } from 'ngx-material-timepicker';
im... |
import * as React from 'react';
import * as _ from 'lodash-es';
import {
Chart,
ChartAxis,
ChartGroup,
ChartLine,
ChartThemeColor,
ChartThemeVariant,
getCustomTheme,
} from '@patternfly/react-charts';
import {
Alert,
EmptyState,
EmptyStateIcon,
EmptyStateVariant,
TextInput,
Title,
} from '@pat... |
import React, { useState, useEffect, useCallback } from 'react'
import Dialog from '@material-ui/core/Dialog';
import Button from '@material-ui/core/Button';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import DialogActions from '@material-ui/core... |
<reponame>awayjs/stage<gh_stars>1-10
import { ProjectionBase } from '@awayjs/core';
import { TaskBase } from './TaskBase';
import { _Stage_Image2D, Image2D } from '../../image';
import { ShaderRegisterElement } from '../../shaders/ShaderRegisterElement';
import { IContextGL } from '../../base/IContextGL';
import { Con... |
<gh_stars>1-10
import Fuse from 'fuse.js';
import items from '../data/market-items.json';
const fuseOptions = {
isCaseSensitive: false,
shouldSort: true,
includeScore: true,
ignoreLocation: true,
includeMatches: false,
findAllMatches: false,
minMatchCharLength: 1,
threshold: 0.2,
useExtendedSearch: f... |
<filename>src/app/_theme/components/form/form.component.ts<gh_stars>1-10
import {
AfterViewInit,
ChangeDetectorRef,
Component,
ContentChildren,
ElementRef,
EventEmitter, HostBinding,
Input,
NgZone,
OnChanges,
OnInit,
Output,
QueryList,
Renderer2,
SimpleChanges,
} from '@angular/core';
impo... |
<filename>src/ts/util/collections/Collection.ts
import {AsyncFilter, Filter} from "../functional/Filter";
import {Mapper} from "../functional/Mapper";
import {hash as hashLib} from "../misc/hash";
import {hashEquals as hashEqualsLib} from "../misc/hashEquals";
import {PartialDifference} from "../types/difference";
impo... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { cloneDeep } from 'lodash';
import axios from 'axios';
import { Legac... |
import { render, RenderResult, act, within, BoundFunction, GetByRole, cleanup, fireEvent } from '@testing-library/react'
import * as React from 'react'
import { MemoryRouter } from 'react-router-dom'
import sinon from 'sinon'
import { asError } from '@sourcegraph/shared/src/util/errors'
import { FORM_ERROR } from '..... |
<filename>packages/map/src/handler/scroll_zoom.ts
// @ts-ignore
import { EarthMap } from '../earthmap';
import LngLat from '../geo/lng_lat';
import Point from '../geo/point';
import { Map } from '../map';
import { bezier, ease, interpolate, now } from '../util';
import DOM from '../utils/dom';
import HandlerManager fro... |
import { FALLBACK_USER_NAME } from 'front-end/config';
import { makePageMetadata } from 'front-end/lib';
import { isSignedIn } from 'front-end/lib/access-control';
import router from 'front-end/lib/app/router';
import { Route, SharedState } from 'front-end/lib/app/types';
import { ViewerUser } from 'front-end/lib/compo... |
import { css } from '@emotion/css';
import cx from 'classnames';
import React, { memo, MouseEvent, MutableRefObject, useCallback, useMemo, useState } from 'react';
import useMeasure from 'react-use/lib/useMeasure';
import { DataFrame, GrafanaTheme2, LinkModel } from '@grafana/data';
import { Icon, Spinner, useStyles2,... |
<filename>src/index.ts
import * as fs from 'fs'
import minimist from 'minimist'
import camelcase from 'camelcase'
import glob from 'glob'
import * as path from 'path'
import { minify } from 'html-minifier'
import * as protobuf from 'protobufjs'
import * as chokidar from 'chokidar'
import * as parse5 from 'parse5'
impor... |
<gh_stars>0
import {AnalyticsDriver, AnalyticsDriverConfig} from "../interfaces/analytics-driver";
import {AnalyticsEvent, CustomAnalyticsEvent} from "../interfaces/analytics-event";
import {
AddPaymentInfoConfig,
AddShippingInfoConfig,
AddToCartConfig,
BeginCheckoutConfig, PageViewConfig,
PurchaseConfig,
R... |
<reponame>ioflair/gentics-ui-core
import {
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnDestroy,
Output,
QueryList,
SimpleChanges,
ViewChild,
ViewChildren,
ChangeDetectorRef,
AfterViewInit
} from '@angular/core';
import {Router... |
<filename>editor/ColorConfig.ts
// Copyright (C) 2020 <NAME>, distributed under the MIT license.
import {BeepBoxOption, DictionaryArray, toNameMap} from "../synth/SynthConfig";
import {Song} from "../synth/synth";
import {HTML} from "imperative-html/dist/esm/elements-strict";
//namespace beepbox {
export interface C... |
import dayjs from 'dayjs';
import React, { useEffect, useState } from 'react';
import {
Container,
DaySlot,
DaysContainer,
Header,
HeaderButton,
HeaderLabel,
HeaderMonth,
HeaderYear,
MonthContainer,
WeekdayLabel,
WeekdaysLabels,
CustomStyles,
Status,
MultipleMonthsContainer,
HeaderLabelGap... |
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { Dialog } from '@reach/dialog';
import { RiLayoutTop2Line, RiAddLine, RiCloseLine } from 'react-icons/ri';
import { TiTags } from 'react-icons/ti';
import { BsJustifyLeft } from 'react-icons/bs';
import { Card, Category, Tag } fr... |
import * as _ from 'lodash';
import * as pag from 'pag';
import * as ppe from 'ppe';
import * as sss from 'sss';
import * as gcc from 'gcc';
import * as s1 from './s1/index';
declare const require: any;
const RL = require('rl');
const Neuroevolution = require('Neuroevolution');
const isEnableGcc = false;
let ne;
let ge... |
<filename>src/app/webapp-common/experiments/actions/common-experiments-view.actions.ts<gh_stars>1-10
import {Action, createAction, props} from '@ngrx/store';
import {ITableExperiment} from '../shared/common-experiment-model.model';
import {ISmCol} from '../../shared/ui-components/data/table/table.consts';
import {Exper... |
<reponame>sansoohan/developer
import { Injectable } from '@angular/core';
import * as firebase from 'firebase/app';
const Timestamp = firebase.default.firestore.Timestamp;
@Injectable({
providedIn: 'root'
})
export class DataTransferHelper {
constructor(
) { }
numberToArray(input: number): Array<any> {
i... |
<reponame>TheCloudTheory/Butter
import http from './http';
import templates from './templates';
import { ResourceSchema, Property, ResourceDefinition, PropertyDescription } from './resourceSchema';
import config from './config';
import { TemplateSchema } from './templateSchema';
class butter {
sidebar: HTMLElement... |
<filename>ui/src/lib/dapjs/processor/cortex-m.ts
/*
* DAPjs
* Copyright Arm Limited 2018
*
* 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 th... |
import 'moment-duration-format';
import { ActivatedRoute, Router } from '@angular/router';
import { Answer, PackageSchedule } from '../../lib/loopback-sdk/models';
import { AnswerApi, PackageScheduleApi, PersonApi } from '../../lib/loopback-sdk/services';
import { Component, DoCheck, OnInit, ViewChild } from '@angular... |
/**
* Copyright © 2020 Johnson & Johnson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to i... |
import { Alert, Col, Row, Select } from 'antd';
import { SelectValue } from 'antd/es/select';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useHistory } from 'react-router-dom';
import Link from 'components/Link';
import Message, { MessageType } from 'components/Message';
import Se... |
/*
* Copyright © 2019 Province of British Columbia
* 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 ... |
const kOnHeaders = 0;
const kOnHeadersComplete = 1;
const kOnBody = 2;
const kOnMessageComplete = 3;
const kOnExecute = 4;
export const methods = [
'DELETE',
'GET',
'HEAD',
'POST',
'PUT',
'CONNECT',
'OPTIONS',
'TRACE',
'COPY',
'LOCK',
'MKCOL',
'MOVE',
'PROPFIND',
... |
import {
Component,
ComponentInterface,
Element,
Event,
EventEmitter,
Host,
h,
Prop,
State,
Watch,
} from "@stencil/core";
import { IMenuItem } from "./types";
import {
findMenus,
findMenuItems,
findMenuItemInEvent,
findMenuItemWithName,
getMenuItemPath,
getMenuItemHasChildren,
getMenu... |
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
import childProcess, { ChildProcessWithoutNullStreams } from 'child_process'
import fs from 'fs'
import path from 'path'
import { ether } from '@openzeppelin/test-helpers'
import {
StakeManagerInstance,
RelayHubContract,
RelayHubInstance,
Test... |
import './slimselect.scss'
import 'custom-event-polyfill' // Needed for IE to use custom events
import Config from './config'
import { hasClassInTree, putContent, debounce, ensureElementInView } from './helper'
import Select from './select'
import Data, { dataArray, option, validateData } from './data'
import Slim from... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
<reponame>petrleocompel/homebridge-jablotron-mqtt
import {
AccessoryPlugin,
AccessoryConfig,
API,
Logging,
Service,
Characteristic,
CharacteristicGetCallback,
CharacteristicSetCallback,
CharacteristicValue,
} from 'homebridge';
import * as mqtt from 'mqtt';
import {JblMode, AlarmTopi... |
<gh_stars>0
import { check, Match } from '../../../lib/check'
import { Meteor } from 'meteor/meteor'
import {
ExpectedMediaItems,
ExpectedMediaItem,
ExpectedMediaItemId,
ExpectedMediaItemBucketPiece,
ExpectedMediaItemBucketAction,
ExpectedMediaItemBase,
ExpectedMediaItemRundown,
} from '../../../lib/collections/... |
<filename>src/agda-mode.ts
import { Core, AgdaEditor } from './core';
import { parseCommand } from './parser/emacs';
import { CompositeDisposable } from 'atom';
import * as Atom from 'atom';
const commands = [
'agda-mode:load',
'agda-mode:quit',
'agda-mode:restart',
'agda-mode:abort',
'agda-mode:c... |
/**
* @module LevelHelper
* Providing methods dealing with playlist sliding and drift
* */
import { logger } from '../utils/logger';
import Fragment from '../loader/fragment';
import LevelDetails from '../loader/level-details';
import { Level } from '../types/level';
import { LoaderStats } from '../types/loader';
... |
import React, { useEffect, useState, useCallback, useContext } from 'react'
import stylesCommon from '../../styles.module.css'
import styles from './styles.module.css'
import InfoBox from '../../common/InfoBox'
import { SANDBOX_HOSTNAME, MOONPAY_HOSTNAME, COINIFY_HOSTNAME } from '../../ApiContext/api/constants'
impor... |
import * as fs from 'fs';
import * as path from 'path';
import * as yaml from 'js-yaml';
import * as glob from 'glob';
import isImage from 'is-image';
import { QuickstartConfig } from './types/QuickstartConfig';
export interface FilePathAndContents<T> {
path: string;
contents: T[];
}
/**
* Read and parse a YAML ... |
// Copyright © 2018–2020 IOV SAS (licensed under the Apache License, Version 2.0)
// Copyright © 2020 Confio UO (licensed under the Apache License, Version 2.0)
// Copyright © 2020 <NAME> (licensed under the Apache License, Version 2.0)
// Modifications Copyright (c) 2018 - 2020, Foris Limited (licensed under the Apach... |
/*
* TESLER-UI
* Copyright (C) 2018-2021 Tesler Contributors
*
* 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 ... |
<reponame>simoncar/react-native-global-state-hooks<filename>src/GlobalStore.ts
import { useEffect, useState } from 'react';
import {
cloneDeep, debounce, isNil, isNumber, isBoolean, isString,
} from 'lodash';
import asyncStorage from '@react-native-async-storage/async-storage';
import ReactDOM from 'react-dom';
impor... |
import axios, {AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse} from "axios";
import Bottleneck from "bottleneck";
import * as Debug from "debug";
import * as qs from "qs";
import * as t from "typeforce";
import {Bitcoin} from "./btc";
import {AuthenticationError, ConflictError, GeneralError, MiningError, ... |
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import 'reflect-metadata';
import { EventEmitter } from 'events';
import { SHARE_ENV, Worker } from 'worker_threads';
import { resolve } from 'path';
import { promisify } from 'util';
import { setTimeout } from 'timers';
// eslint-disable-next-line import/n... |
<gh_stars>0
import debugOutput from "debug";
import { parse as parseUrl } from "url";
import { Agent } from "https";
import { existsSync, lstatSync } from "fs";
import createWebSocketStream, { WebSocketDuplex } from "websocket-stream";
import { Container } from "./Container";
import { Process } from "./Process";
impor... |
<reponame>mythmakerseven/topster
interface ChartSize {
x: number,
y: number
}
export enum BackgroundTypes {
Color = 'color',
Image = 'image'
}
export interface ChartItem {
title: string,
creator?: string,
coverURL: string,
coverImg: HTMLImageElement
}
export interface Chart {
title: string,
items... |
import React, { useState, useLayoutEffect } from 'react';
import { connect } from 'react-redux';
import { addSubject, updateSubject, setEditingSubjectDone } from '../redux/actions';
import { toast } from 'react-toastify';
import {
AddSubjectType,
UpdateSubjectType
} from '../types/reducers';
import { getSubjectById... |
import {
Component,
ComponentBindings,
Effect,
Event,
ForwardRef,
JSXComponent,
JSXTemplate,
OneWay,
RefObject,
Template,
} from '@devextreme-generator/declarations';
import {
DataCellTemplateProps,
DateHeaderData,
DateTimeCellTemplateProps,
Group,
GroupedViewData,
ResourceCellTemplatePr... |
import { DownOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Divider, Dropdown, Menu, message, Popconfirm, Input } from 'antd';
import React, { useState, useRef } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import ProTable, { ProColumns, ActionType } from '@ant-design/p... |
/*-
* #%L
* Arcade Analytics
* %%
* Copyright (C) 2018 - 2019 ArcadeAnalytics
* %%
* 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
... |
import { StatusCode } from "@shopify/network"
import { RequestEvent } from "@sveltejs/kit/types/private"
import { createHmac } from "crypto"
import { AuthConfig } from "../auth/oauth/types.js"
import { ApiVersion, ShopifyHeader } from "../base-types.js"
import { GraphqlClient } from "../clients/graphql/graphql_client.... |
import React from 'react'
import { TouchableOpacity } from 'react-native'
import { ThemedText, ThemedView, ThemedIcon } from '@components/themed'
import { tailwind } from '@tailwind'
import { View } from '@components'
import { translate } from '@translations'
import { IconButton } from '@components/IconButton'
import {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.