text
stringlengths
3.3k
33k
import type { SerializedStyles } from '@emotion/react'; import { css } from '@emotion/react'; import type { RelatedItem } from '@guardian/apps-rendering-api-models/relatedItem'; import { RelatedItemType } from '@guardian/apps-rendering-api-models/relatedItemType'; import { Img } from '@guardian/image-rendering'; import...
import { LitElement, html, PropertyValues, css, TemplateResult } from "lit"; import { customElement, query, property, state } from "lit/decorators.js"; import "./components/is-dialog"; import "./components/is-textfield"; import "./components/is-button"; import "./components/is-circular-progress"; import "./components/i...
<reponame>uhst/uhst-server-node 'use strict'; import { Response, Request } from 'express'; import { v4 as uuidv4 } from 'uuid'; import { ISseResponse } from '@toverux/expresse'; import fetch from 'node-fetch'; import randomize = require('randomatic'); import { signToken } from './auth'; import { HostConfiguration } fr...
import React, { useState } from 'react' import Knob from '../Knob' import SkinWrap from './layout/SkinWrap' import SkinProps from './SkinProps' import composeTwo from '../util/composeTwo' import useAngleUpdater from '../util/useAngleUpdater' /* * CSS for this component is written by @simurai * All credits goes to hi...
import Tooltip from 'rc-tooltip' import * as React from 'react' import { DragElementWrapper, DropTarget, DropTargetCollector, DropTargetConnector, DropTargetMonitor, DropTargetSpec, } from 'react-dnd' import { MeteorCall } from '../../lib/api/methods' import { PubSub } from '../../lib/api/pubsub' import { StatusR...
/** * Wraps a promise in a timeout using promise.race * If the promise is timed out, it rejects and returns 'Timed out' * @param {Promise} promise The promise to time * @param {Number} ms The timeout in ms */ //https://italonascimento.github.io/applying-a-timeout-to-your-promises/ export const timedPromise = <T>(p...
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. * See 'LICENSE' in the project root for license information. * ------------------------------------------------------------------------------------------ */ ...
import React from 'react' import { Dialog, DialogContent, DialogTitle, DialogActions, IconButton, Button, Grid, Switch, Typography, FormControlLabel, TextField, Divider, Tooltip } from '@material-ui/core' import { PhoneRounded as PhoneIcon, ClearRounded as ClearIcon, Delete as DeleteIcon...
import {ChipsetBase, ChipsetConfig, GFX_MAPS, GfxMap, GfxMaps} from './gfx-mapper.constants'; import {GFX_TYPE} from '../heightmap.constants'; import {Point} from '../../../models/cross-code-map'; interface ChipsetMapping extends ChipsetBase { mapping: GfxMaps; } export class GfxMapper { private tileCountX = 0; pr...
<gh_stars>0 import { AfterViewChecked, Component, ElementRef, EventEmitter, forwardRef, Inject, Injector, NgModule, OnDestroy, OnInit, Optional, ViewChild } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormControl } from '@angular/forms'; import { MomentDateAdapter } from '@angular/mat...
<gh_stars>0 /* * Copyright (C) 2017 TypeFox and others. * * 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 */ import { injectable, inject } from "i...
import { EditorNodeDef, EditorRED, EditorWidgetTypedInputType } from 'node-red'; import * as exposeNode from '../../editor/exposenode'; import ha from '../../editor/ha'; import * as haServer from '../../editor/haserver'; import { HassExposedConfig, HassNodeProperties } from '../../editor/types'; declare const RED: Ed...
import Logger from 'src/logger' import groupBy from 'lodash/groupBy' import level from 'level' import merge from 'lodash/merge' import mkdirp from 'mkdirp' import os from 'os' import path from 'path' import spread from 'lodash/spread' import sub from 'subleveldown' import wait from 'src/utils/wait' import { EventEmitte...
import { MakeError, Type } from '@freik/core-utils'; import { Comms, Persistence } from '@freik/elect-main-utils'; import { app, BrowserWindow, Menu, MenuItem, MenuItemConstructorOptions, } from 'electron'; import isDev from 'electron-is-dev'; import { KeyboardEvent } from 'electron/main'; import open from 'o...
<reponame>farfromrefug/ios-sim-portable<gh_stars>0 ///<reference path="./.d.ts"/> "use strict"; import childProcess = require("./child-process"); import * as child_process from "child_process"; import errors = require("./errors"); import common = require("./iphone-simulator-common"); import path = require("path"); im...
<gh_stars>0 import { ethers } from "hardhat"; import { expect } from "chai"; import type { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; import type { OffscriptPayment, IERC20, OffscriptNFT, IERC20Metadata, } from "../typechain-types"; import { IERC20__factory } from "../typechain-types"; impo...
<gh_stars>1-10 import { weaponGeoms } from "./chain-weapon-geom"; import { weaponHeights, weaponDists } from "./chain-weapon-data"; import { CircleChain, unitArrowHeadConfig } from "./chain-weapon-base"; import { UnitSetup } from "../../config/UnitSetup"; import { listenToAnim } from "../../engine/anim-listen"; import ...
<gh_stars>10-100 import { Selection, SimulationNodeDatum, drag, forceCenter, forceLink, forceManyBody, forceSimulation, select, } from "d3" import { CONTAINER_ID } from "./ui-constants" import * as styles from "./vectors.module.css" // missing: // - connect nodes // - drag node // - keys handling // o...
import KeyboardSpacer from '@celo/react-components/components/KeyboardSpacer' import SectionHead from '@celo/react-components/components/SectionHead' import colors from '@celo/react-components/styles/colors' import fontStyles from '@celo/react-components/styles/fonts' import { Address, isValidAddress } from '@celo/util...
import { FaaSContext, IFaaSApplication, IFaaSStarter } from './interface'; import { dirname, join, resolve } from 'path'; import { ContainerLoader, getClassMetadata, IMiddleware, listModule, listPreloadModule, MidwayContainer, MidwayProcessTypeEnum, MidwayRequestContainer, REQUEST_OBJ_CTX_KEY, } from ...
/* eslint-disable no-continue */ import fs from "fs-extra"; import PlaylistDeserializer from "@/libraries/playlist/loader/deserializer/PlaylistDeserializer"; import { // PlaylistBase, PlaylistLocalMap, PlaylistMapImportError, PlaylistRaw, PlaylistRawMap, } from "@/libraries/playlist/PlaylistLocal"; import Bas...
import * as request from "supertest"; import { Note, User, MergeRequest, Change, GitLabCommit, ApprovalsResponse, CommentSuccessResponse, IncorrectPermissionsResponse, } from "../../src/interfaces"; import { mockNote, mockUser, mockMergeRequest, mockChange, mockGitLabCommit, importTestProjec...
import { inspect } from 'util'; import { Dictionary, EntityProperty } from '../typings'; import { MetadataStorage } from '../metadata'; import { QueryBuilderHelper } from './QueryBuilderHelper'; import { Utils } from '../utils'; import { QueryBuilder } from './QueryBuilder'; import { ReferenceType } from '../entity'; i...
<gh_stars>10-100 import { action, computed, runInAction } from "mobx"; import binarySearch from "terriajs-cesium/Source/Core/binarySearch"; import JulianDate from "terriajs-cesium/Source/Core/JulianDate"; import { ChartPoint } from "../Charts/ChartData"; import getChartColorForId from "../Charts/getChartColorForId"; im...
<reponame>ozum/pg-structure<filename>src/types/index.ts<gh_stars>100-1000 /* eslint-disable no-shadow */ import O2MRelation from "../pg-structure/relation/o2m-relation"; import M2ORelation from "../pg-structure/relation/m2o-relation"; import M2MRelation from "../pg-structure/relation/m2m-relation"; export * from "./js...
// Require the libraries import localVarRequest from 'request'; import querystring from 'querystring'; /* The Api class exists to ensure that all the methods available on each of the LUSID APIs show up when using code editors and interactive development environments which have features such as IntelliSense. It contai...
/* eslint-disable */ /* tslint:disable */ // @ts-nocheck import { Components, JSX } from '@bulmil/core'; interface BmSelectProps { /** Control classes */ controlClass?: Components.BmSelect["controlClass"] /** Color */ color?: Components.BmSelect["color"] /** Size */ size?: Components.BmSelect["si...
import {RemoteComponentType} from '@remote-ui/types'; import { ACTION_MOUNT, ACTION_INSERT_CHILD, ACTION_REMOVE_CHILD, ACTION_UPDATE_PROPS, ACTION_UPDATE_TEXT, KIND_ROOT, KIND_COMPONENT, KIND_TEXT, } from './types'; import type { Serialized, RemoteRoot, RemoteText, RemoteChannel, RemoteCompone...
<filename>implementations/sqlite/sqlite-key-value-store.ts // deno-lint-ignore-file no-explicit-any import { assertEquals } from '../../deps/std.ts'; import { DB } from '../../deps/sqlite.ts'; import SQLiteClient from './clients/wasm-sqlite-client.ts'; import KeyValueStore from '../../common/key-value-store.ts'; impo...
// 快捷评教插件 import Vue from 'vue' import { emitDataAnalysisEvent } from '@/plugins/data-analysis' import { getPluginIcon } from '@/helper/getter' import { SUAPlugin } from '@/core/types' import { getRandomComment, collectData, Questionnaire, generateChangePrompt } from './util' import * as template from './templa...
<reponame>gmpersons/pg-api import { Router } from 'express' import format, { ident, literal } from 'pg-format' import SQL from 'sql-template-strings' import { RunQuery } from '../lib/connectionPool' import sql = require('../lib/sql') import { DEFAULT_SYSTEM_SCHEMAS } from '../lib/constants' import { Tables } from '../l...
import { TypeTestData } from './'; const MemberEventTests: TypeTestData = { testEvents: { added: [], }, }; MemberEventTests.testEvents.added = [ { propSets: [ { date: new Date('2020-12-29T01:04:46Z'), private: true, type: 'MemberEvent', verb: 'granted', resu...
import React, { PureComponent } from 'react'; import { Unsubscribable } from 'rxjs'; import { connect, MapStateToProps } from 'react-redux'; import { InspectSubtitle } from './InspectSubtitle'; import { InspectJSONTab } from './InspectJSONTab'; import { QueryInspector } from './QueryInspector'; import { DashboardModel...
/** * Form validation for contact form */ let contactForm = document.querySelector('.contact-form') as HTMLFormElement; let contactFullname = document.querySelector('.contact-fullname') as HTMLInputElement; let contactemail = document.querySelector('.contact-email') as HTMLInputElement; let contactmessage = document...
<reponame>CongTran96/talk import Joi from "joi"; import jwt from "jsonwebtoken"; import jwks, { JwksClient } from "jwks-rsa"; import { isNil } from "lodash"; import { Db } from "mongodb"; import { Strategy as OAuth2Strategy, VerifyCallback } from "passport-oauth2"; import { Strategy } from "passport-strategy"; import ...
import React, { useContext } from "react" import SEO from "../../../../components/layout/seo" import { GroupOfImages, ImageAsLandscape, ImageAsLandscapeOnTheLeft, ImageAsLandscapeOnTheRight, TwoImagesSameSizeOrToGroup, } from "../../../../components/images/layout" import { How, HowLong, Introduction, ...
import {CanvasCanvas} from "./canvasCanvas"; import {Listener} from "./listener"; import {Canvas, CanvasConstructor} from "./svgCanvas"; import {MathUtils, queryParams} from "./utils"; import {Ball} from "./ball"; import {Game, GameAction, GameRenderer, GameUpdater, Vector} from "./game"; export interface BouncingBall...
<reponame>antonycourtney/tad-pkg<gh_stars>0 import * as sqlite3 from "sqlite3"; import * as reltab from "reltab"; import * as aggtree from "../src/aggtree"; import { PathTree } from "../src/PathTree"; import * as reltabSqlite from "reltab-sqlite"; import { textSpanContainsPosition, textSpanContainsTextSpan } from "type...
<gh_stars>1-10 import { ReactNode, StatelessComponent } from 'react' // tslint:disable-line:no-implicit-dependencies import { connect } from 'react-redux' const { setTimeout } = window export interface IFluxStandardAction<TPayload = void> { error?: boolean meta?: object payload?: TPayload type: string } inte...
<filename>e2e/src/app.e2e-spec.ts 'use strict'; // necessary for es6 output in node import { browser, element, by, ElementFinder, ElementArrayFinder } from 'protractor'; import { promise } from 'selenium-webdriver'; const expectedH1 = 'MY NOTES'; const expectedTitle = `${expectedH1}`; const targetNote = { id: 15, tex...
import { EventEmitter, NgZone, OnDestroy, InjectionToken, Injectable } from '@angular/core'; /** * The token used to allow injection of the {@link StorageOptions} interface. For more information visit the * {@link https://angular.io/docs/ts/latest/guide/dependency-injection.html#interface angular2 docs}. */ export l...
import * as React from "react"; import * as ReactDOM from 'react-dom'; import { IDocumentCardPreviewProps, DocumentCard, DocumentCardPreview, DocumentCardTitle, DocumentCardActivity, DocumentCardType, DocumentCardDetails, IDocumentCardLocationStyleProps, IDocumentCardLocationStyles, IDocumentCardStyles } from 'office-u...
<filename>frontend/src/app/pages/albums/list-all/list-all-albums.component.ts<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { Album } from '@core/services/api/albums'; import { ActivatedRoute, Router } from '@angular/router'; import { RefreshService } from '@core/services/auth/refresh/refresh.ser...
/* * Copyright (c) 2021. Witt, Nils * MIT License * * 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, ...
import React, { useEffect, useMemo, useState } from 'react'; import { useTranslation, Trans } from 'react-i18next'; import { FormGroup } from 'app/components/Form/FormGroup'; import { Dialog } from '../../../../containers/Dialog'; import { translations } from '../../../../../locales/i18n'; import { useCanInteract } f...
import axios from 'axios' import { addSocketListener } from './websocket' import { Readable, writable } from 'svelte/store' import { subscribe as subscribeToAuth } from '../stores/auth' import type { Writable } from 'svelte/store' import type { SuportedCurrencies as SC } from '../../../src/libs/currencies' type Svelte...
import {LitElement, html, TemplateResult, CSSResult, css, nothing} from 'lit'; import {customElement, state} from 'lit/decorators.js'; import {classMap} from 'lit/directives/class-map.js'; import {connect} from 'pwa-helpers'; import '@bendera/vscode-webview-elements/dist/vscode-button'; import '@bendera/vscode-webview-...
<reponame>pblanco-dekalabs/rareaf /* eslint-disable no-console */ import {platform_settings as ps} from './platform-conf' import algosdk, {LogicSigAccount} from 'algosdk' import Listing from "./listing"; import { NFT } from "./nft"; import { TagToken} from './tags' import { dummy_addr, get_platform_owner } from './co...
<reponame>alvancamp/tv-automation-package-manager<gh_stars>1-10 import { AccessorOnPackage, PackageContainerOnPackage } from '@sofie-automation/blueprints-integration' import { getAccessorHandle } from '../../../accessorHandlers/accessor' import { prioritizeAccessors } from '../../../lib/lib' import { GenericAccessorHa...
import { Connector, ModelFieldName, PageVisibility, } from "../../backend-integration"; import { BaseSelectorData } from "../../standalone"; import { ForwardedRef, useCallback, useContext, useEffect, useImperativeHandle, useRef, useState, } from "react"; import { shallowCompare } from "../../utils"; import { ...
import { FunctionComponent, useState } from 'react'; import Link from 'next/link'; import { BorderWrapper, Wrapper, ContentWrapper, Title, Text, MilkshakesWrapper, MilkshakeIconWrapper, ExploreButtonWrapper, ExploreButton, } from './community.styles'; import useSWR from 'swr'; impo...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { ImageProps, NativeSyntheticEvent, Platform, StyleProp, StyleSheet, TextInput, TextInputFocusEventData, TextInp...
<filename>src/app/shared/components/charts/gantt-chart/gantt-chart.component.ts // This code was initially made by https://github.com/mfandre import { AfterContentChecked, Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild, }...
<reponame>datagovsg/myinfo-gov-client<filename>src/MyInfoGovClient.class.ts import qs from 'qs' import crypto from 'crypto' import axios, { AxiosResponse } from 'axios' import jose from 'node-jose' import { verify as verifyJwt } from 'jsonwebtoken' import { hasProp, objToSearchParams, sortObjKeys } from './util' import...
import { Component, OnInit, AfterViewInit, ViewChild, ElementRef } from '@angular/core'; import {MatPaginator} from '@angular/material/paginator'; import {MatSort} from '@angular/material/sort'; import {MatTableDataSource} from '@angular/material/table'; import {ModalDirective} from 'ngx-bootstrap/modal'; import {Selec...
<reponame>zhangenming/vue-composable<gh_stars>100-1000 import { isObject, isPromise, isBoolean, RefTyped, wrap, unwrap, NO_OP, } from "../utils"; import { ref, Ref, watch, computed, reactive, UnwrapRef } from "../api"; type ValidatorFunc<T, TContext = any> = ( model: T, ctx: TContext ) => boolean | P...
import fs from 'fs' import { ImpactValue } from 'axe-core' import { AUDIT_FOLDER } from './_constants' import { FeatureViolationSummaryReport, RouteReport, RouteViolationSummaryReport, UniqueViolation, UniqueViolationNode, ViolationOverview, ViolationTally } from '../lumberjack.types' const violationGe...
import IOptions from "@ungate/plugininf/lib/db/IOptions"; import OracleDB from "@ungate/plugininf/lib/db/oracle"; import BreakException from "@ungate/plugininf/lib/errors/BreakException"; import ErrorException from "@ungate/plugininf/lib/errors/ErrorException"; import ErrorGate from "@ungate/plugininf/lib/errors/ErrorG...
<gh_stars>0 /* eslint-disable eqeqeq */ import { SVG_NS, DOM_PROPS_DIRECTIVES, insertDom, replaceDom, removeDom, getDomNode, getNextSibling, mountAttributes, mountDirectives, patchDirectives, unmountDirectives, patchAttributes, getParentNode, } from './dom'; import { isEmpty, isLeaf, isE...
import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { createStyles, Theme, makeStyles } from '@material-ui/core/styles'; import { VariableSizeList as List } from 'react-window'; import AutoSizer from 'react-virtualized-auto-sizer'; import { Skeleton } from '@material-ui/lab'; import { Box...
<filename>packages/browser-router/src/browser-router.ts import {Router, RouterOptions, normalizeURL, stringifyURL} from '@layr/router'; import {PlainObject} from 'core-helpers'; import debounce from 'lodash/debounce'; declare global { interface Function { Link: (props: {params?: PlainObject; hash?: string} & Pla...
<gh_stars>10-100 /** * * Copyright (c) 2020 <NAME> * * 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...
<reponame>T-Hook/Trackerhook<gh_stars>0 import { app, ipcMain, screen } from 'electron'; import TrackingController from "../modules/tracking/controllers/tracking.ctrl"; const sharp = require('sharp'); const screenshot = require('screenshot-desktop'); const Store = require('electron-store'); const store = new Store(); ...
<reponame>casual-simulation/casualos import Vue from 'vue'; import Component from 'vue-class-component'; import { Inject, Watch, Prop } from 'vue-property-decorator'; import { Bot, BotCalculationContext, calculateFormattedBotValue, calculateBotValue, isFormula, BotLabelAlignment, getBotLabel...
<reponame>dino-absoluto/documenter-js /** * @author Dino <<EMAIL>> * @license * Copyright 2019 Dino <<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.apach...
import React from 'react'; import { connect } from 'react-redux'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Row, Col, Label } from 'reactstrap'; import { AvFeedback, AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation'; // tslint:disable-next-line:no-unused-vari...
/** * Contains the [[AccessGroups]] * and [[AccessGroupsOptions]] classes * @packageDocumentation */ import { fetcher, IndexedFormula, NamedNode, sym } from 'rdflib' import { ACLbyCombination, readACL } from './acl' import * as widgets from '../widgets' import * as ns from '../ns' import { AccessController } from ...
import React, { useCallback, useRef, useState, useEffect, ChangeEvent, } from 'react'; import { Form } from '@unform/web'; import { FormHandles } from '@unform/core'; import * as Yup from 'yup'; import { FiCamera } from 'react-icons/fi'; import { v4 as uuidv4 } from 'uuid'; import Skeleton, { SkeletonTheme } ...
<reponame>Derpspace1/restream-layouts // source: https://github.com/TreZc0/kiio-podcast // TODO refactor this /* eslint-disable @typescript-eslint/no-use-before-define, no-inner-declarations */ // Imports import * as Discord from 'discord.js'; import * as Voice from '@discordjs/voice'; import {Readable} from 'stream'...
/** * @File : Label.ts * @Author : AlchemyZJK (<EMAIL>) * @Date : 8/12/2019, 7:30:44 PM * @Description: */ import * as Sein from 'seinjs'; import * as React from 'react'; import {IContainerPropTypes, ContainerElement} from './Container'; import Material from '../materials/GUIMaterial'; import {IUpdatePayload...
import clsx from "clsx" import { differenceInDays, format, formatDistanceToNowStrict } from "date-fns" import DocusaurusHead from "@docusaurus/Head" import useDocusaurusContext from "@docusaurus/useDocusaurusContext" import { usePluginData } from "@docusaurus/useGlobalData" import React, { ReactNode, useEffect, useStat...
import { CompositeNavigationProp, RouteProp } from '@react-navigation/core'; import { StackNavigationProp } from '@react-navigation/stack'; import { FirebaseRecaptchaVerifierModal } from 'expo-firebase-recaptcha'; import firebase from 'firebase'; import React from 'react'; import { ActivityIndicator, Text, View } from ...
import { Component, Input, OnChanges, ViewChild, ElementRef, SimpleChanges, OnInit } from '@angular/core'; import * as d3 from 'd3'; import { DayPercentage } from 'app/entities/desktop/desktop.model'; export interface MarginObject { top: number; bottom: number; right: number; left: number; } @Component({ ...
import assert from 'assert'; import { CKBIndexerClient } from '@force-bridge/ckb-indexer-client'; import { Account } from '@force-bridge/x/dist/ckb/model/accounts'; import { ChainType, EthAsset } from '@force-bridge/x/dist/ckb/model/asset'; import { IndexerCollector } from '@force-bridge/x/dist/ckb/tx-helper/collector'...
import * as React from 'react'; import PropTypes from 'prop-types'; import { DataNode, IconType, Key, NodeElement, Entity } from './interface'; import { TreeNodeProps } from './TreeNode'; interface CheckInfo { event: 'check'; node: NodeElement; checked: boolean; nativeEvent: MouseEvent; checkedNodes...
import { types } from '@babel/core'; import * as CSS from 'csstype'; import dedent from 'dedent'; import json5 from 'json5'; import { format } from 'prettier/standalone'; import { babelTransformCode } from '../helpers/babel-transform'; import traverse from 'traverse'; import isChildren from '../helpers/is-children'; im...
<reponame>DarkWorldsArtist/oldschoolbot<gh_stars>0 import { reduceNumByPercent, Time } from 'e'; import { CommandStore, KlasaMessage } from 'klasa'; import { Bank } from 'oldschooljs'; import { SkillsEnum } from 'oldschooljs/dist/constants'; import { userhasDiaryTier, WesternProv } from '../../lib/diaries'; import { m...
// import { transform } from "@babel/core" // import * as consolee from 'consolee' const isColor = (color: string) => { const vsColors = [ 'primary', 'secondary', 'success', 'danger', 'warning', 'dark', 'light', 'warn', // social colors 'facebook', 'twitter', 'youtube', 'pinterest', 'lin...
<gh_stars>100-1000 //import * as vscode from "vscode"; import { debug, DebugConsole, DebugSessionCustomEvent, ExtensionContext, ProgressLocation, window } from "vscode"; import { TotvsConfigurationProvider } from "./TotvsConfigurationProvider"; import { TotvsConfigurationTdsReplayProvider } from "./TotvsConfigurationTd...
import { propertyIsDefined } from '@sourcegraph/codeintellify/lib/helpers' import * as React from 'react' import { Alert, Badge, Button, Card, CardBody, CardHeader, Col, FormGroup, FormText, Input, InputGroup, ListGroupItemHeading, Row, } from 'reactstrap' import { of...
/** * A {@link OptOperator} that is optimal for only the current layer being * rearranged. * * @module */ import { Model, Solve } from "javascript-lp-solver"; import { TwolayerOperator } from "."; import { length } from "../../iters"; import { def } from "../../utils"; import { SugiNode } from "../utils"; /** * ...
import * as PIXI from './lib/pixi'; const app = new PIXI.Application(); const maze = { textures: {} as any, width: -1, height: -1, cw: -1, ch: -1, scale: 0.04, array2d: [] as any, brick2d: [] as any, exit: [[0, 0], [0, 1]], init() { return new Promise(res => { ...
<gh_stars>10-100 import loadJsonFile from 'load-json-file'; import npa from 'npm-package-arg'; import npmlog from 'npmlog'; import os from 'os'; import path from 'path'; import writePkg from 'write-pkg'; import { CommandType, NpaResolveResult, RawManifest } from './models'; // symbol used to 'hide' internal state con...
/** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
import Graph, { MultiGraph } from "graphology"; import { dfsFromNode } from "graphology-traversal"; import type { Attributes } from "graphology-types"; import { info } from "loglevel"; import type { App } from "obsidian"; import type BCPlugin from "../../main"; import { BC_I_REFLEXIVE, BC_ORDER, blankRealNImplied...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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, inclu...
import { Id, Params } from "@feathersjs/feathers"; import { ServiceSwaggerAddon, ServiceSwaggerOptions, } from "feathers-swagger/types"; import { Application } from "../../declarations"; import { Claim } from "../../models/credential"; import { CredDefServiceResponse } from "../../models/credential-definition"; imp...
import { Model } from "./Model"; import { Basics } from './Basics'; import * as _ from "lodash"; import iDBAdapter from "./iDBAdapter"; class DataCommunicator<T extends Model> { protected tableName: string; //Ndak perlu underscore, karena ini DataCommunicator protected PK: string[]; protected hasSerial: boolean...
import { Component, ElementRef, NgZone, Input, OnDestroy, ChangeDetectionStrategy, Inject, ViewChild } from '@angular/core'; import { normalizePassiveListenerOptions } from '@angular/cdk/platform'; import { Style, WithStyles, StyleRenderer, lyl } from '@alyle/ui'; import { STYLES, LyImageCropper } from './image-cropper...
/* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { interaction, Renderer } from "pixi.js"; import { DDiagramBase, DDiagramBaseController, DDiagramBaseOptions, DDiagramBasePieceController, DThemeDiagramBase } from "./d-diagram-base"; import { DDiagramCanvas, DDiagramCa...
import { server } from "../../server"; /* Big thanks to FP(FunPoster/system2k) for converting eldit file extension .pxr to Node JS */ var fs = require("fs"); //var config = require() var database_path = __dirname + "/chunkdata/"; var pchunksPath = "pchunks.bin"; var propsPath = "props.txt"; var pxrPath = "r.{x}.{y}....
<reponame>NiFNi/Nault import { Injectable } from '@angular/core'; import * as blake from 'blakejs'; import {BigNumber} from 'bignumber.js'; import * as nanocurrency from 'nanocurrency'; const nacl = window['nacl']; @Injectable() export class UtilService { constructor() { } hex = { toUint4: hexToUint4, ...
import React from 'react'; import {Layout, Text} from '../../../@libs/elsa-ui/components'; import {Alert, Pressable, View, ScrollView} from 'react-native'; import { convertPatientForElsa, fetchFromElsaLambda, getDiscretized, normalValueDiscretization, } from '../../helpers/context/assessment'; import {properAge...
// Copyright 2020 OpenStax Poland // Licensed under the MIT license. See LICENSE file in the project root for // full license text. import { Counter, Instance, Instances, Origin } from './interfaces' /** Symbol used to associate a node with it's virtual ::before child */ const BEFORE = Symbol('::before') /** Roots o...
import fs from "fs"; import { merge } from "lodash"; import path from "path"; import { promisify } from "util"; import { getLocalNodeModulePath } from "../helpers/dependencyPaths"; import { PackageJSONConfig } from "./PackageJSONConfig"; import { Rearguard } from "./Rearguard"; const dependenciesNotCreatedWithRearguar...
import { Storage as Types } from '@requestnetwork/types'; import Utils from '@requestnetwork/utils'; import * as artifactsUtils from './artifacts-utils'; import * as config from './config'; import EthereumBlocks from './ethereum-blocks'; const web3Eth = require('web3-eth'); const bigNumber: any = require('bn.js'); /...
<reponame>vmk1vmk/tslint /** * @license * Copyright 2013 Palantir Technologies, 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...
<filename>src/neuroglancer/layer_panel.ts /** * @license * Copyright 2016 Google 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 ...
<reponame>lze3/fivem<filename>ext/sdk/resources/sdk-root/personality-theia/fxdk-project/src/browser/rebindWorkspaceService.ts import { inject, postConstruct, injectable, interfaces } from 'inversify'; import { WorkspaceService, WorkspaceInput } from '@theia/workspace/lib/browser'; import URI from '@theia/core/lib/com...
<filename>src/operators/index.d.ts export type UnaryFunction<T, S = void> = (arg: T) => S; export type OperatorReturningUnary<T, R> = (arg: T) => OperatorFn<T, R>; export type OperatorFn<T, R> = (next: UnaryFunction<R>) => OperatorReturningUnary<T, R> type Comparator<T = any> = (a: T, b: T) => boolean; type pipe<S> =...