text
stringlengths
9.82k
47.8k
<filename>github-electron/github-electron-main-tests.ts<gh_stars>1-10 /// <reference path="./github-electron.d.ts" /> import { app, autoUpdater, BrowserWindow, contentTracing, dialog, globalShortcut, ipcMain, Menu, MenuItem, powerMonitor, powerSaveBlocker, protocol, Tray, clipboard, crashReporter, nati...
import { Camera, EventDispatcher, MOUSE, OrthographicCamera, PerspectiveCamera, Quaternion, Spherical, Vector2, Vector3 } from 'three'; const STATE = { NONE: - 1, ROTATE: 0, DOLLY: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_DOLLY: 4, TOUCH_PAN: 5 }; const CHANGE_EVENT = { type: 'change' }; const START_EVENT ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import type * as nbformat from '@jupyterlab/nbformat'; import * as path from 'path'; import { Event, EventEmitter, NotebookCell, NotebookCellData, NotebookCellKind, NotebookDocument, NotebookEdito...
import {createPopper, StrictModifiers, Modifier} from '@popperjs/core'; import {currentInput} from './bindGlobalEventListeners'; import {isIE11} from './browser'; import {TIPPY_DEFAULT_APPEND_TO, TOUCH_OPTIONS} from './constants'; import { actualContains, div, getOwnerDocument, isCursorOutsideInteractiveBorder,...
import React, { useState, useRef, useEffect, useCallback, useContext } from 'react'; import PropTypes from 'prop-types'; import { pick, omit, isUndefined, isNil, isFunction } from 'lodash'; import { List, AutoSizer, ListInstance, ListRowProps } from '../Picker/VirtualizedList'; import TreeNode from './TreeNode'; import...
import { walk, Node } from 'estree-walker'; function isUndefinedOrVoid (node: Node) { return node.type === 'Identifier' && node.name === 'undefined' || node.type === 'UnaryExpression' && node.operator === 'void' && node.argument.type === 'Literal' && node.argument.value === 0; } // Wrapper detection pretransforms t...
/** * Copyright (c) 2016, <NAME> * All rights reserved. */ /// <reference path="../typings/node.d.ts" /> /// <reference path="../typings/es6-function.d.ts" /> /// <reference path="../typings/graphql-types.d.ts" /> /// <reference path="../typings/graphql-language.d.ts" /> /// <reference path="../typings/graphql-util...
<reponame>dolauli/perks /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------...
<filename>components/cascader/cascader.component.ts<gh_stars>0 /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { BACKSPACE, DOWN_ARROW, ENTER, ESCAPE, LEFT_ARROW, RIGHT_ARROW, UP_ARRO...
<reponame>EveFerox/PandoraSkeletons<gh_stars>0 import * as PIXI from 'pixi.js'; import { GenerateStandardBody, GenerateStandardOutfit } from './presets_front'; import { GenerateSideBody, GenerateSideOutfit } from './presets_side'; import { BodySkeleton, PoseTag, SkeletonContainer } from './skeleton'; let app: PIXI.App...
<filename>src/elements/inputs/ui-date.ts<gh_stars>1-10 // // @description : // @author : <NAME> // @copyright : 2017 // @license : MIT import { autoinject, customElement, bindable, bindingMode, inlineView } from 'aurelia-framework'; import { UIBaseInput } from "./ui-input"; import { UIEvent } from "../../uti...
import * as React from 'react'; import { findDOMNode } from 'react-dom'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable } from 'rxjs/Observable'; import { Subscription } from 'rxjs/Subscription'; import { Activity, IBotConnection, User, DirectLine, DirectLineOptions, CardActionTypes } fro...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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 restricti...
<reponame>TimDaub/ocean.js import { DDO } from '../ddo/DDO' import { Metadata } from '../ddo/interfaces/Metadata' import { Service, ServiceAccess, ServiceCustomParameter, ServiceCustomParametersRequired } from '../ddo/interfaces/Service' import { SearchQuery } from '../metadatacache/MetadataCache' import { Edit...
<gh_stars>1-10 import classnames from 'classnames'; import Cookies from 'js-cookie'; import { FormClassName } from '@/amis-types'; import {FormatTime,getTime } from '@/utils/utils' //9418945984 生产计划 // 详情对话框 function detailsDialog() { return { type: 'button', label: '查看', level: 'info', // size: 'xs',...
import styles from './OrderPage.module.css' import classNames from 'classnames/bind' import { useRouter } from 'next/router' const cx = classNames.bind(styles) import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew' import ShoppingBagOutlinedIcon from '@mui/icons-material/ShoppingBagOutlined' import Perso...
<gh_stars>0 import * as _ from "lodash"; import { JSWLogger } from "jsw-logger"; import { BinaryParserBuffer } from "./BinaryParserBuffer"; // Shorcut for String.fromCharCode var chr = String.fromCharCode; var maxBits = []; for (var i = 0; i < 64; i++) { maxBits[i] = Math.pow(2, i)...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * Copyright (C) 2008 Apple Inc. All rights reserved. * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source a...
<gh_stars>1-10 /* * The MIT License * * Copyright 2017 kuniaki. * * 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 us...
import { Meteor } from 'meteor/meteor' import { Random } from 'meteor/random' import * as _ from 'underscore' import { logger } from '../../logging' import { DBRundown, RundownHoldState, RundownId } from '../../../lib/collections/Rundowns' import { Part, DBPart, isPartPlayable } from '../../../lib/collections/Parts' im...
<reponame>jsGraph/mxgraph<filename>packages/core/src/view/geometry/shape/node/TextShape.ts /** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, <NAME> * Updated to ES9 syntax by <NAME> 2021 * Type definitions from the typed-mxgraph project */ import mxClient from '../../../../mxClient'; import { ...
import * as assert from "assert" import * as http from "http" import { testCli } from "." import distbin from "../" import * as activitypub from "../src/activitypub" import { clientAddressedActivity, getASId, objectTargets, objectTargetsNoRecurse, targetedAudience } from "../src/activitypub" import { ASJsonLdP...
<filename>src/reader.ts /** * Copyright (c) 2013 <NAME> <<EMAIL>> * * 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...
import React from 'react' import { bindMultipleRefs, Position, reactCanvasRenderTarget, reactSvgRenderTarget, useCursorInput, useDragMove, useDragSelect, useKey, usePatchBasedUndoRedo, useSelected, useSelectBeforeOperate, useWheelScroll, useWheelZoom, useWindowSize, useZoom, usePartialEdit, useEdit, reverseTransformPos...
var __global = this; declare module WinJSContrib.UI.WebComponents { var watch: any; } var profiler = __global.msWriteProfilerMark || function () { }; module WinJSContrib.UI.Pages { function abs(uri) { var a = window.document.createElement("a"); a.href = uri; return a.href; } var ...
<gh_stars>100-1000 import * as geom from "../format/geom"; import * as dbft from "../format/dragonBonesFormat"; import * as spft from "../format/spineFormat"; type Map<T> = { [key: string]: T; }; type Input = { name: string; data: spft.Spine; textureAtlas: string; }; /** * Convert Spine format to Drago...
import { FormGroup, FormControl, AbstractControl, FormArray } from '@angular/forms'; import { isUndefined, isFunction, isPrimitive, stringify, Constructor, } from '@pebula/utils'; import { targetStore, TypeMetadata, PropMetadata, SerializerContext, SerializationFactory, PoClassPropertyMap, BaseS...
"use strict"; const ethTx = require("ethereumjs-tx"); import firebase from "@react-native-firebase/app"; import "@react-native-firebase/messaging"; const uuidv4 = require("uuid/v4"); import Web3 from "web3"; import { store } from "../store/store"; import I18n from "../i18n/I18n"; import { storage } from "../lib/tx"; im...
// @ts-nocheck import { EventDispatcher, MOUSE, Quaternion, Spherical, TOUCH, Vector2, Vector3 } from 'three'; // This set of controls performs orbiting, dollying (zooming), and panning. // Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default). // // Orbit - left mouse / touch: ...
// @ts-ignore import Constants from '@/utils/constants'; import classnames from 'classnames'; import { connect } from 'dva'; import LS from 'parsec-ls'; import React, { Component, RefObject } from 'react'; import router from 'umi/router'; import request from '@/utils/request'; import initWx from '@/utils/wx'; //關注圖 im...
import * as vscode from 'vscode'; var eaw = require('eastasianwidth'); /** direction type */ type Direction = "up" | "right" | "down" | "left"; /** boxdraw-extesnion class */ class Boxdraw { // constant /** application id for vscode */ public appid = "boxdraw"; // context /** f...
/* Simple library to convert html-ified theorymine format to latex. Example TheoryMine HTML format for a Theory: <table><tr><td align=\"center\" width=\"100%\"> T<sub>14<\/sub> = C<sub>z<\/sub>(Bool) | C<sub>y<\/sub>(T<sub>14<\/sub>, Bool) <br><br> f<sub>&zeta;&phi;<\/sub> : T<sub>14<\/sub> &times; &#8469; &#8594;...
<filename>src/renderers/webgl/WebGLProgram.ts import { ShaderChunk, NoToneMapping, AddOperation, MixOperation, MultiplyOperation, CubeRefractionMapping, CubeUVRefractionMapping, CubeUVReflectionMapping, CubeReflectionMapping, PCFSoftShadowMap, PCFShadowMap, VSMShadowMap, ACESFilmicToneMapping, CineonToneM...
<filename>utility-mode/profiles.ts /* Copyright 2016 Google Inc. 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 b...
<reponame>TigerGold59/typedyno<gh_stars>0 import { CommandArgument, SimpleCommandManual, SubcommandManual } from "../../command_manual.js"; import { MAINTAINER_TAG } from "../../main.js"; import { log, LogType } from "../log.js"; import { escape_reg_exp, is_string, TextChannelMessage } from "../typeutils.js"; import { ...
import React from 'react'; import styled from 'styled-components'; const torsoPath = 'M204.01 59.72C219.97 65.60 221.07 79.83 215.23 95.97C215.23 95.97 213.75 110.06 205.20 124.12C206.75 132.90 202.52 168.50 165.11 156.28C148.94 151.00 142.36 138.77 148.21 122.63L164.53 78.32C170.37 62.17 188.05 53.85 204.01 59.72';...
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lic...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------...
<filename>src/datasource.ts ///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" /> import angular from 'angular'; import _ from 'lodash'; import moment from 'moment'; import * as dateMath from 'app/core/utils/datemath'; import * as Druid from 'druid.d' const DRUID_DATASOURCE_PATH = '/druid/...
<gh_stars>1-10 import { PlayFabClient } from "playfab-sdk"; import { normalTextStyle, clickAnimationDepth } from "../../utils/constants"; import { BiomeDetail, BundleDetail, ItemCounter, ItemDetail } from "../../utils/types"; import Button from "../../utils/button"; import { numberWithCommas, wrapString } from "../../u...
import {Animation} from './animation'; import { RingGroup, RingGroupType, RingMovement, isNegativeMovement, } from './movement'; type Context = CanvasRenderingContext2D; /** * To make drawing simpler, the canvases for drawing parts of the board are * done in layers. These are their names. * In order from t...
/* * To generate the initial file, we took the output of all submodules for * 'AAPL', 'OCDO.L', '0700.HK' and '^IXIC' and ran the results through * the awesome https://app.quicktype.io/. * * Manual cleanup afterwards: * * 1) Spaces: 4 to 2 * ~~2) Wrapped in a module~~ <--- undid this after tooling issues. * ...
<filename>main.ts import { app, BrowserWindow, screen } from 'electron'; import * as path from 'path'; import * as url from 'url'; const { systemPreferences } = require('electron'); const electron = require('electron') const { powerSaveBlocker } = require('electron'); import { globals } from './main-globals'; const ...
<filename>src/parser/simplify.ts import {create, all, MathNodeCommon, FunctionNode, MathNode} from "mathjs"; import {HandleName, isNumeric} from "./util"; import {builtinMultiArgs, builtinOneArg, builtinThreeArgs, builtinTwoArgs, builtinZeroArg, constants} from "./builtin"; const math = create(all); //Disable conflic...
/* Copyright 2014 darkf, Stratege Copyright 2015 darkf 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...
<filename>slpgraphmanager.ts import { SlpTokenGraph, TokenDBObject, UtxoDbo, AddressBalancesDbo, GraphTxnDbo } from "./slptokengraph"; import { SlpTransactionType, Slp, SlpTransactionDetails, Primatives } from "slpjs"; import { SyncCompletionInfo, SyncFilterTypes, txid, txhex, SyncType, Bit } from "./bit"; import { Que...
<filename>Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/nursing/department/nursing-inpatient.component.ts<gh_stars>1-10 import { Component, ChangeDetectorRef } from "@angular/core"; import { RouterOutlet, RouterModule, Router } from "@angular/router"; import { NursingBLService } from "../shared/nursing.bl.service"...
<reponame>AndrewKishino/TezBakerJS import Sotez, { utility, constants } from 'sotez'; import _sodium from 'libsodium-wrappers'; import { BakerInterface, BakerOptions, Head, Keys, Signed, StoreInterface, } from './types'; // CONSTANTS const CONSTANTS = { MAINNET: { cycleLength: 4096, threshold: 7...
import {JsonObject} from "./jsonobject"; import {Question} from "./question"; import {Base, ISurveyData, ISurvey, ISurveyImpl, ITextProcessor, SurveyError, HashTable} from "./base"; import {ItemValue} from "./itemvalue"; import {surveyLocalization} from "./surveyStrings"; import {QuestionSelectBase, QuestionCheckboxBa...
<filename>src/monet.d.ts // https://github.com/fantasyland/fantasy-land#setoid interface Setoid<A> { equals(other: A): boolean; 'fantasy-land/equals'?(other: A): boolean; } /* The (covariant) functor typeclass */ // https://github.com/fantasyland/fantasy-land#functor interface Functor<T> { map<V>(fn: (val: T) =>...
import path = require('path'); import process = require("process"); import fs = require("fs"); import child_process = require("child_process"); import os = require("os"); import tc = require("./typecheck"); import parser = require("./parser/parser"); import ast = require("./parser/ast"); import colors = require('colors...
<gh_stars>0 /* * Copyright 2012-2020 Online-Go.com * * 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...
<gh_stars>1-10 class Binder { _api: string = null; PrimaryKeys: Array<string> = new Array<string>(); constructor(primaryKeys: Array<string> = null, api: string = null, autoUpdate: boolean = false, TypeObject: { new(obj: any): IObjectState; } = null, staticProperties: Array<string> = null) { var p =...
import ArrayBufferSlice from "../../ArrayBufferSlice"; import { readFileSync, writeFileSync } from "fs"; import { assert, hexzero, hexdump } from "../../util"; import * as Pako from 'pako'; import * as BYML from "../../byml"; function fetchDataSync(path: string): ArrayBufferSlice { const b: Buffer = readFileSync(...
import { BrowserNode, NonEIP712Message } from "@connext/vector-browser-node"; import { ChannelMastercopy, WithdrawCommitment } from "@connext/vector-contracts"; import AwesomeDebouncePromise from "awesome-debounce-promise"; import { ConditionalTransferCreatedPayload, ConditionalTransferResolvedPayload, DepositRec...
<gh_stars>0 export interface SimpleArtifact { artifactAlias: string; buildDefinitionId: string; buildNumber: string; buildId: string; artifactType: string; isPrimary: boolean; sourceId: string; } export class UnifiedArtifactDetails { build: Build; commits: Change[]; workitems: R...
<filename>src/replace.ts import { Fragment, Slice, Node as ProsemirrorNode, ResolvedPos, NodeType, ContentMatch } from "prosemirror-model"; import { ReplaceStep, ReplaceAroundStep } from "./replace_step"; import { Transform } from "./transform"; import { insertPoint } from "./structure"; // :: (Node, number, ?number,...
<filename>packages/orders/order.ts // import { readFile } from 'fs/promises' // const pkg = JSON.parse(await readFile(new URL('./orders.json', import.meta.url))) // const { name, version } = pkg; import { stringToHex, hexToString, stringToU8a, u8aToHex } from '@polkadot/util'; import { createRequire } from 'module'; /...
<reponame>ninislope/badstate-mogura2 class Scene { private scenes!: NodeListOf<Element>; start() { } exit() { } save() { const names = Object.keys(_player); return names; } protected setScene(name: string) { if (!this.scenes) this.scenes = d...
// The MIT License (MIT) // // vscode-proxy (https://github.com/mkloubert/vscode-proxy) // Copyright (c) <NAME> <<EMAIL>> // // 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 withou...
// ##__API_RESOURCES_START__## // ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##' /** * ©2022 Commerce Layer Inc. * OpenAPI schema, version 2.8.0 **/ export { default as Addresses } from './resources/addresses' export { default as Adjustments } from...
import { EventEmitter } from 'events'; import * as Events from './events'; import { columnProperty, Alignment, emojiLevel } from '../types/options'; import { isNum, getStringSize, getStringLines, fillLine, arrayMatch } from './helper'; /** * A class for column information. * @internal */ export class ColumnInfo ext...
<reponame>Jun0413/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------...
import * as cliProgress from 'cli-progress'; import { readFile, stat } from 'fs/promises'; import { PromisePool } from '@supercharge/promise-pool'; import path from 'path'; import Arweave from 'arweave'; import { signers, bundleAndSignData, createData, DataItem } from 'arbundles'; import { ArweaveSigner, Signer } from...
<reponame>luikore/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------...
/* Copyright (C) 2017 Red Hat, 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 ...
<reponame>Rafiuth/Soggfy<gh_stars>100-1000 import config from "../config"; import { Connection, MessageType } from "../connection"; import Utils from "../utils"; import UIC from "./components"; import { Platform, SpotifyUtils } from "../spotify-apis"; import Resources from "../resources"; import ComponentsStyle from "...
// Type definitions for Dexie v2.0.1 // Project: https://github.com/dfahlander/Dexie.js // Definitions by: <NAME> <http://github.com/dfahlander> declare type IndexableTypePart = string | number | Date | ArrayBuffer | ArrayBufferView | DataView | Array<Array<void>>; declare type IndexableTypeArray = Array<Indexab...
/* * Copyright 2020 NEM * * 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 writi...
<gh_stars>0 import * as io from 'socket.io'; import * as cp from 'child_process'; import * as path from 'path'; import * as vscodeUri from 'vscode-uri'; import * as rpc from 'vscode-ws-jsonrpc/lib'; import * as server from 'vscode-ws-jsonrpc/lib/server'; import * as lsp from 'vscode-languageserver'; import { ReadLine,...
import { displayPartsToString, LanguageService, NavigationBarItem, Program, ScriptElementKind, SemanticClassificationFormat, TextSpan, SymbolFlags, isIdentifier, isPropertyAccessExpression, IndentStyle, CancellationToken, flattenDiagnosticMessageText, getSupportedCodeFixes, FileTextChanges, UserPreferences, FormatCodeS...
<filename>src/parsers/tlcCodes.ts // TLC message constants // https://github.com/tlaplus/tlaplus/blob/master/tlatools/src/tlc2/output/EC.java // Commit <PASSWORD> export enum TlcCodeType { Info, // Such messages must be processed by the parser somehow Warning, // Such messages will be converted into w...
<reponame>dermotduffy/frigate-hass-card import { StyleInfo } from 'lit/directives/style-map'; import { CallServiceActionConfig, CustomActionConfig, LovelaceCard, LovelaceCardEditor, MoreInfoActionConfig, NavigateActionConfig, ToggleActionConfig, UrlActionConfig, } from 'custom-card-helpers'; import { z ...
<gh_stars>0 import axios, { AxiosRequestConfig } from 'axios'; import moment, { Moment } from 'moment'; import WKT from 'terraformer-wkt-parser'; import { getAuthToken } from '../auth'; import { BBox } from '../bbox'; import { GetMapParams, ApiType, PaginatedTiles, HistogramType, FisPayload, MosaickingOrde...
<reponame>preli/jsl-render import { IJSLComponent, IJSLVNode, IJSLAnimation } from "./interfaces"; export function refresh() { if (JSLRender.lastCreatedRenderer != null) { JSLRender.lastCreatedRenderer.refresh(); } } function isFnc(f: any): boolean { return typeof f === "function"; } function i...
<reponame>PacktPublishing/Introduction-to-TypeScript-Video<gh_stars>1-10 // Copyright Joyent, Inc. and other Node contributors. // // 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 r...
import defaultFrag from './default.frag'; import defaultVert from './default.vert'; import FrameBuffer from './FrameBuffer'; import getUniformSetter from './get-uniform-setter'; import pureFrag from './pure.frag'; import pureVert from './pure.vert'; import Shader from './Shader'; import Texture from './Texture'; enum ...
/* * Planck.js * The MIT License * Copyright (c) 2021 <NAME>, <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 * t...
/*! ========================================================= * Material Kit React - v1.7.0 ========================================================= * Product Page: https://www.creative-tim.com/product/material-kit-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://githu...
<reponame>rstoenescu/vetur<gh_stars>1-10 import * as ts from 'typescript'; import { AST } from 'vue-eslint-parser'; import { T_TypeScript } from '../dependencyService'; export const renderHelperName = '__vlsRenderHelper'; export const componentHelperName = '__vlsComponentHelper'; export const iterationHelperName = '__...
<reponame>hslayers/hslayers-ng<gh_stars>10-100 /* eslint-disable no-eq-null */ import proj4 from 'proj4'; import { Cluster, ImageArcGISRest, ImageWMS, OSM, Source, ImageStatic as Static, TileArcGISRest, TileWMS, Vector as VectorSource, WMTS, XYZ, } from 'ol/source'; import { Control, MousePosi...
import { useEffect, useState } from "react" import { useQuery } from "react-query" import { useRecoilValueLoadable } from "recoil" import { useLCDClient } from "@terra-money/wallet-provider" import { AccAddress } from "@terra-money/terra.js" import useNewContractMsg from "../libs/useNewContractMsg" import Tooltips fro...
import { TimeseriesReadings, TimeSeriesReading, SearchResult as SearchResultV1 } from "../typings/models/OurWater"; import { SyncStatus } from "../typings/enums"; import { LoginDetails, EmptyLoginDetails, LoginDetailsType, ConnectionStatus, ExternalSyncStatusType, AnyLoginDetails, AnyExternalSyncStatus, ExternalSyncS...
import devConsole from '../devConsole'; import { Action, ElementMarkup, EventName, MutationType, DOMMutationAction, UserInteractionAction, RequestAction } from './types'; import { isRequestAction, isUserInteractionAction } from './helper'; // There are four types of data that are collected: // 1. Initial...
import Yox, { Data, VNode, Directive, ComponentOptions, YoxInterface, } from 'yox' import { TRUE, FALSE, UNDEFINED, MODE_HISTORY, PREFIX_PARAM, SEPARATOR_PATH, SEPARATOR_SEARCH, ROUTER_HOOK_BEFORE_ENTER, ROUTER_HOOK_AFTER_ENTER, ROUTER_HOOK_BEFORE_UPDATE, ROUTER_HOOK_AFTER_UPDATE, R...
import * as t from './types' import {ExpressionType as E} from './types' import {ObjectMap} from './internal' const enum NumberType { Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float } function dataForNumberExpression(expr: t.NumberExpression, type: NumberType): t.Expression { if (t...
<reponame>maksonlee/multitest_transport<filename>multitest_transport/ui2/app/services/mtt_lab_models.ts<gh_stars>0 /** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
<gh_stars>0 // d_bg // Handles BG (e.g. DZB) collision import ArrayBufferSlice from "../ArrayBufferSlice"; import { mat4, vec3 } from "gl-matrix"; import { Plane, AABB } from "../Geometry"; import { nArray, readString, assert } from "../util"; import { Endianness } from "../endian"; import { MathConstants } from ".....
<reponame>olmobuining/factorio-blueprint<filename>src/entity.ts import Victor from 'victor'; import Blueprint from './index'; import entityData from './defaultentities'; type Side = 1 | 2 | 'in' | 'out'; type Color = 'red' | 'green'; interface Connection { entity: Entity; color: Color; side: Side; id: string;...
<gh_stars>0 // tslint:disable:max-file-line-count import { AssetSwapperContractAddresses, MarketOperation, ProtocolFeeUtils, QuoteRequestor } from '@0x/asset-swapper'; import { RfqmRequestOptions } from '@0x/asset-swapper/lib/src/types'; import { MetaTransaction, RfqOrder, Signature } from '@0x/protocol-utils'; import ...
<reponame>liujingbreak/dr-comp-package<filename>main/wfh/ts/cmd/cli.ts /// <reference path="./cfont.d.ts" /> /* eslint-disable max-len */ import commander from 'commander'; import chalk from 'chalk'; import * as op from 'rxjs/operators'; // import * as tp from './types'; import * as pkgMgr from '../package-mgr'; // imp...
import { defineComponent, ref, h, Fragment, useSlots, CSSProperties, VNode, reactive, onMounted, onUnmounted, watch } from 'vue' import cls from 'classnames'; import CascaderFoundation, { BasicCascaderData, BasicEntity, BasicValue, ShowNextType } from '@douyinfe/semi-foundation/cascader/foun...
/// <reference path="./trimps.ts"/> let death_stuff = { max_hp: 1e300, block: 0, challenge_attack: 1, enemy_cd: 1, breed_timer: 300, weakness: 0, plague: 0, bleed: 0, explosion: 0, nom: false, slow: false, } function read_save() { let imps = 0; for (let imp of ['Chronoimp', 'Jestimp', 'Titimp', 'Flutimp'...
import { fileSystemProtocol } from './filesys'; import swimFuture from './swim'; import { ipToID, MemberState } from './swim'; import { paxos, leaderStream } from './paxos'; import { Observable, ReplaySubject, Subject } from 'rxjs/Rx'; import { partitionDataset } from './partition-dataset'; import { ReactiveQueue } fro...
/* Copyright © 2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distri...
import moment from 'moment' import { message } from 'antd' import { DEFAULT_SPLITER, DEFAULT_FONT_SIZE, DEFAULT_FONT_WEIGHT, DEFAULT_FONT_FAMILY, PIVOT_CELL_PADDING, PIVOT_CELL_BORDER, PIVOT_LINE_HEIGHT, PIVOT_MAX_CONTENT_WIDTH, PIVOT_CHART_ELEMENT_MIN_WIDTH, PIVOT_CHART_ELEMENT_MAX_WIDTH, PIVOT_C...
<gh_stars>100-1000 /* eslint-disable no-param-reassign */ /* eslint-disable @typescript-eslint/no-require-imports */ import { getRegistryUrl, install } from '../../shared/npm'; import fs from 'fs'; import path from 'path'; import axios from 'axios'; import packageJson from '../../shared/packageJson'; import { getTag, c...
<filename>public/app-thingspin-fms/angular-modules/pages/dataManagement/connectManagement/mqtt/index.ts // JS 3rd party libs import _ from "lodash"; import angular, { ITimeoutService } from 'angular'; const uid = require("shortid"); // Grafana libs import { CoreEvents } from 'app/types'; import { dateTime, AppEvents }...
import { Model } from "./Model"; import { EventMixin } from "marionext-event"; import { _ } from "marionext-lodash"; function splice(array: any[], insert: any[], at: number) { at = Math.min(Math.max(at, 0), array.length); var tail = Array(array.length - at); var length = insert.length; for (let i = 0; i < ta...