text stringlengths 3.08k 15.5k |
|---|
<filename>src/core/infrastructure/utils/utils.ts
import { IOHLC, ICandlesTick } from '../model/stock.model';
let regression = require("regression");
export function ConvertDateToYYYYMMDD(date: Date): string {
return date.toISOString().split("T")[0];
}
export function removeLeadZero(n: string) {
return pad(Numb... |
<reponame>Watemlifts/smoke
/*--------------------------------------------------------------------------
smoke-node
The MIT License (MIT)
Copyright (c) 2019 <NAME> (sinclair) <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (th... |
import React, {useRef, useState} from 'react'
import {View, Image, StyleSheet, TextInput, FlatList, TouchableOpacity} from 'react-native'
import {inject} from 'mobx-react'
import {k, minHeight} from '../Global'
import {colors} from '../../constants'
import UseCurrentLocation from './UseCurrentLocation'
import {RText, R... |
import { HttpClient, HttpParams } from '@angular/common/http';
import { LocalDataSource } from "ng2-smart-table";
import { ServerSourceConf } from "ng2-smart-table/lib/data-source/server/server-source.conf";
// import { getDeepFromObject } from "@Nebular/auth/helpers";
import { Observable } from "rxjs";
import { HttpHe... |
import { createVNode, Component, render, VNode } from 'vue'
import { DEFAULT_OPTIONS, TOAST_GAP } from './config'
import { Position, ToastObject, ToastOptions, ToastContent, ContentObject, DisplayContentObject, ToastContentType } from './types'
import Toast from './components/MToast.vue'
const toasts: Record<Position,... |
/**
* Data Model Interfaces
*/
import k8s = require('@kubernetes/client-node');
import { Container } from "./container.interface";
import { Containers } from "./containers.interface";
import { V1ContainerPort, V1LabelSelector, Watch } from '@kubernetes/client-node';
const kc = new k8s.KubeConfig();
kc.loadFromClust... |
<gh_stars>0
import { Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, Docume... |
<filename>prime-angular-frontend/src/app/modules/health-auth-site-reg/pages/hours-operation-page/hours-operation-page.component.ts<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormGroup, FormControl, Validators, FormGroupDirective, Form... |
import { t } from "@lingui/macro";
import { AddCircle as AddIcon, Group as GroupIcon } from "@mui/icons-material";
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
IconButton,
List,
ListItem,
Slide,
Tooltip,
} from "@mui/material";
import { TransitionProps } from "@mui/material/tr... |
import {
Component,
trigger,
state,
style,
transition,
animate,
} from '@angular/core';
import { NavController, PopoverController, NavParams } from 'ionic-angular';
import { ApiService } from '../../providers/api-service';
import { Subscription } from 'rxjs';
import { SortPopover } from './sort-... |
<filename>src/Align.tsx<gh_stars>1-10
import { AlignResult, AlignType, TargetPoint, TargetType } from './interface';
import VueTypes from 'vue-types';
import { Ref } from 'vue';
import addEventListener from '@ayase/vc-util/lib/Dom/addEventListener';
import { isSamePoint, monitorResize, restoreFocus } from './util';
im... |
<gh_stars>0
import { isVNode, isWNode } from '../core/vdom';
import { RenderResult, DNode, VNode, WNode } from '../core/interfaces';
import { Instruction } from './renderer';
import Map from '../shim/Map';
import { findIndex } from '../shim/array';
import { decorate as coreDecorate } from '../core/util';
type Decorate... |
import { Component, OnInit, Output, EventEmitter, ChangeDetectorRef, AfterContentChecked } from '@angular/core';
import { Validators, FormBuilder } from '@angular/forms';
import * as Config from '../../utils/config';
import { Metric } from '../../types/metric';
import { MetricsConfig } from '../../types/metrics-config'... |
import { Type, getTypeByPath } from "./types";
import { _getByPath, _parsePath, _setByPath, _Object, _clone, _deleteByPath, _testTypePath, _testPath, } from "./utils";
import { inferType } from "./inferType";
export type StoreSource = string | null;
export type StoreInvalidCallback<T> = (this: Store<T>, paths: string... |
import { compare, hash } from 'bcrypt';
import { randomBytes } from 'crypto';
import { Request } from 'express';
import { sign } from 'jsonwebtoken';
import { FullRequest, Ooth, StrategyValues } from 'ooth';
import { Strategy as JwtStrategy } from 'passport-jwt';
import { callbackify } from 'util';
const { Strategy } ... |
import { Client } from '../Client';
import { Embed } from '../utils/Embed';
import { Base } from './Base';
import { Channel } from './Channel';
export class Message extends Base {
/** The guilded client uuid */
guildedClientId: string;
/** The channel id where this message was sent */
channelId: string;
/** ... |
import { Localized } from "fluent-react/compat";
import React, { FunctionComponent } from "react";
import { Field } from "react-final-form";
import {
TOXICITY_ENDPOINT_DEFAULT,
TOXICITY_MODEL_DEFAULT,
TOXICITY_THRESHOLD_DEFAULT,
} from "coral-common/constants";
import { formatPercentage, parsePercentage } from "... |
<filename>lib/nl80211/nl80211.ts
/**
* Exposes the nl80211 interface on top of the Generic Protocol layer
*/
/** */
import { EventEmitter } from 'events'
import { MessageInfo, RawNetlinkSocketOptions } from '../raw'
import { NetlinkSocket, NetlinkSocketOptions, NetlinkSendOptions, RequestOptions } from '../netlink'... |
<reponame>arnouthoebreckx/camel-karavan<filename>karavan-core/src/core/api/ComponentApi.ts
/*
* 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 l... |
import * as React from 'react';
import CloseBtn from './closeBtn';
import FullscreenBtn from './fullscreenBtn';
export interface ModalProps {
bodyStyle?: React.CSSProperties;
borderRadius: number | string;
cancelText: string;
canFullscreen: boolean;
centered: boolean;
closable: boolean;
content: React.Re... |
<reponame>davidu2d/api-nodejs-nestjs-cypress<gh_stars>0
/// <reference types="cypress" />
const url = Cypress.config('baseUrl')
export class GeraDoc {
getNome() {
let nome = null
cy.request({
url: 'https://www.4devs.com.br/ferramentas_online.php',
method: 'POST',
... |
<reponame>matthewtole/codenames<filename>src/redux/sagas.ts
import { ActionTypes } from './actions';
import * as uuid from 'uuid';
import {
takeEvery,
select,
put,
takeLatest,
fork,
take,
} from 'redux-saga/effects';
import {
ActionCreateRoom,
ActionLoadRoom,
ActionLoadRoomSuccess,
ActionGenerateCod... |
<gh_stars>0
import { bitcoin as BITCOIN_NETWORK } from '../networks';
import * as bscript from '../script';
//import * as bufferUtils from '../bufferutils';
//const varuint = require('varuint-bitcoin');
import { Payment, PaymentOpts/*, StackFunction*/ } from './index';
//import * as lazy from './lazy';
const typef = r... |
/**
* @author <NAME> <<EMAIL>>
*
* @licence
* 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 agr... |
<filename>src/compiler/ast/ClassDeclaration.ts
/*
This file was generated from ion source. Do not edit.
*/
import * as _Object from './ion/Object';
import * as Meta from './Meta';
import * as Declaration from './Declaration';
import * as Expression from './Expression';
import * as Node from './Node';
import * as Statem... |
/**
* @author Mugen87 / https://github.com/Mugen87
*/
import * as YUKA from "yuka";
import { Bullet } from './Bullet';
import { Enemy } from './Enemy';
import { Player } from './Player';
import { Ground } from './Ground';
import { CustomObstacle } from './CustomObstacle';
import { FirstPersonControls } from './Firs... |
import { OfflineQueueListener } from "./OfflineQueueListener";
import { OfflineStore } from "../store/OfflineStore";
import { OfflineQueueConfig } from "./OfflineQueueConfig";
import { QueueExecuteFunction } from "./QueueExecuteFunction";
/**
* An entry in the OfflineQueue
*/
export interface QueueEntry<T> {
// co... |
import { Nav, Card, ToastContainer } from "@Components";
import { Home, Settings } from "@Screens";
import type { WBlindsNamespace } from "./namespace";
import {
appendChild,
debug,
diffDeep,
emitQueryChange,
getElement,
isObject,
pathname,
pushToHistory,
querySelector,
} from "@Util";
import { mock }... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
import { WalletModel } from '... |
// tODO get comments for operators.
/// <reference path="index.d.ts" />
const Rx = rxjs;
const {
filter,
switchMap,
map,
mapTo,
takeUntil,
merge,
bufferWhen,
debounceTime,
distinctUntilChanged,
pairwise,
scan } = rxjs.operators;
var svg = document.getElementsByTagName("s... |
import {RequestLifecycle} from "../router";
import {Header, HttpRequest, HttpResponse} from "@http4t/core/contract";
import {appendHeaders, bufferedText, bufferText} from "@http4t/core/messages";
import * as lenses from "../lenses";
import {WrongRoute} from "../lenses";
import {Route} from "../routes";
import {getHeade... |
<reponame>kambits/tsec
// Copyright 2020 Google LLC
//
// 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 applicabl... |
<gh_stars>0
// Copyright 2022 <NAME>. All rights reserved. MIT License.
// This module is browser-compatible.
import { HttpError, serialize, deserialize } from "./serial.ts";
import { normalizeParser } from "./parser.ts";
import type { Parser } from "./parser.ts";
import type { Serializers } from "./serial.ts";
/**
... |
<reponame>colelawrence/qri-frontend
/* globals File */
import cloneDeep from 'clone-deep'
export function generateSchemaFromRow (row) {
const items = row.map((e, i) => { return { 'title': 'col_' + (i + 1) } })
const schema = {
type: 'array',
items: {
type: 'array',
items
}
}
return sche... |
/**
* Copyright 2021 Google LLC
*
* 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... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... |
import { useRef, useCallback } from "react";
import { MovableActions } from "./connect";
import {
BoundingRect,
Position2D,
Rect,
emptyBoundingRect,
emptyPosition2D,
} from "./util";
export interface MoveState {
/**
* The origin from where we started moving
*/
origin?: Position2D;
/**
* The po... |
<reponame>Rostov1991/amcharts5<gh_stars>10-100
import type { DataItem } from "../../core/render/Component";
import { FunnelSeries, IFunnelSeriesSettings, IFunnelSeriesDataItem, IFunnelSeriesPrivate } from "./FunnelSeries";
import { Percent, p100 } from "../../core/util/Percent";
import * as $utils from "../../core/util... |
// Copyright 2018 <NAME>
//
// 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 in writi... |
import Apify from 'apify';
import type { Page } from 'puppeteer';
import * as escapeRegex from 'escape-string-regexp';
import get = require('lodash.get');
import type { FbPost, FbPostLink } from './definitions';
import {
convertDate,
} from './functions';
import { CSS_SELECTORS } from './constants';
const { log, ... |
import { captureModelShorthand } from '@capture-models/helpers';
import { PageBlockExtension } from '../../../extensions/page-blocks/extension';
import { ProjectTemplateExtension } from '../../../extensions/projects/extension';
import { ModuleWrapper } from '../../../types/plugins';
import { SitePlugin } from '../../..... |
<gh_stars>10-100
import Discord, { Client, Intents, Interaction, Options, Snowflake, TextChannel, User } from 'discord.js';
import { token } from './config';
import SnakeGame from './snake';
import HangmanGame from './hangman';
import MinesweeperGame from './minesweeper';
import Connect4Game from './connect4';
import C... |
import { stringify } from 'querystring';
import { resolve } from 'url';
import Config, { ConfigOptions } from '../config/index';
import TokenStorage from '../token-storage';
import { isOkOr4xx } from '../util/http';
import { createChallenge } from '../util/pkce';
import { withTimeout } from '../util/timeout';
import { ... |
import {
Box,
Button,
Flex, Heading,
HStack, Image,
List,
ListIcon,
ListItem, Stack, Text,
useColorModeValue
} from '@chakra-ui/react';
import React, { useState } from 'react';
import { HiCheckCircle } from 'react-icons/hi';
import { Product } from '../product-card/ProductTypes';
import { FaShoppingCart... |
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Divider,
Grid,
IconButton,
TextField,
Typography
} from '@material-ui/core';
import { Add, Visibility }... |
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit... |
<reponame>gneu77/rx-signals<filename>src/signals-factory.ts
/* eslint-disable @typescript-eslint/no-use-before-define */
import { Store } from './store';
type SetupWithStore = {
readonly setup: (store: Store) => void;
};
type SignalsTypeWrapper<SignalsType> = {
readonly signals: SignalsType;
};
export type Sign... |
import {ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';
import {DynamicPanelComponent} from '../../../../tools/dynamic-panel/dynamic-panel.component';
import {PageData} from '../../../../models/page-data';
import {PharosConfig} from '../../../../../config/pharos-confi... |
<filename>Tone/component/filter/BiquadFilter.ts<gh_stars>1-10
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
import { Cents, Frequency, GainFactor } from "../../core/type/Units";
import { optionsFromArguments } from "../../core/util/Defaults";
import { Param } from "../../core/c... |
import { err, ok, Result } from "neverthrow";
import { isDevMode, logger } from "utils/logger";
import {
C_FOUND,
ElementList,
Filter,
MBFC,
QS_PROCESSED_SEARCH,
Story,
} from "./filter";
isDevMode();
const log = logger("mbfc:twitter");
const QS_DATA_NODE_SEARCH = `div[aria-label*="Timeline:"]`;
const QS... |
import { StorageKey, U8aFixed } from '@polkadot/types';
import { AccountId, Call } from '@polkadot/types/interfaces';
import { AnyJson, Codec } from '@polkadot/types/types';
import { KeyringAddress } from '@polkadot/ui-keyring/types';
import { Space, Spin, Tabs } from 'antd';
import { useQuery } from 'graphql-hooks';
i... |
import { FileTreeWalker } from "./TreeWalker";
import * as p from 'path';
import * as asyncfile from 'async-file';
import { copyFile } from './helpers';
import { Ignores } from "./RecursiveReaddir";
import { execSync } from "child_process";
import archiver = require("archiver");
export type PackageHandlerFunction = (b... |
/* eslint-disable no-console */
import $ from 'cheerio';
import deepMerge from 'deepmerge';
import delay from './lib/delay';
import retry from './lib/async-retry';
import fetch from './lib/fetch';
import text2json from './lib/text2json';
import { toFletcherOptions } from './options';
import { getScript } from './opti... |
import { MaterialBottomTabNavigationProp } from '@react-navigation/material-bottom-tabs';
import { CompositeNavigationProp, RouteProp } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { StyleS... |
<filename>src/entities/api-error.ts
/* eslint-disable require-jsdoc */
import { StatusCodes } from 'http-status-codes';
export interface IApiError {
statusCode: number;
errorCode: string;
message: string;
details?: any;
}
/** Api Error */
export class ApiError extends Error implements IApiError {
public sta... |
<filename>src/plugin/transform/img.ts
import { NodePath } from '@babel/core';
import { JSXElement, JSXAttribute, JSXOpeningElement, CallExpression, ObjectProperty } from '@babel/types';
import clone from 'clone';
import { Babel } from '..';
import { getAttribute, getBooleanAttribute, getNumberedArrayAttribute, getTypeA... |
<gh_stars>0
import { RichEmbed } from 'discord.js';
import { Command, CommandDecorators, Message, Middleware, ResourceLoader, Time, Util } from 'yamdbf';
import { Constants } from '../Constants';
import { LeaguePlugin } from '../LeaguePlugin';
import { LocalizationStrings as S } from '../localization/LocalizationStrin... |
import {Component, OnInit, Inject} from '@angular/core';
import {Web3Service} from './../../../util/web3.service';
import { WEB3 } from './../../../web3';
import { ThreeBox } from './../../../3box/3box.service';
declare let require: any;
const course_artifacts = require('./../../../../../build/contracts/Course.json');... |
import { Inject, Injectable } from '@nestjs/common';
import { CsvS3Service } from '../csv-s3/csv-s3.service';
import { PrismaService } from '../../prisma/prisma.service';
import { LoggingService } from './../../logging/logging.service';
import { parse } from 'csv-parse';
import CaseRow from './CaseRow';
const lGet = ... |
import React from 'react'
import * as Components from '@looker/components'
import {
AccordionProps,
AccordionDisclosureProps,
AccordionContentProps,
AvatarUserProps,
AvatarIconProps,
AvatarComboProps,
BadgeProps,
BoxProps,
BreakpointProps,
ButtonProps,
ButtonToggleProps,
ChipProps,
DividerProp... |
<reponame>joshuahamlet/phaser-wario-like-platformer<filename>src/Scenes/Play.ts
import Phaser from 'phaser'
import Player from '../Entities/Player'
import Platform from '../Entities/Platform'
import BlockBreakable from '../Entities/BlockBreakable'
import PlatformSinking from '../Entities/PlatformSinking'
import Door fr... |
<reponame>dulnan/nuxt-route-cache
import express, { NextFunction, Request, Response } from 'express'
import { PageCacheDisk, PageCacheMemory} from './../Cache/Page'
import ComponentCache from './../Cache/Component'
import DataCache from './../Cache/Data'
import { Cache } from './../Cache'
import basicAuth from 'basic-a... |
<reponame>publicdevop2019/mt-admin
import { ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
import { MatBottomSheet } from '@angular/material/bottom-sheet';
import { PageEvent } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { ActivatedRoute } fr... |
<reponame>wycats/glimmer
import { assert } from "glimmer-util";
import { Stack, DictSet } from "glimmer-util";
import {
TemplateMeta,
SerializedBlock,
SerializedTemplateBlock,
SerializedTemplate,
Core,
Statement,
Expression,
Expressions
} from 'glimmer-wire-format';
export type str = string;
export ty... |
import React, { FC, useEffect, useState } from 'react'
import accounting from 'accounting'
//plugins
import { VictoryArea, VictoryGroup, VictoryLine, VictoryLabel, VictoryScatter } from 'victory'
//components
import PulsePoint from '../../../../../static/img/PulsePoint.inline.svg'
//style
import './Graph.scss'
type... |
import * as _ from 'lodash';
import * as core from '@serverless-devs/core';
import * as yaml from 'js-yaml';
import Immutable from 'immutable';
import logger from '../common/logger';
import { IInputs } from './interface/interface';
import fs from 'fs';
const COMMON_VARIABLE_TYPE_REG = new RegExp(/\$\{(.*)\}/, 'i');
ex... |
import "../server/common/env";
import l from "../server/logger";
import { MCP23017, MCP23017PortId } from "../lib/MCP23017";
MCP23017.Init();
import { WbI2cBus } from "../lib/WbI2cBus";
const i2cBus = new WbI2cBus(l, {
busId: 1,
devices: [
{
address: 0x24,
type: "mcp",
name: "buttons",
... |
import React from "react";
import PageBanner from "../../components/PageBanner/PageBanner";
import {Section} from "../../components/Section/Section";
import styled from 'styled-components/macro';
import {getSessions, LoadingState, Session, Speaker} from "../program/data";
import {Link} from "react-router-dom";
import {... |
/* eslint-disable jsdoc/require-param */
import {Authenticated} from 'providers/AuthenticationProvider';
import Alert from 'react-bootstrap/Alert';
import Container from 'react-bootstrap/Container';
import React, {setGlobal, useEffect, useGlobal, useRef, useState} from 'reactn';
import {State} from 'reactn/default';
im... |
<gh_stars>0
import * as selection from "d3-selection";
import {
forceSimulation,
forceLink,
forceManyBody,
SimulationNodeDatum,
SimulationLinkDatum,
forceCenter,
ForceLink
} from "d3-force";
import { scaleOrdinal, scaleLinear } from "d3-scale";
import { schemeTableau10 } from "d3-scale-chromatic";
import ... |
import { GraphQLInputType, GraphQLList, GraphQLNamedType, GraphQLNonNull, GraphQLType } from 'graphql'
import { DynamicInputMethodDef, DynamicOutputMethodDef } from '../dynamicMethod'
import { DynamicOutputPropertyDef } from '../dynamicProperty'
import { NexusPlugin } from '../plugin'
import { AllInputTypes, GetGen } f... |
<reponame>carlosthe19916/ublhub
export interface UBLDocument {
id?: string;
createdOn: number;
inProgress: boolean;
error?: string;
scheduledDelivery?: number;
retryCount: number;
fileContentValid?: boolean;
fileContentValidationError?: string;
fileContent?: UBLDocumentFileContent;
sunat?: UBLDocu... |
export type Status = number;
export const StatusContinue: Status = 100; // RFC 7231; 6.2.1
export const StatusSwitchingProtocols: Status = 101; // RFC 7231; 6.2.2
export const StatusProcessing: Status = 102; // RFC 2518; 10.1
export const StatusOK: Status = 200; // RFC 7231; 6.3.1
export const StatusCreated: Status =... |
<filename>ex4/part3/src/test-program.ts<gh_stars>0
import * as A from './L51-ast';
import * as T from './TExp51';
import * as I from './L51-typeinference';
import * as Res from '../shared/result';
import {parse as parseSexp} from '../shared/parser';
const program0 =
`(L5 (define cell (class : Tcell
... |
import * as React from 'react'
import styled from 'styled-components'
import { get } from 'lodash'
import { Field, FieldProps, FieldConfig } from 'formik'
import { Box, P } from '@truework/ui'
import { Label } from './Label'
export type RadioProps = {
hasError?: boolean
name?: string
checked?: boolean
value: ... |
<filename>src/fleximap-leaflet.ts
// https://storage.googleapis.com/jeff-308116-media/countries.geojson
// https://storage.googleapis.com/jeff-308116-media/us-states.geojson
import L from 'leaflet'
import 'leaflet/dist/leaflet.css'
import { interpolateViridis } from 'd3-scale-chromatic'
import { GeoVisModel, GeoVisC... |
import { mdiClose } from '@lumx/icons';
import { AutocompleteMultiple, Chip, ChipGroup, Icon, List, ListItem, Size } from '@lumx/react';
import React from 'react';
interface City {
id: string;
text: string;
}
const CITIES: City[] = [
{
id: 'losangeles',
text: 'Los Angeles',
},
{
... |
import { OperatingSystem, guessOperatingSystem } from '../utils/util'
export const enum KbdEventType {
Input,
Keydown,
Keypress,
}
export enum SemanticShortcutType {
Undo = 'Undo',
Redo = 'Redo',
BeginningOfDocument = 'BeginningOfDocument',
EndOfDocument = 'EndOfDocument',
Save = 'Save',
}
export enu... |
import React, { FC, useState, ReactNode, useRef, useEffect, useCallback } from 'react';
import usePharmacy from '../../../../hooks/usePharmacy';
import useHandlePharmacyInputs from '../../../../hooks/useHandlePharmacyInputs';
import { useStores } from '../../../../store';
import Error from '../../../common/Error';
impo... |
// !important transform to js target should be ES5 ! or can't run.
// tsc .\vueHighway.ts --target ES5 -d
type NormalObj = {
[key: string]: any;
};
type VueInstance = {
// TODO
readonly $refs: any;
readonly $vnode: any;
$nextTick(): Promise<void>;
_vhContext: VHContext;
};
// ((createElement: CreateElement... |
import { CommonTokenStream, InputStream } from "antlr4";
import memoize from "lodash/memoize";
import { PslFilterLexer } from "./parser/PslFilterLexer";
import { PslFilterListener } from "./parser/PslFilterListener";
import { ExprContext, OpContext, PslFilterParser } from "./parser/PslFilterParser";
import { PslFilterE... |
<reponame>PatrickKoss/Evaluating-and-Improving-a-Scenario-based-Modifiability-Analysis-Method-for-Service-based-Systems<filename>api/src/routes/scenarios.routes.ts
import { Request, Response, Router } from "express";
import * as mongoose from "mongoose";
import Change from "../models/Change";
import Scenario from "../m... |
import { useState, useEffect, useContext } from "react";
import s from './Sidebar.module.css';
import SvgIcon from "../../icons/SVGIcon";
import CopyButton from "../../forms/CopyButton";
import { format as formatTimeAgo } from 'timeago.js';
import ReactTooltip from 'react-tooltip';
import licenseIcon from '!!raw-loader... |
import * as React from 'react';
import {map, extend} from 'lodash';
import {editor} from '../../../../styles';
import FrameListener from '../../../../utils/FrameListener';
import DebugData, {getObjectName} from '../../../DebugData';
import { TickerProps } from '../../../../utils/Ticker';
const inputStyle = {
textA... |
<filename>src/app/pages/medias/medias.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
import { FileUploader } from 'ng2-file-upload';
import { AuthService } fro... |
import { ApolloServer } from 'apollo-server-express'
import express from 'express'
import { existsSync } from 'fs'
import { GraphQLSchema } from 'graphql'
import { applyMiddleware } from 'graphql-middleware'
import { Server } from 'http'
import { makeSchema } from 'nexus'
import { makePrismaSchema } from 'nexus-prisma'... |
import NavigateItemView from "./NavigateItemView";
import { NavigateItem } from "./NavigateItem";
import NavigateItemPlusView from "./NavigateItemPlusView";
const { ccclass, property } = cc._decorator;
enum Direct {
horizontal = 2,
vertical = 1,
grid = 3
}
const BgColorList = ['#edb879', '#1979a9', '#e07... |
import {
AfterViewInit,
ChangeDetectorRef,
Directive,
ElementRef,
EventEmitter,
HostBinding,
Input,
OnChanges,
OnDestroy,
OnInit,
Output,
SimpleChanges,
ViewChild,
} from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { debounce, isEqual } from 'lodash-es';
impo... |
import Papa, { parse } from "papaparse";
import { ChromatinModel, parsePdb } from "./parsePDB";
// import gff from "@gmod/gff";
import { toNumber } from "lodash";
import { vec3 } from "gl-matrix";
export const enum FileType {
PDB,
CSV,
}
export const enum CSVDelimiter {
Comma = ',',
Tabulator = '\t',
... |
window.addEventListener("load", init);
let turtle: Turtle.Turtle;
function init() {
let canvas: HTMLCanvasElement = document.getElementsByTagName("canvas")[0];
let crc = canvas.getContext("2d");
turtle = new Turtle.Turtle(crc, canvas.width / 2, canvas.height - 30);
// turtle.moveForward(50);
// turtle.rotateCloc... |
import * as https from 'https';
import {
Pretend,
Interceptor,
IPretendRequestInterceptor,
IPretendDecoder,
Get,
Post,
Put
} from 'pretend';
export interface GitLab {
getProjects(): Promise<GitLabResponse<Project>>;
getProject(id: string): Promise<GitLabResponse<Project>>;
getMergeRequests(id: st... |
import csvparse from 'csv-parse';
import { Collection } from 'mongodb';
import { Writable, Readable } from 'stream';
import { v4 as uuid } from 'uuid';
import { IJobEntryForFieldCuration, IFieldEntry } from 'itmat-commons';
/* update should be audit trailed */
/* eid is not checked whether it is unique in the file: th... |
/**
* @author WMXPY
* @namespace Brontosaurus_Server_Routes_Reset
* @description Temporary
*/
import { AccountNamespaceMatch, ApplicationController, IAccountModel, IApplicationModel, INamespaceModel, MatchController, MATCH_FAILS_REASON, PreferenceController } from "@brontosaurus/db";
import { IResetModel } from "@... |
<reponame>sourcegraph/codemod
/* eslint-disable rxjs/throw-error, etc/throw-error */
import { AcceptedPlugin, Rule, ChildNode, Root } from 'postcss'
import parser, { isRoot, Selector } from 'postcss-selector-parser'
interface PostcssToCssModulePluginOptions {
// Classes that will be wrapped into a :global() keywor... |
import {
CUSTOMER_FORM_profile as PROFILE,
CUSTOMER_FORM_profile_organization as ORGANIZATION,
} from './__generated__/CUSTOMER_FORM';
import { CustomerFormIdentifiers, CustomerFormValues } from './types';
import {
AddressType,
CreateEmailInput,
CreatePhoneInput,
CustomerGroup,
EmailType,
OrganizationTy... |
import cx from "classnames";
import React from "react";
import ReactDOM from "react-dom";
import { connect } from "react-redux";
import Icon from "./Icon";
import Button from "./Button";
import CancelButton from "./CancelButton";
import { HostApi } from "../webview-api";
import { OpenUrlRequestType } from "../ipc/host.... |
<reponame>Liki4/FromJS
import { getShortKnownValueName } from "../names";
let nodeRequire;
if (global["fromJSIsNode"]) {
// note: require is a different value in each file
nodeRequire = eval("require");
}
export default class KnownValues {
_knownValues: any = {};
_knownValuesMap = new Map();
constructor() ... |
import * as React from 'react';
import { Card, Input, Select, Button, Row, Col, Form, DatePicker, InputNumber, Icon } from 'antd';
import { connect } from 'react-redux';
import { State, ZipkinState } from 'src/flux/reducers';
import { push } from 'react-router-redux';
import Actions from 'src/flux/actions';
import * as... |
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import { TransactionOverrides, TypedEventDescr... |
import {
AfterContentInit,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
Output,
SimpleChanges,
ViewChild,
} from '@angular/core';
import { LanguageChangNotifier } from '@helgoland/core';
import { PopoverController } from '@ionic/angular';
import { TranslateService } from '@ngx-translate/core... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.