text stringlengths 3.3k 33k |
|---|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import {
defineComponent,
h,
PropType,
ref,
toRef,
nextTick,
computed,
Transition,
CSSProperties
} from 'vue'
import { createTreeMate, TreeNode } from 'treemate'
import { VBinder, VFollower, VTarget, FollowerInst } from 'vueuc'
import { use... |
<filename>src/utils/misc.ts
import type React from 'react'
import { vec } from './vec'
// TODO: move intersect code here
const TAU = Math.PI * 2
/* -------------------------------------------------- */
/* Math & Geometry */
/* -------------------------------------------------- */
... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { useState, useEffect, useCallback, useMemo } from 'react';
impo... |
import { Injectable } from '@nestjs/common';
import * as cheerio from 'cheerio';
import * as request from 'request';
import { eachLimit, map, mapLimit } from 'async';
import { CasinosService } from '../casinos/casinos.service';
import * as fs from 'fs';
import { join, posix } from 'path';
import * as fetch from 'node-f... |
import { ApolloCache } from '@apollo/client';
import gql from 'graphql-tag';
import { useRouter } from 'next/router';
import React, { useState } from 'react';
import {
RegularPostFragment,
useMeQuery,
useVoteMutation,
VoteMutation,
} from '../../generated/graphql';
interface UpvoteSectionProps {
post: Regula... |
<filename>src/lib/TuyaAPIHelper.ts
import { Logger } from "homebridge";
import { Config } from "./Config";
const CryptoJS = require('crypto-js');
const request = require('request');
const URL = require('url');
export class TuyaAPIHelper {
private constructor(config: Config, log: Logger) {
this.clientId = ... |
<reponame>baltedewit/tv-automation-emberplus-connection
import Long from 'long'
import { Writer, WriterOptions } from 'asn1'
import { CONTEXT, UNIVERSAL } from './functions'
import { BERDataTypes } from './BERDataTypes'
import { Parameter, ParameterType, isParameter } from '../model/Parameter'
import { EmberValue, Emb... |
<reponame>Rostov1991/amcharts5<gh_stars>10-100
import type { AxisRendererCircular } from "./AxisRendererCircular";
import type { AxisRendererRadial } from "./AxisRendererRadial";
import type { Axis } from "../xy/axes/Axis";
import type { XYSeries } from "../xy/series/XYSeries";
import type { RadarCursor } from "./Radar... |
import * as React from "react";
import Icon from "react-native-vector-icons/FontAwesome";
import {
ScrollView,
StyleSheet,
Text,
View,
TouchableOpacity,
ActivityIndicator,
Alert,
Dimensions,
ToastAndroid,
PanResponder,
} from "react-native";
import { Header, Footer } from "../../components";
import {
bookma... |
<reponame>erkiesken/advent-of-code
import { readFileSync} from 'fs';
import { AStarFinder } from 'astar-typescript';
type State = number[];
function parse(s: string) {
return s.trim().split(',').map((val) => parseInt(val, 10));
}
function copy<T>(data: T): T {
return JSON.parse(JSON.stringify(data));
}
const in... |
/*
* Copyright 2020 The Backstage 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 applicable law or ... |
import SVG from 'react-inlinesvg'
import styled, {
css,
DefaultTheme,
FlattenSimpleInterpolation
} from 'styled-components'
import { ComponentSize } from '../../../types/ComponentSize'
import { left } from '../../../utils/rtl'
const getHeight = (theme: DefaultTheme, size: ComponentSize): string =>
theme.$pc.formC... |
<gh_stars>1-10
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Client as FayeClient } from 'faye';
import { Connection } from '... |
import axios from "axios";
import KeyPair from "./KeyPair";
import Message from "./Message";
import NetworkConfig from "./NetworkConfig";
import SignedMessage from "./SignedMessage";
import { sleep } from "./Util";
// A client for talking to the blockchain servers.
// This client only uses one keypair across its life... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Copyright (c) <NAME>. All rights reserved.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the... |
/* Copyright (c) 2019, <NAME>
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 conditions and the followin... |
import * as http from "http";
import * as URL from "url";
import * as crypto from "crypto";
import axios from "axios";
import * as qs from "qs";
import Grant from "keycloak-connect/middleware/auth-utils/grant";
import Token from "keycloak-connect/middleware/auth-utils/token";
import { Rotation } from "./Rotation";
impo... |
<gh_stars>10-100
import xmldoc from 'xmldoc';
import { parseTemplate } from './wiki/parser'
import { WikiDocumentation } from '../../server/src/server'
function loadBlock(text: string, opening: string, closing: string) {
let bcount = -1;
let index = 0;
let result = '';
while (index < text.length) {
... |
import * as path from 'path'
import * as vv from 'vv-common'
import { TData, TypeDataHandler, TDataShowcase } from './typedata'
import * as z from './z'
export type TOptions = {
/** default root path for storage your data files, example = path.join(__dirname, 'storage', 'data') */
pathData: string,
/** de... |
<reponame>cd-yang/maxGraph
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, <NAME>
* Updated to ES9 syntax by <NAME> 2021
* Type definitions from the typed-mxgraph project
*/
import Client from '../Client';
import InternalEvent from '../view/event/InternalEvent';
import { getInnerHtml, write }... |
import { strictEqual } from 'assert';
import { Contract, Client } from '@hyperledger/burrow';
import { readFileSync } from 'fs';
import { BigNumber } from '@ethersproject/bignumber';
const default_url: string = "localhost:10997";
const default_account = 'ABE2314B5D38BE9EA2BEDB8E58345C62FA6636BA';
export async functio... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable no-param-reassign */
import { PropertyFactory, BaseProperty, ReferenceArrayProperty } from "@fluid-experimental/property-properties";
import { PropertyProxy, proxySymbol } from "./... |
<filename>packages/pinus-protocol/lib/protocol.ts
declare let Buffer: any;
let PKG_HEAD_BYTES = 4;
let MSG_FLAG_BYTES = 1;
let MSG_ROUTE_CODE_BYTES = 2;
let MSG_ID_MAX_BYTES = 5;
let MSG_ROUTE_LEN_BYTES = 1;
let MSG_ROUTE_CODE_MAX = 0xffff;
let MSG_COMPRESS_ROUTE_MASK = 0x1;
let MSG_COMPRESS_GZIP_MASK = 0x1;
let MSG... |
<filename>infra/StreamlitEcsFargateStack.ts
import * as cdk from '@aws-cdk/core';
import * as cognito from '@aws-cdk/aws-cognito';
import * as elb from "@aws-cdk/aws-elasticloadbalancingv2";
import * as elbActions from '@aws-cdk/aws-elasticloadbalancingv2-actions';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as e... |
interface HljsLanguage {
register: (hljs: any) => Record<string, any>;
}
export const _1c: HljsLanguage & { name: "1c" };
export const abnf: HljsLanguage & { name: "abnf" };
export const accesslog: HljsLanguage & { name: "accesslog" };
export const actionscript: HljsLanguage & { name: "actionscript" };
export co... |
import * as fs from 'fs-extra';
const rmfr = require('rmfr');
import * as download from 'download';
import * as Registry from 'winreg';
import { lookupRegistry } from './regutils';
import { BrowserWindow } from 'electron';
import { homedir } from 'os';
const xml2js = require('xml2js');
enum RootLocation {
LAUNCHE... |
/* eslint-disable react/no-danger */
/* eslint-disable jsx-a11y/label-has-associated-control */
import {
boolean,
button,
color,
files,
number,
optionsKnob as options,
text,
} from '@storybook/addon-knobs';
import * as React from 'react';
import {
CanvasPath,
ExportImageType,
ReactSketchCanvas,
} fr... |
import { mergeClasses, makeStyles } from '@fluentui/react-make-styles';
import type { BadgeState } from './Badge.types';
export const badgeClassName = 'fui-Badge';
const useStyles = makeStyles({
root: theme => ({
display: 'inline-flex',
boxSizing: 'border-box',
alignItems: 'center',
justifyContent: ... |
<gh_stars>10-100
/* eslint-disable max-len */
/* eslint-disable no-multi-str */
import {AugmentedBlock, Block, BlockWithNote} from './types';
import {
batchFindNotes,
updateNote,
batchAddNotes,
invokeAnkiConnect,
} from './anki';
import {config} from './config';
import {convertToCloze, pullBlocksUnderTag, pull... |
<gh_stars>0
import * as github from '@actions/github'
import * as core from '@actions/core'
import * as rest from '@octokit/rest'
import {Context} from '@actions/github/lib/context'
function getRequiredEnv(key: string): string {
const value = process.env[key]
if (value === undefined) {
const message = `${key} ... |
import { createUseClassNames } from "app/theme";
import { cx } from "tss-react";
import { useEffect, useState } from "react";
import { useConstCallback } from "powerhooks";
import { copyToClipboard } from "app/tools/copyToClipboard";
import { useSelector, useDispatch, useEvtSecretsManagerTranslation } from "app/interf... |
import classnames from 'classnames';
import {Options, Vue} from 'vue-class-component';
import {Prop, Watch} from 'vue-property-decorator';
import Button from '../../button';
import Flex from '../../flex';
import List from '../../list';
import {getComponentLocale} from '../../utils/getLocale';
import {DataItem, ValueTy... |
<filename>src/Components/Layout/sidebar.ts
import fs from 'fs';
import storage from 'electron-json-storage-sync';
import fileIcon from '../Files/File Icon/fileIcon';
import { getDrives } from '../Drives/drives';
import getDriveBasePath from '../Functions/basePath';
import { updateTheme } from '../Theme/theme';
import T... |
import { isUndefined, getValue } from './util';
const REGX_MOBILE: RegExp = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i;
const REGX_IE: RegExp = /msie|trident/i;
const REGX_IE11: RegExp = /Trident\/7\./;
const REGX_IOS: RegExp = /(ipad|iphone|ipod touch)/i;
const REGX_IOS7: RegExp = /(ipad|i... |
import { Store } from "../../../storage-core";
export function getCollections() {
const collStr = localStorage.getItem("__collections");
return collStr === null
? ([] as string[])
: (() => {
const s: string | string[] = JSON.parse(collStr);
return Array.isArray(s) ? s : [s];
})();
}
function _setCol... |
import React, { useState } from 'react';
import { withKnobs } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import uniqueId from 'lodash.uniqueid';
import { Button } from '../../button';
import { Combobox } from './Combobox';
import { IconFaceSmile } from '../../../icons';
type Opt... |
import {DPoint} from './DPoint';
import {DPolygon, MIN_POINTS_IN_VALID_POLYGON} from './DPolygon';
import {FastSearch} from './FastSearch';
import {createArray} from './utils';
export enum TraceMatrixValues {
f = 0,
t = 1
}
type SimpleMatrix = TraceMatrixValues[][];
const getByPosition = (
m: SimpleMatrix,
p... |
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
// Copyright 2017-2021 @canvas-ui/app-execute authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { ComponentProps as Props } from '@canvas-ui/apps/types';
import { Button, ContractParams, Dropdown, IconLink, InputAddress, InputBalance, InputMegaGas, MessageArg, MessageSignature, PendingTx, TxButton }... |
<gh_stars>10-100
import * as Redis from 'ioredis'
import * as messagePack from 'msgpack5'
import { compressData, decompressData } from './compression'
import { Compressor } from './compression/types'
export interface Node {
readonly id: number
readonly [key: string]: any
}
export interface GraphConfigInput {
re... |
import {
FinalBuilder,
TransientParamsForTraits,
ExtendedAttributes,
Intersect,
} from './types';
interface FactoryBuilder<
OuterEntity = unknown,
OuterGlobalTransientParams = unknown,
Traits = {} // eslint-disable-line @typescript-eslint/ban-types
> {
extends<
ParentFactories extends Array<EntityF... |
import { Location } from "./ast";
import { last } from "./util";
export enum TokenType {
// Single-character tokens.
LEFT_PAREN = "LEFT_PAREN",
RIGHT_PAREN = "RIGHT_PAREN",
LEFT_BRACE = "LEFT_BRACE",
RIGHT_BRACE = "RIGHT_BRACE",
LEFT_BRACKET = "LEFT_BRACKET",
RIGHT_BRACKET = "RIGHT_BRACKET",
COMMA = "C... |
import type {
AccountMeta,
Cluster,
ConfirmOptions,
RpcResponseAndContext,
Signer,
SimulatedTransactionResponse,
TransactionInstruction,
} from "@solana/web3.js";
import { PublicKey, Transaction } from "@solana/web3.js";
import type { Provider } from "../interfaces";
import type { PendingTransaction } fr... |
import moment from "moment-timezone";
import {
Body,
Button,
Text,
Container,
Badge,
ListItem,
Icon,
Content,
Left,
Right,
} from "native-base";
import React, { useState } from "react";
import { useMutation, useQuery } from "react-apollo";
import { StatusBar, View } from "react-native";
import { Tou... |
/// <reference path="../Prefix.d.ts" />
import * as three from "three";
import {
RendererCore,
GLStateFlags
} from "../core/RendererCore";
import {
Vector3Pool,
Vector4Pool,
Matrix4Pool
} from "../utils/ObjectPool";
import { TextureRenderBuffer } from "../core/RenderBuffers";
import { GLFramebu... |
/** @format */
// deno-lint-ignore-file no-explicit-any require-await
import BrokerPool from './brokerPool.ts';
import Lock from '../utils/lock.ts';
import createRetry from '../retry/index.ts';
import connectionBuilder from './connectionBuilder.ts';
import flatten from '../utils/flatten.ts';
import Constants from '../... |
import { revcom } from '@jbrowse/core/util'
export interface Mismatch {
qual?: number
start: number
length: number
type: string
base: string
altbase?: string
seq?: string
cliplen?: number
}
export function parseCigar(cigar: string) {
return (cigar || '').split(/([MIDNSHPX=])/)
}
export function cigar... |
<reponame>Voxelum/VoxeLauncher
import { computed, reactive, ref, Ref } from '@vue/composition-api'
import { ServiceChannel, ServiceKey, State } from '@xmcl/runtime-api'
import { MutationPayload, Store } from 'vuex'
import { ServiceFactory, StateOfService } from './composables'
export type StateOfServiceKey<K> = K exte... |
export declare const AmpersandKey: 55;
export declare const ArrowDownKey: 40;
export declare const ArrowLeftKey: 37;
export declare const ArrowRightKey: 39;
export declare const ArrowUpKey: 38;
export declare const AtSignKey: 50;
export declare const BackSlashKey: 220;
export declare const CaretKey: 54;
export ... |
// eslint-disable-next-line
/// <reference path="../node_modules/highlight.js/types/index.d.ts" />
import fglob from 'fast-glob';
import { PathLike, readFile } from 'fs';
import { sep, parse, join, relative, extname } from 'path';
import { slugify, normalizeArray, dedupe, sanitizer } from './utils';
import gmatter fro... |
<filename>ui/router.ts<gh_stars>1-10
/* From https://github.com/vpj/weya/blob/master/router.ts */
export class Router {
private optionalParam = /\((.*?)\)/g
private namedParam = /(\(\?)?:\w+/g
private splatParam = /\*\w+/g
private escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g
private event
private ... |
<reponame>haojie06/BedrockPlugins
//关于数据库的文件
function fix(arr: TemplateStringsArray) {
return arr
.join("")
.replace(/\(\n\s+/g, "(")
.replace(/\n\s+\)/g, ")")
.replace(/\s+/g, " ");
}
//创建一个储存行为日志的表
//记录格式 id,时间,玩家名,玩家坐标,行为,行为对象,对象坐标
export const CREATE_TABLE = fix`
CRE... |
import React = require('react');
import Login from './main/ui/forms/login/login';
import { Typography, Button } from 'material-ui';
import { Divider, Input, Icon } from 'semantic-ui-react';
import { getYear } from './date/dates';
import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react';
import { Message } fro... |
<gh_stars>1-10
/* [Imports] */
import { RGB, RGBA } from '@jscad/modeling/src/colors';
import { Geom3 } from '@jscad/modeling/src/geometries/types';
import {
cameras,
controls as _controls,
drawCommands,
} from '@jscad/regl-renderer';
import makeDrawMultiGrid from '@jscad/regl-renderer/types/rendering/commands/dr... |
import {Component, OnInit, ChangeDetectionStrategy, ViewChild, Inject} from '@angular/core';
import {UploadData} from '../csv-upload/csv-upload.component';
import {CsvSourceType, CSVParameters} from '../../../types/csv-source-type.model';
import {Operator} from '../../../operator.model';
import {ResultTypes} from '../.... |
"use strict";
import { Set, OrderedMap, OrderedSet, Map } from "immutable";
import { Type, ClassProperty, UnionType, ObjectType, combineTypeAttributesOfTypes, assertIsObject } from "./Type";
import {
TypeRef,
UnionBuilder,
TypeBuilder,
TypeLookerUp,
GraphRewriteBuilder,
TypeRefUnionAccumulator... |
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
import * as wecco from "@weccoframework/core"
import { versionLabel as version } from "../../../package.json"
import { isClipboardSupported, isSharingSupported } from "../browser"
import { AddDie, AddDifficulty, Copy, EmptyPool, Message, PoolDowngrade, PoolUpgrade, RemoveDie, RemoveNumericResult, RollNumeric, RollPo... |
import { SegmentId } from '../models/segment';
import { MetricExpanded } from '../models/metric';
import { DatasourceRequest } from '../models/datasource';
import { SegmentsSet } from '../models/segment_set';
import { AnalyticUnitId, AnalyticUnit, AnalyticSegment } from '../models/analytic_units/analytic_unit';
import ... |
import 'regenerator-runtime/runtime';
import EventEmitter from 'events';
import Transaction from 'ethereumjs-tx';
import { browser } from 'webextension-polyfill-ts';
import { BitBox02API, getDevicePath, constants } from 'bitbox02-api';
import * as ethUtil from 'ethereumjs-util';
import * as HDKey from 'hdkey';
cons... |
<filename>packages/app/main/src/main.ts
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All... |
<reponame>planitb/subscription-faker<filename>src/main.ts<gh_stars>1-10
import { gql, PubSub } from "apollo-server";
import { ApolloServer } from "apollo-server-express";
import {makeSubscriptionSeedDataSchema} from "./makeSubscriptionSeedDataSchema";
import {ExecutionResult, FieldNode, graphql, GraphQLSchema, Operatio... |
import axios from "axios";
import * as cheerio from "cheerio";
interface SheetView {
gid: string;
name: string;
order: number;
rows_limit: number;
cols_limit: number;
data: any;
}
interface SheetMetadata {
cosmoId: string;
editable: boolean;
docName: string;
pathPrefix: string;
revision: number;... |
<reponame>LetterN/roblox-ts-semver<filename>src/index.ts
/*!
* Code based on the lua implementation of semver.
*
* <https://github.com/kikito/semver.lua> @ version 1.2.1
* Lua version (c)
* MIT LICENSE
* Copyright (c) 2015 <NAME>
* Permission is hereby granted, free of charge, to any person obtaining a
* co... |
<reponame>suguru03/amplify-cli
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { prepareApp } from '@aws-cdk/core/lib/private/prepare-app';
import {
$TSAny,
$TSContext,
$TSObject,
AmplifyCategories,
AmplifySupportedService,
exitOnNextTick,
JSONUtilities,
pathManager... |
import os from 'os';
import { TypedEmitter } from 'tiny-typed-emitter';
import { AddressType } from '../../../models';
import { Hci } from './Hci';
const IS_NTC_CHIP = os.platform() === 'linux' && os.release().indexOf('-ntc') !== -1;
const IS_LINUX = os.platform() === 'linux';
const IS_INTEL_EDISON = IS_LINUX && os.... |
import React, { Component } from "react";
import "bootstrap/dist/css/bootstrap.min.css";
import Container from "react-bootstrap/Container";
import "./MapPuzzle.css";
import { setCookie, getCookie, removeCookie } from "react-simple-cookie-store";
import Col from "react-bootstrap/Col";
import Row from "react-bootstrap/Ro... |
import { QuestionCircleOutlined } from "@ant-design/icons";
import { ApolloError } from "@apollo/client";
import {
LilyDataFragment,
ProfileSettingsForm_UserFragment,
useAddLilyMutation,
useDeleteLilyMutation,
useDeleteUploadMutation,
useEditLilyMutation,
useListsQuery,
useSearchAhsLiliesLazyQuery,
} fr... |
import {readFile, utils} from "xlsx";
import {Census, CensusCommune, CensusProvince, CensusRegion} from "./census.model";
import {writeFile} from "fs";
export interface Row {
[index: string]: string | number
}
export type Data = Row[];
export interface ProcessedRow {
Orden: number
RegionNombre: string
Region... |
<reponame>ScoutRFP/ag-grid<filename>enterprise-modules/charts/src/chartAdaptor/chartComp/chartProxies/chartProxy.ts
import {
_,
ChartOptions,
ChartOptionsChanged,
ChartType,
Events,
EventService,
ProcessChartOptionsParams,
SeriesOptions,
PaddingOptions,
DropShadowOptions,
Fon... |
<filename>types/index.d.ts
/* The WSData is just a string type alias. */
export type WSData = string;
/* The OnNamespaceConnect is the event name that it's fired on before namespace connect. */
export const OnNamespaceConnect = "_OnNamespaceConnect";
/* The OnNamespaceConnected is the event name that it's fired on afte... |
<filename>src/plainQuickPick.ts<gh_stars>0
import * as vscode from 'vscode';
import { Disposable } from 'vscode';
import * as cs from './common/collectionSupport';
import * as ss from './common/systemSupport';
export let settings = {quickPickItemVisibleLength: 72}
export class PlainQuickPickButton implements vscode.Q... |
import type {
DefaultCombinatorName,
DefaultOperatorName,
DefaultRuleGroupArray,
DefaultRuleGroupICArray,
DefaultRuleGroupType,
DefaultRuleGroupTypeAny,
DefaultRuleGroupTypeIC,
DefaultRuleType,
ParseCELOptions,
ValueSource,
} from '../../types/index.noReact';
import { fieldIsValidUtil, getFieldsArra... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
<filename>packages/sdk/order/fill-order.ts
import { MichelsonData } from "@taquito/michel-codec"
import {
Provider,
send_batch,
get_public_key,
OperationResult,
Asset,
get_address,
FTAssetType,
get_decimals,
Part,
approve_arg
} from "@rarible/tezos-common"
import { OrderForm, order_to_json, salt, fi... |
<reponame>simonurmi/ApplicationInsights-JS
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { IDiagnosticLogger, LoggingSeverity, _InternalMessageId, hasJSON, getJSON, objForEachKey, isObject, strTrim } from "@microsoft/applicationinsights-core-js";
export const e... |
import { applyMiddleware, combineReducers, createStore, Store } from 'redux';
import reduxSaga, { SagaIterator, SagaMiddleware } from 'redux-saga';
import { call, takeLatest } from 'redux-saga/effects';
import { ReduxAsync } from './ReduxAsync';
type ConsoleType = 'error' | 'group' | 'groupCollapsed' | 'groupEnd' | 'l... |
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, BehaviorSubject } from 'rxjs';
import { HttpService } from './http.service';
import { HttpClient } from '@angular/common/http';
import { StorageService } from './storage.service';
import { environment } from '../.... |
import { BrowserWindow, Tray } from '@main/engineBridge';
import BaseService from '@main/service/BaseService';
import { createI18n } from '@main/util/i18n';
import { TaskNotification } from '@universal/entities/notification';
import { StaticStore } from '@universal/util/staticStore';
import { resolve } from 'path';
im... |
<gh_stars>1-10
import { objectFlip } from '@/utils';
import { TaxAccount } from './client_actions/utils';
export const ZraDomain = 'https://portal.zra.org.zm';
export const ZraCaptchaUrl = `${ZraDomain}/captcha.jpg`;
// #region Browser
export enum BrowserCode {
CHROME = 'chrome',
FIREFOX = 'firefox',
}
/**
* Hu... |
import debug from 'debug';
import { Event } from 'atvik';
import { sameId, encodeId } from '../id';
import {
Peer,
PeerMessageType,
DataMessage,
DataAckMessage,
DataRejectMessage,
DataMessagePathEntry
} from '../transport';
import { Routing } from './Routing';
const MAX_DELAY = 5000;
interface SentMessage {
... |
import { ArrowBack } from '@material-ui/icons';
import Head from 'next/head';
import NotesIcon from '@material-ui/icons/Notes';
import ScheduleIcon from '@material-ui/icons/Schedule';
import RoomIcon from '@material-ui/icons/Room';
import DuoIcon from '@material-ui/icons/Duo';
import PeopleIcon from '@material-ui... |
import express from 'express';
import cors from 'cors';
import * as Conversions from './conversions';
import * as HueAPI from './hue_api';
import {Scene} from "./hue_api_types";
import * as Dashboard from './dashboard';
import {drawSceneColours} from './pictures';
import * as BackgroundRoutes from "./background_routes... |
<reponame>emundo/joynr
/*
* #%L
* %%
* Copyright (C) 2019 BMW Car IT GmbH
* %%
* 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>lkesteloot/trs80
import {Trs80WebScreen} from "./Trs80WebScreen.js";
import {GlyphOptions, MODEL1A_FONT, MODEL1B_FONT, MODEL3_ALT_FONT, MODEL3_FONT} from "./Fonts.js";
import {Background, CGChip, Config, ModelType, Phosphor, ScanLines} from "trs80-emulator";
import {toHexByte} from "z80-base";
import {TRS80_S... |
<filename>app/api/state/test-plan.ts
import * as scm from '../scm'
import { loadSettings, ProjectData } from '../settings'
import { sendTestPlanProjectChanged } from '../state/projects'
import * as planModel from '../model/plan'
import * as EventEmitter from 'events'
import { readTestPlan, writeTestPlan } from '../mode... |
import {
Accordion,
AccordionHeader,
AccordionIcon,
AccordionItem,
AccordionPanel,
Avatar,
Badge,
Box,
Flex,
FormLabel,
Heading,
Icon,
Input,
InputGroup,
InputLeftElement,
Link,
Spinner,
Stack,
Switch,
Text,
useColorMode,
useToast,
... |
import {
EmbedValue,
TumblrEmbedValue,
TweetEmbed as TweetEmbedInterface,
} from "../config";
import type { SavedValue as BlockImageSavedValue } from "./BlockImage";
import OEmbedSsrTemplate from "./templates/OEmbedSSR.html";
import type { HTMLElement as ParserHTMLElement } from "node-html-parser";
import type Q... |
import { ComponentRef, Injectable, ViewContainerRef } from '@angular/core';
import { NgFlowchart } from '../model/flow.model';
import { CONSTANTS } from '../model/flowchart.constants';
import { CanvasFlow } from '../ng-flowchart-canvas.service';
import { NgFlowchartStepComponent } from '../ng-flowchart-step/ng-flowchar... |
/**
* A generic identifier.
*
* Is an array of strings which represent an object accessor e.g. the value
* ["a", "b"] represents obj["a"]["b"]. This identifier will be used to
* access values from the persistent variable storage and for accessing
* nested interactions.
*
* Validation of these identifiers will b... |
<filename>src/parser.ts
import structure from './assets/structure.json';
import { Reader } from './reader';
import { SerializedLiteralParser } from './slp';
export type Header = {
[T in keyof typeof structure.header]: (number | number[]);
}
export interface FunctionHeader {
flags: number;
offset: number;
... |
<gh_stars>0
// The below copyright notice and the license permission notice
// shall be included in all copies or substantial portions.
// Copyright (C) 2019-2021 <NAME> <<EMAIL>>
// MIT License: https://raw.githubusercontent.com/nezaboodka/reactronic-front/master/LICENSE
// By contributing, you agree that your contrib... |
<gh_stars>0
import * as pg from 'pg';
import * as fs from 'fs';
import { IDataConnector,
DataResourceCallback,
DataFormItemCallback } from './dataconnector';
import { ICMSResource } from '../cms/resource';
import { ICMSFormItem } from '../cms/formitem';
const INSERT_RESOURCE_SQL_COMMAND : string ... |
import React, { useState, useEffect } from 'react';
import {
Card,
Input,
Form,
Button,
Table,
message,
Space,
Popconfirm,
Drawer,
Divider,
Upload,
Radio,
} from 'antd';
import ImgCrop from 'antd-img-crop';
import { getUserList, deleteUser, userUpdate } from '@/services/user';
import { LoadingOu... |
import React from 'react';
import { t } from 'ttag';
import { get } from 'lodash';
import {
Feature,
isWheelmapFeatureId,
sourceIdsForFeature,
isWheelmapFeature,
} from '../lib/Feature';
import { licenseCache } from '../lib/cache/LicenseCache';
import { dataSourceCache } from '../lib/cache/DataSourceCache';
im... |
import { RENAME_PREVIOUS_QUERY_SUCCESS } from "../previous-queries/list/actionTypes";
import {
BEFORE,
DAYS_OR_NO_EVENT_BEFORE,
TIMEBASED_OPERATOR_TYPES
} from "../common/constants/timebasedQueryOperatorTypes";
import {
EARLIEST,
TIMEBASED_TIMESTAMP_TYPES
} from "../common/constants/timebasedQueryTimestampT... |
import React, { useState, CSSProperties } from "react";
import { Node } from "slate";
import {
Editor,
EditorKit,
Plugin,
BoldPlugin,
ItalicPlugin,
BoldButton,
ItalicButton,
StrikethroughButton,
UnderlinePlugin,
StrikethroughPlugin,
LinkButton,
InlineCodeButton,
SuperscriptButton,
OrderedLis... |
<reponame>darkjedi9922/graph-web
import { createStore } from 'redux'
import { AbstractCanvasObject, NodeMap, EdgeMap } from './types';
import * as appAPI from './desktop';
import { textWidth } from './libs/gmath';
interface ProjectData {
nodes: NodeMap,
nodeAutoSize: boolean,
edges: EdgeMap,
oriented: ... |
import * as React from 'react';
import {createUseStyles} from './jss';
import IcnCloseRegular from './generated/mistica-icons/icon-close-regular';
import IconButton from './icon-button';
import {useTheme, useScreenSize} from './hooks';
import type {TrackingEvent} from './utils/types';
// Zeplin definition:
// https:/... |
<filename>apps/halprin-web-app/src/core/converter/legacy-dvd-converter.ts<gh_stars>0
import fs from 'fs';
import path from 'path';
import { parseStringPromise } from 'xml2js';
import { slugify } from 'transliteration';
import { Simplify } from 'type-fest';
import { StringConvert } from '@contredanse/common/utils/string... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.