text
stringlengths
3.3k
33k
import React, { useState, FunctionComponent as FC, PropsWithChildren, useEffect, CSSProperties, useMemo } from 'react' import { dateFormat, hoursFormat, numFormat, secondsFormat } from '../common/Utils' import { videoThumb, videoUrl } from '../common/Video' import { Spinner } from './Spinner' import { FlexCol, FlexRow,...
import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, EventEmitter, forwardRef, HostBinding, Input, OnDestroy, Output, QueryList, Renderer2, ViewChild, ViewEncapsulation } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlVa...
import { EventEmitter } from "events"; import Loader from "./Loader"; import native, { IViewConfig, viewConfig as config, enableOpenMenu, } from "../../components/MenuEx/native"; import Rectangle from "./Rectangle"; import Dragable from "./Dragable"; import Vector2 from "./Vector2"; import Sprite from "./Sprite";...
import { Hero } from '../contracts/enums/Hero' import { HeroClass } from '../contracts/enums/HeroClass' export const heroEnum = { [Hero.Orrin]: 0x00, [Hero.Valeska]: 0x01, [Hero.Edric]: 0x02, [Hero.Sylvia]: 0x03, [Hero.LordHaart]: 0x04, [Hero.Sorsha]: 0x05, [Hero.Christian]: 0x06, [Hero.Tyris]: 0x07, ...
<gh_stars>0 import WeAssert from "we-assert"; let we = WeAssert.build(); we.setHandler(function(message:string){ throw new Error("the following assertion failed: \"" + message + "\""); }); type ComparisonFunction = (i:number, j:number) => number; type IsEqualFunction = (left:any, right: any) => boolean; let bubbl...
/** * Zy. * 2020-08-20. * 小车. */ import { _decorator, Component, Node, Vec3, ParticleSystemComponent, BoxColliderComponent, RigidBodyComponent, ICollisionEvent } from 'cc'; import { AudioManager } from './AudioManager'; import { Constants } from './Constants'; import { CustomEventListener } from './CustomEventLis...
import { makeIdentifier, toBlock } from '../helpers'; import { TypeModel, TypeModelInterface, TypeModelProp, TypeModelFunction, TypeModelIndex, TypeModelFunctionParameter, WithTypeArgs, TypeModelIndexedAccess, TypeModelTypeParameter, WithTypeComments, TypeModelConditional, TypeModelMapped, Typ...
import * as d3 from 'd3'; import { TimeseriesGraphConfiguration, GraphPoint, Graph } from './types'; import { GraphDataSource } from './datasource'; declare const window: Window; declare global { interface Window { datasource: GraphDataSource; addEventListener(event: string, callback: (event: any) ...
import * as React from 'react'; import styled, { keyframes } from 'styled-components'; import { logout, getStarColor } from 'utils/auth'; import * as FontAwesome from 'react-fontawesome'; import { History } from 'history'; import SiteProvider from 'containers/SiteProvider'; import withTheme from 'containers/ThemeProvid...
<reponame>liobrdev/simplekanban import { IActivityLog, IBoardDetail, IColumn, IListBoard, IMembership, IMessage, ITask, IUser, } from '@/types'; export const checkActivityLog = (activityLog: any): IActivityLog => { if ( !!activityLog && !!activityLog.board && typeof activityLog.board === 'st...
<filename>src/components/ses/receiptRule.ts // @todo post-code-generation // // 1. Go through and remove all refs of object // 2. Look for enums in the documentation // 3. Flatten deep structures in the _min interface // 4. finish the constructor that maps the _min inputs to the _props outputs // 5. Look at the relatio...
import databaseConnect from '../databaseConnect' import { PermissionRow } from './types' import { getSqlConditionFromJSON } from './helpersUtilities' import { compileRowLevelPolicyRuleTypes } from './helpersConstants' import { permissionPolicyColumns } from '../postgresConnect' export const baseJWT = { aud: 'postgrap...
import { WAClient } from './WAClient' import { MessageType, MessageOptions, Mimetype, Presence, ChatModification, GroupSettingChange } from './Constants' import * as fs from 'fs' import * as assert from 'assert' import fetch from 'node-fetch' import { decodeMediaMessage, validateJIDForSending } from './Utils' import {...
<reponame>gamenew09/obby-game import Cue from "@rbxts/cue"; import { HttpService, Players, ServerStorage, Workspace } from "@rbxts/services"; import t from "@rbxts/t"; import { printOutInterface } from "shared/debugutil"; import { InstanceAs } from "shared/ensureutil"; import { copyInterface } from "shared/tableutil"; ...
<gh_stars>1-10 import { BehaviorFactory } from 'engine/types' import { thornGremlin } from 'game-content/scripts/creatures/thorn-gremlin' import { filter, findIndex, flow, keys, map, reduce } from 'lodash/fp' import { dartLizard, DefaultDartLizardSpeed } from '../game-content/scripts/creatures/dart-lizard' import { co...
/* eslint-disable linebreak-style */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable linebreak-style */ import { Chapter, ChapterDetails, Tag, HomeSection, LanguageCode, Manga, MangaStatus, MangaTile, //SearchRequest, TagSection } from 'paperback-extensio...
import React, { useState, useEffect } from 'react'; import { Paper, Grid, Typography, TextField, Divider, InputLabel, Icon, Button, FormControl, Select, MenuItem, FormControlLabel, Switch, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Co...
import {Name, RecordKey} from "@sagittal/general" import {CommaClassId} from "../../notation" import {Minas} from "./types" const EXTREME_NOTATION_MINAS: Record<RecordKey<CommaClassId>, Name<Minas>> = { [CommaClassId._1_u]: "0" as Name<Minas>, // (|//|) [CommaClassId._1_V_5_7_13_n]: "1" as Name...
<reponame>Bubz43/ep2e import { AddEffects, AppliedEffects, ReadonlyAppliedEffects, } from '@src/entities/applied-effects'; import { ActorType, ItemType } from '@src/entities/entity-types'; import type { EquippableItem, ItemProxy } from '@src/entities/item/item'; import type { PhysicalTech } from '@src/entities/it...
const colors = { text: '#000000', textLight: '#393939', textAlternate: '#FFFFFF', primary: '#225bb5', primaryLight: '#4287f5', primaryText: '#FFFFFF', secondary: '#22b5a1', secondaryLight: '#4bd6c4', secondaryText: '#FFFFFF', greyDark: '#50575D', grey: '#BDC0C7', greyLight: '#F6F6F6', erro...
interface AuthRequestBuilderProtocol { requestForSocketIDChannelName?(socketID: string, channelName: string): NSURLRequest; } declare var AuthRequestBuilderProtocol: { prototype: AuthRequestBuilderProtocol; }; interface Authorizer { fetchAuthValueWithSocketIDChannelNameCompletionHandler(socketID: string, channe...
<filename>nextgisweb_frontend/packages/ngw-connector/src/ngw-connector.ts import './polyfills'; import { RequestItemsParamsMap } from './types/RequestItemsParamsMap'; import { NgwConnectorOptions, Router, RequestItemsResponseMap, RequestOptions, Params, LoadingQueue, UserInfo, } from './interfaces'; export * f...
<reponame>WJ0417/intern-for-design /** Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
<filename>packages/wrangler/src/__tests__/tail.test.ts import { Headers, Request } from "undici"; import { mockAccountId, mockApiToken } from "./helpers/mock-account-id"; import { setMockResponse } from "./helpers/mock-cfetch"; import { mockConsoleMethods } from "./helpers/mock-console"; import { WS } from "./helpers/m...
import React from 'react'; import { numberToBinUint32LE } from '@bitauth/libauth'; import { BITBOX } from 'bitbox-sdk'; import { binToHex } from '@bitauth/libauth'; import { AgreementContract } from './agreement'; import { History } from './history'; import { getContractInfo, payerPkh, payeePk, expireAfter, d...
import * as React from "react"; import ImageGallery from "react-image-gallery"; import { match } from "react-router-dom"; import { BbButton } from "../../../../../building-blocks/bb-button"; import { BbBigText, BbContent, BbDivider, BbHeadingFour, BbHeadingThree, BbHeadingTwo, BbPage, BbParagraph, BbS...
import _ from "lodash"; import moment from "moment"; import FileSystem from "@/wrappers/file-system"; import { ActionTypes } from "../store/actions"; import { OurStore } from "../store/our-store"; import { UpdateNoteMutation, AttachNoteMediaMutation } from "../store/mutations"; import PortalInterface, { Ids, PatchPorta...
import * as xlsx from 'xlsx' import {IPart} from './types' import { promises } from 'fs'; export function fileSizeHumanReadable(fileSize: number) { if (fileSize < 1024) { return fileSize + 'B'; } else if (fileSize < 1024*1024) { return Math.round(fileSize/1024) + 'KB'; } else { return Math.round(file...
import React, { ReactElement, useState, useCallback, useEffect } from "react" import { Grid, Typography, List, ListItem, ListItemIcon, ListItemText, Box, makeStyles, Theme, createStyles, Backdrop, CircularProgress, } from "@material-ui/core" import GetAppIcon from "@material-ui/icons/GetApp" import JSZip fr...
<filename>src/docx-output/functions.ts import { Paragraph } from 'docx/build/file/paragraph/paragraph'; import { Moment, months } from 'moment'; import { toOrdinal } from 'number-to-words'; import { IndividualBeing, partyCount, PartyData, partyKeys, SE, } from '../data/parties/base'; import { gr...
import babel = require("@babel/core"); import { AssignmentExpression, ExpressionStatement, Program, Node, ImportDeclaration, MemberExpression, Statement, StringLiteral, VariableDeclaration, VariableDeclarator, ImportNamespaceSpecifier } from "@babel/types"; import { errors } from "./errors"; ...
<reponame>SmajeNz0/arq-wallet /* * Copyright (c) 2018, Gnock * Copyright (c) 2018, The Masari Project * * 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 copyr...
import React, {useContext, useRef, useState} from "react"; import { useTheme} from "@material-ui/core/styles"; import Divider from "@material-ui/core/Divider"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import ListItemIcon from "@material-ui/core/ListItemIcon"; import ...
<filename>src/ranges/rangesToACS.ts import { signalJoinCouplings } from '../signal/signalJoinCouplings'; import { signalMultiplicityPattern } from '../signal/signalMultiplicityPattern'; import type { NMRSignal1D } from '../signals/NMRSignal1D'; import type { NMRRange } from '../xy/NMRRange'; const globalOptions = { ...
<gh_stars>0 import { Wallet, providers, BigNumber } from 'ethers'; import { ClientTypes, ExtensionTypes, IdentityTypes, PaymentTypes, RequestLogicTypes, } from '@requestnetwork/types'; import Utils from '@requestnetwork/utils'; import { approveErc20ForSwapWithConversionIfNeeded } from '../../src/payment/swa...
// IMPORTS // ================================================================================================ import { Dao } from '@nova/core'; import { Model, ModelSelector, Query, SingleResultQuery, ListResultQuery, SessionOptions, Logger, TraceSource, QueryTextLogLevel } from '@nova/pg-dao'; import { Client } from ...
/* eslint-disable @typescript-eslint/no-use-before-define */ import React, { ReactElement, useEffect, useState, useRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { RootState } from '../store/reducers'; import { paperMain } from '../canvas'; import { addImageThunk, setHoverFillThunk, ...
import * as _ from 'lodash' import * as React from 'react' import { Button } from '@patternfly/react-core' //import { sortable } from '@patternfly/react-table'; import { Kebab, Dropdown, } from '@console/internal/components/utils' import { ModalTitle, ModalBody, ModalSubmitFooter, Table, TableRow, Tab...
<gh_stars>1-10 import { TimeOfDay } from '../../../../../google/type/timeofday'; import { Mysqlconfigset57 } from '../../../../../yandex/cloud/mdb/mysql/v1/config/mysql5_7'; import { Mysqlconfigset80 } from '../../../../../yandex/cloud/mdb/mysql/v1/config/mysql8_0'; import { MaintenanceWindow, MaintenanceOperation } fr...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
<reponame>briankostar/hackathon-backend<gh_stars>0 import { User } from "../../models/User"; import axios from "axios"; import express from "express"; import _ from "lodash"; import moment from "moment"; import passport, { Profile } from "passport"; import { Strategy as FacebookStrategy } from "passport-facebook"; imp...
import { default as classNames, default as clsx } from 'clsx' import { throttle } from 'lodash-es' import { observer } from 'mobx-react-lite' import { forwardRef, useCallback, useDeferredValue, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react' import { useAudio } from 'react-use'...
import type {Properties as CssProperties} from 'csstype' export {EdgeRender, EdgeRenderConfig, Views} from './handle' export {AssetConfig} from './assets' import {JsxChunk, classNameType} from './jsx' type AttributeReferrerPolicy = | '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when...
<reponame>marcofranssen/opensource-portal // // Copyright (c) Microsoft. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // 'use strict'; import moment from 'moment'; import querystring from 'querystring'; import { Repository } from './repository'; import { IPers...
import { S3Event, Context } from 'aws-lambda' import { Comprehend, S3, DynamoDB, SNS } from 'aws-sdk' import template from './template' const s3 = new S3({ apiVersion: '2006-03-01' }) const sns = new SNS() const comprehend = new Comprehend(); const documentClient = new DynamoDB.DocumentClient() type S3Params = { na...
import * as MarkdownIt from 'markdown-it'; declare namespace MarkdownItToc { export interface TocOptions { /** * Regular expression to detect TOC tag * ( `/\[toc\]/im` for match `[toc]` by default ). */ tocRegexp?: RegExp; /** * Tag for toc root element...
<reponame>Zhengqbbb/cz-git<gh_stars>10-100 /** * @description: inquirer plugin - Search Checkbox * @author: @Zhengqbbb (<EMAIL>) * @license MIT */ import Base from "inquirer/lib/prompts/base"; import Choices from "inquirer/lib/objects/choices"; import observe from "inquirer/lib/utils/events"; import Paginator from...
import lunr = require("lunr"); import * as abaplint from "@abaplint/core"; import * as fs from "fs"; import * as path from "path"; import { HTML } from "./html"; import { CLASOutput } from "./objects/clas_output"; import { DDLSOutput } from "./objects/ddls_output"; import { DOMAOutput } from "./objects/doma_output"; im...
import React, { forwardRef, useRef } from 'react' import MaterialTable, { Column, Options, MTableEditRow, MTableBodyRow, MTableAction, MTableEditField, MTableActions, MTablePagination } from 'material-table' import { NoteAdd as IconAdd, Done as IconDone, Delete as IconRemove,...
import { ErrorHandler, EventEmitter, Inject, Injectable, Type, } from '@angular/core'; import { ActivatedRouteSnapshot, Data, Event as AngularRouterEvent, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Params, Router, RouterEvent, RoutesRecognized, } from '@angular/ro...
import {observable, action, computed, autorun} from 'mobx'; import { notification } from 'antd'; import NeoHelper from './Tools/neoHelper'; class Store { constructor(){ this.init() setInterval(this.updateLastWSmsgSec,1000) } @observable isTeemoReady = false @observable isConnected = tr...
import uuidv1 from 'uuid/v1'; import time from 'thor-time'; import zlib from 'zlib'; import crypto from 'crypto'; import { Application, Middleware, MiddlewareFactory, MiddlewareOptions, SaveOptions, Session } from '../types'; import Context from '../context'; export type TimeCheck = { value: number; unit?: 'y' | 'M'...
<reponame>glassorg/ionscript import { Options } from "../Compiler"; import { traverse, skip, replace } from "@glas/traverse"; import Assembly from "../ast/Assembly"; import { ArrayExpression, AssignmentExpression, BinaryExpression, BlockStatement, CallExpression, ClassDeclaration, Declarator, DotExpression, Expression,...
<filename>server/utils/EmberMixerConnection.ts const DeviceTree = require('emberplus') //Utils: import { IMixerProtocol } from '../constants/MixerProtocolInterface'; import { IStore } from '../reducers/indexReducer'; import { SET_FADER_LEVEL, SET_CHANNEL_LABEL } from '../reducers/faderActions' export clas...
import { spawn, timeout } from "effection"; import { exec, Process } from "@effection/node"; import execa from "execa"; import stripAnsi from "strip-ansi"; import path from "path"; import { PkgVersion, PkgPublish } from "@covector/assemble"; type RunningCommand = { command?: string | Function; shouldRunCommand?: ...
import { dataform } from "@dataform/protos"; import { DistStyleTypes, ignoredProps, SortStyleTypes, TableTypes } from "./table"; const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*"); export function relativePath(path: string, base: string) { if (base.length == 0) { return pat...
<gh_stars>1-10 import WebMap = require("esri/WebMap"); import urlUtils = require("esri/core/urlUtils"); import MapView = require("esri/views/MapView"); import watchUtils = require("esri/core/watchUtils"); import promiseUtils = require("esri/core/promiseUtils"); import Graphic = require("esri/Graphic"); import Extent...
import { readFileSync } from 'fs'; import * as _ from 'lodash'; import * as ts from 'typescript'; const DEFAULTS = { path: 'handlers', http: { integration: 'lambda', cors: true, name: (name: string) => { return {method: name}; } }, s3: { name: (name: string) => { return {event: _.get({created: 's3:ObjectCr...
<filename>ViewDataViewer/wwwroot/js/app_ts/Telesoft.ts class OutputBuffer { private readonly buffer = new Array<string>(); Reset(): void { this.buffer.length = 0; } Write(b: number): void { this.buffer.push(String.fromCharCode(b)); } Length(): number { return this...
<filename>backend/src/services.ts import axios from "axios"; import { gcj02towgs84 } from "coordtransform"; import log4js from "log4js"; import { pg } from "."; import { request } from "./generated/core/request"; import { Class, RegistrationKey, StudentClassRole, StudentRole, StudentVisibility, } fr...
import React, { useEffect, useState } from 'react'; import { Helmet } from 'react-helmet'; import { connect } from 'react-redux'; import Cookies from 'js-cookie'; import styled from 'styled-components'; import analytic from '../../configs/analytics'; import priceFormat from '../../helpers/price'; import Main from '../....
import cheerio from "cheerio"; import fetch from "node-fetch"; /** * Get the current week and quarter. A display string is also provided. */ function getWeek(yearInput: string, month: string, day: string){ return new Promise(async (resolve, reject) => { let date; if (!yearInput || !month || !day)...
import { Dialog, Transition } from '@headlessui/react'; import React, { Fragment, useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import { useCreateHorseMutation } from '../../generated/graphql'; import { RootState } from '../../redux/reducers'; import { HORSE_CATEGORIES } from '../../uti...
<gh_stars>100-1000 import flatten from 'lodash/flatten'; import { IState as IGitHubState } from './github/reducer'; import { IState } from './reducer'; import selectors from './selectors'; import { convertSnippetToSolution } from '../../../utils'; import { localStorageKeys } from 'common/lib/constants'; import { SETTI...
import * as React from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import { matchPath } from 'react-router'; import { toast, ToastContainer } from 'react-toastify'; import { useSelector, useDispatch, useStore } from 'react-redux'; import { web3Accounts, web3Enable, web3Fr...
<reponame>schaze/node-homie<filename>src/util/colors.func.ts import { HomieRGBColor, HomieHSVColor, HomieXYBriColor } from "../model"; export const COLOR_STRING_MATCH = /(\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3})/; export function parseRGBColor(colorString: string | null | undefined): HomieRGBColor { if (!colorString) {...
import {WhiteboardToolbar} from "./whiteboardToolbar"; /** * A white paperboard on which user can draw */ export class Whiteboard { private color = "#4E4E4E"; private brush: Brush = Brush.Pencil; private brushSize: BrushSize = BrushSize.Medium; private canvas: HTMLCanvasElement = null; private p...
<filename>src/utils/lib.creep.ts /** * counts the number of creeps in the array and their composition * @pram {creeps} creeps to count * @returns {CreepCounts} */ export function countCreepsFromArray(creeps: Creep[]): CreepCounts { let count: CreepCounts = { creeps: 0, parts: [{ part: MOVE, count: 0 }] }; ...
import {AbilityIds, DestructableIds, PlayerAncients, UnitIds} from 'constants' import {CircleIndicator} from 'indicator' import {Angle} from 'lib/angle' import {damageEnemiesInArea} from 'lib/damage' import { getRandomDestructableInRange, killDestructablesInCircle, } from 'lib/destructables' import {flashEffect} fr...
/** * This module must not import anything globally not workin in web-mode! if needed, require it within the functions * * NOTE, we Ignore the infrastructure-scripts libraries when bundling, so these can be used ... * We also put fs to empty! If you need other libs, add them to `node: { fs: empty }` */ import { is...
/* * 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 except in compliance with the Elastic License. */ import { flatten, isObject, mapValues } from 'lodash'; import { RecursiveRead...
import { useNavigation } from '@react-navigation/core'; import type { StackNavigationProp } from '@react-navigation/stack'; import type { ParamListBase } from '@react-navigation/native'; import React, { useContext, useEffect, useRef, useState } from 'react'; import { Image, ImageBackground, ScrollView, StyleShe...
import _ from 'lodash' import { IStepConfig, IStepExecution, IExecutionResult, IExecutionHelper, IStepOption, IStepController, IControllerResult, IControllerHelper, IGlobalOption, IStepRecord, IStepResult, } from '../../typings' interface IStepIndex { [key: string]: number } interface IStepCac...
<filename>meteor/lib/constants/casparcg.ts export enum Transition { MIX = 'MIX', CUT = 'CUT', PUSH = 'PUSH', WIPE = 'WIPE', SLIDE = 'SLIDE' } export enum Ease { LINEAR = 'LINEAR', NONE = 'NONE', EASEINBACK = 'EASEINBACK', EASEINBOUNCE = 'EASEINBOUNCE', EASEINCIRC = 'EASEINCIRC', EASEINCUBIC = 'EASEINCUBIC'...
<gh_stars>1-10 export var menus_one: any = { 'home':{caption: "home", icon: 'img/Icon_Home_Available.png',iconhover:'img/Icon_Home_Selected.png', destination: 'home'}, 'login':{caption: "login", destination: "",styleclass:'button_style_sma', icon: "img/loginout_icon_unselected.png"}, 'betw':{ caption: "", ...
import { mat } from '../matrix/matrix'; //Source code from: https://github.com/stardisblue/svdjs/blob/master/src/index.ts //Author: stardisblue class SVDresult { q: mat; U: mat; V: mat; constructor(q_: mat, U_: mat, V_: mat) { this.q = q_; this.U = U_; this.V = V_; } } function SVD(A: ma...
<filename>src/mayhem/_debug/ui/dom/events/KeyboardManager.ts import domUtil = require('../util'); import has = require('../../../has'); import lang = require('dojo/_base/lang'); import util = require('../../../util'); interface Dom3KeyboardEvent extends KeyboardEvent { // TODO: This is in DOM3 drafts but not implemen...
<filename>src/qldb/Util.ts /* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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 ...
import * as faker from "faker" import { getPeople, PersonInterface } from "../support/index" describe("People", () => { before(() => { cy.login(); doCleanUp(); }) beforeEach(() => { cy.login(); }); create(); search(); cancelAndRemove(); edit(); image() mergePerson(); changeAddressCu...
<reponame>jinweihan2021/bot-wechaty /** * Created by mawei on 2017/5/29. */ /*前4位,即0在这一年是润年时才有意义,它代表这年润月的大小月,为1则润大月,为0则润小月。 中间12位,即4bd,每位代表一个月,为1则为大月,为0则为小月。 最后4位,即8,代表这一年的润月月份,为0则不润。首4位要与末4位搭配使用。 */ const lunarInfo = [ 0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, ...
<gh_stars>10-100 import type { Lang } from "../.internal/Lang"; // GALICIAN const lang: Lang = { "AD": "Andorra", "AE": "Emiratos Árabes Unidos", "AF": "Afganistán", "AG": "Antiga e Barbuda", "AI": "Anguila", "AL": "Albania", "AM": "Armenia", "AO": "Angola", "AQ": "Antártida", "AR": "Arxentina", "AS": "Samo...
import React, { useState, useEffect, ChangeEvent } from 'react' import CoverIcon from '@assets/images/groups-cover-icon.svg' import { connect } from 'react-redux' import Actions from '@store/actions' import { ApiTypes, StoreTypes } from 'src/types' import { Link, RouteComponentProps } from 'react-router-dom' import sel...
<filename>src/utils/formatTime.ts /** * 时间日期转换 * @param date 当前时间,new Date() 格式 * @param format 需要转换的时间格式字符串 * @description format 字符串随意,如 `YYYY-mm、YYYY-mm-dd` * @description format 季度:"YYYY-mm-dd HH:MM:SS QQQQ" * @description format 星期:"YYYY-mm-dd HH:MM:SS WWW" * @description format 几周:"YYYY-mm-dd HH:MM:SS ZZZ"...
import * as asg from '@aws-cdk/aws-autoscaling' import * as cdk from '@aws-cdk/core'; import * as ec2 from '@aws-cdk/aws-ec2'; import * as iam from '@aws-cdk/aws-iam'; import * as lambda from '@aws-cdk/aws-lambda'; import * as route53 from '@aws-cdk/aws-route53'; import * as s3deploy from '@aws-cdk/aws-s3-deployment'; ...
<filename>src/runtime/testing/slot-test-observer.ts /** * @license * Copyright (c) 2017 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional ...
<gh_stars>0 import Triangle, {CLASSIFY_BACK, CLASSIFY_COPLANAR, CLASSIFY_FRONT, CLASSIFY_SPANNING} from './Triangle'; import {isConvexSet} from './utils'; import {Box3, Face3, Geometry, Matrix4, Vector3} from 'three'; const MINIMUM_RELATION = 0.8; // 0 -> 1 const MINIMUM_RELATION_SCALE = 10; // should always be >2 /*...
<gh_stars>10-100 // 采用受 Mithril 启发的基于 jQuery 实现的极简框架 https://github.com/ahui2016/mj.js import {mjElement, mjComponent, m, cc, span, appendToList} from './mj.js'; import * as util from './util.js'; let wordID = util.getUrlParam('id'); const Loading = util.CreateLoading('center'); const Alerts = util.CreateAlerts(); c...
<gh_stars>0 import { excludeDeclarationFiles, TypedRule } from '@fimbul/ymir'; import * as ts from 'typescript'; import { lateBoundPropertyNames, propertiesOfType } from '../utils'; import { isThisParameter, isTypeParameter, isTypeReference, isIntersectionType, isFunctionScopeBoundary, isMethodD...
import { NumberArray } from "./shared"; const FFT_SMOOTHING_CONSTANT = 0.5; // higher values make the bars less jumpy const FFT_BAR_RELATIVE_WIDTH = 0.9; const FFT_BAR_COLOR = "rgba(255, 255, 255, 0.1)"; const FFT_BAR_BIN_POWER = 1.3; // each FFT bar covers this factor more frequency spectrum than the last, so 2 means...
import { Request, Response } from 'express' import { existsSync, readdirSync, readFileSync } from 'fs' import { pages } from '../../Config' import AccountManager from '../managers/AccountManager' import AvailableParamsObject from '../interfaces/AvailableParamsObject' import { DEFAULT_PORT } from '../structur...
import { EventEmitter } from 'events' import { join } from 'path' import { throttle } from 'throttle-debounce' import { screen } from 'electron' import { BrowserWindow, Rectangle, BrowserWindowConstructorOptions } from 'electron' const lib: AddonExports = require('node-gyp-build')(join(__dirname, '..')) interface Addo...
<filename>src/quest_editor/model/QuestEventDagModel.ts import { QuestEventModel } from "./QuestEventModel"; import { defined, require_non_negative_integer } from "../../core/util"; import { ChangeEvent, Observable } from "../../core/observable/Observable"; import { Disposable } from "../../core/observable/Disposable"; ...
// @ts-nocheck interface Obj { points: Point[]; ne?: Obj; nw?: Obj; se?: Obj; sw?: Obj; capacity?: number; x?: number; y?: number; w?: number; h?: number; length?: number; toJSON?(isChild: boolean): Obj; insert?(point: Point): boolean; forEach?(fn: Function): any; query?(ra...
import React, { useState, useEffect, useCallback } from 'react' import { chakra, Button, Flex, Input, Box, Stack, FormControl, FormLabel, Text, Select, } from '@chakra-ui/react' import { v1 as uuidv1 } from 'uuid' import QRCode from 'qrcode' import { chunk, b64URL } from '../utils' import { create as mkIPFS } from ...
<gh_stars>1-10 import { AssetsApiParams, OfferApiParams, TransferApiParams } from 'atomicassets/build/API/Explorer/Params'; import { ILog } from 'atomicassets/build/API/Explorer/Objects'; import ApiError from '../../Errors/ApiError'; import { AuctionApiParams, BaseAssetFilterParams, BuyofferApiParams, SaleApiParams } ...
<gh_stars>10-100 import { DataTypeFieldConfig, FieldType, DataTypeFields, ReadonlyDataTypeFields, GeoPoint, GeoBoundary } from '@terascope/types'; import { createHash } from 'crypto'; import { primitiveToString, toString } from './strings'; import { isIPRangeOrThrow, isIPOrThrow } from './ip'; import { toEp...
<reponame>iccicci/sedentary import YAML from "yamljs"; import { promises } from "fs"; const { readFile, writeFile } = promises; const { VERSION, npm_package_name } = process.env as { VERSION: string; npm_package_name: "sedentary" | "sedentary-pg" }; const common: string[] = ["*.tgz", "coverage", "node_modules", "tes...
import * as React from 'react' import { ColorValue, View, ViewStyle, ImageSourcePropType, StyleSheet, } from 'react-native' import { PanGestureHandler } from 'react-native-gesture-handler' import Animated, { runOnJS, useAnimatedGestureHandler, useAnimatedStyle, useSharedValue, } from 'react-native-rea...
<reponame>sgapps-de/pure-publish import { Command, CommandOptions } from 'commander'; import path from 'path'; import { execSync } from 'child_process'; import fsp from 'fs/promises'; import fs from 'fs'; import dot from 'dot-object'; import { processTar } from './process'; interface ConfigObject { [ke...
<filename>libs/ng-framework/src/lib/helpers/ng-helpers.ts import { Router, RoutesRecognized } from '@angular/router'; import { Package, LocalObject, toLocalObject, MenuItem, SIDEBAR } from '@skysmack/framework'; import { map, switchMap, filter, take, pairwise } from 'rxjs/operators'; import { combineLatest, of, Observa...