text stringlengths 3.3k 33k |
|---|
<gh_stars>0
import {Particle} from "./Particle";
import {ParticleUtils} from "./ParticleUtils";
import {Emitter} from "./Emitter";
import {GetTextureFromString} from "./ParticleUtils";
import {Point, Texture} from "pixi.js";
import { AnimatedParticle, ParsedAnimatedParticleArt, AnimatedParticleArt } from './AnimatedPa... |
<reponame>GeoPlatform/CCB-Plugins
import {
Inject, Component, OnInit, OnDestroy, OnChanges, SimpleChanges,
Input, Output, EventEmitter, HostBinding
} from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { MatDialog } from '@angular/material/dialog';
import { Subscription } from "rxjs"... |
import { Methods, Context } from "./.rtag/methods";
import { UserData, Response } from "./.rtag/base";
import {
Color,
GameStatus,
Piece,
PlayerName,
PlayerState,
ICreateGameRequest,
ISetupGameRequest,
IPlayGameRequest,
IMovePieceRequest,
ISelectPieceRequest,
PieceType,
Move,
} from "./.rtag/typ... |
<reponame>ficsit/data-engineering
import { UAssetFile } from './UAssetFile';
import { UBaseFile } from './UBaseFile';
import { UExpFile } from './UExpFile';
import { ULocalizationResource } from './ULocalizationResource';
import { UObject } from './UObject';
import { UInt32, UnrealString } from './primitive';
import { ... |
<reponame>alexhrao/mine-solver
import './Confetti.scss';
interface Particle {
color: string;
color2: string;
x: number;
y: number;
diameter: number;
tilt: number;
tiltAngleIncrement: number;
tiltAngle: number;
}
export class Confetti {
public maxCount: number = 150;
public spee... |
import React, { useEffect, useState } from 'react';
import { Keyboard, Text, View } from 'react-native';
import { Button, TextInput } from 'react-native-paper';
import RNPickerSelect, { Item } from 'react-native-picker-select';
import { ScrollView } from 'react-native-gesture-handler';
import { SafeAreaView } from 'rea... |
import { Component, Injectable, OnInit } from '@angular/core';
import { MenuService } from '../../service/menu.service'
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { MatInpu... |
import * as Youtubedl from "youtube-dl";
import * as fs from "fs";
const vttJson = require("vtt-json");
const playlistDataLocation = "./playlist_data/";
const temp = "./temp/";
let userThreads = 12;
interface PlaylistUpdates {
added: Set<string>;
removed: Set<string>;
}
export interface PlaylistJSON {
id: strin... |
<gh_stars>1-10
import { setConfig, createRegistration, core } from "@dsnp/sdk";
import { RegistryUpdateLogData } from "@dsnp/sdk/core/contracts/registry";
import { providers } from "ethers";
import {
SignedBroadcastAnnouncement,
SignedReplyAnnouncement,
SignedProfileAnnouncement,
SignedAnnouncement,
SignedGra... |
<reponame>CyanoHao/ot-builder<filename>packages/io-bin-layout/src/shared/coverage.ts<gh_stars>10-100
import { NonNullablePtr16, NullablePtr16 } from "@ot-builder/bin-composite-types";
import { BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import { Assert, Errors } from "@ot-builder/errors";
import { OtGl... |
// file: micro.ts
// micro implementation for web controls using html templates and behaviors.
// <reference path="JsonParse.ts" />
// <reference path="utils.ts" />
// eslint-disable-next-line no-unused-vars
enum MicroState {
PREP = 1,
INIT = 2,
LOADED = 3
}
class MicroRegistry {
protected _t... |
import express from "express";
import {
OptionsJson,
OptionsUrlencoded,
OptionsText,
Options as OptionsRaw,
} from "body-parser";
import {
registerRouteLogger,
registerErrorLogger,
LoggerOptions,
ErrorLoggerOptions,
} from "./logger";
import winston from "winston";
import createError from "http-errors";... |
<gh_stars>1-10
import { TextBasedChannel, Message, MessageButton, MessageActionRow, MessageEmbed } from "discord.js";
import { data, open } from "./data_manager";
import { PlayerData, QMap } from "./queue_data_structs";
/**
* when used with await, sleep for the specified time in ms
*
* @param ms The time in ms to ... |
<reponame>ButterCheezii/fchat-rising
import * as remote from '@electron/remote';
import * as fs from 'fs';
import * as path from 'path';
import {promisify} from 'util';
import {Message as MessageImpl} from '../chat/common';
import core from '../chat/core';
import {Character, Conversation, Logs as Logging, Settings} fro... |
import Alliance, { Member } from './alliance';
import AM4APIError from './error';
import { fetch } from 'undici';
import Status from './status';
import Plane from '../lib/plane';
import type { AM4 as AM4Db } from '@typings/database';
import type AM4Client from '@source/index';
import type * as AM4 from '@typings/am4-a... |
// @ts-nocheck
/* eslint-disable */
/* tslint:disable */
/* prettier-ignore-start */
/** @jsxRuntime classic */
/** @jsx createPlasmicElementProxy */
/** @jsxFrag React.Fragment */
// This class is auto-generated by Plasmic; please do not edit!
// Plasmic Project: mBKHaRhjQbiZuznDyARcTS
// Component: kz5Y7kNyM-O
impo... |
import { CartPricingConfig } from '@components/cart/cartStatics'
import { ICartState, IChangeLicenseData, IChangeQty, LicenseEnum } from '@et/types/Cart'
import { IProducts } from '@et/types/Products'
import { IState } from '@et/types/State'
import { removeProductFromCart, updateCartItemQty as updateCartItem } from '@r... |
<gh_stars>100-1000
/* eslint-disable no-await-in-loop */
/* eslint-disable import/first */
/* eslint-disable import/no-cycle */
/* eslint-disable class-methods-use-this */
/* eslint-disable max-classes-per-file */
/* eslint-disable no-restricted-syntax */
/* eslint-disable import/extensions */
import State from '../St... |
<filename>src/plugins/specification.ts
import {
Handler,
Request as ExpressRequest,
RequestHandler as ExpressRequestHandler,
Response as ExpressResponse,
} from 'express'
import {
HeaderObject,
HeadersObject,
ParameterLocation,
ParameterObject,
RequestBodyObject,
ResponseObject,
} from 'openapi3-ts'... |
import React, { useEffect, useState } from "react";
import useApi from "../../hooks/useApi";
import LoadingOverlay from "../../components/LoadingOverlay";
import { MemberRole, useAuth } from "../../services/auth";
import { FaCheck, FaPencilAlt } from "react-icons/fa";
import EditOrganizationForm from "../../components/... |
import * as http from 'http';
import { promisify } from 'util';
import * as zlib from 'zlib';
import * as fs from 'fs-extra';
import * as path from 'path';
import fetch from 'node-fetch';
import { shared } from './shared';
import { escapeDiscord, secondsToTimeString, uppercaseFirstLetter } from './util';
interface Sc... |
<filename>src/nhltvProvider.ts
import * as fs from "fs";
import * as _ from "lodash";
import * as luxon from "luxon";
import axiosRestyped from "restyped-axios";
import {
getAuthSession,
AuthSession,
} from "./nhltvAuth";
import {
download,
} from "./download";
import {
Config,
getHlsProcessedStreams,
Offs... |
import {
Component, OnInit,
ViewEncapsulation, ViewChild, ElementRef,
ChangeDetectorRef, EventEmitter, Output, OnDestroy,
Input, Injectable, OnChanges, SimpleChanges, AfterContentInit
} from '@angular/core';
import { LoaderService } from 'meepo-loader';
import { MeepoCache } from 'meepo-base';
import { ... |
import { propagation, ROOT_CONTEXT, Span, Tracer } from '@opentelemetry/api'
import { ApolloServer } from 'apollo-server-lambda'
import {
APIGatewayProxyEvent,
APIGatewayProxyHandler,
Handler,
} from 'aws-lambda'
import typeDefs from '../../../app-graphql/src/schema.graphql'
import { assertIsAuthMode } from... |
<filename>src/app/types/__tests__/k9Format.test.ts
import { ISODuration } from '@navikt/sif-common-utils/lib';
import {
itemsAreValidISODateRanges,
K9FormatArbeidstid,
K9FormatArbeidstidPeriode,
K9FormatArbeidstidTid,
K9FormatBarn,
K9FormatTilsynsordningPerioder,
k9FormatTypeChecker,
} from ... |
<gh_stars>1-10
// Usage nano-number.ts wallet_id nano_account
import { fail } from "assert/strict";
import { exec } from "child_process";
import { mainModule } from "process";
import * as fs from 'fs';
const axios = require('axios').default;
const wallet = process.argv[2]
const my_account = process.argv[3]
const u... |
<filename>src/messaging/messages/allocation.ts
import { IAllocationAccountField } from '../fields/allocation-account/allocation-account';
import { IAllocationIdField } from '../fields/allocation-id/allocation-id';
import { IAllocationShareCountField } from '../fields/allocation-share-count/allocation-share-count';
impo... |
import {
FUNDING_RATE_MAX_ABS_VALUE,
FUNDING_RATE_MAX_ABS_DIFF_PER_UPDATE,
FUNDING_RATE_MAX_ABS_DIFF_PER_SECOND,
INTEGERS,
} from '../src/lib/Constants';
import {
BaseValue,
BigNumberable,
FundingRate,
Price,
address,
} from '../src/lib/types';
import { fastForward } from './helpers/EVM';
import {
e... |
<reponame>Rijul5/TURN-Test<filename>sprotty/client/src/features/move/move.ts
/*
* 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.or... |
<reponame>alizenguyen/ethereal
import {Vector2} from 'three/src/math/Vector2'
import {Vector3} from 'three/src/math/Vector3'
import {Vector4} from 'three/src/math/Vector4'
import {Quaternion} from 'three/src/math/Quaternion'
import {Euler} from 'three/src/math/Euler'
import {Color} from 'three/src/math/Color'
import {B... |
<gh_stars>1-10
var scene: BABYLON.Scene;
var openedDb: IDBDatabase;
var meshesObjectStore: IDBObjectStore;
var worker: Worker;
//BABYLON.Scene.prototype._getNewPosition = function (position: BABYLON.Vector3, velocity: BABYLON.Vector3, colliderRadius: BABYLON.Vector3, maximumRetry: number, finalPosition: BABYLON.Vect... |
import { PrimaryButton } from 'office-ui-fabric-react/lib/Button';
import * as React from 'react';
import { RouteComponentProps, withRouter } from 'react-router-dom';
import { ArtificialsDialog } from '../components/ArtificialsDialog/ArtificialsDialog';
import { Feed } from '../components/Feed/Feed';
import { HumansDia... |
import Redis from 'ioredis';
import { GatewayClient } from '../GatewayClient';
import { Base, Shard, Guild, UnavailableGuild } from 'eris';
import { DataClient } from '../DataClient';
import { Stats, ShardStats, RawClusterStats } from '../stats';
export interface PubSubOptions {
redisPort?: number,
redisPasswo... |
<filename>lib/utils/meta.ts
import Module from "module"
import { spawnSync } from "child_process"
import path from "path"
import fs from "fs"
import type { Rule } from "eslint"
import { getSemverRange, maxNextVersion } from "./semver"
import type { SemVer } from "semver"
import { minVersion, satisfies } from "semver"
i... |
// mtg.ts testing file
// Imports
import { Deck, Card } from "../src/scry/mtg";
import { suite, test } from "@testdeck/mocha";
// Chai setup, mandatory for promised based tests
const chai = require("chai");
const expect = chai.expect;
const assert = chai.assert;
chai.use(require("chai-as-promised"));
// MTG, Card cla... |
import { Component, OnInit } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { interval, Subscription } from 'rxjs';
import { Chart, ChartColor } from 'chart.js'
// TODO move settings to a seperate file
import { Settings, DetectionMode, VideoMode, LiveResolution } from '../... |
import {Component, OnInit} from '@angular/core';
import {I18n} from '@ngx-translate/i18n-polyfill';
import {NgbModal, NgbModalRef} from '@ng-bootstrap/ng-bootstrap';
import {to} from 'tsfun';
import {FieldDocument} from 'idai-components-2';
import {M} from '../messages/m';
import {ExportModalComponent} from './export-m... |
import { h } from "@cycle/react"
import {
Grid,
IconButton,
List,
ListItem,
ListItemSecondaryAction,
ListItemText,
TextField,
} from "@material-ui/core"
import { Delete } from "@material-ui/icons"
import { Component, createRef, RefObject } from "react"
import {
BehaviorSubject,
combineLatest,
fromEv... |
import { EventEmitter } from 'events';
import { TextType } from '@uprtcl/documents';
import {
AppElement,
AppElements,
Evees,
ParentAndChild,
RecursiveContextMergeStrategy,
getConceptPerspective,
Secured,
Perspective,
getHome,
UpdatePerspectiveData,
Logger,
Join,
} from '@uprtcl/evees';
import ... |
/**
* @preserve Copyright 2010-2020 <NAME>.
* This source code is subject to terms and conditions.
* See LICENSE.MD.
*/
import BaseEnemy from "../Base/BaseEnemy";
import CGAColors from "../Constants/CGAColors";
import GameLoop from "../GameLoop";
import getPhaserLocations from "../Player/GetPhaserLocation... |
/*
* File: Bitbloq.ts
* Project: Bitbloq
* License: MIT (https://opensource.org/licenses/MIT)
* Bitbloq Repository: https://github.com/bitbloq
* Bitbloq Team: https://github.com/orgs/Bitbloq/people
* Copyright 2018 - 2019 BQ Educacion.
*/
import * as THREE from "three";
import { isEqual } from "lodash";
import ... |
<gh_stars>1-10
import * as http from 'http';
import * as https from 'https';
import * as net from 'net';
import * as tls from 'tls';
import { pki } from 'node-forge';
import { createFakeCertificateByDomain, createRootCA } from './ca';
type RequestProtocol = 'http' | 'https';
interface Context {
request: {
proto... |
<gh_stars>0
import { ChromeBrowser } from "../debuggers/chrome";
import { delay } from "../utils/promise";
import { assert, assertNever, compareNumbers, equalsArray, lines } from "../utils/utils";
import { FirefoxBrowser } from "../debuggers/firefox";
import { randomArrayElement, randomTrue, shuffle } from "../utils/ra... |
<filename>libraries/grpc-sdk/src/index.ts<gh_stars>10-100
import {
Admin,
Chat,
Config,
Core,
DatabaseProvider,
Email,
Forms,
PushNotifications,
Router,
SMS,
Storage,
} from './modules';
import { Authentication } from './modules/authentication';
import Crypto from 'crypto';
import { EventBus } fro... |
<reponame>Notarangelo-smeup/ketchup<filename>packages/ketchup-showcase/src/mock/form/form-utils.ts<gh_stars>1-10
export function buildFormEventCallback(eventType: string) {
return (detail: any) => formEventCallbackCall(eventType, detail);
}
export function formEventCallbackCall(eventType: string, detail: any) {
co... |
import { AggregationFunction } from '@neode/querybuilder'
import React, { useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { aggregateFunctions, Condition, conditions } from '../../constants'
import { RootState } from '../../store'
import { addPredicate, addRelationship, addReturn, ... |
<filename>frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts<gh_stars>0
import * as fs from 'fs';
import * as path from 'path';
import * as tsdoc from '@microsoft/tsdoc';
import chalk from 'chalk';
import * as ejs from 'ejs';
import * as _ from 'lodash';
import * as tsu from 'tsutils';
import * as ts ... |
import { useState, useCallback, forwardRef } from 'react';
import { UseFormReturn, UseFormRegisterReturn, Path, FieldError, UnpackNestedValue, PathValue } from 'react-hook-form';
import Cropper from 'react-easy-crop';
import { useGoogleAnalytics, useShare } from 'hooks/Utils';
import API from 'api/api';
import { useSna... |
<reponame>typedapi/typedapi<filename>server-ws/src/WebSocketServer.ts
import * as http from "http"
import {
server as WsServer,
request as WsRequest,
connection as WsConnection,
IMessage,
} from "websocket"
import {
JsonEncoderInterface,
RequestError,
ServerMessage,
ClientMessage,
} from... |
<gh_stars>0
import { Model } from "./Model";
import { IDictionary } from "common-types";
// tslint:disable-next-line:no-implicit-dependencies
import { RealTimeDB } from "abstracted-firebase";
import { Record } from "./Record";
import { IFmModelPropertyMeta } from "./decorators";
import { fbKey } from "./index";
import ... |
<reponame>expertasolutions/AzDo.AzureADApplicationExtensions
import tl = require('azure-pipelines-task-lib/task');
import msRestNodeAuth = require('@azure/ms-rest-nodeauth');
import azureGraph = require('@azure/graph');
import { RequiredResourceAccess, ServicePrincipal, OAuth2PermissionGrantListOptionalParams } from '@... |
<filename>packages/hint-validate-set-cookie-header/src/hint.ts
/**
* @fileoverview This hint validates the `set-cookie` header and confirms that it is sent with `Secure` and `HttpOnly` directive over HTTPS.
*/
import { debug as d } from '@hint/utils/dist/src/debug';
import { normalizeString } from '@hint/utils/dist/... |
// 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... |
<reponame>sudoplatform/sudo-ad-tracker-blocker-js
import {
DefaultConfigurationManager,
DefaultLogger,
Logger,
} from '@sudoplatform/sudo-common'
import { SudoUserClient } from '@sudoplatform/sudo-user'
import { isEqual, pullAllWith, uniqWith } from 'lodash'
import { FilterEngine } from '../wasm/filter_engine'
i... |
import { JsonlDB as JsonlDBNative, JsonlDBOptions } from "./lib";
import path from "path";
function wrapNativeErrorSync<T extends (...args: any[]) => any>(
executor: T,
): ReturnType<T> {
try {
return executor();
} catch (e: any) {
throw new Error(e.message);
}
}
async function wrapNativeErrorAsync<T extends ... |
import * as isa from "@thi.ng/checks/is-array";
import * as isi from "@thi.ng/checks/is-not-string-iterable";
import { SVG_NS, SVG_TAGS } from "@thi.ng/hiccup/api";
import { css } from "@thi.ng/hiccup/css";
import { HDOMImplementation, HDOMOpts } from "./api";
const isArray = isa.isArray;
const isNotStringAndIterable ... |
import AlbumHelper from '@Helpers/AlbumHelper';
import PVHelper from '@Helpers/PVHelper';
import AlbumType from '@Models/Albums/AlbumType';
import ArtistCategories from '@Models/Artists/ArtistCategories';
import ArtistRoles from '@Models/Artists/ArtistRoles';
import ContentFocus from '@Models/ContentFocus';
impor... |
<gh_stars>1-10
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'decimalFormat' })
export class DecimalFormatPipe implements PipeTransform {
transform(value: string, format: string = "###,###.00"): string {
const df = new DecimalFormat(format);
return df.format(value);
}
}
/**
* @class ... |
<filename>src/hocs/record-card/index.ts<gh_stars>1-10
/**
* Copyright 2018 ZenyWay S.A.S., <NAME>
* @author <NAME>
* @license Apache Version 2.0
*
* 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 Li... |
import * as fs from 'fs';
import * as pth from 'path';
import * as ts from 'typescript';
import { CLIEngine, Linter } from 'eslint';
import { Provider } from '../services';
import { formatProjectResults, formatFailureMessage } from './Formatter';
import {
ExitCode,
IFileMessages,
IMessageInfo,
IProjectResults,... |
<reponame>CloudBogdan/deep-strange-planet<gh_stars>0
import { ISpriteProps } from ".";
import { Color, Config, GeneratorConfig } from "../config";
import { Particle } from "./components/Particles";
import { Game } from "./Game";
import { safeValue, Vector2 } from "./utils/math";
type RendererLayer = {
render: bool... |
<reponame>magnetomax/alakajam
import Bluebird from "bluebird";
import { BookshelfCollection, BookshelfModel } from "bookshelf";
import leftPad from "left-pad";
import { intersection } from "lodash";
import cache from "server/core/cache";
import constants from "server/core/constants";
import db from "server/core/db";
im... |
<gh_stars>0
import type {
WalletRecordWithId, DocumentRecord, AccountKnowledgeRecord, AccountInfoRecord, AccountRecord
} from './schema'
import type { DebtorInfoV0, AccountKnowledgeV0 } from '../canonical-objects'
import type { DebtorData, BaseDebtorData } from '../../debtor-info'
import { db } from './schema'
impor... |
// import React from "react";
// import { OverviewTabContent } from "./OverviewTabContent";
// import { SingleTabContextMenu } from "./SingleContextMenu";
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { OverviewTabContextMenu } from "./OverviewTabContextMenu";
import "./overv... |
import {isInKebabCase, kebabCase} from "@wessberg/stringutil";
import {
DEFAULT_OBJECT_POSITION,
OBJECT_FIT_ATTRIBUTE_NAMES,
OBJECT_FIT_PROPERTY_NAME,
OBJECT_POSITION_ATTRIBUTE_NAMES,
OBJECT_POSITION_PROPERTY_NAME,
REPURPOSED_CSS_PROPERTY_NAME,
WRAPPABLE_STYLE_PROPERTIES
} from "../constant/constant";
import {CS... |
<gh_stars>0
import fs from "fs";
import os from "os";
import globby from "globby";
import path from "path";
import util from "util";
import { IConnection } from "vscode-languageserver";
import { URI } from "vscode-uri";
import Parser, { Tree } from "web-tree-sitter";
import { Forest } from "./forest";
import { Imports ... |
import asyncValidator, {RuleItem} from 'async-validator';
import autobind from 'autobind-decorator';
import classNames from 'classnames';
import isEqual from 'lodash/isEqual';
import moment from 'moment';
import * as React from 'react';
import {errorNotification} from '../drawUtils';
import {Observable, ObservableHand... |
<reponame>daysai/dynamicLoader
const PREFIX = 'dyloader';
const winFetch = window.fetch;
const COMMENT_REGEX = /<!--.*?-->/g;
const SCRIPT_REGEX = /<script\b[^>]*>([^<]*)<\/script>/gi;
const SCRIPT_SRC_REGEX = /<script\b[^>]*src=['"]?([^'"]*)['"]?\b[^>]*>/gi;
const LINK_HREF_REGEX = /<link\b[^>]*href=['"]?([^'"]*)['"]... |
<gh_stars>0
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
CommonObjectAttributes,
_decode_CommonObjectAttributes,
_encode_CommonObjectAttributes,
} from "../PKCS... |
import { IKLineRow } from '@/api/stock/model/IKLineResult';
import { getKLineM5 } from '@/api/stock/stock-api';
import useGrid from '@/components/grid/hooks/useGrid';
import { calcNextPrice, mathRound } from '@/helpers/StockHelper';
import { ElLoading, ElMessage } from 'element-plus';
import { ref } from 'vue';
... |
import {
View,
Text,
StyleSheet,
SafeAreaView,
Modal,
Alert,
Dimensions,
} from "react-native";
import React from "react";
import { SafeAreaProvider } from "react-native-safe-area-context";
import ScheduleCalendar from "../../components/ScheduleCalendar";
import { DateData } from "react-native-calendars";... |
import {
ExtractVisageComponentProps,
markAsVisageComponent,
} from '@byteclaw/visage-core';
import { useStaticCallbackCreator } from '@byteclaw/use-static-callback';
import React, {
memo,
forwardRef,
Ref,
useState,
KeyboardEventHandler,
MouseEventHandler,
ReactElement,
useMemo,
useRef,
} from 're... |
<reponame>terascope/teraslice
import path from 'path';
import { EventEmitter } from 'events';
import {
random,
isString,
getTypeOf,
isFunction,
debugLogger,
Logger,
makeISODate
} from '@terascope/utils';
import * as i from './interfaces';
function newId(prefix: string): string {
return ... |
// eslint-disable-next-line no-restricted-imports
import EventEmitter from "events";
// load olm before the sdk if possible
import '../olm-loader';
import { logger } from '../../src/logger';
import { IContent, IEvent, IUnsigned, MatrixEvent, MatrixEventEvent } from "../../src/models/event";
import { ClientEvent, Even... |
import React, {
useEffect, useRef, useState, MouseEvent,
} from 'react';
import { Col, Container, Row } from 'react-bootstrap';
import { Header, Label, Message } from 'semantic-ui-react';
import BootstrapSwitchButton from 'bootstrap-switch-button-react';
import './App.css';
import TopNav from './ui/TopNav';
import Bo... |
import { exec } from 'child_process'
import { isIP } from 'net'
import jsonVendors from './vendors.json' // from https://macaddress.io/database-download/json
export interface IArpTableRow {
ip: string
mac: string
type: 'static' | 'dynamic',
vendor: string
}
export type IArpTable = IArpTableRow[]
interface I... |
// IMPORTS
// ================================================================================================
import { FiniteField, Vector, Matrix, Assertion, LogFunction } from "@guildofweavers/genstark";
import { AirContext, ConstraintDescriptor, ProvingContext, VerificationContext } from "@guildofweavers/air-assemb... |
<filename>src/chordinator.ts
import * as _ from 'lodash';
export enum StringState {
muted = "muted",
open = "open",
none = ""
}
export interface Finger {
number: number;
case: number;
from : number;
to?: number;
}
export interface Chord {
name: string;
stringTop: StringState[];
... |
import { Vector3 } from 'three';
export const doBenchmark = false;
export const queryLength = 18;
// Simulation Parameters
export const dt = 0.001; // Timestep
export const gravity = new Vector3(0.0, -9.8, 0.0); // Gravity
// Grid Parameters
export const minCorner = new Vector3(-1.0, -1.0, -1.0); // Min corner of ... |
import { getWebGLContext, initShaders } from '@/libs/cuon-utils';
import {
computeNDCEndPositions,
updateVertexIndices,
updateRectanglePoints,
} from '@/utils/gl-compute';
import {
bindArrayBuffer,
initTexture,
updateBuffersData,
} from '@/utils/gl-bind';
import { computeCurveParams } from './compute';
imp... |
import cn from 'classnames';
import React, { useEffect, useState } from 'react';
import { SOLUTION_LOGO_IMAGE_TYPES } from '../../../../globals/constants';
import Styles from './SolutionCardItem.scss';
import { IAllSolutionsListItem, ILocation, INotebookInfoSolutionId } from '../../../../globals/types';
import { histor... |
//
// WARNING
//
// Do not make manual changes to this file.
// This file was generated by scripts/generate-icons.js.
//
//
export { AbroadIcon } from './AbroadIcon';
export { AddCircleIcon } from './AddCircleIcon';
export { AddIcon } from './AddIcon';
export { AlarmOffIcon } from './AlarmOffIcon';
export { AlarmIcon ... |
<reponame>rafidka/HadithHouseApi
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 <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 limi... |
import './kp-value-editor.less';
import * as angular from 'angular';
import {
IAugmentedJQuery,
IDoCheck,
IDocumentService,
IFormController,
Injectable,
IOnChanges,
IOnDestroy,
IOnInit,
IQService,
ITemplateCacheService,
ITimeoutService
} from 'angular';
import NgModelConnecto... |
<reponame>privy-io/privy-crypto-js
import axios from 'axios';
import {fetchAPIKeys} from './api_keys';
import {PrivyClient, FieldInstance, BatchOptions} from '../../src';
import uniqueId from '../unique_id';
const PRIVY_API_URL = process.env.PRIVY_API_URL || 'http://127.0.0.1:2424/v0';
const PRIVY_KMS_URL = process.en... |
<filename>src/app/ol3-map/ol3-map.component.ts
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
ViewChild
} from '@angular/core';
import { IGeoFeature } from '../search/result';
import {
control,
Coordinate,
extent,
Extent,
forma... |
/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
import { Components, JSX } from '@vime/core';
interface VimeMenuItemProps {
/** The `id` attribute of the item. */
identifier?: Components.VimeMenuItem["identifier"]
/** Whether the item is displayed or not. */
hidden?: Components.VimeMenuItem["hi... |
<reponame>dr-mohamed-benkhalifa/ontimize-web-ng2
import {Component, ElementRef, EventEmitter, forwardRef, Inject, Injector,
OnInit, ViewChild, Optional, ChangeDetectorRef, NgZone,
NgModule,
ModuleWithProviders,
ViewEncapsulation} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormC... |
import { Point, Rectangle } from '@pixi/math';
import { Plugin } from './Plugin';
import ease from '../ease';
import type { Drag } from './Drag';
import type { IDecelerateOptions } from './Decelerate';
import type { Pinch } from './Pinch';
import type { Viewport } from '../Viewport';
/** Options for {@link Bounce}. *... |
<gh_stars>1-10
/// <reference types="node" />
import { EventEmitter } from "events";
import { SrpServer } from "fast-srp-hap";
import { IncomingMessage, ServerResponse } from 'http';
import { Socket } from 'net';
import { CharacteristicValue, Nullable, SessionIdentifier } from '../../types';
export declare type HAPUser... |
// Copyright (c) 2021 Microsoft
//
// 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... |
// Copyright (c) 2016 <NAME>
// MIT License, see LICENSE file for full terms.
import { ipcMain } from 'electron';
import {
ipcChannels, ISimpleMessage, IRequest, IConnectMessage, IDisconnectMessage, IResponse,
IErrorResponse, MessageKind, Message
} from '../common/ipc/ipc-node';
interface IPendingRequest {
id: ... |
import React, {useState, useEffect, useRef, KeyboardEvent, useCallback} from 'react';
import {connect, ConnectedProps} from 'react-redux';
import {sendMessages} from '../../../actions/messages';
import {withRouter} from 'react-router-dom';
import {Button} from 'components';
import {cyMessageSendButton, cyMessageTextAre... |
import gpatterns = require("./graphpatterns");
export interface ISelectQueryStringProducer {
fromGraphPatternAndFilterExpression(prefixes: ReadonlyArray<IPrefix>, graphPattern: gpatterns.TreeGraphPattern,
filter?: IFilterExpression): string;
}
export interface IInsertQueryStrin... |
import { Campaign, Deal } from '@models';
import { Inject, Injectable, NotFoundException } from "@nestjs/common";
import { Cron, CronExpression } from '@nestjs/schedule';
import { ActivityRepository, AttachmentRepository, CampaignGroupRepository, CampaignRepository, CustomerRepository, DealRepository, GroupRepository,... |
<reponame>DidjaRedo/BotStuff
/*
* Copyright (c) 2020 <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... |
<gh_stars>0
import {Component, Input, OnInit, ViewContainerRef} from "@angular/core";
import * as appSettings from "tns-core-modules/application-settings";
import {CheckListService} from "~/app/inspection-module/tabs/services/checkList/checkList.service";
import {ModalDialogOptions, ModalDialogService} from "nativescri... |
<reponame>salujajaskeerat/Rest_API_Server
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import * as slug from 'slug';
import {validationResult} from 'express-validator/check';
import {Request, Response, NextFunction} from 'express';
import {Types} from 'mongoose';... |
import {
ASTNode,
visit,
IntrospectionQuery,
buildClientSchema,
printSchema,
parse,
DocumentNode,
DirectiveNode,
ScalarTypeDefinitionNode,
EnumTypeDefinitionNode,
FragmentDefinitionNode,
FieldNode,
BREAK
} from "graphql"
const objectPath = require("object-path")
export interface TableCommonCo... |
// Load gltf models.
/// <reference types="@webgpu/types" />
import * as demotypes from '../demotypes';
import * as glmatrix from 'gl-matrix';
import * as wg from '../../src';
import * as shaderlib from '../shaderlib';
import * as cameras from '../cameras';
import * as models from '../models';
// ---- Demo parameter
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.