text
stringlengths
3.08k
15.5k
<reponame>userlea/BatchExplorer<filename>scripts/publish/publish.ts import { exec } from "child_process"; import "colors"; import * as fs from "fs"; import * as path from "path"; import { ask } from "yesno"; import { createIssue, createPullRequest, getMilestone, githubToken, listMilestoneIssues, listPullRequests, }...
import * as React from "react"; import constate from "constate"; import { TezosToolkit } from "@taquito/taquito"; import { Tzip16Module } from '@taquito/tzip16'; import { ReadyThanosState, ThanosAccountType, ThanosStatus, ThanosState, ThanosAsset, getClient, usePassiveStorage, useThanosClient, loadCha...
// **************************************** // Micromanaged Webhook Functions // **************************************** /** add discord mention to the member label */ function memberLabel_(member: string, mention: string) { const value: string = (mention) ? `Assignments for **${member}** (${mention})` : `...
import * as React from 'react' import { BASE_TILES, colorName, COLORS, FINISH_TILES, PATH_TILES, PAWNS } from 'src/constants' import { Dialog } from 'src/Dialog/Dialog' import { Help } from 'src/Help/Help' import { PawnModel } from 'src/Pawn/Pawn' import { Point } from 'src/point' import { direction, TileModel } from '...
import { Client, RequestCreator, RequestError } from "butlerd"; import { Logger, levels, LogEntry } from "common/logger"; import { MinimalContext } from "main/context"; import * as messages from "common/butlerd/messages"; import { Cave, CaveSummary } from "common/butlerd/messages"; import { Store, isCancelled, isAborte...
<filename>src/legacy/core_plugins/kibana/public/dashboard/panel/panel_header/panel_options_menu_container.ts<gh_stars>10-100 /* * 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 * owner...
import { Platform } from '@unimodules/core'; import Constants from 'expo-constants'; import * as Linking from 'expo-linking'; import { dismissAuthSession, openAuthSessionAsync } from 'expo-web-browser'; import { AuthRequest } from './AuthRequest'; import { AuthRequestConfig, AuthRequestPromptOptions, CodeChallen...
<gh_stars>0 // Copyright (c) 2022 Uber Technologies, 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 rights // to use, copy, m...
<filename>sourcecode/src/common/uploads/chunked/chunked-upload.service.ts import { Injectable } from '@angular/core'; import { UploadedFile } from '@common/uploads/uploaded-file'; import { makeUploadPayload } from '@common/core/utils/make-upload-payload'; import { from, Observable, of } from 'rxjs'; import { transf...
<filename>packages/electron-builder/src/windowsCodeSign.ts import { exec } from "electron-builder-util" import { rename } from "fs-extra-p" import * as path from "path" import { release } from "os" import { getBinFromBintray } from "electron-builder-util/out/binDownload" import isCi from "is-ci" import { WinBuildOption...
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { ElectronService } from '../../providers/electron.service'; const smalltalk = require('smalltalk'); @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) export class HomeC...
<filename>src/utils/hiveUtils.ts import {ExtendedAccount} from '@hiveio/dhive'; import {Delegator, GlobalProperties} from 'actions/interfaces'; import api from 'api/keychain'; import {getClient} from './hive'; const HIVE_VOTING_MANA_REGENERATION_SECONDS = 432000; const HIVE_100_PERCENT = 10000; export const getVP = (...
<gh_stars>0 import { expect } from 'chai'; import Token from 'markdown-it/lib/token'; import { parseHeadingTags, headingsAndContent, findNextList, convertListToTypedKeys, findContentAfterList, safelyJoinTokens, HeadingContent, extractReturnType, findContentAfterHeadingClose, StripReturnTypeBehavior...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { ChangeEvent, Fragment, SFC, useContext, useEffect, useState }...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Copyright 2020 Amaz...
import { HarkPlugin, plugin } from "@hark/plugin"; import { Observable } from "rxjs"; import { filter } from "rxjs/operators"; import { Writable } from "stream"; export interface SpawnEventBegin { kind: "begin"; childProcess: HarkSpawnChildProcess; } export interface SpawnEventClose { kind: "close"; code: numb...
<gh_stars>1-10 import * as queryString from 'query-string'; import type { NavigationState, PartialState, Route, } from '@react-navigation/routers'; import fromEntries from './fromEntries'; import type { PathConfig, PathConfigMap } from './types'; type Options = { initialRouteName?: string; screens: PathConfigMap...
import { BrowserModule } from '@angular/platform-browser' import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' import { FormsModule } from '@angular/forms' import { settings } from 'src/store' import config from '../../nav.config' import { NzModalModule } from 'ng-zorro-ant...
<gh_stars>0 import { Ref, UnwrapRef, defineComponent, ComponentInternalInstance } from 'vue-demi'; type Component = ReturnType<typeof defineComponent>; /* * Structure * * This package is mainly a validation engine. This engine requires 2 * inputs: validation arguments and the state to be validated. The output * i...
<reponame>BachLeFPT/SymphonyElectron<gh_stars>0 import { net } from 'electron'; import * as nodeURL from 'url'; import { buildNumber, clientVersion, optionalDependencies, searchAPIVersion, sfeClientType, sfeVersion, version, } from '../../package.json'; import { logger } from '../common/logger'; import { ...
<gh_stars>10-100 import fs from 'fs' import { Signer } from 'ethers' import { Wei } from 'web3-units' import { isAddress } from '@ethersproject/address' import { MaxUint256 } from '@ethersproject/constants' import { EthersRmm } from '../src' import { IERC20WithMetadata, WETH9 } from '../typechain' import { log } from ...
"use strict"; import WebSocket from "ws"; import { LavaClient } from "./LavaClient"; import { NodeOptions, NodeStats, Track } from "../utils/Interfaces"; import { Player } from "./Player"; class LavaNode { public readonly lavaJS: LavaClient; /** * The options for the node */ public readonly options: NodeO...
<reponame>joeymarzillo/Calendar<filename>src/interaction/interactions/HitDragging.ts import { EmitterMixin, PointerDragEvent, isDateSpansEqual, computeRect, constrainPoint, intersectRects, getRectCenter, diffPoints, Point, rangeContainsRange, Hit, InteractionSettingsStore, mapHash } from '@fullcalendar/...
'use scrict'; import * as vscode from 'vscode'; import { ICodeDeployer, IDeployDebugAPI } from 'vscode-wpilibapi'; import { RioLogWindow } from 'wpilib-riolog'; import { localize as i18n } from './locale'; import { logger } from './logger'; import { PreferencesAPI } from './preferencesapi'; import { LiveRioConsoleProvi...
import * as React from 'react'; import { Button, pluralize } from '@patternfly/react-core'; import { PencilAltIcon } from '@patternfly/react-icons'; import * as _ from 'lodash'; import { useTranslation } from 'react-i18next'; import NodeIPList from '@console/app/src/components/nodes/NodeIPList'; import { useAccessRev...
<filename>utils/helpers/rebalancingSetV3Helper.ts<gh_stars>100-1000 import * as _ from 'lodash'; import * as setProtocolUtils from 'set-protocol-utils'; import { Address } from 'set-protocol-utils'; import { CoreContract, CoreMockContract, SetTokenContract, RebalancingSetTokenV3Contract, VaultContract, } fro...
<reponame>vilyLei/voxweb3d import TextureProxy from "../../vox/texture/TextureProxy"; import ImageTextureProxy from "../../vox/texture/ImageTextureProxy"; import RendererScene from "../../vox/scene/RendererScene"; import RendererDevice from "../../vox/render/RendererDevice"; import ImageTextureAtlas from "../../vox/te...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { Language, Translator, TranslateQueryResult } from "@opentranslate/translator"; import SHA256 from "crypto-js/sha256"; import HMACSHA256 from "crypto-js/hmac-sha256"; import EncHEX from "crypto-js/enc-hex"; import { AxiosPromise } from "axios"; impor...
<gh_stars>10-100 import * as coda from "@codahq/packs-sdk"; export const pack = coda.newPack(); // How many spells to fetch in each sync formula execution. const BATCH_SIZE = 20; // Allow requests to the DND API. pack.addNetworkDomain("dnd5eapi.co"); // Schema that defines the metadata to return for each spell. Shar...
import _ from 'lodash'; import moment from 'moment'; import { CompletionItem, CompletionItemGroup, LanguageProvider, TypeaheadInput, TypeaheadOutput, } from 'app/types/explore'; import { parseSelector } from 'app/plugins/datasource/prometheus/language_utils'; import PromqlSyntax from 'app/plugins/datasource...
<reponame>ahmadhamzh/dashboard // Copyright 2020 The Kubermatic Kubernetes Platform contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/...
<gh_stars>1-10 import * as http from 'http'; import { Readable } from 'stream'; import { Context as KoaContext } from 'koa'; import { invokeController } from '../controllers/invoke'; import stringToStream from '../utils/stringToStream'; import { ValidationError } from '../errors'; import bufferToStream from '../utils/...
import { ValueAndUpdates } from "@iov/stream"; import { ReadonlyDate } from "readonly-date"; import { As } from "type-tagger"; import { Stream } from "xstream"; import { PostableBytes } from "./codec"; import { Address, Amount, ChainId, ConfirmedAndSignedTransaction, ConfirmedTransaction, FailedTransaction,...
import util = require("util"); import tq = require("../../tasking/TaskQueue"); import tset = require("../redistask/SetTask"); import tget = require("../redistask/GetTask"); import tsel = require("../redistask/SelectDBTask"); import tdel = require("../redistask/DelTask"); import tsadd = require("../redistask/SAddTask...
<filename>src/main/context.ts import { IpcMainService } from './shared/ipc/IpcMainService'; import ElectronStore from 'electron-store'; import { AppStore } from '../shared/types/store'; import { PomodoroService } from './app/pomodoro/services/pomodoroService/PomodoroService'; import path from 'path'; import { WindowFac...
<gh_stars>10-100 import { ICommentMetasCallback } from './repository/comments'; import { IPostMetasCallback } from './repository/posts'; export enum TABLES { POSTS = 'posts', POST_META_BY_ID = 'postMetaById', POST_METAS_BY_USER = 'postMetasByUser', POST_META_BY_ID_TIMESTAMP = 'postMetaByIdTimestamp', COMMENT_META...
<filename>src/extension.ts<gh_stars>0 'use strict'; // The module 'vscode' contains the VS Code extensibility API import * as vscode from 'vscode'; import * as child_process from 'child_process'; // import * as os from 'os'; // import * as path from 'path'; import * as util from 'util'; import * as explain from './exp...
import * as React from 'react'; import { Box, BoxProps, Circle, color, Flex, Grid, Stack, StxInline } from '@stacks/ui'; import { Caption, Text } from '@components/typography'; import { Section } from '@components/section'; import { border, microToStacks } from '@common/utils'; import { ItemIcon } from '@components/i...
// Libraries import React, {SFC} from 'react' import {connect} from 'react-redux' import { NINETEEN_EIGHTY_FOUR, ATLANTIS, DO_ANDROIDS_DREAM, DELOREAN, CTHULHU, ECTOPLASM, T_MAX_400_FILM, } from '@influxdata/giraffe' // Components import {Form, Input, Grid, MultiSelectDropdown} from '@influxdata/clockfac...
<reponame>dmattia/aws-sdk-js-v3 import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; import { PutBucketLifecycleConfigurationRequest } from "../models/models_0"; import { deserializeAws_restXmlPutBucketLifecycleConfigurationCommand, serializeAws_restXmlPutBucketLifecycleConfi...
import React, { Children, useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Target } from '@models/targets'; import { useAppDispatch } from '@pyroscope/redux/hooks'; import { loadTargets } from '@pyroscope/redux/reducers/serviceDiscovery'; import { formatDistance, parseISO } from 'date...
<reponame>kushalpandya/vscode-peacock import * as vscode from 'vscode'; import { namedColors } from './named-colors'; import { isValidHexColor, isValidNamedColor } from './color-validators'; const { workspace } = vscode; import { BuiltInColors, ColorSettings, Settings, ForegroundColors, Sections } from './e...
import { css } from '@emotion/css'; import { DataSourceApi, QueryEditorProps, SelectableValue } from '@grafana/data'; import { config, getDataSourceSrv } from '@grafana/runtime'; import { FileDropzone, InlineField, InlineFieldRow, InlineLabel, QueryField, RadioButtonGroup, Themeable2, withTheme2, } from...
<filename>front_end/src/app/child-checkin/child-checkin.component.spec.ts import { ChildCheckinComponent } from './child-checkin.component'; import { Child, Event, Room } from '../shared/models'; import { RootService } from '../shared/services'; import { Observable } from 'rxjs/Observable'; let fixture: ChildCheckinCo...
<filename>src/Request.ts<gh_stars>1-10 import Settings from './Settings'; import { DashlingRequestState } from './DashlingEnums'; import EventGroup from './EventGroup'; export interface IProgressEntry { timeFromStart: number; bytesLoaded: number; } export interface IRequestOptions { url: string; onSuccess: (r...
// MIT License // // Copyright (c) 2016-2018 GenesisKernel // // 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...
import { equalObject } from 'tvs-libs/dist/utils/predicates' import { Painter } from './painter' import { RenderTargetData, TextureOptions } from './painter-types' import { Texture } from './texture' let targetCount = 1 export class RenderTarget { width: number = 0 height: number = 0 antialias?: boolean = false ...
import { memo, useEffect, useRef, useState } from "react"; import { CgRedo } from "react-icons/cg"; import { Link } from "react-router-dom"; import { Anchor, Badge, Button, JsonView, Row, Spacer, Stack, } from "~/components"; import { useFunctionInvoke } from "~/data/aws"; import { styled } from "~/stitch...
import React, { FC } from 'react' import { Route, useParams, Switch } from 'react-router-dom' import { Popup } from 'react-map-gl' import { createStyles, makeStyles, Theme } from '@material-ui/core/styles' import { Typography } from '@material-ui/core' import { InstanceLevelSchema, useMapToolsState } from 'components/...
<filename>src/refactorings/extract/extract-type/extract-type.ts import { Command, Editor, ErrorReason } from "../../../editor/editor"; import { Selection } from "../../../editor/selection"; import { Position } from "../../../editor/position"; import * as t from "../../../ast"; export { extractType }; async function e...
<gh_stars>1-10 import { Constructable, Metadata, Protocol, ResourceType, Writable } from '@aurelia/kernel'; import { CustomElement } from '@aurelia/runtime-html'; import { LoadInstruction, ComponentAppellation, ViewportHandle, ComponentParameters, RouteableComponentType, ReloadBehavior } from './interfaces.js'; export...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ export const APP_ID = 'siem'; export const APP_NAME = 'SIEM'; export const AP...
<reponame>Mu-L/modern.js import path from 'path'; import { createRuntimeExportsUtils, getEntryOptions, PLUGIN_SCHEMAS, } from '@modern-js/utils'; import { createPlugin, NormalizedConfig, useAppContext, useResolvedConfigContext, } from '@modern-js/core'; import type WebpackChain from 'webpack-chain'; impor...
import CreateNewListDialog from "@/dialogs/CreateNewList"; import DeleteListDialog from "@/dialogs/DeleteList"; import { removeTodoList, selectTodoList } from "@/redux/reducers/TodoListReducer"; import { RootState } from "@/redux/Store"; import { PerformantTodoList } from "@/Types"; import { MaterialCommunityIcons } f...
import { randInt } from 'e'; import { Task } from 'klasa'; import SimpleTable from 'oldschooljs/dist/structures/SimpleTable'; import { Emoji, Events } from '../../../lib/constants'; import { trackLoot } from '../../../lib/settings/prisma'; import { incrementMinigameScore } from '../../../lib/settings/settings'; import...
import React, { useMemo } from 'react'; import clsx from 'clsx'; import { Link } from 'react-router-dom'; import { AppBar, Box, Drawer, IconButton, Toolbar, Typography, useMediaQuery, List, ListItem, ListItemText, Divider, Button, } from '@material-ui/core'; import ListItemLink from '../ListIte...
import { context } from '@actions/github'; import { Octokit } from './client'; export interface Field { title: string; value: string; short: boolean; } export class FieldFactory { private octokit: Octokit; private fields: string[]; private jobName: string; constructor(fields: string, jobName: string, o...
import { JspmError } from "../common/err.js"; import { baseUrl, isRelative } from "../common/url.js"; // @ts-ignore import sver from 'sver'; // @ts-ignore import convertRange from 'sver/convert-range.js'; import { InstallTarget } from "./installer.js"; import resolver from "./resolver.js"; import { urlToNiceStr } from ...
<reponame>xialvjun/knex-schema-session-store import * as Knex from 'knex'; // import * as assert from 'assert'; export class KnexSchemaSessionStore { private _knex: Knex private _options: Options private _synced: boolean = false private _static_field: object constructor(knex: Knex, options?: Opt...
// Native import { join } from 'path' import { formatDateTime } from './dateTime' const root = process.cwd() const year = formatDateTime(new Date(), 'full-year') // Programmatically handle updating my age. const age = new Date().getMonth() > 1 ? parseInt(year) - 1988 : parseInt(year) - 1 - 1988 const baseUrl = p...
<reponame>hehex9/prisma import { getPlatform } from '@prisma/get-platform' import archiver from 'archiver' import Debug from '@prisma/debug' import fs from 'fs' import globby from 'globby' import fetch from 'node-fetch' import os from 'os' import path from 'path' import stripAnsi from 'strip-ansi' import tmp from 'tmp'...
import {Component, OnInit, TemplateRef} from '@angular/core'; import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms'; import {BsModalRef, BsModalService} from 'ngx-bootstrap'; import {InfoService} from '../../../shared/service/info.service'; import {ToastrService} from 'ngx-toastr'; import {Stor...
import request from '../../../../request'; import commands from '../../commands'; import { CommandOption } from '../../../../Command'; import SpoCommand from '../../../base/SpoCommand'; import GlobalOptions from '../../../../GlobalOptions'; import { HubSite } from './HubSite'; import { QueryListResult } from './QueryLi...
export type WhereFilterOp = '<' | '<=' | '==' | '>' | '>=' | '!=' | 'array-contains' | 'array-contains-any' | 'in' | 'not-in'; export interface IQuery<T extends DocumentData = DocumentData> { endAt(snapshot: IDocumentSnapshot<T>): IQuery<T>; endAt(fieldValues: IFieldValue[]): IQuery<T>; en...
import { Context } from "@textile/context"; import { Client, KeyInfo } from "@textile/hub"; import { Query, Where } from "@textile/threads-client"; import { Identity, Libp2pCryptoIdentity, ThreadID, } from "@textile/threads-core"; import { REPLCommand, REPLServer } from "repl"; import util from "util"; import { P...
/** * @license * Copyright 2019 Dynatrace 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 ag...
<reponame>gauravmahto/vscode<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------...
<filename>src/interpreter.ts import {uid} from './helpers/id' import * as AkoElement from './elements' import {stdTasks, stdFunctions} from './std' import {Task, Context, Func, Stack, UpdateStackResult, IStackOption} from './core' import {mapArgs} from './helpers/args' const stackOptionDefault: IStackOption = { auto...
<gh_stars>0 import { Context } from "koishi"; import { RPGLuck } from "./luck"; import { rpgFields, Status } from "./database"; import { Player } from "./player"; import { Item } from "./item"; import { State } from "./state"; import { min } from "./util"; import { RPGMaze } from "./maze"; export interface Config { }...
import { AriaSliderThumbProps } from '@react-types/slider'; import { clamp, focusWithoutScrolling, mergeProps, useGlobalListeners, } from '@react-aria/utils'; import { getSliderThumbId, sliderIds } from './utils'; import React, { ChangeEvent, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, R...
/* * Copyright 2021 Salto Labs Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
<filename>src/server/engine/fixtures/index.ts import { getUniverseAndChannel } from "../helpers/patch-notation"; import { Preset, PresetGroupMappingValueOrPreset, ValueOrPreset } from "../presets"; import { ParamGroupMapping, PresetGroup, PresetGroupMapping, PresetGroupNames } from "../../schemas/show-schema"; import ...
import Button from 'components/atoms/Button'; import ContentContainer from 'components/atoms/ContentContainer'; import ExpandedRow from 'components/atoms/ExpandedRow'; import { SeparatedRow } from 'components/atoms/Row'; import SolidIconButton from 'components/atoms/SolidIconButton'; import { useServiceNavigate } from ...
import { CrossChainParams } from "@connext/nxtp-sdk"; import { delay, getRandomBytes32, NxtpErrorJson } from "@connext/nxtp-utils"; import { BaseLogger } from "pino"; import { OnchainAccountManager } from "./accountManager"; import { ChainConfig } from "./config"; import { SdkAgent, SdkAgentEvents } from "./sdkAgent";...
import { constants, Numberish } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import { DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types'; import { constants as stakingConstants } from './constants'; // tslint:disable:max-classes-per-file export interface StakingParams { epochDu...
import React, { useEffect, useState } from "react"; import { Box, BoxProps, Checkbox, CircularProgress, Container, FormControlLabel, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import { Pagination } from "@mat...
import { first, forOwn } from 'lodash-es'; import { Deserializable } from '../serialization'; import { NgPonent } from './ngponent'; import { TsDataType } from './tsdatatype'; import { ExpressionPonentTypes, IDataType, TsPonentModifier, TsPonentType } from './tsponent-definition'; /** * Represents Typescri...
/* eslint-disable @typescript-eslint/strict-boolean-expressions */ import 'tippy.js/animations/scale.css'; import 'tippy.js/dist/tippy.css'; import React from 'react'; import { CodeAlt } from '@styled-icons/boxicons-regular/CodeAlt'; import { CodeBlock } from '@styled-icons/boxicons-regular/CodeBlock'; import { Subscri...
import ts from 'typescript'; import { pascalCase } from 'change-case'; import { NamespaceReplacement } from './types'; const nsReplaceIfNeeded = (replacement: NamespaceReplacement, ns: string) => { if (replacement.has(ns)) { return replacement.get(ns)!; } return ns; }; const concatPropertyEnumName = ( re...
<filename>src/lib/util/scheduleUtils.ts import Song from '../Song'; import { IScheduleEventData, ISection, SequenceEvent, ITimedSequence, ISampleEvent, } from '../data/interface'; import { getSectionOnTime } from '../util/songUtils'; export function getEventScheduleList( song: Song, fromTime: number, t...
<reponame>luckyCoco3418/Acksyz-wallet import BigNumber from 'bignumber.js'; import Web3 from "web3"; import { makeTransactionResult, PayTransaction, PayTransactionData } from '../networks/Transaction'; import { ICoinProvider } from './coin-provider-base'; const hdkey = require('ethereumjs-wallet/hdkey'); const Ethere...
<reponame>bkozak-scanimetrics/grafana<gh_stars>0 ///<reference path="../../../headers/common.d.ts" /> import _ from 'lodash'; import moment from 'moment'; import angular from 'angular'; import {DashboardExporter} from '../export/exporter'; export class DashNavCtrl { /** @ngInject */ constructor($scope, $rootSco...
<reponame>XeOn999/nodebb-plugin-emoji<filename>public/lib/emoji-dialog.ts // eslint-disable-next-line spaced-comment /// <amd-module name="emoji-dialog"/> import { Translator } from 'translator'; import { render } from 'benchpress'; import { insertIntoTextarea, updateTextareaSelection } from 'composer/controls'; impor...
<filename>packages/roosterjs-editor-plugins/lib/plugins/TableResize/editors/TableEditor.ts import createCellResizer from './CellResizer'; import createTableInserter from './TableInserter'; import createTableResizer from './TableResizer'; import createTableSelector from './TableSelector'; import TableEditFeature, { disp...
<reponame>edicon/angularfire-material-dashboard<filename>src/app/dashboard/blood-glucose/blood-glucose.component.ts<gh_stars>1-10 import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material'; import { ActivatedRoute, Router } from '@angular/router'; import { select, Store } from '@ng...
import { AuthService } from './../services/auth.service'; import { AngularFireDatabase, AngularFireList } from 'angularfire2/database'; import { Component, OnInit } from '@angular/core'; import { NavController } from '@ionic/angular'; import * as firebase from 'firebase'; import { map } from 'rxjs/operators'; import { ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** @jsx jsx */ import without from 'lodash/without'; import cloneDeep from 'lodash/cloneDeep'; import { jsx } from '@emotion/core'; import React, { useState, useCallback, useMemo, useEffect } from 'react'; import formatMessage from 'format-mes...
<filename>src/state/index.ts import { atom, atomFamily } from "recoil"; export interface AppState { settings: Settings; notes: NoteState[]; } export interface Settings { has_onboarded: boolean; } export enum Tool { NONE, PEN, PENCIL_CIRCLE, MARKER_CIRCLE, PAINT, TEXT, ERASER, EYEDROPPER, } exp...
/* eslint-disable max-len */ /* The RERE library implementing the REREProtocol over WebSockets */ enum Type{ REQ = 'REQ', RES = 'RES', MSG = 'MSG', } const MSG_TIMEOUT = 10000; export type Message = { header: { id: number | undefined, type: Type, format: ('J' | 'B') }, payload: Object | Uint8...
<filename>tfjs-converter/src/operations/executors/basic_math_executor.ts /** * @license * Copyright 2018 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *...
import { FC, SyntheticEvent, useState } from 'react'; import styled from "styled-components"; import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import { useAuthState, useAuthDispatch } from '../../contexts/authContext'; import { axiosAuth, axiosInstance, getDomainName } from "../../tools/tools"; ...
/******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * Th...
import { LitElement, TemplateResult, html, customElement, CSSResultArray, css, property, } from "lit-element"; import { until } from "lit-html/directives/until"; import "@material/mwc-button"; import "../../../layouts/opp-tabs-subpage"; import { opStyle } from "../../../resources/styles"; import "../../....
<gh_stars>0 import { fork } from "child_process"; import * as graphene from "graphene-pk11"; import * as path from "path"; import * as Color from "../../color"; import { Command } from "../../command"; import { TEST_KEY_ID, TEST_KEY_LABEL } from "../../const"; import { lpad, rpad } from "../../helper"; import { check_...
<filename>scripts/release/analyze.ts import type { Commit, GroupedCommits, PackageToRelease } from "./types" import { execSync } from "child_process" import { debug, pkgJson } from "./utils" import semver from "semver" import parseCommit from "@commitlint/parse" // @ts-ignore import gitLog from "git-log-parser" // @ts...
<filename>modules/mesh-layers/src/utils/matrix.ts import {COORDINATE_SYSTEM, createIterable} from '@deck.gl/core'; /* eslint-disable max-statements, complexity, camelcase */ const RADIAN_PER_DEGREE = Math.PI / 180; const modelMatrix = new Float32Array(16); const valueArray = new Float32Array(12); function calculateTr...
import React, { FunctionComponent, useState } from 'react'; import { Modal, ScrollView, TextInput } from 'react-native'; import Button from '@ui/Button'; import Space from '@ui/Space'; import Text from '@ui/Text'; import { setSpatialDirection, setSpatialEnvironment, setSpatialPosition, } from '@utils/conference....
<reponame>owenr88/amplify-cli import { $TSAny, JSONUtilities, pathManager, readCFNTemplate, stateManager, writeCFNTemplate } from 'amplify-cli-core'; import * as path from 'path'; import * as fs from 'fs-extra'; import { S3 } from '../aws-utils/aws-s3'; import { fileLogger } from '../utils/aws-logger'; import { CloudFo...
import { window, WindowState } from "vscode"; import { getDayNumberFromDate } from "../utils/LogsUtil"; import { checkCodeTimeMetricsMilestonesAchieved, checkDaysMilestones, checkLanguageMilestonesAchieved, compareWithLocalMilestones, getTodaysLocalMilestones, } from "../utils/MilestonesUtil"; import { getCur...
<filename>src/simulation/ParticleMesh.ts import { IndexArrayType, NormalArrayType, ParticlePositionType } from '../types'; import { ParticleData } from './ParticleData'; import { copy_vec3_gen, sub_vec3, cross_vec3, normalize_vec3_gen, add_to_vec3_gen } from './math'; export interface Edge { vertex_pair: numb...