text stringlengths 3.08k 15.5k |
|---|
import SimpleSchema from 'simpl-schema';
import { isServer, isAnyTest } from './executionEnvironment';
import * as _ from 'underscore';
import { addFieldsDict } from './utils/schemaUtils';
export { getDefaultMutations } from './vulcan-core/default_mutations';
export { getDefaultResolvers } from './vulcan-core/default_r... |
/*
* indicative-parser
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import Pipe from 'haye/dist/haye-pipe'
import ArrayPresenter from 'haye/dist/haye-array-presenter'
import {
Schema,
Messages,
ParsedRu... |
import { Equatable } from "@siteimprove/alfa-equatable";
import { Hash, Hashable } from "@siteimprove/alfa-hash";
import { Serializable } from "@siteimprove/alfa-json";
import { mod, clamp } from "@siteimprove/alfa-math";
import { Parser } from "@siteimprove/alfa-parser";
import * as json from "@siteimprove/alfa-json"... |
<reponame>CyanoHao/ot-builder
import { BinaryView, Frag, Write } from "@ot-builder/bin-util";
import { Errors } from "@ot-builder/errors";
import { Post } from "@ot-builder/ot-metadata";
import { Data } from "@ot-builder/prelude";
import { F16D16 } from "@ot-builder/primitive";
import { OtVar } from "@ot-builder/varian... |
import { NameKeyId, NameKeyMap } from './name-key-map';
import * as utils from './utils';
import { isSameNameKeyId, UserEvent, FlowEvent } from '.';
import { PayloadValidationCB } from './validation';
import { FlowProgressInfo } from './flow-core';
export type BidType = "requestBid" | "askForBid" | "blockBid" | "exten... |
import type { FiberStatus } from "@fncts/io/FiberStatus";
import type { Annotations } from "@fncts/test/control/Annotations";
import type { Live } from "@fncts/test/control/Live";
import { matchTag } from "@fncts/base/util/pattern";
import { Console } from "@fncts/io/Console";
import { TestAnnotation } from "@fncts/te... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
<reponame>Vijayasarathi-G/Flextable
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatSort, MatTableDataSource } from '@angular/material';
import { PerfectScrollbarConfigInterface, PerfectScrollbarComponent, PerfectScrollbarDirective } from 'ngx-perfect-scrollbar';
import { SelectionModel } from... |
import '@vonage/vvd-core';
import '@vonage/vwc-icon';
import {
customElement, property, html, TemplateResult
} from 'lit-element';
import { classMap } from 'lit-html/directives/class-map.js';
import { Button as MWCButton } from '@material/mwc-button';
import { style as vwcButtonStyle } from './vwc-button.css.js';
impo... |
import io from "socket.io-client";
import { PacketMotionData, PacketSessionData, PacketLapData, PacketEventData, PacketParticipantsData, CarSetupData, CarTelemetryData, CarStatusData, FinalClassificationData, LobbyInfoData, CarDamageData, PacketSessionHistoryData, ParticipantData } from '../models/packets'
import { F... |
<filename>src/day11/index.ts
import { test, readInput } from "../utils/index"
import { exists } from "fs";
const prepareInput = (rawInput: string) => rawInput.split(',').map( (s:string):number => +s);
const input = prepareInput(readInput())
const position = (pc, program, index) => {
let relative = Math.trunc( progr... |
import { TextMappings } from 'components/DocumentPreview/types';
import flatMap from 'lodash/flatMap';
import { PDFPageViewport, TextContent } from 'pdfjs-dist';
import { nonEmpty } from 'utils/nonEmpty';
import {
DocumentFields,
DocumentFieldHighlight,
HighlightShape,
HighlightShapeBox
} from '../types';
impor... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as _ from "lodash"
import * as React from "react"
import { Alert, Modal } from "react-bootstrap"
import Arcana from "../model/Arcana"
import Query, { QueryLog } from "../model/Query"
import QueryRepository from "../model/QueryRepository"
import Favorites... |
<gh_stars>0
/* Copyright (c) 2018 The Masari Project
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... |
// The MIT License
//
// Copyright (c) 2018 Google, 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, mo... |
import { app } from 'electron';
import {
closeSync,
existsSync,
mkdirSync,
openSync,
readFileSync,
utimesSync,
writeFileSync
} from 'fs';
import * as path from 'path';
import { TInvokeGetSettings, TInvokeSetSettings } from '../../src/models/electron/invoke.channels';
import { TSettingCheck, ... |
import React, { useState } from 'react';
import { graphql, PageProps } from 'gatsby';
import { FluidObject } from 'gatsby-image';
import Layout from '../components/layout'
import CupcakeDailyFlavors from '../components/CupcakeDailyFlavors';
import SeasonalProductCarousel from '../components/SeasonalProductCarousel';
i... |
import * as bootstrap from 'bootstrap';
import React from 'react';
import ReactDOM from 'react-dom';
import {useDropzone} from 'react-dropzone';
import Cropper from 'react-easy-crop';
import {Point, Area} from "react-easy-crop/types";
import {OlzProgressBar} from '../../common/OlzProgressBar/OlzProgressBar';
import {re... |
import {
SaveGame,
GameObject,
BehaviorName,
GameObjectBehavior,
GameObjectGroup,
getBehavior
} from "oni-save-parser";
import { findIndex } from "lodash-es";
import { getGameObjectId } from "../utils";
import { OniSaveState } from "../state";
export class ModifySaveError extends Error {
constructor(mes... |
import { assert } from '@quenk/test/lib/assert';
import { restrict, disjoint, union, intersect, map } from '../src/record'
import { isRecord } from '../src/record';
import { Preconditions } from '../src';
import { Precondition, every } from '../src';
import { succeed, fail } from '../src/result';
const validUser = { n... |
import {Component} from 'react';
import * as React from 'react';
import * as classNames from 'classnames';
import {IBaseComponent} from '../template/component';
import Button from '../Button';
import Icon from '../Icon';
import { render } from 'react-dom';
import { Dialog } from '../utils/';
import { IButtonProps } fr... |
import { join, resolve, basename, dirname, isAbsolute } from 'path'
import { crawl, GlobMatcher } from 'recrawl'
import fs = require('saxon/sync')
import spawn from './spawn'
import checksum from './checksum'
import createLog from './log'
const PKG_JSON = 'package.json'
const CACHE_NAME = '.bic_cache'
const ALWAYS_SKI... |
import { ethers } from "ethers";
import PokerToken from "./abis/PokerToken.json";
import PokerTokenFaucet from "./abis/PokerTokenFaucet.json";
const CHAIN_URL = "https://matic-testnet-archive-rpc.bwarelabs.com";
const j = `{"address":"0a0ee891887c2785beb86f186f44e8b5e22ea7a9","id":"f6ea2099-28d1-4762-a595-ec7a661... |
/*
tinyCanvas, the canvas library of the people.
Written by <NAME> <<EMAIL>>
*/
"use strict";
class tinySprite {
public img: HTMLImageElement;
public frameW: number;
public frameH: number;
constructor(path: string, frameW: number, frameH: number, loadCallback: Function = function(i){}){
this.img = n... |
/* Copyright 2021 The TensorFlow 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 applicable law or a... |
/*
* Copyright 2021-2022 the original author or authors.
*
* 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 app... |
import { farmaciasEndpoints } from '../../../config.private';
import * as https from 'https';
import * as configPrivate from '../../../config.private';
const request = require('request');
const cheerio = require('cheerio');
const moment = require('moment');
import { farmaciasLocalidades, farmaciasTurnos } from '../sc... |
// parser
export type Success<T> = {
success: true;
result: T;
remaining: string;
};
export type Failure = {
success: false;
};
const failure: Failure = {
success: false,
};
export type Result<T> = Success<T> | Failure;
export type ParserSuccess<T> = (result: T, remaining: string) => void;
export type Parser... |
<filename>packages/api/src/types.ts
// Copyright 2017-2019 @polkadot/api authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Observable } from 'rxjs';
import { DeriveCustom } from '@sylo/polkadot-api-derive';
i... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { Cron } from '@nestjs/schedule';
import { chainMap } from './utils/chainMap';
import getEvents from './utils/getEvents';
import getWithdrawEvents from './utils/getWithdrawEvents';
impo... |
import { Injectable, OnDestroy } from '@angular/core';
import { EMPTY, forkJoin, Observable, of, ReplaySubject, Subject, combineLatest } from 'rxjs';
import { delayWhen, distinctUntilChanged, filter, map, scan, shareReplay, startWith, switchMap, } from 'rxjs/operators';
import { bestAttemptFromResults, implicitResultSt... |
import moment from 'moment';
import PouchDB from 'pouchdb';
import QRCodeModal from '@walletconnect/qrcode-modal';
import WalletConnect from '@walletconnect/client';
import { DIDSigner, KeystoreIndex } from './KeystoreIndex';
import { Token } from './Token';
PouchDB.plugin(require('pouchdb-find'));
const WALLET_REFS... |
<filename>demo/index.ts
import 'tachyons'
import 'tachyons-extra'
import { select, selectAll, Selection } from 'd3-selection'
import { generateData, COUNTER_EXTENT, roundToTwoDecimals } from './utils'
import { computeCircularSegments } from '../dist'
import { Orientation } from '../dist/lib/types'
const debug = false
... |
import React, { Component } from 'react'
import { connect, ConnectedProps } from 'react-redux'
import { State_t } from '../../app/model'
import { AppDispatch_t } from '../..'
import { fetch_data_cache } from '../../api'
import { selectors } from '../'
import { apply_LUT } from '../helpers'
import { saga_actions, clic... |
<filename>src/GraylogTarget.ts
/*
* meta2-logger
*
* @author <NAME> <<EMAIL>> (https://jiri.hybek.cz/)
* @copyright 2017 - 2018 <NAME>
* @license MIT
*/
import * as util from "util";
import Gelf = require("gelf");
import axios from 'axios'
import {LOG_LEVEL, ILoggerTarget, ILoggerMetaData} from "./interfaces";
... |
import { Avatar, Button, DateTimeInput, FormWrapper, IFormOption, Navbar, Preloader, Select, TextInput } from "@vesta/components";
import { IModelValidationMessage, IResponse, IValidationError, validationMessage } from "@vesta/core";
import { Culture } from "@vesta/culture";
import React, { ComponentType, useState } fr... |
/*
* Permissions management system, define access level for each of
* your server apis, and restrict users by giving them access levels
*
* Copyright (C) 2020 Intuition Robotics
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
import React, { useState, useEffect } from "react";
import { Redirect } from "react-router-dom";
import styles from "./TagAdd.module.css";
import ButtonElement from "../../../components/UI/Button/ButtonElement";
import CheckboxElement from "../../../components/UI/Checkbox/CheckboxElement";
import { useQuery, useMutatio... |
<filename>src/utils/utils.ts<gh_stars>100-1000
import { NotificationType } from '@app/components/common/Notification/Notification';
import { DefaultTheme } from 'styled-components';
import { Priority } from '../constants/enums/priorities';
export const camelize = (string: string): string => {
return string
.spli... |
import { UUnrealMaterial } from "../../assets/exports/mats/interfaces/UUnrealMaterial";
import { FLinearColor } from "../../objects/core/math/FColor";
import { ETextureChannel } from "../../assets/enums/ETextureChannel";
import { EMobileSpecularMask } from "../../assets/enums/EMobileSpecularMask";
import AdmZip from "a... |
// via radix
// https://github.com/radix-ui/primitives/blob/main/packages/react/switch/src/Switch.tsx
import { useComposedRefs } from '@tamagui/compose-refs'
import {
GetProps,
ReactComponentWithRef,
SizeTokens,
SizeVariantSpreadFunction,
getSize,
getVariableValue,
styled,
themeable,
} from '@tamagui/c... |
<filename>src/day_22/puzzle.ts
console.log('DAY 22');
// depth: 510
// target: 10, 10
// depth: 3879
// target: 8,713
type Coord = {
x: number;
y: number;
}
type RegionType = '.' | '=' | '|';
type Region = {
c: Coord;
gi: number;
el: number;
elm: number;
t: RegionType;
}
type Equipment... |
<filename>public/app/client/cli/src/commands/serverkeys_cmd/renew.ts
import { exit } from "../../lib/process";
import { Argv } from "yargs";
import { dispatch, initCore } from "../../lib/core";
import { BaseArgs } from "../../types";
import {
authz,
getEnvironmentName,
graphTypes,
getActiveGeneratedEnvkeysByKey... |
import * as React from 'react';
import { FormikConfig, FormikHelpers, Formik } from 'formik';
import { object } from 'yup';
import { MagicalContext, WizardStepMeta } from './context';
import { isFunction } from './utils';
export interface WizardStepContainer<Values> {
onSubmit?: (values?: Values, formikHelpers?: Fo... |
<reponame>soruh/I-Telex-Teilnehmerserver
"use strict";
import config from '../shared/config';
import * as util from 'util';
import * as dns from 'dns';
import * as ip from 'ip';
import { inspect, Client, decodeExt } from '../shared/misc';
import { SqlAll, SqlEach, SqlGet, SqlRun, teilnehmerRow } from '../shared/SQL';
... |
<filename>src/app/libs/swap/factory/direct/direct.ts
import { Program } from '@project-serum/anchor';
import { SendTxRequest } from '@project-serum/anchor/dist/cjs/provider';
import { Market, OpenOrders } from '@project-serum/serum';
import { ASSOCIATED_TOKEN_PROGRAM_ID, Token, TOKEN_PROGRAM_ID } from '@solana/spl-toke... |
import * as React from "react";
import { InvalidProgramStateError } from "../../../Commons/Errors";
import { TimeRange } from "../../../Domain/TimeRange";
import { TimeRangeUtils } from "../../../Store/TimeRangeUtils";
import { IInterruptibleContext, interruptible } from "./AsyncInterruptible";
interface ProfilerLin... |
import { FC } from "react";
import {
AreaChart,
XAxis,
Area,
//Tooltip,
ResponsiveContainer,
ReferenceLine,
} from "recharts";
import useConfidenceLevels from "../../hooks/useConfidenceLevels";
type ColorScheme = {
left: {
dark: string;
light: string;
};
right: {
dark: string;
light: ... |
import axios from 'axios'
import {Input} from "@material-ui/core";
import {Stream} from "stream";
export type Door = {
uuid: string;
doorname: string;
ip: string;
color: string;
}
export type GetDoorsResponse = {
doors: Door[];
}
export type User = {
uuid: string;
username: string;
fi... |
import {AfterViewInit, Component, OnInit} from "@angular/core";
// import {Chart, ChartConfiguration, ScatterDataPoint} from "chart.js";
import {Observable} from "rxjs";
import {format, isBefore, addHours} from "date-fns";
import {Tides} from "../tides.entites";
import {Select, Store} from "@ngxs/store";
import {TidesS... |
import "./FilterSelector.scss"
import * as React from 'react';
import { Filter, FilterCategory, SelectedFilter, FilterCategories, AssayData, SelectedFilters } from '../../typings/CubeData'
import { List} from 'immutable'
import { FilterDeletor, CubeMdx } from '@immunespace/components'
import { DataFilters } from './Dat... |
<filename>packages/lib/components/common/effects/useDraggable.ts
import { useCallback, useEffect, useRef, useState } from 'react';
import { useDebounce } from 'use-debounce';
import { isTouchDevice } from '../utils';
import { Position, UseDraggable } from './draggable-model';
const useDraggable: UseDraggable = (
tar... |
import * as SourceLocation from "./SourceLocation";
// TODO: Remove these types and use source location types everywhere.
export type Position = SourceLocation.SourcePosition;
export type ErrorWithoutPosition = Partial<SourceLocation.SourceFile>;
export type ErrorWithPosition = Required<SourceLocation.SourceRange>;
ex... |
<reponame>broadinstitute/firecloud-explorer
import { Component, OnInit, Output, ViewChild, EventEmitter, NgZone } from '@angular/core';
import { Message, TreeNode, TreeTable } from 'primeng/primeng';
import { Store } from '@ngrx/store';
import { UploadItem } from '@app/file-manager/models/upload-item';
import { AppStat... |
import LitJsSdk from "lit-js-sdk";
import { ethers } from "ethers";
import { AppendCollection, Collection } from "@cbj/ceramic-append-collection";
import {
xc20pDirEncrypter,
xc20pDirDecrypter,
createJWE,
decryptJWE,
JWE,
} from "did-jwt";
import { prepareCleartext, decodeCleartext } from "dag-jose-utils";
im... |
<filename>ng-wechat/components/picker/picker-group.component.ts
import { Component, Input, EventEmitter, Output, OnDestroy, HostListener, OnChanges, SimpleChanges } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { PickerData } from './data';
... |
/**
* Provide a service to poll the status of a Map/Reduce task.
*
* @NScriptType Suitelet
* @NApiVersion 2.x
* @NAmdConfig /SuiteScripts/amdconfig.json
*/
import { EntryPoints } from 'N/types';
import { ServerResponse } from 'N/https';
import { Status, SuiteletResponse, TaskStatusString, MapReduceStageString } ... |
export type Segment = "a" | "b" | "c" | "d" | "e" | "f" | "g";
export type Signal = {
patterns: Segment[][];
outputs: Segment[][];
};
const segmentSettings: Map<number, Segment[]> = new Map([
[0, ["a", "b", "c", "e", "f", "g"]],
[1, ["c", "f"]],
[2, ["a", "c", "d", "e", "g"]],
[3, ["a", "c", "d", "f", "g"... |
<reponame>OneNow/QUANTCONNECT-cli
import * as chalk from 'chalk';
import * as open from 'open';
import { table } from 'table';
import { formatString } from './format';
import { logger } from './logger';
// Name generation logic is based on https://github.com/QuantConnect/Lean/blob/5034c28c2efb4691a148b2c4a59f1c7ceb5f3... |
<gh_stars>1-10
import os from "os";
import path from "path";
import ffi from "ffi-napi";
import { libSpec, void_ptr, char_ptr, FluidSynthLib } from "./api-wrapper";
import { debug as d } from "debug";
const debug = d("fluid4node");
const osType = os.type() as "Windows_NT" | "Darwin" | "Linux";
const FLUID_FAILED = -... |
import { MenuTree,
Menu,
MenuItem } from './menu-model';
export class TechModel {
public authToken: string;
public id: number;
public profile: TechProfile;
public mapEntry: TechMapEntry;
protected techMenu: MenuTree;
constructor()
{
this.authToken = "";
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
BaseTokens,
ComplexNode,
ParserCore,
ParserOptions,
SimpleToken,
ValueToken,
createParser,
isAlpha,
isDigit,
} f... |
import React from 'react';
import { useTable, useRowSelect, useSortBy } from 'react-table';
import { CellName } from './CellName';
import { CellStatus } from './CellStatus';
import { CellText } from './CellText';
import { CellRole } from './CellRole';
import { Pagination } from '../Pagination';
const IndeterminateChec... |
import {articlePath} from "../lib/path-reader";
import FormDictator from "../lib/form-dictator";
import {Omit, ArticleInfo, ArticleStatus, ArticleRaw, CommentInfo, Errcode, ApiResponse, NeedPasswordResponse} from "@foxzilla/fireblog";
import {fileExist, Json2Toml, Toml2Json} from "../lib/lib";
import * as Comment from ... |
import * as React from 'react'
import { Icon } from 'semantic-ui-react'
import { getImageWidget } from '../../app/start'
import { State } from '../../app/state'
import { AbstractComponent, AbstractProps } from '../common/component'
import { Point } from '../common/point'
import { AbstractTool } from './tool'
export cl... |
/*
* Copyright 2020 <NAME> & Dohme Corp. a subsidiary of Merck & Co.,
* Inc., Kenilworth, NJ, USA.
*
* 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/licens... |
<reponame>bgoel2003/cdap
/*
* Copyright © 2018 <NAME>, Inc.
*
* 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 appl... |
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { TileLoader } from '@glazed/tile-loader'
import { CreateOpts } from '@ceramicnetwork/common'
export interface VariableOpts {
create: CreateOpts;
variable: {
controller: string,
maxDepth: number,
maxFragments: number,
};
}
export in... |
<filename>scripts/exporter/counters/ProtoCounter.ts
import { sortBy } from "lodash";
import {
Counter,
ExternalLink,
CounterReading,
CounterIrregular,
CounterKanjiInfo,
CounterDisambiguation,
} from "@jyosuushi/interfaces";
import {
DbCounter,
DbCounterAlternativeKanji,
DbCounterIrregular,
DbCount... |
import * as _ from "lodash";
import { statusList, statusListReverse } from "../../api/const";
import { HistoryType } from "../../schema";
import { Timestamp } from "@google-cloud/firestore";
import {
snapshotExists,
updateSymptomAddCreatedDate,
updateSymptomCheckUser,
updateSymptomCheckAmed,
updateSymptomUpda... |
import React, { useState } from 'react'
import { converttextstyle,switchLogostyle,CircleButtonstyle,Inputstyle,InputBoxstyle,togglestyleLiq, togglestyleSwap, buttonstyle, tinytextstyle, toggleHelperstyleActive, toggleHelperstyleInactive} from '../../styles'
// import {DropDownTo,DropDownFrom} from './dex/dropdown'
i... |
<filename>src/pieceWrapper.ts
// This class should not exist. The game can handle the creation of pieces.
// All uses should be changed into piece control by the game.
import Piece from './piece.ts';
import {
PieceType,
PieceShape,
PieceDropState,
PieceMoveState,
PieceLockState,
Direction,
l... |
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { transition, trigger } from '@angular/animations';
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
import {
Component,
EventEmitter,
Inject,
Input,
OnInit,
Optional,
Output,
Self,
... |
<filename>ui/src/input/MathML.ts
/*
* Copyright 2021 <NAME> <<EMAIL>>
*
* 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 re... |
import prepass from "@mo36924/preact-ssr-prepass";
import { IncomingMessage, Server as HttpServer, ServerOptions, ServerResponse } from "http";
import createError, { isHttpError } from "http-errors";
import renderToString from "preact-render-to-string";
import { promisify } from "util";
import { defaultContextValue, Pr... |
import {
JsonController,
Authorized,
Post,
Body,
Get,
Put,
Delete,
Param,
HttpError,
NotFoundError,
BadRequestError,
CurrentUser,
QueryParam,
HeaderParam,
UnauthorizedError
} from 'routing-controllers';
import * as dto from './types';
import { userRooms } from '../model';
import { QueueTi... |
<gh_stars>1-10
import type { EmbedFieldData } from 'discord.js'
import { MessageActionRow, MessageButton, MessageEmbed } from 'discord.js'
import { MessageButtonStyles } from 'discord.js/typings/enums'
import { ButtonStyle } from 'discord-api-types/v10'
import i18next from 'i18next'
import mergeOptions from 'merge-opti... |
import { Button } from "./control/button"
import { Finchart } from "./finchart"
import { Icon } from "./icon"
/** Class that represents Toolbar element of the chart */
export class Toolbar {
private parent: Finchart
element: HTMLDivElement
constructor (parent: Finchart) {
this.parent = parent... |
/*
* Permissions management system, define access level for each of
* your server apis, and restrict users by giving them access levels
*
* Copyright (C) 2020 Intuition Robotics
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
<reponame>noeRls/heriot-watt-calendar-exporter<filename>server/src/services/hw/parseTimelines.ts
import * as puppeteer from 'puppeteer';
import { getPage, releasePage } from './puppeteerProvider';
import { Page, ElementHandle } from 'puppeteer';
import { Dictionary, last } from 'ramda';
import { StudentGroup, CourseDet... |
import { isFunction, invariant, isObject, isStrictEql } from './shared/utils'
type OnRejected = (reason?: Error) => any
type OnFulfilled<T> = (value?: T | Promiser<T>) => any
interface ThenableCallbacks<T> {
onFulfilled?: OnFulfilled<T>
onRejected?: OnRejected
}
/**
* @description All states
* @spec https://pr... |
<filename>crawler/src/analysers/co2.ts
import { CrawlerRequestResponse } from "crawler";
import { Result } from "htmlmetaparser";
import e from "express";
type Product = any;
// From https://www.gov.uk/government/statistics/uks-carbon-footprint
// Data https://assets.publishing.service.gov.uk/government/uploads/system... |
import * as React from 'react';
import {
k8sDelete,
k8sList,
K8sResourceCommon,
OwnerReference,
ResourceLink,
} from '@openshift-console/dynamic-plugin-sdk';
import { K8sModel } from '@openshift-console/dynamic-plugin-sdk/lib/api/common-types';
import * as _ from 'lodash';
import { Trans } from 'react-i18next... |
import cv from 'opencv4nodejs';
import { ExtractorPlugin, FormData, MetadataLoaderFn } from 'tallysheet-timemachine';
import { File } from 'tallysheet-timemachine/lib/types';
import PaperFormData from './form-data';
import { findArucoMarkers } from './landmarks/aruco';
import { getPageContour } from './landmarks/page-c... |
<filename>types/index.d.ts
import _Vue, { WatchOptions } from "vue";
// augment typings of Vue.js
import "./vue";
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers";
export * from "./helpers";
export {
mapState,
mapGetters,
mapActions,
mapMutations,
createNa... |
import React from 'react';
import styles from '../style/index.module.sass';
import { TFieldProps, TFieldState } from '../types';
import cl from 'classnames';
import Input from '../Input';
import Icon from '../Icon';
import COLORS from '../Colors';
import Hint from './Hint';
import { getBorderColor } from '../modules';
... |
import React, {useEffect, useState, useRef} from 'react'
import {
TouchableOpacity,
View,
StyleSheet,
Linking,
Alert,
TouchableOpacityProps,
} from 'react-native'
import {inject} from 'mobx-react'
import {observer} from 'mobx-react'
import {minHeight} from './Global'
import SignUpAvatar from './SignUpAvatar... |
<gh_stars>1-10
type Styles_Plain_ReadonlySortedEntry = Readonly<Styles_Plain_SortedEntry>;
class Styles_Plain_SortedEntry implements Styles_IWithName, Styles_IWithDate
{
public readonly Source: Styles_EntryOrEntryData | undefined;
public readonly Entry: ObjectModel_Entry | undefined;
public Nickname: Strin... |
/*************************************************************
*
* Copyright (c) 2022-2022 The MathJax Consortium
*
* 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://w... |
<filename>src/foes/views/components/character.ts
import * as wecco from "@weccoframework/core"
import { Message, PerformAttack, RemoveCharacter, RollSavingThrow, UpdateCurrentHitPoints } from "../../controller"
import { m } from "../../../common/i18n"
import { Attack, Character, Hit, NPC, PC, SavingThrow } from "../../... |
import React, { useState, useEffect } from 'react';
import { Row, Col, Button, Card, Input, Select, Modal, Spin, Empty, message } from 'antd';
import { API } from '@/api';
import { Link } from 'react-router-dom';
import CreateApp from './components/CreateApp';
import ToolBoxCard from './components/toolboxCard';
import ... |
import { observable, action } from "mobx";
import { BotConfigFile, LogMsg, ConfigFileNetIface } from "./interfaces";
import {
uuid,
CeleryNode,
isCeleryScript,
SendMessage,
BotStateTree
} from "farmbot";
import * as _ from "lodash";
import * as Axios from "axios";
/** This isnt very good im sorry. ... |
import {
AbstractHub, IResponse, IRequest, IProgress, IHandlerMap, EErrorCode,
} from './abstract'
type IOwnPeer = Window | Worker | undefined
let sharedPostMessageHub: PostMessageHub
const isInWorker = typeof document === 'undefined'
function isWorker(peer: any): peer is Worker {
return !isInWorker && typeof W... |
<reponame>rolldone/ngi-sync
/** this file is same with devsync module */
import BaseModel, { BaseModelInterface } from "@root/base/BaseModel";
import * as chokidar from "chokidar"
import { ConfigInterface } from "./Config";
import upath from 'upath';
export interface WatcherInterface extends BaseModelInterface {
cre... |
import { officeNamespacesForCustomFunctionsIframe } from '../../constants';
import { currentEditorUrl } from 'common/lib/environment';
import { generateLogString, stringifyPlusPlus } from 'common/lib/utilities/string';
import generateCustomFunctionIframe from './run.customFunctions';
import { initializeJupyter } from ... |
<gh_stars>1-10
import map from 'lodash/fp/map';
import flatMap from 'lodash/fp/flatMap';
import fromPairs from 'lodash/fp/fromPairs';
import flow from 'lodash/fp/flow';
import concat from 'lodash/fp/concat';
import { api } from '@soramitsu/soraneo-wallet-web';
import { CodecString, Operation } from '@sora-substrate/uti... |
import HtmlWebpackPlugin from 'html-webpack-plugin';
import * as path from 'path';
import posthtml, { PostHTML } from 'posthtml';
import webpack from 'webpack';
import {
isDuplicatedOrFail,
renderContent,
writeToFile,
terseAttributeValue,
} from './utils';
interface Options {
namespace?: string;
dryRun: b... |
import { el, mnt, lstn, umnt, MntFn, emt } from "./dom.js"
import { SFn, State, StreamUse } from "./interfaces.js"
import { onDiff } from "./state.js"
import { streamsSel, streamingSel } from "./selectors.js"
// TODO: add doc
export interface ToggleFnArgs {
inputChannel: number
outputChannel: number // -1 inpu... |
import {
Armature,
CostFunction,
Generator,
GuidingVectors,
Light,
Material,
Model,
Node,
Point,
Renderer,
RGBColor,
Shape
} from '../calder';
import { range } from 'lodash';
// tslint:disable-next-line:import-name
import Bezier = require('bezier-js');
// Create the re... |
<reponame>adrianhopebailie/ilp-protocol-btp3<filename>src/lib/packet.ts
import { Reader, Writer } from 'oer-utils'
import UUID from './uuid'
import { BtpErrorCode, BtpError } from './error'
export interface BtpPacket {
type: BtpPacketType
id: string
}
export interface BtpReplyPacket extends BtpPacket {
correlati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.