text
stringlengths
3.3k
33k
<filename>src/scheduling/rule_based/scheduler.ts<gh_stars>0 import {ScheduleAtDate} from "../shared"; import {Person} from "../people"; import * as _ from 'lodash'; import {csd, dayAndHourForDate} from "../common/date-utils"; import {AccumulatedFacts} from "./accumulated-facts"; import {SWBSafeJSON} from "../../common/...
<filename>src/ecies.ts import { createECDH, ECDH, createCipheriv, createDecipheriv, randomFillSync, createHash } from 'crypto'; import { strict } from 'assert'; import { stringify } from 'querystring'; /** * JSON Wek Token */ export interface JWK { "kty": string; "d"?: string; "crv": string; ...
import { Fragment, FunctionComponent, ReactNode, useEffect, useState, } from 'react'; import Image from 'next/image'; import Link from 'next/link'; import { Dialog, Transition } from '@headlessui/react'; import { ChartBarIcon, HomeIcon, MenuIcon, XIcon, HeartIcon, ChatIcon, ...
import { CommonFlags } from "../common"; import { Global, Program, Function, Class, Interface, Enum, ElementKind, Field, Element } from "../program"; import { Type, TypeFlags } from "../types"; import { CharCode, escapeString, indent, isIdentifier } from "../util"; import { ExportsWa...
import { UnigraphUpsert } from "../types/unigraph" import _, { has, uniqueId } from "lodash"; import { typeMap } from '../types/consts' import { getRandomInt } from "../api/unigraph"; function buildDgraphFunctionFromRefQuery(query: {key: string, value: string}[]) { let string = ""; let string1 = ""; let t...
import React, { useEffect } from 'react'; import Truncate from 'react-truncate'; import { PostContent, PostUserInfo, ShelfPost, User } from '@caravanapp/types'; import { Card, CardActions, CardContent, makeStyles, Typography, } from '@material-ui/core'; import { CustomSnackbarProps } from '../../components/...
// [VexFlow](https://vexflow.com) - Copyright (c) <NAME> 2010. // MIT License import { Element } from './element'; import { FontInfo } from './font'; import { Modifier, ModifierPosition } from './modifier'; import { ModifierContextState } from './modifiercontext'; import { Stave } from './stave'; import { Stem } from '...
type UnitValue = string | number | string[] | number[] type StringValue = string | string[] type NumberValue = number | number[] // based on styled-system 4.1.1 export const defaultBreakpoints = [40, 52, 64].map(n => n + 'em') const cloneFunction = fn => (...args) => fn(...args) const get = (obj, ...paths) => { c...
import {Component, ElementRef, OnDestroy, OnInit} from '@angular/core'; import {routerTransition} from '../../router.animations'; import {NgbDatepickerI18n, NgbDropdownConfig} from "@ng-bootstrap/ng-bootstrap"; import {FiltersService} from "../../services/filters.service"; import {DictionariesService} from "../../servi...
<reponame>slashsec-edu/cryton-frontend<filename>src/app/modules/template-creator/components/step-creator/step-creator.component.ts import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, FormControl, FormGroup, ValidationErrors, Validators } from '@angular/forms'...
import type { Attachment } from '../../../../decorators/attachment/Attachment' import type { CredentialProtocolMsgReturnType, ServiceAcceptRequestOptions, ServiceOfferCredentialOptions, ServiceRequestCredentialOptions, } from '../../CredentialServiceOptions' import type { ProposeCredentialOptions } from '../../...
declare var require; import { Component, OnInit, AfterViewInit } from '@angular/core'; import * as esri from 'esri-leaflet'; import * as L from 'leaflet'; import { MapCache } from '@helgoland/map'; require('leaflet-timedimension'); require('leaflet.sync'); import { ActivatedRoute } from '@angular/router'; const intra...
<filename>lib/server/index.ts<gh_stars>0 import * as appInsights from 'applicationinsights' import 'dotenv/config'; import http = require("http"); // Use require syntax to allow app insights to monkey patch import * as url from 'url'; import compression from 'compression'; import express from 'express'; import { Apollo...
<reponame>abeisgoat/firebase-js-sdk /** * @license * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
import * as React from 'react'; import FlexView from 'react-flexview'; import { Breadcrumb, Icon, Button } from 'patternfly-react'; import { DurationInSeconds, PollIntervalInMs } from '../../types/Common'; import Namespace from '../../types/Namespace'; import { GraphParamsType, SummaryData, NodeParamsType, GraphType }...
<reponame>jondthompson/d2-checklist import { Injectable } from '@angular/core'; import { ItemType } from '@app/service/model'; import { NotificationService } from '@app/service/notification.service'; import * as moment from 'moment'; import { combineLatest, Observable, of, ReplaySubject } from 'rxjs'; import { filter, ...
import {connectRouter, routerMiddleware} from "connected-react-router"; import {History} from "history"; import {applyMiddleware, compose, createStore, Middleware, ReducersMapObject, StoreEnhancer} from "redux"; import {Action, CurrentViews, LOADING, LOCATION_CHANGE, MetaData, ModelStore, NSP, errorAction, viewInvalidA...
<gh_stars>1-10 import * as dotProp from 'dot-prop-immutable' import { orderBy } from 'lodash-es' import { DateTime } from 'luxon' import { createSelector } from 'reselect' import { IAPIClient } from '../../shared/api/APIClient' import { IGeoJSON } from './interfaces' import { IStore } from './reducer' import { sendNoti...
<gh_stars>100-1000 import { KubernetesObject } from 'kpt-functions'; import * as apiCoreV1 from './io.k8s.api.core.v1'; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1'; // Endpoint represents a single logical "backend" implementing a service. export class Endpoint { // addresses of this endpoint...
import { should } from '../setup' /* External Imports */ import { getLogger, Logger, hexStrToBuf, BigNumber, bufferUtils, } from '@eth-optimism/core-utils' import { Opcode, EVMOpcode, EVMBytecode, bytecodeToBuffer, bufferToBytecode, formatBytecode, } from '@eth-optimism/rollup-core' /* Internal ...
import React from 'react'; import { useTranslation } from 'react-i18next'; import { useHistory, Link } from 'react-router-dom'; import { map, snakeCase, groupBy, size, filter, head } from 'lodash'; // Redux import { connect } from 'react-redux'; import { getUserAuthSelector, isAdmin } from '../selectors/auth'; import ...
/** @format */ import Link from "next/link"; import styled from "styled-components"; import { Avatar } from "@material-ui/core"; import SearchIcon from "@material-ui/icons/Search"; import HomeIcon from "@material-ui/icons/Home"; import VideoLibraryIcon from "@material-ui/icons/VideoLibrary"; import GroupWorkIcon from...
<filename>src/rollup/client/index.ts<gh_stars>0 import { Plugin, PluginContext, TransformPluginContext, TransformResult, NormalizedInputOptions, NormalizedOutputOptions, RollupWarning, OutputBundle, OutputChunk, ModuleInfo, OutputAsset, EmittedFile, EmittedAsset, } from 'rollup' import * as f...
import React, { Fragment, useState, useRef, useEffect } from 'react'; import { View } from 'react-native'; import { useIntl } from 'react-intl'; import get from 'lodash/get'; import { View as AnimatedView } from 'react-native-animatable'; import { getTimeFromNow } from '../../../utils/time'; // Constants // Component...
<filename>src/controllers/meal.controller.ts 'use strict'; import {Meal} from "../model/meal"; import {Ingredient} from "../model/ingredient"; import {MealIngredient} from "../model/meal-ingredient"; import RecipeController = require("./recipe.controller"); import {MealRecipe} from "../model/meal-recipe"; import ErrorC...
<filename>src/app/app.component.ts import { AfterViewInit, Component, HostListener, OnDestroy } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { Router } from '@angular/router'; import { AstroEvent, EventFinder, FIRST_QUARTER, FULL_MOON, LAST_QUARTER, NEW_MOON } from '@...
<reponame>raralabs/ad-bs-datetpicker import { getTotalDaysInAdMonth } from "../date-fns"; import { isInBetween } from "../utils"; import { CalendarType } from "../types/main"; import parser from "./parser"; import format from "./format"; import { isInValidRange, isMonthValid, isBsDateValid } from "./validator"; import...
import { Chapter, ChapterDetails, HomeSection, LanguageCode, Manga, MangaStatus, MangaTile, SearchRequest, TagSection } from "paperback-extensions-common"; export const parseMangaDetails = ($: CheerioStatic, mangaId: string): Manga => { const tagSections: TagSection[] = [createTagSection({ id: '0', label: 'genres'...
<reponame>mheers/Calla<filename>Kudzu/gis/UTMPoint.ts import { vec2, vec3 } from "gl-matrix"; import { deg2rad } from "../math/deg2rad"; import { isDefined, isObject } from "../typeChecks"; import { DatumWGS_84 } from "./Datum"; import { ILatLngPoint, LatLngPoint } from "./LatLngPoint"; /** * The globe hemispheres in...
import { array, object, optionsKnob } from "@storybook/addon-knobs"; import { OptionsKnobOptions } from "@storybook/addon-knobs/dist/components/types"; import { ApplicationComponentDetails, ApplicationDetails, PodStatus } from "types/application"; import { MetricItem, MetricList } from "types/common"; import { HttpRout...
<gh_stars>0 import { Unit } from "./unit"; import { ModStack } from "./modStack"; import { Game } from "../game"; import { ONE, ZERO, MOD_COMPONENTS, MOD_RECYCLING, MAX_RECYCLING, COMPONENT_PRICE, MAX_DRONES_PRESTIGE, EXTREME_MOD_TOTAL_MULTI, EXTREME_MOD_TOTAL_EXP } from "../CONSTANTS"; import { IUnit...
import { createWriteStream, promises } from 'fs'; import path from 'path'; import { getGameFile, getGameImage, getGameInfo, getGameUrl, getGameVideo, getVersionsCheck, } from '@/lib/axios'; import progressLog from '@/lib/progressLog'; import store from '@/lib/store'; import { generateAbsolutePath, gener...
import React, {FC, useEffect, useState} from "react"; import SwipeableViews from 'react-swipeable-views'; import { Typography, Box, Theme, useTheme, createStyles, makeStyles, CircularProgress, } from "@material-ui/core"; import { DLTSTabPanel } from '../CommonComponents/DLTSTabPanel' import TeamContext fr...
import React, { useCallback, useContext, useMemo, useState } from 'react'; import { View, Text, Image, StyleSheet, ImageBackground, TouchableOpacity, Dimensions } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { OrientationContext } from '../../state/orientation/Ori...
import { safeCall } from './utils'; import { markRead, markChange, watchProp } from './mark'; import { monitor } from './monitor'; /** 取消监听的方法 */ export interface CancelWatch { (): void; } /** 监听函数 */ export interface WatchCallback<T, V extends Value<T> = Value<T>> { (v: V, stopped: boolean): void; } /** 可监听值 */ exp...
import { Currency, Locale, LocaleDefinition, TimeZone } from './types'; // I18N/L10N export const DEFAULT_LOCALE: Locale = 'en'; export const DEFAULT_CURRENCY: Currency = 'USD'; export const DEFAULT_TIMEZONE: TimeZone = 'UTC'; export const LOCALES: Locale[] = [ 'de', // German 'en', // English 'es', // Spanish ...
import { setUrlParam } from "../../hooks/routeSettings"; import { Dims } from "../types"; export enum RenderParamKey { valueScale, valueOffset, lightnessScale, lightnessOffset, alphaScale, alphaOffset, warpScale, warpOffset, scaleScale, scaleOffset, period, colorCycle, zscale, bloom, bloo...
import React, { useState } from 'react' import styled from 'styled-components' import { Modal, Text, Flex, Image, Button, Slider, BalanceInput, AutoRenewIcon } from '@pancakeswap/uikit' import { useTranslation } from 'contexts/Localization' import { useWeb3React } from '@web3-react/core' import { BASE_EXCHANGE_URL } fr...
import React from "react"; import clsx from "clsx"; // import { isFragment } from "react-is"; import capitalize from "../utils/capitalize"; import { fade } from "../utils/colorManipulator"; import withStyles from "@material-ui/core/styles/withStyles"; import createStyles from "@material-ui/core/styles/createStyles"; im...
import isBuffer from 'is-buffer'; import { required } from 'unpartial'; import { defaultOptions } from './constants'; import { hasTersifyFn } from './hasTersifyFn'; import { tersifyFunction } from './tersifyFunction'; import { trim } from './trim'; import { TersifyOptions } from './types'; import { TersifyContext } fro...
<reponame>Suisse00/OnStarJS import TokenHandler from "./TokenHandler"; import Request, { RequestMethod } from "./Request"; import RequestResult from "./RequestResult"; import RequestError from "./RequestError"; import { HttpClient, OAuthToken, OnStarConfig, Result, AlertRequestOptions, DiagnosticsRequestOpt...
<filename>packages/angular/src/generators/ng-add/utilities/workspace.ts import { generateFiles, joinPathFragments, NxJsonConfiguration, readJson, readWorkspaceConfiguration, Tree, updateJson, updateWorkspaceConfiguration, writeJson, } from '@nrwl/devkit'; import { Linter, lintInitGenerator } from '@nr...
import { Address, BigDecimal } from "@graphprotocol/graph-ts"; import { _HelperStore, LiquidityPool, Token } from "../../generated/schema"; import { BIGDECIMAL_ONE, BIGDECIMAL_ZERO, HELPER_STORE_ID, STRING_TWO, ZERO_ADDRESS, } from "./constant"; import { BSC, deployedNetwork, POLYGON } from "./networkConfig";...
import { IsType, ImmutableKey } from '../defs'; import { WSReadyState, WSCloseCode } from './types'; import { WQServerLogger } from './logger'; import * as WebSocket from 'ws'; import * as http from 'http' export class WQServerConfig { port: number; heartbeat: boolean; debuglog: boolean; heartbeatTime...
import { Server } from 'http'; import { noop, truncate } from 'lodash'; import * as WebSocket from 'ws'; import { ENABLE_OBFUSCATION_ON_SERVER } from '../../common/constants'; import { id as generateID } from '../../common/util/common'; import { opponent as opponentOf } from '../../common/util/game'; import * as m f...
<filename>packages/backend/src/app.ts import { join } from 'path' import { Server } from 'http' import { EventEmitter } from 'events' import { IocContract } from '@adonisjs/fold' import Knex from 'knex' import Koa, { DefaultState } from 'koa' import bodyParser from 'koa-bodyparser' import { Logger } from 'pino' import...
import store from '@/store'; import Store from 'electron-store'; import {Logger} from '@/components/logger'; import {FileDialog} from '@/renderer/file-dialog'; import {ComponentSaver} from '@/components/component-saver'; import {ComponentTypes} from '@/components/component-types'; import {ComponentFinder} from '@/compo...
/** * @author doubledream * @desc 提取指定文件夹下的中文 */ import * as _ from 'lodash'; import * as slash from 'slash2'; import * as path from 'path'; import * as colors from 'colors'; import { getSpecifiedFiles, readFile, writeFile, isFile, isDirectory } from './file'; import { findChineseText } from './findChineseText'; i...
import { addWeeks, startOfWeek, isBefore, getYear } from 'date-fns'; import { WeekType, Semester, AcadYear, AcadWeek, AcadWeekInfo } from './types'; /* eslint-disable no-fallthrough, no-console */ /** * Returns a Date object of the first weekday of Week 0 of that academic year. * Assumes Week 0 begins on the first ...
import * as React from 'react'; import { Dropdown, TextField, Toggle, Link, IconButton, DocumentCard, DocumentCardPreview, IDocumentCardPreviewProps, ImageFit, PrimaryButton, IDropdownOption, ActionButton, Spinner, SpinnerSize } from 'office-ui-fabric-react'; import styles from './SiteDesignEditor.module....
/** * @author 小秋秋 * @time 2020-09-11 */ interface IPagination { options: IPaginationOptions element: HTMLElement | null lis: HTMLLIElement[] home: HTMLLIElement | null last: HTMLLIElement | null prev: HTMLLIElement | null next: HTMLLIElement | null input: HTMLInputElement | null ...
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /* eslint-disable no-redeclare */ /* eslint no-unused-vars: 0, no-magic-numbers: 0 */ import { entries } from '../functions/objects' import { isFunction } from '../functions/predicates' import 'core-js/features/observable/index.js' export const { Observable...
import {SvgFactory} from "../../svgFactory"; import {GridOptionsWrapper} from "../../gridOptionsWrapper"; import {ExpressionService} from "../../expressionService"; import {EventService} from "../../eventService"; import {Constants} from "../../constants"; import {Utils as _} from "../../utils"; import {Events} from "...
import type { IBaseFileSystem, IFileSystem, WatchEventListener, IWatchService, CallbackFn, CallbackFnVoid, IBaseFileSystemSyncActions, IBaseFileSystemCallbackActions, IBaseFileSystemPromiseActions, ReadFileOptions, WriteFileOptions, } from '@file-services/types'; import path from '@file-services/p...
interface _IParsedData { iiIII: string } export interface IParsedData extends _IParsedData { iW: string iR: string iX: string h: string VV: string N: string dd: string ff: string SnTTT: string SnTdTdTd: string PPPP: string a: string ppp: string RRRtR: string ww: string W1W2: string Nh: string ClCmCh...
<reponame>KillingJokeCHOrg/dejajs import { AfterContentInit, Component, ElementRef, EventEmitter, forwardRef, Input, Output, ViewChild, ViewEncapsulation } from '@angular/core'; import { NG_VALUE_ACCESSOR } from "@angular/forms"; import { coerceBooleanProperty } from '@angular/material/core/coercion/boolean-property'; ...
<reponame>Janani-26/sfpowerkit<filename>src/commands/sfpowerkit/source/picklist/generatepatch.ts import { AnyJson } from "@salesforce/ts-types"; import fs from "fs-extra"; import { flags } from "@salesforce/command"; import rimraf = require("rimraf"); import { Messages, SfdxProject } from "@salesforce/core"; import xml...
<reponame>steveruizok/react-decal<gh_stars>1-10 import { transform } from "./examples/raytracing/utils" import { range, flatten, compact } from "lodash-es" import { addPoints2 } from "./examples/raytracing/utils" const scale = 32, ratioX = 2, ratioY = 1, angle = 45, padding = 0, w = Math.floor(scale * ratioX...
<reponame>max-sym/react-booking-form import { useCallback, useMemo, useState, RefObject, createRef } from "react" export type LocationOption = { label: string value: string } export type FieldValue = LocationOption | Date | GuestOption[] | string export type FieldType = "location" | "date" | "datetime" | "people...
import Box from "@mui/material/Box"; import Menu from "@mui/material/Menu"; import MenuItem from "@mui/material/MenuItem"; import useMousePosition from "@react-hook/mouse-position"; import { Environment, Viewport } from "@vertexvis/viewer"; import { FrameCamera } from "@vertexvis/viewer/dist/types/lib/types/frameCamera...
// Types import type { Response as ServerResponse } from "https://deno.land/std@0.89.0/http/server.ts"; import type { ConfigFileInterface } from "../config/config_file.d.ts"; import type { ResponseRequest, ServerRequestContext } from "./server.ts"; // Standard Library // Third Party Modules import { contentType } fro...
import React from "react"; import TextInput from "../text-input/TextInput"; import NumberInput from "../number-input/NumberInput"; import CheckboxInput from "../CheckboxInput"; import Source, { SignalSource } from "../../objects/source"; import {DirectivityHandler} from "../../objects/source"; import GridRow from "../...
// eslint-disable-next-line import/no-extraneous-dependencies import 'simplebar/dist/simplebar.css' import '../style/explorer-panel.scss' import SimpleBar from 'simplebar-react' import React from 'react' import { AiOutlineSearch, AiOutlineFileSearch, AiOutlineBranches, AiOutlineSetting, AiOutlineLeft, AiOut...
<gh_stars>10-100 import { getMeshForApiDef } from '@graphql-portal/gateway/dist/src/server/router'; import { SourceConfig, Channel, ApiDefStatus } from '@graphql-portal/types'; import { AdditionalStitchingResolverObject } from '@graphql-portal/types/src/api-def-config'; import { forwardRef, Inject, Injectable } from '@...
<gh_stars>10-100 // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, softwa...
<filename>zf-client/src/app/transgene-manager/transgen-editor/transgene-editor.component.ts import {Component, OnInit} from '@angular/core'; import {classToPlain} from 'class-transformer'; import {map, startWith} from 'rxjs/operators'; import {Observable} from 'rxjs'; import {AbstractControl, FormBuilder, FormGroup, Va...
/* * Copyright (c) 2014, Metron, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of condit...
/* * Copyright 2020, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ import { MAX_ITEM_TO_DISPLAY_IN_TYPEAHEAD_DROPDOWN, TypeAheadMessage, SERVER_DATA_THRESHOLD } from "constant"; import { forbiddenBackslashRegexp, forbiddenSingleQuo...
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; /*************************************** * Utils * ***************************************/ // FindLine in docum...
import BigNumber from 'bignumber.js'; import { findIndex, isEmpty, isEqual } from 'lodash'; import React, { Component } from 'react'; import { View, TextInput, Text, ActivityIndicator, Platform, TouchableOpacity, KeyboardAvoidingView, InteractionManager, } from 'react-native'; import Le...
<reponame>ys-gitple/influx-crypto-watcher import * as moment from 'moment'; import { sleep } from '../../helpers'; import { IWatcherConfig, Watcher } from '../Watcher'; import { Exchange, OHLCV } from '../../Exchange/Exchange'; import { logger } from '../../../logger'; import { MEASUREMENT_OHLC, MEASUREMENT_OHLC_FILLED...
<gh_stars>0 import { DDO, DID, Logger, publisherTrustedAlgorithm as PublisherTrustedAlgorithm } from '@oceanprotocol/lib/' import { AssetSelectionAsset } from '../components/molecules/FormFields/AssetSelection' import { PriceList, getAssetsPriceList } from './subgraph' import axios, { CancelToken, AxiosRespons...
import { CanvasManager } from '../interactions/CanvasManager'; import { Scene } from '../scenes/Scene'; import { Inspector } from '../inspector/Inspector'; import { ProgramManager } from './webgl/ProgramManager'; import { WebGLUtils } from './webgl/WebGLUtils'; import { RenderItem } from './webgl/RenderList'; import { ...
<filename>src/cardanoLauncher.ts<gh_stars>10-100 // Copyright © 2020 IOHK // License: Apache-2.0 /** * Module for starting and managing a Cardano node and wallet backend. * * The main class is [[Launcher]]. * * @packageDocumentation */ import mkdirp from 'mkdirp'; import process from 'process'; import net from ...
import * as React from "react"; import { get } from "lodash-es"; import { canUseDOM } from "exenv-es6"; import { arrayMove, SortableContainer, SortableElement } from "react-sortable-hoc"; import { ISortableOptions, SortableListItem, sortingProps } from "./sorting"; import IFormItemCommon from "./form-item"; import { up...
import React from 'react'; import {SORT_ORDER, MODE, WIDGET, RequiredType, COLUMN_TYPE} from '../utils/Consts'; import {DashboardAction} from '../utils/reducers/dashboardReducer'; import {Filter as coreFilter, Expression as coreExpression} from '../core'; import {TimeBin, ExtractBin} from '../utils/Time'; ////////////...
<filename>RankColoc/webapp/src/modules/Annotations/AnnotationView.ts import { renderMolFormula } from '../../util'; import DatasetInfo from '../../components/DatasetInfo.vue'; import { annotationQuery } from '../../api/annotation'; import { datasetVisibilityQuery, DatasetVisibilityResult, msAcqGeometryQuery,...
import { IAuthController, AuthUser, AuthProviders, MagicLinkRequestReasons, AuthResult, AuthErrors } from '../../abstractions/IAuthController'; import { action, makeObservable, observable, runInAction } from 'mobx'; import Firebase from '../../client/firebase'; import { createLogger } from '@zajno/common/lib/logger'; i...
<reponame>konchunas/harbinger-lib /** Some dependencies are JS only and are untyped. */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-retur...
const fs = require('fs'); function readData() { return require('./temporary_log.json'); } function writeData(a:any) {fs.writeFile('./temporary_log.json', JSON.stringify(a), (err:any) => { if (err){ console.log(err) } })} interface OperationData { id: number; date: any; amount: number;...
// Copyright 2021 The Oppia 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 // // Unless required by ap...
import React, { useState, useEffect, useRef } from "react"; import styled from "styled-components"; import Masonry from "react-masonry-css"; import { Classes } from "@blueprintjs/core"; import { useParams } from "react-router"; import { useDispatch, useSelector } from "react-redux"; import Text, { FontWeight, TextType ...
<gh_stars>10-100 import { FederateActivityRequest, FederateActivityResponse } from '../rpc_model.ts'; import { BackendStorage, getRecord } from '../storage.ts'; import { checkActivityRecord, checkActorRecord, checkFederationRecord, FederationRecipientState, FederationRecord } from '../domain_model.ts'; import { ApObjec...
<gh_stars>0 import React, { ReactElement } from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'react-peek/prop-types'; import _ from 'lodash'; import { isPlainObjectOrEsModule, omitFunctionPropsDeep, } from './state-management'; export interface StandardProps { /** Appended to th...
/* input: string, lines: string[], dblines: string[][] copy(text: string) → clipboard error(message: string) → thrown error -5..mod(3) → @mod(-5, 3) */ // Cardinals: // [[1,0],[-1,0],[0,1],[0,-1]] // +Diagonals: // [[1,0],[-1,0],[0,1],[0,-1],[-1,-1],[-1,1],[1,-1],[1,1]] export {}; // oh no… const sample_input = `Ti...
import React, { useRef, useState } from "react"; import { Colour, ColourMap, colourString } from "../colour/definition"; import { Optional } from "../data"; import { roundFloat } from "../number"; import * as styles from "./LinePlot.styles"; function formatTooltipValue(value?: number, precision: number = 8): string { ...
/* * Copyright 2019-present Open Networking Foundation * * 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 appli...
import { OrderNotFound, InsufficientFunds } from 'ccxt' import { time } from '../util' import { MongoClient, Db, Collection } from 'mongodb' interface Params { startTime: number endTime: number } interface Balance { name: string amount: number } interface Trade { id: number amount: number timestamp: nu...
<reponame>georgercarder/arbitrum import { ethers } from 'hardhat' // import deployments from '../deployment.json' import { providers, Signer } from 'ethers' import { L1ERC20Gateway__factory } from 'arb-ts/src/lib/abi/factories/L1ERC20Gateway__factory' import { L2ERC20Gateway__factory } from 'arb-ts/src/lib/abi/factorie...
<filename>src/seed/getLocal/en.ts const enLocal = { common: { panel: 'Panel', bag: 'Bag', store: 'Store', selectLanguage: 'Language', loading: 'Loading...', split: 'Split', upgrade: 'Upgrade', notFound: 'NotFound', ok: 'OK', cancel: 'Cancel', copy: 'Copy', copyImageSucc...
import fs from "fs"; import readlineSync from "readline-sync"; import { conductFocus } from "./focus"; import { greetUser } from "./main"; import { readyToReview, setupReview, determineReviewStart, numberAndSlice } from "./review"; import { constructNewTodoItem, ITodoItem, TodoState } from "./todoItem"; import...
import { Logger, logger, LoggingDebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, BreakpointEvent, OutputEvent, Thread, StackFrame, Scope, Source, Handles, Breakpoint, Variable } from 'vscode-debugadapter'; import { DebugProtocol } from 'vscode-debugprotocol'; import { basename } from 'path'; import { ...
<gh_stars>0 import Reader from './reader' import { Token, t } from './token' import NextState from './next-state' import { EOS_FLAG } from './constants' import { isNewLine, isAlpha, isTerminator, isIdent, isWhitespace, isNumber } from './strings' const MAXIMUM_INDENT_LENGTH = 100000 // bug catcher const MAXIMUM_NUMBER...
<reponame>yuqicxy/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *---------------------------------------------...
import { TimeParseError } from "../time_parse_error"; import { objToTS, offset, tsToObj } from "./offset"; import { CalendarObject, UtilZone } from "./util"; /** * Allows to use both +/- and 1/-1 as sign, to improve readability. */ export enum Coefficient { "+" = 1, "-" = -1 } export namespace Coefficient {...
<gh_stars>0 import { HandlerInput } from "ask-sdk-core"; import { Response, interfaces, services } from "ask-sdk-model"; import * as moment from "moment"; import { LocalizedStrings } from "../helpers/LocalizedStrings"; import { RollCall, GameButton } from "../helpers/RollCall"; import { GameState, GameType } from "./Ga...
import React, { useState, useEffect } from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, TextInput, Button, Switch, FlatList, TouchableWithoutFeedback, Dimensions, } from 'react-native'; import PaytmCustomuisdk, { PaytmConsentCheckBox, } from 'paytm-customuisdk-react-native...
import { Fp } from "./fp"; import { Fp2 } from "./fp2"; import { Fp12 } from "./fp12"; import { Point } from "./point"; export type Bytes = Uint8Array | string; export type Hash = Bytes; // https://eprint.iacr.org/2019/403.pdf // 2.1 The BLS12-381 elliptic curve // q = z**4 − z**2 + 1 export const PRIME_ORDER = 0x73...
<gh_stars>10-100 'use strict'; import * as vscode from 'vscode'; import * as path from 'path'; import { dectFileType, findFiles } from './utils'; import { definitionLocation } from './rails_definition'; import micromatch from 'micromatch'; import * as fs from 'fs'; import * as readline from 'readline'; import { Fil...
<filename>packages/server/src/resolvers/ofertas.resolver.ts<gh_stars>0 import { Arg, Field, FieldResolver, InputType, Int, Mutation, Query, registerEnumType, Resolver, ResolverInterface, Root, } from 'type-graphql'; import { Service } from 'typedi'; import { EntityManager, ge...