text
stringlengths
3.08k
15.5k
import * as eta from 'https://deno.land/x/eta/mod.ts'; import type { ServerResponse } from 'https://deno.land/x/fcgi/mod.ts'; let mods = {} // Find out how to post message back and forth?? //console.log('fetching', await fetch("https://deno.land/")) console.log('worker initialized') const SESSION_EXPIRATION = 60 // m...
import React from 'react' import Head from 'next/head' import Link from 'next/link' import ReactHtmlParser from 'react-html-parser' import { parseISO } from 'date-fns' import { BlogPosting } from 'schema-dts' import { jsonLdScriptProps } from 'react-schemaorg' import Header from '../../components/Header' import Footer ...
import React, { useState, useRef } from 'react' import { useHistory } from 'react-router-dom' import { useTranslation } from 'react-i18next' import Auth from '@aws-amplify/auth' import { Formik, Form, Field } from 'formik' import * as Yup from 'yup' import { Grid, Button, CircularProgress, Divider, Typograph...
import { Color } from '../../../protocol/color'; import { assert } from '../../../util/assert'; import { AnnotationRenderer } from '../annotation/annotationrenderer'; import { Annotator } from '../annotation/annotator'; import { Board } from '../board/board'; import { RefreshableView } from '../common/refreshableview';...
import { Flag } from "./baseDatastore"; const AUTH_STATE_KEY = "authState"; export type AuthState = { token: string; user: MaishaSignInResponse; }; export type MaishaSignInResponse = { email: string; name: string; phone_number: string; user_id: string; username: string; error?: string; }; export type...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
import {Image} from "./Admin"; import {GalleryImages, requestFreshlyPaintedPicture, requestGalleryImages} from "../io/images"; import {useEffect, useState} from "react"; import {baseUrl} from "../App"; import useInterval from "../hooks/useInterval"; import {User} from "../hooks/useUser"; import {Invoice, updateInvoice}...
import { AxiosResponse } from "axios"; import React from "react"; import { useDispatch } from "react-redux"; import { RouteComponentProps } from "react-router"; import CompoundQuestion from "../../components/CompoundQuestion"; import GuessQuestion from "../../components/GuessQuestion"; import Loading from "../../compon...
<reponame>navikt/veientilarbeid<gh_stars>1-10 import { DinSituasjonSvar, FremtidigSituasjonSvar } from '../ducks/brukerregistrering'; import { InnloggingsNiva } from '../ducks/autentisering'; import { plussDager } from '../utils/date-utils'; import { POAGruppe } from '../utils/get-poa-group'; import { EksperimentId } f...
<gh_stars>0 import { ChildProcess, spawn, spawnSync } from "child_process"; import esbuild, { BuildOptions } from "esbuild"; import { argv, argv0, cwd, env, exit, stdin } from "process"; import { name, version as versionText } from "../package.json"; import { EsbuildDevExternalFlags, EsbuildDevFlags, EsbuildFlags...
/** * Starts an express-server on `localhost` that serves the client-web app on the port specified in * the environment variables or 3000 (default) */ import { parseConfiguration } from './infra-comp-utils/configuration-lib'; import { deploySls, s3sync, getAccountIDUsingAccessKey, createSlsYaml, runSlsCmd } from '....
// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import { connect } from 'react-redux'; import { LogType } from 'cvat-logger'; import { Canvas } from 'cvat-canvas-wrapper'; import { ActiveControl, CombinedState, ColorBy } from 'reducers/interfaces'; import { co...
/* * File Created: Wednesday, 14th November 2018 3:15:26 pm * Author: xyy94813 (<EMAIL>) * ----- * Last Modified: Monday, 19th November 2018 7:14:05 pm * Modified By: xyy94813 (<EMAIL>>) */ import AliOSSProcessingUtil, { IOperationOption } from './AliOSSProcessingUtil'; export enum ImageOperation { RESIZE = 'r...
<reponame>gquesnot/n8n-nodes-sendinblue<filename>dist/nodes/Sendinblue/Sendinblue.node.ts<gh_stars>0 import {IExecuteFunctions,} from 'n8n-core'; import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription, IHookFunctions, IExecuteSingleFunctions, } fr...
import * as React from 'react'; import { LangContainer } from '../../shared/lang'; import { IGameLibraryFileItem } from '../../shared/library/interfaces'; import { WithPreferencesProps } from '../containers/withPreferences'; import { CentralState } from '../interfaces'; import { IGamePlaylist } from '../playlist/interf...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { ComboBox, IComboBox, IComboBoxOption, ITimePickerProps, ITimeRange, KeyCodes, } from "@fluentui/react"; import * as React from "react"; import { TimeConstants, addMinutes, formatTimeString, ceilMinuteToIncrement, } ...
import type { DetailedUser } from './types' import type { PrismaClient, Team, User } from '@prisma/client' import type { ValidateFunction } from 'ajv' import type { JTDDataType } from 'ajv/dist/core' import type Conf from 'conf' import type { Server, Socket } from 'socket.io' import type TypedEventEmitter from 'typed-e...
<gh_stars>0 const core = require('@actions/core') const github = require('@actions/github') const io = require('@actions/io') const tc = require('@actions/tool-cache') const fs = require('fs') const path = require('path') const dotenv = require('dotenv') const {v4: uuidv4} = require('uuid') /** * Sets env variable fo...
import { colors, stringWidth, StringWriter, truncate } from "./deps.ts"; import { clearBuffer, enterBuffer, exitBuffer, loadCurosr, moveCursor, saveCurosr, } from "./screen.ts"; import { KeyCode, keypress } from "./keypress.ts"; export interface IConsole { write(p: Uint8Array): Promise<void>; size(): {...
import React from 'react'; import "./tableTagConfig.scss"; import { PrimaryButton, FontIcon, DefaultButton } from "@fluentui/react"; import { getPrimaryGreenTheme, getPrimaryBlueTheme } from '../../../../common/themes'; import { FieldFormat, FieldType, TagInputMode, IRegion, ITableTag, ITableRegion, TableElements, ITab...
<gh_stars>1-10 import { __DEV__, scheduleEffect } from '../core/env' import { ActiveHook, callEffect, outerHookState } from '../core/OuterHookState' import { createPromisedValue, isPromiseLike, PromisedValue, } from '../core/promisedValue' import { Root, Subscription, SubscriptionTypes as _SubscriptionTypes...
import React, {useState} from "react"; import SelectedFabric from "./SelectedFabric"; import ArrowImage from "../../images/ArrowShape.svg"; import "./index.scss"; import { ProductsListNew_categories, // ProductsListNew_categories_edges_node_products, // ProductsListNew_categories_edges_node_products_ed...
<reponame>FlorianGrimm/UpToDocu<filename>src/UpToDocuVisualizationClient/App/libs/dependingState/src/DSUIBinder.ts import type React from "react"; import type { DSUIProps } from "./types"; export type DSUIViewStateVersion< Key extends string = "stateVersion" > = { [K in Key]: number; } export type...
<gh_stars>0 import { Component, ViewChild } from "@angular/core"; import { Content, NavController, NavParams, Events, Platform, PopoverController } from "ionic-angular"; import { StatusBar } from '@ionic-native/status-bar'; import { Restaurant } from "../../models/restaurant.model"; import Tools from "../../tools/tools...
import axios from "axios"; import { Formik } from "formik"; import { DateTime } from "luxon"; import React, { useEffect, useState } from "react"; import Card from "react-bootstrap/Card"; import Form from "react-bootstrap/Form"; import Tabs from "react-bootstrap/Tabs"; import Tab from "react-bootstrap/Tab"; import Conta...
import { dirname, posix, relative, resolve, sep } from 'path'; import type polka from 'polka'; import type { PartialResolvedId, ResolveIdResult, SourceDescription, } from 'rollup'; import type { Plugin } from '../plugin'; import { createPluginContainer } from '../rollup-plugin-container'; import { promises as fs ...
import Taro, { Component } from "@tarojs/taro"; import { View, Image, Text, Button } from "@tarojs/components"; import "./index.less"; import { orderInformation } from "./service"; var moment = require("moment"); moment.locale("zh-cn"); interface IState { query: { data?: any; }; id: number; imageUrl: strin...
export type Pair = { [key: string]: string; }; export type SlotType = { [key: string]: string[][]; }; export const fleets: { MAIN: string[]; VANGUARD: string[]; SUBS: string[] } = { MAIN: [ 'Battlecruiser', 'Battleship', 'Light Aircraft Carrier', 'Aircraft Carrier', 'Monitor', 'Repair', ...
/**** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *** * ** _ _ _ _ * * _ __ ___ __| | ___ | | ___ __ __ _| | _____ _ __ __ _ _ __ (_)* ...
import { SwitchSize, SwitchState, SwitchValue } from './types' import { FormLabelContextProps } from '../FormLabel/types' import * as React from 'react' import getValidProps from '@helpscout/react-utils/dist/getValidProps' import FormLabelContext from '../FormLabel/Context' import VisuallyHidden from '../VisuallyHidden...
<reponame>Energinet-DataHub/greenforce-frontend<filename>libs/dh/metering-point/feature-tabs/src/lib/processes-tab-content/processes-table/dh-processes-table.component.spec.ts /** * @license * Copyright 2020 Energinet DataHub A/S * * Licensed under the Apache License, Version 2.0 (the "License2"); * you may not us...
import {AbstractLineParser} from './AbstractLineParser'; import {GameState, Card} from '../GameState'; import {secretToClass} from '../data/secrets'; import {questMap} from '../data/quests'; import cards from '../data/cards'; export type Team = 'FRIENDLY' | 'OPPOSING'; interface Parts { cardName: string; entityId: ...
import { Action, Field } from '@siren-js/core'; import { isRecord, UnknownRecord } from '@siren-js/core/dist/util/type-guard'; import { File } from '@web-std/file'; import { Entry, EntryValue } from './entry'; export { Entry, EntryValue } from './entry'; export type EntryList = Entry[]; /** * Converts an ...
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
<reponame>itfinally/Jcdt<filename>src/core/stateMachine.ts import { CoreUtils } from "./lang"; import { HashMap, Map } from "../util/map"; import { IllegalStateException } from "./exception"; interface Resolve { status( status: string ): Resolve; resolve( result: any ): Resolve; } interface StateRule { [event:...
<gh_stars>1-10 import { ForgoRenderArgs, ForgoComponent, ForgoElementProps, rerender, getForgoState, NodeAttachedComponentState, NodeAttachedState, } from "forgo"; export type ForgoProxyState = {}; type StateMapEntry<TProps extends ForgoElementProps> = { component: ForgoComponent<TProps>; args: Forg...
import 'mocha'; import { expect } from 'chai'; import { TeradataConnection } from '../../src/teradata-connection'; import { TeradataCursor } from '../../src/teradata-cursor'; import { TeradataLogging } from '../../src/teradata-logging'; import { connParams } from '../configurations'; let teradataConnection: TeradataCo...
<reponame>bluayer/eodiro-server import puppeteer, { Page } from 'puppeteer' import EodiroMailer from '../eodiro-mailer' import { JSDOM } from 'jsdom' import { PendingXHR } from 'pending-xhr-puppeteer' import Push from '../push' import appRoot from 'app-root-path' import chalk from 'chalk' import config from '@/config'...
<filename>src/lib/airPurifier.test.ts // Reflect-polyfill laden // tslint:disable-next-line:no-var-requires require("reflect-metadata"); // tslint:disable:no-unused-expression import { assert, expect } from "chai"; import { spy, stub } from "sinon"; import { entries } from "alcalzone-shared/objects"; import { AirPur...
import * as functions from "firebase-functions"; import * as nodemailer from "nodemailer"; import * as mailgun from "../../util/mailgun"; import * as dl from "../../util/dynamiclink"; import * as handlebars from "handlebars"; import * as fs from "fs"; import * as c from "../../util/constants"; import admin from "fireba...
<reponame>ClementNerma/ReShell import { SourceFilesServer } from './files-server' import { CodeSection } from './parsed' import { StrView } from './strview' import { computeCodeSectionEnd, matchUnion } from './utils' export type Diagnostic = { error: DiagnosticExtract; also: DiagnosticExtract[]; level: DiagnosticLevel...
<gh_stars>1-10 /* Copyright 2018 Balena Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
import * as React from 'react'; import {Component} from 'react'; export class InfiniteScroll extends Component<any,any> { public startY = 0; public currentY = 0; public dragging = false; public maxPullDownDistance = 0; throttledOnScrollListener:Function; el:any; _pullDown:any; _infScrol...
declare module 'adapterjs' { export = AdapterJS; } declare module 'adapterjs/publish/adapter.min' { export = AdapterJS; } declare const AdapterJS: AdapterJsStatic; // !!!! WARNING: DO NOT OVERRIDE THIS FUNCTION. !!! // This function will be called when plugin is ready. It sends necessary // details to the ...
<reponame>maksonlee/multitest_transport /** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
import { ipcMain, IpcMainEvent } from "electron" import * as path from "path" import * as fs from "fs" import { spawn } from "child_process" import { App } from ".." import { gte } from "semver" import { Request } from "aurora-api" import { StorageHelper } from "../helpers/StorageHelper" import { HttpHelper } from ".....
// SEO Component // ref: https://www. // ___________________________________________________________________ import React from 'react' import Helmet from 'react-helmet' import { useStaticQuery, graphql } from 'gatsby' import useSiteSettings from '../../hooks/useSiteSettings' import Facebook from './faceb...
// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import Card from '@material-ui/core/Card'; import Collapse from '@material-ui/core/Collapse'; import { createStyles, Theme, withStyles, WithSty...
import * as React from 'react'; import { TextField as MuiTextField, Theme, InputAdornment, SelectProps as MuiSelectProps, Grid, } from '@material-ui/core'; import { makeStyles } from '@material-ui/styles'; export type TextFieldValue = string | number; export type TextFieldType = | 'color' | 'date' | '...
<gh_stars>0 /// <summary> /// Bugs often appear in async code when stuff gets disposed, but async operations don't get canceled. /// This Async mixin solves these issues by tying async code to the lifetime of a disposable object. /// When the instance of the target class is disposed, all async operations spawned by the...
<reponame>Viber/ngx-viber import { Builder, BuilderConfiguration, BuilderContext, BuildEvent, } from '@angular-devkit/architect'; import { getSystemPath } from '@angular-devkit/core'; import { bindNodeCallback, EMPTY, forkJoin, from, merge, Observable, of, throwError, } from 'rxjs'; import { catchError, delayWhen, filt...
<reponame>TechLauncher-its-personal/almond-cloud<filename>src/routes/developer_mturk.ts // -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Almond // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2....
import request from 'superagent'; import cheerio from 'cheerio'; import Base from './base'; const BOSS_HOST = 'https://www.zhipin.com'; const Cookie = '__zp__pub__=; lastCity=101210100; __c=1588772526; __g=-; __l=l=%2Fwww.zhipin.com%2Fhangzhou%2F&r=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DZ2w0QokIRHUZWSUlW3KQCN8jrGO...
<filename>web/src/hooks.ts import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"; import { API, APIType, DemoAPI, DeviceId, DeviceInfo, DevicePacket, TauriAPI, WebSerialAPI, WebSocketAPI, } from "./api"; import { DataBuffer } from "./plotting"; const buildApi = (a...
import { Injectable, NotImplementedException, BadRequestException, NotFoundException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { AWS_CONFIG } from 'src/config/aws.configuration'; import * as AWS from 'aws-sdk'; import { Slugify } from 'src/uti...
<reponame>composablesys/collabs import { InitToken, Message, MessageMeta, int64AsNumber, Optional, CPrimitive, CollabEvent, CollabEventsRecord, PositionedList, } from "@collabs/core"; import { CTextMessage, CTextSave } from "../../generated/proto_compiled"; import { ListPosition, ListPositionSourc...
import React, { useState } from "react"; import FormFeedback from "reactstrap/lib/FormFeedback"; import { BusyButton } from "../../busy-button"; import { Field } from "../../field"; import { history } from "../../history"; import { cacheMedication } from "../../hooks/useMedications"; import { useSubmitData } from "../....
<filename>src/index.ts console.log('\x1b[36m%s\x1b[0m', `[${new Date()}] STARTING BOT`); import dotenv from 'dotenv'; dotenv.config(); import cron from 'node-cron'; import fetch from 'node-fetch'; import {Logger} from 'telegram/extensions'; import {TelegramClient} from 'telegram'; import {StringSession} from 'telegram/...
<filename>src/responder/Announcer.ts import assert from "assert"; import createDebug from "debug"; import { CiaoService, ServiceState } from "../CiaoService"; import { DNSPacket } from "../coder/DNSPacket"; import { ResourceRecord } from "../coder/ResourceRecord"; import { MDNSServer, SendCallback } from "../MDNSServer...
import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; import { AfterViewInit, Component, ComponentFactoryResolver, Directive, forwardRef, Inject, Injectable, Injector, OnInit, ViewChild, ViewContainerRef } from '@angular/core'; import { Observa...
import { ActionFunction, Form, Link, LinksFunction, MetaFunction, useActionData, useSearchParams } from 'remix'; import { db } from '~/services/db.server'; import { createUserSession, login, register } from '~/services/session.server'; import stylesUrl from '~/styles/login.css'; import { buildLinks, buil...
import * as fs from 'fs'; import * as path from 'path'; import { default as mkdirp } from 'mkdirp'; import { parse } from 'json2csv'; import * as htmlToText from 'html-to-text'; import { Feature, FeatureCollection } from 'geojson'; import { debug, downloadAsset } from './utils'; type DownloadArgs = { force: boole...
import { Waku } from 'js-waku' import { WakuMessage } from 'js-waku' import { BigNumber } from 'ethers' import { Web3Provider } from '@ethersproject/providers' import { Contract } from '@ethersproject/contracts' import { ERC20 } from '../abi' import { createWaku } from '../utils/createWaku' import { WakuMessagesSetup }...
<gh_stars>1-10 import path from 'path'; import { flags } from '@oclif/command'; import chalk from 'chalk'; import cli from 'cli-ux'; import { Directory, FsNode, PathSorters } from '../../fs-tree'; import { AuxiliaryMatch } from '../../matcher/AuxiliaryMatch'; import { FilterMatch } from '../../matcher/FilterMatch'; i...
<filename>functions/src/storage.ts import * as functions from 'firebase-functions'; import * as util from "util"; import { AppModel, AppVersion, Artifact, CollectionName, JobTask, LogsModel, TestModel, TestResult } from "pandalab-commons"; import {TestLog} from "../../commons/src/models"...
<gh_stars>10-100 /** * Copyright (C) 2021 Alibaba Group Holding Limited * All rights reserved. */ import { Mesh } from '@gs.i/frontend-sdk' import { deepCloneMesh } from './utils' import { Marker } from './Marker' import { PolarisGSI, StandardLayer, StandardLayerProps } from '@polaris.gl/gsi' import { CoordV2, Pick...
<gh_stars>10-100 /* 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 t...
<reponame>marcuswestin/js.ui<gh_stars>1-10 import React from 'react' import * as RN from 'react-native' import { makeReactiveUI, makeStoreReactive, observeReactiveStore } from './reactive' import deepMerge from './src/deep-merge' import { processViewArgs, TextValue, View } from './src/js.ui-core' import { Alpha, Border...
<gh_stars>1-10 import _ from "lodash"; const unified = require("unified"); const markdown = require("remark-parse"); const gfm = require("remark-gfm"); const zwitch = require("zwitch"); type HandlerFunc = (tree: unknown, dunno: null, context: Context) => void; type ExitFunc = () => void; type EnterFunc = (name: str...
import React, { FunctionComponent, useEffect, useState, useImperativeHandle, forwardRef, memo, } from 'react'; import { Skeleton, Tooltip } from 'antd'; import clsx from 'clsx'; import { useTranslation } from 'react-i18next'; import { Account } from 'background/service/preference'; import { ChainWithBalance...
<filename>spreads/src/test/stats-range.test.ts /* eslint-disable jest/prefer-to-contain */ import {Stats} from '../stats'; import {StatsRange} from '../stats-range'; import {Spread} from '../spread'; const RANGE = new StatsRange({ min: {hp: 360, atk: 367, def: 250, spa: 203, spd: 235, spe: 180}, max: {hp: 375, atk...
<reponame>things-scene/scene-components<gh_stars>0 /* * Copyright © HatioLab Inc. All rights reserved. */ import '@operato/data-grist' import { Component, ComponentNature, error, HTMLOverlayElement, Properties } from '@hatiolab/things-scene' import { DataGrist } from '@operato/data-grist' import { FetchOption, Gris...
<filename>web/youfoos/src/app/home/profile/components/profile-stats/profile-stats.component.ts import { Component, Input, AfterViewInit } from '@angular/core'; import { Router } from '@angular/router'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { StatsService } from '../../../../_s...
import React, { Component, createRef, MouseEvent, ReactNode, StatelessComponent, } from 'react' import Link from 'react-router/lib/Link' import styled, { css } from 'styled-components' import { array, isEmpty } from 'fp-ts/lib/Array' import { none, some } from 'fp-ts/lib/Option' import { Colors, ellipsis...
// Copyright (C) 2021 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
/* eslint-disable @typescript-eslint/no-base-to-string */ import StatusUpdater from '@tmware/status-rotate' import * as appRootPath from 'app-root-path' import { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } from 'discord-akairo' import { ActivityOptions, Message, Intents } from 'discord.js' import ...
<gh_stars>1-10 import UIUtil = require('./UIUtil'); import ErrorUtil = require('../ErrorUtil'); import ScheduleUtil = require('../WHSLib/ScheduleUtil'); import ColorUtil = require('./ColorUtil'); import TimeFormatUtil = require('../TimeFormatUtil'); import { PeriodType } from '../WHSLib/ScheduleUtil'; /** * Schedule...
<reponame>devhelpr/flowrunner<filename>src/helpers/ReactiveEventEmitter.ts import { BehaviorSubject, Subject } from 'rxjs'; import { interval } from 'rxjs'; import { sampleTime, throttle } from 'rxjs/operators'; export interface IReactiveEventEmitterOptions { isThrottling: boolean; isSampling: boolean; sampleInt...
<filename>projects/ng-rxjs-swiper/src/lib/swiper.service.ts import { ElementRef, Injectable } from '@angular/core'; import { fromEvent, Observable,merge, timer } from 'rxjs'; import { filter, map, skipUntil } from 'rxjs/operators'; type TriggerTypes = 'keyboard' | 'mouse' | 'swipe' | 'scroll'; type DetailedDirection ...
<gh_stars>1-10 import { BitmapFilter, InterfaceOf } from './BitmapFilter'; import { somewhatImplemented, release } from '@awayfl/swf-loader'; import { axCoerceString } from '@awayfl/avm2'; import { Point } from '../geom/Point'; import { BitmapData } from '../display/BitmapData'; import { SecurityDomain } from '../Secur...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
<reponame>FEFF01/qqss<filename>js/parser.ts<gh_stars>0 type IConditions = Record<string, any>[]; type ISelector = Array<IConditions | string>; type ISelectorContext = { input: string, start: number, index: number, elementSelector: ISelector, pseudoElementSelector?: Record<string, ISelector> } let...
<filename>examples/src/apps/texture.ts import { lookAt, mat4, perspective, scale } from 'munum'; import { Buffer, BufferType, CompareFunc, CullMode, RenderingDevice, VertexFormat, PixelFormat, TexType, AddressMode, MinFilterMode, UniformFormat, UniformType, PipelineDescriptor, ShaderType, Float, Pipeline, RenderPas...
import * as React from 'react' import { Row, EdgeComponent, BaseGrid } from './gridcomponents' import { Block, Node, Edge } from '../helpers/customtypes' import { updateBlock } from '../state-management/grid'; import { claimEdge} from '../state-management/edges' import { updateHovered } from '../state-management/hovere...
<gh_stars>10-100 import * as KoaApplication from 'koa' import * as JoiObject from 'joi' import { Server } from 'http' import { Stream } from 'stream' interface Salak extends KoaApplication, Salak.IService {} declare class Salak { constructor (option?: { baseDir: string, opts?: { root?: string, app?: string, runtime?...
import { basename } from "path"; import { Storage, File, Bucket } from "@google-cloud/storage"; import mimeDB from "mime-db"; import easyDB, { getRandomId, addToQueue, Data } from "easy-db-core"; // export {} from "easy-db-core"; type Configuration = { bucketName: string, /** * If is not set,...
<reponame>Cerberooo/telegraf-inline-menu<filename>examples/main-typescript.ts import {readFileSync} from 'fs' import {Telegraf, Context as TelegrafContext} from 'telegraf' import {MenuTemplate, MenuMiddleware, createBackMainMenuButtons} from '../source' const menu = new MenuTemplate<TelegrafContext>(() => 'Main Menu...
import CloseIcon from 'mdi-react/CloseIcon' import FormatListBulletedIcon from 'mdi-react/FormatListBulletedIcon' import * as React from 'react' import { Observable, Subject, Subscription } from 'rxjs' import { map, switchMap, tap } from 'rxjs/operators' import * as runtime from '../../browser/runtime' import { getCont...
<filename>src/cmd/changelog.ts<gh_stars>1-10 import { Args, string } from "@thi.ng/args"; import { dateTime, FMT_ISO_SHORT } from "@thi.ng/date"; import { writeText } from "@thi.ng/file-io"; import { comp, filter, groupByObj, transduce } from "@thi.ng/transducers"; import { resolve } from "path"; import { AllPkgOpt...
/* eslint-disable no-param-reassign */ import { isObject, set } from 'lodash'; import { snapshot, subscribe } from 'valtio'; import { BEGINNING_PAGE, RESULTS_PER_PAGE } from '@/constants/search'; import { createUrl, replaceUrlState } from '@/utils'; import { SearchQueryParams, SearchSortType } from './constants'; im...
import { ConnectionServer, Connection, } from '@casual-simulation/causal-tree-server'; import { DeviceInfo, DeviceToken, deviceInfo, DisconnectionReason, } from '@casual-simulation/causal-trees'; import { Observable, fromEventPattern, Subject } from 'rxjs'; import WebSocket, { Server } from 'ws'...
<reponame>stark-tech-space/ctrip-dist-node import { ICODE, CtripConstructorInput, AccessTokenResponse, CtripApiQuery, CityListRequest, CityListResponse, HotelListRequest, HotelListResponse, HotelDetailRequest, HotelDetailResponse, PriceSearchRequest, PriceSearchResponse, RoomCheckRequest, RoomCheckResponse, OrderAddReq...
/** * YApi MockJs翻译脚本 * @author shi-lai-mu * @description 把上级目录下的所有文件翻译为YApi可用的响应数据 */ import * as path from 'path' import * as fs from 'fs' import * as globby from 'globby' import * as mkdirp from 'mkdirp' // 编译路径 const _COMPILE_PATH_ = 'mock' // 编译完成输出路径 const _OUT_DIST_PATH_ = path.join(_COMPILE_...
<reponame>luomus/laji import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable, Subject, of, from, EMPTY } from 'rxjs'; import { distinctUntilChanged, map, switchMap, tap, take, concatMap, toArray, filter, catchError } from 'rxjs/operators'; import { GraphQLService } from '../../../graph-ql/serv...
import { ResJsDepFactory } from "./JsDepFactory" import Task from "./Task" import * as lodash from "lodash" import * as Moc from "mocha" import * as async from "async" import * as path from "path" import * as glob from "glob" import * as fs from...
import { Col, Div, Grid, Heading, Row, Section, TextLink } from '../../../theme/components'; import { Community } from './Community'; import { CommunityEmpytyListMessageWrapper } from '../../Communities/CommunitiyList/CommunityList.style'; import { Filters } from '../../Communities/CommunitiyList/Filters'; import { Pag...
import React from 'react' import BasicIdRestModel from './BasicIdRestModel' import { Schema, StringOrNumberKeys } from "../../Schema" import BasicSearchReducer from '../../../reducers/BasicSearchReducer' import BasicSearchActions from '../../../actions/BasicSearchActions' import { RestModel, UrlCallbackParam } from '.....
<gh_stars>1-10 import { Injectable } from '@angular/core'; import { GetAssetPathService } from './get-asset-path.service'; interface Scripts { name: string; src: string; } // Here we setup all the external scripts. // LMA:: The asset root path will depend if we are running the code in Production or development (n...
<gh_stars>1-10 /* * @Author: ShiJunJie * @Date: 2020-11-03 10:01:50 * @LastEditors: ShiJunJie * @LastEditTime: 2022-02-22 16:58:12 * @Descripttion: */ export function timeFix() { const time = new Date() const hour = time.getHours() return hour < 9 ? '早上好' : hour <= 11 ? '上午好' : hour <= 13 ? '中午好' : hour < ...
import React, { useEffect, createRef } from 'react' import { css } from '@emotion/core' import * as THREE from 'three' import Stats from 'three/examples/jsm/libs/stats.module.js' // import { GUI } from 'three/examples/jsm/libs/dat.gui.module.js' import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js' impo...