text stringlengths 3.3k 33k |
|---|
/* eslint-disable class-methods-use-this */
import { inject, injectable } from 'inversify'
import { QueryTypes } from 'sequelize'
import { Url, UrlType } from '../models/url'
import { UrlClicks } from '../models/statistics/clicks'
import { NotFoundError } from '../util/error'
import { redirectClient } from '../redis'
... |
import { IID, IObjectOf } from "@thi.ng/api/api";
import { isPlainObject } from "@thi.ng/checks/is-plain-object";
import { Transducer } from "@thi.ng/transducers/api";
import { comp } from "@thi.ng/transducers/func/comp";
import { labeled } from "@thi.ng/transducers/xform/labeled";
import { mapVals } from "@thi.ng/tran... |
import { indentMultiline } from '@graphql-codegen/visitor-plugin-common';
import { TypeScriptDeclarationBlock } from '../languages/typescript-declaration-block';
import {
AppSyncModelVisitor,
CodeGenEnum,
CodeGenField,
CodeGenModel,
ParsedAppSyncModelConfig,
RawAppSyncModelConfig,
} from './appsync-visitor'... |
import { FormContent } from "../../common/type/WizardType";
import {
AgreementStatus,
createRootData,
getDescription,
NoticeUsed,
} from "../steps/component/DecryptedResult";
const agreementSupported = { notice: 2, status: AgreementStatus.Supported };
const getAgreementSupported = (notice) => ({
notice,
st... |
import { UIViewInjectedProps } from '@uirouter/react';
import { DestinyClass } from 'bungie-api-ts/destiny2';
import { t } from 'app/i18next-t';
import _ from 'lodash';
import React from 'react';
import { connect } from 'react-redux';
import { DestinyAccount } from '../accounts/destiny-account';
import CharacterSelect ... |
<gh_stars>0
import { basename, parse, sep } from 'path';
import { debug, Disposable, env, window, workspace } from 'vscode';
import * as vsls from 'vsls';
import RPCClient from '../client/RPCClient';
const lang = require('../data/languages.json'); // eslint-disable-line
const knownExtentions: { [key: string]: { image:... |
import * as React from 'react';
import {
ActionGroup,
Alert,
Button,
Checkbox,
Divider,
Form,
Grid,
GridItem,
SelectOption,
SelectVariant,
Stack,
StackItem,
TextArea,
TextInput,
Title,
} from '@patternfly/react-core';
import { Helmet } from 'react-helmet';
import { useTranslation } from 'r... |
import './main.css'
// exports
// --------------------------------------------------------------------------------------------------
export const version: string = '<%= version %>' // important to type it, so .d.ts has generic string
// explicit API
export { EventSourceApi } from './api/EventSourceApi'
export { Even... |
<filename>dist/types/ojstreamlist/ojstreamlist.d.ts
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import { JetElement, JetSettableProperties, JetElementC... |
<reponame>CKGrafico/hint<gh_stars>0
/**
* @fileoverview Loads the configuration file
*
* Based on ESLint's config-file
* https://github.com/eslint/eslint/blob/master/lib/config/config-file.js
*/
/* eslint no-use-before-define: 0 */
/*
* ---------------------------------------------------------------------------... |
<reponame>zhipeng515/pinus<gh_stars>1-10
import { getLogger } from 'pinus-logger';
let logger = getLogger('pinus-rpc', 'ws-mailbox');
import { EventEmitter } from 'events';
import { constants } from '../../util/constants';
import { Tracer } from '../../util/tracer';
import * as client from 'socket.io-client';
import * ... |
<reponame>tenbits/cronbee
import { spawn as Spawn } from 'child_process';
import { ShellUtil } from '../../../shell/ShellUtil';
import { CronJob } from './CronJob';
import { CronVar } from './CronVar';
const COMMAND = 'crontab';
export class CronTab {
private user: string;
private root: boolean;
private... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { Trigg... |
<gh_stars>0
import { transpose } from '../src/index';
import { expect } from 'chai';
import 'mocha';
const KEYS = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"];
const C_MAJOR = 'C D E F G A B C';
const C_MINOR = 'Cm Ddim Eb Fm Gm Ab Bb Cm';
describe('Transposer', () => {
it ("The correct scales ... |
<gh_stars>1-10
/**
* Created by 10177553 on 2017/4/13.
*/
import {
Component,
ElementRef,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
QueryList,
Renderer2,
ViewChildren,
ViewEncapsulation
} from "@angular/core";
import {JigsawSliderHandle} from "./handle... |
<filename>src/modules/cloud/providers/digitalocean/DigitalOceanAgent.ts
import { IBlueprint, IBundle, IRegion } from '@modules/database/type';
import { md5, metric } from '@utils';
import axios, { AxiosInstance } from 'axios';
import { DigitalOcean } from 'dots-wrapper';
import { IDroplet } from 'dots-wrapper/dist/comm... |
<filename>packages/web-client/app/utils/web3-strategies/layer-1-connection-manager.ts
import detectEthereumProvider from '@metamask/detect-provider';
import WalletConnectProvider from '../wc-provider';
import WalletConnectQRCodeModal from '@walletconnect/qrcode-modal';
import config from '../../config/environment';
imp... |
import {
Component,
Input,
SimpleChanges,
ViewEncapsulation,
Renderer2,
AfterViewInit,
ElementRef,
OnChanges,
OnDestroy,
ViewChild,
ContentChild
} from '@angular/core';
import { NgxGaugeError } from './gauge-error';
import {
clamp,
coerceBooleanProperty,
coerceNum... |
<gh_stars>0
import { Code, JsDocEntry, ParamDef } from 'jsdoc-api';
import { uniqBy } from 'lodash';
import * as ts from 'typescript';
import { isArray, isBoolean, isNumber, isString } from 'util';
import { typeMapping } from './type-mapping';
export function getClasses(jsDocAst: JsDocEntry[]): JsDocEntry[] {
return... |
import ODataParser from './../../lib/odata-parser';
import JavascriptParser from './../../lib/javascript-parser';
import { IExpressionVisitor, IExpressionStack } from './interfaces/iexpressionvisitor'
import { IExpression, Expression, ExpressionType } from './expression';
import { ILiteralExpression, LiteralEx... |
import { WebVTTParser, Cue } from 'webvtt-parser';
import { version } from 'package.json';
/** アサート関数。 */
function assertIsDefined<T>(val: T): asserts val is NonNullable<T> {
if (val == null) { throw new Error(`Expected 'val' to be defined, but received ${val}`); }
}
const domParser = new DOMParser();
const webv... |
import {
between,
bind,
bindTo,
chain,
chainFirst, cut,
either, filter,
many,
many1,
map,
optional,
Parser,
sepBy,
sepBy1,
surroundedBy
} from 'parser-ts/Parser';
import {
RunoBind,
RunoExpression,
RunoFlow,
RunoFunctionApplication,
RunoIfThenElse,
RunoLambda,
RunoLiteral,
Ru... |
<reponame>kitsonk/swc
// Loaded from https://deno.land/std@0.73.0/http/server.ts
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { encode } from "../encoding/utf8.ts";
import { BufReader, BufWriter } from "../io/bufio.ts";
import { assert } from "../_util/assert.ts";
import { Deferre... |
<gh_stars>0
import debugModule from "debug";
const debug = debugModule("source-fetcher:etherscan");
// untyped import since no @types/web3-utils exists
const Web3Utils = require("web3-utils");
import type { Fetcher, FetcherConstructor } from "./types";
import type * as Types from "./types";
import {
makeFilename,
... |
<gh_stars>0
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS Key Management Service
*/
export interface KmsGrantConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/provider... |
import * as THREE from 'three'
import * as React from 'react'
// @ts-ignore
import { ConcurrentRoot } from 'react-reconciler/constants'
import create, { UseBoundStore } from 'zustand'
import { Renderer, createStore, StoreProps, isRenderer, context, RootState, Size, Camera } from './store'
import { createRenderer, exte... |
import { Common, Main, Renderer } from "@k8slens/extensions";
import cluster from "cluster";
import React, { useState } from "react";
import { Helper } from "../Helper";
import { FcInfo } from "react-icons/fc";
import gis from "g-i-s";
import Loading from "./Loading";
import { GiCubeforce } from "react-icons/gi";
impor... |
import QRCodeBorderlessIcon from '@celo/react-components/icons/QRCodeBorderless'
import Times from '@celo/react-components/icons/Times'
import VerifyPhone from '@celo/react-components/icons/VerifyPhone'
import colors from '@celo/react-components/styles/colors.v2'
import { RouteProp } from '@react-navigation/native'
imp... |
import styled from 'styled-components';
import React from 'react';
import ButtonGroup from '@atlaskit/button/button-group';
import Button from '@atlaskit/button/standard-button';
import { ReactRenderer } from '@atlaskit/renderer';
import Editor, { EditorProps, EditorAppearance } from './../src/editor';
import EditorCon... |
import { Pool } from 'pg';
import { Sql, SqlConst } from '../query/sql-template-string';
import { deser } from '../deserializer/deserializers';
import { cannotHappen } from '../utils/cannotHappen';
import { SqlDeserializer } from '../deserializer/SqlDeserializer';
import { SqlExecutor } from '../executor/sql-executor';... |
<gh_stars>0
import { Injectable } from '@angular/core';
import { MapEventsManagerService } from '../../../../angular-cesium/services/map-events-mananger/map-events-manager';
import { Subject } from 'rxjs/Subject';
import { Observable } from 'rxjs/Observable';
import { CesiumEvent } from '../../../../angular-cesium/serv... |
import * as git from 'isomorphic-git';
import path from 'path';
import React, { ReactNode } from 'react';
import YAML from 'yaml';
import { trackEvent } from '../../../common/analytics';
import { database as db } from '../../../common/database';
import { strings } from '../../../common/strings';
import * as models fro... |
// Help system - displays help for categories and commands
import * as _ from "lodash";
import * as os from "os";
import { isatty } from "tty";
import * as chalk from "chalk";
const debug = require("debug")("appcenter-cli:util:commandline:help");
const Table = require("cli-table3");
import { getClassHelpText, getOpt... |
import { useEffect, useState } from 'react';
import Range from './Range';
import { TThumbOffsets, ITrackBackground, Direction } from './types';
export const getStepDecimals = (step: number): number => {
const decimals = step.toString().split('.')[1];
return decimals ? decimals.length : 0;
};
export function isTou... |
/**
* @module module/alerts-page-sk
* @description <h2><code>alerts-page-sk</code></h2>
*
* A page for editing all the alert configs.
*/
import 'elements-sk/checkbox-sk';
import 'elements-sk/icon/delete-icon-sk';
import 'elements-sk/icon/create-icon-sk';
import 'elements-sk/styles/buttons';
import '../../../infra-... |
<reponame>tanalan/Pokemon-Showdown
/**
* Room games
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Room games are an abstract representation of an activity that a room
* can be focused on, such as a battle, tournament, or chat game like
* Hangman. Rooms are limited to one roomgame at a time.
*
* Room game... |
"use strict";
import * as vscode from "vscode";
import { CodeCommand } from "./common/constants";
import { ConnectionNode } from "./model/database/connectionNode";
import { SchemaNode } from "./model/database/schemaNode";
import { UserGroup } from "./model/database/userGroup";
import { CopyAble } from "./model/interfa... |
/*
Copyright 2020 The Matrix.org Foundation C.I.C.
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 ... |
import * as React from "react";
// import { browser, Tabs } from "webextension-polyfill-ts";
// function openWebPage(url: string): Promise<Tabs.Tab> {
// return browser.tabs.create({ url });
// }
export default function NewTab(): React.ReactElement<{}> {
return (
<main id="newtab" className="text-gray-800">
... |
import { toggleSignInModalState } from 'atoms/signInModal';
import { Box } from 'components/material/Box';
import Text, { Subtitle } from 'components/material/Text';
import React, { useRef, useState } from 'react';
import { useRecoilState } from 'recoil';
import styled from 'styled-components';
import { IoLogoFacebook,... |
import { useEffect, useMemo, useState, useRef } from 'react';
import classNames from 'classnames';
import { min, splitEvery } from 'ramda';
import { faCheck as checkIcon, faRobot as botIcon } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Uncontrolle... |
/**
* @license
* Copyright 2019 Dynatrace 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 required by applicable law or ag... |
<reponame>stjordanis/owid-grapher<gh_stars>0
import * as fs from "fs-extra"
import * as prompts from "prompts"
import ProgressBar = require("progress")
import { execWrapper } from "../db/execWrapper"
import { spawn } from "child_process"
import simpleGit, { SimpleGit } from "simple-git"
import { WriteStream } from "tty... |
<gh_stars>1-10
import { initAccordion, appendTutorialToAccordion } from "./accordion";
import { autoRender } from "./autoRender";
import { mdToHTML, escapeHTML } from "./md";
import Prism from "prismjs";
interface Lesson {
title: HTMLElement; // <h2> element
html: HTMLElement;
}
interface Tutorial {
body: HTMLE... |
/**
* @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 {AnnotatorHost} from './annotator_host';
import {assertAbsolute} from './c... |
import { throttle } from 'lodash';
import { Routes } from 'mobile/src/navigation/Routes';
import { headerStyles } from 'mobile/src/styles';
import { calculateKeyboardOffset } from 'mobile/src/utils/keyboard';
import React from 'react';
import { KeyboardAvoidingView, Linking, Platform, StyleSheet, TextInput, View } from... |
<reponame>irceline/aq-mobile-be<gh_stars>1-10
import { Component, EventEmitter, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { DatasetApiInterface, DefinedTimespan, DefinedTimespanService, Time, Timeseries, Timespan } from '@helgoland/core';
import { IonSlides } from '@ionic/angular';
import { Tr... |
/**
* @license
* Copyright Google LLC 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 {createEnvironmentInjector, EnvironmentInjector, Type, ɵisStandalone as isStandalone} from '@angular/core';
i... |
<filename>src/Game.ts
import { EventEmitter } from 'events'
import { Bsp } from './Bsp'
import * as Time from './Time'
import { Sound } from './Sound'
import { Loader } from './Loader'
import { Config } from './Config'
import { Mouse } from './Input/Mouse'
import { Touch } from './Input/Touch'
import { Replay }... |
<reponame>torkelrogstad/polar
import { Action, action, Thunk, thunk, ThunkOn, thunkOn } from 'easy-peasy';
import { LightningNode, Status } from 'shared/types';
import * as PLN from 'lib/lightning/types';
import { Network, StoreInjections } from 'types';
import { delay } from 'utils/async';
import { BLOCKS_TIL_CONFIRME... |
<reponame>emilgoldsmith/GoodLiving
import request from "request-promise-native";
import { Listing, Amenity } from "./types";
import * as _ from "lodash";
let isFetching = false;
export async function getAmenities(listing: Listing): Promise<Amenity[]> {
let missingIds = [];
const filteredIds = listing.amenityIds.f... |
<filename>src/Entities/Places.ts
// 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
//
... |
import {
BooleanFlag,
Command,
InputInterface,
ListValueFlag,
NoParams,
OutputInterface,
ValueFlag
} from "@2fd/command";
import Bluebird from "bluebird";
import fs from "fs";
import glob from "glob";
import { render } from "mustache";
import path from "path";
import { PluginInterface, Schema, TypeRef } f... |
import {Filename, PortablePath, npath, ppath, xfs} from '@yarnpkg/fslib';
import {PnpApi} from '@yarnpkg/pnp';
import chalk from 'chalk';
import CJSON from 'comment-json';
import {dynamicRequire} ... |
import React, { useState } from 'react'
import { StyleSheet, View, TextInput, TouchableOpacity, Linking } from 'react-native'
import { IconButton, ActivityIndicator } from 'react-native-paper'
import RadialGradient from 'react-native-radial-gradient'
import { decode as atob } from 'base-64'
import { KeyboardAwareScroll... |
import {
EdgeDataDefinition,
EdgeDefinition,
ElementsDefinition,
NodeDefinition,
} from 'cytoscape';
import { Quad, Quad_Graph, Term } from 'rdf-js';
import * as uuid from 'uuid/v4';
import { Config, Style } from './types';
import { CLASS, findMatches, termText } from './utility';
enum rdf {
type ... |
import assert from 'assert';
import eslint from 'eslint';
import { CommentLine, containsJSDocTag, containsMarkdownList, endIndexOf, isLeadWhitespaceAligned, tokenize } from './util';
export function split(current: CommentLine, next?: CommentLine) {
if (next) {
assert(current.index + 1 === next.index,
`Line... |
/*
Copyright (c) 2020 <NAME>., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to use Cocos Creato... |
export enum Scope {
Application="application",
Arguments="arguments",
Attributes="attributes",
Caller="caller",
Cffile="cffile",
CGI="cgi",
Client="client",
Cookie="cookie",
Flash="flash",
Form="form",
Local="local",
Request="request",
Server="server",
Session="session",
Static="static", /... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------... |
import { Injectable } from "@angular/core";
import { Subject } from "rxjs";
import {
HttpClient,
HttpHeaders,
HttpResponse,
HttpResponseBase
} from "@angular/common/http";
import "rxjs/add/observable/fromPromise";
import "rxjs/add/observable/of";
import "rxjs/add/observable/throw";
import "rxjs/add/operator/ma... |
<filename>plugins/amcrest/src/main.ts
import sdk, { MediaObject, Camera, ScryptedInterface, Setting, ScryptedDeviceType, Intercom, FFMpegInput, ScryptedMimeTypes, PictureOptions, VideoCameraConfiguration, MediaStreamOptions } from "@scrypted/sdk";
import { Stream, PassThrough } from "stream";
import { AmcrestCameraClie... |
import * as fs from 'fs';
import * as fsPath from 'path';
import {Document, DocumentListOptions} from './document';
import {Locale, LocaleSet} from './locale';
import {Pod} from './pod';
import glob from 'glob';
export interface CollectionDocsOptions extends DocumentListOptions {
excludeSubcollections?: boolean;
}... |
interface HunkHeader {
type: "hunk header"
original: {
start: number
length: number
}
patched: {
start: number
length: number
}
}
export const parseHunkHeaderLine = (headerLine: string): HunkHeader => {
const match = headerLine
.trim()
.match(/^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@... |
<gh_stars>0
/**
* The ScrollAxis class represents a single axis of data, which consists of items, and performs
* calculations during scrolling back and forth along the axis. The ScrollAxis class itself doesn't
* have any visual representation and only serves as an implementation of the algorithm that
* helps virtu... |
/**
* 轮播组件
* 因原生swiper受限,基于wxs重新实现,后期可以扩展更多丰富的功能
* todo:无限循环,3D动效等
*/
import { SuperComponent, wxComponent, ControlInstance, useControl } from '../common/src/index';
import config from '../common/config';
import { DIRECTION, NavTypes } from './common/constants';
import props from './props';
const { prefix } = conf... |
<reponame>Tyscauri/scauri
// Copyright 2020 <NAME>
// SPDX-License-Identifier: Apache-2.0
import * as wasmlib from "wasmlib"
import * as wasmtypes from "wasmlib/wasmtypes";
import * as sc from "./index";
const DURATION_DEFAULT: u32 = 60;
const DURATION_MIN: u32 = 1;
const DURATION_MAX: u32 = 120;
const MAX_DESCRIPTIO... |
<reponame>semojs/semo-plugin-markmap
import { promises as fs, existsSync } from 'fs'
import path from 'path'
import open from 'open'
import { EventEmitter } from 'events'
import chokidar from 'chokidar'
import { UtilsType } from '@semo/core'
import { startServer } from 'semo-plugin-serve'
import axios, { AxiosRequestCo... |
<reponame>kgcreative/OpenSearch-Dashboards
/*
* 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
* li... |
<reponame>TytiX/mega-client<filename>src/crypto/aes.ts
/* eslint-disable */
import crypto from 'crypto'
// convert user-supplied password array
export function prepareKey (password: any) {
let i, j, r
let pkey = Buffer.from([147, 196, 103, 227, 125, 176, 199, 164, 209, 190, 63, 129, 1, 82, 203, 86])
for (r = 65... |
<reponame>akshaybheda/imodeljs<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*-----------------... |
<gh_stars>0
import ts, { factory } from 'typescript'
import {
createFunctionDeclaration,
cloneFunctionDeclaration,
createParameterDeclaration,
createSingleVariableStatement,
findChildByType,
findTopFunction,
ensureImport,
ensureCloudInit,
hasDefault,
hasExport,
getExportMain
} from './util'
import... |
<filename>source/index.ts
// Import
import { resolve } from 'path'
import Errlop from 'errlop'
import { satisfies } from 'semver'
import { isClass } from 'typechecker'
// Local
const alphanumeric = /^[a-z0-9]+$/
// Types
/** Log method */
type Log = Function
/** Validated against {@link PluginLoader#keyword} */
type ... |
import fileIcon from "../File Icon/fileIcon";
import path from "path";
import os from "os";
import Home from '../../Layout/home';
import changePosition from "../../Functions/changePosition";
import { updateTheme } from "../../Theme/theme";
import nativeDrag from "./drag";
import { startLoading, stopLoading } from "../.... |
/**
* 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 required by applicable law or agreed to... |
<reponame>timneutkens/formatjs
import {
invariant,
defineProperty,
SupportedLocales,
unpackData,
InitializeDateTimeFormat,
IsValidTimeZoneName,
CanonicalizeTimeZoneName,
DateTimeFormatOptions,
TABLE_6,
DateTimeFormat as IDateTimeFormat,
DATE_TIME_PROPS,
FormatDateTime,
FormatDateTimeToParts,
... |
<reponame>HanaNavratilova/DefinitelyTyped
// Type definitions for N3 1.1
// Project: https://github.com/rdfjs/n3.js
// Definitions by: <NAME> <https://github.com/phreed>
// <NAME> <https://github.com/rubensworks>
// <NAME> <https://github.com/LaurensRietveld>
// Definitions: https://gith... |
async function main(workbook: ExcelScript.Workbook) {
// String arguments are actual values or keys in xlwings.conf sheet
await runPython(
workbook,
"URL",
"API_KEY"
);
}
/**
* xlwings dev (for Microsoft Office Scripts)
* Copyright (C) 2014 - present, Zoomer Analytics GmbH.
* All rights reserved.
... |
<filename>src/init.ts
/**
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... |
import { HungerGamesUsage } from '#lib/games/HungerGamesUsage';
import { LanguageKeys } from '#lib/i18n/languageKeys';
import { SkyraCommand } from '#lib/structures';
import type { GuildMessage } from '#lib/types';
import { minutes } from '#utils/common';
import { deleteMessage, isModerator } from '#utils/functions';
i... |
<gh_stars>0
import type { Translations } from "./data";
import locale from "@angular/common/locales/ms";
import dateFnsLocale from "date-fns/locale/ms";
const translations: Translations = {
updatedAt: "Kemas kini terakhir pada {$INTERPOLATION}",
name: "Nama",
total: "Jumlah",
subscribers: "Pelanggan",
views... |
<reponame>TylerLeonhardt/vscode-azurefunctions
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------... |
import { EMPTY_STRING } from 'front-end/config';
import { getContextualActionsValid, getModalValid, makeStartLoading, makeStopLoading, updateValid, viewValid } from 'front-end/lib';
import { Route } from 'front-end/lib/app/types';
import * as FormField from 'front-end/lib/components/form-field';
import * as LongText fr... |
/* eslint-disable max-len */
import cors from 'cors';
import morgan from 'morgan';
import compression from 'compression';
import apicache from 'apicache';
// GOOGLE DRIVE VARS
import express from 'express';
import GoogleDriveApi from './GoogleDriveApiClient';
// SERVER VARS
// Database vars
import DatabaseAdapter from ... |
<reponame>divvydev/ripple-lib
import BigNumber from 'bignumber.js'
import * as common from '../common'
import {Memo} from '../common/types/objects'
import {Instructions, Prepare, TransactionJSON} from './types'
import {RippleAPI} from '..'
import {ValidationError} from '../common/errors'
import {xAddressToClassicAddres... |
import { Component, ChangeDetectorRef } from '@angular/core';
import { DataService } from '../services/data.service';
import { take, tap, finalize } from 'rxjs/operators';
import { Reward, RewardHistory, RewardStatus } from '../services/models';
import { DomSanitizer } from '@angular/platform-browser';
import { Observa... |
<gh_stars>1-10
import { dashboardBody, importedDashboardBody } from './types/dashboardInput';
import { GraphQLClient } from 'graphql-request';
import { addDashboard, checkIfDashboardExists, removeDashboard } from './mutations/dashboard';
import { addPolicy, checkIfPolicyExists, removePolicy } from './mutations/policy';... |
<reponame>JamesYeoman/vitebook<gh_stars>0
import { watch } from 'chokidar';
import debounce from 'just-debounce-it';
import kleur from 'kleur';
import {
DepOptimizationMetadata,
UserConfig as ViteConfig,
ViteDevServer,
} from 'vite';
import { isArray, prettyJsonStr } from '../../../../shared';
import { globby } ... |
import React from "react";
import { Route, Switch } from "react-router-dom";
import { useLocation } from "react-router-dom";
import axios from "axios";
import { connect } from "react-redux";
import { isMobile } from "react-device-detect";
import queryString from 'query-string';
import "./brick.scss";
import Introduct... |
import {
useRef,
useMemo,
useReducer,
useEffect,
useContext,
createContext,
ReactElement,
useCallback,
} from 'react'
import debounce from 'lodash.debounce'
import { parseTime, composeTime, parseMeridiem } from '../helpers/time'
import useConfig from './useConfigContext'
import { isHourMode, isMinuteMode, isSa... |
import { gql } from "@apollo/client";
import {
Box,
Button,
chakra,
Divider,
FormControl,
FormErrorMessage,
FormHelperText,
FormLabel,
Heading,
HStack,
Input,
List,
ListItem,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalH... |
<reponame>mattermost/mattermost-plugin-calls
import {
getCurrentRelativeTeamUrl,
getCurrentTeamId,
getTeam,
} from 'mattermost-redux/selectors/entities/teams';
import {Client4} from 'mattermost-redux/client';
import {getRedirectChannelNameForTeam} from 'mattermost-redux/selectors/entities/channels';
impor... |
import { Logger } from "@graphile/logger";
import { parse } from "pg-connection-string";
import * as querystring from "querystring";
import { format as formatURL, parse as parseURL } from "url";
import {
ActionSpec,
CommandActionSpec,
makeValidateActionCallback,
SqlActionSpec,
} from "./actions";
import { defa... |
<gh_stars>0
import StateBlock from 'markdown-it/lib/rules_block/state_block';
import {MarkdownItPluginCb} from '../typings';
const pluginName = 'yfm_table';
const pipeChar = 0x7c; // |
const apostropheChar = 0x60; // `
const hashChar = 0x23; // #
const backSlashChar = 0x5c; // \
const checkCharsOrder = (order: number... |
import { Game } from '../src/scripts/Game';
//Pinta cada celda que este viva.
const paintLiveCells = () => {
for(let i=0;i<TILES_X;i++) {
for(let j=0;j<TILES_Y;j++) {
if (!testGame.cellIsAlive(i, j)) {
continue;
}
ctx.fillRect(i * TILE_SIZE, j * TILE_SIZ... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { IntAdjacencyGraph } from '../../../mol-math/graph';
import { InterUnitGraph } from '../../../mol-math/graph/inter-unit-graph';
import { Unit } from '../../../mol-model/struc... |
/**
* @module module/alert-config-sk
* @description <h2><code>alert-config-sk</code></h2>
*
* Control that allows editing an alert.Config.
*
*/
import { define } from 'elements-sk/define';
import { html } from 'lit-html';
import 'elements-sk/checkbox-sk';
import 'elements-sk/multi-select-sk';
import 'elements-sk... |
// Adapted from the https://github.com/ReactTraining/history and converted to TypeScript
import { createLocation, createKey } from './location-utils';
import { RouterHistory, LocationSegments, Prompt } from '../global/interfaces';
import { invariant, warning } from './log';
import {
addLeadingSlash,
stripTrailingS... |
import * as React from "react";
import TextField from "@material-ui/core/TextField";
import FormControl from "@material-ui/core/FormControl";
import FormControlLabel from "@material-ui/core/FormControlLabel";
import FormLabel from "@material-ui/core/FormLabel";
import RadioGroup from "@material-ui/core/RadioGroup";
im... |
import { Point3D } from "hifi-spatial-audio";
import { SpatialAudioRoom } from "../ui/RoomController";
import { UITheme } from "../ui/UIThemeController";
import Room1 from "../../../server/static/rooms/Room1.jpg";
import Room2 from "../../../server/static/rooms/Room2.jpg";
import Room3 from "../../../server/static... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.