text
stringlengths
3.3k
33k
/* MIT License Copyright (c) 2021 Looker Data Sciences, 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, modi...
import { CacheStream, camelCaseKeys, escapeDiacritic, escapeHTML, escapeRegExp, hash, HashStream, highlight, htmlTag, Pattern, Permalink, slugize, spawn, truncate, wordWrap } from 'hexo-util'; import { expect } from 'chai'; import { Readable } from 'stream';...
import { ApolloError } from "@apollo/client"; import { APIError, isAPIError } from "./error"; import { ValidationFailedErrorInfoCause } from "./validation"; import { Values } from "@oursky/react-messageformat"; import { APIPasswordPolicyViolatedError } from "./password"; import { APIResourceTooLargeError } from "./reso...
//地图配置 var config: TileData[] = [ { x: 1, y: 1, walkable: true, image: "1_png" }, { x: 2, y: 1, walkable: true, image: "1_png" }, { x: 3, y: 1, walkable: false, image: "2_png" }, { x: 4, y: 1, walkable: false, image: "2_png" }, { x: 5, y: 1, walkable: true, image: "1_png" }, { x: 6, y: 1, walkab...
<gh_stars>0 import { ThriftMessage, ThriftPacketDescriptor, ThriftTypes, isThriftBoolean } from './thrift'; import { InvalidStateError, ThriftError } from '../errors'; export function thriftRead(message: Buffer): ThriftMessage[] { const reader = new BufferReader(message); const messages: ThriftMessage[] = []; ...
import fs from 'fs-extra' import * as path from 'path' import chalk from 'chalk' import pick from 'lodash/pick' import program from 'commander' import columnify from 'columnify' import { Parcel, GlobalOptionManager, GlobalLogger, localRequire } from 'wxparcel-core' import Project from '../constants/project' import babe...
/** * @module node-opcua-data-access */ export { EUInformation } from "node-opcua-types"; /*jslint bitwise: true */ // tslint:disable:no-bitwise // EngineeringUnit // Units of measurement for AnalogItems that represent continuously- variable physical quantities ( e.g., // length, mass , time, tempera...
<gh_stars>0 /**********************************************************************************/ /* Copyright (c) 2021 Rhombus Systems */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a copy */ /* of this software and associated documentation files (the "Software")...
import React, { Component, createRef, RefObject } from 'react'; import { Animated, TouchableOpacity, StyleSheet, Text, View, Platform, StatusBar, TextInput, FlatList, Image, Modal, Switch, AsyncStorage, Alert, AlertButton, ProgressBarAndroid, ColorPropType, VirtualizedList, Picker, Dimensions, ViewStyle, StyleProp, T...
/** BSD 3-Clause License Copyright (c) 2021, Cloudflare Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of co...
<gh_stars>0 import { RecordForm } from "./recordForm.js"; import { API } from "./api.js"; import { DeleteRequestBody } from "./requestBody.js"; class RecordCard { protected location: "overview" | "individual"; protected cardFieldDiv: HTMLElement; protected record: any; public constructor(location: "over...
/* Copyright 2016-2019 Balena 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 writing, software dist...
<filename>src/Algorithm/Parser.ts import { Token, TokenTypes } from './Lexer'; import { FaceTurnNode, RotationTurnNode, SliceTurnNode, WideTurnNode, } from './Turn'; export type FaceMove = 'U' | 'F' | 'R' | 'D' | 'B' | 'L'; export type WideMove = 'u' | 'f' | 'r' | 'd' | 'b' | 'l'; export type SliceMove = 'M' |...
/** * Typescript version of golf-shot-simulation by jcole * https://github.com/jcole/golf-shot-simulation */ import {Vector3} from "three"; function toMPS(mph: number): number { return mph * 0.44704; } function toMPH(mps: number): number { return mps * 2.23694; } function toMeters(yards: number): number ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // tslint:disable:no-import-side-effect no-unnecessary-class import 'reflect-metadata'; import { AxeResults } from 'axe-core'; import { AxePuppeteer } from 'axe-puppeteer'; import * as Puppeteer from 'puppeteer'; import { I...
<reponame>chiendh/winter-cardinal-ui import { Matrix, Point, TextureUvs } from "pixi.js"; import { buildStep } from "./build-step"; import { toLength } from "./to-length"; import { STEP_VALUES, toStep } from "./to-step"; export const TRIANGLE_VERTEX_COUNT = 7; export const TRIANGLE_INDEX_COUNT = 3; export const TRIANG...
<reponame>apexfarm/sfdx-i18n<filename>src/commands/i18n/object/export.ts<gh_stars>1-10 import { flags, SfdxCommand } from '@salesforce/command'; import { Messages, SfdxError, Connection } from '@salesforce/core'; import { AnyJson } from '@salesforce/ts-types'; import * as path from 'path'; import * as XLSX from 'xlsx';...
<reponame>kameocode/shadowow import {colors, MarkersSet} from "./marker-set.model"; import {NgZone} from "@angular/core"; import {ShadowCalculatorService} from "../shadow-calculator.service"; import * as _ from "lodash"; import {ShadowShapeCalculator} from "./shadow-shape-calculator.model"; import {XYArray} from "./xy-...
<filename>test/shared/runner.ts // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* eslint-disable no-console */ // no-console disabled here as this is a test runner and expects to output to the console ...
import React, { Component } from 'react'; import { Animated, LayoutAnimation, PanResponder, StyleSheet, Text, View, ScrollView, Image, Platform } from 'react-native'; // App Globals import AppStyles, {Style, underlayColor} from '../styles' // Components import Close from './close'; import Add from '...
/// <amd-module name="UICommon/theme/_controller/LinkResolver" /> /** * Модуль для вычисления путей до статических ресурсов * @author <NAME>. */ import { getResourceUrl } from 'UICommon/Utils'; // @ts-ignore import { constants } from 'Env/Env'; // Need this code for compatibility with old controls // Some old modul...
import * as cdk from "aws-cdk-lib"; import * as _ from "lodash"; import { PipelineStack } from "./pipeline"; import { Stage } from "./stage"; import { makeSsmPath, parseRepositoryUrl } from "./utils"; import { CONTEXT_KEY_ACCOUNT, CONTEXT_KEY_BRANCH, CONTEXT_KEY_DOCKERHUB_CREDENTIALS, CONTEXT_KEY_NAME, CONTEX...
<gh_stars>0 /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable sonarjs/cognitive-complexity */ /* eslint-disable complexity */ import { utils } from '@common/utils'; import { Credentials } from '@common/cfenv'; import * as Api from 'kubernetes-client'; import { IError } from '@interfaces'; import...
import { DynamoDB } from 'aws-sdk'; import { Facet } from './facet'; import { wait } from './wait'; const ddb = new DynamoDB({ region: 'us-east-1', endpoint: 'http://localhost:8000', }); const tableName = 'TEST'; enum TokenStatus { Active = 'active', Failed = 'failed', } enum PostStatus { Draft = 'active', Qu...
/* eslint-disable @typescript-eslint/no-explicit-any */ import * as bundleAssemblyHelpers from '../src/utils/bundleAssemblyHelpers'; import * as sqlite3 from 'sqlite3'; // wrapper around sqlite3 that is promise-based import * as sqlite from 'sqlite'; import testTransactionBundle from './fixtures/testFiles/testTransact...
import { css } from "@emotion/react"; import dynamic from "next/dynamic"; import Link from "next/link"; import React, { useState, useMemo, useEffect, useCallback } from "react"; import { useAtom } from "jotai"; import useSWR, { mutate } from "swr"; import { Conditional } from "dyson/src/components/layouts"; import {...
"use strict"; import "jquery"; import Handsontable from "handsontable"; import { Item, LazyAccess } from "../modules/table/Access"; import * as Config from "../modules/table/Config"; import { Filter } from "../modules/table/Filter"; import * as Forms from "../modules/Forms"; import { Graph } from "../modules/table/Gr...
import { peek, Disposer, reverse } from '@/lib/std'; import Vue from 'vue'; import { reactive } from '@vue/composition-api'; import { emitter } from '@/lib/events'; import { getLogger } from '@/lib/log'; const logger = getLogger('olyger'); // You can read more about this file in the following issue: // https://githu...
import React, { ReactElement } from 'react'; import { useHistory, Link } from 'react-router-dom'; import { useSelector, useDispatch } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { useFormik, FormikProvider } from 'formik'; import * as yup from 'yup'; import { Alert, Button, ...
import React from 'react' import { IconAccessibilityNew, IconAccessibleForward, IconAccountBalance, IconAccountBox, IconAccountCircle, IconAdd, IconAddCircle, IconAddCircleOutline, IconAlarm, IconAlternateEmail, IconAnnouncement, IconArrowBack, IconArrowDownward, IconArrowDropDown, IconAr...
import { Course, CourseContentItem, CourseEnrollment, GradeMapping, PaginatedQuery } from "@bbdash/shared"; import APILayer from "../structs/layer"; import { isAxiosError, SharedThrottle } from "../util"; interface CourseListingResult { coursesWithActivity: string[]; coursesWithGrades: string[]; } type Member...
import Vec2 = TSM.vec2; import { CaseStyle, IPoint, IPointZ, IVersionInfo, SentenceCaseStyle, Source, TerrainType } from "Enums"; import { ITile } from "tile/ITerrain"; import * as Arrays from "utilities/Arrays"; import Color from "utilities/Color"; import Emitter from "utilities/Emitter"; export { Color, Emitter, Arra...
<filename>src/app/pages/users/components/all-workers/all-workers.component.ts import { Component, OnInit, ViewChild, ElementRef, Renderer } from '@angular/core'; import { Store } from '@ngrx/store'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { Router } from '@angular/router'; import { Observable } fr...
/* * SPDX-License-Identifier: Apache-2.0 * * This sample uses BullMQ jobs to process submit transactions, which includes * retry support for failing jobs */ import { ConnectionOptions, Job, Queue, QueueScheduler, Worker } from 'bullmq'; import { Application } from 'express'; import { Contract, Transaction } from ...
<filename>src/layout/dagre/src/position/bk.ts<gh_stars>10-100 import graphlib from '../graphlib'; import util from '../util'; import { graphlib as IGraphLib } from '../../graphlib'; type IGraph = IGraphLib.Graph; const Graph = (graphlib as any).Graph; /* * This module provides coordinate assignment based on Brandes ...
import chalk from 'chalk'; import { outputFile, promises, readFile } from 'fs-extra'; import { extname, join } from 'upath'; import { createSuccessMessage, log } from './utils/messages'; export const topLevelFoldersThatMayContainPages = ['pages']; export function getIsPageFile(filePathFromAppRoot: string) { return ...
<filename>src/ScriptExtractor.ts import luabundle from 'luabundle'; import { Module as LuaModule } from 'luabundle'; import NoBundleMetadataError from 'luabundle/errors/NoBundleMetadataError'; import path from 'path'; const { dirname } = path; import { text_to_xml_attr, clean_str_for_path, normalize_line_endi...
import React, {Component} from "react"; import {Modal, Form, FormControl} from "react-bootstrap"; import {Global} from "../../store/global/types"; import {Account} from "../../store/accounts/types"; import {Entry, EntryVote} from "../../store/entries/types"; import {User} from "../../store/users/types"; import {Activ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import React, { useMemo, useEffect, useState, useRef, useCallback } from 'react'; import { useRecoilValue } from 'recoil'; import { ConversationActivityTraffic, ConversationNetworkTrafficItem, ConversationNetworkErrorItem, } from '@botfra...
import { World, BodyFactory, Point, Polygon, BodyGetOptions, BODYTYPE_BACKGROUND, Body, Circle, Window, } from '../../core'; import { PolygonDrawable } from '../../core/util/polygon-drawable'; import { GROUND_GRADIENT } from '../ground'; import IMG_GRASS1 from './images/grass1.png';...
/** * DbConnect, access your SQL database from Cloudflare Workers or the browser. * * @example * const db = new DbConnect({ * host: 'sql.mysite.com', * clientId: '<insert-my-access-client-id>', * clientSecret: '<insert-my-access-client-secret>' }) * * db.ping() * * db.submit({ * statement: '...
import { ls, test } from 'shelljs' import { compositeListDescription, sourceListDescription, targetListDescription, } from './textAssets' import { buildTable, TableText } from '../shared/tableUtils' import { codeList, getJsonFile, localPathToRoot, saveText, sortText, wrapCode, } from '../shared/docGen...
<filename>src/buildSchema.ts import { Option, none, some } from 'fp-ts/lib/Option' import { GraphQLBoolean, GraphQLFieldConfig, GraphQLFloat, GraphQLInt, GraphQLLeafType, GraphQLNonNull, GraphQLObjectType, GraphQLString, GraphQLUnionType, GraphQLObjectTypeConfig } from 'graphql' import { Field as SObjectField, Desc...
import { groupBy, mapValues, partition, sortBy } from "lodash" import { Flex, Join, Separator, Spacer, Text } from "palette" import React from "react" import { RefreshControl, ScrollView } from "react-native" import { createPaginationContainer, graphql, QueryRenderer, RelayPaginationProp } from "react-relay" import { ...
<filename>src/services/lib/cv.ts import { closest, isPointInsideRect, measureSides, Point } from '../../util/geometry'; /** {@link https://docs.opencv.org/3.4/dc/dcf/tutorial_js_contour_features.html} */ const BOX_DETECTION_THRESHOLD = 0.01; const SQUARE_SHAPE_THRESHOLD = 0.7; const MIN_CHAR_AREA = 0.08; const MAX_CHA...
import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import requester from "~/core/fetch"; import EventEmitter from "~/core/EventEmitter"; import { AnyObjectType, AppDataElementsTypes, ArgumentsBoolean, ArgumentsNumber, ArgumentsString, } from "~/types/appData"; import { Modules } from "...
import * as express from 'express' import { Application, Request, RequestHandler, Response } from 'express' import { readFileSync } from 'fs' import { resolve } from 'path' import { Database, hash as sonolusHash, LocalizationText, localize, OptionName, OptionPlaceholder, ResourceT...
<reponame>KwintenP/devkit /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; import { drilldownNodes } from '../helpers/ast-utils'; ...
<filename>src/minecraft/internal/types.ts /** * Mojang API response, request, and generic types * credit to wiki.vg * @link https://wiki.vg */ import type { Player } from "./Player"; export module MxEvents { /** * This represents a Matrix user. * @type User * @prop {string} msid Full Matrix ID in the ...
/** @jsx jsx */ import { jsx } from "@emotion/core"; import { EditorToolbar, SelectableBlockWrapper } from "@magnit/components"; import { EPuzzleType, ETemplateType, IPuzzle, ISection, ITemplate } from "@magnit/entities"; import { GroupIcon, QuestionIcon, SectionIcon, TrashIcon } from "@magnit/icons"; import { EEditor...
import { createStore as createReduxStore, compose, Store, PreloadedState, applyMiddleware } from 'redux' import { createLogger } from 'redux-logger' import { isPlainObject, shallowEqual, forcePlainDataCheck, identity, isThenable } from './util' export { identity, shallowEqual, isThenable } export type { Store, Prel...
import { AnyObject, AuthGuardLocation, AuthGuardLocationResponse, CHANNELS } from "prostgles-types"; import { LocalParams } from "./DboBuilder"; import { DB, DbHandler, Prostgles } from "./Prostgles"; type AuthSocketSchema = { user?: AnyObject; register?: boolean; login?: boolean; logout?: boolean; ...
import clsx from 'clsx'; import Dashboard from 'components/Dashboard/Dashboard'; import { reaction } from 'mobx'; import { observer } from 'mobx-react-lite'; import { useStateAndLocalStorage } from 'persistence-hooks'; import React, { FC, useCallback, useEffect, useState } from 'react'; import ReactCountryFlag from 're...
// @ts-ignore: library file import import { Container, BooleanInput, Label, SliderInput, SelectInput, Panel, Button } from '@playcanvas/pcui/pcui-react'; // @ts-ignore: library file import import { BindingTwoWay, useObserverState } from '@playcanvas/pcui/pcui-binding'; import React, { useEffect, useState, useContext } ...
import * as fs from 'fs' import { EXCLUD_RANK_FILE_NAME_CODE_LINE, TMP_REPO_DIR, EXCLUD_RANK_FILE_CODE_LINE_EXTENSION, } from 'src/config' import gitPull from 'src/lib/git/gitpull' import gitClone from '../lib/git/gitclone' import * as dayjs from 'dayjs' import { exec } from 'child_process' import * as nodejieba ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {Dict, isPlainObject} from "@internal/typescript-helpers"; import {MarkupTagName} from "./types"; import {Path, URLPath, is...
<gh_stars>1-10 import * as log4js from 'log4js'; import * as fs from 'fs'; import * as util from 'util'; import { Configuration, Levels } from 'log4js'; import { isNullOrUndefined } from 'util'; let funcs: {[key: string]: (name: string , opts: any) => string} = { 'env': doEnv, 'args': doArgs, 'opts': doO...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
import dynamic from 'next/dynamic' import * as React from 'react' import { CSSProperties } from 'styled-components' import { Col } from '../components/content/col' import { ExerciseGroup } from '../components/content/exercises/exercise-group' import { ImageLink } from '../components/content/image-link' import { ImgCen...
<filename>src/extension/lib/client.ts // import axios, { AxiosResponse } from 'axios'; import * as child_process from 'child_process'; import { once } from 'events'; import { createInterface, Interface } from 'readline'; import * as vscode from 'vscode'; import { DothttpExecuteResponse } from '../../common/response'; i...
import { useState } from 'react'; import { Link } from 'react-router-dom'; import styles from './PathTreeItem.module.css'; import { sidePanelVisibilityChanged } from '../../store/sidePanelVisibleSlice'; import { useAppDispatch, useAppSelector } from '../../support/hooks'; import { isOnMobile } from '../../support/util...
<gh_stars>1-10 import { Grad } from "./Grad"; const grad3 = [ new Grad(1, 1, 0), new Grad(-1, 1, 0), new Grad(1, -1, 0), new Grad(-1, -1, 0), new Grad(1, 0, 1), new Grad(-1, 0, 1), new Grad(1, 0, -1), new Grad(-1, 0, -1), new Grad(0, 1, 1), new Grad(0, -1, 1), new Grad(0, 1,...
<reponame>jinseopim/kibana<filename>x-pack/legacy/plugins/security/server/lib/authentication/providers/kerberos.ts<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file ...
<reponame>CambodianCoder/pico-engine export interface Loc { start: number; end: number; } export declare type TokenType = "WHITESPACE" | "LINE-COMMENT" | "BLOCK-COMMENT" | "SYMBOL" | "NUMBER" | "STRING" | "REGEXP" | "CHEVRON-OPEN" | "CHEVRON-STRING" | "CHEVRON-BEESTING-OPEN" | "CHEVRON-BEESTING-CLOSE" | "CHEVRO...
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, Directive, ElementRef, HostListener, Input, OnDestroy, OnInit, Optional, Renderer2, forwardRef, } from '@angular/core'; import { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Val...
import { ClassConstructor, classToPlain, plainToClass } from 'class-transformer'; import _ = require('lodash'); // eslint-disable-next-line import/no-extraneous-dependencies import { Timestamp } from '@google-cloud/firestore/build/src/timestamp'; import { toRecord } from '../modules/commands/utils'; import { FirebaseS...
import * as React from 'react'; import NextLink from 'next/link'; import * as DS from '@modulz/design-system'; import { Link2Icon } from '@radix-ui/react-icons'; import { IdProvider } from '@radix-ui/react-id'; import { PropsTable } from './PropsTable'; import { KeyboardTable } from './KeyboardTable'; import { Preview ...
// tslint:disable:no-console import * as React from 'react'; import { PureComponent } from 'react'; import { profilecard as profilecardUtils, emoji, taskDecision, } from '@atlaskit/util-data-test'; import { CardEvent } from '@atlaskit/media-card'; import { CardSurroundings, ProviderFactory, ExtensionHandler...
/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { Component, Input, Output, EventEmitter, ElementRef, ViewEncapsulation, HostBinding, HostListener, OnInit } from '@angular/core...
<gh_stars>0 import { AbilityType } from '../src/scripts/abilities/abilityData'; import { ColorsOfMagic } from '../src/scripts/helpers/constants'; import { RandomItemOptions } from '../src/scripts/helpers/item'; import { QuestScripts } from '../src/scripts/helpers/quests'; export type NpcScriptStep = ScriptWait | Scrip...
/* eslint-disable @typescript-eslint/no-explicit-any */ import * as events from 'events'; import retry, { FailedAttemptError, AbortError } from 'p-retry'; import { Lock } from './lock'; import { OpenAbortedError, CloseError } from './errors'; import { Observable, Subscriber, Subscription, subscribe, AnyEvent } from './...
import {concatAudio} from "./AudioUtils.js"; import {concatByteArrays} from "teamten-ts-utils"; const SYNC_BYTE = 0x7F; /** * Generate one cycle of a sine wave. * @param length number of samples in the full cycle. * @return audio samples for one cycle. */ function generateCycle(length: number): Int16Array { ...
import _ from "lodash"; import * as util from "../../../util/util"; import * as test from "../../../util/test"; import chalk from "chalk"; import { log, logSolution, trace } from "../../../util/log"; import { performance } from "perf_hooks"; const YEAR = 2021; const DAY = 8; // solution path: /home/mark/development/p...
<gh_stars>0 // deno-lint-ignore-file no-explicit-any import { assert, assertEquals } from '../../deps/std.ts'; import { DB, PreparedQuery } from '../../deps/sqlite.ts'; import { isEqual } from '../../deps/lodash.ts'; import SQLiteClient from './clients/wasm-sqlite-client.ts'; import DynTableStore from '../../common/d...
<filename>test/contracts/staking/RewardCalculator.ts import chai from "chai"; import { ethers, waffle, network } from "hardhat"; import { solidity } from "ethereum-waffle"; import type { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; import type { TestRewardCalculator } from "../../../typechain"; import...
<gh_stars>0 import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; /** * Generated class for the GamePage page. * * See https://ionicframework.com/docs/components/#navigation for more info on * Ionic pages and navigation. */ @IonicPage() @Component({ sel...
<gh_stars>10-100 // Copyright 2020 Vircadia Contributors // // 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 requ...
/** * Copyright 2017-2020 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * 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/...
<reponame>nakaba-yono/vscode-language-japanese-novel //Original code is published by 8amjp/vsce-charactercount] https://github.com/8amjp/vsce-charactercount under MIT "use strict"; import * as path from 'path'; import { draftsObject } from './compile'; import * as TreeModel from 'tree-model'; import { window, Dispos...
<reponame>spacejack/mithril-knob<gh_stars>1-10 import * as m from 'mithril' export const DEFAULT_DISTANCE = 100 export const DEFAULT_MIN = 0 export const DEFAULT_MAX = 1 export const DEFAULT_STEP = 0 export const DEFAULT_AXIS = 'y' export interface Attrs { /** Minimum value (default 0) */ min?: number /** Maximum ...
import React, {useState, useEffect} from 'react'; import {useLoadMore} from '@umijs/hooks'; import type {FnParams} from '@umijs/hooks/es/useLoadMore'; import styles from './index.less' import {Input, message, Tabs, Spin, Empty, Form, DatePicker, Row, Image} from 'antd' import { QueryStaffsList, QueryChatSessions, ...
<reponame>Nexucis/kvsearch<gh_stars>0 // MIT License // // Copyright (c) 2021 <NAME> // // 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 th...
<gh_stars>1-10 import { IPartialTheme } from '@uifabric/styling'; const themes: ({ name: string } & IPartialTheme)[] = [ { name: 'Edge', palette: { themePrimary: '#3392ff', themeLighterAlt: '#02060a', themeLighter: '#081729', themeLight: '#0f2c4d', ...
/* ! * Tencent is pleased to support the open source community by making Tencent Server Web available. * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy...
import "@logseq/libs"; import { BlockEntity, BlockPageName, BlockUUID, ILSPluginUser, PageEntity, } from "@logseq/libs/dist/LSPlugin"; import { N, TempCache } from "./type"; import { schemaVersion } from "../../package.json"; import hotkeys from "hotkeys-js"; import { useCommandStore } from "@/stores/command"...
<reponame>fil0157/angular-colorful // Project import { RgbColor } from '../interfaces/rgb-color.interface'; import { HslColor } from '../interfaces/hsl-color.interface'; import { HsvColor } from '../interfaces/hsv-color.interface'; import { RgbaColor } from '../interfaces/rgba-color.interface'; import { HslaColor } fro...
/** * makecode APDS9930 Digital Proximity and Ambient Light Sensor package. * From microbit/micropython Chinese community. * http://www.micropython.org.cn */ const APDS9930_I2C_ADDRESS = 0x39 const APDS9930_ENABLE = 0x00 const APDS9930_ATIME = 0x01 const APDS9930_PTIME = 0x02 const APDS9930_WTIME = 0x03 const APDS...
<reponame>e9x/WebCord /* * Global.ts – non-Electron depending globally-used module declarations */ import { existsSync } from "fs"; import { getAppPath } from "./modules/electron"; import { resolve } from "path"; /** * Outputs a fancy log message in the (DevTools) console. * * @param msg Message to log in the c...
/* eslint-disable @typescript-eslint/no-shadow */ /* * @Description: * @Version: 1.0 * @Autor: <NAME> * @Date: 2021-11-28 10:47:10 * @LastEditors: <NAME> * @LastEditTime: 2022-04-28 17:41:39 */ import { Fragment, FunctionComponent, useCallback, useEffect, useState } from 'react' import { useDispatch, useSelector...
import axios, { AxiosInstance, AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse, } from 'axios' import * as debugWebAxios from './adapters/debugWebAxios' import { AsyncResponse, AxiosErrorWithRetriableRequestConfig, ConfigMetaData, ConnectionConfig, ErrorResponse, ExtendedAxiosInstance, Refr...
/* * Copyright (c) 2017 VMware Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * 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/LI...
<reponame>Harshil-Jani/Vita import { FunctionComponent, useCallback, useEffect, useRef } from 'react'; import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil'; import Peer from 'simple-peer'; import { MAX_BANDWIDTH, MIN_BANDWIDTH } from 'utils/settings'; import { transformSdp, blankVideo } from 'util...
import { renderBlock, renderToast } from './lib.js'; import { RentProviderPlaceId, RentSearchResult } from './rent-abstraction.js'; import { parseRentProviderPlaceId, stringifyRentProviderPlaceId, } from './rent-providers.js'; import { handleSearchForm, rentProviders, searchRequest, searchResults, searchR...
<reponame>varadero/http-fs import { EventEmitter } from 'events'; import { existsSync, readFileSync } from 'fs'; import { AddressInfo } from 'net'; import { EventName, HttpFsServer, IFileResolvedEventArgs, IRequestArrivedEventArgs, IResponseSent, IServerConfig } from './http-fs-server'; export class App { pr...
import invariant from 'invariant'; import isUUID from 'is-uuid'; import { omit, pick } from 'lodash'; import { IActivity, IActivityItem, IActivityModels, ILocations, ILogger, ISchedule, IWaitTime } from '../../types'; import { Success, upsert } from '../utils'; // Note: returning extId for jobs export co...
/* eslint-disable object-curly-newline */ import path from 'path'; import { addBrand } from './api/brand'; import { addCollection } from './api/collection'; import { addSection } from './api/section'; import { addStyle } from './api/style'; import { addImage } from './api/image'; import { addShoe } from './api/shoe'; i...
import React from 'react' import styled from 'styled-components' import { StatefulUIElement } from 'src/util/ui-logic' import Logic from './logic' import type { State, Event, Dependencies } from './types' import OnboardingBox from '../../components/onboarding-box' import { OVERVIEW_URL } from 'src/constants' import { ...
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input, NgZone, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import { BehaviorSubject, fromEvent, interval, Observable, Subject, Subscription } from 'rxjs'; import { debounceTime, map, t...
<reponame>tim-timmeh/kasamibot import {Manager, ManagerPriority} from "../managers/_Manager"; import {CreepService} from "../services/Creep"; import {RoomService} from "../services/Room"; import * as TeamHealer from "../roles/TeamHealer"; import * as TeamWrecker from "../roles/TeamWrecker"; import * as Wrecker from "...