text stringlengths 9.82k 47.8k |
|---|
<reponame>Leeleo3x/Solythesis<gh_stars>1-10
import * as _ from "lodash"
import {
BinOp, Block, ContractDefinition, Expression, ExpressionStatement, ForStatement, FunctionDefinition,
Identifier, ReturnStatement, Statement, StateVariableDeclaration, TypeName, Visitor, Parameter
} from "solidity-parser-antlr"
import {... |
/* eslint-disable @typescript-eslint/no-empty-function */
/* eslint-disable no-underscore-dangle */
/* eslint-disable consistent-return */
/* eslint-disable react/sort-comp */
/* eslint-disable react/no-deprecated */
import React from 'react';
import {
View,
BackHandler,
AppState,
UIManager,
DeviceEventEmitte... |
import autoBind from "auto-bind";
import { version } from "../package.json";
import { MigrationError } from "./migration";
import { JsPsychData } from "./modules/data";
import { PluginAPI, createJointPluginAPIObject } from "./modules/plugin-api";
import { ParameterType, universalPluginParameters } from "./modules/plug... |
/*
* _ _____ _ ___ _____ _
* | | / ____| |/ (_)/ ____| | |
* | | | | | ' / _| | ___ _ ____ _____ _ __| |_ ___ _ __
* | | | | | < | | | / _ \| '_ \ \ / / _ \ '__| __/ _ \ '__|
* | |___|... |
import { Swipe_Up } from './icons/Swipe_Up';
import { Swipe_Right } from './icons/Swipe_Right';
import { Swipe_Left } from './icons/Swipe_Left';
import { Swipe_Down } from './icons/Swipe_Down';
import { Double_Tap } from './icons/Double_Tap';
import { Single_Tap } from './icons/Single_Tap';
import { Hotspot_Close } fro... |
import { Spout, Liquid, HTTPOptions, literal, isNil, RedioEnd, isEnd } from './redio'
import http, { Server, createServer, IncomingMessage, ServerResponse, STATUS_CODES } from 'http'
import https, { Server as ServerS, createServer as createServerS, AgentOptions } from 'https'
import { isError } from 'util'
import { URL... |
<filename>packages/forms/select/src/data/countries.ts
type Country = {
id: string;
code: string;
before: string;
name: string;
suggested?: boolean;
};
export const allCountries: Array<Country> = [
{ before: '🇦🇫', name: 'Afghanistan', id: 'AF', code: '93' },
{ before: '🇦🇽', name: 'Alland Islands', id:... |
<filename>src/cupertino-pane.ts
import { Support } from './support';
import { Device } from './device';
import { Events } from './events';
import { PaneSettings, PaneBreaks } from './models';
import { Settings } from './settings';
import { Breakpoints } from './breakpoints';
export type CupertinoSettings = Partial<Pane... |
import { useState, useEffect, useContext, useCallback } from 'react';
import { shallowEqual, useDispatch, useSelector } from 'react-redux';
// third-party libraries
import {
Grid,
Stack,
Button,
IconButton,
InputAdornment,
Switch,
TextField,
Typography,
SwitchProps,
} from '@mui/material';
import AdapterDateFn... |
<filename>VCL/VXChartVBar.ts
import V = require("VCL/VCL");
import VXU = require("VCL/VXUtils");
import VXC = require("VCL/VXComponent");
import VXD = require("VCL/VXDataset");
import VXCB = require("VCL/VXChartBase");
export class VXChartVBar extends VXCB.VXChartBase {
private _titleX: string;
public get Tit... |
<reponame>jahzeelamador/pluginBlendstat
///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" />
// The MIT License (MIT)
// Copyright (c) 2016 Grafana
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the ... |
import * as THREE from 'three';
import { updateFolder, plotReady, PlotLine } from './plotLine';
import { graphState, renderGraphThreeJs } from './graph';
import { RGB, Triplet } from './plotUtils';
import { MultiBiMap } from './animationUtils';
import { PlotSettingsControl } from './plotSettings';
import { checkAndStop... |
import '@stencil/redux';
import { Component, h, State, Listen, Prop, Watch, Host, Method } from '@stencil/core';
import { FreeIcon } from './icons/free';
import { Store } from '@stencil/redux';
import { configureStore } from '../redux/store';
import { RootState } from '../redux/reducers';
import { ActionTypes } from '... |
<reponame>mteasdale-modellium/survey-library
import { Serializer } from "./jsonobject";
import { Question } from "./question";
import { Base, SurveyError, ISurveyImpl } from "./base";
import { ItemValue } from "./itemvalue";
import { Helpers, HashTable } from "./helpers";
import { surveyLocalization } from "./surveyStr... |
/**
* Copyright 2014 Mozilla Foundation
*
* 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... |
/*
* Copyright (c) 2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including ... |
<filename>src/material-experimental/mdc-form-field/form-field.ts
/**
* @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';
imp... |
import { KuzzleEventEmitter } from './core/KuzzleEventEmitter';
import { KuzzleAbstractProtocol } from './protocols/abstract/Base';
import { AuthController } from './controllers/Auth';
import { BulkController } from './controllers/Bulk';
import { CollectionController } from './controllers/Collection';
import { Documen... |
/**
* This license applies to parts of this file originating from the
* https://github.com/lukejacksonn/servor repository:
*
* MIT License
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
<reponame>wizage/amplify-cli
import inquirer from 'inquirer';
import path from 'path';
import fs from 'fs-extra';
import os from 'os';
import uuid from 'uuid';
import { rootAssetDir } from '../aws-constants';
import { checkForPathOverlap, validatePathName, formatCFNPathParamsForExpressJs } from '../utils/rest-api-path-... |
import { scaleLinear } from "d3-scale";
import {
TernaryPlot,
Barycentric,
Domains,
Coord,
Tick,
TextAnchor,
TernaryAxis,
AxisLabel,
} from "./types";
const getDomainLengths = (domains: Domains) =>
new Set(
domains.map((domain) => {
// round differences
// https://stackoverflow.com/qu... |
/* Copyright Contributors to the Open Cluster Management project */
/* eslint-disable react-hooks/exhaustive-deps */
import { useCallback, useMemo, useState, useEffect } from 'react'
import { isEqual } from 'lodash'
import { CIM } from 'openshift-assisted-ui-lib'
import { useRecoilValue, waitForAll } from 'recoil'
imp... |
<gh_stars>0
import Github from '@octokit/rest';
import minimatch from "minimatch";
import {Application, Context} from "probot";
import {MergeConfig} from "../default";
import {addComment, addLabels, getGhPRLabels, getLabelsNames, matchAny, queryPR} from "./common";
import {Task} from "./task";
import {default as Github... |
import { BidderPositionQueryResponse } from "__generated__/BidderPositionQuery.graphql"
import { ConfirmBid_me } from "__generated__/ConfirmBid_me.graphql"
import { ConfirmBid_sale_artwork } from "__generated__/ConfirmBid_sale_artwork.graphql"
import {
ConfirmBidCreateBidderPositionMutation,
ConfirmBidCreateBidderP... |
<gh_stars>0
// (C) Copyright 2015 Moodle Pty Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
<reponame>rcommerce/Cromwell_PL
import {
getStoreItem,
isServer,
setStoreItem,
TAttribute,
TCoupon,
TProduct,
TProductVariant,
TStoreListItem,
} from '@cromwell/core';
import deepEqual from 'fast-deep-equal/es6';
import { getGraphQLClient } from '../api/CGraphQLClient';
const cartKey =... |
import React, { Component, ReactElement, SyntheticEvent } from 'react';
import PropTypes from 'prop-types';
import Touch, { TouchEvent } from '../Touch/Touch';
import TouchRootContext from '../Touch/TouchContext';
import getClassName from '../../helpers/getClassName';
import classNames from '../../lib/classNames';
impo... |
import { ITable } from 'phovea_core/src/table';
import { list as listData, getFirstByName, get as getById } from 'phovea_core/src/data';
import { VALUE_TYPE_CATEGORICAL, VALUE_TYPE_INT, VALUE_TYPE_REAL, VALUE_TYPE_STRING } from 'phovea_core/src/datatype';
import * as range from 'phovea_core/src/range';
import * as even... |
<reponame>ChemIDplus/ChemIDsearch<filename>src/app/domain/expression.ts
import { AutoCompleteResult } from './auto-complete-result';
import { Fld, Field } from './field';
import { Op, Operator } from './operator';
import { PPF, PPField } from './pp-field';
import { PPMT, PPMeasurementType } from './pp-measurement-type'... |
<reponame>jkunimune15/dunhamar
/**
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
<reponame>hyperhyperspace/hyperhyperspace-core
import { Agent, AgentId } from '../../service/Agent';
import { AgentPod, Event } from '../../service/AgentPod';
import { NetworkAgent, ConnectionId,
NetworkEventType, ConnectionStatusChangeEvent,
ConnectionStatus, MessageReceivedEvent, Endpoint } from... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { Trigg... |
/* eslint-disable no-await-in-loop */
import { Howl, Howler } from 'howler'
import shuffle from 'lodash/shuffle'
import { getArtist } from '../api/artist'
import { fmTrash, personalFM } from '../api/other'
import { lastfmStore } from '../store/lastfmStore'
import { playerStore } from '../store/playerStore'
import { se... |
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS104: Avoid inline assignments
* DS201: Simplify complex destructure assignments
* DS203: Remove `|| {}` from converted for-own loops
* DS205: Consider reworking co... |
<gh_stars>0
import * as _ from "lodash";
import { Webthing } from "./webthing.model";
export namespace AlexaGlobal {
export enum DirectivePayloadVersion {
VERSION3 = '3',
}
export enum DirectiveHeaderNames {
DISCOVER = 'Discover',
DISCOVER_RESPONSE = 'Discover.Response',
R... |
<filename>src/relay-test-utils/RelayMockPayloadGenerator.ts<gh_stars>1-10
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+relay
* @flow strict-local
* @format
... |
<filename>debugger/debugger.ts<gh_stars>0
//MIT License
//
//Copyright (c) 202 <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 ... |
import vm from 'vm'
import generate from '@babel/generator'
import { NodePath } from '@babel/traverse'
import * as t from '@babel/types'
import * as AllExports from '@snackui/node'
import { StaticComponent } from '@snackui/node'
import invariant from 'invariant'
import { has } from 'lodash'
import { ViewStyle } from '... |
/**
* The ModelBuilder converts a FileTree into a renderer model.
*
* On every frame, the ModelBuilder rebuilds the tree model to
* have only the visible portion of the FS tree.
*
* If the FS tree has dirs that are visible but haven't been
* fetched, the ModelBuilder requests those dirs to be fetched.
*
* The ... |
<gh_stars>1-10
import * as fs from "fs";
import * as path from "path";
import { TextDocument } from "vscode-languageserver-textdocument";
import {
CodeAction,
CodeActionKind,
CodeActionParams,
Command,
CompletionItem,
CompletionItemKind,
CompletionParams,
createConnection,
Definition,
DefinitionPara... |
declare function nlapiCopyRecord(type:string, id:string, initializeValues?:Object): nlobjRecord;
declare function nlapiLoadRecord(type: string, id: string, initializeValues? : any): nlobjRecord;
declare function nlapiCreateRecord(type: string, initializeValues?: any): nlobjRecord;
declare function nlapiSubmitRecord(rec... |
<reponame>daluji/la-bete-politique
import { MapRef } from "react-map-gl"
import { WebMercatorViewport } from "@math.gl/web-mercator"
import { ParsedUrlQuery } from "querystring"
import polylabel from "polylabel"
import pointInPolygon from "point-in-polygon"
import MetroFranceContFile from "static/cont-france.geojson"
i... |
import Component from "vue-class-component";
import Vue from 'vue';
import { AsyncStorage, GameField, GamePlayer, Gender, Rank, UserInfoLong, BanInfo, Friendship, GameEvent, ChanceCard, CurrentChanceCard, ChanceCardState, ContractEventData, ContractInfo, GameStatus, ConfigField, ConfigGroup } from '../shared/beans';
im... |
<filename>lib/boot-peg.js.ts
// A lot of this code is lifted from:
// https://github.com/erights/quasiParserGenerator/tree/master/src/bootbnf.js
/// <reference path="peg.d.ts"/>
import { confineExpr, makeMap, makeWeakMap } from '@agoric/jessie';
import { slog } from '@michaelfig/slog';
import indent from './indent.js... |
<reponame>leifwalder/bugrace<filename>src/app/ts/data.service.ts
import { Component, Injectable } from '@angular/core';
export interface Tile {
x: number,
y: number,
char: string,
lastChar: string,
cameFrom?: Tile,
isOpen: Boolean,
isClosed: Boolean,
isGoal(): any,
getValidAdjacentTiles(): any,
g_c... |
import React from 'react';
import { AABB, Coord } from '../base/math';
import { MapBackground, MapData, MapDecoration, MapEntity, MapEntityType, MapItemType, MapLandmark, MapSpawnPoint, MapSprite, MapTerrain, MapTrigger, MapTriggerType, TERRAIN_SIZE } from '../map/interfaces';
import ItemEditor, { EditError, ItemEditor... |
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import { useDispatch, useSelector } from "react-redux";
import styled, { css } from "styled-components";
import { RootState } from "store/configureStore";
import {
metaspriteSelectors,
metaspriteTileSelectors,
paletteSele... |
<filename>src/eterna-extention/viewer/viewer-ex.ts
import Stage from '../../stage/stage'
import {PixiRenderCallback} from '../stage/stage-ex'
import {
PerspectiveCamera, OrthographicCamera,
Vector2, Vector3, Matrix4,
WebGLRenderTarget,Mesh, Group,
SpriteMaterial,Sprite,TextureLoader,Texture,
BufferGeomet... |
/*
This is an implementation of the method of computing Saturn's moons created
by <NAME>, as presented by Jean Meeus.
*/
import { abs, asin_deg, atan2, atan2_deg, cos, cos_deg, sin, sin_deg, SphericalPosition3D, sqrt, squared, to_degree } from '@tubular/math';
import { DELAYED_TIME, FIRST_SATURN_MOON, JD_B1950, LA... |
import { Injectable, Inject } from '@angular/core';
import { Observable, Subject } from 'rxjs/Rx';
import { AngularFireDatabase, FirebaseRef } from 'angularfire2';
import * as firebase from 'firebase';
import { Session } from './session';
import { User } from './user';
import { UserService, UserStatus, FreeTimes } from... |
<reponame>znewton/FluidFramework
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { assert } from "@fluidframework/common-utils";
import { Property } from "./base";
import { RedBlackTree } from "./collections";
import { UnassignedSequenceNu... |
/** @hidden */
// eslint-disable-next-line import/export
export enum PredefinedColorSpace {
SRGB = "srgb",
}
/** @hidden */
// eslint-disable-next-line import/export
export enum PowerPreference {
LowPower = "low-power",
HighPerformance = "high-performance",
}
/** @hidden */
export enum Featu... |
<reponame>okmhbm1/yoda-lib
import { Component, OnInit, Input, SimpleChanges, OnChanges, TemplateRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { Observable, of, concat, Subject, merge } from 'rxjs';
import { debounceTime, takeUntil } from 'rxjs/operators';
import { saveAs } from 'file-saver';
import ... |
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
/**
* @module /smo/data/measureModifiers
* **/
import { smoSerialize } from '../../common/serializationHelpers';
import { SmoMusic } from './music';
import { SmoAttrs, MeasureNumber, FontInfo, SmoObjectParams, SvgBox, SmoModifierB... |
import esbuild from "esbuild";
import { readFile } from "fs/promises";
import { existsSync } from "fs";
import type { DirectoryResult } from "tmp-promise";
import tmp from "tmp-promise";
import type { CfPreviewToken } from "./api/preview";
import { Box, Text, useInput } from "ink";
import React, { useState, useEffect, ... |
<reponame>jchitel/renlang<filename>src/parser/Tokenizer.ts
import ParserError from './ParserError';
import LazyList from './LazyList';
export class Location {
startLine: number;
startColumn: number;
endLine: number;
endColumn: number;
constructor(startLine: number, startColumn: number, endLine: n... |
/**
* @license
* Copyright 2017 Telefónica I+D
*
* 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 t... |
<gh_stars>0
/**
* FolksLibsocialweb-0.6
*/
import type * as Gjs from './Gjs';
import type * as SocialWebClient from './SocialWebClient-0.25';
import type * as Gio from './Gio-2.0';
import type * as GObject from './GObject-2.0';
import type * as GLib from './GLib-2.0';
import type * as Folks from './Folks-0.6';
impor... |
import { logging } from 'protractor';
import { UnitService } from './../services/unit.service';
import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnInit, ViewChild } from '@angular/core';
import { ElementRef, Renderer2 } from '@angular/core';
import { Unit } from '../unit';
import { Network,... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { i } from '../i18n';
import { CharacterCodes, isBinaryDigit, isDigit, isHexDigit, isIdentifierPart, isIdentifierStart, isLineBreak, isWhiteSpaceSingleLine, sizeOf } from './character-codes';
export enum MessageCategory {
Warning,
E... |
import React, { ChangeEvent, useEffect, useState } from 'react';
import fs from 'fs';
import path from 'path';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
import Toolbar ... |
<gh_stars>1-10
import { EventEmitter } from "events";
import { logger } from "../shared/log"
import * as utils from "../utils/utils"
var geoip = require("geoip-lite");
import * as crypto from "crypto"
import { DocumentStore } from "./data";
import * as _ from "lodash"
import * as vm2 from "vm2"
import { User, Cor... |
import Web3 from 'web3'
import { EventEmitter } from 'events'
import { TransactionFactory, TypedTransaction } from '@ethereumjs/tx'
import { bufferToHex, PrefixedHexString, toBuffer } from 'ethereumjs-util'
import { toBN, toHex } from 'web3-utils'
import { asRelayCallAbi, ContractInteractor } from '@opengsn/common/dis... |
<reponame>Alex-At-Home/cbb-on-off-analyzer
// Utils:
import _ from 'lodash'
export type PosFamily = "ballhandler" | "wing" | "big";
export const PosFamilyNames: PosFamily[] = [ "ballhandler", "wing", "big" ];
/** Data for a given player broken down */
export type PlayerStyleInfo = {
unassisted: Record<string, any>... |
// import { HDKey } from "micro-bip32"; // TODO: Uninstall the previous package, replaced with @scure.
import { HDKey } from '@scure/bip32';
import { mnemonicToSeedSync } from '@scure/bip39';
import * as secp from '@noble/secp256k1';
import {
Account,
AccountUnspentTransactionOutput,
Address,
Logger,
Wallet,... |
<filename>packages/MeIndexBar/countryData.ts
// 默认国家数据
const CountryData = [
{
name: "A",
cities: [
{ code: "AR", en: "Argentina", cn: "阿根廷" },
{ code: "AD", en: "Andorra", cn: "安道尔" },
{ code: "AE", en: "United Arab Emirates", cn: "阿联酋" },
{ code: "AF", en: "Afghanistan", cn: "阿富汗" },... |
<filename>ui/raidboss/data/05-shb/raid/e9n.ts
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } fro... |
<filename>src/ui.ts
import * as Matter from 'matter-js';
import { addItems, towerHeight, towerHeightLines } from './engine';
import { isInFullScreen, requestFullScreen } from './full-screener';
import { options } from './config';
import { allToys, Toy } from './toys';
import { godpngUrl, sunpngUrl, birdspngUrl, fa... |
<gh_stars>1-10
import { CourseSelection } from "./course";
export type Solution<RowType> = { data: Array<RowType>, score: number }
export type DLXEvaluator<StateType, RowType> = {
/** a helper state*/
curState: StateType;
/** called when a row is added, with the curState as argument*/
onAddRow: (help... |
export { default as AddBoxFill } from './add-box-fill.vue';
export { default as AddBox } from './add-box.vue';
export { default as AddCircleFill } from './add-circle-fill.vue';
export { default as AddCircle } from './add-circle.vue';
export { default as Add } from './add.vue';
export { default as AirplayFill } from './... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {
ActivityIndicator,
Alert,
Image,
Platform,
Dimensions,
StyleSheet,
ScrollView,
Text,
TouchableOpacity,
Modal,
View,
PermissionsAndroid,
Status... |
import { Component } from '@angular/core';
import * as d3 from 'd3';
import { ChartBase } from './chart-base/chart-base.directive';
import { DataPartition, DataPoint, DataSeries, StackedBar } from './data.interfaces';
export interface ChartConfig {
yAxisLabel: string;
fillOpacity?: number;
yAxisScaleFacto... |
<reponame>EibrielInv/explorer<gh_stars>0
import { getFromLocalStorage, saveToLocalStorage } from 'atomicHelpers/localStorage'
import { call, fork, put, race, select, take, takeEvery, takeLatest } from 'redux-saga/effects'
import { NotificationType } from 'shared/types'
import { getServerConfigurations, ALL_WEARABLES, g... |
import { DataStream } from './util';
import { vec3, mat4 } from 'gl-matrix';
import { Color } from '../Color';
export interface LinkAsset {
srcEvent: number;
dstEvent: number;
dstAssetID: number;
param: number[];
paramWidgetAssetID: number;
chkAssetID: number;
}
const LinkAssetSize = 0x20;
f... |
<filename>tensorflow/tensorboard/components/vz-projector/vz-projector.ts<gh_stars>0
/* Copyright 2016 The TensorFlow Authors. 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
ht... |
<reponame>monster860/ntdf-modding-toolkit<filename>lib/chunks/collision.ts
import assert from "assert";
import Blob from "cross-blob";
import earcut from "earcut";
import { diff, intersection, MultiPolygon } from "martinez-polygon-clipping";
import { apply_matrix, distance_xz_sq, lerp, matrix_inverse, matrix_transp... |
<reponame>marcgabe15/allotment<filename>src/split-view/split-view.ts
import EventEmitter from "eventemitter3";
import clamp from "lodash.clamp";
import styles from "../allotment.module.css";
import { Disposable } from "../helpers/disposable";
import { range } from "../helpers/range";
import {
Orientation,
Sash,
... |
<reponame>lefex/zrender
import Group from '../graphic/Group';
import ZRImage from '../graphic/Image';
import Circle from '../graphic/shape/Circle';
import Rect from '../graphic/shape/Rect';
import Ellipse from '../graphic/shape/Ellipse';
import Line from '../graphic/shape/Line';
import Polygon from '../graphic/shape/Po... |
export interface Obb {
center: Float64Array;
halfSize: Float32Array;
quaternion: Float32Array;
}
export interface Attribute {
/** Data uses the data type of the vertex attribute */
data: number[] | Float64Array | Float32Array;
/** Components per vertex */
size: number;
/** Index into data array i.e. n... |
<reponame>hawkeye64/extra-svg-icons<gh_stars>1-10
/* Clarity Icons v5.6.2 */
export declare const clarityAccessibility1Outline: string;
export declare const clarityAccessibility1Solid: string;
export declare const clarityAccessibility2Outline: string;
export declare const clarityAccessibility2Solid: string;
export dec... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { WebSharperGeneratedInterfaces as WGI } from "./WebSharperGeneratedInterfaces";
import * as Interfaces from './Interfaces';
import * as Internals from './InternalInterfaces';
// This is for the benefit of the testing environment. If th... |
/*
* Copyright SideeX committers
*
* 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 agre... |
<reponame>SlipFil/DeleteBG
export * from './123';
export * from './3DMaterials';
export * from './ABC';
export * from './AEMScreens';
export * from './Actions';
export * from './AdDisplay';
export * from './AdPrint';
export * from './Add';
export * from './AddCircle';
export * from './AddTo';
export * from './AddToSele... |
/* eslint-disable no-underscore-dangle */
/* eslint-disable react/jsx-props-no-spreading */
import React, { useEffect, useRef, useState } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import {
Stage,
Layer,
Rect,
Line,
} from 'react-konva';
import Konva from 'konva';
import { useRouter }... |
import { GrpScriptUtil } from '../script/grpscriptutil';
import { GrpScript, Difficulty } from '../script/model/grpscript';
import { Measure } from '../script/model/measure';
import { Note, NoteType } from '../script/model/note';
import { Viewer } from './model/viewer';
import { ViewerDom } from './model/viewerdom';
im... |
import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { JDToastrService } from './../../toastr.service';
import { Issue, Comment, Attachment, Relationship, IssueRelationship, WorkLog, Task, IssueOtherRelationship } from './../issue';
import { Component, OnInit, NgZone, Inject, TemplateRef, ViewC... |
<filename>src/data/Combos.ts
export const RareCombos = {
fool: [+2, +1, +1, -1, -1, -1, -1, +1, +1],
magician: [+1, -1, -1, +1, +2, +1, +1, +1, -2],
priestess: [+1, +2, +1, -1, -1, +1, -1, +1, +1],
empress: [+1, +1, +2, -1, -1, +1, +1, -1, +1],
emperor: [-1, -1, -1, +2, +1, -1, +1, +1, -1],
hierophant: [-1,... |
<reponame>ssoju/editor
import { EditorView } from 'prosemirror-view';
import { EditorState, Selection, Transaction } from 'prosemirror-state';
import { DOMSerializer, Slice, DOMParser, AttributeSpec } from 'prosemirror-model';
import { collab } from 'prosemirror-collab';
import { InputRule, inputRules } from 'prosemirr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
<gh_stars>0
import { InterfaceTypeSchema, IntersectionTypeSchema, NumberTypeSchema, OmitTypeSchema, OverwriteTypeSchema, PartialTypeSchema, PickTypeSchema, SchemaType, TSBufferSchema, TypeReference, UnionTypeSchema } from 'tsbuffer-schema';
import { TSBufferValidator } from 'tsbuffer-validator';
import { Base64Util }... |
import * as childProcess from "child_process";
import * as crypto from "crypto";
import * as fs from "fs";
import * as https from "https";
import * as path from "path";
import * as readline from "readline";
import * as zlib from "zlib";
import {
bold,
dim,
Env,
flatMap,
indent,
isNonEmptyArray,
join,
p... |
/// <reference types="@fibjs/types" />
import util = require('util');
import coroutine = require('coroutine');
import events = require('events');
const EventEmitter = events.EventEmitter;
import Utilities = require("./Utilities");
import Hook = require("./Hook");
import ORMError = require("./Error");
import... |
<reponame>whispeer/app
import * as Bluebird from 'bluebird';
import socketService from "../services/socket.service"
import ObjectLoader, { SYMBOL_UNCHANGED } from "../services/mutableObjectLoader"
import ChunkLoader, { Chunk } from "./chatChunk"
import MessageLoader, { Message } from "./message"
import h from "../h... |
/* Imports: External */
import { Contract, ethers, Wallet, BigNumber, providers, Signer } from 'ethers'
import * as rlp from 'rlp'
import { MerkleTree } from 'merkletreejs'
import fetch from 'node-fetch'
import * as ynatm from '@eth-optimism/ynatm'
/* Imports: Internal */
import { fromHexString, sleep } from '@eth-opt... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
import { EventEmitter } from 'events';
import * as fs from 'fs';
import * as path from 'path';
import { Writable } from 'stream';
import { String } from 'typescript-string-operations';
import * as component from '../../common/com... |
import { Component, Model, Prop, Watch, Vue } from 'vue-property-decorator'
import {
Value,
DataObject,
Mark,
Marks,
MarksProp,
Styles,
DotOption,
DotStyle,
Dot,
Direction,
Position,
ProcessProp,
Process,
TooltipProp,
TooltipFormatter,
} from './typings'
import VueSliderDot from './vue-sli... |
<filename>grr/server/grr_response_server/gui/ui/lib/api/api_interfaces.ts<gh_stars>0
/**
* @fileoverview The module provides mappings for GRR API protos (in JSON
* format) into TypeScript interfaces. They are not intended to be
* complete: only actually used fields are mapped.
*
* TODO(user): Using Protobuf-code ... |
<gh_stars>1-10
import { expect, assert } from 'chai'
import { HeadlessDatepicker } from './headless-datepicker'
import * as moment from 'moment'
describe('Headless datepicker', () => {
let sut;
beforeEach(() => {
sut = new HeadlessDatepicker.Calendar()
})
describe('Initialization', () => {
it('should be init... |
import {Component, Inject, Injectable,Input,Output,EventEmitter } from '@angular/core';
import { Response, Jsonp, Headers, RequestOptions, URLSearchParams } from '@angular/http';
import {Router} from '@angular/router';
import {HttpService} from '../request/html.service';
import {UserService} from '../user/user.service'... |
<reponame>Small-Bodies-Node/sbn-solar-system-viewer
import * as THREE from 'three';
import julian from 'julian';
import { rescaleArray, rescaleXYZ } from './sk-scale';
import { SKEphemerisTable } from './sk-ephemeris-table';
import { SKEphem } from './sk-ephem';
import { auToMeters } from './conversions';
const sin =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.