text
stringlengths
9.82k
47.8k
<gh_stars>1-10 import { Context, User, Session, checkTimer, Logger, Random, interpolate, Time } from 'koishi-core' import { ReadonlyUser, getValue, Adventurer, Show } from './utils' import {} from 'koishi-plugin-common' import {} from 'koishi-plugin-teach' import Event from './event' import Rank from './rank' import It...
<gh_stars>1-10 import {RNG} from "./RNG" import {SVGRoot, Rect} from "./SVG" import { Color, hsbToRGB} from "./mycolor"; export class Perlin { static noise(x:number, y:number, z:number) { let P = Perlin let X = Math.floor(x) & 255, // FIND UNIT CUBE THAT Y = Math.floor(y) & 255, ...
import "regenerator-runtime/runtime"; import Typography from '@material-ui/core/Typography'; import { WebGLView } from './WebGLView/WebGLView' import Grid from '@material-ui/core/Grid'; import { NamedCategoricalScales } from "./Utility/Colors/NamedCategoricalScales"; import { ContinuousMapping } from "./Utility/Colors...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import './expression.scss'; import React, { useState, useEffect } from 'reac...
<reponame>SRNV/Exium<filename>src/supports.ts export const SupportedStyleSheetPseudoElements = [ "after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error", "target-text", ]; ...
import React, { useEffect, useMemo, useRef, useState } from 'react'; import { Route, useHistory, Switch as RouterSwitch } from 'react-router-dom'; import './settings.less'; import 'antd/dist/antd.css'; import { Alert, Avatar, Button, Carousel, Checkbox, Divider, Form, Input, InputNumber, Layout, m...
<gh_stars>0 import { deleteCookie, generateId, generateRandom, getCookie, getCookieDomain, getCookies, getDataFromParams, getHostWithProtocol, insertAndExecute, parseCookieString, parseQuery, reformatDate, setCookie, } from "./helpers"; import { ClientProperties, Envs, Event, EventComp...
<filename>client/src/models/query/temp/QueryTools-old.ts import { v4 } from "uuid"; import _ from "lodash"; // import jmp from "jmp"; import jsonpath from "jsonpath"; import prettier from "prettier/standalone"; import prettierBabylon from "prettier/parser-babylon"; import SearchService from "@/services/SearchService"; ...
import MagicString, { Bundle } from 'magic-string'; import { walk, childKeys } from 'estree-walker'; import { getLocator } from 'locate-character'; import deindent from '../utils/deindent'; import CodeBuilder from '../utils/CodeBuilder'; import getCodeFrame from '../utils/getCodeFrame'; import isReference from '../util...
<reponame>ahaoboy/rubik-cube-solver<gh_stars>0 import { CubeState } from './type'; import Cube from './cube'; import { CENTERS, CORNERS, EDGES, allMoves1, allMoves2 } from './constants'; import { factorial, Cnk, max, rotateLeft, rotateRight, range, pruning, getNextMoves1, getNextMoves2, } from './uti...
<filename>src/datasource.ts import { //MetricFindValue, DataSourceInstanceSettings, DataQueryRequest, //ScopedVar, TimeRange, DataFrame, MutableDataFrame, FieldType, CircularDataFrame, //AnnotationQueryRequest, //AnnotationEvent, //LoadingState, //ScopedVars, } from '@grafana/data'; import { m...
import { HTMLWidget } from "@hpcc-js/common"; import * as Persist from "./Persist"; import "../src/ThemeEditor.css"; function hasLocalStorage(): boolean { const mod = "@hpcc-js/other"; try { localStorage.setItem(mod, mod); localStorage.removeItem(mod); return true; } catch (e) { ...
/** * Copyright (c) 2019 The xterm.js authors. All rights reserved. * @license MIT * * (EXPERIMENTAL) This Addon is still under development */ import { Terminal, ITerminalAddon, IBuffer, IBufferCell, IBufferRange } from 'xterm'; import { IColorSet } from 'browser/Types'; function constrain(value: number, low: nu...
/** * 部门树 * * 异步模式部门合并策略 * - 搜索: 在搜索发生选择事件时,进行延时性规范化,对选中项进行规范化 * - 本地规范: 如果选中的节点已经在渲染树中,将进行本地规范化 * - 远程规范: 如果选中节点在未在树中加载,则需要传递到远程进行规范化。 远程服务器缓存了完整的组织架构树 * - 选择: * - 通过搜索选中了下级部门,这时候选中父级部门需要将已选中的下级部门合并掉. 每个选中项应该有完整的parentIds路径,包括回显的数据 * - 搜索项选中规则 * - 直接选中 * - 异步直接选中 * - 父节点被直接选中 * ...
import * as jspb from 'google-protobuf' import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; export class ConfigObject extends jspb.Message { getId(): string; setId(value: string): ConfigObject; getApiversion(): string; setApiversion(value: string): ConfigObject; ...
<reponame>lydell/synth import { CONTAINER_STYLES, CSS, HAS_MATCHED_CHARS_CLASS, HIDDEN_CLASS, HIGHLIGHTED_HINT_CLASS, HINT_CLASS, MATCHED_CHARS_CLASS, MAX_Z_INDEX, MIN_Z_INDEX, MIXED_CASE_CLASS, PEEK_CLASS, ROOT_CLASS, SHRUGGIE, SHRUGGIE_CLASS, STATUS_CLASS, TEXT_RECT_CLASS, } from "../s...
import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import Box from '@navikt/sif-common-core/lib/components/box/Box'; import CounsellorPanel from '@navikt/sif-common-core/lib/components/counsellor-panel/CounsellorPanel'; import ExpandableInfo from '@navikt/sif-common-core/lib/components/e...
import * as Localization from 'expo-localization'; import { I18nResolver } from 'i18n-ts'; type TYPE = { add: string; perishableGoods: string; setLocation: string...
<reponame>mirido/html5_experiment // Copyright (c) 2016-2020, mirido // All rights reserved. import { IPoint, IRect } from './app-def'; import { g_keyStateManager, g_pointManager } from './app-global'; import { assert } from './dbg-util'; import { jsPoint } from './geometry'; import { blend_image, era...
<gh_stars>0 import { Const } from "../Const"; import { CacheStyle } from "../display/css/CacheStyle"; import { SpriteStyle } from "../display/css/SpriteStyle"; import { TextStyle } from "../display/css/TextStyle"; import { Graphics } from "../display/Graphics"; import { Sprite } from "../display/Sprite"; import { Sprit...
/** * # Commands and State * * This module implements the new commands provided by ModalEdit. It also stores * the extension state; which mode we are in, search parameters, bookmarks, * quick snippets, etc. */ //#region -c commands.ts imports import * as vscode from 'vscode' import * as actions from './actions' ...
<reponame>luin/ioRedis import { exists, hasFlag } from "@ioredis/commands"; import { EventEmitter } from "events"; import { AbortError, RedisError } from "redis-errors"; import asCallback from "standard-as-callback"; import Command from "../Command"; import ClusterAllFailedError from "../errors/ClusterAllFailedError"; ...
<reponame>ibm-watson-iot/iota-starter-server-fm-saas<gh_stars>1-10 /** * Copyright 2016,2020 IBM Corp. 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 * * ...
<reponame>s2terminal/furusato-tax<filename>src/config.ts /** 市町村民か都道府県か */ export enum ResidentTaxType { city, prefecture } export enum TaxType { /** 住民税 */ Resident = "Resident", /** 所得税 */ Income = "Income" } export enum SpouseLossType { /** 寡婦 */ lossHusband, /** 寡夫 */ lossWife, /** 特別の寡婦 */ ...
<gh_stars>0 import {PropertyValueTypes} from "../SharedDataModels"; export interface IDefaultProperty { key: string; label: string; unit?: string; type?: string; valueType?: PropertyValueTypes; exclude_from_bom?: boolean; auto_complete_options?: string[]; } export const defaultPinType = "U...
<filename>src/common/GPUHelper.ts // @ts-ignore import * as cl from 'node-opencl'; import { log, isUint8, isFloat32, isInt32, nullValForType, checkType, gpuTypeForType, typeForGPUType, stringifyVector3, isArray, isInteger } from './utils'; import { Type, GPUBufferDataType, TomType, GPUTypedArray, TomTypedArray } from '...
import { Null } from "uecs"; import { CollisionState, NetTransform, RigidBody, Transform, Velocity } from 'common/component'; import { Sprite, Direction } from "client/core/gfx"; import { CollisionKind, TILESIZE, TILESIZE_HALF, TILE_SCALE } from "client/core/map"; import { AABB, v2, Vector2 } from 'common/math'; import...
<gh_stars>0 // tslint:disable variable-name import * as Settings from '../common/settings'; import Vec2 from '../common/math/vec2'; import ClipVertex from './clip-vertex'; import Transform from '../common/math/transform'; import Manifold from './manifold'; import Aabb from './aabb'; export const s_incidentEdge = Make...
import { ApplicationCommandOptionData, ApplicationCommandOptionType, ApplicationCommandSubCommandData, ApplicationCommandSubGroupData, ChatInputApplicationCommandData, MessageEmbed, Snowflake, } from 'discord.js'; import { ArgumentParserResult, ArgumentType, ArgumentTypeConfig, ...
<reponame>SAP/cloud-foundry-tools-api<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript...
<gh_stars>0 // Generated by dts-bundle-generator v5.9.0 /// <reference types="node" /> /// <reference types="prop-types" /> /// <reference types="react" /> /// <reference types="react-native" /> /// <reference types="scheduler" /> export declare class Variable { name: string; val: string | number; variable: string...
// A bad copy&paste from // https://github.com/chrisveness/latlon-geohash/blob/master/latlon-geohash.js // and // https://github.com/firebase/geofire-js/blob/master/src/utils.ts // // Default geohash length export const GEOHASH_PRECISION = 10; // Characters used in location geohashes export const BASE32 = '0123456789b...
<filename>src/TeleBox/index.ts import "./style.scss"; import Emittery from "emittery"; import styler from "stylefire"; import shallowequal from "shallowequal"; import { genUID, SideEffectManager } from "side-effect-manager"; import type { ReadonlyVal, ReadonlyValEnhancedResult, ValEnhancedResult, } from "v...
/** React imports */ import React, { CSSProperties, FC, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react"; /** Other imports */ import { appContext } from "../../AppProvider"; import { LayoutContext } from "../../LayoutContext"; import { Anchor, Constraints, Gaps, Margins, HORIZONTAL_ALIGNME...
import { OwidVariable, OwidVariableDisplaySettings, EntityMeta, OwidVariablesAndEntityKey } from "./OwidVariable" import { slugifySameCase, groupBy, computeRollingAverage, insertMissingValuePlaceholders, diffDateISOStringInDays, max, min, flatten, sortBy, isString...
/** * Copyright 2014 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 by appli...
import { Inject, Injectable, Logger } from '@nestjs/common'; import BigCommerceProxy from './BigCommerceProxy'; import { Repository } from 'typeorm'; import { WebhookUpdatedDto } from './dtos'; import { Address, AdvancedOptions, Dimensions, ItemOption, Order, OrderItem, Weight, } from './ShipStationTypes'...
<filename>projects/droplit-edge/src/router.ts import * as async from 'async'; // import npm module import * as cache from './cache'; // import local module import * as debug from 'debug'; // import npm module import * as DP from 'droplit-plugin'; // import npm linked module import * as plugin fr...
class BodyMeasure { personHeightIn: number; personWeightLb: number; personGender: string; cameraHeightPx: number; cameraWidthPx: number; frontSegmentation: any; sideSegmentation: any; frontConversionFactor: number; sideConversionFactor: number; frontKeypoints: Array<number>; sideKeypoints: Array<n...
import { BinarySearchTreeNode, IBinarySearchTreeNode, } from '../binary-search-tree/binary-search-tree'; import { defaultComparer, IComparer, TraversalOrder } from '../binary-tree/binary-tree'; export enum RedBlackTreeNodeColor { RED, BLACK, } /** * A red-black tree node redefines the types of members #left,...
import { backpedal, reject } from '../match'; import { ParserHandle, ParserRule, parseNest, procNest, pushToken, lastToken, ProcFunc, dropToken, } from '../parser'; import { substRe, shiftRe } from '../regex'; import { ContextTag, ContextMap, NoMeta, UnknownToken, TokenType } from '../model'; import...
<gh_stars>10-100 import { Client } from './lib/client'; import * as ndarray from 'ndarray'; import * as pako from 'pako'; import { items as itemRegistry, blocks as blockRegistry } from './lib/registry.json'; import { IActionMessage, IActionBlockBreak, IActionBlockPlace, IActionInventoryClick, IActionMove, IActi...
<gh_stars>0 const jsParser = require('acorn').Parser; const indentJs = require('indent.js'); const strFuncRE = /^(slice|trim|substr|replace|split|toLowerCase|toUpperCase|match)$/; const arrFuncRE = /^(forEach|map|reduce|slice|filter)$/; const obsFuncRE = /^(subscribe|pipe|post|put)$/; export var DEBUG = false; export...
<reponame>lopopito14/Youtify import React from 'react'; import SpotifyApi from 'spotify-web-api-js'; import AsyncStorage from '@react-native-async-storage/async-storage'; import Context from '../../store/context'; import { pushSpotifyErrorNotification, pushYoutubeErrorNotification, pushYoutubeSuccessNotification } from...
<filename>src/lsp/NativeDocumentManager.ts import * as vscode from "vscode"; import * as ls from "vscode-languageclient"; import { EventEmitter } from "events"; import { MessageIO } from "./MessageIO"; import { NotificationMessage } from "vscode-jsonrpc"; import * as Prism from "../deps/prism/prism"; import * as marked...
<filename>src/ng-select/ng-select.component.ts import { Component, OnDestroy, OnChanges, AfterViewInit, forwardRef, ChangeDetectorRef, Input, Output, EventEmitter, ContentChild, TemplateRef, ViewEncapsulation, HostListener, HostBinding, ViewChild, ElementR...
import Decimal from 'break_infinity.js'; import { GlobalVariables } from './types/Synergism'; export const Globals: GlobalVariables = { runediv: [1.5, 2, 3, 5, 8, 1, 1], runeexpbase: [1, 4, 9, 16, 1000, 1e75, 1e256], runeMaxLvl: 40000, // this shows the logarithm of costs. ex: upgrade one will cost 1e...
import React, { cloneElement, Component, isValidElement, ReactElement, ReactNode } from 'react'; import { observer } from 'mobx-react'; import { action, isArrayLike, observable, runInAction, toJS } from 'mobx'; import uniq from 'lodash/uniq'; import pull from 'lodash/pull'; import noop from 'lodash/noop'; import map fr...
<filename>shared/agent/src/managers/documentMarkerManager.ts "use strict"; import * as path from "path"; import { ThirdPartyIssueProvider, ThirdPartyProvider, ThirdPartyProviderSupportsPullRequests } from "providers/provider"; import { CodeStreamSession } from "session"; import { Range, TextDocumentChangeEvent } fro...
<gh_stars>1-10 import get from 'lodash/get'; import parseDate from './parseDate'; import parseToken from './parseToken'; import { vestsToHp } from './conversions'; import { getAccount, getAccountHistory, getConversionRequests, getFeedHistory, getOpenOrders, getSavingsWithdrawFrom } from '../providers/hive/dhive'; impor...
<gh_stars>10-100 /// <reference path="../../typings/jquery/jquery.d.ts" /> /// <reference path="../../typings/ckeditor/ckeditor.d.ts" /> import AudioRecording from "../toolbox/talkingBook/audioRecording"; import { BloomApi } from "../../utils/bloomApi"; // This class is actually just a group of static functions with ...
import React, { useRef, useMemo, useState, useEffect, forwardRef, useCallback, useImperativeHandle } from 'react'; import { isBoolean, isFunction, mergeThemes, suppressEvent, normalizeValue, IS_TOUCH_DEVICE, isArrayWithLength } from './utils'; import { ValueIndexEnum, FilterMatchEnum, ...
<gh_stars>0 import Loki, { Collection } from "@lokidb/loki"; import { FSStorage } from "@lokidb/fs-storage"; import fs from "fs"; import SparkMD5 from "spark-md5"; import { srsMap, getNextReview, repeatReview } from "./quiz"; import QParser from "q2filter"; import uuid from "uuid/v4"; import { shuffle, chunk } from "./...
import { GraphQLBoolean, GraphQLEnumType, GraphQLEnumValueConfigMap, GraphQLFieldConfig, GraphQLFieldConfigArgumentMap, GraphQLFieldConfigMap, GraphQLFieldResolver, GraphQLFloat, GraphQLID, GraphQLInputFieldConfig, GraphQLInputFieldConfigMap, GraphQLInputObjectType, GraphQLInputType, GraphQL...
import { filter } from 'bluebird'; import { Mutex } from 'async-mutex'; import pMap from 'p-map'; import mapSeries from 'p-map-series'; import groupArray from 'group-array'; import R from 'ramda'; import { compact, flatten } from 'lodash'; import loader from '../../cli/loader'; import { Scope } from '..'; import { Anal...
import { IIncidentsResolutionDialogService, IObjectFormatService } from '../../common'; import { Resolution, Incident, ObjectState } from '../../data'; import { IResolutionsViewModel, IIncidentsViewModel, IIncidentCurrentObjectStateViewModel, IStatesViewModel, IObjectStatesViewModel } from '../../mo...
<filename>src/bin/extract-data.ts import { promises as fs } from "fs"; import { createHash } from "crypto"; import { VM } from "vm2"; import { TaskQueue, fileExists, getAsFile, getAsString, runCommand, runTasksInParallel } from "../support/node-extra"; import type { AtlasEvent, AtlasGrailCost, AtlasItem, AtlasServant,...
import React, { useState, useMemo, useEffect, useContext, FC } from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useRouteMatch } from "react-router-dom"; import { wethAddresses } from "@airswap/constants"; import { Registry, Wrapper } from "@airswap/libraries"; import { findTokensBySym...
<filename>workspace/projects/sys/src-ide/app/tables/tables.component.ts import { Component, OnInit, Input, AfterViewInit, ChangeDetectorRef, ViewChild, Output, EventEmitter } from '@angular/core'; import { AxiosService } from '../service/axios.service'; import { TiTipRef, TiTipService } from '@cloud/tiny3'; import ...
//const monaco = window.monaco import { ITag } from './T' // import * as ts from 'typescript' // import { drillByName } from './canvas' // import { OnClickSay } from './onClickSay.ts.movedtoSRC' // import { EditorInstance } from './editorInstance' // import { LessonFactory, drillMathDispatch } from './drillMath' impo...
import React, {useState, useEffect, useContext, useLayoutEffect, useCallback} from "react"; import Graph from "react-graph-vis"; import "./graph-vis.scss"; import {ModelingContext} from "../../../../util/modeling-context"; import ReactDOMServer from "react-dom/server"; import {faFileExport} from "@fortawesome/free-soli...
<reponame>marcelerz/watchman-wrapper /** * Basic warpper around the watchman node client, making the API nicer. * * @format */ import type { Client } from "fb-watchman"; import type { EventSubscription } from "sundryjs/EventEmitter"; import fbWatchman from "fb-watchman"; // import EventEmitter from "./lib/EventEm...
<reponame>Sant268/masterchat<filename>src/masterchat.ts import axios, { AxiosError, AxiosInstance, AxiosRequestConfig } from "axios"; import { EventEmitter } from "events"; import { buildMeta } from "./api"; import { buildAuthHeaders } from "./auth"; import { parseAction } from "./chat"; import * as constants from "./c...
<reponame>matthewjamesadam/epyc import { AvatarModel, BotTarget, ChannelModel, FrameImageModel, FrameModel, GameModel, IDb, PersonFrameRole, PersonModel, } from './Db'; import { Readable, Writable } from 'stream'; import fs from 'fs'; import { file as makeTmpFile } from 'tmp-promise'...
<gh_stars>0 /** * Youtube room chat-plugin. * Supports adding channels and selecting a random channel. * Also supports showing video data on request. * Written by Mia, with some design concepts from bumbadadabum. * @author mia-pi-git */ import {Net} from '../../lib/net'; import {FS} from '../../lib/fs'; import {...
<filename>dist/nomicsNode.d.ts /** * This class converts the data retrieved by the API * into an easy-to-process format and returns it. */ export declare class NomicsNode { private api; constructor({ apiKey }: { apiKey?: string; }); /** * Get currencies with a single Array. * [ '0XB...
<filename>packages/cli/src/commands/build.ts import { loadEnvConfig, processEnv } from '@next/env'; import { execCommand, getScriptName, GlobOptions, scanParentDirs, spawnAsync, glob as buildUtilsGlob, detectFileSystemAPI, detectBuilders, PackageJson, } from '@vercel/build-utils'; import { nodeFileTra...
/** * */ import { EventHandler, Internationalization } from '@syncfusion/ej2-base'; import { rippleEffect } from '@syncfusion/ej2-base'; import { removeClass, addClass, attributes, HijriParser } from '@syncfusion/ej2-base'; import { getUniqueID } from '@syncfusion/ej2-base'; import { isNullOrUndefined } from '@syncf...
// Import local modules import * as treeDescription from "./tree-description"; import {TreeDescription, Crosslink, GraphOrientation} from "./tree-description"; import {defineSymbols} from "./symbols"; // Third-party dependencies import * as d3selection from "d3-selection"; import * as d3hierarchy from "d3-hierarchy"; ...
<filename>packages/core/src/client.ts // PKCE auth ased on: // https://aws.amazon.com/blogs/security/how-to-add-authentication-single-page-web-application-with-amazon-cognito-oauth2-implementation/ import { Binary, Bundle, Project, ProjectMembership, Reference, Resource, SearchParameter, StructureDefin...
import fs from 'fs' import util from 'util' import filepath from 'path' import htmlMinifier from 'html-minifier' import uglifyJS from 'uglify-js' import ttf2woff2 from 'ttf2woff2' // @ts-ignore import ttf2woff from 'ttf2woff' // @ts-ignore import ttf2eot from 'ttf2eot' import sharp from 'sharp' import SVGO from 'svgo' ...
import { IListViewRow, ListViewCache } from "src/base/browser/secondary/listView/listCache"; import { IListViewRenderer, ListItemRenderer, PipelineRenderer } from "src/base/browser/secondary/listView/listRenderer"; import { ScrollableWidget } from "src/base/browser/secondary/scrollableWidget/scrollableWidget"; import {...
<reponame>GameMakerDiscord/gml-tools-langserver import { Reference, BasicResourceType } from './reference'; import { WorkspaceFolder, Location, Range } from 'vscode-languageserver'; import URI from 'vscode-uri'; import * as fse from 'fs-extra'; import * as path from 'path'; import * as crypto from 'crypto'; import { YY...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import '../../client/common/extensions'; import { nbformat } from '@jupyterlab/coreutils'; import * as fastDeepEqual from 'fast-deep-equal'; import * as React from 'react'; import { OSType } from '../../clien...
<reponame>davidarcher/HPCC-Platform<filename>esp/src/src/WUScopeController.ts import { Icon, Palette } from "@hpcc-js/common"; import { BaseScope, ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex } from "@hpcc-js/comms"; import { Edge, IGraphData, Lineage, Subgraph, Vertex } from "@hpcc-js/graph"; import { Edge as Uti...
<gh_stars>0 import T from "i18n-react"; import { getConceptsByIdsWithTablesAndSelects } from "../concept-trees/globalTreeStoreHelper"; import { isEmpty, objectWithoutKey } from "../common/helpers"; import type { DateRangeT, TableT } from "../api/types"; import { resetAllFiltersInTables } from "../model/table"; impo...
import { autoBindMethodsForReact } from 'class-autobind-decorator'; import classnames from 'classnames'; import clone from 'clone'; import React, { FC, PureComponent, ReactNode } from 'react'; import { AUTOBIND_CFG } from '../../../common/constants'; import { database as db } from '../../../common/database'; import { ...
import React, { useRef, useState, useEffect } from "react"; import classNames from "classnames"; import Styles from "./betslip.styles.less"; import { Link } from "react-router-dom"; import { useBetslipStore } from "../stores/betslip"; import { ActiveBetType, BetType } from "../stores/constants"; import { BETSLIP, ACTIV...
import { DataManager, Query, Deferred, ReturnOption, QueryOptions } from '@syncfusion/ej2-data'; import { Workbook, getCell, CellModel, RowModel, SheetModel, setCell, getSheetIndexFromId } from '../base/index'; import { getRangeIndexes, checkIsFormula, updateSheetFromDataSource, checkDateFormat, dataSourceChanged } fro...
import MedDrugLogHistory from 'components/Pages/Grids/MedDrugLogHistory'; import CheckoutListGroup from 'components/Pages/ListGroups/CheckoutListGroup'; import {IDropdownItem} from 'components/Pages/ListGroups/MedDropdown'; import DrugLogToast from 'components/Pages/Toasts/DrugLogToast'; import {SetStateAction} from 'r...
import Logger from '../../Logger'; import ItemChange from '../../models/ItemChange'; import Setting from '../../models/Setting'; import Note from '../../models/Note'; import BaseModel from '../../BaseModel'; import ItemChangeUtils from '../ItemChangeUtils'; import shim from '../../shim'; import filterParser from './fil...
export interface Coin { symbol: Symbol; name: Name; } export type Symbol = | 'BTC' | 'ETH' | 'BNB' | 'ADA' | 'DOGE' | 'XRP' | 'DOT' | 'USDC' | 'ICP' | 'UNI' | 'BCH' | 'LTC' | 'LINK' | 'MATIC' | 'XLM' | 'ETC' | 'BUSD' | 'SOL' | 'VET' ...
<gh_stars>0 import { pdb } from "../core"; import { templateName } from "../templatename"; import { LanguageParser } from "../textparser"; import { PdbCache } from "./pdbcache"; import ProgressBar = require('progress'); const OPERATORS = new Set<string>([ '::', ]); const OPERATORS_FOR_OPERATOR = new Set<string>([...
<filename>src/orchestrator.ts import * as debug from "debug"; import { AggregatedError } from "./aggregatederror"; import { CallActivityAction, CallActivityWithRetryAction, CallEntityAction, CallHttpAction, CallSubOrchestratorAction, CallSubOrchestratorWithRetryAction, ContinueAsNewAction, CreateTimerAction, Du...
export interface Country { code: string code3: string name: string number: string } export const countries: Country [] = [ { code: "AF", code3: "AFG", name: "Afghanistan", number: "004" }, { code: "AL", code3: "ALB", name: "Albania", number: "008" }, { code: "DZ", code3: "DZA", name: "Alger...
<reponame>tramak/mathlive<filename>src/public/mathfield-element.ts import { MathfieldConfig } from './config'; import { Selector } from './commands'; import { InsertOptions, Mathfield, OutputFormat } from './mathfield'; import { MathfieldErrorCode, ParseMode, ParserErrorCode, Style } from './core'; import { get as...
<gh_stars>0 import * as Phaser from 'phaser'; import { Octopus } from './objects/octopus' import { Platform } from './objects/platform' import { CannonBall } from './objects/cannonBall' import { WSAEINTR } from 'constants'; const sceneConfig: Phaser.Types.Scenes.SettingsConfig = { active: false, visible: false, ...
<filename>src/ts-proto/sgn/cbridge/v1/cbridge_pb.d.ts import * as jspb from 'google-protobuf' import * as cosmos_proto_cosmos_pb from '../../../cosmos_proto/cosmos_pb'; import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; import * as google_protobuf_duration_pb from 'google-protobuf/google/protobuf/duratio...
<filename>src/app/perkbench/perkbench.component.ts import { HttpClient } from '@angular/common/http'; import { Component } from '@angular/core'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { DestinyCacheService, ManifestInventoryItem } from '@app/service/destiny-cache.service'; imp...
<reponame>abomb4/ibatis-to-mybatis-converter<filename>src/converter.ts import * as fs from 'fs'; import * as xml2js from 'xml2js'; import * as builder from 'xmlbuilder'; import { Logger } from './logger'; import { of } from './optional'; interface XmlElement { name: string, attr: { [key: string]: string }, child...
<reponame>kazakami/nene-engine.ts import * as THREE from "three"; import { Mesh } from "three"; import { ImprovedNoise, Random, RandomColor, Scene, Start, Terrain, Unit } from "../src/main/nene-engine"; const MapWidth = 100; const MapDepth = 100; class LoadScene extends Scene { public Init() { this.canvas...
<filename>src/visual.ts /* * Power BI Visual CLI * * 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 withou...
import React, { useState, useRef, useEffect } from 'react' // eslint-disable-line import { eachOfSeries } from 'async' // eslint-disable-line import { canUseWorker, urlFromVersion } from '@remix-project/remix-solidity' import { Renderer } from '@remix-ui/renderer' // eslint-disable-line import { Toaster } from '@remix-...
<reponame>ethanfrey/iov-core import { Account, AccountQuery, Address, AddressQuery, Algorithm, Amount, AtomicSwap, AtomicSwapConnection, AtomicSwapMerger, AtomicSwapQuery, BlockHeader, BlockId, BlockInfo, BlockInfoFailed, BlockInfoSucceeded, ChainId, ConfirmedAndSignedTransaction, Co...
import * as fs from 'fs'; import {resolve as pathResolver} from 'path'; interface FANTOIR_code_Departement { code_departement: string; } interface FANTOIR_code_Direction { code_direction: string; libelle_direction: string; } enum type_commune { "N" = "Rurale", "R" = "Recensée" } cla...
import { asapScheduler, animationFrameScheduler } from 'rxjs'; import { filter, take, tap, observeOn, switchMap, map, mapTo, startWith, pairwise } from 'rxjs/operators'; import { AfterViewInit, Component, ElementRef, Input, Injector, ChangeDetectionStrategy, ViewChild, ViewChildren, QueryList, After...
<gh_stars>10-100 export var exampleHeaderHtml = `<p style="margin-top: 25px; font-weight: bold; font-size: 13pt;">Referência rápida de TuPy:</p> <p>Utilize os links a seguir para se familiarizar com a sintaxe de TuPy:</b> <ul class="tupyLinkList"> <li><a class="tupyReference" id="tupyIntroduction" href="#">introdução...
import {Settings} from './../../settings/settings'; import {MemBuffer, Serializable} from '../../misc/membuffer'; import {BankType, MemoryModel, SlotRange} from '../MemoryModel/memorymodel'; import * as fs from "fs"; import * as path from 'path'; import * as intelHex from 'intel-hex'; import {Z80Ports} from './z80ports...
<gh_stars>0 /* * server.ts * * Implements pyright language server. */ import { CodeAction, CodeActionKind, Command, createConnection, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentSymbol, ExecuteCommandParams, IConnection, InitializeResult, IPCMessageReader, IPCMe...
<gh_stars>1-10 import { isWriteable } from "./is-writeable"; import { loadEnvConfig } from "../lib/load-env-config"; import { BUILD_MANIFEST, CLIENT_STATIC_FILES_PATH, EXPORT_DETAIL, EXPORT_MARKER, OUT_DIRECTORY, PAGES_MANIFEST, PHASE_PRODUCTION_BUILD, PRERENDER_MANIFEST, ROUTES_MANIFEST, SERVER_DIR...