text stringlengths 3.3k 33k |
|---|
// Copyright (c) 2018 by Audere
//
// Use of this source code is governed by an MIT-style license that
// can be found in the LICENSE file distributed with this file.
import * as Encounter from "audere-lib/hutchProtocol";
import * as Model from "audere-lib/common";
import { Locations as Sites } from "audere-lib/locati... |
import { Redirect, Router, Link } from '@reach/router'
import React from 'react'
import posed, { PoseGroup } from 'react-pose'
import AddApiKey from './components/AddApiKey'
import ApiKeys from './components/ApiKeys'
import Overview from './components/Overview'
import { Einstore } from './connector/Einstore'
import { C... |
<filename>src/vscode/window.ts
import { showMessage, showStatusBarMessage, showProgressMessage } from '../extension-host/bridge-api'
import OutputChannel from '../vscode/output-channel'
import { is, Watcher, uuid } from '../support/utils'
import { StatusBarAlignment } from '../vscode/types'
import { MessageKind } from ... |
/*
* Copyright © 2018 Atomist, 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... |
<reponame>stefb965/vs-deploy<gh_stars>0
/// <reference types="node" />
// The MIT License (MIT)
//
// vs-deploy (https://github.com/mkloubert/vs-deploy)
// Copyright (c) <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docu... |
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import { FormHandles } from '@unform/core';
import * as Yup from 'yup';
import { ExpandableItem } from '../ExpandableItem';
import { Input } from '../Input';
import { Container, Card, Cards, ResultCard } from './styles';
impo... |
// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/language/visitor.js
import inspect from '../jsutils/inspect.js';
import { isNode } from './ast.js';
/**
* A visitor is provided to visit, it contains the collection of
* relevant functions to be called during the visitor's traversal.
*/
export const Quer... |
import ClassName from "../Enum/ClassName";
import { Func } from "./Func";
import { Trait } from "./Trait";
export enum BuffAction {
NONE = "none",
COMMAND_ATK = "commandAtk",
COMMAND_DEF = "commandDef",
ATK = "atk",
DEFENCE = "defence",
DEFENCE_PIERCE = "defencePierce",
SPECIALDEFENCE = "sp... |
<gh_stars>0
import * as cdk from '@aws-cdk/core';
import EC2 = require('@aws-cdk/aws-ec2');
import { CfnEIP, CfnEIPAssociation, CfnInternetGateway, CfnNatGateway, CfnNetworkInterface, CfnRoute, CfnRouteTable, CfnSubnetNetworkAclAssociation, CfnSubnetRouteTableAssociation, CfnVPCGatewayAttachment } from '@aws-cdk/aws-ec... |
import crypto from "crypto";
import urlSearchParams from '@ungap/url-search-params';
import {APIErrors} from "./resources/APIErrors";
import {APITasks} from "./resources/APITasks";
import {ITranslations} from "./resources/TranslatableTemplate";
import {APIAbortController} from "./APIAbortController";
import {APIError} ... |
<filename>src/app/gcps-utils.service.ts
import { Injectable } from '@angular/core';
import * as defs from 'node_modules/epsg/crs-defs.json';
@Injectable({
providedIn: 'root'
})
export class GcpsUtilsService {
constructor() { }
public getProjection(projection: string): Projection {
if (typeof proj... |
<gh_stars>0
import Cartographic from 'cesium/Source/Core/Cartographic';
import Matrix4 from 'cesium/Source/Core/Matrix4';
import Cartesian3 from 'cesium/Source/Core/Cartesian3';
import {
getDirectionFromPoints,
pickCenter,
projectPointOntoVector,
} from '../cesiumutils';
import Rectangle from 'cesium/Source/Core/... |
import { VitepressPlugin, MarkdownEnv } from '@oak-tree-house/vitepress'
import { createCanvas } from 'canvas'
import StateInline from 'markdown-it/lib/rules_inline/state_inline'
import StateBlock from 'markdown-it/lib/rules_block/state_block'
import path from 'path'
import md5 from 'md5'
// eslint-disable-next-line @t... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from '../../react-class/autoBind';
import cleanProps from... |
import React, { useEffect, useState, useRef } from 'react';
import { useParams, Link } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import PageLayout from '@/components/pageLayout';
import { Button, Table, Input, Switch, message, List, Row, Col, Pagination, Modal } from 'antd';
impor... |
<reponame>wyattzheng/universe
import { AddActorEvent, MoveActorEvent, RemoveActorEvent, ActorUpdateAttrsEvent } from '../event/server';
import { Square2, Vector2 } from '../utils/vector2';
import type { PlayerManager } from '../player/player-manager';
import type { Server } from '../server';
import type { World } from ... |
<reponame>sharkyze/daily-node
import Axios, { AxiosInstance, AxiosRequestConfig } from "axios";
import { camelCase, snakeCase } from "./switch-case";
export interface DomainConfig {
// Whether "Powered by Daily.co" displays in the in-call UI.
// The default value depends on the plan that the domain is subscribed t... |
<filename>components/RuiScrollTo/src/RuiScrollTo.ts
/**
* Copyright Deloitte Digital 2019
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
import {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';
imp... |
import React, { useCallback, useEffect, useState } from 'react';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import InputBase from '@material-ui/co... |
<reponame>jaeminkim-com/radixdlt-js
import { BehaviorSubject, Subject } from 'rxjs/Rx'
import { Client } from 'rpc-websockets'
import RadixNode from './RadixNode'
import { RadixAtom, RadixEUID, RadixSerializer, RadixAtomUpdate } from '../RadixAtomModel'
import { logger } from '../common/RadixLogger'
import events fr... |
import type {Pointer} from '@theatre/dataverse'
import {prism, val} from '@theatre/dataverse'
import {usePrism} from '@theatre/react'
import type {$IntentionalAny, IRange} from '@theatre/shared/utils/types'
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
import getStudio from '@theatre/studio/getStudi... |
import zxcvbn, { IZXCVBNResult } from "zxcvbn-typescript";
import Mustache from "mustache";
import $ from "jquery";
const test_passwords = `\
zxcvbn
qwER43@!
Tr0ub4dour&3
correcthorsebatterystaple
coRrecth0rseba++ery9.23.2007staple$
p@ssword
p@$$word
123456
123456789
11111111
zxcvbnm,./
love88
angel08
monkey13
ilovey... |
// deno task codegen-scraper > ./tmp/codegen-scraper.out
// This is a blunt tool that will produce output from the SDL headers
// that can then be fed directly into the codegen.
const EXT_PATH = "../ext";
const SDL_PATH = `${EXT_PATH}/SDL`;
const KHRONOS_PATH = `${EXT_PATH}/khronos`;
const OUTPUT_PATH = "../tmp";
le... |
<filename>src/config/types/service.ts
import * as t from 'io-ts';
import { setDefault } from '../../util/defaultable';
import { IoContext } from '../../util/io-context';
import { createError, intoFailure, intoSuccess, IoErrors } from '../../util/io-errors';
import { mask } from '../../util/maskable';
import { merge } ... |
import {
Alert,
AlertDescription,
AlertIcon,
AlertTitle,
Box,
Button,
Center,
FormControl,
Heading,
Image,
Select,
SimpleGrid,
Text,
} from "@chakra-ui/react";
import { withUrqlClient } from "next-urql";
import React, { useState } from "react";
import { InterfaceUI } from "../components/Interf... |
import { ReactNode, useCallback, useEffect, useState } from 'react';
import Image from 'next/image';
import VisionLayout from '../components/VisionLayout';
import testimonial_1 from '../public/testimonial_1.png';
import testimonial_2 from '../public/testimonial_2.png';
import testimonial_3 from '../public/testimonial_3... |
<filename>FrontEnd/Sailfish-JS-report/src/actions/actionCreators.ts<gh_stars>10-100
/******************************************************************************
* Copyright 2009-2020 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... |
<reponame>ahnuchen/jira
const de = {
message: {
new_connection: 'Neue Verbindung',
refresh_connection: 'Aktualisieren',
edit_connection: 'Verbindung bearbeiten',
del_connection: 'Verbindung löschen',
close_connection: 'Verbindung schließen',
add_new_line: 'Neue Zeile hinzufügen',
redis_ver... |
<reponame>terascope/kafka-assets<filename>asset/src/_kafka_clients/base-client.ts
import { EventEmitter } from 'events';
import {
Logger, isError, pDelay, once
} from '@terascope/job-components';
import type * as kafka from 'node-rdkafka';
import {
isOkayError,
wrapError,
isKafkaError,
AnyKafkaError... |
<gh_stars>1-10
import { Entity } from '../../ecs/classes/Entity'
import { System, SystemAttributes } from '../../ecs/classes/System'
import { Network } from '../../networking/classes/Network'
import { NetworkObject } from '../../networking/components/NetworkObject'
import { Game } from '../components/Game'
import { Tr... |
<reponame>psnwd/Fire
import { ApplicationCommandMessage } from "@fire/lib/extensions/appcommandmessage";
import { FireGuild } from "@fire/lib/extensions/guild";
import { FireMember } from "@fire/lib/extensions/guildmember";
import { FireUser } from "@fire/lib/extensions/user";
import { Command } from "@fire/lib/util/co... |
import * as _ from 'lodash';
import { Music, startState } from '../music';
function usePixelGraphics(game: Phaser.Game, pixelsPerPixel: number) {
game.scale.scaleMode = Phaser.ScaleManager.USER_SCALE;
game.scale.setUserScale(pixelsPerPixel, pixelsPerPixel);
game.renderer.renderSession.roundPixels = true;
Phas... |
import { Link } from '@reach/router';
import { Button, Card, Col, Divider, Grid, Layout, Row } from 'antd';
import Navbar from 'components/Navbar';
import SEO from 'components/SEO';
import SocialSection from 'components/SocialSection';
import { filter } from 'lodash';
import React, { useEffect, useState } from 'r... |
/**
* Copyright 2019 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... |
<gh_stars>0
///
/// Copyright © 2016-2020 The Thingsboard Authors
///
/// 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 * as vscode from 'vscode';
import * as cs from '../../cs';
import * as Security from '../../core/security/Types';
import Logger from '../framework/Logger';
import TelemetryReporter from "vscode-extension-telemetry";
import { extensionActivate, extensionDeactivate } from "../Extension";
import moment = require('m... |
import React from 'react';
import { Image, StyleSheet, Text, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { stylesGlobal } from '../../global/styles';
import Svg, {Defs, G, Path} from 'react-native-svg';
import Search from '../../components/Search';
import Card... |
import trunc from '../../core/trunc';
import type { TypeVector } from '../../Vector';
import type { Angles } from './index';
type DMSType = { deg: number; min: number; sec: number };
export const angleTypes = {
RAD: 'rad',
DEG: 'deg',
GON: 'gon',
GRAD: 'gradian',
};
//--------------------------------//
// ... |
<reponame>tbarlow12/labyrinth
import commandLineUsage, {Section} from 'command-line-usage';
import fs from 'fs';
import minimist from 'minimist';
import {Universe} from '../dimensions';
import {
AnyRuleSpec,
dumpGraphAsYamlText,
// formatNodeName,
Graph,
GraphBuilder,
loadYamlGraphSpecFile,
Node,
Node... |
import * as angular from "angular";
import { ViewEncapsulation } from "./../../metadata/enums";
import { CssObject, CssContentType, CssRule, CssMedia, CssKeyframe } from "./../../metadata";
import { NgContentPrefix, NgHostPrefix } from "./template-parser";
const $A = angular.element;
const NgClassPrefix = NgContentPr... |
import React, { FunctionComponent, SyntheticEvent, useState, ChangeEvent } from 'react';
import Rating from 'react-rating';
import { useQuery } from '@apollo/react-hooks';
import { useObserver } from 'mobx-react-lite';
import classnames from 'classnames';
import Button from 'src/components/SharedLayout/Shared/Button';... |
<reponame>microsoft/msfs-avionics-mirror
/// <reference types="msfstypes/JS/simvar" />
import { EventBus, } from '../data/EventBus';
import { PublishPacer } from '../data/EventBusPacer';
import { EventSubscriber } from '../data/EventSubscriber';
import { SimVarValueType, SimVarDefinition } from '../data/SimVars';
impo... |
<filename>src/configs/base.ts
/* eslint-disable max-lines */
import type { ParserOptions } from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { ERROR, OFF, WARN } from './consts';
const parserOptions: ParserOptions = {
ecmaVersion: 6,
jsxPragma: null,
};
const base: Linter.Config = {
... |
//─────────────────────────────────────────────────────────────────────────────────────────────────┐
/**
* @file modules/sfdx-falcon-yeoman-command/index.ts
* @copyright <NAME> - 2018
* @author <NAME> <@VivekMChawla>
* @summary Exports an abstract class that adds support for running a Yeom... |
<reponame>mini-hot/mini-hot
import SplitChunksPlugin from 'webpack/lib/optimize/SplitChunksPlugin'
import { Template } from 'webpack'
import { isDynamicDep, getModuleId, normalizePublicPath, normalizeHotUpdateAssetsOutputPath } from './helper'
const path = require('path')
const PLUGIN_NAME = 'miniRemoteChunkPlugin'
... |
/*
* Copyright (C) 2021 The Wolfpack
* This file is part of wolves-metadata - https://github.com/wolvesofwallstreet/wolves-metadata
*
* SPDX-License-Identifier: Apache-2.0
* See LICENSE.txt for more information.
*/
/* eslint @typescript-eslint/no-explicit-any: "off" */
import { ImageData } from "canvas";
import... |
<filename>packages/workspace/src/workspace/hidden_values.ts
/*
* Copyright 2020 Salto Labs 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... |
import type { Command } from '@oclif/command'
import { template } from './template'
const getBootstrap = (rootCommandName: string) => {
const bootstrapTemplate = template`
__${'bin'}_debug()
{
if [[ -n \${BASH_COMP_DEBUG_FILE} ]]; then
echo "$*" >> "\${BASH_COMP_DEBUG_FILE}"
fi
}
# Homebrew on Macs have ver... |
<gh_stars>0
import {
Layer,
LayersList,
log,
PickingInfo,
UpdateParameters,
GetPickingInfoParams,
Viewport,
COORDINATE_SYSTEM,
DefaultProps
} from '@deck.gl/core';
import {GeoJsonLayer, GeoJsonLayerProps} from '@deck.gl/layers';
import {Matrix4} from '@math.gl/core';
import {MVTWorkerLoader} from '@lo... |
import { HttpErrorResponse } from '@angular/common/http';
import { Injectable, Optional } from '@angular/core';
import { DataServiceError, DefaultDataServiceConfig } from '@ngrx/data';
import { Update } from '@ngrx/entity';
import { from, Observable, of, throwError } from 'rxjs';
import { delay, map, timeout } from 'rx... |
import { Inject, Injectable, Logger, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CronExpression, SchedulerRegistry } from '@nestjs/schedule';
import { CronJob } from 'cron';
import { Not, Repository } from 'typeorm';
import * as BN from 'bn.js';
import { User... |
const { remote } = require('electron');
const { Menu } = remote;
const path = require('path');
import {
NotableFile,
ExplorerContexts
} from '../../interfaces';
import TimeAgo from '../../helpers/timeago';
import Events from '../Events/Events';
import IO from '../IO/IO';
import IOHandler from '../IO/IOHandler';
impo... |
import * as $ from 'jquery';
let im = null;
const Im: any = {};
(<any>window).Im = Im;
// 打印
function println(str) {
const $c = $('#console');
$c.val(`${str}\n${$c.val()}`);
}
// 监听事件
function doOn() {
// 监听im事件
im.on(Im.event.IM_TO_LOGIN, () => {
println('need to login');
});
im.on(Im.event.IM_TO_UP... |
<filename>src/TeleTitleBar/DefaultTitleBar/index.ts
import "./style.scss";
import { SideEffectManager } from "side-effect-manager";
import {
TeleBoxDragHandleType,
TELE_BOX_DELEGATE_EVENT,
TELE_BOX_STATE,
} from "../../TeleBox/constants";
import type { TeleBoxState } from "../../TeleBox/typings";
import t... |
<reponame>Ratismal/cat-loggr
import chalk from 'chalk';
import { Chalk, ColorSupport } from 'chalk';
import * as dayjs from 'dayjs';
import { format, inspect } from 'util';
import { WriteStream } from 'tty';
import * as util from 'util';
export class LoggrConfig {
public shardId?: number | string;
public shardLeng... |
// Copyright © 2017-2018 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause
import { Component, Input, OnChanges, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
import { StoryboardApi, Panel, Position, Layer } from '../api/storyboard.api';
import { ASSET_SERVER_URL } from '../api/... |
// MakerBit blocks supporting a Keyestudio Infrared Wireless Module Kit
// (receiver module+remote controller)
const enum IrButton {
//% block="On"
On = 0xA2,
//% block="Any"
Up = -1,
//% block="Menu"
Any = 0xE2,
//% block="T"
Left = 0x22,
//% block="+"
Ok = 0x02,
//% block="U"
Right = 0xc2,
... |
<filename>src/opcua-iiot-crawler.ts<gh_stars>10-100
/*
The BSD 3-Clause License
Copyright 2022 - DATATRONiQ GmbH (https://datatroniq.com)
Copyright (c) 2018,2019,2020,2021,2022 <NAME> (https://bianco-royal.space/)
Copyright 2015,2016 - <NAME>, Valmet Automation Inc. (node-red-contrib-opcua)
All rights reserved.
... |
import {
Button,
Toolbar,
ToolbarGroup,
ToolbarItem,
ToolbarSection,
} from '@patternfly/react-core';
import { css } from '@patternfly/react-styles';
import { Provider } from 'api/providers';
import { AxiosError } from 'axios';
import { EmptyFilterState } from 'components/state/emptyFilterState/emptyFilterSta... |
import { FC, useCallback, useEffect, useMemo, useState, useRef } from 'react';
import { BigNumber } from 'ethers';
import {
Alert,
Button,
Circle,
Flex,
HStack,
Text,
Tooltip,
Spinner,
} from '@chakra-ui/react';
import {
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHea... |
<filename>src/models/MonsterDefinition.tsx
import { v4 } from 'uuid';
import MonsterAbility from './MonsterAbility';
import MonsterAction from './MonsterAction';
/**
* A definition for the monster object
*
* Unfortunately a few of these fields which should be number can't
* due to the material UI's number input fi... |
import { useQuery } from '@apollo/react-hooks'
import { useFormik } from 'formik'
import _pickBy from 'lodash/pickBy'
import { useContext, useRef, useState } from 'react'
import {
Dialog,
Form,
IconExternalLink16,
LanguageContext,
Spinner,
Translate,
useMutation,
ViewerContext,
} from '~/components'
im... |
<filename>lib/webidl_conversions.ts
let exports: any = {};
function _(message: string, opts?: any) {
return `${opts && opts.context ? opts.context : "Value"} ${message}.`;
}
function type(V: any) {
if (V === null) {
return "Null";
}
switch (typeof V) {
case "undefined":
return "Undefined";
ca... |
import { BoxPanel, PanelLayout, Widget } from "@phosphor/widgets";
import { Cell, CodeCellModel } from "@jupyterlab/cells";
import { CodeEditorWrapper} from "@jupyterlab/codeeditor";
import { editorServices } from "@jupyterlab/codemirror";
import { INotebookTracker } from "@jupyterlab/notebook";
import {CELLTEST_TOOL... |
/**
* ResLoader2,封装资源的加载和卸载接口,隐藏新老资源底层差异
* 1. 加载资源接口
* 2. 卸载资源接口
*
* 2021-1-24 by 宝爷
*/
import ResManager from "./ResManager";
// 资源加载的处理回调
export type ProcessCallback = (completedCount: number, totalCount: number, item: any) => void;
// 资源加载的完成回调
export type CompletedCallback = (error: Error, res... |
<filename>src/decorators.ts
/**
* These decorators all apply the information they collect (whether class, method, or parameter data) as tagged metadata on the class's constructor
*/
import "reflect-metadata"
import { InjectableId } from "./injector"
import {
INJECT_METADATA_KEY,
INJECTABLE_METADATA_KEY,
OPTIONA... |
/**
* Wraps a frame-based generator, class, or pure function to produce a fast audio worklet.
*/
function simpleAudioWorklet(
implementation: Implementation,
{processOnly = false, parameterDescriptors = [], onmessage, registerAs}: SimpleAudioWorkletOptions = {},
): typeof AudioWorkletProcessor {
class Subclass ... |
import * as React from 'react';
import './App.css';
import { TVertexType, TVertexId } from '../lib/types';
import { getIdByCoords } from '../lib/traverse';
import { createGraphFromStringMap, updateBoardSize } from '../lib/graph';
import { updateGraphVertexById } from '../lib/vertex';
import { addGraphWormhole, removeG... |
import { AfterContentInit, AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { NotificationService } from '@progress/kendo-angular-notification';
import { Message } from '... |
<reponame>JonZeolla/incubator-metron
/**
* 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... |
import React from "dom-chef";
import { featureSet, onAjaxedPagesRaw } from "features";
import debounce from "lodash/debounce";
import select from "select-dom";
import * as api from "utils/api";
import { getFileType } from "utils/file-type";
import { observeEl } from "utils/mutation-observer";
import { isPRFiles } from ... |
<filename>index.ts<gh_stars>0
export const CODES = {
E2BIG: 'E2BIG',
ECCES: 'EACCES',
EADDRINUSE: 'EADDRINUSE',
EADDRNOTAVAIL: 'EADDRNOTAVAIL',
EAFNOSUPPORT: 'EAFNOSUPPORT',
EAGAIN: 'EAGAIN',
EALREADY: 'EALREADY',
EBADE: 'EBADE',
EBADF: 'EBADF',
EBADFD: 'EBADFD',
EBADMSG: 'EBADMSG',
EBADR: 'EBAD... |
import { Cpu } from '../cpu/index';
import { Memory } from './memory';
import { eightBitLoadFromGBMemoryWithTraps, eightBitLoadFromGBMemory } from './load';
import { eightBitStoreIntoGBMemoryWithTraps, eightBitStoreIntoGBMemory } from './store';
import { concatenateBytes, checkBitOnByte, setBitOnByte, resetBitOnByte, h... |
import { BarnInfo, BarnInput } from './types';
import { chain as andThen, either, Either, fold, left, map, right } from 'fp-ts/lib/Either';
import { separate, sequence } from 'fp-ts/lib/Array';
import moment, { Moment } from 'moment';
import { FeiloppsummeringFeil } from 'nav-frontend-skjema';
import { pipe } from 'fp-... |
import express from 'express';
import { Logger } from '@mazemasterjs/logger';
import DatabaseManager from '@mazemasterjs/database-manager/DatabaseManager';
import { Score } from '@mazemasterjs/shared-library/Score';
import { Trophy } from '@mazemasterjs/shared-library/Trophy';
import fs from 'fs';
import path from 'pat... |
import dishGenerator from "../../generators/dish.generator";
import { expect } from "chai";
const dishExample = {
"images": [
{
"id": "9e283567-3e6e-4da9-8944-0b91ec6fb646",
"images": {
"origin": "/images/72fe193c-ed34-4ee2-89e1-f22cb7f99e0d.png",
"small": "/images/27ed... |
import chalk from "chalk";
import dotenv from "dotenv";
import { Text, render, useApp } from "ink";
import fs from "node:fs/promises";
import { Fragment, createElement as h, useEffect, useState } from "react";
import * as af from "@olenbetong/appframe-data";
import { Client, setDefaultClient } from "@olenbetong/appfra... |
<reponame>whatasoda/multi-row-tweet-deck<gh_stars>1-10
import { v4 as uuid } from 'uuid';
import { createStoreModule } from '../utils/storeModule';
import { clamp } from '../utils/math';
import { MIN_DRAWER_WIDTH, MIN_COLUMN_WIDTH, MAX_GAP_SIZE } from '../constants';
export const [createMultiRowProfileAction, createMu... |
import { Vector2i, Assert, IsString, GetTreeNodesInObjTree, DeepGet, IsPrimitive, DeepSet } from 'js-vextensions';
import { observable } from 'mobx';
import { O, Validate, StoreAction } from 'vwebapp-framework';
import { UUID } from 'Utils/General/KeyGenerator';
import { store } from 'Store';
import { SplitStringBySlas... |
import { AxiosResponse } from 'axios'
import { Request, Response } from 'express'
import FormData from 'form-data'
import fs from 'fs'
import _ from 'lodash'
import qs from 'query-string'
import LoginConfig from '~/src/config/login'
import Base from '~/src/controller/proxy/base'
import http from '~/src/library/http'
im... |
import React, { useContext, useEffect, useState } from "react";
import {
Button,
Flex,
FormControl,
FormHelperText,
FormLabel,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
ModalOverlay,
Select,
Table,
Tbody,
Td,
Textarea,
Th,
Thead,
Tr,
} from "@cha... |
/**
* Copyright (c) 2021, Diabeloop
* Patient list for HCPs
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,... |
import * as events from 'events';
// Puppeteer Defaults
import * as Puppeteer from 'puppeteer';
const browserEvents = new events.EventEmitter();
export async function connect(options?: Puppeteer.ConnectOptions): Promise<Puppeteer.Browser> {
const browser = await Puppeteer.connect(options || {});
for (const plug... |
import * as React from "react";
import * as PropTypes from "prop-types";
import { Link } from "react-router-dom";
let logo_demo = require("assets/cybex_rainbow_lg.png");
import ReactSwipe from "react-swipe";
import * as fetchJson from "./service";
import { shortEnglishHumanizer } from "./service";
import "./transfer.sc... |
<reponame>JonathanWilbur/pkcs-ts<filename>source/modules/PKCS-15/EnvelopedData.ta.ts
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
Attribute,
_decode_Attribute,
_... |
<gh_stars>0
import { EntityContainer } from './entity'
import G from '../common/globals'
import FD from 'factorio-data'
import U from '../factorio-data/generators/util'
import Entity from '../factorio-data/entity'
import * as PIXI from 'pixi.js'
const hashConn = (conn: IConnection) => {
const firstE = Math.min(con... |
import type { Hook } from '@feathersjs/feathers';
import makeDebug from 'debug';
import type { FGraphQLHookOptions } from '../types';
import { getItems } from '../utils/get-items';
import { replaceItems } from '../utils/replace-items';
const debug = makeDebug('fgraphql');
const graphqlActions = ['Query', 'Mutation', '... |
import { DI, Primitive, isArrayIndex } from '@aurelia/kernel';
import {
AccessorOrObserver,
CollectionKind,
CollectionObserver,
IBindingTargetAccessor,
IBindingTargetObserver,
ICollectionObserver,
ILifecycle,
IObservable,
IObservedArray,
IObservedMap,
IObservedSet,
LifecycleFlags,
} from '../obs... |
<gh_stars>1-10
import Discord, { TextChannel, MessageEmbed, Message } from 'discord.js';
import { ChatModel } from '.';
import moment, { duration } from 'moment';
const queueCommands: string[] = ['!notify'];
const queueDLGames: string[] = ['dl','deadlocked','gladiator','rac4'];
const queueUYAGames: string[] = ['... |
<filename>src/utils.ts
import { log, BigInt, BigDecimal, Address } from '@graphprotocol/graph-ts'
import { Perpetual, LiquidityPool, PriceBucket, User, MarginAccount, LiquidityAccount, VoteAccount, Governor } from '../generated/schema'
import { ERC20 as ERC20Contract } from '../generated/Factory/ERC20'
import { Oracl... |
<reponame>pedropbazzo/angular-react-native-renderer<filename>src/events/hammer.ts<gh_stars>100-1000
if (typeof global['window'] === "undefined") global['window'] = global;
if (typeof global['document'] === "undefined") global['document'] = {createElement: () => {return {style: {}};}};
var hammer = (typeof global['windo... |
import m, {ClassComponent, Vnode} from "mithril";
import Publication from "../models/Publication";
import Ui from "../models/Ui";
import Slider from "../models/Slider";
import Peripherals from "../helpers/peripherals";
import sML from "../helpers/sMLstub";
import Spine from "./Spine";
import Page from "./Page";
import ... |
<reponame>dioris-moreno/opensips-mi-client
import Module from './Module';
import { Client } from '../';
const MODULE_NAME = 'dialog';
export class Dialog extends Module {
constructor(client: Client) {
super(client, MODULE_NAME);
}
/**
* Lists the description of the dialogs (calls). If no para... |
<gh_stars>0
import {Property, Flux,BuilderView, PluginFlux , SideEffects, Schema } from "@youwol/flux-core"
import {Object3D,Group,PointLight,Vector3,Box3} from 'three'
import { pack } from "./main";
import { ModuleViewer } from './viewer.module';
function createDefaultLights(
{scaling, object, intensity=0.5}:
... |
interface IconInfo {
id: number;
url: string;
title: string;
img: string;
name: string;
}
const Icons: IconInfo[] = [
{
id: 1,
url: 'https://www.ebsco.com/',
title: 'EBSCO Information Services',
img: '/images/footer/ebsco.png',
name: 'EBSCO Information Services',
},
{
id: 2,
url: 'http://www.woki... |
<filename>packages/backend/src/routes/search/get-search-result.ts
import dayjs from 'dayjs'
import { FastifyInstance, FastifyPluginOptions, FastifySchema } from 'fastify'
import {
DateRange,
events,
GetSearchResultReply,
GetSearchResultReplySchema,
GetSearchResultRequestQuerystring,
GetSearchResultRequestQ... |
<reponame>thinhnguyen1105/excado
import { readFile, utils } from 'xlsx';
import { brandRepository, BrandModel } from '../modules/machine-news/aggregates/brands/brands.repository';
import { config } from '@app/config';
import mongoose from 'mongoose';
import { categoryRepository, CategoryModel } from '../modules/machine... |
<gh_stars>1-10
import { ContentType } from '../models/ContentType';
import { EntryCandidate } from '../models/EntryCandidate';
import { FillNode } from '../models/FillNode';
import { GridSquare } from '../models/GridSquare';
import { GridState } from '../models/GridState';
import { GridWord } from '../models/GridWord';... |
import * as fs from "fs";
import * as path from "path";
import * as ejs from "ejs";
const moe = require("@toptensoftware/moe-js");
import * as sass from "node-sass";
import * as terser from "terser";
import * as htmlMinifer from "html-minifier";
import typescript from "typescript";
import marked from "marke... |
<filename>src/intern.ts
import { Game } from "./game"
enum ResourceType {
kResourceTypeAmiga,
kResourceTypeDOS,
kResourceTypeMac,
}
enum Language {
LANG_FR,
LANG_EN,
LANG_DE,
LANG_SP,
LANG_IT,
LANG_JP,
}
enum WidescreenMode {
kWidescreenNone,
kWidescreenAdjacentRooms,
kWidescreenMirrorRoom,
kWi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.