text stringlengths 3.08k 15.5k |
|---|
import React, { useState, ChangeEvent, KeyboardEvent, FormEvent } from 'react';
import { usePreloadedQuery } from 'react-relay/hooks';
import { HomeScreenQueryResponse } from './__generated__/HomeScreenQuery.graphql';
import { OperationType } from 'relay-runtime';
import { PreloadedQuery } from 'react-relay';
import { ... |
import React, { useEffect, useState } from "react";
import styled from "styled-components";
import { useTranslation } from "react-i18next";
import { useParams } from "react-router-dom";
import { IconLocation, Notification } from "hds-react";
import {
getApplicationRound,
getReservations,
getReservationUnit,
} fro... |
import React, { useState, useEffect } from 'react'
import { useBreakpointValue } from '@chakra-ui/media-query'
import { Box, Button, HStack, Image, Text, Link as A, VStack } from "@chakra-ui/react"
import { TriangleDownIcon } from "@chakra-ui/icons"
import waitBackground from "@resources/images/Waiting Background... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable no-bitwise */
import path from "path";
import random from "random-js";
import { Trace } from "@fluidframework/common-utils";
import { LocalReference } from "../localReference";
import * as ops fro... |
<filename>packages/presentation/main/src/commands-v2/dictionary.ts
import { DictionaryRepository } from "domain_voice-configs";
import { DictionaryJson } from "../text2speech";
import {
Message,
MessageAttachment,
MessageEmbed,
Permissions,
} from "discord.js";
import request = require("superagent");
import { S... |
<gh_stars>0
import settings from '../settings';
import path from 'path';
import utils from '../utilities/utils';
import * as fs from 'fs';
import { readFileSync, writeFileSync } from 'fs';
import { JiraIssueType, JiraProject } from './PromptHelpers';
import { IssueResponse } from 'jira-connector/types/api';
import cp ... |
<reponame>gameofbombs/awayjs
/**
* Copyright 2014 Mozilla Foundation
*
* 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... |
<gh_stars>0
/*!
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
<reponame>Diabetips/diabetips-api
/*!
** Copyright 2019-2020 Diabetips
**
** All rights reserved
**
** Created by <NAME> on Wed Aug 28 2019
*/
import { Column, Entity, Index, JoinTable, ManyToMany, OneToMany, OneToOne } from "typeorm";
import { Page, Pageable, Utils } from "../lib";
import { BaseEntityHiddenId, IBas... |
<filename>core/templates/pages/topic-editor-page/modal-templates/questions-opportunities-select-difficulty-modal.component.spec.ts<gh_stars>1-10
// Copyright 2021 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in complian... |
<gh_stars>0
import Styled from "styled-components";
import { Container } from "@styles/landingPage.element";
export const FormSectionWrapper = Styled.div`
position: absolute;
`;
export const FormContentWrapper = Styled.div`
top:0;
bottom:0;
width: 100%;
height: 100%;
display:flex;
flex-dir... |
<filename>src/core/buffer_core_arraybuffer.ts
import buffer_core = require('./buffer_core');
/**
* Represents data using an ArrayBuffer.
*/
export class BufferCoreArrayBuffer extends buffer_core.BufferCoreCommon implements buffer_core.BufferCore {
public static isAvailable(): boolean {
return typeof DataView !... |
<gh_stars>1-10
import AdvancedSearchFilter from '../ViewModels/Search/AdvancedSearchFilter';
import AlbumContract from '../DataContracts/Album/AlbumContract';
import AlbumForApiContract from '../DataContracts/Album/AlbumForApiContract';
import AlbumForEditContract from '../DataContracts/Album/AlbumForEditContract';
... |
<reponame>Sushmitakr/MaverickAngularIntegratedUI
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { ContentComponent } from '../content/content.component';
import { AppComponent } from '../app.component';
import { La... |
interface Shape {
calc(density: number): number;
}
//直方体
class Cuboid implements Shape {
public constructor(
private vertical: number,
private horizontal: number,
private height: number
) {}
public calc(density: number) {
return this.vertical * this.horizontal * this.height * density;
}
}
//... |
<filename>src/tenants/tci.ts<gh_stars>1-10
import {
col,
getCurrentAWSRegion, getCurrentRegion, getOrganization,
run
} from '../common/common-functions'
import {
createTable,
getPEXConfig,
iterateTable,
pexTable
} from '../common/tables'
import { askMultipleChoiceQuestionSearch, askQuestion } from '../com... |
import {Sprite, Graphics} from 'pixi.js';
import {commonColors} from './constants';
import {definedOr, TweenableProps} from './helpers';
export class SurfaceBackground extends Graphics {
private currentColor: IColor = commonColors.transparent;
set color (value: IColor) {
if (value === undefined) {
value... |
<reponame>Majavapaja/Mursushakki<filename>test/browser/Game.browser.ts
import assert from "assert"
import * as Util from "./TestUtil"
Util.browserSpec("Game", { numBrowsers: 2 }, function () {
it("plays the shortest game ever", async function () {
const [white, black] = this.pages
await setupGame(white, blac... |
<filename>search-parts/src/services/taxonomyService/TaxonomyService.ts
import { Text, Log, Guid } from '@microsoft/sp-core-library';
import { SPHttpClient } from '@microsoft/sp-http';
import { ServiceKey, ServiceScope } from "@microsoft/sp-core-library";
import { ITaxonomyService } from './ITaxonomyService';
import { C... |
<gh_stars>0
export interface Result {
value: string;
error?: { position?: number; message: string };
}
export interface Options {
env?: Env | EnvResolver;
specialVars?: string[];
ignoreErrors?: boolean;
}
interface Context {
env: EnvResolver;
cachedEnv: Env;
specialVars?: string[];
ignoreErrors: boo... |
<reponame>isabella232/vscode-extension<gh_stars>10-100
import * as vscode from "vscode";
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import configuration from "../common/domain/extension/configuration";
import { showInEditor } from "../common/vscode/editor/editorUtil";
import { get... |
import * as React from 'react'
import { getPipetteModelSpecs } from '@opentrons/shared-data'
import {
ModalPage,
SpinnerModalPage,
useConditionalConfirm,
DISPLAY_FLEX,
DIRECTION_COLUMN,
ALIGN_CENTER,
JUSTIFY_CENTER,
SPACING_3,
C_TRANSPARENT,
ALIGN_FLEX_START,
C_WHITE,
} from '@opentrons/component... |
<reponame>notgull/LeadershipTrakcer
/*
* src/excel.ts
* LeadershipTrakcer - Martial arts attendance logger
*
* Copyright (c) 2019, <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
import { ObjectId } from 'mongodb';
import { Store } from '../..';
import { StatsVersion } from '../types/stats/StatsVersion';
import { Stats } from '../types/stats';
import { BaseStats } from '../types/stats/BaseStats';
import { AgariCategories, createStats, FirstStats } from '../types/stats/FirstStats';
import ... |
import * as React from "react";
import withStyles, { WithStyles } from "@material-ui/core/styles/withStyles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableHead from "@material-ui/core/TableHead";
import... |
import * as React from 'react';
import { Row, Col, FormControl, Panel } from 'react-bootstrap';
import { Mutation, MutationComponentOptions } from 'react-apollo';
import styled from 'styled-components';
import {
keys,
lensPath,
set,
dissocPath,
equals,
findIndex,
propEq,
over,
} from 'ramda';
import Rea... |
<reponame>e-ran/netless-app
import { ensureAttributes } from "@netless/app-shared";
import type { NetlessApp } from "@netless/window-manager";
import { SideEffectManager } from "side-effect-manager";
import type {
AkkoObjectUpdatedListener,
ApplianceNames,
Event,
RoomState,
ScenePathType,
} from "white-web-sd... |
<filename>src/l10n/en.ts
import { L10N } from '.'
const english: L10N = {
new_game: 'New Game',
continue_game: 'Continue',
credits: 'Credits',
map: 'Map',
inventory: 'Inventory',
help: 'Help',
menu: 'Menu',
continue_hint_keyboard: 'Press space to continue',
continue_hint_mobile: 'T... |
<filename>core/web/staticresource.ts
import { HttpResponse } from "./httpresponse";
import { WebCache, IWebCacheObj } from "./webcache";
import { WebConfig } from "./webconfig";
import { HttpRequest } from "./httprequest";
import { Util } from "../tools/util";
import { App } from "../tools/application";
import { Stream... |
<gh_stars>100-1000
export type IsFinite<Tuple extends any[], Finite, Infinite> =
Tuple extends [] ? Finite :
Tuple extends Array<infer Element> ?
Element[] extends Tuple ?
Infinite
: Tuple extends [any, ...infer Rest]
? IsFinite<Rest, Finite, Infinite>
: never
: never
export type _SplitInfiniteTu... |
<reponame>ddthien-coder/iTraining<filename>web/admin/src/components/widget/grid/model/model.tsx
export const ASC_SORT_RECORD = function (field: string, rec1: any, rec2: any) {
let val1 = 0;
let val2 = 0;
if (rec1) val1 = rec1[field];
if (rec2) val2 = rec2[field];
if (val1 === val2) return 0;
return (val1 > ... |
<gh_stars>10-100
/* JSONPath 0.8.0 - XPath for JSON
*
* Copyright (c) 2007 <NAME> (<EMAIL>)
* Licensed under the MIT (MIT-LICENSE.txt) licence.
*/
type ResultPath = 'VALUE' | 'PATH' | 'OTHER'
interface JsonPath {
result: any[]
resultType: ResultPath
normalize(expr: string): string
walk(
loc: string,
... |
import {
Button,
Checkbox,
createStyles,
Divider,
FormControlLabel,
makeStyles,
Typography,
} from "@material-ui/core";
import { useState } from "react";
import { Link, useHistory } from "react-router-dom";
import { useBooleanState } from "react-use-object-state";
import {
APP_NAME,
RESET_PASSWORD_PAT... |
import Web3 from 'web3';
import { AbiItem } from 'web3-utils';
const web3: Web3 = new Web3();
// encoding function signature for given string input
// e.g input -> 'myMethod(uint256,string)'
// e.g output -> '0x24ee0097'
export const encodeFunctionSigWithString = (input: string): string => {
const functionSig = web... |
<filename>packages/core-components/src/components/LogViewer/AnsiProcessor.ts
/*
* Copyright 2021 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
export const enum NodeType {
// From marked
Space = 'Space',
Code = 'Code',
Heading = 'Heading',
Table = 'Table',
Blockquote = 'Blockquote',
List = 'List',
ListItem = 'ListItem',
Paragraph = 'Paragraph',
Html = 'HTML',
Def = 'Def',
Escape = 'Escape',
Text = 'Text',
... |
<filename>packages/actor-rdf-parse-jsonld/test/ActorRdfParseJsonLd-test.ts
import {Bus} from "@comunica/core";
import "jest-rdf";
import {Readable} from "stream";
import {ActorRdfParseJsonLd} from "../lib/ActorRdfParseJsonLd";
const stringToStream = require('streamify-string');
const arrayifyStream = require('arrayify-... |
<reponame>miuan/graphql-monster-builder<filename>services/backend/generators/entry.ts
import { StructureBackend, SchemaModel, SchemaModelRelationType, SchemaModelType, MODELS_NOT_HAVE_CREATE } from '../../common/types'
import { writeToFile, templateToText, templateFileToText } from '../../common/files'
import { getOnly... |
import type {
Message,
MessageSource,
MessageType,
Messenger,
PgModuleMessenger
} from "@pinglue/utils";
import {
_default,
_freeze,
Msg,
messageTypes
} from "@pinglue/utils";
import type {
ChannelSettings,
ChannelHandler,
ChannelRunOptions
} from "./channel";
// ====... |
import * as Result from './Models/result';
import { nounList, adjectiveList } from '../Mock/names';
export class OlympicsEngine {
state: IOlympicsState;
minimumPlayersPerTeam: number = 1;
teamNames: string[];
constructor() {
let nouns = this.shuffle(nounList());
let adjectives = th... |
import { randomBytes } from "crypto";
import { createReadStream, createWriteStream, statSync } from "fs";
import { rm, mkdir, stat as statAsync } from "fs/promises";
import { tmpdir } from "os";
import { basename, dirname, extname, resolve as resolvePath } from "path";
import type { Readable } from "stream";
import { f... |
import React, { useEffect } from 'react'
import { graphql } from 'gatsby'
import {
createStyles,
makeStyles,
Box,
Typography,
Grid,
} from '@material-ui/core'
import { Link } from 'gatsby-theme-material-ui'
import Layout from '../components/Layout'
import Seo from '../components/Seo'
import MinishopCard from ... |
<reponame>parsiq/block-tracer
import {
BlockBase,
BlockHeader,
BlockReward,
BlockTrace,
TraceItem,
TransactionBase,
TransactionTrace,
} from './block-trace.type';
const BlockHeader = {
fromTrace({
header: {
gasUsed,
gasLimit,
baseFeePerGas,
sha3Uncles,
extraData,
... |
<gh_stars>1-10
import * as fs from 'fs';
import * as path from 'path';
import log from 'electron-log';
import * as http from 'http';
import { ipcMain, nativeImage } from 'electron';
const WebSocket = require('faye-websocket');
import file from '../../../utils/file';
import { sendToAllWindows } from '../../../utils/winM... |
<gh_stars>0
/**
* Copyright (c) <NAME>.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ChannelWrapper } from '../../amqp'
import { Schedule, ScheduleOptions } from '../../schedule'
import { KeyOfFilterType } from '../../typ... |
import React, { Component } from "react";
import {
Grid,
Card,
Button,
Header,
Modal,
Icon,
Image,
Form
} from "semantic-ui-react";
import { renderElapsedString } from "../../utils/helpers";
import { TimerContext } from "../../contexts/timer-context";
import { uploadFile } from "../../api/t... |
import type { CompilerSystem, Config, Diagnostic, LoadConfigInit, LoadConfigResults } from '../../declarations';
import { buildError, catchError, isString, normalizePath, hasError, IS_NODE_ENV } from '@utils';
import { createLogger } from '../sys/logger/console-logger';
import { createSystem } from '../sys/stencil-sys'... |
<reponame>danr/doctest-ts<gh_stars>10-100
import * as ts from 'typescript'
import * as fs from 'fs'
import * as path from 'path'
////////////////////////////////////////////////////////////
// Types
export interface Equality {
tag: '=='
lhs: string
rhs: string
}
export interface Statement {
tag: 'Statement'
... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import chalk from 'chalk';
import {Command} from 'commander';
import execa from 'execa';
import semver from 'semve... |
import {
DocBlockTag,
DocCodeSpan,
DocComment,
DocErrorText,
DocEscapedText,
DocFencedCode,
DocLinkTag,
DocMemberIdentifier,
DocMemberReference,
DocNode,
DocNodeContainer,
DocNodeTransforms,
DocParagraph,
DocPlainText,
StandardTags,
} from '@microsoft/tsdoc'
import {isArray, isRecord} from... |
<gh_stars>1-10
import * as d3 from "d3"
import * as Plotly from "plotly.js"
let svg = d3.select("svg"), width = window.innerWidth, height = window.innerHeight
let projection = d3.geoNaturalEarth1().scale(width / 5.8).translate([width / 2.5, height / 2.1]);
let csvData = []
d3.csv("https://raw.githubusercontent.com/ow... |
<gh_stars>10-100
import { AppConfState, Clip } from '@/store/types';
import { BrowserWindow, ipcMain } from 'electron';
import { ShortcutFuzzy } from '../electron/services/shortcuts';
import { IDevice } from '@/electron/services/socket.io/types';
import { MessageDoc } from '@/rxdb/message/model';
import { drive_v3 } fr... |
<filename>sample/app.ts
import "reflect-metadata";
import {Action, ServerLoader, ServerSettings, UnauthorizedError, useContainer} from "express-lugon";
import {Container} from "typedi";
// import {getEntityManager, TYPE_AUTHORIZATION} from "./models";
import {$log} from "ts-log-debug";
import "./logger/Logger"
// impor... |
<gh_stars>1-10
/**
* Created by sam on 04.11.2016.
*/
import {create as createHeader, AppHeaderLink} from 'phovea_ui/src/header';
import LineUp,{ILineUpConfig} from 'lineupjs/src/lineup';
import {LocalDataProvider} from 'lineupjs/src/provider';
import {createStackDesc, createNestedDesc, createScriptDesc} from 'lineu... |
import { values } from "lodash";
import { CoreEvent, MutationEvent } from "aerial-common";
import { CallbackBus, IBus } from "mesh7";
import { SyntheticRendererEvent, DOMNodeEvent } from "../messages";
import {
Logger,
loggable,
bindable,
Observable,
IObservable,
BoundingRect,
watchProperty,
PropertyWa... |
<gh_stars>10-100
/* eslint-disable @typescript-eslint/ban-types */
/**
* @note moved from @gs.i/utils-optimize
*/
import IR, { isRenderable, Int, RenderableNode } from '@gs.i/schema-scene'
import { Processor, TraverseType } from '@gs.i/processor-base'
import { Frustum, Euler, Quaternion, Vector3, Matrix4, Box3, Sphe... |
<reponame>webeverde/express-validator-for-schema
import { ValidationParamSchema, ValidationSchema, checkSchema, body } from "express-validator";
import * as validator from 'validator';
import { REQUIRED_VALUE_MISSING, INVALID_DATE_VALUE, INVALID_ENUM_VALUE, INVALID_STRING_VALUE, INVALID_BOOLEAN_VALUE, INVALID_FLOAT_VAL... |
<reponame>yoanngueny/router
import { ROUTERS } from "../api/routers";
import {
buildUrl,
extractPathFromBase,
joinPaths,
removeLastCharFromString,
} from "../api/helpers";
import { useRootRouter } from "../hooks/useRouter";
const debug = require("debug")(`router:LangService`);
export type TLanguage = {
key: ... |
<reponame>rapsealk/vuerd
import {
defineComponent,
FunctionalComponent,
html,
observable,
} from '@vuerd/lit-observable';
import { classMap } from 'lit-html/directives/class-map';
import { styleMap } from 'lit-html/directives/style-map';
import { onPreventDefault } from '@/core/helper/dom.helper';
import { use... |
<gh_stars>1-10
import { Component, OnInit, OnDestroy } from '@angular/core'
import { GroupService } from '../../../services/group.service'
import { GroupsComponent } from '../groups.component'
import { UserStatusValue } from '../../../shared/interfaces/users-status'
import { ActivatedRoute, Router } from '@angular/rout... |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
EventEmitter,
Input,
OnDestroy,
OnInit,
Optional,
Output,
ViewEncapsulation
} from '@angular/core';
import { DOWN_ARROW, ENTER, LEFT_ARROW, RIGHT_ARROW, SPACE, TAB, UP_ARROW } from '@angular/cdk/keycodes';
import { V... |
import { css } from '@emotion/react';
import { theme as styleguideTheme, borderRadius, typography } from '@expo/styleguide';
import React, { ReactNode, MouseEvent } from 'react';
import { ButtonBase } from './ButtonBase';
import { hexToAccessibleHSLA, hexToRGBA } from './colors';
import { LinkBase } from '~/ui/compon... |
import { Box, IconButton, TableCell, TableRow, TextField, Tooltip, Typography } from '@material-ui/core'
import DeleteIcon from '@material-ui/icons/Delete'
import DoneIcon from '@material-ui/icons/Done'
import EditIcon from '@material-ui/icons/Edit'
import FileCopyIcon from '@material-ui/icons/FileCopy'
import Function... |
import React, { useEffect, useMemo, useState } from "react";
import { useHistory } from "react-router-dom";
import { useLazyQuery } from "@apollo/client";
import {
makeStyles,
Theme,
createStyles,
useTheme,
} from "@material-ui/core/styles";
import { Box, Step, StepContent, StepLabel } from "@material-ui/core";... |
import * as vm from "vm";
import * as path from "path";
const getOptions = require("loader-utils").getOptions;
// const resolve = require("resolve");
const btoa = require("btoa");
const config = require(path.resolve(process.cwd(), "webpack.config.js"));
const resolve = require("enhanced-resolve").create.sync({ alias: c... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { AngularEditorConfig } from '@kolkov/angular-editor';
import { Config } from 'protractor';
import { ServicesItem } from 'app/shared/models';
import { ServicesService, ConfigurationService } from 'app/shared/services/api';
import { SwalService } from... |
import '@k2oss/k2-broker-core';
import CryptoJS from "crypto-js/core";
import 'crypto-js/hmac-sha256';
metadata = {
systemName: "AWS_Lex_ChatBot",
displayName: "AWS Lex ChatBot Broker",
description: "AWS Lex ChatBot Broker",
configuration: {
"AwsRegion": {
displayName: "AWS Region"... |
<reponame>EricWiener/alexa-typescript-starter<filename>lambda/custom/lib/helpers.ts<gh_stars>0
import {getDialogState, getIntentName, getRequestType, HandlerInput} from 'ask-sdk-core';
import {DialogState, IntentRequest, Request, services} from 'ask-sdk-model';
import _ = require('lodash');
import {RequestAttributes, ... |
import React, { useEffect, useState } from 'react'
import { Comment } from '../../src/types/Comment'
import { Button, Card, CardActions, CardContent, makeStyles, Typography } from '@material-ui/core'
import { MarkdownBody } from '../body/MarkdownBody'
import EditIcon from '@material-ui/icons/Edit'
import DeleteIcon fro... |
<filename>packages/vite-plugin-arco-vue-docs/src/marked.ts<gh_stars>1-10
import marked from 'marked';
// @ts-ignore
import { cleanUrl, escape } from 'marked/src/helpers';
import yaml from 'js-yaml';
import Prism from 'prismjs';
import loadLanguages from 'prismjs/components/index';
import { parse } from '@vue/compiler-s... |
import { ApplicationCommandOptionType } from 'discord-api-types';
import axios from 'axios';
import { BotCommand } from '../bot-interaction-types.js';
import { ServerChannelName } from '../constants/server-channel-name.js';
import { findServerTextChannelByName, getServer, isChannelName } from '../utils/client-utils.js'... |
import {Injectable} from '@angular/core';
import {MediaSegmentScoreContainer} from '../../shared/model/results/scores/segment-score-container.model';
import {MediaObjectDescriptor, MediaSegmentDescriptor} from '../../../../openapi/cineast';
import {AppConfig} from '../../app.config';
/**
* Definition of the possible ... |
import {assertEquals} from "./test_deps.ts";
import getPasswordStrength from "./mod.ts";
import {
allCalcFunctions,
calcConsecutiveLowercase,
calcConsecutiveNumber,
calcConsecutiveUppercase,
calcLettersOnly,
calcLowercaseLetters,
calcMiddleNumbersOrSymbols,
calcNumberOfChars,
calcNumbers,
calcNumber... |
import React, { useRef, useEffect, useState, useMemo } from 'react';
import dayjs from 'dayjs';
import Stepper, { TStep, TStepperRef } from 'components/Stepper';
import ClientAssessment, { covertAgeToChoice } from './ClientAssessment';
import i18n from 'i18n';
import { useForm, FormProvider } from 'react-hook-form';
im... |
<reponame>wingyplus/elm-language-server<filename>src/server.ts<gh_stars>0
import globby from "globby";
import path from "path";
import {
Connection,
InitializeParams,
InitializeResult,
} from "vscode-languageserver";
import { TextDocument } from "vscode-languageserver-textdocument";
import { WorkDoneProgress } fr... |
<reponame>layui-vue/layer-vue
// 随机数
export function nextId() {
var s: any = [];
var hexDigits = "0123456789abcdef";
for (var i = 0; i < 36; i++) {
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
}
s[14] = "4";
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
s[8] = s[13] = s[18] = s[23... |
<gh_stars>100-1000
'use strict';
const async = require('async');
const { debug, info, warn, error } = require('portal-env').Logger('kong-adapter:main');
import * as wicked from 'wicked-sdk';
import * as utils from './utils';
import { sync } from './sync';
import { WickedEvent, WickedWebhookListener, WickedGlobals, Ca... |
import sprites from '../assets/sprites.png';
import spritesMirrored from '../assets/spritesMirrored.png';
class SpriteTexture {
constructor(
public xImg:number = 128,
public yImg:number = 128,) {
}
}
export default SpriteTexture;
interface SpriteTextures {
[id: string]: SpriteTexture;
}
export const spriteTe... |
export const Specialty = [
{value: 'acupuntura', name:'Acupuntura'},
{value:'alergia', name:'Alergia e Imunologia'},
{value:'angiologia', name:'Angiologia'},
{value:'angiorradiologia', name:'Angiorradiologia'},
{value:'cancerologia', name:'Cancerologia'},
{value:'cardiologia', name:'Cardiologia'},
{valu... |
import Decimal from 'decimal.js';
import _mapValues = require('lodash/mapValues');
import _pick = require('lodash/pick');
// eslint-disable-next-line @typescript-eslint/ban-types
type FunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T];
export type MathOps = Record<FunctionPropert... |
import i18n, { Module } from "i18next";
import { initReactI18next } from "react-i18next";
import markdownJsx from "i18next-markdown-jsx-plugin";
import _ from "lodash";
import moment from "moment";
import {
createStore,
Store,
combineReducers,
compose,
applyMiddleware,
} from "redux";
import thunk f... |
<reponame>barbaraliau/optics-monorepo
import * as proxyUtils from '../proxyUtils';
import * as xAppContracts from '../../../typechain/optics-xapps';
import * as contracts from '../../../typechain/optics-core';
import { toBytes32 } from '../../../optics-tests/lib/utils';
import fs from 'fs';
import { BridgeDeploy } fro... |
/**
* @license
* 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 { faAccessibleIcon } from '@fortawesome/free-brands-svg-icons';
import { faStar, faWalking } from '@fortawesome/f... |
import React, { useState } from 'react';
import { Table, Form, Button, Modal, message, Space } from 'antd';
import { useAntdTable } from 'ahooks';
import { PaginatedParams } from 'ahooks/lib/useAntdTable';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import AccountService from 'src/services/system/ac... |
<reponame>batisteo/vscode-python<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Event, Uri } from 'vscode';
import { Resource } from './common/types';
import { IDataViewerDataProvider, IJupyterUriProvider } from './jupyter/types';
/*
* Do not in... |
<gh_stars>0
import {
computeDestinationPoint,
getRhumbLineBearing,
getDistance,
} from "geolib";
type Grid = Array<Array<Coordinate>>;
type GeoJson = {
type: string;
data: {
type: string;
features: Array<{
type: string;
geometry: { type: string; coordinates: Array<Array<[number, number]>... |
import React, { useEffect, useState } from "react";
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';... |
<reponame>lab89/tagular
import { hole } from '../types/types';
import {uuidv4} from '../util/util'
class TAG {
public punchingText: string[];
public punchingHole: Array<hole | any> = [];
public tagText: string[];
public id: string = "";
private idx: number = 0;
private inserted: ... |
<filename>cllc-public-app/ClientApp/src/app/shared/components/delayed-file-uploader/delayed-file-uploader.component.ts
import { Component, Input, Output, OnDestroy, OnInit, EventEmitter } from "@angular/core";
import { Store } from "@ngrx/store";
import { Subject } from "rxjs";
import { takeUntil } from "rxjs/operators... |
import * as React from "react";
import { SortableListHeader } from "../SortableListHeader";
import {
Datatype,
AttributeAddon,
AttributeInput,
Primitives,
makeUniqueId,
buildDefaultAddonsValue,
validateAttribute,
SchemaInput,
} from "@codotype/core";
import { Droppable, DragDropContext }... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
import {inspect} from 'util';
export class DepNodeProvider implements vscode.TreeDataProvider < DependencyTreeItem > {
private _onDidChangeTreeData: vscode.EventEmitter < DependencyTreeItem | undefined > = new vscode.EventEmit... |
import {
Component,
Input, Output,
forwardRef,
EventEmitter,
HostListener,
ElementRef,
ChangeDetectorRef,
HostBinding,
ChangeDetectionStrategy,
AfterContentInit,
Renderer2,
ViewChild,
Injector} from '@angular/core';
import { ControlValueAccessor, NgControl, NG_VALUE_ACCESSOR } from '@angular/f... |
import {
createConnection,
InitializeParams,
InitializeResult,
ProposedFeatures,
TextDocuments,
TextDocumentSyncKind,
} from 'vscode-languageserver';
import {
TextDocument,
} from 'vscode-languageserver-textdocument';
// Used to manipulate URIs.
import * as vscodeUri from 'vscode-uri';
im... |
import { MOOA_EVENT, StatusEnum } from './model/constants'
import { toLoadPromise } from './lifecycles/load'
import { toBootstrapPromise } from './lifecycles/bootstrap'
import { toMountPromise } from './lifecycles/mount'
import StatusHelper from './helper/status.helper'
import { toUnloadPromise } from './lifecycles/unl... |
<filename>src/network/request.ts<gh_stars>1-10
import { Response } from '@/types/common'
import { debounce, encrypt } from '@/utils'
import axios, { AxiosInstance, AxiosPromise, AxiosRequestConfig, AxiosResponse, Canceler } from 'axios'
import { Message } from 'view-design'
export const getCommonParams = () => {
// ... |
<gh_stars>0
const c: {[index: string]: string} = {
'U': '#FEFEFE', // White
'R': '#891214', // Red
'F': '#199B4C', // Green
'D': '#FED52F', // yellow
'B': '#0D48AC', // Blue
'L': '#FF5525', // Orange
};
const notationSwapTable: {
[indexOf: string]: [number, number, number, number][];
} = {
L: [[0, 18, ... |
<reponame>Joebig7p/Daniil-Osokin
// Copyright 2020 Jebbs. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
import { context } from "../common/context";
import { SMRect } from "../interfaces";
import * as path from '@skpm/path';
export function co... |
/** @module count */
/** @hidden */
let _ = require('lodash');
import { Counter } from 'pip-services3-components-node';
import { CounterType } from 'pip-services3-components-node';
import { StringConverter } from 'pip-services3-commons-node';
/**
* Helper class that converts performance counter values into
* a resp... |
import { TransportTimeClass } from "../core/type/TransportTime";
import { NormalRange, Positive, Seconds, Ticks, Time, TransportTime } from "../core/type/Units";
import { StateTimeline } from "../core/util/StateTimeline";
import { ToneEvent, ToneEventCallback, ToneEventOptions } from "./ToneEvent";
declare type Callbac... |
<filename>dist/main.ts
import { app, BrowserWindow, ipcMain, IpcMainEvent } from "electron";
import { connectDB, createModel, getPassword, createPassword, updatePassword, deletePassword, getAllPasswords, findAllNotes, findNote, createNote, deleteNote, updateNote, findAllCards, findCard, createCard, updateCard, deleteCa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.