text
stringlengths
9.82k
47.8k
<gh_stars>0 import wind, { Lexer } from "@candlelib/wind"; import { consumeComma } from "./consume_comma.js"; import { CSS_Gradient } from './gradient.js'; /* BODY {color: black; background: white } H1 { color: maroon } H2 { color: olive } EM { color: #f00 } // #rgb // EM { co...
import React, { FC, useState } from "react"; import { MetricInterface, Condition, MetricType } from "back-end/types/metric"; import { useAuth } from "../../services/auth"; import { useFieldArray, useForm } from "react-hook-form"; import GoogleAnalyticsMetrics from "./GoogleAnalyticsMetrics"; import RadioSelector from "...
<filename>src/modules/image-editor/image-editor.ts<gh_stars>0 /*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2021 <NAME>. All rights reserved. https://xdsoft.net */ import './image-editor.less'; import type { I...
<gh_stars>0 import {ListWrapper, StringMapWrapper, SetWrapper} from 'angular2/src/facade/collection'; import {RegExpWrapper, isPresent, StringWrapper, isBlank} from 'angular2/src/facade/lang'; import {Injectable, Inject, OpaqueToken, Optional} from 'angular2/core'; import {CONST_EXPR} from 'angular2/src/facade/lang'; i...
<reponame>alarkbentley/imodeljs<filename>core/geometry/src/serialization/BGFBReader.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright no...
<reponame>lbueker/ag-grid import { RowNode } from "./rowNode"; import { ICellEditorComp, ICellEditorParams } from "../interfaces/iCellEditor"; import { ICellRendererComp, ICellRendererFunc, ICellRendererParams } from "../rendering/cellRenderers/iCellRenderer"; import { Column } from "./column"; import { GridApi } from ...
import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { callOverlayHandler } from '../../../../../resources/overlay_plugin_api'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id...
<reponame>Kvek/temp<gh_stars>0 import { DefaultAppType, DefaultBlackType, DefaultBuyType, DefaultCautionType, DefaultImportantType, DefaultInformationType, DefaultPendingType, DefaultPrimaryType, DefaultRiskType, DefaultSecondaryType, DefaultSellType, DefaultShadowsType, DefaultStatusType, D...
import { Popover, Transition } from "@headlessui/react"; import { BeakerIcon, ChevronRightIcon, CogIcon, LightBulbIcon, LightningBoltIcon, MoonIcon, QuestionMarkCircleIcon, SearchIcon, } from "@heroicons/react/outline"; import { differenceInDays } from "date-fns"; import { parseISO } from "date-fns"; im...
import { Theme } from '../types/theme'; const MaterialTheme: Theme = { id: 'material', name: 'Material Design', hues: [ { id: 'red', name: 'Red', primary: '#F44336', shades: [ { name: '50', colour: '#FFEBEE', white_ink: false }, { name: '100', colour: '#FFCDD2', white_ink: false },...
<filename>newsearch.ts<gh_stars>0 /** soywiz 2021 */ class AsyncStorage { } interface Map<K, V> { map<R>(gen: (key: K, value: V) => R): R[] } Map.prototype.map = (function (gen: (key: any, value: any) => any): any[] { const out = [] for (const [key, value] of this.entries()) { out.push(gen(key, value)) } retu...
import * as React from "react"; import * as classes from "classnames"; import * as creditcard from "creditcardutils"; import FontAwesome = require("react-fontawesome"); import { format as formatExpiry } from "cc-expiry"; import { Address, Coupon, LineItem, Totals, Card, ShippingRate } from "./types"; import { Countries...
/* * Copyright 2020 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
import * as vscode from 'vscode'; import * as parsers from '../parsers'; import sleep from '../util/sleep'; import { IForceService } from '../forceCode'; import * as forceCode from '../forceCode'; import * as error from '../util/error'; import diff from './diff'; import { configuration } from '../services'; import { ge...
<reponame>lozalojo/chat-images //@ts-nocheck /*! * Compressor.js v1.0.6 * https://fengyuanchen.github.io/compressorjs * * Copyright 2018-present <NAME> * Released under the MIT license * * Date: 2019-11-23T04:43:12.442Z */ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructo...
import * as path from 'path'; import * as fs from 'fs-extra'; import { Socket } from 'net'; import { ChildProcess } from 'child_process'; import * as chokidar from 'chokidar'; import debounce from 'debounce'; import isAbsoluteUrl from 'is-absolute-url'; import { DebugProtocol } from 'vscode-debugprotocol'; import { Ini...
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
<gh_stars>0 import ScreenSpaceEventHandler from 'cesium/Source/Core/ScreenSpaceEventHandler'; import ScreenSpaceEventType from 'cesium/Source/Core/ScreenSpaceEventType'; import CallbackProperty from 'cesium/Source/DataSources/CallbackProperty'; import Color from 'cesium/Source/Core/Color'; import HeightReference from '...
/** * @module ledger */ /******************************************************************************** * Binance Chain Ledger App Interface * (c) 2018-2019 Binance * (c) 2018 ZondaX GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian...
<reponame>oliverwalsh7/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------...
<gh_stars>1-10 /* eslint-disable */ /** * Export items model */ import { IToolsItems, IDropDownItemModel, IRichTextEditor, IListDropDownModel } from '../base/interface'; export let templateItems: string[] = ['alignments', 'formats', 'fontname', 'fontsize', 'fontcolor', 'backgroundcolor', 'align', 'display', 'table...
<reponame>rjcarlson49/homebridge-dooya-0<filename>src/dooyaAccessory.ts import { Service, PlatformAccessory, CharacteristicValue, CharacteristicSetCallback, CharacteristicGetCallback } from 'homebridge'; import { DooyaHomebridgePlatform } from './platform'; enum D { ANY = -1, REQ_Q = 0, // 1 XMIT_Q = 1, // 2...
/** * Created by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * on 5/10/2017. */ import { Injectable } from '@angular/core'; import { InputMaskState } from './input-mask-state'; export const PLACE_HOLDER_CHAR = '_' export const EMPTY_STRING = ''; export const CARET_TRAP = '[]'; export interface IMaskConfig { ma...
<gh_stars>1-10 import AceGUI, { AceGUIWidgetCheckBox, AceGUIWidgetDropDown, } from "@wowts/ace_gui-3.0"; import Masque, { MasqueSkinGroup } from "@wowts/masque"; import { OvaleBestActionClass } from "../engine/best-action"; import { OvaleCompileClass } from "../engine/compile"; import { OvaleSpellFlashClass } f...
<gh_stars>1-10 import {ddescribe, describe, it, xit, iit, expect, beforeEach, IS_DARTIUM} from 'angular2/test_lib'; import {BaseException, isBlank, isPresent} from 'angular2/src/facade/lang'; import {reflector} from 'angular2/src/reflection/reflection'; import {MapWrapper, ListWrapper} from 'angular2/src/facade/collect...
import React, {useEffect, useRef, useState} from 'react'; import {GetDetail, QueryGroup} from '@/pages/StaffAdmin/ContactWay/service'; import {message} from 'antd/es'; import type {FormInstance} from 'antd'; import {Alert, Badge, Button, Divider, Form, Row, Space, Tooltip, Typography} from 'antd'; import {Link} from 'u...
<reponame>AaronDavidNewman/VexflowEditor // [Smoosic](https://github.com/AaronDavidNewman/Smoosic) // Copyright (c) <NAME> 2021. import { SvgHelpers, OutlineInfo } from './svgHelpers'; import { SmoTextGroup, SmoScoreText } from '../../smo/data/scoreModifiers'; import { SuiTextEditor } from './textEdit'; import { SuiScr...
import getShaders from "./FluidShaders"; import SplatVector from "./FluidDraw"; import HSVTools from "./HSVTools"; /*eslint no-unused-expressions: "off"*/ /** * @brief Port of stable fluid simulation using WebGL From this project: * https://github.com/PavelDoGreat/WebGL-Fluid-Simulation * * This component modular...
<gh_stars>1-10 // ZipFile.ts - ZIP file handling // (c) <NAME>, 2019 // https://benchmarko.github.io/CPCBasicTS/ // // Idea based on: https://github.com/frash23/jzsip/blob/master/jzsip.js // (and Cpcemu: zip.cpp) // https://en.wikipedia.org/wiki/Zip_(file_format) import { Utils } from "./Utils"; type CodeType = { ...
<gh_stars>0 import type * as Slate from 'slate' import { StyleControlDefinition, StyleControlType } from '../controls/style' import { ResolveWidthControlValue } from '../runtimes/react/controls' import { StyleControlFormattedValue } from '../runtimes/react/controls/style' import type { Element, Data } from '../state/re...
<gh_stars>1-10 //@ts-nocheck import { Line3, Plane, Triangle, Vector3 } from 'three'; /** * Ported from: https://github.com/maurizzzio/quickhull3d/ by <NAME> (https://github.com/maurizzzio) */ const Visible = 0; const Deleted = 1; const _v1 = new Vector3(); const _line3 = new Line3(); const _plane = new Plane(...
import { Type, TypeMap, FunType, OverloadedType, CodeType, InstanceType, ConstructorType, VariableType, PrimitiveType, AnyType, VoidType, QuantifiedType, INT, FLOAT, ANY, VOID, pretty_type, TypeVisit, TypeVariable, type_visit, VariadicFunType } from './type'; import * as ast from './ast'; import { Gen, overlay, m...
<gh_stars>0 import { VueComponent, Prop, Watch } from 'vue-typescript' import { dataService } from '../../service/dataService'; import * as VueRouter from 'vue-router'; //import '../../favicon.ico'; declare var $: any; Vue.use(VueRouter); var router = new VueRouter(); @VueComponent({ template: require('./WxInqui...
<reponame>mgenware/iv-viewer-ex import { createElement, addClass, removeClass, css, removeCss, wrap, unwrap, remove, easeOutQuart, clamp, assignEvent, getTouchPointsDistance, ZOOM_CONSTANT, MOUSE_WHEEL_COUNT, mustQuerySelector, } from './util'; import * as imgLoadedProxy from 'imagesloaded...
// Get the version number. import {version} from "./version.js"; import NOAHModule from "./noahModule.js"; import { replacePSElement, makeDipsi, makeDipsiGenerator, asapMixingPPText } from "./elements.js"; import { allPhases, allGradients, allWavemakers, Parameter } from "./parameters.js"; import { AF...
import * as React from 'react'; import * as ReactFauxDOM from 'react-faux-dom'; import * as d3 from 'd3'; import sizeMe from 'react-sizeme'; import { IAttribute, IValueType } from '../data-manager/attribute'; import { ICase, IDataSet, IDerivationSpec } from '../data-manager/data-manager'; import { Menu, MenuItem, Popov...
interface ShakeSettings { translate: number; rotate: number; always: number; } interface ParticleSettings { count: number; loseCount: number; maxInitSpeed: number; } interface DetailSettings { clouds: boolean; grass: boolean; dusk: boolean; floodlight: boolean; disco: boole...
<filename>src/stores/SearchStore.ts<gh_stars>10-100 /** **************************************************************************** * Copyright 2020-2020 Exactpro (Exactpro Systems Limited) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
<filename>apps/api-extractor/src/analyzer/AstSymbolTable.ts // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. /* eslint-disable no-bitwise */ // for ts.SymbolFlags import * as ts from 'typescript'; import { Pa...
import { isClassProvider, isExistingProvider, isFactoryProvider, isValueProvider, NormalizedProvider, ProviderWithScope, Tag, TagProvider, TagRegistry, Token } from './provider'; import { ClassType, CompilerContext, CustomError, getClassName, isClass, isFunction, isPrototypeOfBase } from '@deepkit/core'; import { getCl...
<reponame>gristlabs/grist-core<filename>app/client/components/Importer.ts /** * Importer manages an import files to Grist tables * TODO: hidden tables should be also deleted on page refresh, error... */ // tslint:disable:no-console import {GristDoc} from "app/client/components/GristDoc"; import {buildParseOptionsFo...
<reponame>privy-io/privy-crypto-js import FormData from 'form-data'; import {CryptoEngine, CryptoVersion} from '@privy-io/crypto'; import {Http} from './http'; import {PRIVY_API_URL, PRIVY_KMS_URL, DEFAULT_TIMEOUT_MS, REQUESTER_ID_ADMIN} from './constants'; import { batchDataKeyPath, batchUserDataPath, dataKeyPat...
import React, { useEffect, useState, useRef, useReducer } from 'react' // eslint-disable-line import semver from 'semver' import { CompilerContainerProps } from './types' import { ConfigurationSettings } from '@remix-project/remix-lib-ts' import * as helper from '../../../../../apps/remix-ide/src/lib/helper' import { c...
<reponame>RHElements/rhelements import { LitElement, html } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; import { ColorTheme, ComposedEvent } from '@patternfly/pfe-core'; import { SlotController } from '@patternfly/pfe-core/controllers/slot-controller.js'; import { pfelement, bound, ...
<filename>src/vs/workbench/parts/git/node/git.lib.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------...
class EventEmitter { private _e: any; public on(event: string, callback: Function, ctx?: any) { const e = this._e || (this._e = {}); (e[event] || (e[event] = [])).push({ fn: callback, ctx: ctx }); return this; } public off(event: string, callbac...
/* Copyright 2015 - 2021 The Matrix.org Foundation C.I.C. 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...
import invariant from "invariant"; import React, { Component, PropsWithChildren, RefObject } from "react"; import { Animated, findNodeHandle, HostComponent, Insets, LayoutChangeEvent, Platform, ScrollResponderEvent, ScrollViewProps, StyleSheet, View, } from "react-native"; const { default: Scroll...
import * as mongodb from 'mongodb'; import * as mongoose from 'mongoose'; // dummy variables var cb = function () {}; /* * section model.js * http://mongoosejs.com/docs/api.html#model-js */ var MongoModel = mongoose.model('MongoModel', new mongoose.Schema({ name: String, type: { type: mongoose.Schema...
<filename>src/lib/hex-map.ts import { Quest } from '../types/quest'; import { findCmd } from './command/util'; import { Cmd } from './_command'; import { msg } from './io'; import { log } from './logger'; function createHex(x: any, y: any, data: any) { const name = map.coordToCellName(x, y); // ts-error-fixed ts-m...
<filename>src/index.ts<gh_stars>0 /* * This is the list of possible WEBM file sections by their IDs. * Possible types: Container, Binary, Uint, Int, String, Float, Date */ interface Section { name: string; type: string; } const sections: Record<number, Section> = { 0xa45dfa3: { name: 'EBML', type: 'Container...
import { ViewerPages, ViewerIcons, ViewerUIButtons, IconData, LaymicClassNames, LaymicStateClassNames } from "../interfaces/index"; import { setRole } from "../utils"; // svg namespace const SVG_NS = "http://www.w3.org/2000/svg"; // svg xlink namespace const SVG_XLINK_NS = "http://www.w3.org/1999/xlink"; ...
import { expect } from 'chai' import { constants, BigNumber } from 'ethers' import { EpochManager } from '../../build/typechain/contracts/EpochManager' import { GraphToken } from '../../build/typechain/contracts/GraphToken' import { Staking } from '../../build/typechain/contracts/Staking' import { NetworkFixture } fr...
/* eslint-disable max-lines-per-function */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { DataFieldSelectorValue, DataFieldSelectorValueCandidate, } from "./fluent_ui_data_field_selector"; import { Dataset, deepClone, Expression, getById, Specific...
<filename>projects/ngx3js/src/lib/threejs-library/modules/three/examples/TiltLoader.ts import { BufferAttribute, BufferGeometry, DoubleSide, FileLoader, Group, Loader, LoadingManager, Mesh, MeshBasicMaterial, Quaternion, RawShaderMaterial, TextureLoader, Vector3 } from 'three'; import * as fflate from './fflate.module'...
<filename>packages/core/src/root.ts import {RemoteComponentType} from '@remote-ui/types'; import { ACTION_MOUNT, ACTION_INSERT_CHILD, ACTION_REMOVE_CHILD, ACTION_UPDATE_PROPS, ACTION_UPDATE_TEXT, KIND_ROOT, KIND_COMPONENT, KIND_TEXT, KIND_FRAGMENT, } from './types'; import type { Serialized, Remo...
<reponame>SkynetRTN/afterglow-access import { Component, OnInit, Input, Output, OnChanges, OnDestroy, ViewChild, ElementRef, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, EventEmitter, Directive, SimpleChanges, } from '@angular/core'; import { Point, Rectangle } from 'paper'; i...
<reponame>NoahOliverRigonan/WebPOS-ui import * as wjcCore from 'wijmo/wijmo'; import * as wjcXlsx from 'wijmo/wijmo.xlsx'; import * as wjcGrid from 'wijmo/wijmo.grid'; import * as wjcGridFilter from 'wijmo/wijmo.grid.filter'; export declare class _CalcEngine { private _owner; private _expression; private _e...
<filename>src/math.ts function deg2rad(deg: number): number { return deg * Math.PI / 180; } function rad2deg(rad: number): number { return rad * 180 / Math.PI; } function clamp( val: number, min: number, max: number, ): number { if (min > max) { return clamp(val, max, min); } return Math.min(Math.max(val, m...
<reponame>ahmedmrefaat/lang // Copyright 2017 <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 appl...
import React, {useEffect, useRef, useState} from 'react'; import Styles from "./styles/Zenza.module.scss"; import VideoElement from "./components/VideoElement"; import ZenButton from "./components/ZenButton"; import nico from "../util/nico"; import time2str from "../util/time2str"; import styled from "styled-components...
/** #bindinator Copyright ©2016-2017 <NAME> Bindinator (b8r) binds data and methods to the DOM and lets you quickly turn chunks of markup, style, and code into reusable components so you can concentrate on your project. b8r leverages your understanding of the DOM and the browser rather than trying to implement some k...
<reponame>apla/jekylljs /// <reference path='typings/tsd.d.ts' /> require('es6-promise').polyfill(); // auto-polyfill entire Node environment for Promise import Bunyan = require( 'bunyan' ); import DateFormat = require( 'dateformat' ); import FS = require( 'fs' ); import HTTP = require( 'http' ); i...
import { AnimationEvent } from '@angular/animations'; import { ConfigurableFocusTrapFactory, FocusMonitor, FocusOrigin, FocusTrap } from '@angular/cdk/a11y'; import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes'; import { CdkScrollable, ScrollDispatcher, ViewportRuler } from '@angular/cdk/overlay'; import { Pl...
import * as React from 'react'; // Custom styles import styles from './OneDriveTab.module.scss'; // Office Fabric import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog'; import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/components/Button'; import { Spinner } from '...
import { tmdbMovieAutocomplete } from 'component/autocompletes'; import { AssetImg } from 'component/assetimg'; import { collectionDropdown } from 'component/collectiondropdown'; import { relativeDateFormat, shouldAlwaysSucceed } from 'f61ui/utils'; import { filetypeForFile, iconForFiletype } from 'component/filetypes'...
<reponame>SsSanzo/obsidian-gantt import {Group, GanttInfo, EventType} from "./ganttDb"; import * as Enumerable from "linq-es2015"; import * as d3 from 'd3'; import { DateTime } from "luxon"; export class Renderer{ static KEYWORD_AXISTICKS = "axisticks"; static KEYWORD_TITLE = "title"; static KEYWORD_TODAY...
/** * Copyright 2017 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 i...
<gh_stars>10-100 // Copyright (c) 2020, NVIDIA CORPORATION. // // 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/plotViewer/index.ts /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-explicit-any */ import * as vscode from 'vscode'; import { Httpgd } from 'httpgd'; import { HttpgdPlot, IHttpgdViewer, HttpgdViewerOptions } from './httpgdTypes'; import * as path fro...
import { isNumber } from '@akylas/nativescript/utils/types'; import { GPS, GenericGeoLocation, Options as GeolocationOptions, LocationMonitor, setGeoLocationKeys, setMockEnabled } from '@nativescript-community/gps'; import * as perms from '@nativescript-community/perms'; import { TNSTextToSpeech } from '@nativescript-c...
<reponame>tushuhei/emoji-scavenger-hunt-ja /** * @license * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2...
<filename>editor/LimiterPrompt.ts // Copyright (C) 2020 <NAME>, distributed under the MIT license. import { HTML, SVG } from "imperative-html/dist/esm/elements-strict"; import { Prompt } from "./Prompt"; import { SongDocument } from "./SongDocument"; import { ColorConfig } from "./ColorConfig"; import { ChangeLimiterS...
<filename>demos/models.ts /// <reference types="@webgpu/types" /> import * as demotypes from './demotypes'; import * as glmatrix from 'gl-matrix'; import * as wg from '../src'; import * as gltfloader from 'gltf-loader-ts'; export const vertexDesc = new wg.StructType({ pos: { type: wg.Vec3f32, idx: 0 }, color: ...
/* This file is part of Astarte. Copyright 2020-2021 Ispirata Srl 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 require...
import { circle, rn, rndEl } from '../lib/mathlib'; import { formatScramble, mega, regScrambler } from './scramble'; let cubesuff = ["", "2", "'"]; let minxsuff = ["", "2", "'", "2'"]; let seq = []; let p = []; function adjScramble(faces, adj, len, suffixes?) { if (suffixes == undefined) { suffixes = [""]; } let...
<gh_stars>0 import Prism from 'prismjs'; import 'prismjs/components/prism-css-extras'; import convertToW3CGradient from '../utils/convertToW3CGradient'; import beforeTokenize from '../utils/previewers'; const HTML_TAG = /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:'[^']*'|'[^']*'|[^\s''>=]+(?=[\s>]))|(?=[...
<filename>src/extras/Earcut.ts /** * Port from https://github.com/mapbox/earcut (v2.2.2) */ const Earcut = { triangulate: function (data, holeIndices, dim?) { dim = dim || 2; const hasHoles = holeIndices && holeIndices.length; const outerLen = hasHoles ? holeIndices[0] * dim : data.length; let outerNode = ...
import { Command, CommandData } from '@dyno.gg/dyno-core'; import * as superagent from 'superagent'; const countries = [ { name: 'Afghanistan', alpha2: 'AF', alpha3: 'AFG' }, { name: 'ALA Aland Islands', alpha2: 'AX', alpha3: 'ALA' }, { name: 'Albania', alpha2: 'AL', alpha3: 'ALB' }, { name: 'Algeria', alpha2: 'DZ...
/** * @module service * @preferred * */ import {SnetError, ERROR_CODE} from '../errors/snet-error'; import * as pb from 'protobufjs'; import {ChannelSvc} from './channel'; // import {ServiceMetadata, Service, Channel, Account, InitOptions, ChannelState, // ServiceHeartbeat, RunJobOptions, RUN_JOB_STATE, Servi...
<filename>src/_internals/flow/Flow.ts import util from 'util' import { Execute } from '@commands/implementations/Execute' import { toMCFunctionName } from '@datapack/minecraft' import { coordinatesParser } from '@variables' import { PlayerScore } from '@variables/PlayerScore' import { CombinedConditions, getConditionS...
/* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable @typescript-eslint/no-namespace */ import Utils from "./utils"; import Lexer from "./lexer"; import NameOrIdentifier from "./nameOrIdentifier"; export namespace PrimitiveLiteral { export function nullValue(value: Utils.SourceArray, index: number):...
import React from "react"; import rpcService from "../../../app/service/rpc_service"; import { User } from "../../../app/auth/auth_service"; import SidebarNodeComponent, { compareNodes } from "./code_sidebar_node"; import { Subscription } from "rxjs"; import * as monaco from "monaco-editor"; import { Octokit } from "oc...
<reponame>mattdanielbrown/stylable import * as postcss from 'postcss'; import { FileProcessor } from './cached-process-file'; import { Diagnostics } from './diagnostics'; import { evalDeclarationValue } from './functions'; import { nativePseudoElements, reservedKeyFrames } from './native-reserved-lists'; import...
<filename>app/content/areas.ts import _ from 'lodash'; import { changeObjectStatus, createObjectInstance, findObjectInstanceById } from 'app/content/objects'; import { allTiles } from 'app/content/tiles'; import { logicHash, isLogicValid } from 'app/content/logic'; import { dropItemFromTable } from 'app/content/lootOb...
<reponame>ngx-meta/rules /** * @license * Copyright 2019 <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...
/** * Pokemon Showdown Dex * * Roughly equivalent to sim/dex.js in a Pokemon Showdown server, but * designed for use in browsers rather than in Node. * * This is a generic utility library for Pokemon Showdown code: any * code shared between the replay viewer and the client usually ends up * here. * * Licensin...
import All from './All' import Android from './Android' import Api from './Api' import AppCheck from './AppCheck' import AppPlus from './AppPlus' import AppPush from './AppPush' import Apple from './Apple' import AppsAdd from './AppsAdd' import AppsFilled from './AppsFilled' import Apps from './Apps' import Archive fr...
<filename>builders/car.ts<gh_stars>1-10 import { MultiMaterial } from '@babylonjs/core/Materials/multiMaterial'; import { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial'; import { Color3 } from '@babylonjs/core/Maths/math.color'; import { Curve3 } from '@babylonjs/core/Maths/math.path'; import { Ma...
// This Breath is a minimal tool for breathing exercises and breath visualization. // There are two source files - the TypeScript source is `app.ts` // and the compiled JavaScript is `app.js`, which is included in `index.html`. // The code isn't great - only a little thought went into organizing it, // and I'm ignoring...
<filename>VerticalLabelTest/assets/VerticalTTFAssembler.ts import { assetManager, Color, director, dynamicAtlasManager, fragmentText, getBaselineOffset, HorizontalTextAlignment, IAssembler, js, Label, LabelOutline, LabelShadow, Rect, safeMeasureText, Size, SpriteFrame, Texture2D, UITransform, Vec2, Vert...
<filename>libs/sdk-ui-pivot/src/impl/agGridColumnSizing.ts // (C) 2007-2020 GoodData Corporation import invariant, { InvariantError } from "ts-invariant"; import omit from "lodash/omit"; import omitBy from "lodash/omitBy"; import { getAttributeLocators, getColumnIdentifier, getColumnIdentifierFromDef, g...
<gh_stars>0 import { err, ERROR } from "../errors"; import { Binding } from "./Binding"; import { ManagedChangeEvent, ManagedCoreEvent, ManagedEvent, ManagedParentChangeEvent, } from "./ManagedEvent"; import { ManagedList } from "./ManagedList"; import { ManagedMap } from "./ManagedMap"; import { ManagedObject,...
import { incompleteEntityDTO, IncompleteEntitiesService } from 'src/app/services/dataServices/incomplete-entities-data.service'; import { HttpErrorResponse } from '@angular/common/http'; import { AuthService } from './../../services/auth.service'; import { WebsocketService } from './../../services/websocket.service'; i...
/* Copyright 2017 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 writing, software dis...
<reponame>terascope/teraslice<gh_stars>10-100 import type * as es from 'elasticsearch'; import * as ts from '@terascope/utils'; import { xLuceneTypeConfig } from '@terascope/types'; import { CachedTranslator, QueryAccess, RestrictOptions } from 'xlucene-translator'; import { toXluceneQuery, xLuceneQueryResult } from '@...
import { Component, OnInit, forwardRef, Inject } from "@angular/core"; import { HttpClient } from "@angular/common/http"; import { RHService } from "../../../services/RH/rhservice.service"; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms"; import { MatSnackBar } from "@angular/material/snack-bar...
<gh_stars>1-10 import { getOverlayMiddleware } from 'next/dist/compiled/@next/react-dev-overlay/middleware' import { IncomingMessage, ServerResponse } from 'http' import { WebpackHotMiddleware } from './hot-middleware' import { join, relative, isAbsolute } from 'path' import { UrlObject } from 'url' import { webpack } ...
import { merge } from 'lodash'; import * as moment from 'moment/moment'; export type Status = 'success' | 'failure' | 'missing' | 'skipped'; export type Compliance = 'compliant' | 'uncompliant' | 'skipped'; export type HealthStatus = 'ok' | 'critical' | 'warning' | 'unknown'; export type RollupServiceStatus = HealthSt...
<gh_stars>0 /// <reference path="meteor.d.ts" /> interface URLS { resetPassword: (token: string) => string; verifyEmail: (token: string) => string; enrollAccount: (token: string) => string; } declare module Accounts { var urls: URLS; function user(): Meteor.User; function userId(): string; function cr...