text
stringlengths
3.08k
15.5k
import { AppReducerType, ERROR_FETCHING_CONTEST_LIST, ERROR_FETCHING_PROBLEMS, ERROR_FETCHING_SHARED_PROBLEMS, FETCH_CONTEST_LIST, FETCH_PROBLEM_LIST, FETCH_SHARED_PROBLEMS, LOADING_CONTEST_LIST, LOADING_PROBLEM_LIST, } from "./types"; import Problem, { ProblemLite, ProblemShared, ProblemStatis...
import {Component, View, bootstrap, EventEmitter} from 'angular2/angular2'; // graph editor aka bee's mind @Component({ //injector: [GraphService], events : ['newContent'], properties: ['content'], selector: 'bees-mind' }) @View({ templateUrl: 'templates/bee-editor.html' }) class BeesMind { newContent: Ev...
<reponame>rgatkinson/audere // Copyright (c) 2019 by Audere // // Use of this source code is governed by an MIT-style license that // can be found in the LICENSE file distributed with this file. import NetInfo from "@react-native-community/netinfo"; import { InteractionManager } from "react-native"; import { Pump } fr...
import * as React from 'react'; import { Animated, View, StyleSheet, Easing } from 'react-native'; import { getCurrentTimestamp } from '@senseyeinc/react-native-senseye-sdk'; import type { TaskProps } from '@senseyeinc/react-native-senseye-sdk'; export type SmoothPursuitProps = TaskProps & { /** Defines the sequenc...
/** * Daggerfall Template for Visual Studio Code */ 'use strict'; import { HoverProvider, Hover, TextDocument, Position, MarkdownString, CancellationToken } from 'vscode'; import { EOL } from 'os'; import { first } from '../extension'; import { tasks } from '../parser'; import { QuestResourceCategory, SymbolType }...
/** * Copyright 2015 CANAL+ Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
export const renderCanvasContent = (ctx, photo, colorMap, zip, removeBrand, cb) => { const bgImgSrc = photo.url; const faceLocations = photo.faces; const hasTagsItems = []; for (let i = 0; i < faceLocations.length; i++) { const item = faceLocations[i]; if (item.tags && item.tags.length > 0) { has...
import axios, {AxiosResponse, AxiosRequestConfig} from 'axios'; import { SearchResponse, SearchResult, FilterVariables, Metadata, ColumnMetadata, QuerySpec, RelatedFile, Session, AugmentationType, } from './types'; import {API_URL} from '../config'; const api = axios.create({ baseURL: API_URL, }); ...
<gh_stars>10-100 import { HttpClient } from "@angular/common/http"; import { ChangeDetectorRef, Component, OnInit, ViewChild } from "@angular/core"; import { FormBuilder, FormControl, FormGroup, Validators } from "@angular/forms"; import { MatSelect } from "@angular/material/select"; import { ActivatedRoute } from ...
/* eslint-disable max-classes-per-file */ import { JsonVariable, jsonStringifyExtended } from './utilities.client'; class WebhookPayloadTemplateError extends Error { constructor(message?: string) { super(message); this.name = this.constructor.name; if (typeof Error.captureStackTrace === 'f...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { log } from '@/services/logger'; import { AvailableWiFiCharacteristicUUID, AvailableWiFiCharacteristic} from './available-wifi-characteristics'; import { CurrentWiFiCharacteristicUUID, CurrentWiFiCharacteristic} from './current-wifi-characteristic'; import { DeviceCharacteristicUUID, DeviceCharacteristic} from ...
/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { ReactText, useEffect, useState } from 'react'; import { QueryResultRow } from 'pg'; import TotalTableSize from './TotalTableSize'; import TableSize from './TableSize'; import TotalIndexSize from './TotalIndexSize'; import DbSession, { SqlExecRepo...
import SerialPort from 'serialport'; export interface tModuleParams { version?: string; features?: string; isMaster: boolean; pCode: number; noOfCPPMChnls: number; pwrSelChnl?: number; txMinPwr: number; txMidPwr: number; txMaxPwr: number; serPortSpd: number; serMode: number; fr0: number; fr1:...
<gh_stars>0 import debug from 'debug' import { AccountServices, SettlementEngine} from 'ilp-settlement-core' import BigNumber from 'bignumber.js' import fetch from 'node-fetch' import { randomBytes } from 'crypto' import { Keypair, Server, TransactionBuilder, BASE_FEE, Networks, Operation, Asset, } from '...
import fs from 'fs' import { createConnection, Connection } from 'typeorm' import { Resolver } from 'did-resolver' import { getResolver } from 'ethr-did-resolver' import { verifyCredential } from 'did-jwt-vc' import MockDate from 'mockdate' import { VCIssuer } from '../src/issuer' import { createIssuerIdentity } from '...
import React, { useCallback, useMemo, useRef } from 'react'; import ReachAlert from '@reach/alert'; import { useRect } from '@reach/rect'; import { useId } from '@reach/auto-id'; import { Transition } from '../transition'; import { Stack } from '../stack'; import { Box, BoxProps } from '../box'; import { Flex } from '...
function isEmpty(n: number): boolean { return n === undefined || n === null || n === 0 || isNaN(n); } export const msMinutes = 60000; export const msSeconds = 1000; export const msHours = 3600000; export const msDays = 24 * msHours; /** * This is due to performance reason, copied from Source of T...
import thunk, { ThunkMiddleware } from "redux-thunk"; import configureMockStore from "redux-mock-store"; import { socketMiddleware } from "../middlewares/socketMiddleware"; import * as actions from "../actions/userActions"; import { IAppState } from "../store/Store"; import { Room } from "../tests/mocks/mockServer/Room...
// Adapted from https://github.com/dereklieu/cool-grid/blob/master/index.js import bbox from '@turf/bbox'; import { Feature, FeatureCollection, featureCollection, Geometry, lineString, point } from '@turf/helpers'; import lineIntersect from '@turf/line-intersect'; import { max } from 'd3-array'; import { PaddingOptions...
import { ActiveWindow, AppLayoutPayload, CreateWindowPayload, green, isMacOS, OPEN_DEV_TOOLS_IN_DEV_BUILD, rendererAppName, rendererAppURL, } from '@minsky/shared'; import * as debug from 'debug'; import { BrowserWindow, dialog, Menu, screen } from 'electron'; import * as log from 'electron-log'; import...
import React, {useEffect, useState} from 'react'; import { Option, Select, Table, TableBody, TableCell, TableRow, TextField, FormLabel, Note, Paragraph, TextLink } from '@contentful/forma-36-react-components'; import {FieldExtensionSDK} from '@contentful/app-sdk'; import {Ret...
import { client } from '../../feathers' import { EngineEvents } from '@xrengine/engine/src/ecs/classes/EngineEvents' import { Network } from '@xrengine/engine/src/networking/classes/Network' import { MediaStreams } from '@xrengine/engine/src/networking/systems/MediaStreamSystem' import { store, useDispatch } from '../....
<gh_stars>0 import TransaccionCompleta from '.'; import Options from '../../common/options'; import InstallmentDetail from '../common/installments_detail'; import TransaccionCompletaCommitDetail from './common/commit_detail'; import TransactionDetail from '../common/transaction_detail'; import BaseTransaction from '../...
import { EOsType } from '../const'; // Windows 的标识一般是「Windows NT x.y」,这里把 x.y 映射成耳熟能详的 Windows 版本 const WINDOWS_NT_TO_VERSION: Record<string, string> = { 'NT 5.0': '2000', 'NT 5.1': 'XP', 'NT 5.2': 'XP', 'NT 6.0': 'Vista', 'NT 6.1': '7', 'NT 6.2': '8', 'NT 6.3': '8.1', 'NT 6.4': '10', 'NT 10.0': '1...
import { Entity, EntityBuilder } from "nova_ecs/entity"; import { AddEvent } from "nova_ecs/events"; import { multiplayer, MultiplayerData } from "nova_ecs/plugins/multiplayer_plugin"; import { System } from "nova_ecs/system"; import { World } from "nova_ecs/world"; import * as PIXI from "pixi.js"; import { firstValueF...
import React, {useContext, useState, useEffect} from 'react'; import {Container, Row, Col} from 'react-bootstrap'; import {useLocation, useNavigate} from 'react-router-dom'; import {LabSemesterData, EmailsInputWithTable} from '../../components/LabSemester/index'; import {Button, LoadingContainer} from '../../component...
<filename>packages/vscode-pv-handlebars-language-server/server/src/definitionProvider.ts import { Location, Range, Position } from "vscode-languageserver/node"; import { TextDocument } from "vscode-languageserver-textdocument"; import { URI } from "vscode-uri"; import * as globby from "globby"; import * as yamlFront fr...
<filename>node_modules/tsickle/test/tsickle_test.ts import {expect} from 'chai'; import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; import * as tsickle from '../src/tsickle'; import * as test_support from './test_support'; let RUN_TESTS_MATCHING: RegExp = null; // RUN_TESTS_MAT...
import type { PostgresGateway } from "@bichard/postgres-gateway" import type { PromiseResult } from "@bichard/types" import { isError } from "@bichard/types" import { xml2js } from "xml-js" import { stringify } from "csv-stringify/sync" import type { CourtError } from "./getCourtErrors" import getCourtErrors from "./ge...
// (C) Copyright 2015 Moodle Pty 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 law or agree...
<reponame>xDWart/SmartC // Author: <NAME> // Project: https://github.com/deleterium/SmartC // License: BSD 3-Clause License /* keywords_forbidden "auto", "double", "float", "register", "volatile" keywords_not_implemented "case", "char", "default", "enum", "extern", "int", "short", "size...
/*! * Copyright (c) 2021 Ford Motor Company * 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 * * Unless required...
import { InputObserver } from "./../InputObserver"; import { $ } from "../utils"; import { toAxis, IInputType, IInputTypeObserver } from "./InputType"; import { Axis } from "../AxisManager"; export const KEY_LEFT_ARROW = 37; export const KEY_A = 65; export const KEY_UP_ARROW = 38; export const KEY_W = 87; export const...
// metadata export const version = "0.5.16" export const title = "Accessing Private Data" export const description = "An example of accessing private data from a Solidity smart contract" const html = `<h3 id="vulnerability">Vulnerability</h3> <p>All data on a smart contract can be read.</p> <p>Let&#39;s see how we can...
import { weaponInterface } from 'src/app/interfaces/weaponInterface'; export const weaponMeleeWeak: weaponInterface[] = [ { class: 'D', damage: 'D2', range: 'Muito curta', examples: ['Sem arma', 'dano físico proposital'] }, { class: 'D', damage: 'D4 + MD', range: 'Muito curta', examples: [ 'F...
<reponame>davidrodriguezlosada/ontimize-web-ngx import { Component, Inject, forwardRef, Injector, ViewEncapsulation, ViewChild, OnDestroy, ChangeDetectionStrategy, OnInit, ElementRef, AfterViewInit, ChangeDetectorRef } from '@angular/core'; import { PermissionsUtils } from '../../../../../util/permissions'; import { OP...
import * as d3 from "d3"; import { MetaData, MetaDataType } from "./meta_data"; import { NodePosition } from "./position_cache"; import { classify } from "./util"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type Constructor = (data: NodeDataType, id: number, metaKeys: string[], color: any, ...
<filename>src/format/multiRegExp2.ts /** * Created by velten on 11.02.17. */ /** * Adds brackets before and after a part of string * @param str string the hole regex string * @param start int marks the position where ( should be inserted * @param end int marks the position where ) should be inserted * @param gr...
import { AlgorandMultisigOptions, AlgorandValue } from './generalModels' import { AlgorandAddress, AlgorandPublicKey } from './cryptoModels' import { AlgorandTxActionStruct } from './algoStructures' /** * Chain response type after a transaction is confirmed on the chain */ export type AlgorandTxChainResponse = { t...
<gh_stars>0 // Copyright (c) 2018 by Audere // // Use of this source code is governed by an MIT-style license that // can be found in the LICENSE file distributed with this file. import { Model, SplitSql } from "../../util/sql"; import { SurveyAttributes, BatchAttributes, BatchItemAttributes, BatchDiscardAttri...
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import Vue from 'vue'; import OAuthClient from '@girder/oauth-client'; import { Asset, Dandiset, Paginated, User, Version, Info, } from '@/types'; // Ensure contains trailing slash const publishApiRoot = process.env.VUE_APP_PUBLISH_API_...
<reponame>quentingllmt/balena-supervisor<gh_stars>1-10 import Bluebird = require('bluebird'); import constants = require('../lib/constants'); import log from '../lib/supervisor-console'; import * as _ from 'lodash'; import { InternalInconsistencyError } from '../lib/errors'; import { DeviceStatus } from '../types/state...
<reponame>domonda/domonda-js /** * * ModalManager * * https://github.com/mui-org/material-ui/blob/f55f3a4f808d1756d11d056195978affe4f65d5b/packages/material-ui/src/Modal/ModalManager.js * */ import { ownerDocument, ownerWindow, getScrollbarSize } from '../utils'; // Do we have a vertical scrollbar? function isO...
import { useCallback, useEffect } from "react"; import { atom, useAtom } from "jotai"; import { RESET, atomWithReset } from "jotai/utils"; import yn from "yn"; import { parse } from "search-query-parser"; import stringify from "$utils/search/stringify"; import type { LtiResourceLinkSchema } from "$server/models/ltiReso...
import type { Constants, Interaction, TextChannel, ButtonInteraction, SelectMenuInteraction, } from 'discord.js'; import type GuildMessage from '#types/GuildMessage'; import type RoleEntry from '#types/RoleEntry'; import { MessageEmbed, Message, MessageButton, MessageActionRow, GuildMember } from 'discord.js'...
import { Application, Conditional, Expression, ExpressionKind, Identifier, Lambda, Let, Literal, LiteralKind, ArrayLiteral, } from '../../ast'; import { TFunction, TVariable, Type } from '../types/type'; import { BIGINT_TYPE, BOOL_TYPE, CHARACTER_TYPE, NUMBER_TYPE } from '../type...
import React, {Component} from "react"; import {connect} from "react-redux"; import queryString from "query-string"; import {Button, Form, FormControl, Spinner, Row, Col} from "react-bootstrap"; import {PageProps, pageMapDispatchToProps, pageMapStateToProps} from "./common"; import Meta from "../components/meta"; ...
<gh_stars>0 /// <amd-module name="Types/_entity/adapter/RecordSetTable" /> /** * Адаптер для таблицы данных в формате рекордсета. * Работает с данными, представленными в виде экземлпяра {@link Types/_collection/RecordSet}. * * Создадим адаптер для таблицы: * <pre> * requirejs(['Types/collection', 'Types/entity...
/** * A topological layout using {@link ZherebkoOperator}. * * @module */ import { Dag } from "../dag"; import { assert, def } from "../utils"; import { greedy } from "./greedy"; /** * The return from calling {@link ZherebkoOperator} * * This is the final width and height of the laid out dag. */ export interfa...
<reponame>jusoftdev/lnkdto.link // Lnkdto.link - Copyright (C) 2021 <NAME> // Database Manager // Import File System import * as fs from "fs"; // Import MongoDB import * as mongodb from "mongodb"; // Import DeASync import * as deasync from "deasync"; // The MongoDB File const mongouri = fs.readFileSync("backend/mon...
<reponame>isabella232/yes-cart<gh_stars>0 /* * Copyright 2009 Inspire-Software.com * * 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/LI...
import { computed, Ref, watch, ref } from 'vue'; import { bnum } from '@/lib/utils'; import { FullPool } from '@/services/balancer/subgraph/types'; import useNumbers, { fNum } from '@/composables/useNumbers'; import PoolCalculator from '@/services/pool/calculator/calculator.sevice'; import useTokens from '@/composables...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /// <reference lib="esnext.asynciterable" /> import { TokenCredential } from "@azure/core-auth"; import { InternalPipelineOptions, bearerTokenChallengeAuthenticationPolicy } from "@azure/core-rest-pipeline"; import { OperationOptions } fro...
<filename>packages/common/src/event-placement.ts export interface SegInput { index: number spanStart: number spanEnd: number thickness: number // should be an integer } export interface SegEntry { // might be a sliced version of SegInput segInput: SegInput spanStart: number spanEnd: number thickness: n...
/* The MIT License (MIT) Copyright (c) 2015 <NAME>, https://github.com/jotak/homeblocks 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 ...
<gh_stars>10-100 /* eslint-disable camelcase */ import ow from 'ow'; import { Msg } from '../../../cosmos/v1beta1/types/msg'; import { CosmosMsg } from '../cosmosMsg'; import { ICoin } from '../../../coin/coin'; import { owMsgCreateValidatorOptions } from '../ow.types'; import { InitConfigurations, CroSDK } from '../.....
<filename>src/main/index.ts import createFile from "./createFile"; import { error, log, LogTypes } from "./logger"; import { getBlocks, getPageFrontmatter } from "./notionRequest/getArticles"; import { getPublishedArticles } from "./notionRequest/getDatabases"; import fs from "fs-extra"; import { NotionToMarkdown } fro...
<gh_stars>0 import { EventEmitter2 } from 'eventemitter2'; import { Doc, Op, Path } from 'sharedb'; import { CardInterface } from './card'; import { NodeInterface } from './node'; import { RangeInterface } from './range'; import { DrawStyle, TinyCanvasInterface } from './tiny-canvas'; export type Attribute = { uuid: ...
<reponame>oriSomething/sokoban-cli import blessed = require("blessed"); import { View } from "./View"; import { Level } from "../models/Level"; import { MapItem } from "../consts/MapItem"; import { removeChildren } from "../utils/removeChildren"; const CELL_SIZE_X = 4; const CELL_SIZE_Y = 2; function getLastMove(move...
import React, { ReactElement } from 'react' // import Error from 'next/error' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { library } from '@fortawesome/fontawesome-svg-core' import { fab } from '@fortawesome/free-brands-svg-icons' import { fal } from '@fortawesome/pro-light-svg-icons' impor...
<filename>src/dependency-check-gopkg.ts import { Context } from 'probot' // eslint-disable-line no-unused-vars import toml from 'toml' import { AnalysisResult } from './analysis-result' import { createAnnotation } from './annotation-result' import { AnnotationSource } from './annotation-source' import { Dependency, Gi...
<gh_stars>10-100 import webpackReactConfig from '@rocket-scripts/react-preset/webpackConfig'; import { ESBuildLoaderOptions } from '@rocket-scripts/react-preset/webpackLoaders/getWebpackScriptLoaders'; import { getWebpackAlias, icuFormat, rocketTitle } from '@rocket-scripts/utils'; import { devServerStart, DevServe...
import { useCallback, useEffect, useMemo, useState } from "react" import { useToast } from "@chakra-ui/react" import { UserTableColumn } from "./components/UserTableColumn" import { useRsi } from "../../hooks/useRsi" import { TemplateColumn } from "./components/TemplateColumn" import { ColumnGrid } from "./components/C...
<filename>packages/tldraw/src/state/shapes/shared/shape-styles.ts import { Utils } from '@tlslides/core' import { Theme, ColorStyle, DashStyle, ShapeStyles, SizeStyle, FontStyle, AlignStyle } from '~types' const canvasLight = '#fafafa' const canvasDark = '#343d45' const colors = { [ColorStyle.White]: '#f0f1f3', ...
import { handleActions } from 'redux-actions'; import { SAVE_QUESTION, MOVE_QUESTION_FROM_SEARCH, GET_QUESTION_FROM_SEARCH, question } from '../actions/questionAction'; import { history } from '../../main'; import { EDITOR_SAVE_COMMENT, getAllComments, comment } from 'app/actions/EditorBox'; export interface ...
<gh_stars>0 import Generator from 'yeoman-generator'; import yosay from 'yosay'; import * as path from 'path'; enum Option { WidgetName = "name", WidgetType = "type", CreateFolder = "createFolder", Subdir = "subdir", }; enum WidgetType { Vanilla = "VanillaJS", ReactJs = "React - JS", ReactTs = "React - ...
import { IMain, IDatabase } from "pg-promise"; import pgPromise from "pg-promise"; import { SortPagination } from "../models/SortPagination"; import camelcaseKeys from "camelcase-keys"; import { ConfigManager } from "../ConfigManager"; import { DatabaseConfig } from "../DatabaseConfig"; import { logger } from "./Logger...
// eslint-disable-next-line import/no-extraneous-dependencies import { Linter, Rule, SourceCode } from "eslint"; import { Comment } from "estree"; import { deepCloneValue } from "../utils/immutableDeepMerge"; const COMMENT_BOILERPLATE_SIZE = 2; // i.e. '//'.length export const limitSingleLineCommentsRule: Rule.RuleM...
import * as FS from 'fs'; import * as HTTP from 'http'; import { URL } from './URL'; import { features } from './features'; import { keys, assign } from './util'; import { nodeRequire } from './node'; export interface FetchOptions { method?: string; } export type FetchHeaders = { [key: string]: string }; /** Subse...
<filename>cypress/integration/equipments.spec.ts import faker from 'faker'; import { ScheduledEventBookingType } from '../../src/generated/sdk'; import { defaultEventBookingHourDateTime, getCurrentHourDateTime, getHourDateTimeAfter, } from '../utils'; const existingProposalBookingId = 1; const existingInstrumen...
<filename>SHAPE-APP/src/pages/tabs/diary/event-forms/DiaryMappings.tsx // DoctorVisit export const assessmentArr = [ { val: 0, text: "Medical Doctor" }, { val: 1, text: "Physician’s Assistant" }, { val: 2, text: "Nurse Practitioner" }, { val: 3, text: "Physical Therapist" }, { val: 5, text: "Other - Please s...
// 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/LICENSE-2.0 // // Unless requir...
<gh_stars>10-100 export type Course = { id: number; }; export type CourseListItem = { id: number; name: string; startDate: Date; endDate: Date; isHidden: boolean; imageUrl: string; isFavorite: boolean; category: string; }; export type DayOfWeek = 'sunday' | 'monday' | 'tuesday' | '...
<reponame>mmcs-gd/aurora2022<filename>scenes/steering-demo.ts /// <reference path='./module_types.d.ts'/> import EasyStar from 'easystarjs'; import tilemapPng from '../assets/tileset/Dungeon_Tileset.png'; import dungeonRoomJson from '../assets/dungeon_room.json'; import { Scene } from '../src/characters/scene'; import ...
import { faBookOpen, faImage, faLink, faTrash } from "@fortawesome/free-solid-svg-icons"; import React from "react"; import styled from "styled-components"; import Monster from "../../../../data/Monster"; import IconButton from "../../../form_elements/IconButton"; import ImageImportField from "../../../form_elements/Im...
import { FC, useCallback, useEffect, useRef, useState } from 'react'; import { utils, BigNumber } from 'ethers'; import clsx from 'clsx'; import { Box, Button, Dialog, DialogTitle, DialogContent, Divider, InputAdornment, Link, OutlinedInput, IconButton, Typography, } from '@material-ui/core'; imp...
import * as bip32 from 'bip32'; import * as crypto from 'crypto'; import { Network } from '../../../src/networkTypes'; import { createOutputScript2of3, ScriptType2Of3, scriptTypes2Of3 } from '../../../src/bitgo/outputScripts'; import { isTriple, Triple } from '../../../src/bitgo/types'; import { isBitcoin, isBitcoinGol...
<reponame>maybeast/dai.js<filename>packages/dai-plugin-mcd/test/integration/mcd.spec.ts // @ts-nocheck import { mcdMaker } from '../helpers'; import { ServiceRoles } from '../../src/constants'; import { ETH, DAI } from '../../src'; import { uniqueId } from '../../src/utils'; import debug from 'debug'; import { infuraPr...
<reponame>tomermevorach/salto<filename>packages/lang-server/src/location.ts<gh_stars>0 /* * 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 a...
import { Grid, Box, TextField } from "@mui/material"; import Link from "next/link"; import { useRouter } from "next/router"; import React from "react"; import Footer from "../../container/Footer"; import Header from "../../container/Header"; import { MenuTypes } from "../../utils/types"; import * as Config from '../../...
import Button from '@material-ui/core/Button'; import CircularProgress from '@material-ui/core/CircularProgress'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogTitle from '@material-ui...
import axios from 'axios'; import { OS_API_URL, OS_MAX_REQUEST_OFFSET } from './constants'; import { OpenSeaAssetData, OpenSeaAssetsResponseData, OS_NFT_NOT_FOUND, retriableOsHttpCodes, UNKNOWN_ERROR } from './types'; // Our interactions with the OS API /** * Gets the OS info for a specified NFT given a slug and a t...
import { tracked } from '@glimmer/tracking'; import { reads } from 'macro-decorators'; import { defer } from 'rsvp'; import Web3 from 'web3'; import { IConnector } from '@walletconnect/types'; import WalletConnectProvider from '@cardstack/wc-provider'; import { task } from 'ember-concurrency-decorators'; import { Emit...
<gh_stars>0 /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/ban-types */ /** * TODO: decorators and TS are... fun * this file needs a lot of work * */ import { dirtyCollection, hasStorage, initStorage, readCollection, readStorage, STORAGES, updateSto...
<gh_stars>0 import { resolve } from "path"; import { CreatePagesArgs, CreateNodeArgs, SourceNodesArgs, NodeInput } from "gatsby"; import { createFilePath } from "gatsby-source-filesystem"; import { intersection, difference, isEqual } from "lodash"; import config from "./contents/configs/config"; /* Make inversed the c...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import { Construct } from 'constructs'; import {CfnOutput} from 'aws-cdk-lib'; import {AnyPrincipal, Effect, ServicePrincipal} from 'aws-cdk-lib/aws-iam'; import {BlockPublicAccess, BucketEncryption} from 'aws-cdk-l...
<reponame>nazar-pc/reed-solomon-erasure<filename>wasm/src/index.ts import {readFileSync} from "fs"; interface IWasm { memory: WebAssembly.Memory; encode(shardsPointer: number, shardsLength: number, dataShards: number, parityShards: number): number; reconstruct(shardsPointer: number, shardsLength: number,...
<gh_stars>10-100 // ref: // - https://umijs.org/plugin/develop.html import { IApi } from 'umi'; import { isAbsolute, join } from 'path'; import assert from 'assert'; import globby from 'globby'; export interface UmiPluginThemeSwitchOptions { themes: UmiPluginThemeItem[] | string; defaultTheme?: string; scope?: s...
import { TaskGroup, TaskFunction, TaskToken, Task, TaskCompletionStatus, CancellablePromise, UnsubscribeFunction } from './types'; export const TASK = "task", STACK_ID = "stackId", ERROR = "ERROR", CANCELLED = "CANCELLED", COMPLETED = "COMPLETED", PROCESSING = "PROCESSING", CANCEL_EXCEPTION = {} /** * Return the ta...
import { camel, pascal } from 'case'; import { format } from 'prettier'; import { File, FileFactory, Interface, isEnum, isRequired, Parameter, ParameterSpec, Service, } from '../types'; import { warning } from './warning'; export class ExpressRouterFactory implements FileFactory { public readonly tar...
// NOTE: much of this should probably be deprecated, as // @lib/auth/get-permissions is much more ergonomic. import * as React from 'react'; import { compose } from 'recompose'; import { withData as withOrbit, ILegacyProvidedProps } from 'react-orbitjs'; import { withRouter, Redirect, RouteComponentProps } from ...
<filename>src/app/extras/features/deal/extras/modals/deal-save/deal-save.modal.ts<gh_stars>0 import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef, ViewChild } from '@angular/core'; import { FormArray, FormControl, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute } from '...
import React from 'react' import { connect, MapStateToProps } from 'react-redux' import BN from 'bn.js' import ContactRepository from '../../services/ContactRepository' import * as Balances from '../../state/ducks/Balances' import * as Contacts from '../../state/ducks/Contacts' import * as Wallet from '../../state/duck...
import React, { MouseEventHandler } from 'react'; import { css } from 'emotion'; import { globalFontFamily, breakpoints, colors } from '../styles'; interface WriteMyBioState { text: string; lastTextLength: number; sendButtonText: 'Send' | 'Sending...' | 'Sent, Thanks!'; } const predefinedText = `Dear Jeppe, I act...
import i18next from "i18next"; import { action, computed, runInAction } from "mobx"; import URI from "urijs"; import filterOutUndefined from "../Core/filterOutUndefined"; import isDefined from "../Core/isDefined"; import loadJson from "../Core/loadJson"; import replaceUnderscores from "../Core/replaceUnderscores"; impo...
import { useCallback, useEffect, useRef, useState } from 'react' import { Column, ColumnWidthDictionary, GridHeader, NestedHeader } from '../types' import { ColumnApi } from '../../api/types/columnApi' import { ROW_SELECTION_HEADER_ID, SelectionProps } from '../../rowSelection' import { ApiRef, COLLAPSES_CHANGED, ...
<gh_stars>0 import * as path from "path" import BluebirdPromise from "bluebird-lst-c" import { emptyDir, readdir, unlink, removeSync, readJson } from "fs-extra-p" import { homedir } from "os" import { TEST_DIR, ELECTRON_VERSION } from "./config" import isCi from "is-ci" // we set NODE_PATH in this file, so, we cannot ...
<reponame>mrapogee/flowtabs import { TabOrderPreviewQuery, ChromeWindow, ChromeTab, WindowFlowState, BID, FlowWindowStateSet, WindowMappings } from "../interfaces"; import { SAVED_WINDOWS_KEY, LOCAL_WINDOWS_KEY, WINDOW_MAPPINGS_KEY } from "./getWindows"; import uuid = require("uuid"); import { getCh...
<reponame>elvinristi/universalprint-react-sample // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { IDropdownOption } from "@fluentui/react"; import { IPrinterCapabilities, IPrinterDefaults, IDocumentConfiguration, IPrintOrientation, IPrintColorConfiguration, IPr...