text stringlengths 3.08k 15.5k |
|---|
<reponame>dvijayak/mcbc-vbs<filename>mcbc-vbs-ui/src/app/pages/home/body/register/register.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
import { SubmissionOptions, SubmissionService } from '../../../../submiss... |
<gh_stars>0
/* eslint-disable no-invalid-this */
import { TypeBasic, TypeUnsubscriber, TypeSubscriber } from '..'
import { TypeThenable, TypeStorable, TypeSubscribed, TypeAwaitedOrSubscribed } from '..'
import { noop, isStorable, isThenable } from '..'
import { then } from '..'
// import {
// TypeReaseContext,
// ... |
// @ts-ignore
__webpack_public_path__ = document.querySelector('meta[name="asset-url"]')?.content;
// External libraries
import * as Vue from 'vue';
import { createInertiaApp } from '@inertiajs/inertia-vue3';
import slugify from 'slugify';
import axios from 'axios';
import { debounce } from 'debounce';
import {
V... |
<filename>src/extras/crop_finder.ts
import settings from '../settings';
import api from '../api';
import { village } from '../gamedata';
import { Icropfinder, Imap_details, Ivillage } from '../interfaces';
import { find_state_data } from '../util';
import { oasis_type, res_type } from '../data';
class crop_finder {
... |
import { useState } from "react";
// -------------- generic util functions -------------
// TODO: write tests for all util functions :pray:
// > https://stackoverflow.com/a/68966700/8995887
const assocPath = ([prop, ...rest]: any[], value: any, obj: any = {}) => {
const newObj = Array.isArray(obj) ? [...obj] : { ..... |
import { App, TAbstractFile, TFile } from "obsidian";
import { parse, serialize } from "./embed";
import { escapeRegex } from "../util/escapeRegex";
export interface EmbedCache {
sourceFile: string;
subPath: string;
ranges: string[];
refFile: string;
refIdx: number;
}
export class IndexListener {
construc... |
import React from 'react';
import Button from '@material-ui/core/Button';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { makeStyles, Theme } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import MenuItem from '@material-ui/core/MenuItem';
import MenuList from '@mater... |
<gh_stars>1-10
import { PACKET_TYPES, PacketType } from './packet-types';
import { Point } from './point';
import { Box, CompiledObject } from '../compiled-objects/compiled-object';
interface ReaderMapping<T> {
variable: string;
destination: Reference<any> | CompiledObject;
parser: (data: string, currentPosition... |
<filename>stacks/api-integration/functions/createSolutionInstance.ts
//# sourceMappingURL=./createIntegrationDeployment.js.map
require('source-map-support').install();
process.env.TZ = 'UTC';
import {APIGatewayEventRequestContext, APIGatewayEvent} from 'aws-lambda';
import {generateClient, getNodesAt} from "./gqlClien... |
import React from 'react'
import { Image, StyleSheet, Text, View, Dimensions, StatusBar } from 'react-native'
import { BottomSheetBehavior as BottomSheet } from '@zero-d/rn-components'
import Animated, { debug, interpolate, Extrapolate, max, multiply, add } from 'react-native-reanimated'
import type { NavigationStackSc... |
<reponame>Azure/perks.async-io
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------... |
import * as seedrandom from 'seedrandom';
import { Cart, CartFactory, Job, JobAssigner, LocationId, JobFactory, Route, printRoute, RoutePlanner, SimTime } from '../src';
const random = seedrandom("seed");
function go() {
const cartCount = 10;
const cartCapacity = 10;
const meanCartLoadFactor = 0.5;
c... |
/**
* Copyright 2018 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
<filename>core-backend/src/services/AccountService.ts
import logger from '../utils/Logger';
import MailService from './MailService';
import { UserModel, IUser } from '../models/User';
import { PendingVerificationModel } from '../models/PendingVerification';
import BcryptAdapter from '../adapters/BcryptAdapter';
import ... |
import React from 'react'
import Hair0 from './0'
import Hair1 from './1'
import Hair2 from './2'
import Hair3 from './3'
import Hair4 from './4'
import Hair5 from './5'
import Hair6 from './6'
import Hair7 from './7'
import Hair8 from './8'
import Hair9 from './9'
import Hair10 from './10'
import Hair11 from './11'
i... |
<reponame>Haritest/sunbird-cb-creationportal-old
import { Component, OnInit } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
import { NsContent, NsContentStripMultiple, ROOT_WIDGET_CONFIG } from '@ws-widget/collection'
import { NsWidgetResolver } from '@ws-widget/resolver'
import { Configurations... |
import { Component, Vue, Inject, Prop, Watch, Ref } from 'vue-property-decorator';
import { numeric, required, minLength, maxLength } from 'vuelidate/lib/validators';
import { FieldType } from '@/shared/model/modelConfig/common-table-field.model';
import { RelationshipType } from '@/shared/model/modelConfig/common-tab... |
<reponame>arielshaqed/reshuffle<filename>subscriptions/src/subscriptions.ts
import * as im from 'immutable';
import { from, merge, Observable, Observer, Subject } from 'rxjs';
import {
startWith,
concatMap,
flatMap,
filter,
finalize,
ignoreElements,
scan,
tap,
map,
publishReplay,
refCount,
share... |
<reponame>Rostov1991/amcharts5
import type { DataItem } from "../../core/render/Component";
import type { HierarchyNode } from "./HierarchyNode";
import { Hierarchy, IHierarchyPrivate, IHierarchySettings, IHierarchyDataItem, IHierarchyEvents } from "./Hierarchy";
import { Circle } from "../../core/render/Circle";
impo... |
import * as React from 'react'
import Svg, { Defs, Ellipse, RadialGradient, Stop } from 'react-native-svg'
import { colorManipulator, Styles } from '../../styles'
import { LayoutInfo, View } from '../view'
import { RadialGradientProps } from './RadialGradientProps'
type State = {
layout: LayoutInfo
}
class RadialG... |
<reponame>pzverkov/Flutter-CleanArchitecture-HnH<gh_stars>1-10
'use strict';
import { Request, Response } from 'express-serve-static-core';
import { NextFunction } from 'connect';
import { IEvent } from '../interfaces/event/event';
import { Event } from '../models/eventModel';
import { CREATE_EVENTS_PASS } from '../con... |
import { SNSEvent } from "aws-lambda";
import { SNS, SQS } from "aws-sdk";
import { FaastError, FaastErrorNames } from "../error";
import { log } from "../log";
import { Message, PollResult } from "../provider";
import { deserialize, serialize } from "../serialize";
import { computeHttpResponseBytes, defined, sum } fro... |
import React, { useCallback, useState, useEffect } from "react";
import Navbar from "../components/Navbar";
import {
FormGroup,
FormControl,
Input,
InputLabel,
Box,
Paper,
Typography,
} from "@mui/material";
import { useDropzone } from "react-dropzone";
import { useHistory } from "react-router-dom";
impor... |
<filename>client/src/redux/musicAppSlice.tsx
import {
// createAsyncThunk,
createSlice,
// PayloadAction
} from "@reduxjs/toolkit";
import {
RootState,
// AppThunk
} from "./store";
export interface MusicAppState {
album: { albumId: string; title: string; cover: string };
artist: { artistId: ... |
<filename>src/file_explorer/base-file.tsx<gh_stars>1-10
import PropTypes from "prop-types";
import React from "react";
import {extensionMapping} from "./constants";
class BaseFile extends React.Component<any, any> {
static propTypes = {
fileKey: PropTypes.string,
url: PropTypes.string,
ne... |
import {
useFetchTipoviRoleta,
useFetchVrstePovlačenja,
useFetchMrežaZaRoletu,
RoleteTipI,
} from '../features/fetch/useFetchData';
import React, { useState } from 'react';
import styles from '../styles/RoleteForma.module.css';
import { useAppDispatch } from '../features/hooks/hooks';
import {
roletaProizvod,... |
import throttle from 'lodash/throttle';
import URL from 'url-parse';
import {
BeaconOptions,
BeaconTracker,
GAOptions,
GATracker,
GTagOptions,
GTagTracker,
KakaoOptions,
KakaoTracker,
PixelOptions,
PixelTracker,
TagManagerOptions,
TagManagerTracker,
TwitterOptions,
TwitterTracker,
} from '.... |
/******************************************************************************
Copyright:: 2020- IBM, Inc
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... |
<reponame>isabella232/yeoman-ui
import { exec } from "child_process";
import { promisify } from "util";
import { platform } from "os";
import * as _ from "lodash";
import * as customLocation from "./customLocation";
import * as sudo from "sudo-prompt";
import * as fs from "fs";
import messages from "../messages";
impor... |
/*
* Copyright © 2020 <NAME>, Inc.
*
* 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 i... |
import { ClassName } from 'windicss/types/utils/parser/html';
import { CSSParser } from 'windicss/utils/parser';
import { StyleSheet } from 'windicss/utils/style';
import { extname, resolve } from 'path';
import { Extractor } from 'windicss/types/interfaces';
import { Processor } from './processor';
import { globArray ... |
import { ElementRef, NgZone } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { Subject, Subscription } from 'rxjs';
import { NgxStickyBoundaryDirective } from '../../src/lib/sticky-boundary.directive';
import { NgxStickyRootContainerController } from '../../src/lib/sticky-root-container.... |
import nock from 'nock';
export declare class GitHubNock {
repository: Repository;
constructor(ownerId: string, ownerLogin: string, repoId: number, repoName: string);
getFile(path: string, content?: string, sha?: string, persist?: boolean): File;
getDirectory(path: string, subfiles: string[], subdirs: s... |
<filename>src/renderer/screens/game/ball.ts
import { Rect, Sound, math } from "asdf-games";
import { Player } from "./player";
import { ScoreHelper } from "./helpers/score";
import { Level } from "./helpers/level";
import { PowerupManager } from "./helpers/powerup";
import { Blocks } from "./blocks";
import { SettingsS... |
<reponame>ShadyStego/semiotic<gh_stars>0
import { CustomHoverType, AnnotationHandling } from "./annotationTypes"
import { TitleType } from "../svg/frameFunctions"
import { Interactivity, AdvancedInteractionSettings } from "./interactionTypes"
import { LegendProps } from "./legendTypes"
import { AxisProps } from "./anno... |
<gh_stars>0
import './extens';
/**
* see https://github.com/chalk/ansi-regex
* Chalk typings don't seem stable at the moment
* at least and why this module exists.
*/
export const STRIP_PATTERN = [
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)',
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?... |
<gh_stars>10-100
/* eslint-disable @typescript-eslint/no-empty-function */
import Res from './res';
import TYIpcPlayerManager from '../ty-ipc-native';
import Strings from './i18n';
interface ComProvider {
component: any;
propData?: any;
}
interface PlayerLoad {
playerLoadContainer: any;
fullBackIconContainer:... |
import {Component, Input, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {MatDialog} from '@angular/material/dialog';
import {ApiService} from '../logic/api.service';
import {MatPaginator, MatPaginatorIntl} from '@angular/material/paginator';
import {Subscription} from 'rxjs/internal/Subscription';
import {... |
import { IntervalName, Named, NoteName } from "@tonaljs/core";
/**
* The properties of a pitch class set
* @param {number} num - a number between 1 and 4095 (both included) that
* uniquely identifies the set. It's the decimal number of the chrom.
* @param {string} chroma - a string representation of the set: a... |
import { JSON } from './_type'
import removeAll from './removeAll.js'
import removeOne from './removeOne.js'
/**-
事件对象
*/
const EventEmitter: JSON = {
// _EVENTS_: Object.create(null), // 事件池
/**-
绑定事件
-p type 事件类型
-p handler 事件处理函数
-p once 是否一次性事件(只会被触发一次)
-p mid 模块id,只用于开发时输出日志,无其他作用
-e... |
/// <reference path="../../../typings/express/express.d.ts" />
var util = require('util');
var cookie = require('cookie');
import express = require('express');
import tag = require('../models/tag');
import commit = require('../models/commit');
import MM = require('../models/mongo_model');
var router = express.Router... |
import { World } from '@antv/g-webgpu';
import {
ICamera,
IDENTIFIER,
IInteractorEvent,
IRendererService,
IView,
} from '@antv/g-webgpu-core';
import { Container } from 'inversify';
import { InteractorService } from './InteractorService';
const MOTION_FACTOR = 10;
// https://gist.github.com/handleman/3c99e75... |
import classnames from 'classnames';
import cloneDeep from 'lodash.clonedeep';
import now from 'lodash.now';
import React from 'react';
import {
Edge,
EdgeData,
} from 'reaflow';
import {
SetterOrUpdater,
useRecoilState,
useSetRecoilState,
} from 'recoil';
import { blockPickerMenuSelector } from '../../states... |
import {
DynaNodeService,
IDynaNodeServiceCommandConfig,
DynaNodeMessage,
} from "dyna-node/dist/commonJs/node";
import { IError } from "dyna-interfaces";
export interface IDynaNodeChannelsServiceConfig {
parallelRequests?: number; // default: 5
serviceRegistration?: { ... |
<reponame>tadasz-wix/ricos<gh_stars>0
import { TiptapAPI } from '../../types';
import { capitalize } from 'lodash';
import {
RICOS_LINK_TYPE,
TranslationFunction,
EditorPlugin,
TextAlignment,
RICOS_TEXT_COLOR_TYPE,
RICOS_TEXT_HIGHLIGHT_TYPE,
} from 'wix-rich-content-common';
import { Editor } from '@tiptap/... |
<reponame>lVlyke/lithium-angular
import { Observable, Subject, of } from "rxjs";
import { take, flatMap } from "rxjs/operators";
export namespace ObservableUtil {
/** @description
* Creates an observable from the given property.
*/
export function CreateFromProperty<T>(property: T | Subject<T> | Ob... |
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Chip from '@material-ui/core/Chip';
import Container from '@material-ui/core/Container';
import Link from '@material-ui/core/Link';
import Paper from '@material-ui/core/Paper';
import { Theme } from '@material-ui/core/styles/... |
<reponame>prasadrajandran/migr8
import { resolve } from 'path';
import { existsSync } from 'fs';
import { getopts } from '@prasadrajandran/getopts';
import { OptSchema } from '@prasadrajandran/getopts/dist/interfaces/schema';
import { Migr8 } from './migr8';
import * as logger from './cli/helpers/logger';
import { Migr... |
import React, {createContext, ReactNode, useCallback, useContext, useState} from 'react';
import {UserResponseBody} from "../interfaces/userInterface";
import UserController from "../controllers/userController";
import {validateField} from "../validations/userValidation";
import {ToastContext} from "./ToastContext";
im... |
import React, {useCallback} from 'react';
import {SafeAreaView, ScrollView, StyleSheet, TouchableOpacity, View} from 'react-native';
import {staticTheme, useTheme} from '../style/theming';
import {ThemedText} from './ThemedText';
import {useAuth} from '../services/auth';
import {JamImage} from './JamImage';
import {Nav... |
import { NseIndia, ApiList } from '../index'
import ora from 'ora'
import chalk from 'chalk'
import ohlc from 'ohlc'
import moment from 'moment'
import asciichart from 'asciichart'
const rupee = '₹'
const nse = new NseIndia()
export async function showIndexOverview() {
const spinner = ora()
spinner.text = 'Lo... |
<gh_stars>0
import {AfterViewInit, Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
import {MatPaginator, MatSort, MatTableDataSource, Sort} from '@angular/material';
import {SelectionModel} from '@angular/cdk/collections';
import {Observable, Subscription} from 'rxjs';
import {Router} ... |
/**
* Copyright 2017-present Palantir Technologies, Inc. All rights reserved.
* Licensed under the MIT License (the "License"); you may obtain a copy of the
* license at https://github.com/palantir/typesettable/blob/develop/LICENSE
*/
import { IPenFactoryContext } from "../contexts";
import { AbstractMeasurer } fr... |
/**
* @fileoverview Defines Grid and exports all public exports
*/
import * as React from "react";
import { v4 } from "uuid";
import {
Scalar,
defaultKeyMap,
Grid as GridModel,
Motion,
KeyEvent,
Reconciliation,
} from "../model";
export * from "./cell";
export {
Grid as GridModel,
Scalar,
Reconcili... |
import test from 'tape'
import { LocalAddress, CryptoUtils } from '../../index'
import { createTestClient, waitForMillisecondsAsync } from '../helpers'
import { LoomProvider } from '../../loom-provider'
import { deployContract } from '../evm-helpers'
// import Web3 from 'web3'
const Web3 = require('web3')
/**
* Re... |
import { strict as assert } from 'assert';
import Axios from 'axios';
import crypto from 'crypto';
import { Market } from 'crypto-markets';
import { USER_CONFIG } from '../config';
import { convertPriceAndQuantityToStrings } from '../util';
import debug from '../util/debug';
import { Params, sort } from '../util/whalee... |
<reponame>desfero/platform-frontend<gh_stars>0
import { call, Effect, put, race, select, take } from "@neufund/sagas";
import { EWalletType } from "@neufund/shared-modules";
import { assertNever, invariant } from "@neufund/shared-utils";
import { GenericErrorMessage } from "../../components/translatedMessages/messages... |
import messageOptions from './message-options'
enum AndroidMessagePriority {
Normal = 'NORMAL',
High = 'HIGH',
}
interface MessageOptions {
data?: { [key: string]: string }
/**
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#Notification
*/
notification?: {
title?: strin... |
<gh_stars>0
import Key, { SearchKey, ModelKey } from "../Key"
import MemoryStore from "./MemoryStore"
import { Value } from "../Store"
import Serializer from "../Serializer"
import Namespace from "../Namespace"
import Record from "../../data/Record"
import * as common from "../../utility/common"
import {Firestore as Go... |
<reponame>herik-silva/bothm<filename>src/PalavrasReservadas.ts
import { Client, Message, decryptMedia } from "@open-wa/wa-automate";
import fs from "fs";
import request from "request";
import resizeImg from "resize-img";
class PalavrasReservadas {
private prefixo: string = "!";
private comandoAjuda: str... |
type ExecuteOptions = {
strictGlobal?: boolean
publicPath?: string
}
const PATH_COMMANDS = {
PREV: -1,
NEXT: 1,
SEEK: 2,
END: 4
}
function isRelative(path: string) {
return path[0] !== '/'
}
function hasProtocol(path: string) {
return /^\w+:[\\/]{2}/.test(path)
}
function isPath(path: string) {
re... |
import React, { Component } from 'react';
import { RouteComponentProps } from 'react-router';
import { connect } from 'react-redux';
import { ApplicationState } from '../../../store';
import * as BookmarksStore from '../../../store/Bookmarks';
import Button from '../../UI/Button/Button';
import Input, { ElementConfig ... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { Button, Header, Message, Popup, Segment } from "semantic-ui-react";
import { ActiveBet, DetailedWager, Group, GroupMember, User } from "../lib/v1";
import ActiveBetsTable from "./ActiveBetsTable";
interface Props {
group: Gro... |
<gh_stars>10-100
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from... |
<filename>src/data_accessors/sql/query_time_range_of_version_connection.ts
import {DateTime} from 'luxon';
import Bluebird from 'bluebird';
import Knex from 'knex';
import {
ITableAndColumnNames,
IVersionConnectionInfo,
NodeInConnection,
ILoggerConfig,
IVersionConnection,
ExtractNodeFromVersion... |
import { Linter } from 'eslint';
const config: Linter.Config = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: '... |
<gh_stars>0
// IdxPropertyDetailsSubSection Component
// @stratusjs/idx/property/details-sub-section.component
// <stratus-idx-property-details-sub-section>
// --------------
// Runtime
import _ from 'lodash'
import {Stratus} from '@stratusjs/runtime/stratus'
import * as angular from 'angular'
// Services
import '@st... |
/**
* @license
* Copyright 2017 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 ... |
import { GID, gid } from '@shopfabrik/shopify-data';
import type { RequireExactlyOne } from 'type-fest';
import * as cache from '../../cache';
import { rest } from '../../client';
import { HttpResponseError } from '../../client/fetch';
import type { RestClienEnv } from '../../client/rest';
import { rio } from '../../ut... |
<filename>ts-src/util/math.ts<gh_stars>0
/**
* @fileOverview math util
* @author <EMAIL>
*/
import BaseUtil = require('./base');
const tolerance = 0.001;
const MathUtil0 = {
/**
* 是否在区间内
* @param {number} value 值
* @param {number} min 最小值
* @param {number} max 最大值
* @... |
import * as ts from "typescript";
import { ILog, getLog, TValueContainer } from "./globals";
const EXTENSION_NAME_OF = "__nameOf";
const EXTENSION_FIELDS_OF = "__fieldsOf";
let Log: ILog = {} as any;
let tsProgram: ts.Program = {} as any; //Rly rly unsafe
let tsTypeChecker: ts.TypeChecker = {} as any;
let tsContext: ... |
// Copyright 2020 Cartesi Pte. 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,... |
// Copyright (c) 2020-2021 Working Title, FlyByWire Simulations
// SPDX-License-Identifier: MIT
export enum AirportClass {
Unknown = 0,
Normal = 1,
SoftUnknown = 2, // TODO no idea but is "soft" according to waypoint.js
Seaplane = 3,
Heliport = 4,
Private = 5,
}
export enum AirportPrivateType ... |
// 🙈
import * as fs from "fs";
import * as url from "url";
import {
EngineDelegateEvent,
updateAllLoadedData,
EngineDelegateEventKind,
DependencyContent,
SheetInfo,
LoadedData,
PaperclipResourceWatcher,
ChangeKind,
EvaluatedDataKind,
DiffedPCData,
getImportById,
getImportBySrc,
DependencyNod... |
import React from 'react'
import { motion } from 'framer-motion'
import { css } from '@emotion/core'
import { useDispatch } from 'react-redux'
import { format } from 'date-fns'
import { FaFilter, FaExternalLinkSquareAlt } from 'react-icons/fa'
import { IoIosSearch } from 'react-icons/io'
import useWhatInput from 'react... |
import { EndpointOptions, getAuthorizerMetadataFromClass, getEndpointMetadataFromClass, getLambdaMetadataFromClass, LambdaOptions } from '@microgamma/apigator';
import { getDebugger } from '@microgamma/loggator';
import * as path from 'path';
import * as Serverless from 'serverless';
const debug = getDebugger('microg... |
import { Texture } from '../core/Texture';
import { KTXTexture } from './KTXTexture';
import { OGLRenderingContext } from '../core/Renderer';
// For compressed textures, generate using https://github.com/TimvanScherpenzeel/texture-compressor
let cache: { [key: string]: any; } = {};
const supportedExtensions = [];
exp... |
import { Client } from '../../core/client'
import { BaseClass, BaseResource } from '../base'
import { Image } from '../misc'
import { URL } from 'url'
export class ContentImage extends BaseClass {
public readonly jpg: Image
public readonly webp: Image
public constructor (client: Client, data: any) {
super(c... |
<gh_stars>1-10
/**
* Service Class to consume BCGW WFS service
*/
/**
* Imports
*/
import * as assert from 'assert';
import * as axios from 'axios';
import { PointTuple, getHTTPReqQueryString } from '../../libs/utilities';
import { LocationConverter, GeoMapUtility, GeoLocation, BaseLogger, DefaultLogger } from '../... |
// https://github.com/LinusU/blockhash-core
//
// The MIT License (MIT)
//
// Copyright (c) 2019 <NAME>
// Copyright (c) 2014 Commons Machinery
//
// 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 So... |
<gh_stars>1-10
import {
Stub,
StateQueryIterator,
HistoryQueryIterator,
Imp
} from 'fabric-shim';
import * as utf8 from 'utf8';
import * as ByteBuffer from 'bytebuffer';
import * as Long from 'long';
import * as db from './db';
class StateIterator {
private i: number = -1; // current index.
co... |
import { AfterContentInit, Component, OnInit } from '@angular/core';
import { CodeGen, CodeGenSettings } from '@app/core/state/page.state';
import { Store } from '@ngxs/store';
import { CodeGenKind, CodeGenService } from './codegen/codegen.service';
const githubIssueLink =
// tslint:disable-next-line:max-line-length... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { AppCompo... |
<gh_stars>100-1000
import { svelte2tsx } from '../build';
import assert from 'assert';
import { decode } from 'sourcemap-codec';
import { each_sample, GenerateFn, get_svelte2tsx_config, Sample } from '../helpers';
import { print_string } from './helpers';
import {
process_transformed_text,
is_edit_changed,
... |
/*
Copyright 2019, 2020 mx-puppet-tox
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, softwar... |
import { ReturnConfig } from "../config";
import { trimText } from "../utils/string";
import schemaArticles, { HexoSeo, SchemaAuthor } from "./schema/article";
import { isDev } from "..";
import { getTextPartialHtml } from "./dom";
import "js-prototypes";
import underscore from "underscore";
import { dumpOnce, extractS... |
import crypto from "crypto"
import { diffLines } from "diff"
import R from "ramda"
import stripAnsi from "strip-ansi"
import { v4 } from "uuid"
import { green, red } from "./colors"
/**
* @hidden
*/
export const indentLines = (string: string, indent = 2): string => {
const padding = " ".repeat(indent)
return str... |
/**
* Learn more about createBottomTabNavigator:
* https://reactnavigation.org/docs/bottom-tab-navigator
*/
import * as React from "react";
import { BottomTabParamList, TabOneParamList, TabTwoParamList } from "../types";
import { HStack, Icon, Image, VStack } from "native-base";
import { Text, View } from "../comp... |
import { createContext, useContext, useEffect, useState, ReactNode } from 'react'
import { ethers } from 'ethers'
import { AssetTransfersCategory, createAlchemyWeb3 } from '@alch/alchemy-web3'
import axios from 'axios'
import { slugs, collections } from 'helpers'
//const etherscanApiKey = process.env.NEXT_PUBLIC_ETHER... |
<gh_stars>0
// tslint:disable:no-invalid-this
import { encodeQuery, joinUrl } from './utils'
import { Omit } from './utils'
import { wrapped } from './wrap'
declare const wx: any
interface Options {
/**
* 远端地址. 若已设置 baseUrl 则可为相对地址
*/
url: string
/**
* querystring
*/
query?: string | Record<string,... |
<gh_stars>0
import app from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';
import 'firebase/storage';
import { IUser, IProduct } from 'types/types';
const firebaseConfig: Record<string, string | undefined> = {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
... |
<gh_stars>10-100
import { Article } from "./Article";
import { SortingType } from "./DataTypes";
export interface ArticleSorterConfig {
sortingEnabled: boolean;
filteringEnabled: boolean;
pinHotToTop: boolean;
sortingType: SortingType;
additionalSortingTypes: SortingType[];
}
export interface SortedArticles... |
import { ChangeEvent, useEffect, useRef, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import { toast } from 'react-toastify';
import { Button, Modal } from '..';
import { ModalInterface } from '../Modal';
import { IEmployee } from '../../interfaces/employee';
import { useRequest... |
<filename>src/common/debugDraw.ts
import { GrowableQuadArray, GrowableVec2Array, circleCentreArray, growableQuadArray, growableVec2Array } from './growableTypedArray'
const { box2D } = await import('./box2d')
const {
b2Color,
b2Draw: {
e_shapeBit,
e_particleBit
},
b2Vec2,
b2Transform,
getPointer,
... |
const translations = {
en: {
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: [
"January",
"February",
"March",
"April... |
import React, { Component, ComponentType } from 'react';
import { connect, ConnectedComponent } from 'react-redux';
import { IAssessment } from '../../../services/assessment/assessment';
import { UMLRelationship } from '../../../services/uml-relationship/uml-relationship';
import { IBoundary } from '../../../utils/geom... |
/**
* 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... |
import * as React from 'react';
import { StyleSheet, Text, TouchableOpacity, View, Alert } from 'react-native';
import { useDispatch, useSelector } from '@/store';
import { SvgXml } from 'react-native-svg';
import { useTranslation } from 'react-i18next';
import { DEVICE_LARGE } from '@/utils/deviceConstants';
import {
... |
<gh_stars>1-10
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { MicrotaskAssignmentRecord, MicrotaskRecord, TaskRecord, WorkerRecord } from '@karya/core';
import { knex } from '../Client';
import { updateSingle } from './BasicModel';
// TODO: Many functions here can be optimized
/*... |
import {
Feature,
FeatureCollection,
Geometries,
GeometryCollection,
lineString,
point,
polygon,
} from '@turf/helpers';
import { exportPdf, setActiveModal } from 'fm3/actions/mainActions';
import { toastsAdd } from 'fm3/actions/toastsActions';
import { httpRequest } from 'fm3/authAxios';
import { getMapL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.