text stringlengths 3.3k 33k |
|---|
/**
* Module dependencies.
*/
// import * as AutoComplete from 'enquirer';
// eslint-disable-next-line no-unused-vars
const { AutoComplete } = require('enquirer');
// Highlight definition
// eslint-disable-next-line no-unused-vars
const highlight = (input: string, color: (arg0: any) => any) => {
let val = input.... |
import * as React from "react"
import { useIntl } from "react-intl"
import { ChevronRightIcon } from "@heroicons/react/solid"
import { Seo } from "../../components/Seo/Seo"
import { FormattedMessage } from "../../components/FormattedMessage/FormattedMessage"
import { GoogleAuthenticationButton } from "../../components... |
<reponame>juancwu/raw-wss<gh_stars>0
// todo: declare on and emit methods overloads
import EventEmitter from "events";
import { nanoid } from "nanoid";
import { TLSSocket, TlsOptions } from "tls";
import { ClientRequest, IncomingMessage, request, RequestOptions } from "http"; // prettier-ignore
import { request as... |
import {
DataEndpoint,
DataEnum,
DataEnumField,
DataField,
DataStructure,
RequestMethod,
} from "./common.ts";
import {
fixType,
pascalCase,
snakeToName,
stripBold,
trimObjectName,
} from "./util.ts";
export const doc_path = "./repo/docs";
export type FileTree = {
[name: str... |
import { useState, useEffect, useCallback } from 'react';
import {
AppBar,
Autocomplete,
Button,
Dialog,
Grid,
IconButton,
List,
ListItem,
ListItemText,
ListSubheader,
TextField,
Theme,
Toolbar,
Tooltip,
Typography
} from '@material-ui/core';
import {
AddB... |
<gh_stars>10-100
import * as vscode from "vscode";
import { Disposable, disposeAll } from "./dispose";
import * as path from "path";
import { getNonce } from "./util";
import { WaveFile } from 'wavefile';
class AudioPreviewDocument extends Disposable implements vscode.CustomDocument {
static async create(
... |
import { IRowColEvent } from '../abstract-row-col-model';
import debounce from '../debounce';
import listeners from '../listeners';
import mousewheel from '../mousewheel';
import * as util from '../util';
export const EVENTS: Array<keyof HTMLElementEventMap> =
['click', 'mousedown', 'mouseup', 'mousemove', 'dblcli... |
import { parse } from 'cookie';
import { isV4Format, isV6Format, isPublic, isLoopback, isEqual } from 'ip';
import { createDecipheriv, randomBytes, createCipheriv } from 'crypto';
import { createHash } from 'crypto';
import { KeyValuePair } from '../types/key-value-pair';
import { Logger } from '../logger';
import { Re... |
<filename>dist/index.d.ts
/**
* Return type of action that is used to wrap several actions to be processed.
*
* @return
* Type of action that is used to wrap several actions to be processed.
*/
export declare function getExtraActionType(): string;
/**
* Change type of action that is used to wrap several... |
import 'react-native-gesture-handler';
import React, { useEffect, forwardRef, useRef, useImperativeHandle } from 'react';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import { Alert, Dimensions, Platform, TouchableOpacity, ActivityIndicator, KeyboardAvoidingView, TextInput, Image, Fl... |
declare module 'gray-percentage' {
type Hue = number | 'cool' | 'slate' | 'warm'
function gray(lightness: number, hue?: Hue, darkBackground?: boolean): string
export default gray
}
declare module 'compass-vertical-rhythm' {
type Options = Partial<{
baseFontSize: string
baseLineHeight: number | string
... |
import { riot, template } from '../riot-ts';
import store, { ApplicationState } from '../../model/store';
import { activityActions } from '../../model/activities/actions';
import { ACTIVITIES } from '../../model/action-types';
import { COMMON, TABS } from '../../model/action-types';
import HomeActivityTemplate from './... |
import { GlOption } from '../types';
import { vec3 } from 'gl-matrix';
import type { Gl } from './gl';
export type DrawType = GlOption.DYNAMIC_DRAW | GlOption.STATIC_DRAW;
export type WebGLProgramWithAttributeCache = WebGLProgram & {
cacheAttribLoc?: Record<string, number>;
};
export interface MeshAttribute {
bu... |
<gh_stars>1-10
import produce, { Draft } from 'immer';
import { AnyAction, combineReducers, Reducer, ReducersMapObject, Store } from 'redux';
import { ForkEffect, takeEvery, takeLatest } from 'redux-saga/effects';
import { Action, SimpleAction, SimpleActionGenerator, ActionGenerator } from './types';
import { accessNes... |
<filename>infrastructure/lib/infrastructure-stack.ts
import * as lambda from '@aws-cdk/aws-lambda';
import * as path from 'path';
import { Effect, PolicyStatement } from '@aws-cdk/aws-iam';
import { CorsHttpMethod, HttpApi, HttpMethod } from '@aws-cdk/aws-apigatewayv2';
import { HttpLambdaIntegration } from '@aws-cdk/a... |
import { Bloc, BlocsProvider } from "bloc-them";
import { html, TemplateResult } from 'lit-html';
import { UseThemConfiguration } from "../../configs";
import { WidgetBuilder } from '../../utils/blocs';
import { RaisedButton } from '../buttons';
import { HideBloc } from '../dialogues';
import { FormBloc, FormMessageBlo... |
import * as assert from 'assert'
import { Zipper, zipper, fromArray, getSemigroup, getMonoid, fromNonEmptyArray } from '../src/Zipper'
import { none, some, option } from '../src/Option'
import { semigroupSum } from '../src/Semigroup'
import { monoidSum } from '../src/Monoid'
import { NonEmptyArray } from '../src/NonEmp... |
<reponame>thegeofront/engine
// found this here:
// https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
import { Color } from "./Color";
/**
* Converts an HSL color value to RGB. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes h, s, and l are contained ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/// <reference path="../../syntax/parser/Parser.ts" />
var zip = window ['zip'];
zip.workerScriptsPath = 'third-party/gildas-lormeau-zip.js/';
var zipEntries : any [],
printSuccessfulComparisons = false,
esParser = window ['esprima'],
myParser = new Parser (),
contentElt : HTMLElement,
totalNumNodesElt : HTMLEle... |
import { Error, Loader, RHFDatepicker, RHFInput, RHFTimepicker, Title, Uploader } from 'components'
import placeholderEvent from 'img/placeholderEvent.png'
import { useSnackbar } from 'notistack'
import React, { useCallback, useContext } from 'react'
import Img from 'react-cool-img'
import { Helmet } from 'react-helmet... |
import { PureComponent } from 'react'
import { LineChart, Line, CartesianGrid, XAxis, YAxis, Tooltip, ResponsiveContainer, Legend, ReferenceArea, ReferenceLine } from 'recharts'
import { scaleLog, scaleLinear } from 'd3-scale'
import tailwindConfig from '../../../utils/tailwind'
import moment from 'moment'
import ... |
import {
convertArc,
convertCircle,
convertPad,
convertPolygon,
convertRect,
convertText,
convertTrack,
getNetId,
IConversionState,
IParentTransform,
kiAngle,
kiAt,
kiCoords,
kiUnits,
reportError,
} from './board-v6';
import { FootprintHead, IEasyEDAFootprint } from './easyeda-types';
impo... |
import {
DeterministicWalletData,
getDeterministicWallets,
} from '@sovryn/wallet';
import { toChecksumAddress } from 'ethereumjs-util';
import * as React from 'react';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { useTranslation } from 'react-i18next';
import styled, { css } from 'styled-comp... |
// Copyright (c) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as LitHtml from '../../third_party/lit-html/lit-html.js';
import {calculateColumnWidthPercentageFromWeighting, calculateFirstFocusableCell, ... |
import { CSSProperties } from 'react';
import Element from './Element';
import HtmlElementTag from './HtmlElementTag';
import { Alignment } from '../../domains/index';
export interface Document { }
export interface DataTransfer { }
export interface StyleMedia { }
export interface HTMLElement extends Element {
sty... |
<filename>packages/core/src/app.ts
import {
kApp,
kInstance,
kScope,
} from './symbols'
import avvio, { Avvio, mixedInstance, Plugin } from 'avvio'
export type PluginType = Plugin<AppInstanceOpts, AppInstance>
export type Lifecycle =
'_preInit' |
'_init' |
'_postInit' |
'_preHandler' |
... |
import { captureExec } from "../deps/exec_utils.ts";
import {
K8sCrdKind,
K8sCrdSchema,
K8sResource,
K8sResourceSchema,
} from "../deps/k8s_utils.ts";
import { expandGlob } from "../deps/std_fs.ts";
import { basename, dirname, fromFileUrl, joinPath } from "../deps/std_path.ts";
import { parseYaml } from "../dep... |
<filename>gru-web-app/src/canvas/utils.ts<gh_stars>0
import MSER from "../mser/mser"
import * as tf from '@tensorflow/tfjs'
// let model: tf.LayersModel
// (async () => {
// model = await inferr()
// })()
let mser = new MSER({
delta: 100, // Delta parameter of the MSER algorithm
minArea: 0.0001, // Minimu... |
/**
* Module dependencies.
*/
import _ from 'lodash';
import minimist from 'minimist';
import strip from 'strip-ansi';
import {Arg} from './command';
import {ICommand} from './types/types';
interface Options {
options: {[key: string]: any};
}
export default {
/**
* Parses command arguments from multiple
... |
import equal from 'fast-deep-equal';
import { CourseOverviewType } from '../../course-overview/components/CourseOverview';
import { InternalError } from '../error';
import { ObjectValuesDeepReadonly } from '../util/types';
import { YearTerm } from '../waseda/course/course';
import { CourseDataEntry } from '../waseda/co... |
<gh_stars>1-10
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
import { SafeStyle } from '@angular/platform-browser';
import { getInsolationColor, MOON, SUN } from '@tubular/astronomy';
import { DateTime, Timezone, utToTdt } from '@tubular/time';
import { floor, FMT_DD, FMT_MINS, min, r... |
declare module "kill-port";
import * as R from "rambda";
import got from "got";
import cassandra, { types as CassandraTypes } from "cassandra-driver";
import pWaitFor from "p-wait-for";
import { exists as existsOrig } from "fs";
import fs from "fs/promises";
import { jest } from "@jest/globals";
import util from "util... |
// made by <NAME> (dan2dev)
// import { Is } from "utility-collection/src/is";
export module Is {
export function empty(value: any): boolean {
if (value === undefined || value === null || value === "") {
return true;
} else {
return false;
}
}
// is Number
const numberRegex: RegExp = /\D... |
import { AxisConfiguration } from '@common/modules/charts/types/chart';
import {
ChartData,
DataSet,
DataSetCategory,
} from '@common/modules/charts/types/dataSet';
import generateDataSetKey from '@common/modules/charts/util/generateDataSetKey';
import groupResultMeasuresByDataSet, {
getIndicatorPath,
} from '@... |
<gh_stars>100-1000
// These methods are copied from ImageJ Ridge Detection
// https://github.com/thorstenwagner/ij-ridgedetection
// by <NAME> and <NAME>
const USE_INTEGRAL_FORM = true;
const UPPERLIMIT = 20.0;
const SQRT2 = 1.41421356237309504880;
const SQRTPI = 1.772453850905516027;
const SQRT_2PI_INV = 0.39894228... |
<filename>src/city_map.ts
import { Engine } from './engine';
import { ShapeFactory } from './shape_factory';
import { Loader } from './loader';
interface GroundMaterial {
src: string;
base: THREE.Material;
handler: (t: THREE.Texture) => void;
}
interface GroundBlock {
material: GroundMaterial;
yRotation?: number... |
<filename>src/compiler/code-gen/generateServer.ts
import {resolve, relative, dirname} from 'path';
import shortenFileNames from '../utils/shortenFileNames';
import AST from '../AST';
import SchemaKind from 'bicycle/types/SchemaKind';
import ValueType from 'bicycle/types/ValueType';
import {ParsedMethod, ResolvedAPI} fr... |
export const rawClientUser = {
verified: true,
username: "Test",
mfa_enabled: true,
id: "732441066992566304",
flags: 0,
discriminator: "0000",
bot: true,
avatar: "",
};
export const rawGuild = {
member_count: 15,
preferred_locale: "en-US",
stage_instances: [],
stickers: [],
voice_states: [],
... |
<reponame>tanogae/vsts-sprint-goal
import * as RoosterJs from 'roosterjs';
import Controls = require("VSS/Controls");
import Menus = require("VSS/Controls/Menus");
import StatusIndicator = require("VSS/Controls/StatusIndicator");
import EmojiPicker = require("vanilla-emoji-picker");
import { ExtensionDataService } from... |
import React, { Component } from 'react'
import { Animated, Alert, Image, TouchableOpacity, PanResponder, View, Text, } from 'react-native';
import {
Icon,
ListItem,
Badge,
Thumbnail
} from "native-base";
import Interactable from 'react-native-interactable';
import styles from "./../Home/styles";
import... |
<gh_stars>0
import { nanoid } from 'nanoid'
import {
ConnectSessionDescriptionEvent,
ConnectIceCandidateEvent
} from './events'
import type {
Request,
IncomingRequest,
ServerResponse
} from './interfaces'
import {
isIncomingRequest,
isServerResponse
} from './guards'
/** Connect connection state. */
e... |
import Box from "@material-ui/core/Box";
import { useEffect, useState } from "react";
import { OnChangeValue } from "react-select";
import ContactsTable from "../../components/tables/contactsTable";
import ContactsTableCategory, {
CategoryButton,
} from "../../components/tables/contactsTableCategory";
import Contacts... |
<reponame>irajgreenberg/Critter2
// ToneExperiment
// <NAME>
// Bacon Bits Cooperative
// Dallas, TX
// Project Description:
import { AmbientLight, Color, DirectionalLight, PCFSoftShadowMap, PerspectiveCamera, PointLight, Scene, SpotLight, WebGLRenderer } from 'three'
import { OrbitControls } from 'three/examples/js... |
<filename>src/app/cat-breakout/game/game.component.ts
import { Component, OnInit, ViewChild, ElementRef, ViewEncapsulation, Renderer2, AfterViewInit, OnDestroy } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
import { Game, GameState } from '../models/game.model';
import { Player } from '../models/p... |
<reponame>felladrin/js13k-2021
// Function derived from Jasmid's AudioPlayer (https://github.com/gasman/jasmid)
//
// Copyright (c) 2010, <NAME> & <NAME>
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditi... |
/**
* Mathematical utilities.
* @module math
* @license MIT
*
* @copyright 2010 <NAME>, 2010 <NAME>
*/
/**
* @typedef {PlainObject} module:math.AngleCoord45
* @property {Float} x - The angle-snapped x value
* @property {Float} y - The angle-snapped y value
* @property {Integer} a - The angle at which to snap... |
import * as azdev from "azure-devops-node-api";
import * as wita from "azure-devops-node-api/WorkItemTrackingApi";
import { resolve } from "path"
import { config } from "dotenv"
import { EventEmitter } from "events"
config({ path: resolve(__dirname, "../.env.ado") })
let orgUrl: string = "https://dev.azure.com/cse... |
import React, { useEffect, useState } from 'react';
import { useLocation } from 'react-router';
import { get as getAllEmployees } from '../zaposleni/zaposleni.service';
import { Zaposleni } from '../zaposleni/zaposleni.types';
import { handleResponse } from '../../utils/responseHandler';
import { Row, Col, Table, Butto... |
<filename>src/render.ts<gh_stars>0
import * as turf from "@turf/turf";
import Canvg from "canvg";
import * as d3 from "d3";
import * as GIF from "gif.js.optimized";
import * as uuid from "uuid/v4";
const height = 500;
const width = 500;
const margin = 20;
const radius = 200;
const overpassRadius = 500;
const maxDist ... |
<filename>src/apps/cifschema/index.ts
/**
* Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import * as argparse from 'argparse'
import * as fs from 'fs'
import * as path from 'path'
import fetch from 'node-fetch'
import { parseCsv } f... |
import assert from 'assert'
import Ajv from 'ajv'
import * as React from 'react'
import { Formik } from 'formik'
import { saveAs } from 'file-saver'
import JSZip from 'jszip'
import { reportEvent } from '../analytics'
import { reportErrors } from './analyticsUtils'
import { AlertModal } from '@opentrons/components'
imp... |
<filename>src/components/ModerationPanel/ModerationPanel.ts
import type {
TicketDataType,
UsersDataInReportedContentsType,
} from "@BrainlyAction";
import Action from "@BrainlyAction";
import { GQL } from "@BrainlyReq";
import { Modal } from "@components";
import type { ContentNameType } from "@components/Moderatio... |
import { Pattern, MemberExpression } from 'estree';
import { ExpressionNode } from './ast';
export function getIdentifier(name: string, apis: Array<string>, args: Array<string>, locals: Array<string>) {
if (locals.indexOf(name) === -1) {
if (args.indexOf(name) >= 0) {
return `$data.${name}`;
} e... |
<gh_stars>0
import { Component, OnInit, Input } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
import { MonomerService } from '../../../../core/monomer/monomer.service'
import { Monomer } from '../../../../core/monomer/monomer'
import { SinglePlanCreateDto } from '@core/plan/single-plan-c... |
export class Entity {
name: string;
type: string;
color: string;
img: string;
key: string;
roles: string[];
banner: string;
description: string;
variables: {name: string, value: any}[];
actions: {name: string, value: any}[];
extra: any;
// {
// items: string[];
// places: string[];
// ... |
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { makeBaseStoreState } from '@kbase/ui-components';
import { AppError } from '@kbase/ui-components';
import { BaseStoreState } from '@kbase/ui-components';
import { EpochTime } from '../types/base';
import { JobEven... |
/* tslint:disable */
import { Injectable } from '@angular/core';
import { Accesstoken } from '../../models/Accesstoken';
import { ApprovalArtefact } from '../../models/ApprovalArtefact';
import { ApprovalQue } from '../../models/ApprovalQue';
import { ApprovalRule } from '../../models/ApprovalRule';
import { AsramaMast... |
import React, {
FC,
memo,
useCallback,
useEffect,
useMemo,
useReducer,
useRef,
useState,
} from 'react';
import styled from '@emotion/styled';
import { colors, fontFamilies } from '../styles';
import clsx from 'clsx';
import { Color } from 'three';
import { GradientSlider } from './GradientSlider';
impo... |
<gh_stars>1-10
import {writable, get, type Readable} from 'svelte/store';
import {UnreachableError} from '@feltcoop/felt/util/error.js';
import type {ClockStore} from '$lib/app/clock.js';
// TODO rotation!
export interface TourState {
data: TourData;
currentTime: number;
currentStepIndex: number;
}
export interf... |
import * as vscode from 'vscode';
import * as uuid from 'uuid';
import ProjectEntry from "./project-entry";
import Util from './util';
import ProjectFolder from './project-folder';
class Config {
api: vscode.WorkspaceConfiguration;
////////////////////////////////////////////////////////////////
////////////////... |
/* eslint-disable no-console */
import { clickCountBookmark } from 'api/bookmarkAPI';
import {
BellSelectedIcon,
BellUnSelectedIcon,
Copy24Icon,
More24Icon,
Symbol36Icon,
} from 'assets/icons';
import { ellipsis } from 'assets/styles/utilStyles';
import CheckBox from 'components/common/CheckBox';
import Folde... |
////////////////////////////////////
import 'marky'
const user_timing_measurement = (window as any).marky
user_timing_measurement.mark('global')
user_timing_measurement.mark('bootstrap')
import * as Rx from '@reactivex/rxjs'
import { auto, Operator, ResolvedStreamDefMap } from '@offirmo/rx-auto'
import Packery = requ... |
import debug from 'debug';
import { MongoClient, Db } from 'mongodb';
import { BaseModel } from './model';
import { InvalidShardId, ShardIsReadOnly, DatabaseIsReadOnly } from './errors';
import { CommonObject, Nullable } from './util';
import { ModelCursor } from './model_cursor';
import {
CacheAdapter,
SimpleCache... |
import React, { useCallback, useEffect } from "react";
import { ITitleDataEnemy, ITitleDataEnemyGroup } from "../shared/types";
import { PrimaryButton, MessageBar, MessageBarType, DefaultButton, DocumentCard } from "@fluentui/react";
import styled, { UlInline, UlNull, DivDocumentCardInterior, DlStats } from "../styl... |
// Copyright 2019 Verily Life Sciences Inc.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {ChartType} from '../graphs/graphtypes/graph/graph.component';
import... |
import cloneDeep from 'lodash.clonedeep';
//
// Get type from the mongoose schema
//
// Returns the type, so in case none is set, it's the mongoose type.
//
// @param paths
// @param field
// @return the type or false
//
function getTypeFromPaths(
paths: {
[p: string]: {
instance: string;
options?: {... |
<reponame>mdeeds/essentially-it<filename>ts/conduit/zigZag.ts
import * as THREE from "three";
import { Motion } from "../motion";
import { Tick, Ticker } from "../ticker";
import { Synth } from "./synth";
import { ThresholdMaterial } from "./thresholdMaterial";
class Trigger {
constructor(readonly synth: Synth, read... |
<reponame>legodude17/rw-modmaker-studio
import { List, Map } from 'immutable';
import xml, { XmlObject } from 'xml';
import { promises as fs } from 'fs';
import path, { join } from 'path';
import { parse, Node } from './parser/XMLParser';
import {
Def,
Field,
LoadType,
makeDef,
makeField,
makeManifest,
ma... |
import * as React from 'react';
import {
DataGridPro,
getDataGridUtilityClass,
GridColumns,
DataGridProProps,
GridEventListener,
GridEvents,
GridGroupingColDefOverride,
GridRenderCellParams,
GridRowModel,
GridRowsProp,
useGridApiContext,
useGridApiRef,
useGridRootProps,
} from '@mui/x-data-gri... |
/*
University of Illinois/NCSA Open Source License
Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved.
Developed by: Terrain Data, Inc. and
the individuals who committed the code in this file.
https://github.com/terraindata/terrain
Permission is ... |
import * as React from 'react';
// Themes
import { useMainStyles } from 'Theme/Main';
import { TableCell, StyledTableRow1, useTableStyles } from 'Theme/Table';
// Material UI
import { Paper, makeStyles, Theme, createStyles, Typography, Button, Grid, Box, TableContainer, Table, TableHead, TableRow, TableBody, Tooltip } ... |
<reponame>princesehgal452/fleet-driver
import { action, observable } from 'mobx';
import { CollectionsStore } from './CollectionsStore';
import ApiLayer from '../../services/APIServices/ApiLayer';
import Match from '../../models/dataStructures/Match';
import { DriverAppStore } from './DriverAppStore';
import { ins... |
import { StringEncodingOptions } from "./string-encoding-options";
/**
* Represents a request to read a number of bits
*/
export interface BitstreamRequest {
resolve : (buffer : number) => void;
length : number;
peek : boolean;
}
/**
* A class which lets you read through one or more Buffers bit-by-bit.... |
import _ from 'lodash'
import moment from 'moment'
import onlineRender, { IOnlineData } from './online_render'
import onlineWeekRender, { IOnlineWeekOptions } from './online_week_render'
import developmentWeekRender, { IDevelopmentOptions } from './development_week_render'
import Transporter from '~/src/library/email'
... |
import { default as React } from 'react';
import {
BrowserRouter as Router,
Route,
NavLink,
} from 'react-router-dom';
import {
IconButton,
Typography,
AppBar,
Toolbar,
withStyles,
Theme,
WithStyles,
createStyles,
SvgIcon,
Drawer,
List,
ListItem,
ListItemIcon,
ListItemText,
Snackbar,... |
import path = require('path')
import RegClient = require('npm-registry-client')
import logger from 'pnpm-logger'
import pLimit = require('p-limit')
import npa = require('npm-package-arg')
import pFilter = require('p-filter')
import R = require('ramda')
import safeIsInnerLink from '../safeIsInnerLink'
import safeReadPkg... |
const team_basic_atl =
{
"resource": "commonteamroster",
"parameters": {
"TeamID": 1610612737,
"LeagueID": "00",
"Season": "2017-18"
},
"resultSets": [{
"name": "CommonTeamRoster",
"headers": ["TeamID", "SEASON", "LeagueID", "PLAYER", "NUM", "POSITION", "HEIGHT", "WEIGHT", "BIRTH_DATE", "AGE", "EXP", "SC... |
import { app, BrowserWindow, ipcMain, dialog, shell, nativeTheme } from "electron";
import { IpcMainEvent } from "electron/main";
import * as path from "path";
import { MyBookmarks } from "./bookmarks";
import { SSHSession, WSLSession } from "../shared/session";
import * as Store from 'electron-store';
try {
require(... |
import { AuctionResultForYouQuery } from "__generated__/AuctionResultForYouQuery.graphql"
import { ArtworkFiltersStoreProvider } from "lib/Components/ArtworkFilter/ArtworkFilterStore"
import { PageWithSimpleHeader } from "lib/Components/PageWithSimpleHeader"
import { LinkText } from "lib/Components/Text/LinkText"
impor... |
/*
* Invoke the Oracle procedure and return the raw content of the page
*/
import oracledb from 'oracledb';
import {streamToBuffer} from './stream';
import {uploadFiles, filesUploadType} from './fileUpload';
import {parse, send} from './page';
import {ProcedureError} from './procedureError';
import {RequestError} from... |
/**
* Fast Fourier Transform (FFT).
*
* This module implements the following classic FFT algorithms:
* - Cooley-Tukey (Radix-2)
* - Bluestein
* It is not extremely optimized, but should be reasonably fast for normal purposes.
*
*/
import ComplexArray from "../math/ComplexArray";
import MutableComplex from "../math/M... |
// _______ ___ ___ _ __
// / __/ _ | / _ \___ / _ \_______ (_)__ ____/ /_
// / _// __ |/ // / -_) / ___/ __/ _ \ / / -_) __/ __/
// /_/ /_/ |_/____/\__/ /_/ /_/ \___/_/ /\__/\__/\__/
// |___/
//
// FADe Project Source code
// ... |
import React, { useEffect, useState } from "react"
import styled from "@emotion/styled"
import { nanoid } from "nanoid"
import { reduce } from "lodash"
import {
TextField,
Card,
CardHeader,
CardContent,
Collapse,
Grid,
Box,
Tabs,
Tab,
Button,
Divider,
} from "@material-ui/core"
import { Close, Ad... |
<gh_stars>0
import { Subscription } from 'rxjs/Subscription';
import { Router } from '@angular/router';
import { ThingService } from 'app/thing.service';
import { Component, OnInit } from '@angular/core';
import * as moment from 'moment';
const signalR = require("@aspnet/signalr");
import { environment } from './../../... |
import * as child_process from 'child_process';
import * as fs from 'fs';
import * as path from 'path';
import * as log from './log';
import {loadProject} from './ProjectFile';
export class Library {
libpath: string;
libroot: string;
}
export class Target {
baseTarget: string;
backends: string[];
constructor(ba... |
// Imports
import { WASMBOY_STATE_LOCATION } from './constants';
import { Cpu, initializeCpu, executeOpcode } from './cpu/index';
import { Graphics, initializeGraphics, initializePalette, updateGraphics, batchProcessGraphics } from './graphics/index';
import { Interrupts, checkInterrupts } from './interrupts/index';
im... |
<reponame>LapinoLapidus/disquirer.js<filename>src/Asker.ts
import {
DMChannel,
Message,
MessageCollector,
MessageReaction,
ReactionCollector,
RichEmbed,
TextChannel,
User
} from "discord.js";
import { Disquirer } from "./index";
import { Answer } from "./interfaces/Answer";
import { Question } from "./i... |
<gh_stars>0
import m, { FactoryComponent } from 'mithril'
import {
component,
getValue,
renderModel,
ComponentModel,
ValueSource,
ComponentAttrs,
setValue,
ValueCodec,
} from '../../core'
import { call, clamp, cssClass, dragUtil, getTouchInTarget, getTouchPoint, twuiClass } from '../../core/utils'
impo... |
<reponame>DEXAGA/react-draggable-hooks<gh_stars>0
import * as React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import {matchesSelectorAndParentsTo, addEvent, removeEvent, addUserSelectStyles, getTouchIdentifier,
removeUserSelectStyles} from './utils/domFns';
import {crea... |
import { LngLatLike, Marker } from "mapbox-gl";
export class SpiderLegParam {
x!: number;
y!: number;
angle!: number;
legLength!: number;
index!: number;
}
export class SpiderLegElements {
container!: HTMLDivElement;
line!: HTMLDivElement;
pin!: HTMLDivElement;
}
export class SpiderLeg {
feature: a... |
<gh_stars>10-100
/// <reference path="defs.d.ts" />
import { signalRoomName, offerRequestDecrypted, KeyPair, genKeyPair, offerEncrypted, answerDecrypted, debug, randomPhrase, clientUrl, suggestedRTCConfig, getScreenCaptureUnsupportedWarning } from './util'
import { PubSub, createDefaultPubSub } from './pubsub'
export... |
<gh_stars>1-10
/**
* Copyright 2018 xMobe https://www.xmobe.com
*
* 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, ... |
<reponame>cdk-turnkey/sredirect
import {
App,
Stack,
StackProps,
RemovalPolicy,
CfnOutput,
CfnResource,
} from "aws-cdk-lib";
import { aws_s3 as s3 } from "aws-cdk-lib";
import { aws_cloudfront as cloudfront } from "aws-cdk-lib";
import { aws_cloudfront_origins as origins } from "aws-cdk-lib";
import { aws_... |
import React, { ReactNode } from 'react';
import { observer } from 'mobx-react';
import { useStore } from 'shared/hooks';
import styled from 'styled-components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch } from '@fortawesome/free-solid-svg-icons';
import { FormattedMessage } fr... |
import * as React from 'react'
import { connect } from 'react-redux'
import { NotebookStore } from './../../store/NotebookStore'
import { toastr } from 'react-redux-toastr'
import { mapStateToPropsNotebook, mapDispatchToPropsNotebook } from '../../actions/NotebookActions'
import GoogleApi from './../../api/google/Googl... |
<reponame>brocktaylor7/axe-sarif-converter<gh_stars>10-100
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { DictionaryStringTo } from './dictionary-types';
export interface WCAGLinkData {
text: string;
url?: string;
title?: string;
}
function standar... |
<gh_stars>100-1000
import { IReadonlyTheme, ThemeChangedEventArgs, ThemeProvider } from '@microsoft/sp-component-base';
import { Version } from '@microsoft/sp-core-library';
import { isEqual } from '@microsoft/sp-lodash-subset';
import {
IPropertyPaneConfiguration,
PropertyPaneChoiceGroup,
PropertyPaneDropdown
} ... |
<filename>src/client/app/home/home.component.ts<gh_stars>0
import { Component, OnInit, ViewChild } from '@angular/core';
import { InputModalComponent } from './modals/input-modal.component';
import { NameListService } from '../shared/name-list/name-list.service';
import {SpeechRecognitionService} from './speech-recogni... |
<gh_stars>0
export const products = [
{
"id" : 1,
"name" : "Apple",
"image" : "https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Red_Apple.jpg/265px-Red_Apple.jpg",
"price" : 35
},
{
"id" : 2,
"name" : "Banana",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.