text stringlengths 9.82k 47.8k |
|---|
<reponame>MichaelCook/cribbage<filename>cribbage.ts<gh_stars>1-10
// Copyright (c) 2020, <NAME> <<EMAIL>>. All rights reserved.
/*
Analyze cribbage hands.
Given a cribbage hand (six cards), which two cards should you discard
to the crib to maximize your chances of getting the best score?
*/
enum Rank {
Ace = ... |
// Type definitions for RSVP 4.0
// Project: https://github.com/tildeio/rsvp.js
// Definitions by: <NAME> <https://github.com/chriskrycho>
// Mike North <https://github.com/mike-north>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
// These types are deriv... |
import * as React from 'react';
import { Resizer, Direction } from './resizer';
import memoize from 'fast-memoize';
const DEFAULT_SIZE = {
width: 'auto',
height: 'auto',
};
export type ResizeDirection = Direction;
export interface Enable {
top?: boolean;
right?: boolean;
bottom?: boolean;
left?: boolean;... |
<filename>impl/src/tooling/icpp/transpiler/icpp_assembly.ts
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.... |
import React, { ReactElement, ReactNode } from 'react';
import { action as mobxAction, IReactionDisposer, observable, reaction, runInAction } from 'mobx';
import { observer } from 'mobx-react';
import classNames from 'classnames';
import omit from 'lodash/omit';
import isNil from 'lodash/isNil';
import isString from 'l... |
<reponame>tooppoo/aspida
import type { AspidaClient, AspidaResponse, BasicHeaders } from 'aspida'
import { dataToURLString } from 'aspida'
import type { Methods as Methods0 } from '.'
import type { Methods as Methods1 } from './_sample<EMAIL>'
import type { Methods as Methods2 } from './foo%3Abar'
import type { Methods... |
import { promises as dns } from 'dns';
import { networkInterfaces } from 'os';
import { Meteor } from 'meteor/meteor';
import { Promise as MeteorPromise } from 'meteor/promise';
import { _ } from 'meteor/underscore';
import { Address6 } from 'ip-address';
import { createWorker, types } from 'mediasoup';
import { AudioL... |
<gh_stars>0
/// <reference path="node_modules/@types/nouislider/index.d.ts" />
function pause(): void {
if (status_next == STATUS_NEXT.PLAY) {
status_next = STATUS_NEXT.PAUSE;
}
}
function play(): void {
if (status_next == STATUS_NEXT.PAUSE) {
status_next = STATUS_NEXT.PLAY;
... |
<filename>src/legend/category.ts<gh_stars>0
import { IGroup } from '@antv/g-base';
import { clamp, deepMix, each, filter, get, mix, isNumber, isFunction } from '@antv/util';
import { IList } from '../interfaces';
import { CategoryLegendCfg, LegendPageNavigatorCfg, LegendItemNameCfg, LegendMarkerCfg, ListItem } from '..... |
import React, { useState, useEffect, useRef } from 'react'
import { Progressing, showError, Select, RadioGroup, not, Info, ToastBody, CustomInput, Checkbox, CHECKBOX_VALUE, isVersionLessThanOrEqualToTarget, isChartRef3090OrBelow } from '../common'
import { useParams } from 'react-router'
import { updateSecret, deleteSe... |
import ICalculator from "./ICalculator";
import RectangleInfoModel from "../../Models/ModelTemplates/RectangleInfoModel/RectangleInfoModel";
import LogInfoModel from "../../Models/ModelTemplates/LogInfoModel/LogInfoModel";
import TypeScriptHelper from "../Utilities/TypeScriptHelper";
import Login from "../../../ui/view... |
/* PointsWithLabels.tsx
* ================
*
* Core scatterplot renderer
*
* @project Our World In Data
* @author <NAME>
* @created 2017-03-09
*/
import * as React from "react"
import { scaleLinear } from "d3-scale"
import {
some,
last,
sortBy,
flatten,
min,
find,
first,
isEmpt... |
/// <reference path='../../../third_party/typings/index.d.ts' />
import * as datachannel from './datachannel';
import * as handler from '../handler/queue';
import * as logging from '../logging/logging';
import * as signals from './signals';
import RTCSessionDescription = freedom.RTCPeerConnection.RTCSessionDescriptio... |
/**
* Define the UI Builder widget for Jupyter Notebook
*
* @author <NAME>
*
* Copyright 2020 Regents of the University of California and the Broad Institute
*/
import '../style/uibuilder.css'
import { MODULE_NAME, MODULE_VERSION } from './version';
import { ISerializers, ManagerBase, unpack_models } from "@jupyt... |
<gh_stars>0
import { Notice, Plugin, TAbstractFile, TFile, HeadingCache, getAllTags } from "obsidian";
import * as graph from "pagerank.js";
import { SRSettingTab, SRSettings, DEFAULT_SETTINGS } from "src/settings";
import { FlashcardModal, Deck } from "src/flashcard-modal";
import { StatsModal, Stats } from "src... |
// Libraries
import _ from 'lodash';
import { auto } from 'angular';
import { PanelEvents, DataFrame } from '@grafana/data';
import TimeSeries from 'grafana/app/core/time_series2';
import { config } from '@grafana/runtime';
import { DataProcessor } from './data_processor';
// Components
import './color_legend';
impo... |
<filename>src/extension/kernel/compiler.ts
import type { ImportDeclaration, SyntaxList } from 'typescript';
import { ExtensionContext, NotebookCell, NotebookDocument, Uri, workspace } from 'vscode';
import { EOL } from 'os';
import { MappingItem, RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map';
... |
import a551 from "../assets/audios/a551.mp3";
import a552 from "../assets/audios/a552.mp3";
import a553 from "../assets/audios/a553.mp3";
import a554 from "../assets/audios/a554.mp3";
import a555 from "../assets/audios/a555.mp3";
import a556 from "../assets/audios/a556.mp3";
import a557 from "../assets/audios/a557.mp3"... |
import { promises, exists, Dirent } from 'fs';
import { mkdirp, move } from 'fs-extra';
import { join, basename } from 'path';
import * as crypto from 'crypto';
import * as PSARCParser from './parser'
import {
PSARCBOM, PSARCENTRY, Arrangements, ArrangementType,
ArrangementInfo, Toolkit, Platform, Arrangement,... |
/*
* Copyright (c) 2009, Mozilla Corp
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... |
// This file is part of BINANA, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2021 <NAME>.
import * as BINANAInterface from "../BINANAInterface";
import { store } from "../Vue/Store";
import { proteinResnames } from "./FileLo... |
<filename>src/app/layout/nfc/list/list.component.ts
import {
Component,
OnInit,
ViewChild,
ElementRef,
TemplateRef,
AfterViewChecked,
} from '@angular/core';
import {
MatTableDataSource,
MatSort,
PageEvent,
MatDialogRef,
MAT_DIALOG_DATA,
MatDialogConfig,
MatPaginator,
} from '@angular/material... |
import { act, render, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import React from 'react'
import { toISODate } from '../helpers/dates'
import { StyleProvider } from '../StyleProvider/StyleProvider'
import Calendar_, { CalendarProps, MonthChange } from './Calendar'
impo... |
import axios, { AxiosResponse } from "axios";
import { vxm } from "@/store";
import { JsonRpc } from "eosjs";
import { Asset, number_to_asset, Sym } from "eos-common";
import { rpc, xrpc } from "./rpc";
import {
BaseToken,
EosMultiRelay,
OnUpdate,
Step,
TokenBalanceParam,
TokenBalanceReturn,
TokenBalances... |
<filename>src/release.ts<gh_stars>10-100
import * as Fs from 'fs-extra';
import * as Path from 'path';
import * as Tmp from 'tmp';
import { Git } from './git';
import { localStorage as LocalStorage } from './local-storage';
import { Manual } from './manual';
import { Paths, resolveProject } from './paths';
import { pro... |
import React from 'react';
import {select} from '@storybook/addon-knobs';
import {createMetadata} from '../../../utils/storybook';
import {IconsItem} from './Item/Icons-Item';
import mdx from './Icon.docs.mdx';
import {IconActionMenu} from "../../IconActionMenu/IconActionMenu";
import {IconAggregate} from '../../Ico... |
import AsyncStorage from "@react-native-community/async-storage";
import CameraRoll from "@react-native-community/cameraroll";
import React from "react";
import { Button, Dimensions, Image, ImageBackground, StyleSheet, Text, TouchableOpacity, View } from "react-native";
import { ScrollView } from "react-native-gesture-... |
<reponame>phucdo1711/konva<gh_stars>0
import { Util } from '../Util';
import { Factory } from '../Factory';
import { Shape, ShapeConfig } from '../Shape';
import { Path } from './Path';
import { Text, stringToArray } from './Text';
import { getNumberValidator } from '../Validators';
import { _registerNode } from '../Gl... |
/**
* @license
* Copyright (c) 2017 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... |
<filename>plugins/pinus-robot-plugin/src/PinusWSClient.ts
import * as egret from './ByteArray';
import * as WebSocket from 'ws';
export enum PinusWSClientEvent {
EVENT_IO_ERROR = 'io-error',
EVENT_CLOSE = 'close',
EVENT_KICK = 'onKick',
EVENT_HEART_BEAT_TIMEOUT = 'heartbeat timeout'
}
export clas... |
<reponame>tusbar/node-mongodb-native
import { PromiseProvider } from './promise_provider';
import { Binary, Long, Timestamp, Document } from './bson';
import { ReadPreference } from './read_preference';
import { isTransactionCommand, TxnState, Transaction, TransactionOptions } from './transactions';
import { resolveClu... |
/*
* Datalist polyfill - based on https://github.com/mfranzke/datalist-polyfill
* @license Copyright(c) 2017 by <NAME>
* Supported by <NAME>, @mitchhentges, @mertenhanisch, @ailintom, @Kravimir, @mischah,
* @hryamzik, @ottoville, @IceCreamYou, @wlekin, @eddr, @beebee1987, @mricherzhagen, @acespace90,
* @damien-git... |
<filename>core/backend/src/IModelHost.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------... |
<reponame>sumitanand21/Quantum
import {
Component,
OnInit,
Inject,
Input,
ElementRef,
ViewChild
} from "@angular/core";
import { DataCommunicationService, ErrorMessage } from "@app/core";
import { dealService } from "@app/core/services/deals.service";
import { DialogData } from "@app/modules/opportunity/pag... |
<reponame>janbiedermann/js-framework-benchmark
import {WebDriver, logging} from 'selenium-webdriver'
import {BenchmarkType, Benchmark, benchmarks, fileName, LighthouseData} from './benchmarks'
import {setUseShadowRoot, buildDriver} from './webdriverAccess'
const lighthouse = require('lighthouse');
const chromeLauncher... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
<gh_stars>10-100
/**
Copyright 2019 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 applicable la... |
import { DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, OutputEvent, Thread, StackFrame, Source } from 'vscode-debugadapter'
import { DebugProtocol } from 'vscode-debugprotocol'
import child_process = require('child_process')
const fs = require('fs')
const ospath = require('path')
const os = require('os... |
<gh_stars>10-100
// @ts-ignore
import * as d3 from "d3";
import { FontInfo, Size, Tooltip } from "spotfire-api";
import { overlap } from "./helper";
import { RenderState } from "./index";
import { Serie, Point } from "./series";
type D3_SELECTION = d3.Selection<SVGGElement, unknown, HTMLElement, any>;
type D3_SERIE_SE... |
import * as THREE from 'three';
import { ParticleInterface } from '../particle/Particle';
import Physical from '../physical/Physical';
import Points from '../particle/Points';
import Line from '../particle/Line';
import Util from '../util/Util';
import Effect from '../effect/Effect';
import Event from '../event/Event';... |
import type {
CSSProperties,
ReactNode,
Component,
PureComponent,
HTMLAttributes,
} from "react";
import { Moment, MomentInput } from "moment";
// 忽略 T 对象中 键在 K 中的所有的属性
type Override<T1, T2> = Omit<T1, keyof T2> & T2;
// base type
export type SizeType = "sm" | "md" | "lg";
// Icon
export interfac... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>packages/charts/src/mocks/hierarchical/dimension_codes.ts
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import * as path from 'path';
import type { Kernel } from '@jupyterlab/services';
import { IJupyterKernelSpec } from '../../types';
import { JupyterKernelSpec } from './jupyterKernelSpec';
// eslint-disable-ne... |
//
// describes generic operations
//
import {
ArchDescr,
t, // types
OpDescription,
ZeroWidth,
Constant,
Commutative,
ResultInArg0,
ResultNotInArgs,
Rematerializeable,
ClobberFlags,
Call,
NilCheck,
FaultOnNilArg0,
FaultOnNilArg1,
UsesScratch,
HasSideEffects,
Generic,
} from "./describ... |
import { BigNumber, ethers } from "ethers";
import { Card } from "../Card";
import { BetType, EventType, Game, GameState, GameStates, VerificationState, VerificationStates } from "../Game";
import { PokerSolver } from "../PokerSolver";
import { TurnBasedGame, TurnInfo } from "../TurnBasedGame";
// involved players
con... |
<gh_stars>0
import {$clone,uuidv4,debounce} from './yiru-tools';
import $resize from './$resize';
//判断是否含有class
export const hasClass=(target,cname)=>{
return target.className.match(new RegExp('(\\s|^)'+cname+'(\\s|$)'));
/*let cn=target.getAttribute('class');
if(!cn){
return false;
}
return cn.match(ne... |
import electron from 'electron';
import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import SystemStreamEmitter from '../SystemStreamEmitter';
import StreamEmitter from '../StreamEmitter';
import LibraryStreamEmitter from '../LibraryStreamEmitter';
import IssueCenter from '../Issue... |
import { keyBy, mapValues, toString } from 'lodash';
import { Seq } from 'wdk-client/Utils/IterableUtils';
import { combineEpics, ofType, StateObservable, ActionsObservable } from 'redux-observable';
import { EMPTY, Observable, Subject, from, merge, of } from 'rxjs';
import { catchError, debounceTime, concatMap, filter... |
import { expect } from 'chai';
import Token from 'markdown-it/lib/token';
import {
TypeInformation,
PropertyDocumentationBlock,
MethodParameterDocumentation,
PossibleStringValue,
DocumentationTag,
ProcessBlock,
} from './ParsedDocumentation';
const tagMap = {
macOS: DocumentationTag.OS_MACOS,
mas: Docu... |
<reponame>nevincoco/vscode-extension
import { reportEvent } from '@snyk/code-client';
import * as path from 'path';
import * as vscode from 'vscode';
import {
completeFileSuggestionType,
ExtensionInterface,
SuggestionProviderInterface,
} from '../../interfaces/SnykInterfaces';
import { configuration } from '../co... |
<gh_stars>0
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
// Imports para abrir diálogo confirmar eliminar equipo
import { MatDialog, MatTabGroup } from '@angular/material';
... |
import assert from "assert";
import Path from "path";
import { promises as Fs } from "fs";
import filterScanDir from "filter-scan-dir";
import mm from "minimatch";
import _ from "lodash";
import Semver from "semver";
import { groupMM, MMGroups } from "./minimatch-group";
import { posixify } from "./util";
import isPath... |
<filename>src/jvm.ts
import {are_in_browser, initCarr, merge, asyncForEach, asyncSeries, ext_classname, initString, int_classname, descriptor2typestr} from './util';
import SafeMap from './SafeMap';
import {dumpStats} from './methods';
import {ClassData, ReferenceClassData, ArrayClassData} from './ClassData';
import {B... |
// This module is browser compatible.
import { DeclBlock } from "../../core/types.ts";
const VERTICAL_ALGIN = "verticalAlign";
const ASPECT_RATIO = "aspectRatio";
const FLEX_BASIS = "flexBasis";
const DISPLAY = "display";
const BOTTOM = "bottom";
const CLEAR = "clear";
const COLUMNS = "columns";
const FLOAT = "float"... |
import * as events from "events";
import "jquery";
import $ from "jquery";
import "jqueryui";
import { ConstantsService } from 'src/app/services/util/constants.service';
import { Theme, Themes } from "../../config/theme";
import { EVENT_ARGS_FRAME, EVENT_ARGS_FRAME_RESIZE, FrameEventName, FRAME_OPTIONS, GraphEdge, Grap... |
<filename>contracts/exchange/test/utils/match_order_tester.ts<gh_stars>0
import { ERC1155ProxyWrapper, ERC20Wrapper, ERC721Wrapper } from '@0x/contracts-asset-proxy';
import { chaiSetup, ERC1155HoldingsByOwner, OrderStatus } from '@0x/contracts-test-utils';
import { assetDataUtils, orderHashUtils } from '@0x/order-util... |
<gh_stars>0
/*******************************************************************************
* Copyright (c) 2008-2019 The Khronos Group Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the... |
/**
* @module modules/shaders-app-sk
* @description <h2><code>shaders-app-sk</code></h2>
*
*/
import { $ } from 'common-sk/modules/dom';
import 'codemirror/mode/clike/clike'; // Syntax highlighting for c-like languages.
import { define } from 'elements-sk/define';
import { html, TemplateResult } from 'lit-html';
im... |
import store from '@/store';
import { TaskState, TaskId, TaskVuexStateOptional } from '@/store/modules/tasks';
import createTask, { TaskObject } from '@/transitional/tasks';
import config from '@/transitional/config';
import {
getDocumentByAjax,
createTabFromRequest,
tabLoaded,
saveAsMHTML,
closeTab,
monito... |
<reponame>nicollash/clubsports<gh_stars>0
import { groupBy, max, maxBy, min, minBy, orderBy, union } from "lodash-es";
import { IGame } from "components/common/matrix-table/helper";
import { bracketSourceTypeEnum, IBracketGame } from "./bracketGames";
import { IOnAddGame } from "./add-game-modal";
import { dateToShortS... |
import 'promise-polyfill';
import Buffers, { IOBuffer } from '../buffers/buffers';
import Context, { ContextMode } from '../context/context';
import Common from '../core/common';
import Logger from '../logger/logger';
import Vector2 from '../math/vector2';
import Renderer from '../renderer/renderer';
import Textures, {... |
/////////////////////////////////
// BuilderHUD
// (c) 2019 <NAME>
// See the Readme for instructions
// Notes:
// Has the concept of a default parent, initially null, but updated by the constructor or any attachToEntity params
// If a new entity is added, it uses the default entity as its parent,
// i.e. the parent s... |
import * as TOK from "./pyret-lang/pyret-tokenizer.js";
import * as P from "./pyret-lang/pyret-parser.js";
import * as TR from "./pyret-lang/translate-parse-tree.js";
import {
AST,
ASTNode,
Nodes,
} from '../../../node_modules/codemirror-blocks';
import {
Assign,
Bind,
Binop,
Block,
Bracket,
Check,
... |
/**
* Copyright (c) 2019 <NAME>.
* @license MIT
*/
import { RGBA8888, SixelAction, SixelState, UintTypedArray } from './Types';
import { PALETTE_VT340_COLOR, DEFAULT_BACKGROUND, normalizeHLS, normalizeRGB } from './Colors';
import { Params } from './Params';
// lookup table for for index offsets of SIXEL codes
con... |
<reponame>hiaux0/aurelia
import {
DI,
Registration,
mergeArrays,
fromDefinitionOrDefault,
pascalCase,
fromAnnotationOrTypeOrDefault,
fromAnnotationOrDefinitionOrTypeOrDefault,
emptyArray,
} from '@aurelia/kernel';
import { registerAliases } from '@aurelia/runtime';
import { Bindable } from '../bindable.... |
import fs from 'fs'
import path from 'path'
import type { Plugin } from './plugin'
import type { BuildOptions } from './build'
import { resolveBuildOptions } from './build'
import type { ResolvedServerOptions, ServerOptions } from './server'
import { resolveServerOptions } from './server'
import type { ResolvedPreviewO... |
/**
* @license
* Copyright 2018-2020 Streamlit 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 applicab... |
import pLimit from 'p-limit'
import QuickLRU from 'quick-lru'
import { Account } from '../../models/account'
import { AccountsStore } from './accounts-store'
import { GitHubRepository } from '../../models/github-repository'
import {
API,
IAPIRefStatusItem,
IAPIRefCheckRun,
APICheckStatus,
APICheckConclusion,... |
import { Injectable, OnDestroy } from '@angular/core';
import { HttpClient, HttpParams, HttpResponse } from '@angular/common/http';
import { BehaviorSubject, from, merge, Observable, of, Subject, Subscription, timer } from 'rxjs';
import { catchError, distinctUntilChanged, filter, map, reduce, switchMap, tap } from 'rx... |
// Copyright 2016 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.
import * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/pla... |
// Copyright (C) 2018 The Android Open Source Project
//
// 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 applic... |
/**
* Copyright (c) Cisco Systems, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import reset from "@/wc_scss/reset.scss";
import "@/components/icon/Icon";
import "@/components/menu-overlay/MenuOverlay";... |
/*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import {Deferred} from 'workbox-core/_private/Deferred.js';
import {logger} from 'workbox-core/_private/logger.js';
import {messageSW} fr... |
<reponame>AndBu/Parsr
/**
* Copyright 2020 AXA Group Operations S.A.
*
* 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 req... |
<gh_stars>0
import * as wjcCore from 'wijmo/wijmo';
import * as wjcSelf from 'wijmo/wijmo.pdf';
declare global {
interface Function {
__super__: any;
__proto__: any;
}
}
export declare enum PdfLineCapStyle {
Butt = 0,
Round = 1,
Square = 2,
}
export declare enum PdfLineJoinStyle {
... |
import {
vec2,
vec3,
quad,
rgb,
rgba,
mat4,
isVec2,
isVec3,
isColor,
isMat4,
} from "./math";
import {
deepEq,
} from "./utils";
type GfxCtx = {
vbuf: WebGLBuffer,
ibuf: WebGLBuffer,
vqueue: number[],
iqueue: number[],
clearColor: Color,
defProg: GfxProgram,
curProg: GfxProgram,
defTex: GfxTexture,... |
<filename>src/constants/constant.ts
import { GenerationNum, ITEMS } from '@smogon/calc';
import BADGES from 'constants/badges';
import { DEFAULT_VALUES } from 'constants/calculator';
import B_W from 'constants/locations/B_W';
import B_W_2 from 'constants/locations/B_W_2';
import BD_SP from 'constants/locations/BD_SP';
... |
/*
Copyright 2020 Adobe. All rights reserved.
Copyright 2021 Gaoding. All rights reserved.
This file is licensed to you 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... |
<reponame>yurovant/effectfuljs
/**
* Full state of a currently running program
*/
// ensuring it process.release.name loaded before anything patched
import "@effectful/serialization";
import "@effectful/serialization/dom";
import config from "./config";
export interface Env {
/** local variables */
$: any[];
/... |
<reponame>arengu/arengu-forms-js
// adapted from:
// https://github.com/jackocnr/intl-tel-input
// https://github.com/lafeber/world-flags-sprite
export type RawCountry = [
string, // iso2
string, // englishName[|localName]
number, // dialCode
number, // spriteOffset
(string | number)[]?, // areaCodes
];
exp... |
/** @format */
import crypto from 'crypto';
import base64url from 'base64url';
import * as uuid from 'uuid-parse';
import { Client } from '@okta/okta-sdk-nodejs';
import { ulid } from 'ulid';
import CBOR = require('cbor');
import * as EmailValidator from 'email-validator';
import {
Challenge,
CredentialType,
ECJw... |
<reponame>alessiogandelli/create-xml-module<filename>src/utils.ts
import { type } from 'os'
import { Fattura, Dettaglio, Committente, Prestatore, Imponibile, Imposta, Pagamento, DettPagam } from './interfaces'
import builder, { XMLElement } from 'xmlbuilder'
import fs from 'fs'
import axios, { AxiosRequestConfig } from... |
import assert from "assert";
import { EventEmitter } from "events";
import { debug as Debug } from "debug";
import {
ICloseEvent,
IMessageEvent,
w3cwebsocket as WebSocket,
} from "websocket";
import {
WsClientOptions,
PendingCall,
CallResponse,
Call,
AnyJson,
ServerInfoResponse,
ConnectionState,
... |
<reponame>StephenMcCannQ/grafana-kdb-datasource-ws
///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" />
import _ from 'lodash';
import appEvents from 'app/core/app_events';
import {KDBMetaQuery} from './meta_query';
import {QueryCtrl} from 'app/plugins/sdk';
import {SqlPart} from './sq... |
<gh_stars>0
"use strict";
import { OrderedSet, Map } from "immutable";
import * as handlebars from "handlebars";
import {
TypeKind,
Type,
EnumType,
UnionType,
ClassType,
matchType,
nullableFromUnion,
removeNullFromUnion,
directlyReachableSingleNamedType,
ClassProperty
} from ".... |
import { Chance } from 'chance';
import {
IChatitoCache,
IChatitoEntityAST,
IChatitoParser,
IEntities,
IEntityDef,
ISentenceTokens,
IStatCache,
IUtteranceWriter
} from './types';
const logger = console;
export const VALID_DISTRIBUTIONS = ['regular', 'even'] as const;
export const VALID... |
import {defineMIME, defineMode} from '../index';
import {Pass} from '../misc';
defineMode('verilog', function(config, parserConfig) {
const indentUnit = config.indentUnit,
statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
dontAlignCalls = parserConfig.dontAlignCalls,
no... |
//
// estrella is a JavaScript program for esbuild, which watches source files
// and provides TypeScript diagnostics.
//
// It is intended to be used from a user script, for example "./build.js":
//
// #!/usr/bin/env node
// const { build } = require("estrella")
// build({
// entry: "src/main.ts",
// o... |
<reponame>hirokai/YetAnotherChat<gh_stars>0
/// <reference path="./types.d.ts" />
import { shortid, cipher, decipher, pool, client } from './utils'
import * as users from './users'
import { get_public_key } from './keys'
import { fingerPrint } from '../../common/common_model'
import { map, includes, orderBy, keyBy, mi... |
<reponame>janschill/solid-ui
/** **************
* Notepad Widget
*/
/** @module pad
*/
import * as ns from './ns'
import { Namespace, NamedNode, st, IndexedFormula } from 'rdflib'
import { newThing, errorMessageBlock } from './widgets'
import { beep } from './utils'
import { log } from './debug'
import { solidLog... |
import React, {
forwardRef,
useState,
useRef,
useLayoutEffect,
useEffect,
useImperativeHandle,
useCallback,
createElement
} from 'react';
import clsx from 'clsx';
import { useGridWidth, useViewportColumns } from './hooks';
import EventBus from './EventBus';
import HeaderRow from './HeaderRow';
import F... |
import * as React from 'react';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import { Tyr } from 'tyranid/client';
import { Filter, TyrFilterConnection } from './filter';
import { isEntranceTrait } from './trait';
import {
TyrAction,
TyrActionFnOpts,
TyrActionOpts,
ActionSet,
g... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
/// <reference path="../../typings/should.d.ts"/>
/// <reference path="../../typings/mocha.d.ts"/>
/// <reference path="../../typings/rimraf.d.ts"/>
/// <reference path="..... |
<filename>BpmnEditor/src/processes.ts
import { DirectionEnum } from 'model/query/ISort';
import { inject, observable } from "aurelia-framework";
import { EventAggregator } from "aurelia-event-aggregator";
import { EventBus } from 'EventBus';
import { WorkflowDocument } from 'WorkflowDocument';
let shortid = require('s... |
import { Component, OnInit, ViewChild, Input } from '@angular/core';
import { Router } from '@angular/router';
import { SelectionModel } from '@angular/cdk/collections';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2019 Realm 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/li... |
<reponame>dan-silver/vscode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------... |
<filename>src/QbfGridAbstract/QbfGridAbstract.ts<gh_stars>0
import QbfElement, {IQbfSchema} from "../QbfModule/QbfElement"
import QbfFramedElement from "../QbfModule/QbfFramedElement"
import QbForm from "../QbfModule/QbForm"
import QbfPropertyTools from "../QbfModule/QbfPropertyTools"
import {QbfBooleanValue} from "..... |
<reponame>geometryzen/symbolic-math
import { rational } from './bignum';
import { add_terms } from './calculators/add/add_terms';
import { coeff } from './coeff';
import { ExtensionEnv } from './env/ExtensionEnv';
import { imu } from './env/imu';
import { guess } from './guess';
import { is_complex_number, is_poly_expa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.