text stringlengths 3.3k 33k |
|---|
import {} from "react-native";
import Geolocation from "react-native-geolocation-service";
import * as config from "./Config.json";
import AsyncStorage from "@react-native-community/async-storage";
import { Cache } from "./Cache";
export class UserData implements IUserData {
private initilized = false;
public o... |
<filename>src/realty/realty.service.ts
import {
BadRequestException,
ConflictException,
Injectable,
NotFoundException,
} from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import fetch from 'node-fetch';
import { Realty, RealtyDocument } from './schemas/realty.schema';
import { Model, Types ... |
import * as React from 'react';
import { render } from 'react-dom';
import { POSITION, TYPE, canUseDom, isStr, isNum, isFn } from '../utils';
import { eventManager, OnChangeCallback, Event } from './eventManager';
import {
ToastContent,
ToastOptions,
ToastProps,
Id,
ToastContainerProps,
UpdateOptions,
Cl... |
<filename>meteor/client/ui/Prompter/controller/joycon-device.ts<gh_stars>10-100
import { ControllerAbstract } from './lib'
import { PrompterConfigMode, PrompterViewInner } from '../PrompterView'
import Spline from 'cubic-spline'
import { invert } from 'underscore'
const LOCALSTORAGEMODE = 'prompter-controller-arrowkey... |
<reponame>jjballano/aws-sdk-js-v3
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient.ts";
import { CopyDBClusterSnapshotMessage, CopyDBClusterSnapshotResult } from "../models/models_0.ts";
import {
deserializeAws_queryCopyDBClusterSnapshotCommand,
serializeAws_queryCopyDBCl... |
<filename>libs/fluid-elements/button-group/src/lib/button-group-item/button-group-item.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
*
... |
import * as React from "react";
interface Props extends React.ComponentProps<"svg"> {
size?: number;
width?: number;
height?: number;
}
const FlagIconYT = ({
size = 15,
width = 21,
height = 15,
...props
}: Props) => {
if (size !== height) {
width = width * (size / height);
height = height * (si... |
import gensync from "gensync";
import type { Handler } from "gensync";
import { forwardAsync, maybeAsync, isThenable } from "../gensync-utils/async";
import { mergeOptions } from "./util";
import * as context from "../index";
import Plugin from "./plugin";
import { getItemDescriptor } from "./item";
import { buildPres... |
<filename>src/validator/diagnostics.ts
/* eslint-disable */
import * as vscode from "vscode";
import { Mutex } from "await-semaphore";
import CancellationToken from "./CancellationToken";
import ValidatorCodeActionProvider from "./ValidatorCodeActionProvider";
import {
getValidatorMode,
setValidatorMode,
Validato... |
import * as React from 'react';
import { Portal } from '~/app/components/Portal';
import classNames from 'classnames';
import TodoTextInput from './components/TodoTextInput';
import DatePickerComponent from './components/DatePicker';
import styled from 'styled-components';
import { Interpreter, Machine, interpret } fro... |
import * as minimatch from "minimatch";
import {
workspace,
window,
commands,
ExtensionContext,
Disposable,
QuickPickItem,
WorkspaceFolder,
TextDocumentSaveReason,
TextEditor,
} from "vscode";
import {
TextEdit,
State as ServerState,
ErrorHandler,
ErrorAction,
CloseAction,
RevealOutputCh... |
<gh_stars>0
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { DatakantorModel } from '../../../../model/datakantor.model';
import { MatPaginator, MatSort, MatSnackBar, MatSnackBarVerticalPosition, MatSnackBarConfig } from '@angular/material';
import { Observable } from 'rxjs/Observable'... |
<gh_stars>1-10
export enum GLSL{
vs,
ps,
vec2,
vec3,
vec4,
float,
int,
sampler2D,
void,
in,
out,
inout,
lowp,
mediump,
highp,
mat3,
mat4
}
export type GLSL_SHADER = GLSL.vs | GLSL.ps;
export type GLSL_TYPE = GLSL.vec2 | GLSL.vec3 | GLSL.vec4 | GLSL.flo... |
<filename>src/vs/languages/css/common/services/selectorPrinting.ts<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for licen... |
// Libraries
import React, { PureComponent, ReactNode } from 'react';
import classNames from 'classnames';
import { cloneDeep, has } from 'lodash';
// Utils & Services
import { getDatasourceSrv } from 'app/features/plugins/datasource_srv';
import { AngularComponent, getAngularLoader } from '@grafana/runtime';
import { ... |
import { PostService } from 'src/app/services/post.service';
import { Character } from './../../models/Character';
import { Post } from './../../models/Post';
import { DialogData } from './../confirm-dialog/dialog-data.interface';
import { ConfirmDialogComponent } from './../confirm-dialog/confirm-dialog.component';
im... |
import { logger } from "../logger";
import RetriesExhaustedError from "./errors/retries-exhausted-error";
import TimeoutError from "./errors/timeout-error";
import TaskError from "./errors/task-error";
function backoff(retryNumber: number, delay: number): Promise<void> {
return new Promise((resolve: () => void) => {... |
import React, { FC, useState } from "react";
import { useSelector } from "react-redux";
import { changeApprovalTransaction, redeemTransaction } from "actions/redeem";
// Copied from Stake view despite T/t (changed styles to match original)
import T from "@klimadao/lib/theme/typography.module.css";
import styles from "... |
import App, {AppContext} from 'next/app';
import React from 'react';
import {Provider} from 'react-redux';
import {Store} from 'redux';
import {
GetServerSideProps,
GetServerSidePropsContext,
GetStaticProps,
GetStaticPropsContext,
NextComponentType,
NextPageContext,
} from 'next';
/**
* Quick ... |
<reponame>SteveLau-GameDeveloper/engine
/*
Copyright (c) 2019-2020 <NAME> Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable... |
import React, {useMemo, useState} from 'react';
import Helmet from 'react-helmet';
import {RouteComponentProps, useHistory} from 'react-router';
import {
PingRequest,
WorkerResponse,
PingResponseType,
IpData,
} from '../types/generated';
import Config from '../config.json';
import {
PingResponse,
PingHostL... |
import path from 'path';
import { AsyncSeriesHook, SyncHook } from 'tapable';
import { rollup } from 'rollup';
import { cloneDeep } from '@modern-js/utils/lodash';
import type {
Plugin as RollupPlugin,
RollupBuild,
RollupError,
RollupOutput,
} from 'rollup';
import rollupPluginReplace from '@rollup/plugin-repla... |
// Copyright 2016-2018, Pulumi 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... |
import * as vscode from 'vscode';
import * as path from 'path';
import { copyFile } from 'fs';
import { runTlc, stopProcess } from '../tla2tools';
import { TlcModelCheckerStdoutParser } from '../parsers/tlc';
import { updateCheckResultView, revealEmptyCheckResultView, revealLastCheckResultView } from '../checkResultVie... |
import { IWine } from "generated/rest";
import { compareNums, getNameAndType } from "lib/component_utils";
import React, { ReactElement } from "react";
import { Table } from "./Table";
import {
ColorCell, NameAndTypeCell, NumCell, ProducerCell, RegionCell, VitiAreaCell,
YearCell
} from "./TableCells";
import { ... |
<reponame>MarcRoemmelt/servicebus-ts
import amqp, { Channel, Replies } from 'amqplib';
import util from 'util';
import { Bus } from '../../Bus';
import { Correlator } from '../correlator';
import debug from 'debug';
import { EventEmitter } from 'events';
import * as json from '../../formatters/json';
import { PubSubQue... |
import { URL } from 'url';
import { isAbsolute } from 'path';
import { Parser as HTMLParser } from 'htmlparser2';
import { escape as escapeHTML } from 'he';
import voidElements = require('html-void-elements');
const VOID_ELEMENTS = new Set(voidElements);
const RE_EXTRACT_TAG_NAME = /<\/([^>]+)>/;
interface ElemAttrs ... |
import bs58check from "bs58check";
import { BigNumber } from "bignumber.js";
import get from "lodash/get";
import { log } from "@ledgerhq/logs";
import { extractBandwidthInfo } from "../../api/Tron";
import type {
Transaction,
TronOperationMode,
TrongridTxInfo,
TrongridExtraTxInfo,
TronResources,
} from "./ty... |
// Copyright 2015-2021 Swim.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 agreed to i... |
<filename>src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license inf... |
/*
********************************************
Copyright © 2021 Agora Lab, Inc., all rights reserved.
AppBuilder and all associated components, source code, APIs, services, and documentation
(the “Materials”) are owned by Agora Lab, Inc. and its licensors. The Materials may not be
accessed, used, modified, or di... |
/*
* Copyright (c) 2020 Elastos Foundation
*
* 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, ... |
<filename>src/core/service-objects.ts
export type Type$ApiMethod =
| "delete"
| "get"
| "GET"
| "DELETE"
| "head"
| "HEAD"
| "options"
| "OPTIONS"
| "post"
| "POST"
| "put"
| "PUT"
| "patch"
| "PATCH"
| "link"
| "LINK"
| "unlink"
| "UNLINK";
export interface Schema$ApiResultObject<T... |
import { ApolloError, useMutation } from '@apollo/client';
import { Typography } from '@material-ui/core';
import { ButtonFilled, ButtonOutlined, LightPills, Modal } from 'litmus-ui';
import moment from 'moment';
import React, { useEffect } from 'react';
import { DELETE_DATASOURCE } from '../../../../graphql';
import {... |
<reponame>ministryofjustice/digital-prison-services
import moment from 'moment'
import {
capitalizeStart,
switchDateFormat,
getCurrentPeriod,
pascalToString,
readableDateFormat,
stripAgencyPrefix,
putLastNameFirst,
} from '../../utils'
const attendanceReasonStatsUrl = '/manage-prisoner-whereabouts/atten... |
import fs from 'fs';
import readline from 'readline';
export class Node {
token?: Token;
children: {
[unit: string]: Node;
} = {};
fail?: Node;
}
export class Token {
text: string;
units: string[];
freq: number;
pos: string;
distance: number = 0;
docs: {
[id: string]: number;
} = {};
... |
import React, { useEffect, useMemo, useState } from "react";
import { BaseProps } from "./types";
import styled from "styled-components";
import MapSvg from "./MapSvg";
import { LoadingPeers } from "./LoadingPeers";
import { Gateway, getLocationName } from "./Gateway"
import { TitleTwo, TitleTwo2, TitleTwo3 } from "./t... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
import fs from 'fs';
import path from 'path';
import { KeyStore } from '@force-bridge/keystore/dist';
import { OwnerCellConfig } from '@force-bridge/x/dist/ckb/tx-helper/deploy';
import { Config, WhiteListEthAsset, CkbDeps } from '@force-bridge/x/dist/config';
import { getFromEnv, privateKeyToCkbPubkeyHash, writeJsonTo... |
<reponame>apnerve/vexflow
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
//
// ## Description
// This class implements some standard music theory routines.
import { Vex } from './vex';
export interface NoteAccidental {
note: number;
accidental: AccidentalValue;
}
export interface NoteParts {
roo... |
<gh_stars>10-100
import { kea } from 'kea'
import api from 'lib/api'
import { errorToast, eventToName, toParams } from 'lib/utils'
import { sessionsPlayLogicType } from './sessionsPlayLogicType'
import { SessionPlayerData, SessionRecordingId, SessionType } from '~/types'
import dayjs from 'dayjs'
import { EventIndex } ... |
<filename>src/functions.ts
import * as asn1js from 'asn1js';
import * as ne_text from '@ne1410s/text';
import { IKeyPair_Jwk, ICsr_Params, ICsr_Result } from './interfaces';
var webcrypto = require('node-webcrypto-ossl');
var pkijs = require('pkijs');
const crypto = new webcrypto.Crypto();
pkijs.setEngine(
'OpenSSL... |
<filename>src/index.ts
import {inspect} from "util";
import {sep} from "path";
import quotes from "./quotes";
import CallSite = NodeJS.CallSite;
export type LogWriter = (text: string) => boolean;
export type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "nothing";
export const BACKGROUND = {
BLACK: "... |
import { randomBytes } from 'crypto'
import { Errors } from 'ilp-packet'
import { find } from 'lodash'
import RoutingTable from './routing-table'
import ForwardingRoutingTable, { RouteUpdate } from './forwarding-routing-table'
import Accounts from './accounts'
import Config from './config'
import Peer from '../routing/... |
<filename>src/app/components/treetable/treetable.ts
import {NgModule,Component,Input,Output,EventEmitter,AfterContentInit,ElementRef,ContentChild,IterableDiffers,ChangeDetectorRef,ContentChildren,QueryList,Inject,forwardRef,OnInit,Renderer2,ViewChild} from '@angular/core';
import {CommonModule} from '@angular/common';
... |
import assert from "assert";
import * as types from "ast-types";
const n = types.namedTypes;
const isArray = types.builtInTypes.array;
const isObject = types.builtInTypes.object;
import { Lines, concat } from "./lines";
import { comparePos, fixFaultyLocations } from "./util";
type Node = types.namedTypes.Node;
type Co... |
<filename>packages/model-viewer/src/three-components/gltf-instance/VariantMaterialLoaderPlugin.ts
/* @license
* Copyright 2021 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 ... |
import path from "path";
import fs from "fs-extra";
import * as cdk from "aws-cdk-lib";
import { IConstruct } from "constructs";
import * as s3 from "aws-cdk-lib/aws-s3";
import * as iam from "aws-cdk-lib/aws-iam";
import { ILayerVersion } from "aws-cdk-lib/aws-lambda";
import * as cxapi from "aws-cdk-lib/cx-api";
impo... |
<filename>src/app/user/user-list/user-list.component.ts
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import modal from '../../../assets/js/lib/_modal';
import inputFocus from '../../../assets/js/lib/_inputFocus';
import inputClear from '../../../assets/js/lib/_inputClear';
import { FormBuilder,... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, 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 ri... |
/*! *****************************************************************************
Copyright (c) JC-Lab. 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/lic... |
import StyleLayer from '../style_layer';
import type Map from '../../ui/map';
import assert from 'assert';
import {mat4} from 'gl-matrix';
import {LayerSpecification} from '../../style-spec/types.g';
type CustomRenderMethod = (gl: WebGLRenderingContext, matrix: mat4) => void;
/**
* Interface for custom style layers.... |
const nb = {
//
// Feilside
//
"feil.404": "Feilkode 404 - Siden ble ikke funnet",
"feil.lenke": "Til kontakt oss forside",
//
// Varsler
//
"varsel.teknisk.feil":
"Det er for øyeblikket tekniske problemer med baksystemene våre. Dette kan føre til at noe informasjon mangler fra sidene.",
//
... |
import { useReducer, useState, useCallback, useEffect, Reducer } from "react";
import { Link } from "gatsby";
import axios, { AxiosError, AxiosResponse } from "axios";
import { listingReducer, Listing, ListingAction } from "../../reducers/listing";
import { parseErrors } from "../../helpers";
import { useAllowed, use... |
import Vue from "vue";
import Root, { Result } from "../root/root";
import { Component } from "vue-property-decorator";
import { ddragon, mapBackground, Role } from "@/constants";
import Timer from "./timer.vue";
import Members from "./members.vue";
import PlayerSettings from "./player-settings.vue";
import SummonerPi... |
<gh_stars>0
import * as vscode from 'vscode';
import * as utils from './hostCommandUtils';
import * as path from 'path';
import * as fs from 'fs-extra';
import { PSLDiagnostic } from '../common/diagnostics';
import * as extension from '../extension';
import * as environment from '../common/environment';
const icon = u... |
/** Core implementation of the query language evaluation engine. */
import { DataObject, Literal, Values } from "data-model/value";
import { Result } from "api/result";
import { BinaryOpHandler, createBinaryOps } from "./binaryop";
import { Field, Fields } from "./field";
import { DEFAULT_FUNCTIONS, FunctionImpl } fro... |
/*
* *** MIT LICENSE ***
* -------------------------------------------------------------------------
* This code may be modified and distributed under the MIT license.
* See the LICENSE file for details.
* -------------------------------------------------------------------------
*
* @s... |
<filename>packages/houdini/cmd/generators/typescript/inlineType.ts
// externals
import { Config, selectionTypeInfo } from 'houdini-common'
import * as recast from 'recast'
import * as graphql from 'graphql'
import { TSTypeKind, StatementKind } from 'ast-types/gen/kinds'
// locals
import { unwrapType } from '../../utils... |
<gh_stars>0
/*
* Copyright 2021 Salto Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
import * as React from 'react';
import * as _ from 'lodash';
import { Map as ImmutableMap } from 'immutable';
import { Button, Switch, Tooltip, Checkbox } from '@patternfly/react-core';
import { EyeIcon, EyeSlashIcon, PencilAltIcon } from '@patternfly/react-icons';
import {
LoadingInline,
ResourceLink,
Selector,
... |
#!/usr/bin/env ts-node-script
/**
* Parses the typescript output of ts-protobuf,
* and produces a file with similar interface definitions,
* but with required fields not marked as nullable keys.
*
* Specifically, `key?: value` becomes `key: value` for message types,
* and the ` | { "oneofKind": undefined }` is r... |
import * as Debug from "debug";
const debug = Debug("balrok:streamer");
import { BalrokConfig } from "./types/BalrokConfig";
import Cache from "./Cache";
import { QueryProgress } from "./types/QueryProgress";
import moment = require("moment");
const OPERATION_TYPES = ["resolve", "filter", "reduce", "map"];
export de... |
/* eslint-disable class-methods-use-this */
import { NightingaleElement, load } from "data-loader";
import StructureViewer from "./structure-viewer";
import translatePositions, {
PositionMappingError,
Mappings,
} from "./position-mapping";
/*
TODO:
[ ] Molstar/Mol* data fetching optimizations - create query to... |
/*
* Copyright 2019 The Kubeflow 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
import { Action } from '@ngrx/store';
import { IReorderData } from 'src/app/services/models/question/question-reorder';
import { INewScoreData } from 'src/app/services/models/question/new-score-data';
import { IPQForUserReview } from 'src/app/services/models/others/pq-for-user-review';
import { IQsPersonalIndex } from ... |
<reponame>rockhentai/umi
import type { NodePath } from '@babel/traverse';
import { t, winPath } from '@umijs/utils';
import { extname, isAbsolute } from 'path';
type TLibs = (RegExp | string)[];
interface IAlias {
[key: string]: string;
}
type IExternal =
| {
[key: string]: string;
}
| Function;
type... |
<reponame>jamesbond004/FluidFramework<gh_stars>0
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { ITelemetryBaseLogger, ITelemetryLogger } from "@fluidframework/common-definitions";
import { Lazy } from "@fluidframework/common-utils";
exp... |
<reponame>saikop99/vuln-vects
import { expect } from "chai";
import {
Cvss2VectorMocker,
Cvss2VectorParser,
Cvss2VectorPrefixOption,
Cvss2VectorRenderer,
Cvss3VectorMocker,
Cvss3VectorParser,
Cvss3VectorPrefixOption,
Cvss3VectorRenderer,
MultiCvssVectorParser,
} from "../src/index";... |
<gh_stars>0
import Result from "../../../../common_classes/result"
import Mapper from "../../mapper";
import {PoolClient, QueryConfig} from "pg";
import TypeTransformation from "../../../../data_warehouse/etl/type_transformation";
import uuid from "uuid";
const format = require('pg-format')
const resultClass = TypeTr... |
<gh_stars>0
import { Buffer as SafeBuffer } from 'buffer/';
interface Digest {
update(data: string | Buffer | Uint8Array, encoding?: string): this;
digest(): Buffer;
digest(encoding: string): string;
}
/**
* From https://github.com/crypto-browserify/sha.js/blob/master/sha256.js
*
* A JavaScript implementati... |
/**
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
import { css } from '@emotion/css';
import {
faKey,
faMinusCircle,
faPen,
faPlusCircle,
faUsers,
faUserSecret,
} from '@fortawesome/free-solid-sv... |
<reponame>mike-eason/np-clone
const mongoose = require('mongoose');
import { DBObjectId } from '../types/DBObjectId';
import ValidationError from '../errors/validation';
import DatabaseRepository from '../models/DatabaseRepository';
import { Carrier } from '../types/Carrier';
import { CarrierWaypoint } from '../types/C... |
import { CfnAutoScalingGroup } from '@aws-cdk/aws-autoscaling';
import { Vpc, BlockDeviceVolume, BlockDevice, InstanceType, LaunchTemplate, SecurityGroup, MachineImage, SecurityGroupProps, IVpc, EbsDeviceVolumeType, InstanceProps, LaunchTemplateAttributes, VpcProps, Port, Subnet } from '@aws-cdk/aws-ec2';
import { CfnT... |
import { useCallback, useMemo, useState, useEffect } from 'react'
import { FetchResult } from '@apollo/client'
import { noop } from 'lodash'
import { useLazyQuery, useMutation, useQuery } from '@sourcegraph/http-client'
import {
CreateBatchSpecFromRawResult,
CreateBatchSpecFromRawVariables,
ReplaceBatchS... |
<reponame>terrysahaidak/mst-collection
import { MergeStrategyType } from './CollectionModel';
import {
types,
getRoot,
isIdentifierType,
destroy,
IAnyModelType,
IArrayType,
ISimpleType,
SnapshotIn,
Instance,
IAnyComplexType,
} from 'mobx-state-tree';
import { normalize, Schema } from 'normalizr';
im... |
import styled from "styled-components";
import { Link as ScrollLink } from "react-scroll";
import { motion } from "framer-motion";
import { ButtonStyles } from "./button";
import { SectionContentStyle } from "../mixins";
import { stagger, fadeFromTop, fadeFromRight } from "../animate";
import media from "../media";
ty... |
import Wallet from "./Wallet"
import { deepClone, DeepReadonly, Convert, Buffer, hash, SortedList } from "./utils"
import Key from "./Key"
type Mutable<T> = {
-readonly [P in keyof T]: T[P];
}
let normalizedIdentifier: string
let normalizedIdentifierSignature: string
class CoinTable {
static readonly identifier: ... |
<gh_stars>0
export const EXTENSTIONS: { [key: string]: string } = {
'@a.grisevich/ng-zorro-antd':
'An enterprise-class UI components based on Ant Design and Angular',
'@angular-buddies/prettier':
'Your buddy who knows how to make your code pretty using Prettier.',
'@angular-extensions/model':
'Angular... |
import * as driver from '../../src/driver';
import * as ast from '../../src/ast';
import * as error from '../../src/error';
import { Error } from '../../src/error';
import { tree_canvas } from './tree';
import { get_children, get_name } from './astsumm';
import d3 = require('d3');
import { start_gl, PerfHandler } fro... |
import { Component, OnInit } from '@angular/core';
import { UserService } from '../services/user.service';
import { TokenStorage } from '../services/token.storage';
import { AuthService } from '../services/auth.service';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { PatientRegistration } fr... |
import React, { useEffect, useState } from "react";
import api, { AllStatus } from "@afes-website/docs";
import aspida from "@aspida/axios";
import clsx from "clsx";
import {
Grid,
Theme,
Typography,
createStyles,
makeStyles,
useTheme,
} from "@material-ui/core";
import congestionColor from "libs/congestion... |
/* eslint-disable @typescript-eslint/no-parameter-properties */
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { observable, autorun, computed, IObservableValue } from 'mobx';
import { Run, Result, Artifact } from 'sarif';
import { MobxFilter } from './FilterBar... |
<reponame>immortaleeb/goldensun_html5<filename>base/game_events/GameEventManager.ts
import {base_actions, directions, is_close, reverse_directions} from "../utils";
import {DialogManager} from "../utils/DialogManager";
import {npc_types} from "../NPC";
import {GoldenSun} from "../GoldenSun";
export enum interaction_pa... |
export interface NodeType {
name: string,
description: string,
value: number,
children?: Array<NodeType>,
}
interface ArcDatum extends NodeType {
startAngle: number,
stopAngle: number,
level: number,
}
/**
* General constructs to store navigation history.
*
* It's implemented as a stack.
*/
class Nav... |
<reponame>SukiCai/companion-app<filename>dashboard/src/app/viewModels/ClientEntryItem.ts
import { observable, computed } from 'mobx';
import { asyncComputed } from 'computed-async-mobx';
import { formatTimespan } from 'common/utils/dateHelpers';
import {
SessionRecordDataIded,
ClientSessionEntryIded,
Record... |
/*
* Copyright 2021 Collate
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... |
import React, { useState, useContext, useEffect, useRef, useMemo } from "react";
import { useSnackbar } from "notistack";
import { DataGridHandle } from "react-data-grid";
import _sortBy from "lodash/sortBy";
import _find from "lodash/find";
import firebase from "firebase/app";
import { compare } from "compare-versions... |
import { animate, keyframes, style, transition, trigger } from '@angular/animations';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { Con... |
<filename>packages/opencensus-core/test/test-recorder.ts
/**
* Copyright 2018, OpenCensus 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/license... |
/*
* Copyright 2021 Sh<NAME>, Co.Ltd
* Email: <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 required by applica... |
<filename>src/addon/click.ts
// HyperMD, copyright (c) by laobubu
// Distributed under an MIT license: http://laobubu.net/HyperMD/LICENSE
//
// DESCRIPTION: Click to open links / jump to footnotes / toggle TODOs, and more.
//
// With custom ClickHandler supported
//
import * as CodeMirror from 'codemirror'
import { Ad... |
import { useStripe } from "@stripe/react-stripe-js";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { toast } from "react-toastify";
import { cacheBookingData, clearErrors, createBooking } from "../../../redux/actions/bookingActions";
im... |
<reponame>nhojb/extensions
import { Icon, LocalStorage } from "@raycast/api";
import { calculateCharacter, isEmpty, regexPunctuation } from "./utils";
import { Md5 } from "ts-md5/dist/md5";
enum Tags {
ANNOTATION = "Annotation",
CASE = "Case",
CODER = "Coder",
FORMAT = "Format",
MARKDOWN = "Markdown",
TIME... |
<reponame>mikesprague/upterm
import {io, resolveDirectory, directoryName, joinPath, isImage, escapeFilePath} from "../../utils/Common";
import {
FileInfo, AutocompletionContext, AutocompletionProvider,
} from "../../Interfaces";
import * as modeToPermissions from "mode-to-permissions";
import * as Path from "path";... |
declare var NSMakeRange; // not recognized by platform-declarations
import { CLog, CLogTypes } from '../common';
import { Bluetooth, CBUUIDToString, toArrayBuffer } from './ios_main';
import { CBPeripheralDelegateImpl } from './CBPeripheralDelegateImpl';
/**
* @link - https://developer.apple.com/documentation/corebl... |
<filename>src/mol-geo/representation/structure/visual/carbohydrate-symbol-mesh.ts
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { Unit, Structure, StructureElement } from 'mol-model/structure';
import { ComplexVisual, VisualUp... |
<filename>src/module/systems/DefaultConditionalVisibilitySystem.ts
import { i18n, log, warn } from '../../conditional-visibility';
import { ConditionalVisibilityFacade } from '../ConditionalVisibilityFacade';
import {
CONDITIONAL_VISIBILITY_DEFAULT_STEALTH,
getCanvas,
getGame,
CONDITIONAL_VISIBILITY_MODULE_NAME... |
/**
* @prettier
*/
import * as Bluebird from 'bluebird';
import { CoinFamily, BaseCoin as StaticsBaseCoin } from '@bitgo/statics';
const co = Bluebird.coroutine;
import * as bitgoAccountLib from '@bitgo/account-lib';
import {
BaseCoin,
KeyPair,
ParsedTransaction,
ParseTransactionOptions,
SignedTransaction,... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.