text stringlengths 3.08k 15.5k |
|---|
<reponame>HiceS/obj-file-parser-ts
export default class OBJFile {
public result: IResult = {
materialLibraries: [],
models: [],
};
private fileContents: string;
private defaultModelName = 'untitled';
private currentMaterial = '';
private currentGroup = '';
private smoothingGroup = 0;
con... |
import Heading from "evergreen-ui/commonjs/typography/src/Heading.js";
import Code from "evergreen-ui/commonjs/typography/src/Code.js";
import SegmentedControl from "evergreen-ui/commonjs/segmented-control/src/SegmentedControl.js";
import Alert from "evergreen-ui/commonjs/alert/src/Alert.js";
import Spinner from "everg... |
import React, { useState, useCallback, useEffect, useMemo } from 'react';
import {
Table,
TableBody,
Paper,
Typography as T
} from '@material-ui/core';
import clsx from 'clsx';
import {
commonStyles
} from '../common';
import { useDataConnection } from '../../hooks';
import {
WorkerDef,
ColumnSelector,
... |
<filename>src/interfaces.ts
import type Graph from "graphology";
import type { Constructor, FrontMatterCache, Pos, TFile } from "obsidian";
import type { DIRECTIONS } from "src/constants";
import type DucksView from "src/DucksView";
import type MatrixView from "src/MatrixView";
import type StatsView from "src/StatsView... |
/* eslint-disable no-shadow */
import {
ActionTree, Dispatch, GetterTree, Module, MutationTree
} from 'vuex'
import {
assign, concat, isNil, isNull, some
} from 'lodash-es'
import * as ActionCable from 'actioncable'
import { Backup, backupFromJSON, BackupJSON } from '@/types'
import { BackupsState, RootState } fro... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
import React, { useCallback, useMemo } from 'react';
import { cx } from '@emotion/css';
import { useStore } from 'effector-react';
/* prettier-ignore */
// @ts-ignore
import { Button, ControlsPanel, DropdownDivider, DropdownItem, IconChevronDown, Modal, Spin, Tabbe... |
import * as SDK from '../../core/sdk/sdk.js';
import * as Workspace from '../../models/workspace/workspace.js';
import * as UI from '../../ui/legacy/legacy.js';
export declare const Types: {
Domain: string;
File: string;
FileSystem: string;
FileSystemFolder: string;
Frame: string;
NetworkFolder:... |
import { ReactChild, ReactNode } from 'react';
import { FieldProps } from 'formik/dist/Field';
import { GridSize } from '@material-ui/core/Grid';
import { Omit } from '@material-ui/core';
export interface TitleProps {
className?: string;
icon?: ReactNode;
caption?: string;
subtitle?: string;
text?: string;
... |
import { CompletionItem, CompletionItemKind } from 'vscode-languageserver/node';
import { CompletionFunctionParams } from '../../utils/addon-api';
import * as memoize from 'memoizee';
import { logError, logInfo, logDebugInfo } from '../../utils/logger';
import Server from '../../server';
import { Project } from '../../... |
<filename>src/frontend/feature/WalkRound.ts<gh_stars>0
import {
BezierCurve3dH,
CurvePrimitive,
LineSegment3d,
LineString3d,
Path,
Point3d,
Vector3d,
} from "@bentley/geometry-core";
import { ColorDef, Frustum } from "@bentley/imodeljs-common";
import {
Animator,
BeButtonEvent,
BeWheelE... |
<reponame>veox/deterministic-deployment-proxy<filename>scripts/compile.ts
import { promises as filesystem } from 'fs'
import * as path from 'path'
import { CompilerOutput, CompilerInput, compileStandardWrapper, CompilerOutputContract } from 'solc'
import { rlpEncode } from '@zoltu/rlp-encoder'
import { keccak256 } from... |
<filename>src/store/battleshipGame/reducer.ts<gh_stars>0
import produce from 'immer'
import { NBattleshipGame, NGameBoard, NShips } from './@types'
export const battleshipGameReducer = produce((draft: NBattleshipGame.IStore, action: NBattleshipGame.IActions) => {
switch (action.type) {
case NBattleshipGame.Actio... |
<reponame>Grubana/ngx-grpc
/* tslint:disable */
/* eslint-disable */
//
// THIS IS A GENERATED FILE
// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST
import {
GrpcMessage,
GrpcMessageClass,
GrpcMessagePool,
RecursivePartial,
ToProtobufJSONOptions,
} from '@ngx-grpc/common';
import { BinaryReader, BinaryWriter, B... |
import type { Player } from "../room-activity";
import { ScriptedGame } from "../room-game-scripted";
import type { GameCommandDefinitions, IGameAchievement, IGameFile } from "../types/games";
type AchievementNames = "speedbooster";
const colors: string[] = ['Blue', 'Green', 'Red', 'Yellow', 'Orange', 'Purple', 'Pink... |
import { VanessaGherkinProvider } from "./provider";
export const language: monaco.languages.ILanguageExtensionPoint = {
id: "turbo-gherkin",
extensions: [".feature"],
};
export const conf: monaco.languages.LanguageConfiguration = {
comments: {
lineComment: "//"
},
autoClosingPairs: [
{ open: "\"", ... |
/* eslint-disable */
import MockAdapter from 'axios-mock-adapter';
import {
snakifyKeys,
firstUp,
isArray,
isFn,
stringify,
warn
} from './utils';
import { mockDefaultConfig, httpMethodList, useDataMethodList } from './config';
/* declare */
import {
MockAdapterOptions,
IConfigHandlerInputs,
IMockHa... |
import { deg2Rad } from "@lincode/math"
import { Cancellable } from "@lincode/promiselikes"
import { Reactive } from "@lincode/reactivity"
import { debounce } from "@lincode/utils"
import { Quaternion } from "three"
import Appendable from "../../api/core/Appendable"
import PositionedItem from "../../api/core/Positioned... |
export declare const root = "root_46b460ed";
export declare const picker = "picker_46b460ed";
export declare const holder = "holder_46b460ed";
export declare const pickerIsOpened = "pickerIsOpened_46b460ed";
export declare const frame = "frame_46b460ed";
export declare const wrap = "wrap_46b460ed";
export declare const... |
import { BMFont } from './bmfont';
/**
* Inspired/stolen shamelessly from three-bmfont-text:
* https://github.com/Jam3/three-bmfont-text/blob/master/lib/vertices.js
*
* See also: documentation for the BMFont format:
* http://www.angelcode.com/products/bmfont/doc/file_format.html
*/
export class FontGeoUtil {
/... |
<filename>src/Icon/components/index.ts
export { default as AlignBottom } from './16/AlignBottom'
export { default as AlignTop } from './16/AlignTop'
export { default as AlignVerticalCenter } from './16/AlignVerticalCenter'
export { default as ArrowDown } from './16/ArrowDown'
export { default as ArrowLeft } from './16/... |
import { SearchForManyTracksDto, SearchService } from '@/music/ports';
import { SpotifyItem, SpotifyTrack, TrackInfo } from '@/music/types';
import { ApplicationError, ApplicationErrorNames, RawError } from '@/shared'... |
<gh_stars>1-10
import * as uuid from "uuid";
import { Request } from "../app";
import { Dataset } from "../models/Dataset";
import { userValidator } from "./validator";
import { Response, Router } from "express";
import formidable = require("formidable");
import fs = require("fs");
import csv = require("csvtojson");
... |
<filename>scrapers/nus-v2/src/utils/data.ts<gh_stars>0
/**
* Code for data mapping, cleanup and validation
*/
import { uniq, trim, groupBy, values } from 'lodash';
import { VenueLesson } from '../types/venues';
import { DayText, LessonType, ModuleCode } from '../types/modules';
import { ModuleAliases } from '../type... |
import React, { useState } from 'react';
import { useDispatch } from 'react-redux';
import { CellInfo } from 'react-table';
import type { RowInfo } from 'react-table';
import damlev from 'damlev';
import {
ColumnType,
DataGrid,
Flag,
noColorGrid,
styled,
styledScrollbars,
Tabs,
themeValue,
} from '@jar... |
<filename>shared/constants/field/myinfo/myinfo-nationalities.ts<gh_stars>1-10
const myInfoNationalities = [
'AFGHAN',
'ALBANIAN',
'ALGERIAN',
'AMERICAN',
'ANDORRAN',
'ANGOLAN',
'ANTIGUAN',
'ARGENTINIAN',
'ARMENIAN',
'AUSTRALIAN',
'AUSTRIAN',
'AZERBAIJANI',
'BAHAMIAN',
'BAHRAINI',
'BANGLADE... |
import React, { ReactNode, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useDispatch } from 'react-redux'
import styled from 'styled-components'
import { Button, ButtonType, Props as ButtonProps } from '../../components/Button'
import { createStyled } from '../../theme/util'... |
<reponame>Abziz/discord-attendance
import discordJs, { GuildMember, Message, TextChannel, Guild } from 'discord.js';
import { UserSnapshots, UserSnapshot, VoiceState } from './models/UserSnapshot';
const ROLE_TO_TRACK = '330466103979540480';
const COMMANDS_TEXT_CHANNEL = '594662666853810177';
const MEMBERS_WHITE_LI... |
import {CommandCode, CraftEssence, Servant, Skill} from "@atlasacademy/api-connector";
import {BattleActor, BattleActorLogic, BattleActorProps} from "../Actor/BattleActor";
import BattleBuffManager from "../Buff/BattleBuffManager";
import {BattleTeam} from "../Enum/BattleTeam";
import BattleNoblePhantasm from "../Noble... |
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Card, CardBody, Spinner } from '@wordpress/components';
import { useDispatch, useSelect } from '@wordpress/data';
import { getAdminLink } from '@woocommerce/settings';
import {
OPTIONS_STORE_NAME,
SETTINGS_STORE_NAME,
TaskType,
} from '@... |
import * as THREE from "three";
import { gameState } from "./game_state";
import { playerRadius, playerHeight, setMovementSpeedFactor, setGravityFactor, setJumpFactor } from "./movement";
import { socketSend, handlers } from "./net";
import { setRofFactor } from "./weapon";
const powerUpContainer = document.querySelec... |
<gh_stars>1-10
import {Component, OnInit, ViewChild} from '@angular/core';
import {AddressService} from "../../services/address.service";
import {UserService} from "../../services/user.service";
import {AddressInputModel, AddressModel} from "../../models/address.model";
import {PaymentMethodService} from "../../service... |
<gh_stars>0
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file 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://... |
<gh_stars>0
import { MagitRepository } from '../models/magitRepository';
import { commands } from 'vscode';
import { MenuUtil, MenuState, MenuItem } from '../menu/menu';
import { RefType } from '../typings/git';
import { PickMenuItem, PickMenuUtil } from '../menu/pickMenu';
import GitTextUtils from '../utils/gitTextUti... |
<filename>src/web-app/repositories/project-web-repository.ts
import { ReferenceTargetUtil } from '@fl-file/reference-target-util';
import { ProjectRepository } from '@fl-three-editor/repositories/project-repository';
import { ProjectType } from '@fl-three-editor/types/const';
import {
AnnotationClassVO,
TaskAnnotat... |
<gh_stars>100-1000
import { NotionErrors } from "@nishans/errors";
import { IBoardViewFormat, ICalendarViewFormat, IGalleryViewFormat, IListViewFormat, ISchemaMap, ITableViewFormat, ITimelineViewFormat, MultiSelectSchemaUnit, SelectSchemaUnit } from "@nishans/types";
import { NotionUtils } from "@nishans/utils";
import... |
import BigNumber from 'bignumber.js'
import React, { useCallback, useEffect, useState } from 'react'
import styled from 'styled-components'
import Button from '../../../components/Button'
import Card from '../../../components/Card'
import CardContent from '../../../components/CardContent'
import IconButton from '../../... |
import { ReactElement, useState, CSSProperties } from 'react'
import styled, { AnyStyledComponent } from 'styled-components'
import Step from '@material-ui/core/Step'
import StepConnector from '@material-ui/core/StepConnector'
import StepContent from '@material-ui/core/StepContent'
import StepLabel from '@material-ui/c... |
<reponame>mendixlabs/charts
/* tslint:disable */
class MxMock implements mx.MxInterface {
appUrl: string = "";
baseUrl: string = "";
modulePath: string = "";
remoteUrl: string = "";
addOnLoad(_callback: Function): void { /* */ }
login(_username: string, _password: string, _onSuccess: Function, ... |
import { DataSourceFilters, OperatorKeys } from './interfaces';
export const OPERATOR_MAP = {
'==': 'eq',
equals: 'eq',
isequalto: 'eq',
equalto: 'eq',
equal: 'eq',
'!=': 'neq',
ne: 'neq',
notequals: 'neq',
isnotequalto: 'neq',
notequalto: 'neq',
notequal: 'neq',
'<': 'lt',
islessthan: 'lt',
... |
/*
* @Author: qiansc
* @Date: 2019-05-07 14:17:18
* @Last Modified by: qiansc
* @Last Modified time: 2019-12-02 14:41:08
*/
import * as prompt from 'prompt';
import { fetch } from './fetch';
import { getToken, writeToken } from './token';
type Callback = (error?: Error) => void;
const waiting: Callback[] = [];
p... |
<gh_stars>100-1000
import {CSSProperties, ReactNode} from 'react';
import {ReactContent, TooltipAlignment, TooltipPosition} from '../basic/types';
import {LanguageObjectType} from '../langs/types';
export enum EventTypes {
CHANGE_THEME = 'change-theme',
CHANGE_LANGUAGE = 'change-lang',
LANGUAGE_CHANGED = 'lang-cha... |
import {
BaseExpression,
BaseNodeWithoutComments,
Comment,
SwitchCase,
} from "estree";
import {
BaseNode,
compare,
getContextGroups,
reorderValues,
} from "../../utilities/sort-utils.js";
enum HasImmediateExitOption {
Indeterminate,
True,
False,
}
// Left in for consistency with other sort fun... |
<filename>src/webparts/clbHome/constants/strings.ts
export const PropertyPaneDescription = "Description";
export const BasicGroupName = "Group Name";
export const DescriptionFieldLabel = "Description Field";
export const PreAcceptPageTitle =
"Claim your digital badge!";
export const PageTitle = "Here's how your digit... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import codecommit = require('@aws-cdk/aws-codecommit');
import codepipeline = require('@aws-cdk/aws-codepipeline');
import codepipeline_actions = require('@aws-cdk/aws-codepipeline-actions');
import s3 = require('@a... |
import './index.css'
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './protocol/index'
import { remote } from 'electron'
import { newInstance } from 'rc-notification'
const colors1 = ['7e512f', '8c6a48', '8b6428', '885b3c', '754b2e', 'c38a58', '775237', '775236',
'905536', ... |
<reponame>terzhang/kekat-mono
import 'reflect-metadata';
import { ApolloServer } from 'apollo-server-express';
import Express, { Request, Response } from 'express';
import http from 'http';
import { createConnection } from 'typeorm';
import { session } from './middlewares/session';
import cors from 'cors';
import { c... |
import { join } from "path"
import { blue, red } from "chalk"
import { MSFTMCRealms } from "./mc-realms"
import { mcerr } from "./mc-realms/errors"
import express, { Application, Request, Response } from "express"
import { config } from "dotenv"
config()
const msftmcrealmsapp = new MSFTMCRealms(process.env.CLIENT_ID)... |
<reponame>mly32/vscode-which-key
import { CharCode } from "./charCode";
import { ActionType, BindingItem } from "./config/bindingItem";
import { SortOrder } from "./constants";
function getType(b: BindingItem) {
let type = b.type;
if (b.bindings && type == ActionType.Conditional) {
if (b.bindings.every(x => b.bind... |
import { Component, OnInit, ViewChild, HostListener } from '@angular/core';
import { Router } from '@angular/router';
import { MatTableDataSource, MatSort, PageEvent } from '@angular/material';
import * as moment from 'moment';
import { SocketService } from './../../shared/services/socket/socket.service';
import { Exce... |
import * as React from "react";
import { BlurableInput } from "../../../../ui/index";
import { offsetTime } from "../../../farm_events/edit_fe_form";
import { GetWebAppConfigValue } from "../../../../config_storage/actions";
import moment from "moment";
import {
formatDate, formatTime,
} from "../../../farm_events/ma... |
<gh_stars>1-10
import BMF from '@hife/browser-md5-file';
import { Info, FileInfo, ChunkInfo, UploadOptions } from './interface';
let i = 0;
/**
* throw error message
* @param msg error message
*/
export function throwError(msg: string) {
throw new Error(`[uploader]:${msg}`);
}
/**
* 校验 options
* @param option... |
import { spawn } from 'child_process'
import * as fs from 'fs'
import * as path from 'path'
import * as promiseProbe from 'promise-probe'
import * as rimraf from 'rimraf'
import { GetPeaks } from './getPeaks'
class AudioPeaks {
init: boolean = false
probe: promiseProbe.IFfprobe
oddByte = null
sc = 0
opts: {... |
<filename>client/src/api/JsonRequestWrapper.ts<gh_stars>0
import { JwtDTO } from "./dto/response/JwtDTO";
import { RequestOptions } from "./RequestOptions";
import { Result } from "./iResult ";
import { JwtToken } from "./jwtToken";
import { ErrorResponse } from "./dto/ErrorResponse";
import { EndPoints } from "./endPo... |
<reponame>shuigedeng/taotao-cloud-electron
// axios配置 可自行根据项目进行更改,只需更改该文件即可,其他文件可以不动
// The axios configuration can be changed according to the project, just change the file, other files can be left unchanged
import { message as antdMessage } from 'antd'
import { AxiosResponse } from 'axios'
import { CreateAxiosOption... |
"use strict";
import * as vscode from "vscode";
import { languages } from "./languages";
const deepDecorations = [
vscode.window.createTextEditorDecorationType({
color: { id: "rainbowend.deep1" }
}),
vscode.window.createTextEditorDecorationType({
color: { id: "rainbowend.deep2" }
}),
vscode.window.c... |
<reponame>airjp73/remix-validated-form
import { useActionData, useMatches, useTransition } from "@remix-run/react";
import lodashGet from "lodash/get";
import { useCallback, useContext } from "react";
import invariant from "tiny-invariant";
import { FieldErrors, ValidationErrorResponseData } from "..";
import { formDef... |
<filename>lib/widgets/blocks.d.ts
import * as React from "react";
import { Expr, Variable, LiteralType, EnumValue, AggrStatus, Schema } from "mwater-expressions";
import { InstanceCtx, DesignCtx } from "../contexts";
import "./blocks.css";
/** Side on which another block is dropped on a block */
export declare enum Dro... |
import { LitElement } from "lit";
import page from "page";
import { BehaviorSubject, Subject } from "rxjs";
import type { Observable } from "rxjs";
import {
distinctUntilChanged,
map,
shareReplay,
tap,
scan,
startWith,
skip,
filter,
throttleTime,
buffer,
} from "rxjs/operators";
import { pathToRege... |
<gh_stars>1-10
/// <reference path="ECS.ts"/>
function draw(ctx: Context2D, e: Entity) {
if (e["sprite"]) {
var offsetX: number = 0, offsetY: number = 0;
if (e["level"]) {
offsetX = e["level"].level.map.pos.x;
offsetY = e["level"].level.map.pos.y;
}
if (e["sp... |
/*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
import { PropUpdate } from "./signal.js";
import { FieldRef } from "./renderer.js";
/**
* The core business logic in a handler, this is normally used in conjunction with propDefinitionsToUpdaters.
*/
export interface PropComponents<Input, Normalized = Input> {
normalize(value: Input, def?: Normalized): Normalized;... |
import { useGalleryResizeEffect } from '@utils/galleryUtils'
import Img from 'gatsby-image'
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react'
import posed from 'react-pose'
import { value, spring } from 'popmotion'
import styled from 'styled-components'
interface IProps {
handleSlideChange: ... |
// type alias
type Color = string;
const black: Color = "#000000"
class ColorScheme {
article_background: Color = black;
article_opacity = "1.0";
nav_background: Color = black;
nav_header: Color = black;
nav_opacity = "1.0";
body_background: Color = black;
hr: Color = black;
a_nav_link... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Collaborator, CollaboratorRole } from 'app/types/collaborator';
import { ContentType } from './content-type';
import { GroupInfo, UserGroupInfo } from './group';
import { SessionService } from './session.service';
im... |
/*
The MIT License (MIT)
Copyright (c) <NAME> (<EMAIL>)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... |
<filename>packages/fhir-types/src/R4/Provenance.ts
/**
* Provenance Module
*/
import * as primitives from "@tangdrew/primitives";
import * as t from "io-ts";
import { CodeableConcept } from "./CodeableConcept";
import { Element } from "./Element";
import { Extension } from "./Extension";
import { Meta } from "./Meta... |
declare var require: any;
import { Component, OnInit } from '@angular/core';
import * as Highcharts from 'highcharts/highmaps';
import MapModule from 'highcharts/modules/map';
import { AppService } from 'src/app/core/services/app.service';
const Brazil = require('@highcharts/map-collection/countries/br/br-all.geo.json'... |
import { Layout, Modal, Table, Button, Dropdown, Menu, Form, Input, Icon, message, BackTop } from 'antd';
import { connect } from 'dva';
import router from 'umi/router';
import { db } from '../utils'
const { Header, Sider, Content } = Layout;
const { confirm } = Modal;
const FormItem = Form.Item;
const formItemLayout ... |
import { ActorAbstractPath } from '@comunica/actor-abstract-path';
import { BindingsFactory } from '@comunica/bindings-factory';
import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';
import { ActorQueryOperation } from '@comunica/bus-query-operation';
import type { IQueryOperationR... |
import React, { Component, RefObject } from "react";
import { isMobileOnly } from "react-device-detect";
import ReactMarkdown from "react-markdown";
import { fromEvent, Subject } from "rxjs";
import { debounceTime, first, mapTo, takeUntil } from "rxjs/operators";
import SocialLinksComponent from '../shared/SocialLin... |
import * as React from "react";
import Util from "./Util";
// Will return false if key isn't something like 'ports[0].value'.
function isNotMultipleProp(key) {
return !key.includes("[") || !key.includes("]");
}
/**
* Checks if object is a proper field definition for a Form.
*
* @param {Object} fieldDefinition D... |
import { Injectable } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/auth';
import { AngularFirestore, CollectionReference, Query } from '@angular/fire/firestore';
import * as firebase from 'firebase/app';
import { Observable, timer, BehaviorSubject, of, combineLatest } from 'rxjs';
import { disti... |
import { BackLink, DataError, Loading, Stations } from 'components'
import { STATION_STORE, TRIP_STORE } from 'db'
import { useTrip } from 'hooks'
import { compact, last, union, uniq } from 'lodash'
import { Trip } from 'models'
import moment from 'moment'
import { useRouter } from 'next/router'
import { useEffect, use... |
import * as React from 'react'
import { when, resetAllWhenMocks } from 'jest-when'
import '@testing-library/jest-dom'
import { fireEvent, screen } from '@testing-library/react'
import { BrowserRouter } from 'react-router-dom'
import {
componentPropsMatcher,
nestedTextMatcher,
renderWithProviders,
} from '@opentro... |
<reponame>rholang/archive-old
/**
* @file link-pkg.ts
*
* Links packages to another repo via yalc
*/
import * as bolt from 'bolt';
import chalk from 'chalk';
import fse from 'fs-extra';
import meow from 'meow';
import path from 'path';
import * as yalc from 'yalc';
import runCommands from '@atlaskit/build-utils/run... |
import { HasPhoneNumber, HasEmail } from "./1-basics";
//== TYPE ALIAS ==//
/**
* (1) Type aliases allow us to give a type a name
*/
type StringOrNumber = string | number;
// // this is the ONLY time you'll see a type on the RHS of assignment
type HasName = { name: string };
// 🚨 self-referencing types don't work... |
<gh_stars>0
import { merge } from 'lodash'
import Objection from 'objection'
/**
* Resolves a where input by appending `andWhere` with the parsed input.
* Use with knex `modify` to hook this resolver. The function will do
* nothing if input is null to support fluent chaining
*
* @example
* await Model.query().mo... |
/// <reference path='../../../third_party/typings/index.d.ts' />
import * as arraybuffers from '../arraybuffers/arraybuffers';
import * as bridge from '../bridge/bridge';
import * as logging from '../logging/logging';
import * as loggingTypes from '../loggingprovider/loggingprovider.types';
import * as net from '../ne... |
const colors = {
transparent: 'transparent',
current: 'currentColor',
inherit: 'inherit',
white: '#FFFFFF',
black: '#000000',
'white-100': '#FEFEFE',
'white-200': '#F6F6F6',
'gray-100': '#EBEBEB',
'gray-200': '#DEDEDE',
'gray-300': '#BDBDBD',
'gray-400': '#858585',
'gray-500': '#716F6F',
'gr... |
<reponame>Emupedia/emupedia-app-noclip
import ArrayBufferSlice from "../ArrayBufferSlice";
import { HSD_LoadContext, HSD_LoadContext__ResolvePtrAutoSize, HSD_Archive, HSD_ArchiveSymbol, HSD_LoadContext__ResolvePtr, HSD_LoadContext__ResolvePtrString, HSD_ArchiveParse, HSD_FObj, HSD_FObjLoadKeyframes, HSD_AObj, HSD_AObj... |
<gh_stars>100-1000
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import settings from 'carbon-components/es/globals/js/settings';
import { ifDefined } from 'lit-html/direct... |
import assert = require("assert");
import * as fs from "fs";
import { fetchJson, readFile, readJson, writeFile } from "../util/io";
import { Logger } from "../util/logging";
import { nAtATime, intOfString, sortObjectKeys } from "../util/util";
import { AnyPackage, AllPackages, fullPackageName, settings } from ... |
<reponame>theunisj/salesforce-alm
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as ResponseParser from '../force-cli/force-cli-r... |
<reponame>sdlane/ElementaryJS
// This module is the entrypoint of the ElementaryJS package. It is written
// for both Node and web browsers. i.e., it does not provide functions to
// read code from files.
import * as babel from 'babel-core';
import { Node, Program } from 'babel-types';
import * as babylon from 'babylon... |
<gh_stars>1-10
import {Environment} from '@thx/env';
import DataLoader from 'dataloader';
import debug from 'debug';
import LruCache from 'lru-cache';
import {compress, decompress} from 'lzbase62';
import {keysSplitAndSort} from './keysSplitAndSort';
import {noPermissionLookup} from './noPermissionLookup';
import type ... |
import { OnInit } from '@angular/core';
import {
Component,
ChangeDetectionStrategy,
ViewChild,
TemplateRef,
} from '@angular/core';
import {
startOfDay,
endOfDay,
subDays,
addDays,
endOfMonth,
isSameDay,
isSameMonth,
addHours,
} from 'date-fns';
import { Subject } from 'rxjs';
import { NgbModal... |
/// <reference path="../../adonis-typings/stomp.ts" />
import {
HealthReportNode,
PubSubChannelHandler,
StompConnectionConfig,
} from '@ioc:Gaurav/Adonis/Addons/Stomp'
import { Client, messageCallbackType, StompSubscription } from '@stomp/stompjs'
import { EventEmitter } from 'events'
import { Exception } from '@po... |
<gh_stars>10-100
/* eslint-disable new-cap */
/* eslint-disable no-new */
import { clamp } from 'utils/clamp';
import { ArtWork } from '../../artwork-type';
import { runFluidSimulator } from './src/run';
import { createEventProvider } from '../games/event-provider';
import { createDebugGameView } from '../games/art-gam... |
<reponame>shingoinstitute/sf-graphql<filename>src/SOQL.ts
import { flatten } from 'ramda';
import { getNamedType, isLeafType, isOutputType, GraphQLObjectType, FieldNode, GraphQLResolveInfo } from 'graphql';
import { QueryResult, Connection, ConnectionOptions } from 'jsforce';
import { isObject, unique } from './util';
... |
import React, { ReactNode, useMemo, createContext, useState, useContext, Dispatch } from 'react'
import { ConfigurationParameters, ValidationProblemArrayResult, ValidationProblem, UserApi, InfoApi, BookApi, CollectionApi, Configuration, GetInfoResponse, GetInfoAuthenticatedResponse, BASE_PATH, User, UserPermissions, Co... |
import RG from '../rg';
import {SystemBase} from './system.base';
import {EventPool} from '../eventpool';
import {MapGenerator} from '../generator';
import {snowMeltMap} from '../../data/elem-constants';
import * as Component from '../component/component';
type CellMap = import('../map').CellMap;
type Cell = import('... |
/*
Interfaces leveraged by harveyBall.ts
*/
import powerbi from "powerbi-visuals-api";
import ISelectionId = powerbi.visuals.ISelectionId;
import PrimitiveValue = powerbi.PrimitiveValue;
import { VisualSettings } from './settings';
import VisualUpdateOptions = powerbi.extensibility.visual.VisualUpdateOptions;
import IV... |
import BigNumber from "bignumber.js";
import PancakeV2 from ".";
import { getTokenAddress } from '../../constants';
import { BASES_TO_CHECK_TRADES_AGAINST as bases } from './constants';
import { flatMap } from 'lodash';
import { currencyEquals, JSBI, Pair, Percent, Token, TokenAmount, Trade, } from "@pancakeswap/sdk";
... |
<reponame>YoSoyBacan/yo-soy-bacan
import { BitlyClient } from 'bitly';
import { Request, Response, Router } from 'express';
import {
ContainerTypes,
createValidator,
ExpressJoiError,
ValidatedRequest,
ValidatedRequestSchema,
} from 'express-joi-validation';
import BuenPlanAPI from '../lib/clients/buenplan';
... |
import MaterialTable, { QueryResult } from 'material-table';
import { Avatar, Paper, TablePagination, Typography } from '@material-ui/core';
import React, { RefObject } from 'react';
import {
Theme,
WithStyles,
createStyles,
withStyles,
} from '@material-ui/core/styles';
import FormControl from '@mater... |
import glob = require("glob");
import path = require("path");
import jsonMerger = require("json-merger");
import {
IIncludeData,
IServerData,
IUserData,
} from "./page-objects/interface-po";
const TEST_RESOURCE = path.join(__dirname, "..", "..", "test", "resources");
const scenarioDefault: string = path.join(
... |
<reponame>Kinplemelon/MQTTX<gh_stars>0
import db from '@/database/index'
import {
ConnectionModel,
MessageModel,
ConnectionModelCollection,
HistoryMessageHeaderModel,
HistoryMessagePayloadModel,
} from '@/views/connections/types'
export const setConnectionCollection = (data: ConnectionModelCollection[] | [])... |
import { EventEmitter } from 'events'
import puppeteer from 'puppeteer'
import fs from 'fs'
import MessageService from './service'
interface ClientEvents {
'authenticated': (service: MessageService) => void,
'browser-launched': () => void,
'qr-code': (base64Image: string) => void
}
declare interface Messag... |
import React, { useState } from 'react';
import { useAppDispatch } from '../../../store/hooks';
import { navigate, refreshOrder } from '../../../store/public-store';
import bt from '@synonymdev/blocktank-client';
import FormCard from '../../../components/form-card';
import Spinner from '../../../components/spinner';
im... |
<reponame>f5devcentral/vscode-nginx<gh_stars>1-10
/*
* Copyright 2020. F5 Networks, Inc. See End User License Agreement ("EULA") for
* license terms. Notwithstanding anything to the contrary in the EULA, Licensee
* may copy and modify this software product for its internal business purposes.
* Further, Licensee may... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.