text stringlengths 3.3k 33k |
|---|
import { dynamicElevationOffsetProperty, elevationProperty, getRippleColor, rippleColorProperty, shapeProperty, themer } from '@nativescript-community/ui-material-core';
import { createStateListAnimator, getAttrColor, isPostLollipop } from '@nativescript-community/ui-material-core/android/utils';
import { Color, Length... |
import { jid as parseJid, xml } from '@xmpp/client';
import { JID } from '@xmpp/jid';
import { Element } from 'ltx';
import { filter } from 'rxjs/operators';
import { Direction, Message, MessageState } from '../../../../core/message';
import { MessageWithBodyStanza, Stanza } from '../../../../core/stanza';
import { Cha... |
<gh_stars>0
import * as core from "@actions/core";
import * as fs from "fs";
import * as yaml from "js-yaml";
import { Kubectl } from "../../types/kubectl";
import {
isDeploymentEntity,
isIngressEntity,
isServiceEntity,
KubernetesWorkload,
} from "../../types/kubernetesTypes";
import * as fileHelper from "../..... |
import * as semver from 'semver';
import * as vscode from 'vscode';
import * as nls from 'vscode-nls/node';
import { context } from './context';
import { getLogger } from './logger';
import { Package } from './Package';
const localize = nls.loadMessageBundle();
/**
* The data from `vscode.Extension` that is needed ... |
<filename>bokehjs/src/lib/models/math_text/math_text.ts
import * as p from "core/properties"
import * as visuals from "core/visuals"
import {Signal0} from "core/signaling"
import {isNumber} from "core/util/types"
import {Context2d} from "core/util/canvas"
import {load_image} from "core/util/image"
import {CanvasImage} ... |
/**
* @license
* Copyright 2017 SAP Ariba
*
* 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... |
/** @jsx jsx */
import React, {useState, useRef, useEffect} from 'react';
import {jsx, SxStyleProp} from 'theme-ui';
import {CircleLoader} from './loading-components/CircleLoader';
import AboutUsSpeechBubble from '../assets/speech bubble.png';
import AboutUsSpeechBubbleMobile from '../assets/speechBubbleMobile.png... |
<reponame>mpochwala/spartacus
import {
apply,
chain,
mergeWith,
move,
noop,
Rule,
SchematicContext,
SchematicsException,
template,
Tree,
UpdateRecorder,
url,
} from '@angular-devkit/schematics';
import { strings } from '@angular-devkit/core';
import * as ts from 'typescript';
import {
getDecor... |
import * as moment from "moment";
import { Position, Range, Selection, TextEditor, TextLine, WorkspaceEdit } from "vscode";
import { IDocGen } from "../../Common/IDocGen";
import { Config } from "../../Config";
import { CppArgument } from "./CppArgument";
import * as CppParser from "./CppParser";
import { CppParseTree ... |
import { action, computed, observable } from "mobx";
import { distanceInWordsToNow, format } from "date-fns";
const locales = {
da: require("date-fns/locale/da"),
de: require("date-fns/locale/de"),
en: require("date-fns/locale/en"),
es: require("date-fns/locale/es"),
fi: require("date-fns/locale/fi... |
<filename>src/convert/streams.ts
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Archiver, create as createArchive } from 'archi... |
<reponame>thib3113/unifi-client
export interface ISiteSettings {
_id: string;
site_id: string;
key: string;
}
export interface ISiteSettingsNTP extends ISiteSettings {
_id: string;
site_id: string;
key: 'ntp';
ntp_server_1: string;
ntp_server_2: string;
ntp_server_3: string;
ntp_... |
<filename>src/emailManager.ts
import * as assert from 'assert';
import * as fs from 'fs';
import * as _ from 'lodash';
import * as nodemailer from 'nodemailer';
import { Configuration } from './configuration';
import { Database } from './database';
import { Email } from './email';
import { logger } from './logger';
im... |
import { matchSorter } from "match-sorter";
/**
* This is just matching a hard-coded list of values, but often you'd be
* querying your database for a set of records. If you're using prisma with
* postgres, you can use "fulltext" to let the database make it really fast for
* you:
* https://www.prisma.io/docs/conc... |
import React, { useRef, useState } from 'react'
import {
ImageBackground,
Keyboard,
Platform,
StyleSheet,
Text,
TextStyle,
TouchableOpacity,
View,
ViewStyle
} from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
import { Button, Icon, Input } from 'react-native-elements'
i... |
// <copyright file="filterBar.tsx" company="Microsoft Corporation">
// Copyright (c) Microsoft.
// Licensed under the MIT License.
// </copyright>
import * as React from "react";
import { Flex, Input, Text, Button, AddIcon } from "@fluentui/react-northstar";
import * as microsoftTeams from "@microsoft/teams-js";
impo... |
<reponame>matthew-mcallister/dance<gh_stars>0
import { writeFileSync } from "fs";
import { Command, additionalKeyBindings, commands } from "./commands";
// Key bindings
// ============================================================================
const keybindings: {
command: string;
key: string;
when: strin... |
import React, { useContext, useEffect, useRef, useState } from "react";
import "./ContinuousDeployment.scss";
import { ActionContext, StateContext } from "../../../../../../hooks";
import { IActionModel, IStateModel } from "../../../../../../model/hooks.model";
import WebhookItem from "./components/WebhookItem";
import... |
import { MegaminxSimulator } from './../../simulator/megaminx/megaminxSimulator';
import { PINK, LIGHT_YELLOW, GREY, LIGHT_GREEN, PURPLE, DARK_BLUE } from './../../puzzles/colors';
import { PyraminxSimulator } from '../../simulator/pyraminx/pyraminxSimulator';
import { RED, BLUE, WHITE, ORANGE, GREEN } from '../../puzz... |
<filename>gui/frontend/src/parsing/DBSymbolTable.ts
/*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This p... |
//******************************************************************************************************
// Row.tsx - Gbtc
//
// Copyright © 2021, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// the NOTICE... |
<filename>src/managers/GuildMemberManager.ts
'use strict';
import type { FIXME } from '../types';
const BaseManager = require('./BaseManager');
const { Error: DiscordError, TypeError: DiscordTypeError, RangeError: DiscordRangeError } = require('../errors');
const GuildMember = require('../structures/GuildMember');
co... |
import * as path from 'path';
import * as format from 'pretty-time';
import * as rimraf from 'rimraf';
import * as commondir from 'commondir';
import * as ts from 'typescript';
import * as util from './util';
import * as bus from './bus';
import { MutationContext } from './context';
import { getMutators } from './mutat... |
import { clipboard } from "electron";
import { message } from "antd";
import React, { Fragment, useCallback, useContext, useEffect, useState } from "react";
import { observer } from "mobx-react-lite";
import { isSameDay } from "date-fns";
import {
InviteModal,
RemoveRoomModal,
RoomListAlreadyLoaded,
Roo... |
import React, { Component } from "react";
import { render } from "react-dom";
import './courses.scss';
import { CoursesGrid } from './CoursesGrid';
interface Course{
title : string;
description : string;
category : string;
duration : string;
points : string;
id : string;
}
export class Courses extends Compone... |
/**
* Copyright 2017-2020 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* 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/... |
import { action, observable, computed } from 'mobx'
import allSettled from 'promise.allsettled'
import { Place as PlaceShape } from '@coronatab/shared'
import { PlaceApi } from '../utils/api/place'
import { LocalStorage } from '../utils/storage'
import { HTTP } from '../utils/http'
import moment from 'moment'
... |
<filename>static/js/tools/map/util.ts
/**
* 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 r... |
<filename>src/connect/connect.wire.ts
import { EventEmitter } from 'events';
import { ECommands } from '../../../../types/commands';
import { Parser } from '../meta-data-parser/parser';
import { Readable } from 'stream';
import { StreamCommRam } from './ram.stream.wire';
import { ErrorReadRam } from './ram.stream';
imp... |
<reponame>srinivasvaidya/pytech<filename>server/routes/sms.ts
import { Request, Response, Router } from "express";
import * as uuid from "uuid";
var dbFactory = require("../db.factory");
var moment = require('moment');
var sql = require("mssql");
var http = require("http");
const smsRouter: Router = Router();
smsRout... |
<reponame>yuyaryshev/ycplmon
// TODO Бесконечно заменяет файл снова и снова. При использовании watch соместно с Webstorm теряются данные.
import { join as joinPath, resolve as resolvePath, sep as pathSep } from "path";
import { Dirent, readFileSync, writeFileSync } from "fs";
import { Command } from "commander";
impor... |
<gh_stars>0
import { pageable } from "relay-cursor-paging"
import {
convertConnectionArgsToGravityArgs,
removeNulls,
isExisty,
} from "lib/helpers"
import {
connectionFromArraySlice,
connectionDefinitions,
toGlobalId,
} from "graphql-relay"
import {
GraphQLFieldConfig,
GraphQLNonNull,
GraphQLID,
Gra... |
// Shims
import 'reflect-metadata';
import 'zone.js';
import { YagaModule } from '../../lib/index'; // @yaga/leflet-ng2
import { Component, PlatformRef } from '@angular/core';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-brows... |
import { ccclass, serializable, uniquelyReferenced } from 'cc.decorator';
import type { Component } from '../../components';
import type { ObjectCurve, QuatCurve, RealCurve } from '../../curves';
import { assertIsTrue } from '../../data/utils/asserts';
import { error, errorID, warn, warnID } from '../../platform';
impo... |
import React from 'react'
import { Axis, axisBottom, axisLeft, axisRight } from 'd3-axis';
import { format } from 'd3-format';
import { scaleOrdinal, scalePoint } from 'd3-scale';
import { schemeTableau10 } from 'd3-scale-chromatic';
import { create } from 'd3-selection';
import { line } from 'd3-shape';
import useSvgM... |
<gh_stars>1-10
import axios from 'axios';
import * as _ from 'lodash';
import { DateTime } from 'luxon';
import * as querystring from 'querystring';
import { v4 as uuidv4 } from 'uuid';
import { db, rollbar } from './admin';
import {
PubsubMessageData,
TaskActionInfo,
Taskalator,
TempTask,
Todoist,
... |
import { ipcMain, dialog, app, BrowserWindow, OpenDialogOptions } from 'electron'
import path from 'path'
import fs from 'fs'
import archiver from 'archiver'
import { v4 as uuidv4 } from 'uuid'
import extract from 'extract-zip'
import { electronData } from './electron-data'
import { WebsitePathItem } from '../../src-c... |
import InputMask, {InputMaskFormatOptions, InputMaskSelection} from "inputmask-core";
import {range, takeWhile} from "lodash";
import {action, computed, makeObservable, observable} from "mobx";
import {observer} from "mobx-react";
import numeral from "numeral";
import {ClipboardEvent, Component, KeyboardEvent} fro... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... |
/*!
Newton's Method project
Copyright 2020 Mount Si Software LLC
*/
import { ComplexNumber, Equation, Polynomial, SimplePolynomial } from "./NewtonsMethodClasses.js"
import { NewtonsMethod, NewtonsMethodResult, RootWell } from "./NewtonsMethodAlgorithm.js"
import { ImageCollection, ImageInfo } from "./NewtonsM... |
<gh_stars>1-10
import { createModule, action, mutation } from "vuex-class-component";
import {
ProposedConvertTransaction,
LiquidityParams,
OpposingLiquidParams,
ModalChoice,
NetworkChoice,
FeeParams,
NewOwnerParams,
HistoryRow,
ProposedToTransaction,
ProposedFromTransaction,
ModuleParam
} from "@... |
import sgit from "simple-git/promise";
import { commands, window } from "vscode";
import { getVscProfiles, saveVscProfile } from "./config";
import * as constants from "./constants";
import * as controls from "./controls";
import { Profile } from "./models";
import * as util from "./util";
import { Logger } from "./uti... |
<reponame>paramountric/digitaltwincityviewer<gh_stars>0
// Copyright (C) 2022 <NAME>
// Licensed under the MIT License
// Heavily inspired by https://github.com/maplibre/maplibre-gl-js/blob/main/src/geo/transform.ts (Copyright (c) 2020, Mapbox under a BSD-3-Clause license)
// todo: note that @math.gl/web-mercator seem ... |
<reponame>xuelang-group/sp-image-annotation<filename>src/ShapeStage.ts<gh_stars>0
import Stage, { StageType } from './Stage';
import { ShapeType } from './Components/Shape';
import Layer, { LayerType } from './Layer';
import Components from './Components/index';
import STAGE_STATE from './constants/states';
import Imag... |
import path from 'path';
import fs from 'fs-extra';
import ow from 'ow';
import * as R from 'ramda';
import readPkgUp, { NormalizedPackageJson } from 'read-pkg-up';
import semver from 'semver';
import tempy from 'tempy';
import { REWRITE_FIELDS } from 'etc/constants';
import log from 'lib/log';
import { getPackList }... |
<gh_stars>1-10
import './index.less';
import { createNode, hasChild, nextFrame } from '../utils/index';
// 构造参数
export interface Options {
baseNode: HTMLElement;
treeData: TreeNodeData[];
paddingLeft: number;
titleKey: string; // 标题取对象哪个字段
templates: OptTemplate;
click?: (data: FlatTreeNode, e?: Event) => ... |
import { Injectable } from '@angular/core';
import { Observable, ReplaySubject, from, NEVER, of, forkJoin } from 'rxjs';
import { map, pluck, reduce, shareReplay, switchMap, take, tap, withLatestFrom } from 'rxjs/operators';
import { EsriMapService } from '@tamu-gisc/maps/esri';
import { UserService } from '@tamu-gisc... |
import React, { useCallback, useEffect, useState } from "react";
import { makeStyles, withStyles, Theme, createStyles } from "@material-ui/core/styles";
import { PayloadAction } from "typesafe-actions";
import Paper from "@material-ui/core/Paper";
import Table from "@material-ui/core/Table";
import TableBody from "@mat... |
/*
The MIT License (MIT)
Copyright (c) 2020 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
<reponame>deepakjpchhabria/literally-discord-bot
/* eslint-disable indent */
import { stripIndents } from "common-tags";
import { differenceInSeconds } from "date-fns";
import { MessageEmbed, MessageReaction, TextChannel, User } from "discord.js";
import pino from "pino";
import {
SlashCreator,
CommandContext,
Sl... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
<gh_stars>1-10
/*
* Copyright 2021 The PartChain Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
<filename>src/transaction/Transaction.ts
import _ from "lodash";
import {
getPublicKey,
getSignature,
importPublicKey,
} from "../utils/cryptoUtils";
import { COINBASE_AMOUNT } from "../utils/consts";
import { TxIn } from "./TxIn";
import { TxOut } from "./TxOut";
import { UnspentTxOut } from "./UnspentTxOut";
im... |
type Firmware = string | 'Up To Date'
export enum RingDeviceType {
BaseStation = 'hub.redsky',
Keypad = 'security-keypad',
SecurityPanel = 'security-panel',
ContactSensor = 'sensor.contact',
MotionSensor = 'sensor.motion',
RangeExtender = 'range-extender.zwave',
ZigbeeAdapter = 'adapter.zigbee',
Access... |
<reponame>wycats/glimmer
import { Scope, DynamicScope, Environment } from '../environment';
import { DestroyableBounds, clear, move as moveBounds } from '../bounds';
import { ElementStack, Tracker, UpdatableTracker } from '../builder';
import { LOGGER, Opaque, Stack, LinkedList, Dict, dict } from 'glimmer-util';
import... |
import { addMinutes, differenceInMinutes, subMinutes } from "date-fns";
import { v4 as uuidv4 } from "uuid";
import { Station } from "@/api/protocol/motis";
import {
RiBasisFahrtAbschnitt,
RiBasisFahrtData,
RiBasisHaltestelle,
RiBasisOrt,
RiBasisZeitstatus,
} from "@/api/protocol/motis/ribasis";
import { fo... |
import fetchPonyfill from "fetch-ponyfill";
import Web3 from "web3";
import { JsonRpcPayload } from "web3-providers";
import { JsonRPCRequest, JsonRPCResponse } from "web3/providers";
import { Subprovider } from "@0x/subproviders";
import { JSONRPCRequestPayload } from "ethereum-types";
//import { VERSION } from "./ve... |
import { DiscordooError, range } from '@src/utils'
import { CollectionEqualOptions } from '@src/collection/interfaces/CollectionEqualOptions'
import { CollectionFilterOptions } from '@src/collection/interfaces/CollectionFilterOptions'
import { CollectionRandomOptions } from '@src/collection/interfaces/CollectionRandomO... |
import * as vscode from 'vscode';
import { createLogger } from '../logging';
import SegmentAnalytics from 'analytics-node';
import * as path from 'path';
import { config } from 'dotenv';
import { StorageController } from '../storage';
import { ConnectionTypes } from '../connectionController';
import { getCloudInfo } fr... |
<filename>scenario/src/Value/BravoProposalValue.ts
import { Event } from "../Event";
import { World } from "../World";
import { GovernorBravo, proposalStateEnums } from "../Contract/GovernorBravo";
import { getAddress } from "../ContractLookup";
import {
getAddressV,
getArrayV,
getEventV,
getNumberV,
getStrin... |
import React from 'react';
import { PreProcessingProps, Filter } from '../_types/Project.types';
import ContentCard from '../../components/common/ContentCard';
import SectionBox from '../../components/common/SectionBox';
import {
getProjectBaseData,
getFilters,
getVariables,
getActiveFiltersList,
ge... |
/*
* Copyright(c) 2019 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
* 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 withou... |
/// <reference lib="dom" />
import { Observable, Observer } from 'rxjs';
import { RequestConfigXHR, ResponseType } from '../Request';
import {
HttpDownloadProgressEvent,
HttpEvent,
HttpEventType,
HttpHeaderResponse,
HttpResponse,
HttpUploadProgressEvent
} from '../Response';
import { isFormData, isStandardB... |
/*
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, subl... |
import { ema, sma, madev, pointwise, rolling, trueRange, typicalPrice, wilderSmooth} from './core';
import { bb } from './overlays';
/* indicators */
export function adl($high: Array<number>, $low: Array<number>, $close: Array<number>, $volume: Array<number>) {
let adl = [$volume[0] * (2*$close[0] - $low[0] - $high... |
type NodeId = string;
type EdgeWeight = number;
type EncodedEdge = string;
interface Serialized {
nodes: { id: NodeId }[];
links: { source: NodeId; target: NodeId; weight: EdgeWeight }[];
}
// A graph data structure with depth-first search and topological sort.
function Graph(serialized?: Serialized) {
//... |
import {DocPageModel} from 'app/client/models/DocPageModel';
import {reportWarning} from 'app/client/models/errors';
import {normalizeEmail} from 'app/common/emails';
import {GristLoadConfig} from 'app/common/gristUrls';
import * as roles from 'app/common/roles';
import {ANONYMOUS_USER_EMAIL, EVERYONE_EMAIL, Permission... |
<reponame>jjiij/electron<filename>lib/browser/api/touch-bar.ts
import { EventEmitter } from 'events';
let nextItemID = 1;
const hiddenProperties = Symbol('hidden touch bar props');
const extendConstructHook = (target: any, hook: Function) => {
const existingHook = target._hook;
target._hook = function () {
i... |
import * as React from "react";
import { Helmet } from "react-helmet";
import { SubmitHandler, useForm } from "react-hook-form";
import styled from "styled-components";
import Button from "../../../components/Button";
import {
Fieldset,
Hint,
InputErrorMessage,
Label,
Radio,
TextInput,
} from "../../../com... |
/* eslint-disable dot-notation */
import { isFunction, EMPTY_OBJ, ensure, Shortcuts, isUndefined, isArray, isString } from '@tarojs/shared'
import { getHooks } from '../container/store'
import { eventHandler } from '../dom/event'
import { Current } from '../current'
import { document } from '../bom/document'
import { i... |
<gh_stars>1-10
/*
Copyright (c) Microsoft Corporation.
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 l... |
import { Component, OnInit, Inject } from "@angular/core";
import { Router, ActivatedRoute } from "@angular/router";
import { ApiService } from "../../api.service";
import { ActionsService } from "../../actions.service";
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog } from "@angular/material/dialog";
import { MatSn... |
<gh_stars>1-10
// Modules to control application life and create native browser window
import { app, BrowserWindow, ipcMain, shell } from 'electron';
import Store from 'electron-store';
import * as fs from 'fs';
import * as url from 'url';
import * as path from 'path';
import { isEquipmentJson, isShipJson, isVersionJso... |
// source taken from https://github.com/levelhq/level/blob/master/lib/level/svg.ex
// huge thanks for the list of elements/attributes and the mappings!
export const elementsMap: { [x: string]: string | null } = {
svg: 'svg',
foreignObject: 'foreignObject',
circle: 'circle',
ellipse: 'ellipse',
image: 'image'... |
<filename>src/abi/repo.ts<gh_stars>0
import { join as joinPath } from 'path';
import { AbiRepositoryConfig } from '../config';
import { RawLogResponse } from '../eth/responses';
import { createModuleDebug, TRACE_ENABLED } from '../utils/debug';
import { ManagedResource } from '../utils/resource';
import {
decodeBes... |
<reponame>acidburn0zzz/npm-hint
/**
* @fileoverview A hint formatter that outputs the issues in a HTML file..
*/
/*
* ------------------------------------------------------------------------------
* Requirements
* ------------------------------------------------------------------------------
*/
import * as path... |
export interface Storage {
newObjectVal(o: ObjectType): Val;
getVec(v: Val): bigint[] | undefined;
getMap(v: Val): Map<bigint, bigint> | undefined;
getAccountId(v: Val): string | undefined;
getValFromAccountId(s: string): Val;
getAssetCode(v: Val): string | undefined;
getAssetIssuer(v: Val): string | unde... |
import { Settings, Item } from '../interfaces';
import { DomSanitizer } from '@angular/platform-browser';
import { SharedInjectable } from '../shared';
import { Component, OnInit } from '@angular/core';
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
// Marketitem service
import { M... |
const portscanner = require('portscanner');
import * as fs from 'fs';
import * as path from 'path';
import * as vscode from 'vscode';
import * as crypto from 'crypto';
import * as killProcessTree from 'tree-kill';
import axios from 'axios';
import { spawn, spawnSync, ChildProcess } from 'child_process';
import * as Cr... |
let english : Array<string> = [
"the",
"name",
"of",
"very",
"for",
"before",
"and",
"just",
"form",
"in",
"much",
"is",
"great",
"it",
"think",
"you",
"say",
"that",
"help",
"he",
"low",
"was",
"line",
"for",
"before",... |
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { Structure, Model } from '../../../mol-model/structure';
import { PerformanceMonitor } from '../../../mol-util/performance-monitor';
import { Cache } from './cache';
import {... |
import PREFIX from '../prefix';
import {
$el,
bind,
createElem,
getBooleanTypeAttr,
getStrTypeAttr,
removeAttrs,
setCss,
setHtml
} from '../../dom-utils';
import { CssTransition, Scrollable } from '../../mixins';
import { type, validComps } from '../../utils';
interface DrawerEvents {
... |
<filename>wherehows-web/mirage/config.ts
import { faker } from 'ember-cli-mirage';
import { IFunctionRouteHandler, IMirageServer } from 'wherehows-web/typings/ember-cli-mirage';
import { ApiStatus } from 'wherehows-web/utils/api/shared';
import { getDatasetColumns, getDatasetSchema } from 'wherehows-web/mirage/helpers/... |
const express = require('express');
const router = express.Router();
import linkMap from '../models/link';
import User from '../models/user';
import auth from '../middleware/auth';
import linktreeMap from '../models/linktree';
import {Request, Response} from 'express-serve-static-core';
const mongoose = require('mongoo... |
<gh_stars>0
import { EventEmitter } from 'events';
import * as path from 'path';
const DefaultSearchWindowHtml = `file://${path.join(__dirname, 'search-window.html')}`;
const ShouldDebug = !!process.env.ELECTRON_IN_PAGE_SEARCH_DEBUG;
const log = ShouldDebug
? console.log.bind(console)
: function nop() {
... |
<reponame>rioam2/firebase-project-manager
import chalk from 'chalk';
import { Command } from 'commander';
import { textSync as figlet } from 'figlet';
import { GaxiosResponse } from 'gaxios';
import { cloudresourcemanager_v1, firebase_v1beta1 } from 'googleapis';
import * as inquirer from 'inquirer';
import { CloudRes... |
<gh_stars>1-10
import { AppLayoutState } from "contexts/AppLayoutContext";
import { GetLibraryItemsPreviewQuery } from "graphql/generated";
import { AppStaticProps } from "graphql/getAppStaticProps";
import { prettyinlineTitle, prettyDate } from "./formatters";
import { convertPrice } from "./numbers";
import { Im... |
/* eslint-disable no-console */
import Kilt from '@kiltprotocol/sdk-js'
import type {
SubmittableExtrinsic,
IRequestForAttestation,
MessageBody,
} from '@kiltprotocol/sdk-js'
const NODE_URL = 'ws://127.0.0.1:9944'
let tx: SubmittableExtrinsic
async function main(): Promise<void> {
/* 1. Initialize KILT SDK a... |
<gh_stars>0
// tslint:disable:no-console
import "../../src/client/init";
import * as path from "path";
process.env.NODE_PATH = process.env.NODE_PATH + path.delimiter + path.join(__dirname, "../..");
// tslint:disable-next-line:no-var-requires
require("module").Module._initPaths();
import "reflect-metadata";
import "z... |
<filename>src/jsonnetWorker.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------... |
<reponame>jscriptcoder/JSer<filename>src/jser/jser.ts<gh_stars>0
import * as utils from './utils';
import * as tmpl from './templates';
import ElementWrapper from './element-wrapper';
import ClickHook from './click-hook';
import Output from './output';
import Prompt from './prompt';
import ApiWrapper from './api-wrapp... |
import * as React from 'react';
import { Link } from 'react-router';
import { _firebaseApp, _firebaseAuth } from '../firebaseAuth/component';
import { ICause, IDonation, IConvertDataConstraint, DataFilter} from '../interfaces';
import * as CauseFields from './formFields';
import { DonationController } from './controlle... |
<gh_stars>0
import { GraphQLResolveInfo } from 'graphql';
import { ContextWithDataSources } from './';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
... |
/**
* Below are a set of brute-force tools to solve common query inspection tasks:
* - can I isolate and inspect the CTEs of my query?
* - can I extract the column names?
*
* These functions all assume that the query is properly formed
* in the first place; that is, there are no syntax errors.
*/
interface CT... |
import { TemplateResult, render, html } from "./Lit/lit-html";
import { css, EmpatiStyle } from "./Template";
export enum Stages {
Constr,
Idle,
Update,
Template,
Style,
FirstRender,
Rendered
}
type MaybePromise<T> = Promise<T> | T;
type TRorNull = TemplateResult | undefined | null;
type ParticleMiddlew... |
import path from 'path';
import { readFile, readdir, rm, mkdir, writeFile } from 'fs/promises';
import sass from 'sass';
import yaml from 'yaml';
import handlebars from 'handlebars';
import { minify } from 'html-minifier';
import chokidar from 'chokidar';
import marked from 'marked';
import hljs from 'highlight.js';
... |
<filename>front/src/ts/components/rect-editor/edit.ts
import Vue from "vue";
import Component from "vue-class-component";
import "./edit.scss";
import { Watch, Prop } from "vue-property-decorator";
interface Anchor {
x?: boolean;
y?: boolean;
w?: boolean;
h?: boolean;
fixx?: number;
fixy?: number;
fixw?:... |
<gh_stars>0
import search from "../etc/astar"
import Agent, { Sensor, SensorSettings } from "./agent"
import { NODE_SIZE, scaleFactor } from "./const"
import { checkLineIntersection, map } from "../etc/math"
import Vector, { isVector } from "../models/vector"
import { Edge, Node } from "../models/graph"
import { Line, ... |
import { join } from '../util';
import { DOC, SP, getDocType, getTSParamType } from './support';
import { uniq } from 'lodash';
import { IQueryDefinitions } from './models';
export default function genTypes(
spec: ApiSpec,
queryDefinitions: IQueryDefinitions,
options: ClientOptions
) {
const lines = [];
join... |
import chalk from 'chalk'
import FS, { promises as FSP } from 'fs'
import parseArgs from 'minimist'
import { collect, collectError } from '@vuedx/shared'
import * as Path from 'path'
import readline from 'readline'
import TS from 'typescript/lib/tsserverlibrary'
import { Position, TextDocument } from 'vscode-languagese... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.