text stringlengths 3.3k 33k |
|---|
<filename>src/app/force/opt/opt-selection-factory.ts<gh_stars>1-10
/** @noSelfInFile **/
import { Game } from "../../game";
import { Log } from "../../../lib/serilog/serilog";
import { Trigger, MapPlayer, Dialog, DialogButton } from "w3ts";
import { COL_GOOD, COL_BAD, COL_MISC, COL_ALIEN } from "resources/colours";
imp... |
<reponame>zanachka/noderdom
import AwaitedHandler from '../AwaitedHandler';
import StateMachine from '../StateMachine';
import AwaitedPath from '../AwaitedPath';
import { IHTMLInputElementIsolate } from '../interfaces/isolate';
import { IFileList, IHTMLFormElement, IValidityState, ISelectionMode } from '../interfaces/o... |
<reponame>mertmisirlioglu/Catch_The_Mert<filename>ts/States/Gameplay.ts
import 'p2';
import 'pixi';
import 'phaser';
import IGame from '../Fabrique/IGame';
// import Label from '../Objects/Label';
// import Label from '../Objects/LabeledButton';
// import {Sounds, Constants, Atlases} from '../Data';
// import {Menu}... |
<reponame>MindXL/koishi
import MongoDatabase, { Config } from './database'
import { User, Tables, Database, Field, Context, Channel, Random, pick, omit, TableType, Query } from 'koishi-core'
export * from './database'
export default MongoDatabase
declare module 'koishi-core' {
interface Database {
mongo: MongoD... |
<filename>src/uncommon.ts
// ==UserScript==
// @name Mangadex Uncommon functions
// @version 0.0.7
// @description WARNING Should NOT be required by other userscripts. Lets be honest, no one else wants this crap. This is a personal library for personal problems.
// ==/UserScript==
/* eslint no-unused-vars: ["off"]... |
/**
* subscribe.js implements subscriptions to several observables at once.
*
* E.g. if we have some existing observables (which may be instances of `computed`),
* we can subscribe to them explicitly:
* let obs1 = observable(5), obs2 = observable(12);
* subscribe(obs1, obs2, (use, v1, v2) => console.log(v1,... |
import { isEqual, some } from 'lodash';
import { Color, Data, Edge, Font, Node, Options } from 'vis-network';
import { ExtensionContext } from 'vscode';
import { NodeColor, PanelViewColors, PanelViewInputVariableMap, PanelViewVariable, VariableRelation } from '../../model/panelViewInput';
import { ChangeAction, Changed... |
import { GuildMember, integer, Internal, snowflake, timestamp, User } from '.'
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
export interface Channel {
/** the id of this channel */
id: snowflake
/** the type of channel */
type: integer
/** the id of the guild ... |
<gh_stars>0
import { ComponentPMT, CurrentTime, MediaType, ProgramInfoMessage, ResponseMessage, Param, MirakLiveParam, EPGStationRecordedParam } from "../server/ws_api";
export class LongJump extends Error { }
function getParametersFromUrl(url: string): Param | {} {
const pathname = new URL(url).pathname;
cons... |
const React = require("react");
import { Button, Divider, TextField, Typography } from "@material-ui/core";
import { Icon } from "semantic-ui-react";
import { connect } from "react-redux";
import { makeStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
import Table from "@material-ui... |
<reponame>dan-kez/clarity
import { EncodedPayload, Event, Metric, Token, Transit, UploadData } from "@clarity-types/data";
import config from "@src/core/config";
import measure from "@src/core/measure";
import { time } from "@src/core/time";
import { clearTimeout, setTimeout } from "@src/core/timeout";
import encode fr... |
<filename>Kroeg.Client/js/EntityStore.ts<gh_stars>1-10
import { Session } from "./Session";
import { ASObject } from "./AS";
import * as jsonld from "jsonld";
export type ChangeHandler = (oldValue: ASObject, newValue: ASObject) => void;
export type NotifyHandler = (id: string) => void;
export class StoreActivityToken... |
import * as Svg from '@svgdotjs/svg.js';
import { splitLines } from '../../parse/splitLines';
import parseDotBracket from '../../parse/parseDotBracket';
interface SecondaryStructure {
secondaryPartners: (number | null)[];
tertiaryPartners: (number | null)[];
}
interface TertiaryInteraction {
side1: [number, num... |
import { defineStore } from 'pinia'
import axios from 'axios'
import { hash, rand as prng } from '~/utils/prng'
import prepareSearchQueryParams from '~/utils/prepare-search-query-params'
import type { DetailFromMediaType, Media } from '~/models/media'
import {
FetchState,
initialFetchState,
updateFetchState,
} ... |
import React from 'react';
import { connect } from 'react-redux';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Row, Col, Label } from 'reactstrap';
import { AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation';
// tslint:disable-next-line:no-unused-variable
import ... |
<filename>src/app/theme/components/recorrencia/recorrencia.ts
import { Component, ViewChild, Input, Output, ChangeDetectorRef, ChangeDetectionStrategy, EventEmitter, ElementRef, Renderer, OnInit, HostListener, OnChanges, Self } from '@angular/core';
import { ReturnStatement } from '@angular/compiler/src/output/output_a... |
const pathPartSuffix = " . ";
export function joinPathHashes(lhs: EyeTypes.Path2, rhs: EyeTypes.Path2): string {
return lhs.pathHash + pathPartSuffix + rhs.pathHash;
}
const subPathDelimitter = " .# ";
const keyPathDelimitter = ` .$ `;
// If the suffix is replaced with this, then it will sort after all childre... |
<reponame>hufeng/iflux
import isEqual from 'fast-deep-equal';
import React, { useContext, useEffect, useRef, useState } from 'react';
import { StoreContext } from './context';
import { Store } from './store';
import { TRelaxPath } from './types';
import { isArray, isObj, isStr } from './util';
/**
* 获取数据从当前的store获取,因... |
<filename>src/lib/create-column.ts
import glamorous, { CSSProperties } from 'glamorous'
import calcRem from '../helpers/calc-rem'
import styleDiff from '../helpers/style-diff'
import conditionalStyles from '../helpers/conditional-styles'
import { GridOptions, Gutter } from './create-grid'
import { GlamorousComponent... |
<reponame>AnemoneStar/shibunyan
import { ObjectValue } from "../object_value";
import { NotImplementedError } from "../error";
import { BinaryReader, Endian } from "../binary_reader";
import { bmpGenerator } from "../bmp_generator";
import { WASM_PAGE_SIZE } from "../utils";
import etc2Decoder = require("./wasm/etc2");... |
<reponame>honmanyau/advent-of-code
import { assert } from 'console';
import * as fs from 'fs';
import * as path from 'path';
import { green, logDuration } from '../utilities';
if (process.env.SOLVE && process.env.SOLVE.toLowerCase() === 'true') {
const challengePathname = path.resolve(__dirname, './input.txt');
... |
/**
* @author <NAME>
*/
import {
BoxGeometry,
DoubleSide,
Mesh,
MeshBasicMaterial,
Object3D,
Plane,
PlaneGeometry,
Raycaster,
Scene,
SphereGeometry,
Vector3
} from "three";
import Project from "../project/Project";
// The control mode is used to determine which planes and axes to enable.
// Whi... |
import axios from 'axios'
const _ = require('lodash')
export class localEs {
async search(esQuery: any, routeQuery: any, index: any): Promise<any> {
const startTime = Date.now() // 開始時間
/*
let index: any = await axios.get(
process.env.BASE_URL + '/' + process.env.index
)
*/
index = aw... |
<reponame>ZhuoZhuoCrayon/bk-nodeman<filename>frontend/src/api/index.ts
import Vue from 'vue';
import axios, { AxiosError, AxiosInstance } from 'axios';
import cookie from 'cookie';
import CachedPromise from './cached-promise';
import RequestQueue from './request-queue';
import { bus } from '../common/bus';
import { me... |
import { AST } from '../ast/ast';
import { ParseResult, ASTMixin } from '../ast/astbase';
import { HtmlBase } from './htmlbase';
import { PipeElement, ASTElementLayout } from '../elements/ASTElement';
import { SpaceElement } from '../elements/core/SpaceElement';
import { NewLineElement } from '../elements/core/NewLineE... |
import {
ChangeDetectorRef,
Directive,
EventEmitter,
Inject,
Injectable,
Input,
OnChanges,
OnDestroy,
Output,
SimpleChanges,
} from '@angular/core';
import { ModalController } from '@ionic/angular';
import { isoStringsToDate } from '@sneat/core';
import { emptyHappeningSlot, WeekdayCode2 } from '@sneat/dto';
... |
<filename>ethereum/gateway-eth-ts/src/GatewayTsCallData.test.ts
import { GatewayTsCallData } from './GatewayTsCallData';
import { BaseProvider, getDefaultProvider } from '@ethersproject/providers';
import { BigNumber, utils, Wallet } from 'ethers';
import { gatewayTokenAddresses } from './lib/gatewaytokens';
import { a... |
/*
* File: Rh2EffectsService.ts *
* Project: react-http-request-handler *
* Created Date: 2021 07 16 *
* Author: <NAME> *
* ... |
/*
* Copyright 2021, 2022 Macquarie University
*
* 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 l... |
<filename>src/AppParmsMod.ts
import * as UrlUtils from "./UrlUtils";
import * as KlattSyn from "klatt-syn";
export interface AppParms {
mParms: KlattSyn.MainParms;
fParmsA: KlattSyn.FrameParms[];
fadingDuration: number;
windowFunctionId: string;
refer... |
/// <reference types="@webgpu/types" />
import { LitElement, html, css, TemplateResult } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import * as demotypes from './demotypes';
import * as cameras from './cameras';
import * as lilgui from 'lil-gui';
import * as conway from './demos/conway';... |
Error.stackTraceLimit = Infinity;
// tslint:disable: no-console
// tslint:disable:variable-name
// tslint:disable:no-shadowed-variable
import * as async from "async";
import * as fs from "fs";
import * as path from "path";
import { promisify } from "util";
import { beforeTest, grep } from "./helpers";
import should =... |
<gh_stars>0
import {Person} from "./people";
import * as _ from 'lodash';
import {dayAndHourForDate} from "./common/date-utils";
import {isUndefined} from "util";
import {delete_from_array} from "./common/base_model";
import {Role} from "./role";
import {ConditionalRule} from "./rule_based/rules";
import {LoggingWrappe... |
import type { DataSource, DataSourceFactory, Nullable } from './data'
interface BaseOptions {
max: number
min: number
init: number
loop: boolean
unit: string
}
type InputOpts = {
maxDate: number[]
minDate: number[]
init: number
loop: boolean
unit: string
}
/**
* date source type.
*/
const DateS... |
/**
* © 2018 S.C. FORMULA DATABASE S.R.L.
* License TBD
*/
import { updateDOM, serializeElemToObj, evaluateHardCodedForNowFunctions, computeElementRules } from "./live-dom-template";
import { HTMLTools } from "@core/html-tools";
const htmlTools = new HTMLTools(document, new DOMParser());
export function wrapHTML(htm... |
import * as React from 'react';
import classNames from 'classnames';
import KZUIComponent, { baseDefaultProps } from '../base/component';
import Icon from '../icon/index';
import EventBlackHole from '../event-black-hole/index';
import Option from '../select/Option';
import Search from '../search/index';
import PopTip f... |
import { parseISO } from "date-fns";
import React from "react";
import { CheckCircle, Circle } from "react-feather";
import { Link } from "react-router-dom";
import { ButtonGroup } from "../../components/Button/ButtonGroup";
import { useFetch } from "../../core/hooks/UseFetch";
import { useLocalStorage } from "../../co... |
import React, { useState, useEffect } from 'react';
import { useGlobal } from 'reactn';
import Auth from '../auth/Auth';
import { Redirect, useHistory } from 'react-router-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
IState,
IToken,
IMainStrings,
Invitation,
... |
import React, { useState, Fragment, useEffect } from "react";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Paper,
Collapse,
IconButton,
Button,
TablePagination,
Menu,
MenuItem,
Box,
FormControl,
InputLabel,
Select,
CircularProgress,
Backdrop,
} from "@... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Directionality } from '@angular/cdk/bidi';
import { Overlay, OverlayRef, ScrollStrategy } from '@angular/cdk/... |
/**
* Available texture to 2 letter ISO-3166-1 country codes
*
*/
const FLAGS_CODE_TO_ISO = {
'1': 'SY',
'2': 'TH',
'3': 'TM',
'4': 'TN',
'5': 'TR',
'6': 'TT',
'7': 'TW',
'8': 'TZ',
'9': 'UA',
'10': 'UN',
'11': 'US',
'12': 'UY',
'13': 'UZ',
'14': 'VE',
'15': 'VN',
'16': 'PR',
'17': ... |
import { memoize } from "../../utils/decorators";
import { Observable, combineLatest, of, merge, throwError } from "rxjs";
import { fromFetch } from "rxjs/fetch";
import { map, switchMap, shareReplay, catchError } from "rxjs/operators";
import BN from "bn.js";
import {
decimalsToWei,
Fraction,
isEqualHex,
max,
... |
import React, { useEffect, useState } from "react";
import { User } from "types/user";
import { useDocumentTitle } from "utils";
import { useHttp } from "utils/http";
import { useAsync } from "utils/use-async";
import styled from "@emotion/styled";
import BGImage from "assets/img/personal-bg.png";
import { WomanOutline... |
"use strict";
// import fetch from 'node-fetch';
import * as request from 'request'; // important ist "* as ..."
// import { tasmotaAccess } from './api/tasmota';
let Accessory: any;
let Service: any;
let Characteristic: any;
let uuid: any;
type ILog = (msg: string) => void;
interface IShellyConfig {
servicetyp... |
import css from 'styled-jsx/css';
import KeyboardNumberInput from '../../keyboard-number-input';
import Slider from './slider';
import OptionsContainer from '../options-container';
import {useState, useEffect, useMemo} from 'react';
import * as stringMath from 'string-math';
import VideoMetadataContainer from '../video... |
import {dice} from "./dice";
import {math} from "./math";
const LuminanceC={
r:0.299,
g:0.587,
b:0.114
};
export const shaderHSL2RGB =
`
vec4 hsl2rgb (float h,float s,float l){
if (s==0.0) {
return vec4(l,l,l,1.0);
}
float sector = h*6.0;
... |
import express from 'express'
import * as admin from 'firebase-admin'
import * as functions from 'firebase-functions'
import * as fs from 'fs'
import Twit from 'twit'
import { InvitationInfo, isInvitationInfo } from './domain/Invitation'
import { toOgpValues } from './domain/OgpValues'
import { isTwitterUserInfo, Twitt... |
import * as vscode from 'vscode';
import { EventEmitter } from 'events';
const NetSocket = require("net").Socket;
const IrcSocket = require("irc-socket");
const express = require('express');
const app = express();
const portfinder = require('portfinder');
const messageEvent = new EventEmitter();
// we need to ... |
<gh_stars>100-1000
import {
AbiItem,
BurnDetails,
ContractCall,
EventEmitterTyped,
LockAndMintTransaction,
Logger,
NullLogger,
} from "@renproject/interfaces";
import {
assert,
assertType,
fromHex,
isDefined,
isHex,
Ox,
payloadToABI,
payloadToMintABI,
SECO... |
import {
Point,
Boundaries,
Rectangle,
QuadTreeRectangle,
RectangleCorners,
QuadTree
} from "../../utils/geometry/interfaces";
import collision from "../../utils/geometry/collision";
import { Identified, Keyed } from "../../../interfaces";
import isAxisAligned from "../../utils/geometry/isAxisAligned";
impo... |
import { Alpha2 } from "../Alpha2"
import { Alpha3 } from "../Alpha3"
import { Numeric } from "../Numeric"
export function from(country: Alpha2 | Alpha3 | Numeric): string {
return names[country] || from(Alpha2.from(country as Alpha3 | Numeric))
}
export function parse(country: string): Alpha2 | undefined {
const res... |
import Dom from '../dom';
import Listeners from './listeners';
import Flipper from '../flipper';
import SearchInput from './search-input';
import EventsDispatcher from './events';
import { isMobileScreen, keyCodes, cacheable } from '../utils';
import ScrollLocker from './scroll-locker';
/**
* Describe parameters for ... |
// Copyright 2020 <NAME>. MIT license.
import * as base64url from "https://deno.land/std@0.97.0/encoding/base64url.ts";
import { createHash } from "https://deno.land/std@0.97.0/hash/mod.ts";
import { serve } from "https://deno.land/std@0.97.0/http/server.ts";
/**
* Proof Key for Code Exchange (PKCE) client for the Sp... |
import {
AfterViewInit,
Component,
ViewChild,
OnDestroy,
Input,
OnInit,
ChangeDetectorRef,
NgZone
} from '@angular/core';
import { MatPaginator, MatSort } from '@angular/material';
import { Subscription, Observable } from 'rxjs';
import { delay } from 'rxjs/operators';
import { FormControl, FormGroup } ... |
<filename>ui/snapclient/src/app/mapping/mapping-table/mapping-table.component.ts
/*
* Copyright © 2022 SNOMED International
*
* 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:... |
<reponame>uhyo/tenji
import {
hiraganaTable,
dakuonList,
handakuonList,
yoonTable,
goyoonTable,
kigouTable,
numberTable,
alphabetTable,
kanjiTable,
alphabetKigouTable
} from "./table";
const NORMAL_MODE = 0;
const NUMBER_MODE = 1;
const ALPHABET_MODE = 2;
//カタカナ状態(漢点字)
const KATAKANA_MODE = 3;
exp... |
<reponame>nkihrk/seek-psd
import { Injectable, ChangeDetectorRef } from '@angular/core';
import { Subject, Observable, BehaviorSubject } from 'rxjs';
import { Psd } from 'ag-psd';
import { LayerInfo } from '../../model/layer-info.model';
import { Flgs } from '../../model/flgs.model';
import { PointerOffset } from '../.... |
import React, { Fragment } from 'react';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import IconButto... |
/* eslint-disable no-underscore-dangle */
import React from 'react'
import { DateTime } from 'luxon'
import * as firestore from 'firebase/firestore'
import * as storage from 'firebase/storage'
import { RouteComponentProps } from 'react-router-dom'
import {
animated,
useSpring,
Transition,
} from '@react-spring/we... |
<reponame>cleo/ngx-json-schema-form<filename>projects/jsf/src/lib/form-data-item.service.ts
import { Injectable } from '@angular/core';
import { JSFJsonSchema } from './jsf-json-schema';
import { JSFSchemaData } from './jsf-schema-data';
import { ArrayDataItem } from './models/array-data-item';
import { ButtonDataItem... |
/** A MAC address, formatted as 00-00-00-00-00 */
type MACAddress = string;
import {WirelessNetworkMode} from '../types/properties';
import Message, {ErrorCode} from './message';
enum Model {
AIRPORT_EXPRESS_2ND_GENERATION = 115,
AIRPORT_EXTREME_6TH_GENERATION = 120,
}
export interface AdvertisementData {
... |
import React, { useEffect, useState, useRef } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { connect } from 'dva';
import { Link } from 'umi';
import { Table, Button, Pagination, Select, Dropdown, Menu, Modal, message, Input } from 'antd';
import { Form } from '@ant-design/compatible... |
<gh_stars>1-10
/* eslint-disable max-lines */
import type { DMMF } from "@prisma/client/runtime";
import type { DecoratorStructure, OptionalKind, ParameterDeclarationStructure } from "ts-morph";
import { Scope, StructureKind } from "ts-morph";
import type { Enum, Resolver } from "../../types";
import { NestJSTypes, Ob... |
<gh_stars>1-10
import { isSourceReference, SourceReference } from "./source-reference";
import { isVNode, VNode, VNodeRepresentationSource } from "./vnode";
import { assert } from "./assert";
import { createFragment, Fragment } from "./fragment";
export const Token = Symbol.for("@opennetwork/vnode/token");
export con... |
import { Type, order } from './dict';
import { Stats } from './stats';
import { Store } from './store';
import { Dice } from './settings';
import { Random } from './random';
const PERIOD = 3;
const DAY = 24 * 60 * 60 * 1000;
type Comparator<T> = (a: T, b: T) => number;
function defaultCompare<T>(a: T, b: T) {
retu... |
<reponame>mauve/vscode-terraform
import * as vscode from 'vscode';
import TelemetryReporter from '@vscode/extension-telemetry';
import {
DocumentSelector,
ExecuteCommandParams,
ExecuteCommandRequest,
LanguageClient,
LanguageClientOptions,
RevealOutputChannelOn,
State,
StaticFeature,
ServerOptions,
} f... |
import { HashMap, unique } from '@user-interfaces/common';
export interface EnvironmentSource {
id?: string;
name: string;
type?: 'lights' | 'blinds' | 'screen';
state: string | number;
states: string[];
}
export interface RoomInput {
id?: string;
name: string;
type: string;
module... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Store } from '@ngrx/store';
import { BehaviorSubject, Subject } from 'rxjs';
import { map, withLatestFrom } from 'rxjs/operators';
import { FullConfigurationItem, ConnectionRule, Connection, LineMessage,
MetaData... |
<gh_stars>1-10
import MouseEvent from "../../vox/event/MouseEvent";
import Axis3DEntity from "../../vox/entity/Axis3DEntity";
import RendererScene from "../../vox/scene/RendererScene";
import FrustrumFrame3DEntity from "../../vox/entity/FrustrumFrame3DEntity";
import CameraBase from "../../vox/view/CameraBase";
import... |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { ForceIgnore } from './forceIgnore';
import { ConfigFile, ConfigContents, Logger, ... |
import { EventEmitter } from "events";
import { SPLAT } from 'triple-beam';
import TransportStream from 'winston-transport';
import { Produce } from 'glossy';
import { inspect } from 'util';
import { hostname } from "os";
import { createConnection } from "net";
import { connect } from "tls";
/**
* winston-papertrail.... |
/* Copyright 2019, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
<reponame>UserOfficeProject/user-office-frontend
/* eslint-disable @typescript-eslint/no-explicit-any */
import produce, { Draft } from 'immer';
import { Reducer } from 'react';
import { Answer, Questionary, QuestionaryStep } from 'generated/sdk';
import { clamp } from 'utils/Math';
import {
ReducerMiddleware,
use... |
import Vue from "vue";
import { Character, DictionaryEntry, Field, Picture, Hierarchy, standardBooks, Taxon } from "./datatypes";
import { Dataset } from './datatypes/Dataset';
import { State } from "./datatypes/types";
import { ManyToManyBimap } from './tools/bimaps';
import clone from "./tools/clone";
import makeid ... |
<filename>src/map/Camera.ts
import Vue from 'vue';
import { Coord, Rect, ResolutionSettings } from '../assets/classes';
import { getResolution, getClosestResolutionID, getResolutionByID } from '../unsorted/ResolutionHandler';
/**
* Genral info:
* Map Space means the coordinates are on the in-game map itself
... |
<reponame>Latvijas-Meza-ipasnieku-biedriba/mednis
import * as React from "react";
import { useTranslation } from "react-i18next";
import { IconName } from "../components/Icon";
import { configuration } from "../configuration";
import { LimitedSpecies, LimitedSpeciesType, LimitedSpeciesGender, UnlimitedSpecies } from ".... |
import TsReader = require("./reader");
import TsWriter = require("./writer");
interface Packet {
_raw: Buffer;
sync_byte: number;
transport_error_indicator: number;
payload_unit_start_indicator: number;
transport_priority: number;
PID: number;
transport_scrambling_control: number;
adap... |
import { Type } from '@ephox/katamari';
import Editor from 'tinymce/core/api/Editor';
import { Toolbar } from 'tinymce/core/api/ui/Ui';
import * as FakeClipboard from '../api/Clipboard';
import * as Options from '../api/Options';
import { SelectionTargets, LockedDisable } from '../selection/SelectionTargets';
import ... |
import { Request, Response } from 'express';
import autoBind from 'auto-bind';
import pg from 'pg';
import moment from 'moment';
import 'moment-timezone';
import { Conn } from '../db/conn';
import { constants } from '../utils/constants';
import User from '../models/user.model';
import Lesson from '../models/lesson.mode... |
import React, { useState, useRef } from 'react';
import useOnClickOutside from '../utils/clickOutside';
// import styles from './nav.css'
// interface Setter {
// setter: (value: boolean) => void;
// }
// interface OpenState {
// open: boolean;
// setter: (value: boolean) => void;
// }
const mainItems = [
{ ... |
<reponame>stu43005/masterchat
import {
YTAction,
YTAddLiveChatTickerItem,
YTLiveChatPaidMessageRenderer,
} from "../../yt/chat";
import { runsToString, debugLog } from "../../utils";
import { omitTrackingParams, parseColorCode } from "./utils";
import {
Action,
AddChatItemAction,
AddSuperChatItemAction,
L... |
<filename>src/package-generator/saofile.ts
import { isArrayFull, isUndefined } from '@nestled/util';
import { execSync } from 'child_process';
import { existsSync } from 'fs';
import { join } from 'path';
import {
CONFIG_FILE_NAME,
PACKAGE_REGISTRY,
PACKAGE_REGISTRY_URL,
PACKAGE_GENERATOR_PASSED_OPTIONS_ENV_VAR... |
<filename>lib/core-common/src/types.ts
import type ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import type { PluginOptions } from '@storybook/react-docgen-typescript-plugin';
import { Configuration, Stats } from 'webpack';
import { TransformOptions } from '@babel/core';
import { Router } from 'exp... |
<gh_stars>0
// previous version:
// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js
export class Positioning {
private getAllStyles(element: HTMLElement) { return window.getComputedStyle(element); }
private getStyle(element: HTMLElement, prop: string):... |
/* eslint-disable no-fallthrough */
import { DOCS_MODE } from 'global';
import { toId, sanitize } from '@storybook/csf';
import {
UPDATE_STORY_ARGS,
STORY_ARGS_UPDATED,
STORY_CHANGED,
SELECT_STORY,
SET_STORIES,
CURRENT_STORY_WAS_SET,
} from '@storybook/core-events';
import deprecate from 'util-deprecate';
... |
<reponame>calebcartwright/vsts-urbancode-deploy<gh_stars>1-10
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import tl = require('vsts-task-lib/task');
import path = require('path');
import process = require('p... |
// Create new page
const page = figma.createPage()
page.name = "Icons for export"
figma.root.appendChild(page);
let nodes
if(figma.currentPage.selection && figma.currentPage.selection.length > 0) {
// Go over nodes the user has selected
nodes = figma.currentPage.selection
} else {
// Get all nodes that are compone... |
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<filename>src/utils/utils.ts
import { parse } from "querystring";
import request from "@/utils/request";
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
const reg =
/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[... |
import {
Component,
Input,
OnDestroy,
OnInit,
EventEmitter
} from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { LocalDataSource } from 'ng2-smart-table';
import Product from '@modules/server.common/entities/Product';
import { ProductsService } from '../../../../@core/data/prod... |
<gh_stars>1-10
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NgOption } from '@ng-select/ng-select';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { DataService } from '../shared/data.service';
import { N... |
<filename>community-modules/core/src/ts/headerRendering/headerRowComp.ts
import { Component } from "../widgets/component";
import { Autowired, Context, PostConstruct } from "../context/context";
import { GridOptionsWrapper } from "../gridOptionsWrapper";
import { ColumnGroupChild } from "../entities/columnGroupChild";
... |
import validator from 'validator';
import moment from 'moment';
import { BaseEntity } from './base-model';
export interface Dictionary<T> {
[Key: string]: T;
}
export class Predicate {
key: string;
display: string;
resource_key: string;
hasSecondParam: boolean;
constructor() {
}
}
export class Typ... |
import { spawn } from 'child_process';
import * as bitcoin from 'bitcoinjs-lib';
import { btc, bech32toScriptPubKey, getBlockTemplate, BlockTemplate, BlockTemplateTX, TemplateRequest, consoleTrace, insertTransaction, removeTransaction, setChain, network } from './btc';
import { merkleRoot } from './merkle_tree';
import... |
/*
* Notifo.io
*
* @license
* Copyright (c) <NAME>. All rights reserved.
*/
// tslint:disable: no-parameter-reassignment
import { useEffect, useState } from 'preact/hooks';
import { apiGetArchive, apiGetProfile, apiGetSubscriptions, apiGetTopics, apiPostProfile, apiPostSubscriptions, NotifoNotificationDto, Profi... |
<reponame>timleavitt/vscode-objectscript
import fs = require("fs");
import path = require("path");
import * as vscode from "vscode";
import { AtelierAPI } from "../api";
import { config } from "../extension";
import { mkdirSyncRecursive, notNull, outputChannel, uriOfWorkspaceFolder } from "../utils";
import { NodeBase ... |
/*
KialiGridLayout
This is a version of the "grid" algorithm provided by Cytoscape at
https://github.com/cytoscape/cytoscape.js/blob/unstable/src/extensions/layout/grid.js
The standard algorithm needs some refinements for Kiali use cases and in this case it's simpler to clone it
rather than provide an exten... |
<reponame>tdikland/aws-cdk<gh_stars>0
import * as appmesh from '@aws-cdk/aws-appmesh';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecr from '@aws-cdk/aws-ecr';
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import * as regionInfo from '@a... |
<filename>src/vs/server/serverEnvironmentService.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------... |
import * as React from 'react';
import { bind } from 'decko';
import { Form, FormSpy } from 'react-final-form';
import { MarkAs } from '_helpers';
import { connect } from 'react-redux';
import * as moment from 'moment';
import createDecorator from 'final-form-calculate';
import { BigNumber } from '0x.js';
import * as u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.