text
stringlengths
3.08k
15.5k
<gh_stars>1-10 import { Router } from 'express'; import { IProduct, ProductType, IUser } from '../interfaces'; import { IProductDocument, Product, Query, ICommentDocument, Comment, IUserDocument, User, CommentData, ProductData } from '../models'; import { Status, NotFound, ServerError, BadRequest, Ok ...
<gh_stars>0 declare var Papa: any; const FIELD_DATE_STR = "fecha"; const FIELD_HOUR_STR = "hora"; const FIELD_PRODUCT_STR = "producto"; const FIELD_ID_STR = "isin"; const FIELD_NUM_STR = "titulos"; const FIELD_PRICE_STR = "precio"; const FIELD_TOTAL_STR = "total"; const EXPECTED_FIELDS = [ FIELD_DATE...
<reponame>fabiofortkamp/fatomrc<gh_stars>1-10 import { ZeroArgsExpander } from "./expander"; export declare const cyrillicUnicodeChart: { "CYRF": string; "CYRII": string; "CYROMEGA": string; "CYRG": string; "cyrkvcrs": string; "cyryo": string; "CYRH": string; "CYRZHDSC": string; "cyr...
<gh_stars>1-10 /* * 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 * as os from 'os'; import *...
/** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2021 <NAME> <<EMAIL>> */ import { ElementValidatedEvent, ValidatorValidatedEvent } from '../core/Core'; import Plugin from '../core/Plugin'; import classSet from '../utils/classSet'; import { IconPlacedEvent ...
<filename>internal/tsc_wrapped/compiler_host.d.ts<gh_stars>0 import * as tsickle from 'tsickle'; import * as ts from 'typescript'; import { FileLoader } from './cache'; import { BazelOptions } from './tsconfig'; export declare type ModuleResolver = (moduleName: string, containingFile: string, compilerOptions: ts.Compil...
<reponame>sigle/sigle<filename>server/src/api/modules/analytics/historical.ts import { FastifyInstance } from 'fastify'; import { addDays, addMonths, differenceInMonths, format, isBefore, isValid, parse, } from 'date-fns'; import { maxFathomFromDate, getBucketUrl, getPublicStories } from './utils'; import...
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient.ts"; import { DescribeAccountCustomizationRequest, DescribeAccountCustomizationResponse } from "../models/models_0.ts"; import { deserializeAws_restJson1DescribeAccountCustomizationCommand, serializeAws_restJs...
import React from 'react'; import HeadingLevelTwo from '../../common/headings/heading-level-two'; import Button from '../../common/buttons/button'; import SectionDropdown from '../../common/section-dropdown'; import DataRequest from './data-request'; import styles from './styles.module.scss'; import Paper from '../../c...
<filename>packages/yoteams-build-core/src/manifest.ts<gh_stars>100-1000 // Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. // SPDX-License-Identifier: MIT import replace from "gulp-token-replace"; import axios from "axios"; import PluginError from "plugin-error"; import GulpClient from "g...
import { Filter } from './parser' import { SearchSuggestion } from '../../graphql/schema' import { FilterType, isNegatedFilter, resolveNegatedFilter, NegatableFilter, isNegatableFilter, isFilterType, } from '../interactive/util' import { Omit } from 'utility-types' interface BaseFilterDefinitio...
<reponame>VibhakarPathak/aspnetcore-angular2-universal /* ********* TEMPORARILY HERE ************** * - will be on npm soon - * import { ngAspnetCoreEngine } from `@ng-universal/ng-aspnetcore-engine`; */ import { Type, NgModuleFactory, NgModuleRef, ApplicationRef, Provider, CompilerFactory, Compiler } from '@ang...
<filename>packages/ngtools/webpack/src/transformers/replace_resources.ts /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; // emit h...
<reponame>Grukz/cypress import _ from 'lodash' import Bluebird from 'bluebird' import contextMenu from 'electron-context-menu' import { BrowserWindow } from 'electron' import Debug from 'debug' import cwd from '../cwd' import savedState from '../saved_state' const cyDesktop = require('@packages/desktop-gui') const deb...
import { Paper, List, ListItem, ListItemIcon, ListItemText, Collapse, CircularProgress, Button, } from '@material-ui/core'; import makeStyles from '@material-ui/core/styles/makeStyles'; import { ExpandLess, ExpandMore, Inbox as InboxIcon } from '@material-ui/icons'; import crossFetch from 'cross-fetch';...
<reponame>ryanardo/conversationai-moderator<filename>packages/backend-api/src/test/fixture.ts /* Copyright 2019 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...
/** * @license * Copyright 2017 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 * * Unless required by applicable law or...
<reponame>abhey-sujith/mde-gameserver import { Room, Client } from "colyseus"; import {GameState} from "./schema/GameState"; import { Q ,QandACount} from './schema/constants' const LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; export class MyRoom extends Room { maxClients = 20; async onCreate (options: any) { if (...
<reponame>jnf27170/factorio-blueprint-editor<gh_stars>0 import keyboardJS from 'keyboardjs' class Action { readonly defaultKeyCombo: string private m_active = true private m_keyCombo: string private handlers: Array<{ press(e?: keyboardJS.KeyEvent): void; release(e?: keyboardJS.KeyEven...
/// <reference types="node" /> import { ResourcePreset } from '../../../../yandex/cloud/ydb/v1/resource_preset'; import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/mi...
<gh_stars>1-10 // https://styled-system.com/api/#flexbox import * as CSS from 'csstype'; import {ResponsiveValue, TLengthStyledSystem} from 'styled-system'; /** * The CSS align-items property sets the align-self value on all direct children as a group. The align-self * property sets the alignment of an item within i...
import { Channel, Presence, Socket } from 'phoenix'; import Vue from 'vue'; import { arrayRemove } from '../../../utils/array'; import { TabLeader } from '../../../utils/tab-leader'; import { ContentFocus } from '../../../_common/content-focus/content-focus.service'; import { ChatClient, isInChatRoom, leaveChatRoom,...
export const USER_ID_NAME = "APP_RECOMMENER_USERID"; // export const API_URL = // "https://7y65j8tz9j.execute-api.cn-north-1.amazonaws.com.cn/prod"; export const API_URL = ""; // export const API_URL = // "http://a6500b130ef7c45eb96f1727f55bafb6-1149103410.ap-southeast-1.elb.amazonaws.com"; export const IMAGE_PATH =...
import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { RegisterComponent } from './components/home/_dialogs/register/register.component'; import { PasswordResetComponent } from './components/home/_dialogs/password-reset/password-reset.component'; import { AppRoutingModule } f...
import MapView from '@arcgis/core/views/MapView'; import Point from '@arcgis/core/geometry/Point'; import { geometryFns } from 'helper-toolkit-ts'; import { IWaybackItem } from '../../types'; // import { loadModules } from 'esri-loader'; type TileInfo = { row: number; column: number; level: number; /...
<gh_stars>0 import { flip } from "../../Data/Function" import { fmap, fmapF } from "../../Data/Functor" import { cons, fromArray, List } from "../../Data/List" import { join, mapMaybe, Maybe } from "../../Data/Maybe" import { elems, lookup } from "../../Data/OrderedMap" import { Record } from "../../Data/Record" import...
import { SnykDeltaOutput } from 'snyk-delta'; import { ghDetails, ghPrCommentsStatus } from './types'; import axios from 'axios'; import * as _ from 'lodash'; import * as debugLib from 'debug'; const debug = debugLib('snyk:generate-data-script'); const formatPRComment = (snykDeltaResults: SnykDeltaOutput, commitNb: st...
<gh_stars>0 // https://github.com/s22h/router.ts export interface CanActivate { canActivate(): boolean; } export class Route { public path: string; public callback: CallableFunction; constructor(path: string, callback: CallableFunction) { this.path = path; this.callback = callback; } } export enum Route...
import { Button, Card, Colors, H5, Intent } from '@blueprintjs/core'; import { CreateWarehouseCredentials, DbtProjectConfig, friendlyName, ProjectType, } from 'common'; import React, { FC, useEffect } from 'react'; import { FieldErrors, useForm } from 'react-hook-form'; import { SubmitErrorHandler } fro...
<gh_stars>1-10 import { CommandStore, KlasaMessage } from 'klasa'; import { Activity, Time } from '../../lib/constants'; import { minionNotBusy, requiresMinion } from '../../lib/minions/decorators'; import { ClientSettings } from '../../lib/settings/types/ClientSettings'; import { UserSettings } from '../../lib/settin...
<reponame>decentraland-scenes/Soho-Plaza export function followingEye() { let krakenEye = new Entity() krakenEye.addComponent( new Transform({ position: new Vector3(181.6, 24.5, 198.8), rotation: Quaternion.Zero(), }) ) krakenEye.addComponent(new GLTFShape('models/eye.glb')) engine.addEn...
<reponame>ruppysuppy/playwright /** * 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 r...
<filename>packages/stitching-directives/src/federationToStitchingSDL.ts<gh_stars>0 // Taken from https://github.com/gmac/federation-to-stitching-sdl/blob/main/index.js import { print, DefinitionNode, DirectiveNode, InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode, Kind, ObjectTypeDefinitionNode, ...
<filename>src/common/util/util.ts import { Logger } from '../internal/logging/logger.js'; import { timeout } from './timeout.js'; /** * Error with arbitrary `extra` data attached, for debugging. * The extra data is omitted if not running the test in debug mode (`?debug=1`). */ export class ErrorWithExtra extends E...
<filename>frontend/src/scenes/retention/retentionTableLogic.ts import { kea } from 'kea' import { router } from 'kea-router' import api from 'lib/api' import { toParams, objectsEqual } from 'lib/utils' import { ViewType, insightLogic } from 'scenes/insights/insightLogic' import { insightHistoryLogic } from 'scenes/insi...
<filename>libs/tools/examples-tools/src/metadata.ts /** * @license * Copyright 2020 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
import { extensions } from '../extensions/'; extensions.applyDateExtensions(); export class Log implements ILog { public colors = ConsoleColors; public isBrowser: boolean; public isDebug: boolean = false; public isShowStacktrace: boolean = false; public isShowTime: boolean; public isShowPrefix:...
<reponame>jopemachine/arvis-core // tslint:disable: no-eval import { EventEmitter } from 'events'; import execa from 'execa'; import _ from 'lodash'; import parseJson from 'parse-json'; import { compareTwoStrings } from 'string-similarity'; import { getEnvs, log, LogType } from '../config'; import { getShellPathsEnv } ...
<reponame>alshain/vscode-markdown 'use strict' import { ExtensionContext, Range, TextEditor, window, workspace, Position } from "vscode"; import { isMdEditor, isInFencedCodeBlock } from "./util"; let decorTypes = { "baseColor": window.createTextEditorDecorationType({ "dark": { "color": "#EEFFFF" }, ...
/* How I did this migrations (previous ones very similar): 1- create db-v4.sql 2- add `4` to `makeSchema.js` 3- run `node makeSchema.js` 4- copy the old `v2-to-v3.ts` to `v3-to-v4.ts` and rewrite it 5- run `node migrations/v3-to-v4.js` (thanks VS Code watch) */ import assert from 'assert'; import sqlite3 from 'better-...
import * as React from 'react' import { RevisionDetailState } from '@/reducers/apps/revisions' import { AppRevisionModel, MediaModel, ScopeModel, AppDetailModel } from '@reapit/foundations-ts-definitions' import DiffMedia from '@/components/ui/diff-media' import DiffCheckbox from '../diff-checkbox' import DiffViewer fr...
<filename>resources/oidc-provider-app/adapters/adapter.ts // This adapter is written in Typescript. If you want to get Javascript version without compiling it with tsc, paste this code here: https://babeljs.io/en/repl (choose Typescript preset) // The filename is suffixed with 'gsi' because this adapter makes use of G...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; // tslint:disable:no-require-imports no-var-requires no-any // Always place at the top, to ensure other modules are imported first. require('./common/exitCIAfterTestReporter'); if ((Reflect as any).metadata ...
<reponame>zwaldowski/cspell import { SpellingDictionaryOptions } from '.'; import { DictionaryInformation } from '..'; import { createFailedToLoadDictionary, createSpellingDictionary } from './createSpellingDictionary'; import { SpellingDictionaryLoadError } from './SpellingDictionaryError'; describe('Validate createS...
<reponame>philiplackmaker/portfolio-2018 const OPERATOR = { at: 'at', not: 'not', missing: 'missing', has: 'has', any: 'any', in: 'in', fulltext: 'fulltext', similar: 'similar', numberGt: 'number.gt', numberLt: 'number.lt', numberInRange: 'number.inRange', dateBefore: 'date.before', dateAfter:...
//============== util模块========================= //Copyright 2018 何镇汐 //Licensed under the MIT license //================================================ import { NgModule, Injector } from '@angular/core'; //Angular模块 import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import ...
import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { useRouteMatch, Link } from 'react-router-dom' import { selectAllPosts, editPost, delPost, postDeleted, setSelectedId, fetchPosts, selectPostById, selectOne, unSelectOne, selectAll, unSelectAll, pageUpdated } from './p...
<gh_stars>1-10 /* MIT License Copyright (c) 2021 <NAME> 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, p...
<reponame>tjyang15/min-cli import * as fs from 'fs-extra' import * as path from 'path' import * as _ from 'lodash' import { WxSFMScript, Request } from '../class' import { config, dom, log, LogType } from '../util' type StyleType = 'Less' | 'Pcss' export namespace Global { export interface StyleConfig { [key: ...
<reponame>jclaessens97/School-Portfolio import { delay } from 'rxjs/operators'; import { ActivatedRoute, Router } from '@angular/router'; import {Component, EventEmitter, Inject, OnInit, Output} from '@angular/core'; import {LobbyDetails} from '../../models/LobbyDetails'; import {NoteService} from '../../services/note....
import * as Util from '@guildedjs/common'; import type { APIGetCurrentUser } from '@guildedjs/guilded-api-typings'; import { EventEmitter } from 'events'; import { RestManager } from '../rest/RestManager'; import type { events } from '../typings/WebSocketEvents'; import { ClientGatewayHandler } from '../ws/ClientGatew...
<gh_stars>0 import _ from "lodash"; import { BoomSeries, IBoomCellDetails, IBoomTable, IBoomTableTransformationOptions } from "./boom/index"; import { BoomPattern, replaceTokens } from './boom/index'; import { multiValueShowPriorities, columnSortTypes } from './config'; import { BoomDriver } from './boom/BoomDriver'; ...
<reponame>mittalyashu/vue-styleguidist<filename>packages/vue-docgen-api/src/script-handlers/propHandler.ts import * as bt from '@babel/types' import { NodePath } from 'ast-types' import recast from 'recast' import Documentation, { BlockTag, DocBlockTags, PropDescriptor } from '../Documentation' import getDocblock from ...
import { Component, OnInit } from "@angular/core"; import { Router } from "@angular/router"; import { faUser, faLock } from "@fortawesome/free-solid-svg-icons"; import { Session } from "../models/session.model"; import { MusicStylesService } from "../services/music-styles.service"; import { StorageService } from "../se...
/* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
import { isArray, isObject, dasherize, camelize, deepSet, Dict } from '@orbit/utils'; import { Schema, KeyMap, Record, RecordIdentity, RecordRelationship } from '@orbit/data'; import { Resource, ResourceIdentity, ResourceHasManyRelationship, ResourceHasOneRelationship, ResourceRelationship, JSONAP...
<filename>Tasks/NuGetCommand/nugetpack.ts<gh_stars>0 import * as tl from "vsts-task-lib/task"; import * as nutil from "nuget-task-common/Utility"; import nuGetGetter = require("nuget-task-common/NuGetToolGetter"); import * as path from "path"; import * as ngToolRunner from "nuget-task-common/NuGetToolRunner2"; import *...
<filename>tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts // @strict: true // @target: esnext function f1(obj: { a: number, b: 0 | 1, c: string }, k0: 'a', k1: 'a' | 'b', k2: 'a' | 'b' | 'c') { obj[k0] = 1; obj[k0] = 2; obj[k0] = 'x'; // Error obj[k1] = 1; obj[k1] = 2; // ...
import {Buffer, copyToTexture, cloneTextureFrom} from '@luma.gl/gltools'; import {Transform} from '@luma.gl/gltools'; import GL from '@luma.gl/constants'; import { HISTOPYRAMID_BUILD_VS_UTILS, HISTOPYRAMID_TRAVERSAL_UTILS, HISTOPYRAMID_BASE_BUILD_VS, HISTOPYRAMID_BUILD_VS, HISTOPYRAMID_TRAVERSAL_VS } from './...
import * as _ from "lodash"; import { print2D, generate2DArray } from "./common"; let gridSize = 300; function parseInput(input) { return input.trim().split('\n').map(line => parseInt(line)); } function calculateCell(x: number, y: number, serial: number): number { const rackID = x + 10; let powerLevel = ...
<reponame>srijani07/walmart-marketplace-api import { Configuration } from './apis/configuration'; import { AuthenticationApi, InlineResponse200 } from './apis/auth'; import { v4 as uuidv4 } from 'uuid'; import { AxiosResponse } from 'axios'; import { apiInterceptor } from './util/interceptors'; import { defaultParams, ...
<filename>src/BloomBrowserUI/bookEdit/js/bloomVideo.ts import "../../lib/jquery.resize"; // makes jquery resize work on all elements import { BloomApi } from "../../utils/bloomApi"; // The code in this file supports operations on video panels in custom pages (and potentially elsewhere). // It sets things up for the bu...
<gh_stars>10-100 import { Request, Response } from 'express' import log4js from 'log4js' import fetch, { Response as NodeFetchResponse } from 'node-fetch' import { asArray } from '../../../utils/ControllerUtils' import { SmartContentServerFetcher } from '../../../utils/SmartContentServerFetcher' const LOGGER = log4js....
import { useState, ChangeEvent } from "react"; import { Avatar, Center, chakra, Stack, Box, SimpleGrid, useColorModeValue, } from "@chakra-ui/react"; import type { GetStaticPaths, GetStaticProps } from "next"; import { useDebounce } from "use-debounce"; import { useRouter } from "next/router"; import { Ne...
import 'mocha'; import { expect } from 'chai'; import Big from 'big.js'; import { Network } from '../../../../network/network'; import { CroSDK } from '../../../../core/cro'; import { Units } from '../../../../coin/coin'; import { fuzzyDescribe } from '../../../../test/mocha-fuzzy/suite'; import { HDKey } from '../../...
import System from './System'; import {JsonTypes} from './interfaces/Types'; import {combineTopic, parseValue, splitTopicId} from './helpers/helpers'; import IndexedEvents from './helpers/IndexedEvents'; import RemoteCall from './helpers/remoteCall/RemoteCall'; import RemoteCallMessage from './interfaces/RemoteCallMess...
import { useRouter } from 'next/router' import { NextSeo } from 'next-seo' import getConfig from 'next/config' import styled from 'styled-components' import IFrame from '../../pageComponents/shared/IFrame' import RelatedContent from '../../pageComponents/shared/RelatedContent' import Lead from '../../pageComponents/sha...
import { Dictionary } from '@ngrx/entity'; import { Action, combineReducers, createFeatureSelector, createSelector } from '@ngrx/store'; import * as fromRoot from 'app/reducers'; import { Pairing, Player, Round } from 'app/shared'; import * as fromPairings from 'app/swiss/reducers/pairings.reducer'; import * as fromPla...
/** * @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 * * Unless required by...
<filename>clients/client-personalize/commands/CreateCampaignCommand.ts<gh_stars>10-100 import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient"; import { CreateCampaignRequest, CreateCampaignResponse } from "../models/models_0"; import { deserializeAws_json1_1Creat...
<gh_stars>1-10 import Koa, { Context, Next } from "koa"; import Router from "koa-router"; import bodyParser from "koa-bodyparser"; import cors from "@koa/cors"; import fs from "fs"; import path from "path"; import SpotifyWebApi from "spotify-web-api-node"; interface ISpotifyToken { accessToken: string | null; refr...
import React, { ReactNode } from 'react'; import { SlatePrism, TypeaheadOutput, SuggestionsState, QueryField, TypeaheadInput, BracesPlugin, DOMUtil, Icon, } from '@grafana/ui'; import { Plugin, Node } from 'slate'; import { LokiLabelBrowser } from './LokiLabelBrowser'; import { QueryEditorProps } from '...
import { CompletablePromise } from "./CompletablePromise"; class BufferClosedError extends Error { constructor() { super("buffer is closed"); } } /** * Arbitrary sync and async ring buffer. ring buffers provide more effective storage for fast changed data as it does * not allocate dynamic data except for a...
<reponame>gluu-oicr/dockstore-ui2 /* * Copyright 2018 OICR * * 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 * * ...
// ------------------------------------------------------------------------------ // // class: Foodshow // author: 喵大斯( h5devs.com/h5devs.net ) // created: 2017/7/26 // copyright (c) 2015 喵大斯( <EMAIL> ) // // ------------------------------------------------------------------------------ import * as React from 'react'; ...
// Copyright 2017-2022 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; import type { QueryableStorageEntry } from '@polkadot/api-base/types'; import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polk...
import { BaseInput, Box, Button, Icon, LoadingSpinner, Text } from '@tlon/indigo-react'; import { hasProvider } from 'oembed-parser'; import React, { useState, useEffect, useCallback } from 'react'; import { parsePermalink, permalinkToReference } from '~/logic/lib/permalinks'; import { StatelessUrlInput } f...
/* * Copyright 2021 ThoughtWorks, 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 applicable law or agr...
// Copyright 2018 Verily Life Sciences Inc. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import {SecurityContext} from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; import * as Color from 'color'; import {DateTime} from 'luxon'; ...
import { app, BrowserWindow, ipcMain } from 'electron'; import * as path from 'path'; import { SettingsService } from './settings/settings.service'; import { PartService } from './parts/part.service'; import { Part } from './part/part'; import { LibraryService } from './library/library.service'; import { fs } from './f...
/* eslint-disable no-console */ import type { DraftBlockType } from 'draft-js'; import { pipe } from 'fp-ts/function'; import { merge } from 'lodash'; import type { Node, RichContent, TextNodeStyle } from 'ricos-schema'; import { Node_Type } from 'ricos-schema'; import { v4 as uuid } from 'uuid'; import { RICOS_NODE_TY...
import React from "react"; import { addons, types } from "@storybook/addons"; import promiseRetry from "promise-retry"; import { ADDON_ID, ANIMA_ROOT_ID, EXPORT_ALL_STORIES, EXPORT_END, EXPORT_PROGRESS, EXPORT_SINGLE_STORY, EXPORT_START, GET_AUTH, SET_AUTH, } from "./constants"; import { ExportButton...
import * as React from 'react'; import {SPACE} from './utils/key-codes'; import {useControlProps} from './form-context'; import {createUseStyles} from './jss'; import Inline from './inline'; import {Text3} from './text'; import {useAriaId, useTheme} from './hooks'; import classnames from 'classnames'; import {getPrefix...
import { XE, XmlError } from "xml-core"; import { Convert, XmlBase64Converter } from "xml-core"; import { XmlAttribute, XmlChildElement, XmlElement, XmlObject } from "xml-core"; import { Application } from "../../application"; import { XmlSignature } from "../index"; import { KeyInfoClause } from "./key_info_clause"; ...
// LICENSE : MIT "use strict"; import { TextlintRuleErrorImpl } from "../context/TextlintRuleErrorImpl"; import { PromiseEventEmitter } from "./promise-event-emitter"; import SourceLocation from "../core/source-location"; import timing from "../util/timing"; import MessageType from "../shared/type/MessageType"; import ...
<filename>packages/botonic-pulumi/src/aws/rest-server.ts import * as aws from '@pulumi/aws' import * as pulumi from '@pulumi/pulumi' import { existsSync } from 'fs' import { BOT_EXECUTOR_LAMBDA_NAME, REST_SERVER_ENDPOINT_PATH_NAME, REST_SERVER_PATH, SENDER_LAMBDA_NAME, } from '..' import { AWSComponentResource...
import { BrowserWindow, Menu, Tray,Notification } from "electron"; import { ipcMain } from "electron"; const path = require("path"); const open = require('open'); import { MonitoringService } from "./service"; const notifier = require('node-notifier'); export default class Main { static title:string; static mainWin...
<reponame>AnnaHilverling/siibra-explorer import { filter } from 'rxjs/operators'; export { recursiveFindRegionWithLabelIndexId } from 'src/util/fn' export { getNgIds } from 'src/util/fn' import { ActionInterface as NgViewerActionInterface, defaultState as ngViewerDefaultState, StateInterface as NgViewerState...
import { Cell, CellDep, DepType, OutPoint, Script } from '@lay2/pw-core'; import blake2b from 'blake2b'; import {Reader, RPC} from 'ckb-js-toolkit'; import fs from 'fs'; import Molecule from 'molecule-javascript'; export function add0x(hash: string) { if(hash.substring(0, 2) !== '0x') return '0x'+hash; e...
// Type definitions for @atom/watcher 1.3 // Project: https://github.com/atom/watcher // Definitions by: LoganDark <https://github.com/LoganDark> // <NAME> <https://github.com/jnv> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Disposable } from 'event-kit'; export const D...
<reponame>aNickzz/DashBot import { DateTime } from 'luxon'; import { Entity } from 'prismarine-entity'; import { Vec3 } from 'vec3'; import { Event, EventEmitter } from '../../../Events'; import { PartialDefaults } from '../../../util/PartialDefaults'; import shallowMerge from '../../../util/shallowMerge'; import Minef...
<reponame>jeffgsk/material-components-web-components /** @license Copyright 2018 Google Inc. 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/...
import { User } from "../classes/user"; import { constructHomePage, constructRoutinePage } from "./dom-constructing"; import { ExerciseRecord } from "../classes/support-classes/exerciseRecord"; /** * Fetches JSON exercise and routine data for initial data seeding * @param url - string * @returns promise * @todo co...
import Roact from "@rbxts/roact"; import { hooked, useCallback, useEffect, useMemo, useMutable } from "@rbxts/roact-hooked"; import { Workspace } from "@rbxts/services"; import { acrylicInstance } from "components/Acrylic/acrylic-instance"; import { useAppSelector } from "hooks/common/rodux-hooks"; import { map } from ...
import "./scss/index.scss"; import { mat4, vec3 } from "gl-matrix"; import Shader from "./webgl/shader"; import * as textures from "./webgl/texture"; import * as geometry from "./webgl/geometry"; import * as clock from "./clock"; import Camera from "./webgl/camera"; let time = 0; const camera = new Camera(); camera.s...
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit" import axios, { ResponseType, AxiosResponse } from "axios" import { onAuthStateChanged } from "firebase/auth" import { auth } from "src/firebase" import { getShopName } from "src/utils" import { AppThunk } from "../store" import { IshopState, IshopQ...
/// /// Copyright © 2016-2020 The Thingsboard 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...
<gh_stars>10-100 import * as bcrypt from "bcryptjs"; require('dotenv').config(); const jwt = require('jsonwebtoken'); const { TOKEN_SECRET } = process.env const model = require('./model'); const monthLegend = { 0: "January", 1: "February", 2: "March", 3: "April", 4: "May", 5: "June", 6: "July", 7: "Au...
import React from 'react'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import moment from 'moment'; import router from 'umi/router'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Input, Card, Descriptions, Table } from 'antd'; import QueryTable...
<filename>files/src/app/core/vue-event-modifiers/vue-event-modifiers.plugin.ts import { Fun } from '@typed-f/function' // Import the core angular services. import { Component } from '@angular/core' // ----------------------------------------------------------------------------------- // // ----------------------------...