text stringlengths 9.82k 47.8k |
|---|
<reponame>MagmaRat-Studios/cindergames<gh_stars>1-10
import Axios from 'axios';
import { Channel, Socket } from 'phoenix';
import { arrayRemove } from '../../../utils/array';
import { TabLeader } from '../../../utils/tab-leader';
import { sleep } from '../../../utils/utils';
import { uuidv4 } from '../../../utils/... |
<gh_stars>0
import { t } from 'app/i18next-t';
import {
DestinyAmmunitionType,
DestinyClass,
DestinyDamageTypeDefinition,
DestinyDisplayPropertiesDefinition,
} from 'bungie-api-ts/destiny2';
import missingSources from 'data/d1/missing_sources.json';
import _ from 'lodash';
import { vaultTypes } from '../../dest... |
/// <reference path="joi.d.ts" />
/// <reference path="../node/node.d.ts" />
import Joi = require('joi');
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
var x: any = null;
var value: any = null;
var num: number = 0;
var str: string = '';
var bool: boolean = fal... |
// Type definitions for gestalt 1.15
// Project: https://github.com/pinterest/gestalt, https://pinterest.github.io/gestalt
// Definitions by: <NAME> <https://github.com/serranoarevalo>
// <NAME> <https://github.com/joshgachnang>
// <NAME> <https://github.com/calvinchhour>
// ... |
// Import workers inline, so you can just include a single file "wasm_runtime.js"
// without having to worry about having to serve multiple chunks.
// @ts-ignore
import MainWorker from "worker-loader?inline=no-fallback!main_worker";
// @ts-ignore
import AsyncWorker from "worker-loader?inline=no-fallback!async_worker";
... |
import React from 'react';
import PropTypes from 'prop-types';
import {Renderer, RendererProps} from '../../factory';
import {observer} from 'mobx-react';
import {FormStore, IFormStore} from '../../store/form';
import {Api, SchemaNode, Schema, Action, ApiObject, Payload} from '../../types';
import {filter, evalExpressi... |
/**
* Created by sam on 09.02.2015.
*/
import * as C from 'phovea_core/src/index';
import * as $ from 'jquery';
import * as ranges from 'phovea_core/src/range';
import * as idtypes from 'phovea_core/src/idtype';
import * as provenance from 'phovea_core/src/provenance';
import * as cmode from './mode';
import * as d... |
<gh_stars>0
import {Component,OnInit,ViewChild,ElementRef,TemplateRef, AfterViewChecked} from "@angular/core";
import {MatTableDataSource,MatSort,PageEvent,MatDialogRef,MAT_DIALOG_DATA,MatDialogConfig, MatPaginator} from "@angular/material";
import {Router} from "@angular/router";
import {MatDialog} from "@angular/mate... |
/*
* 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
* "License"); you may no... |
<reponame>rilut/deeplearnjs<filename>demos/performance_rnn/performance_rnn.ts<gh_stars>1-10
/* Copyright 2017 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
ht... |
<reponame>HamStudy/pdf-lib
import { Assets } from '..';
import { PDFDocument, StandardFonts } from '../../..';
import PDFFont from '../../../cjs/api/PDFFont';
// prettier-ignore
const winAnsiCodePoints = [
0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028,
0x0029, 0x002a, 0x002b, 0x002c, 0x00... |
export let miserables = {
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
... |
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import {
cloneDeep as _cloneDeep,
filter as _filter,
floor as _floor,
isEmpty as _isEmpty,
remove as _remove,
sortBy as _... |
<reponame>anthonydresser/gulp-tsb<gh_stars>10-100
'use strict';
import { statSync } from 'fs';
import * as path from 'path';
import * as crypto from 'crypto';
import * as utils from './utils';
import { EOL } from "os";
import * as log from 'fancy-log';
import * as colors from 'ansi-colors';
import * as ts fro... |
import * as React from "react";
import { CSSProperties } from "react";
import {
Info,
Fixed,
ViewPort,
Top,
Fill,
Left,
LeftResizable,
Right,
BottomResizable,
Centered,
Layer,
TopResizable,
RightResizable,
CenterType,
} from "..";
import "./Utils.scss";
export const CommonHeader = () ... |
<filename>packages/coil-privacypass-sjcl/src/crypto.ts
/**
* This implements a 2HashDH-based token scheme using the SJCL ecc package.
* [ Adapted from the original by Coil for use in Typescript ]
* https://github.com/privacypass/challenge-bypass-extension/blob/master/src/crypto/local.js
*/
import sjcl from 'sjcl'
i... |
/* eslint-disable no-invalid-this */
/*
This class provides everything to render the D3.js graph.
*/
/*
@license
Parts of the code in this file are based loosely on code from this repository:
https://github.com/gaguri777/d3--directed-graph-creator
In the repository, it is stated that the code is licensed under the... |
<reponame>FinnbarrOC/awrtc_browser
/*
Copyright (c) 2019, because-why-not.com Limited
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 no... |
<filename>src/td.ts<gh_stars>10-100
/// <reference path='../typings/node/node.d.ts' />
/// <reference path='../node_modules/reflect-metadata/reflect-metadata.d.ts' />
'use strict';
require('reflect-metadata');
var bb = require('bluebird');
Promise = bb;
bb.longStackTraces();
import * as crypto from 'crypto';
import... |
<gh_stars>0
import * as express from 'express';
import * as agenda from '../schemas/agenda';
import * as mongoose from 'mongoose';
import { Auth } from './../../../auth/auth.class';
import { Logger } from '../../../utils/logService';
import * as moment from 'moment';
import * as agendaCtrl from '../controller/agenda';... |
import * as backend from './backend';
import { Event2 } from './events';
import * as gui from './gui';
import * as utils from './utils';
declare global {
// eslint-disable-next-line no-var
var __app__: AppMain;
// eslint-disable-next-line no-var
var __crosscode_translation_tool__: true;
}
export class AppMain... |
import nodeFetch from "node-fetch"
import * as FormData from "form-data"
import { AbortController, abortableFetch } from "abortcontroller-polyfill/dist/cjs-ponyfill"
import * as fs from "fs"
import { URLSearchParams } from "url"
import * as path from "path"
import wretch from "../../src"
import { mix } from "../../src/... |
import to from 'await-to-js';
import NP from '../common/NP';
import Exchange from './Exchange';
import DBClient from '../adex/models/db';
import Utils from '../adex/api/utils';
import MistConfig, {BullOption} from '../cfg';
import {Logger} from '../common/Logger';
import LogUnhandled from '../common/LogUnhandled';
i... |
<reponame>phandinhtuong/OfficeWebAddinTypeScriptTest<gh_stars>0
/**
* Returns author's name and ID in 4 cells
* @customfunction
* @param {string} nameAndID - The author's name and ID
* @returns {string[][]} The name and ID of author separatedly
* @example =TacGia("<NAME> 20164582") =
* [[Phan,Dinh],[Tuo... |
<filename>src/database/db_sequelize.ts
'use strict';
// Author: <NAME>
import * as f from '../tools/f';
import * as Sequelize from 'sequelize';
/*
This file handles database communication using sequelize
The database is a mysql database, running at KTH servers
*/
// TODO: Cache of loaded players
export class Datab... |
export enum CairoStatus {
SUCCESS = 0,
NO_MEMORY,
INVALID_RESTORE,
INVALID_POP_GROUP,
NO_CURRENT_POINT,
INVALID_MATRIX,
INVALID_STATUS,
NULL_POINTER,
INVALID_STRING,
INVALID_PATH_DATA,
READ_ERROR,
WRITE_ERROR,
SURFACE_FINISHED,
SURFACE_TYPE_MISMATCH,
PATTERN_TYPE_MISMATCH,
INVALID_CONTE... |
import { FC, useEffect, useState, MouseEvent, TouchEvent } from 'react';
import AppBar from '@material-ui/core/AppBar';
import Grid from '@material-ui/core/Grid';
import BrushIcon from '@material-ui/icons/Brush';
import FormatPaintIcon from '@material-ui/icons/FormatPaint';
import UndoIcon from '@material-ui/icons/Undo... |
/**
* @author <NAME> <<EMAIL>>
* @copyright 2019
* @license MIT
*/
import React from 'react';
import classnames from 'classnames';
import { Nilable, Nullable } from 'tsdef';
import { shallowEqualArrays, shallowEqualObjects } from 'shallow-equal';
import {
FileArray,
FileData,
FileIndexMap,
FileView,
Inp... |
import { PerisitenceService } from "./../../services/persistence/perisitence.service";
import { WorkflowDetailsService } from "./../../services/workflow-details/workflow-details.service";
import { Router } from "@angular/router";
import { AuthenticationService } from "./../../services/authentication/authentication.serv... |
import * as React from 'react';
import createBEM, { addClass } from '../../utils/create/createBEM';
import {
BaseTableColumnProps,
TableCeilingOptionsType,
TableColumnProps,
TableDataProps,
TableDataPropType,
TableExpandOptionsType,
TableSortType,
} from './types';
import { off, on, preventDefault } from ... |
import { Component, OnInit, ViewChild, OnDestroy, Input } from '@angular/core';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatTooltip } from '@angular/material';
import { Router, ActivatedRoute } from '@angular/router';
import { UrlHandlerService } from '../core/url-handler.service';
import { Prefe... |
<reponame>tigerbeard/vscode-hexeditor
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { messageHandler, virtualHexDocument } from "./hexEdit";
import { SelectHandler } from "./selectHandler";
import { hexQueryToArray } from "./util";
interface SearchOptions {
regex: boolean;
... |
import fs from 'fs'
import {assign, filter, flatten, forEach, keys, map, mapValues, pickBy, values} from 'lodash'
import path from 'path'
import { Slot } from '../StoreDefinition'
import {F, P, R, removeUndefined, S, assert} from './helpers'
import {isEqual, merge} from 'lodash'
import useMacro from './useMacro'
import... |
import * as _ from 'lodash'
import * as dayjs from 'dayjs'
import * as emby from '@/emby/emby'
import * as fs from 'fs-extra'
import * as isIp from 'is-ip'
import * as media from '@/media/media'
import * as omdb from '@/adapters/omdb'
import * as pAll from 'p-all'
import * as path from 'path'
import * as qs from '@/shi... |
const snapshot = require('snap-shot-it')
import { SpawnOptions } from 'child_process'
import { expect } from './spec_helper'
require('mocha-banner').register()
const chalk = require('chalk').default
const _ = require('lodash')
let cp = require('child_process')
const path = require('path')
const http = require('http')... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { Trigg... |
import {
createElement,
insertAfterElement,
findElements,
findChildren,
removeElement,
computeRect,
PositionCache,
addDays,
DateMarker,
createFormatter,
DateComponent,
EventSegUiInteractionState,
Seg,
rangeContainsMarker,
intersectRanges,
EventRenderRange,
buildGotoAnchorHtml,
getDay... |
import axios from "axios"
import {Md5} from "ts-md5"
import * as dotenv from "dotenv"
import {existsSync, readFileSync} from "fs"
import {sendNotify} from './sendNotify'
dotenv.config()
const USER_AGENTS_ARR: string[] = [
"jdapp;android;10.0.2;10;network/wifi;Mozilla/5.0 (Linux; Android 10; ONEPLUS A5010 Build/QKQ1.... |
import { ITooltip } from "@hpcc-js/api";
import { Axis } from "@hpcc-js/chart";
import { d3Event, EntityPin, EntityRect, local as d3Local, select as d3Select, SVGWidget, Utility } from "@hpcc-js/common";
import { extent as d3Extent } from "d3-array";
import { scaleBand as d3ScaleBand } from "d3-scale";
import { timeFor... |
import { Alert, AlertDescription, Button, Text } from "@hope-ui/solid";
import Prism from "prismjs";
import { Link } from "solid-app-router";
import { onMount } from "solid-js";
import Code from "@/components/Code";
import CodeSnippet from "@/components/CodeSnippet";
import { ContextualNavLink } from "@/components/Con... |
<reponame>webquakeDev/FluidFramework<gh_stars>0
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable max-len */
import { strict as assert } from "assert";
import sinon from "sinon";
import { v4 as uuid } from "uuid";
import { ITelem... |
import * as React from 'react';
import { useSelector } from 'react-redux';
import { Field, withFormik, FormikProps } from 'formik';
import produce from 'immer';
import { isEmpty, range } from 'lodash';
import Select from 'react-select';
import { IStoreState } from 'redux/store/types';
import { IDataChartCellMeta } fr... |
// Server which handles SOCKS connections over WebRTC datachannels and send them
// out to the internet and sending back over WebRTC the responses.
/// <reference path='../../../third_party/typings/es6-promise/es6-promise.d.ts' />
/// <reference path='../../../third_party/freedom-typings/freedom-module-env.d.ts' />
//... |
import {
ICertificatePayload,
IGeneratedCertificateResponse,
IInvokeConfig,
IMOTConfig,
IRoadworthinessCertificateData,
ITestResult,
IWeightDetails,
ITrailerRegistration,
IMakeAndModel, ITestType,
} from "../models";
import { Configuration } from "../utils/Configuration";
import { S3BucketService } fr... |
/* spellchecker: disable */
import { mat4, vec2, vec3, vec4 } from 'gl-matrix';
import { assert } from '../auxiliaries';
import { v3 } from '../gl-matrix-extensions';
import { FontFace } from './fontface';
import { Glyph } from './glyph';
import { GlyphVertices } from './glyphvertices';
import { Label } from './lab... |
/*
* 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
* "License"); you ... |
export type StyleProperty = string | number;
export default new Map<string, string>([
['align_content', 'alignContent'],
['align_items', 'alignItems'],
['alignment_adjust', 'alignmentAdjust'],
['alignment_baseline', 'alignmentBaseline'],
['align_self', 'alignSelf'],
['animation_delay', 'animati... |
import * as React from 'react';
import * as THREE from 'three';
import Position from './Position';
import '../../../css/ThreeBrowser.css';
import stockImage from '../../../images/download.jpg';
import helveticaRegular from '../../../fonts/helvetiker_regular.typeface.json';
import Axis, {AxisTypeEnum, AxisDirection} fro... |
<gh_stars>0
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { ParserState, ParserAction, IParsingState, IDcsHandler, IEscapeSequenceParser } from './Types';
import { Disposable } from './common/Lifecycle';
/**
* Returns an array filled with numbers between the low and ... |
<reponame>gaojianjunAA/gitaaa
export interface Dom7Array {
/* ====== DEFAULT ARRAY METHODS ====== */
/**
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
*/
length: number;
/**
* Removes the last element from an array and returns it.
... |
<gh_stars>100-1000
/**
* Copyright 2021 Inrupt Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify... |
import $ from 'jquery';
import 'jquery-ui-dist/jquery-ui';
import { onBrowserActionClicked } from './background';
import { handleGithubEvent, nextGithubEvent } from './github_event';
import { Global, setStorage, StorageFlag } from './global';
export function registerEvent() {
_regToggle();
_regClick();
_re... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... |
/*
* Copyright 2021 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.0
*
* Unless required by applicable law or agreed to ... |
import { getMaybePooled } from './constantsPool';
import { FunctionInvocationError, invokeFunctionRaw } from './invokeFunction';
import { binaryOperators, unaryOperators } from './operators';
import { Random } from './Random';
import { stdFunctions } from './std';
import {
BlockExpression,
ChoiceExpression,
Condi... |
import {
CommentController,
CommentMode,
comments,
CommentThread,
CommentThreadCollapsibleState,
Disposable,
env,
Position,
Range,
TextDocument,
Uri,
window,
workspace,
} from 'vscode';
import {
GerritComment,
GerritCommentBase,
GerritDraftComment,
} from '../lib/gerrit/gerritAPI/gerritComment';
import ... |
import { Watch } from 'vue-property-decorator';
import Vue from 'vue';
import { guidGenerator } from '@csnext/cs-core';
import Component from 'vue-class-component';
import './cs-map.css';
import 'mapbox-gl/dist/mapbox-gl.css';
const locales = require('../../assets/locales.json');
import { PackageExplorer } from './../p... |
<reponame>byterose/degenerative<gh_stars>0
import Vue from "vue";
import Web3 from "web3";
import BigNumber from "bignumber.js";
import request from "request";
import YAM from "./abi/yam.json";
import { provider, TransactionReceipt } from "web3-core";
import { GET_BLOCK, GET_BLOCKS, GET_PRICES_BY_BLOCK, GET_HEALTH } fr... |
<gh_stars>0
export * from './Ad'
export * from './AddressBook'
export * from './AddressCard'
export * from './Adjust'
export * from './AirFreshener'
export * from './AlignCenter'
export * from './AlignJustify'
export * from './AlignLeft'
export * from './AlignRight'
export * from './Allergies'
export * from './Ambulanc... |
import {
Component,
OnInit,
EventEmitter,
TemplateRef,
ViewChild
} from "@angular/core";
import { FormBuilder, FormGroup, FormArray, Validators } from "@angular/forms";
import {
NbToastrService,
NbComponentStatus,
NbGlobalPhysicalPosition,
NbWindowService,
NbDialogService
} from "@nebular/theme";
im... |
import React from 'react';
import MaterialButtonBar from './MaterialButtonBar';
import MaterialEditor from './editor/MaterialEditor';
import MaterialHome from './MaterialHome';
import MaterialList from './MaterialList';
import MaterialViewer from './viewer/MaterialViewer';
import Message from './Message';
import {
cr... |
<reponame>corey-alix/meathead
//import { workouts } from "./test/workouts";
interface ImportExportFormat {
exercises: Exercise[];
workouts: WorkoutSet[];
}
interface WorkoutSet {
tick: number;
exercise: string;
weight: number;
reps: number;
exerciseDuration: number;
location: { lon: number; lat: number... |
import {
Service,
PlatformAccessory,
CharacteristicValue,
} from 'homebridge';
import { TasmotaZbBridgePlatform } from './platform';
export type ZbBridgeDevice = {
addr: string,
type: string,
name: string
}
const UPDATE_DELAY = 2000;
/**
* Platform Accessory
* An instance of this class is created for ... |
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="CMSadapter.Impl... |
import {
CARD_ELEMENT_KEY,
CARD_KEY,
CARD_SELECTOR,
CARD_TYPE_KEY,
CARD_VALUE_KEY,
READY_CARD_KEY,
READY_CARD_SELECTOR,
DATA_ELEMENT,
EDITABLE,
EDITABLE_SELECTOR,
DATA_TRANSIENT_ELEMENT,
DATA_TRANSIENT_ATTRIBUTES,
CARD_LOADING_KEY,
DATA_CONTENTEDITABLE_KEY,
} from '../constants';
import {
CardEntry,
Car... |
import { Neovim, Window, Buffer } from '@chemzqm/neovim'
import debounce from 'debounce'
import { Disposable } from 'vscode-languageserver-protocol'
import events from '../events'
import extensions from '../extensions'
import { IList, ListAction, ListContext, ListItem, ListOptions, Matcher } from '../types'
import { di... |
import { SWITCH_TO_STRUCTURE, TYPE_ID, OPERATION } from './spec';
import { ClientWithSessionId, PrimitiveType, Context, SchemaDefinition, DefinitionType } from "./annotations";
import * as encode from "./encoding/encode";
import * as decode from "./encoding/decode";
import type { Iterator } from "./encoding/decode"; /... |
/**
* @license
* Copyright 2020 Dynatrace 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
import { codegen } from '@graphql-codegen/core';
import * as typescriptPlugin from '@graphql-codegen/typescript';
import { printSchemaWithDirectives } from '@graphql-tools/utils';
import {
parseSchemaType,
ScalarsEnumsHash,
Schema,
SchemaUnionsKey,
Type,
} from 'gqty';
import {
GraphQLEnumType,
GraphQLFie... |
/*
* Copyright 2017-19 IBM 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 applicable law or agreed ... |
<gh_stars>0
import {
$,
ClipboardData,
DATA_ID,
DATA_TRANSIENT_ATTRIBUTES,
EditorInterface,
isEngine,
NodeInterface,
Parser,
} from '@aomao/engine';
import { EventEmitter2 } from 'eventemitter2';
import { TableCommandInterface, TableInterface } from '../types';
import Template from './template';
class TableCom... |
<filename>src/buffer/buffer.ts
/**
* @file Buffer
* @author <NAME> <<EMAIL>>
* @private
*/
import {
Color, Vector3, Matrix4,
FrontSide, BackSide, DoubleSide, VertexColors, NoBlending,
BufferGeometry, BufferAttribute,
UniformsUtils, UniformsLib, Uniform,
Group, LineSegments, Points, Mesh, Object3D,
Shad... |
<reponame>EllaSharakanski/salto<gh_stars>0
/*
* Copyright 2021 Salto Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... |
import {Annotation, AnnotationView} from "./annotation"
import {ContinuousTicker} from "../tickers/continuous_ticker"
import {TickFormatter} from "../formatters/tick_formatter"
import {BasicTicker} from "../tickers/basic_ticker"
import {BasicTickFormatter} from "../formatters/basic_tick_formatter"
import {ContinuousCol... |
import {moduleMetadata, storiesOf} from '@storybook/angular';
import {Component, DoCheck, OnChanges, SimpleChanges} from '@angular/core';
import {AtftModule} from 'atft';
import {axesSceneWrapper} from '../scene-wrapper/axes-scene-wrapper';
import {number, withKnobs} from '@storybook/addon-knobs';
import { manager } f... |
<gh_stars>1-10
// 300 male names used in the game
export const maleNames = [
"JAMES",
"JOHN",
"ROBERT",
"MICHAEL",
"WILLIAM",
"DAVID",
"RICHARD",
"CHARLES",
"JOSEPH",
"THOMAS",
"CHRISTOPHER",
"DANIEL",
"PAUL",
"MARK",
"DONALD",
"GEORGE",
"KENNETH",
... |
import {range, random, values, shuffle} from 'lodash-es';
import {Game, Scene, GameObjects, Types, Math as PhaserMath, Geom, Sound, Tweens} from 'phaser';
import {deltaInterp} from './Utilities';
import {Grid} from './Grid';
import {GridObject, Rock, Grass, DiseasedGrass, Sheep, DiseasedSheep, Tiger, DiseasedTiger} fro... |
<reponame>shashiakosha/ng2-emojis
import { Directive, Component, OnInit, ElementRef, Input, Output, EventEmitter, ContentChild } from '@angular/core';
@Directive({
selector: '[emojiInput]',
host: {
style: `width: 100%;
padding: 15px 15px;
border: none;
box-sizing: border-box;
padding-right: 44px;
... |
import Singable from "./Singable"
import Component, { Container } from "./Component";
import { OutEndpoint, InEndpoint } from "./Endpoint";
import NoteKey, {Timeline, pitchMax, pitchMin, pitchNotation, ProgramChangeKey, NoteKeyStructure} from "../Key"
import { range, toPairs, zip, flatten } from "lodash"
import { creat... |
<reponame>OnlyLys/go-to-line-improved
import { Input, getQuickSelectionOneBased, SelectionOneBased } from "./test-utilities.test";
/**
* Go To Test Inputs
*
* These are input strings and expected `Selection` output from the parser for `Go To` commands,
* which specify one location in the document to move the cur... |
<filename>src/server.ts
/**
*
* server
*
*/
import {
OperationTypeNode,
GraphQLSchema,
ExecutionArgs,
parse,
validate as graphqlValidate,
execute as graphqlExecute,
subscribe as graphqlSubscribe,
getOperationAST,
GraphQLError,
SubscriptionArgs,
} from 'graphql';
import {
GRAPHQL_TRANSPORT_WS_... |
/**
* Copyright 2020 Data Liberation Foundation, 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
*
* Unle... |
import { Build, Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core';
import {
NavDirection,
NavOptions,
NavParams,
NavResult,
TransitionDoneFn,
TransitionInstruction,
ViewState,
convertToViews,
isPresent,
} from './nav-util';
import { ViewController, isViewController }... |
<filename>src/dataverse-gen/entities/Opportunity.ts
/* eslint-disable*/
import { IEntity } from "../../types/IEntity";
// Entity Opportunity
export const opportunityMetadata = {
typeName: "mscrm.opportunity",
logicalName: "opportunity",
collectionName: "opportunities",
primaryIdAttribute: "opportunityid",
att... |
<gh_stars>0
import { Agent, IncomingMessage, RequestOptions } from 'http';
import { Request, Response, NextFunction } from 'express';
////////////////////////
// TYPES
////////////////////////
/**
* Constructor
* For activating dynamic types used in .activate method.
*/
export type Constructor<T> = new (...args: ... |
<filename>framework/base.ts<gh_stars>10-100
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
import 'reflect-metadata'
import {Container} from 'inversify'
import {getConnectionManager, Connection, BaseEntity, getRepository, SelectQueryBuilder} from '@bxjs/typeorm'
import {xsession, xuser, xcache} from './session'
import ... |
import { Component, Input, NgModule, AfterViewInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { CommonModule } from '@angular/common';
// Translator
import { TranslateModule, TranslateService } from '@ngx-... |
<filename>packages/core/src/types.tsx
// TODO split this into own package @tamagui/types to share with animations packages
import { Properties } from 'csstype'
import React from 'react'
import {
GestureResponderEvent,
Image,
TextProps as ReactTextProps,
Text,
TextInput,
TextStyle,
View,
ViewProps,
Vi... |
<filename>src/cli/default-error-handler.ts
// all errors that the command does not handle comes to this switch statement
// if you handle the error, then return true
import chalk from 'chalk';
import { Analytics, LEVEL } from '../analytics/analytics';
import ConfigKeyNotFound from '../api/consumer/lib/exceptions/confi... |
import * as capnp from 'capnp-ts';
import * as s from 'capnp-ts/lib/std/schema.capnp';
import { format } from 'capnp-ts/lib/util';
import initTrace from 'debug';
import * as path from 'path';
import * as ts from 'typescript';
import {
createClassExtends,
createConcreteListProperty,
createConstProperty,
createM... |
// const fs = require('fs-extra');
// const Midi = require('../modules/Midi');
const to = require('await-to-js').to;
const fs = require('fs-extra');
const Midi = require('../modules/Midi');
import { GluegunToolbox } from 'gluegun'
// const shell = require("shelljs");
let getNotefromNumber = (number) => { //check retu... |
import React, {
ChangeEvent,
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from 'react'
import {
Button,
ButtonBase,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Divider,
Fade,
fade,
FormControlLabel,
Grid,
IconButton,
InputBase,
PaletteType,
P... |
<filename>src/objectSerializer.ts<gh_stars>1-10
/**
*
* Copyright (c) 2021 Aspose.PDF Cloud
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limit... |
/**
* Properties of the globalconfig object are set in the API settings.
*/
declare const globalconfig: any;
/**
* Properties of the state object will persist between game sessions.
*/
declare const state: any;
type ObjectType = "graphic" | "text" | "path" | "character" | "ability" | "attribute" | "hand... |
import { Market, MARKETS, OpenOrders, Orderbook, TokenInstructions } from '@project-serum/serum';
import { PublicKey } from '@solana/web3.js';
import React, { useContext, useEffect, useState } from 'react';
import { useLocalStorageState } from './utils';
import { refreshCache, useAsyncData } from './fetch-loop';
import... |
/**
* @license
* Copyright (C) 2020 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 require... |
<reponame>scspideroak/webwormhole
/// <reference path="ww.ts" />
// Declare Clipboard API types, which don't exist in TypeScript yet.
// https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
interface Clipboard {
read(): Promise<ClipboardItem[]>;
}
interface ClipboardItem {
types: string[];
getType(mimeType: s... |
/**
*
* handler
*
*/
import type { IncomingMessage, ServerResponse } from 'http';
import {
ExecutionArgs,
getOperationAST,
GraphQLSchema,
OperationTypeNode,
parse,
validate as graphqlValidate,
execute as graphqlExecute,
subscribe as graphqlSubscribe,
} from 'graphql';
import { isObject } from './ut... |
/* eslint-disable no-continue */
import type { OpenAPIV3_1 } from 'openapi-types';
import * as RMOAS from '../rmoas.types';
import jsonpointer from 'jsonpointer';
import mergeJSONSchemaAllOf from 'json-schema-merge-allof';
/**
* This list has been pulled from `openapi-schema-to-json-schema` but been slightly modified... |
<reponame>WiseTap/askless
import { ClientInfo, RouteBeingListen } from "../client_middleware/Clients";
import {getOwnClientId,} from "../Utils";
import {
ResponseCli,
ServerConfirmReceiptCli,
} from "../client/response/OtherResponses";
import {NewDataForListener, RespondErrorCode} from "..";
import { ServerInternal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.