text
stringlengths
3.08k
15.5k
<reponame>fullstorydev/fullstory-data-layer-observer import { OperatorValidator, OperatorOptions, Operator, safeUpdate, } from '../operator'; /** * A SuffixedObject is an object that has had FS types appended to properties. */ export type SuffixedObject = { [key: string]: SuffixableValue | SuffixedObject }; /** ...
/** * ============LICENSE_START======================================================================== * ONAP : ccsdk feature sdnr wt odlux * ================================================================================================= * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. Al...
///<reference path="../typings/tsd.d.ts" /> import rp = require('request-promise'); import cheerio = require('cheerio'); import path = require('path'); import url = require('url'); import db = require('../db/index'); import util = require('../utils/index'); import config = require('../config'); import event = require('...
// tslint:disable: no-parameter-reassignment import { LinearFilter, RGBFormat, Vector2, WebGLRenderTarget, WebGLRenderer } from 'three'; import { ConvolutionMaterial, KernelSize } from '../materials'; import { Pass, PassName } from '../core'; export interface BlurPassOptions { /** The blur render height. */ height...
<reponame>itmo-wad/Cozy_quiz import Timer from "./Timer"; // Class describing a Player class Player { name = "Player#" + Math.round(Math.random() * 9999); score = 0; socket: SocketIO.Socket; answer = -1; constructor(socket: SocketIO.Socket) { this.socket = socket; } setName(name: string) { this...
import groupVnode from './vnode/groupVnode' import documentEvent from './event/documentEvent' import { showLoding, removeLoding } from './vnode/loadingVnode' import { renderData } from './opera/renderData' import './eleTree.css' import { eleTreeConfig } from './config' import ajax from './opera/ajax' import getAllNodeD...
import { expect } from "chai"; import { DataSet } from "../src"; import { DataPipe, createNewDataPipeFrom } from "../src/data-pipe"; interface Item1 { whoami: string; enabled: boolean; bar: number; vis: Item2; } interface Item2 { myId: number; foo: string; updated: string; } const generateItem = (index...
<gh_stars>0 import { WIDTH, HEIGHT } from "./constants"; import * as constants from "./constants"; import * as GL from "./webgl-constants"; import type { Framebuffer } from "./framebuffer"; const PALETTE_SIZE = 4; export class WebGLCompositor { table: Uint32Array; colorBuffer: Uint32Array; paletteBuffer: ...
import * as path from 'path'; import ini = require('ini'); import * as fse from 'fs-extra'; import * as globby from 'globby'; import { AddUserConfig, UserGitConfig } from '../types'; import { GLOBAL_GITCONFIG_PATH, TOOLKIT_USER_GIT_CONFIG_DIR } from '../constants'; import log from '../utils/log'; import { updateSSHCo...
import * as React from "react"; import DateView from "@components/basic/date-view"; import { faExternalLink } from "@fortawesome/pro-duotone-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useCollapsePanel } from "@hooks/use-collapse-panel"; import { InstagramPost, StoredInstagram...
import colors from '@theme/colors'; import t from '@translate'; import React from 'react'; import { StyleSheet, Text, View, Image } from 'react-native'; import { formatDate, getDifferenceTime } from '../../utils/dateUtil'; import AbstractComponent from '@components/AbstractComponent'; import ICourse from '@models/Cours...
import * as React from 'react' import '../styles.scss' import ChoosePackage, { AccountingPackageToShow } from './ChoosePackage'; import AcceptTerms from './AcceptTerms'; import LinkProgress from './LinkProgress'; import Congratulations from './Congratulations'; import WorkingStep from './WorkingStep'; import ErrorPag...
import React from 'react'; import renderer from 'react-test-renderer'; import { render, wait, fireEvent, cleanup } from '@testing-library/react'; import { PropertyFilter } from './'; import * as MOCK from 'mocks/filterDataMock'; import axios from 'axios'; import { useKeycloak } from '@react-keycloak/web'; import { IGeo...
import { InformationCircleIcon } from '@heroicons/react/outline' import { ChartBarIcon } from '@heroicons/react/outline' import { useState, useEffect, useCallback } from 'react' import { Alert } from './components/alerts/Alert' import { Grid } from './components/grid/Grid' import { Keyboard } from './components/keyboar...
import { Course } from "./course.js"; import { Angle, Disk, TAU, Vec2 } from "./math.js" import { Wall } from "./wall.js"; const ACCELERATION = 0.05; const ON_TRACK_DRAG = 0.01; const OFF_TRACK_DRAG = 0.03; const WALL_RESTITUTION = 0.7; export class Kart { // Gas pedal, from 0 to 1. gas: number = 0.0; ...
import * as Promise from 'bluebird' import localForage = require('localforage') import { configure, observable } from 'mobx' import { Maybe } from 'monet' import Source from '../api/event' import { isResource } from '../api/requests/primitives' import { getHistory, // getHistoryStream, getParty, getPartyStream, ...
/* Imports: External */ import * as fs from 'fs' import * as path from 'path' import fetch from 'node-fetch' import { subtask, extendEnvironment } from 'hardhat/config' import { getCompilersDir } from 'hardhat/internal/util/global-dir' import { Artifacts } from 'hardhat/internal/artifacts' import { TASK_COMPILE_SOLID...
<reponame>lingo3d/lingo3d import { Model, keyboard, Sky, mouse, Octahedron, Cube, DirectionalLight, settings, ThirdPersonCamera, Reflector } from "../index" import { endPoint, mapRange } from "@lincode/math" import { random } from "@lincode/utils" // import Spring from "../api/Spring" import store, { createEffect } fr...
<filename>src/analyze.ts import { EventEmitter, Location, Position, Range, Uri, window, workspace } from "vscode"; import * as fs from "fs"; import { byLine, findLast } from "./util"; export interface FileInsights { filename: string; functions: FunctionInsights[]; } export interface FunctionInsights { nam...
import {ObjField, ObjParamsType} from '../../modules/rest/decorators'; import {AlbumOrderFields, AlbumType, ListType} from '../../types/enums'; import {ArgsType, Field, Float, ID, InputType, Int} from 'type-graphql'; import {FilterArgs, OrderByArgs, PaginatedFilterArgs} from '../base/base.args'; import {examples} from ...
<filename>projects/core/validation/validation.directive.ts<gh_stars>10-100 import {Directive, Input, OnInit, DoCheck, InjectionToken, Type, Inject, ViewContainerRef} from "@angular/core"; import {FormGroup, AbstractControl} from "@angular/forms"; import {Utils, MapOf} from "@sinequa/core/base"; import {LoadComponentSer...
/**********************************************************************************/ /* Copyright (c) 2021 Rhombus Systems */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a copy */ /* of this software and associated documentation files (the "Software"), to deal *...
import { rvmMessageBus, ConsoleMessage } from '../rvm/rvm_message_bus'; import { System } from '../api/system'; import { setTimeout } from 'timers'; import { Identity } from '../../shapes'; import * as coreState from '../core_state'; import { app as electronApp, Event } from 'electron'; /** * Interface for [sendToRVM]...
import { QueryEntity } from '@datorama/akita'; import { HealthStateState, HealthStateStore } from './health-state.store'; import { HealthStateEntity, OverallHealthStateByMetric, HealthState, OverallHealthState } from './health-state.entity'; import { Injectable } from '@angular/core'; import { map } from 'rxjs/operator...
import { Link } from 'gatsby'; import React from 'react'; import RandomContributor from '../RandomContributor'; import { FaTwitter, FaYoutube, FaGithub, FaSlack } from 'react-icons/fa'; import './Footer.scss'; export interface DropDownState { active: number; isOpen: boolean; shouldDropDownBlur: boolean; } const...
import { emitRef } from "@core"; export interface ComponentContext { emit(action: string, data?: any); } export interface Component { template: string; tagName: string; components: any[]; setup(self: ComponentInstance, parent?: ComponentInstance): any; } export interface ComponentInstance extends Component...
import * as React from 'react'; import { Attachment } from 'botframework-directlinejs'; import { AttachmentView } from './Attachment'; import { FormatState } from './Store'; interface CarouselProps { format: FormatState, measureParentHorizontalOverflow?: () => number, attachments: Attachment[], onCardA...
<filename>src/global/dataStore.ts import { Global, Resource, Tag, Company, GithubRepos, GDCTalks, Repo, Type } from './dataTypes'; /** * Global Accessor to server inner data. * Inner items should not be accessed directly. * Only internal functions are allowed to edit the data directly * Use helper ...
<reponame>iHDeveloper/spiget-typescript import { Generator } from "./generator"; import { Method } from "./swagger/method"; import { Parameter } from "./swagger/parameter"; import { WriteStream } from "fs"; import { camelize } from "./util"; /** * A common class that includes functions that both function and function...
<reponame>shevchenkobn/DrOwn-server import { TYPES } from '../di/types'; import * as http from 'http'; import * as url from 'url'; import * as SocketIOServer from 'socket.io'; import { inject, injectable } from 'inversify'; import { DroneModel, DroneStatus, IDrone } from '../models/drones.model'; import { ErrorCode, Lo...
<filename>lib/modelController.ts import * as THREE from 'three' import * as R from 'ramda' import { ModelData } from './modelDataParser' import { MeshRenderData } from './modelRenderer' /** * Calculates frame index by animation time, fps and frames number */ const getCurrentFrame = (time: nu...
<gh_stars>1-10 import fs from 'fs'; import path from 'path'; import { context } from '../core'; import { MigrationModel } from '../models'; import { matchSourceFileName, unixTime } from '../libraries'; export interface MigrationStatus { database: { name: string; version: string; }; migrations: MigrationM...
import { createAsyncAction, createAction } from "typesafe-actions"; import { User, Survey, ResponseAnswer, AuthCredentials, FullSurveyRequest, FullSurveyWithQnA, ReponseAnswerRequest, ReponseAnswerResponse, RespondedSurveys, Token, TitleRequest, } from "../models"; const REQUEST = "REQUEST"; cons...
<filename>bin/format.ts<gh_stars>1-10 import prettier from 'prettier'; import * as fs from 'fs/promises'; import { join, resolve } from 'path'; import { langs } from './prism.config'; import { options } from './prettier.config'; const ROOT = resolve('.'); const ROOTLEN = ROOT.length + 1; const isSILENT = process.argv...
import { Provider, web3, BN, Wallet } from "@project-serum/anchor"; import { AccountInfo, TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { useMemo, useState } from "react"; import { loadMainProgram } from "../../program"; import { getTokenAccount } from "../account/tokenAccount"; import { escrowAccount, mintPublic...
import { DateType } from '@mezzanine-ui/core/calendar'; import { ClockIcon } from '@mezzanine-ui/icons'; import { FocusEventHandler, forwardRef, KeyboardEventHandler, MouseEventHandler, useCallback, useContext, useMemo, useRef, useState, } from 'react'; import { useCalendarContext } from '../Calendar'...
/* eslint-disable max-len */ /* eslint-disable @typescript-eslint/no-unused-vars */ import { Readable } from "stream"; import { ConnectionOptions } from "tls"; import { DQLKeyword } from "./Statement"; export interface HDBClientOption extends ConnectionOptions { /** * @default 1024 */ fetchSize?: number; ...
<filename>src/pages/api/windows-terminal.ts<gh_stars>0 import type { NextApiRequest, NextApiResponse } from 'next' import { SettingsJsonData } from '~/models/SettingsJsonData' const settingsJson = `{ "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema", // open ...
<filename>lib/suggest.ts import leven from 'leven' import { PrettifyContext, TypedValue, SimpleValueType, getValueType, getTypedValueKey, getTypedValue, } from './types.js' import { style, printEnum, formatTypedValue } from './style.js' import { uniq } from './util.js' export interface SuggestOptions { limit?...
import { default as ImageDb, ImageType } from '../models/image' import { Log } from '../utils/log' import { ServiceError } from '../models/server/said-error' import { AdminRule, IAdmin } from '../models/admin' import { authentication } from '../services/admin-service' import { Express } from 'express' import { getMd5 }...
import { Component, OnInit } from '@angular/core'; import { WeChat } from '../../models/wechat.model'; import { RestClientService } from '../../../shared/services/rest-client.service'; import { forkJoin, Observable, observable } from 'rxjs'; import * as fs from 'fs'; import { HttpParams } from '@angular/common/http'; i...
<gh_stars>0 // import { ChainId } from '@pancakeswap-libs/sdk'; import { ChainId } from '@spookyswap/sdk'; import { Configuration } from './plat-finance/config'; import { BankInfo } from './plat-finance'; const configurations: { [env: string]: Configuration } = { development: { chainId: ChainId.FTMTESTNET, n...
/* eslint-disable max-len */ import { RouteComponentProps } from "@reach/router"; import { setTitle } from "lib/widgets"; import React, { lazy, Suspense } from "react"; import { useLogger } from "../lib/Logger"; import { BtnLink } from "./Buttons"; import { useUser } from "./context/UserContext"; import { MaterialIcon ...
import mem from 'mem' import { FileFormat, Violation, ReportItem, RuleUtils, RunOperation, ImageMetadata, RuleUtilsCreator, GetImageMetadata, SketchFile, RuleOption, Maybe, PointerValue, NodeArray, Node, ParentIterator, AssistantDefinition, RuleDefinition, ProcessedSketchFile, } fro...
import { Dictionary, InterruptChoice, UiTranslation } from "language/ILanguage"; import { InterruptOptions } from "newui/menu/InterruptMenu"; import { InputOptions } from "newui/util/Input"; export declare enum ScreenId { None = 0, Splash = 1, Menu = 2, Game = 3, Interrupt = 4, } export declare enum...
<filename>src/api/estados/paraiba.ts import { stateType } from "../../types/stateType"; const pb: stateType = { state: 'Paraiba', abbreviation: 'pb', cities: [ 'Água Branca', 'Aguiar', 'Alagoa Grande', 'Alagoa Nova', 'Alagoinha', 'Alcantil', 'Algodão de Jandaíra', 'Al...
/// <reference path="../_ref.d.ts" /> 'use strict'; import path = require('path'); import Lazy = require('lazy.js'); import Promise = require('bluebird'); import util = require('../util/util'); import File = require('./File'); import IFileDict = require('./IFileDict'); import IFileArrDict = require('./IFileArrDict'...
<gh_stars>0 // Type definitions for react-native-tableview // Project: https://github.com/aksonov/react-native-tableview // Definitions by: <NAME> <https://github.com/iRoachie> // TypeScript Version: 2.6 import * as React from 'react' import { ViewStyle, Insets, PointPropType, NativeSyntheticEvent, NativeScr...
import React, { useState, useEffect } from "react"; import ImportForm from "./ImportForm"; import LoadingPage from "./LoadingPage"; import Account from "../models/Account"; import Season from "../models/Season"; import Match from "../models/Match"; import LayoutChildrenContainer from "./LayoutChildrenContainer"; inter...
import { Set, OrderedSet, Collection } from "immutable"; import * as pluralize from "pluralize"; import { Chance } from "chance"; import { panic, defined, assert, mapOptional } from "./Support"; import { TypeAttributeKind, TypeAttributes } from "./TypeAttributes"; import { splitIntoWords } from "./Strings"; let chanc...
import { readdirSync, readFileSync } from "fs"; import { sync as glob } from "glob"; import { parse, resolve } from "path"; import * as React from "react"; import { renderToStaticMarkup } from "react-dom/server"; import { minify } from "terser"; import { description } from "../package.json"; import { getCDN } from "./c...
/** * SVG Path rounding function. Takes an input path string and outputs a path * string where all line-line corners have been rounded. Only supports absolute * commands at the moment. * * @param pathString The SVG input path * @param radius The amount to round the corners, either a value in the SVG * ...
<filename>packages/proxy/src/handler.ts import { CloudFrontHeaders, CloudFrontResultResponse, CloudFrontRequestEvent, CloudFrontRequest, } from 'aws-lambda'; import { appendQuerystring } from './util/append-querystring'; import { fetchProxyConfig } from './actions/fetch-proxy-config'; import { generateCloudFro...
// Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = "production"; process.env.NODE_ENV = "production"; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will // terminate the ...
<reponame>njmaeff/vscoq 'use strict'; import {Position, Range} from 'vscode'; // 'sticky' flag is not yet supported :() const lineEndingRE = /([^\r\n]*)(\r\n|\r|\n)?/; export interface RangeDelta { start: Position; end: Position; linesDelta: number; charactersDelta: number; // delta for positions on the same...
import Link from 'next/link'; import { useRouter } from 'next/router'; import { ReactNode, useMemo } from 'react'; import Loader from 'react-loader-spinner'; import styled from 'styled-components'; import { PageStatus } from '~/domains/Page'; import { usePageByPageId } from '~/stores/page'; import { usePageForAddToD...
#!/usr/bin/env node import * as program from "commander"; import MeetupToken from "./src/MeetupToken"; program .option('-k, --key <key>', 'Meetup API key') .option('-m, --meetupName <meetupName>', 'Meetup name. eg SydEthereum') .option('-h, --wshost <wsHost>', 'Host of WS-RPC server listening interface (de...
import { DSObserver, getExpose } from "@/visual-ds/structure/base"; import { Queue } from "@/visual-ds/structure/queue"; import * as d3 from 'd3'; import {D3Renderer,GSelection,Selection} from "./general"; import { makeProps } from "./utils/prop"; import { translate } from "./utils/svg"; export interface QueueD3Render...
import Vue from 'vue'; import { notification, context, data, window } from '@shopware-ag/admin-extension-sdk'; const { repository, Classes: { Criteria } } = data; export default Vue.extend({ template: ` <div> <h1>Hello from the new Menu Page</h1> <div> <h3>Context ...
<filename>src/index.ts import { fromMapFileSource, fromSource } from 'convert-source-map' import path from 'path' import { Application, Context, Converter, DeclarationReflection, ParameterReflection, ProjectReflection, ReferenceType, Reflection, SignatureReflection, SomeType, Type, TypeKindMap, ...
import type MarkdownIt from 'markdown-it' import regexp from '@traptitech/markdown-it-regexp' import { escapeHtml } from './util' import type { Store } from './Store' import { animeEffects, sizeEffects } from './data/stampEffects' let store: Readonly<Pick<Store, 'getUserByName' | 'getStampByName'>> let baseUrl = '' e...
import { notImplemented } from "../bdsx/bdsx/common"; import { templateName } from "../bdsx/bdsx/templatename"; import { PdbId } from "./symbolparser"; interface Identifier extends PdbId<PdbId.Data> { filted?:boolean; } class ReplacingMap { private replacedCount = 0; constructor(public item:Identifier) ...
import { API, Logger, PlatformConfig, } from 'homebridge' import fs from 'fs-extra' import axios from 'axios' import { LAUNDRIFY_CONFIG_FILE, LAUNDRIFY_BASEURL } from '../settings' const {version: pluginVersion} = require('../../package.json') interface LaundrifyConfig { pluginVersion: string updatedAt: string...
export interface DecodeErrorStrategy<T> { report(expected: string, actual: any, path: string): T; is(value: any): value is T; } export const formatErrorMessage = ( expectedTypeName: string, actual: any, path: string ) => { const adjustedPath = path === "" ? "." : path; const typeOf = typeof actual; con...
import React, { Component } from 'react'; import { VisibleModal } from '../../../common'; import { ReactComponent as Close } from '../../../../assets/icons/ic-close.svg'; import { ReactComponent as Tip } from '../../../../assets/icons/ic-bulb.svg'; import { renderCategoryTag } from './deploymentMetrics.util'; import { ...
<gh_stars>1-10 import { _decorator, Component, Node, Graphics, Prefab, director, instantiate, tween, Vec3, input, Input, EventKeyboard, KeyCode, AudioSource, Label } from 'cc'; import { com } from '../Common'; const { ccclass, property } = _decorator; /** * Predefined variables * Name = Game * DateTime = Thu Dec 23...
import { CopyOutlined, LeftOutlined, ShareAltOutlined } from '@ant-design/icons'; import { getApolloContext } from '@apollo/client'; import { Button, Input, Modal, Tabs } from 'antd'; import Text from 'antd/lib/typography/Text'; import Title from 'antd/lib/typography/Title'; import { useTranslation } from 'next-i18next...
import React from 'react' import styled from 'styled-components/macro' import { SwipeDirection } from '../util/constants' type DummyCardProps = { x: number y: number r: number layer: number } type CardProps = { image: string title: string text: string location: string leftAction?: ...
// // Copyright (c) Microsoft. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // import express from 'express'; import asyncHandler from 'express-async-handler'; const router = express.Router(); import { ReposAppRequest, IProviders, UserAlertType } from '../../.....
import { faCheck, faEquals, faExclamation, faTimes } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { useState } from 'react'; import styled from 'styled-components'; import { CalculatedDataColumn, DataColumn, DataTopic } from '../../../data/typ...
<reponame>drewp/megasecond<filename>client/SyncColyseusToEcs.ts<gh_stars>1-10 import { MapSchema } from "@colyseus/schema"; import { Component, ComponentClass, Engine } from "@trixt0r/ecs"; import { Vector3 } from "babylonjs"; import { LocallyDriven } from "../client/Components"; import { componentConversions, S_Transf...
<reponame>eloisetwaine/cypress import type { ClientTestContext } from './clientTestContext' import { makeClientTestContext } from './clientTestContext' import '@testing-library/cypress/add-commands' import type { MountingOptions } from '@vue/test-utils' import type { CyMountOptions } from 'cypress/vue' import { mount }...
<filename>src/plugin.ts // Based on https://github.com/zeit/next.js/blob/canary/packages/next/build/babel/plugins/next-ssg-transform.ts import pathLib from 'path' import { NodePath, PluginObj, parse } from '@babel/core' import * as BabelTypes from '@babel/types' export const EXPORT_NAME_GET_STATIC_PROPS = 'getStatic...
import * as Bluebird from 'bluebird' import BigNumber from 'bignumber.js' import { getManager } from 'typeorm' import { init, DashboardEntity } from 'orm' import { startOfDay } from 'date-fns' import * as lcd from 'lib/lcd' import { plus } from 'lib/math' import { init as initToken, getToken } from 'service/treasury/to...
<reponame>Matt23488/YouTubeMusicSucks import { useState, useEffect } from 'react'; import AsyncStorage from '@react-native-async-storage/async-storage'; import uuid from 'react-native-uuid'; import RNAndroidAudioStore from '@yajanarao/react-native-get-music-files'; import { groupIntoObject } from './assorted'; const s...
<filename>packages/opds-web-client/src/interfaces.ts import AuthPlugin from "./AuthPlugin"; export const ATOM_MEDIA_TYPE = 'text/html;profile="http://librarysimplified.org/terms/profiles/streaming-media"'; export const AXIS_NOW_WEBPUB_MEDIA_TYPE = "application/vnd.librarysimplified.axisnow+json"; export type Rea...
<reponame>hannaatmsft/Azure-AppServices-Diagnostics-Portal<filename>AngularApp/projects/app-service-diagnostics/src/app/shared-v2/services/content.service.ts import {map, mergeMap, tap } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import { Observable, of, BehaviorSubject, Subject, ReplaySubject ...
/*/// <reference path="Q.d.ts"/>*/ declare var J$:Sandbox; interface InvokeFunPreResult { f: any base: any args: any[] skip: boolean } interface Result { result: any } interface GetFieldPreResult { base: any offset: any skip: boolean } interface PutFieldPreResult { base: any of...
import { Style, Styles } from 'jss'; import { Theme } from '../styles'; const root: Style = (theme: Theme) => ({ color: 'rgba(0, 0, 0, 0.87)', padding: [6, 16], fontSize: theme.typography.fontSize.medium, minWidth: 64, boxSizing: 'border-box', transition: 'background-color 250ms cubic-bezier(0....
import React, { useState } from "react"; import Stepper from "@mui/material/Stepper"; import Box from "@mui/material/Box"; import Step from "@mui/material/Step"; import StepLabel from "@mui/material/StepLabel"; import StepContent from "@mui/material/StepContent"; import Button from "@mui/material/Button"; import Paper ...
<gh_stars>0 import { spawn } from 'child_process' import { Request, Response, Router } from 'express' import * as http from 'http' import * as path from 'path' import { getErrorMessage, MachineLog, MachineModelInformation, MachineModelTrainedInformation, MachineTelemetry, PredictionResult, } from 'scs-pm-co...
import { InformationCircleIcon } from "@heroicons/react/outline"; import { useState, useEffect } from "react"; import { Alert } from "./components/alerts/Alert"; import { Grid } from "./components/grid/Grid"; import { Keyboard } from "./components/keyboard/Keyboard"; import { AboutModal } from "./components/modals/Abou...
<gh_stars>0 import * as fs from 'fs'; const inputPath = process.argv[2]; if (inputPath == null) { console.log('Missing clientlib path\n Usage\n\tdeobs.js <path-to-client-lib>'); process.exit(1); } console.log('ClientLib:Path', inputPath); const OutputPath = './output/'; if (!fs.existsSync(OutputPath)) { ...
/** Defines the values to use for specifying the source and destination blend factors. A blend factor represents a particular four-value vector that is multiplied with the source or destination color in the blending formula. The blending formula is: ``` result = source * sourceFactor + destination * destinationF...
<reponame>scaffolds00/type-dynamodb<gh_stars>10-100 import { db } from './dbConnection'; import { updateExpressionParams } from './helper/update'; import { ClassConstructor, plainToClass } from 'class-transformer'; import { ClassType } from '../utils'; import { getMetadataStorage } from '../metadata'; import { FieldsF...
import React from 'react'; import { ReactElement } from 'react'; import type { IContent, ISearchTerm, ISite } from '../../../lib/types'; import Card from '../../Card'; import { ICardContainerProps } from '../../Card/Container'; import { ICardDescriptionProps } from '../../Card/Description'; import { ICardReadButtonProp...
import getActionTypes from './actionTypes'; import moduleStatuses from './moduleStatuses'; import Enum from '../utils/enum'; import flatten from '../utils/flatten'; import event from '../utils/event'; export type State<T> = T; export interface Reducer { (state: State<any>, action: Action): State<any>; } export type...
import { Task } from 'fp-ts/lib/Task'; import { Option } from 'fp-ts/lib/Option'; import * as Option_ from 'fp-ts/lib/Option'; import { name, version } from '../../package.json'; import * as scrapqlQuery from '../query'; import { Context, Build, QueryProcessor } from '../types'; import { init } from '../scrapql'; in...
import firebase from "firebase/compat/app"; import { isArray, mergeWith } from "lodash"; import { v4 as uuidv4 } from "uuid"; import { EDGE_FIELD, EntityCollection, reverseEdgeName, } from "./database_constants"; import { BackEdge, Edge, Edges } from "./edges"; import EntityFactory from "./entityFactory"; import ...
import { HttpClient } from '@angular/common/http'; import Swal from "sweetalert2"; import {LlamadasAPI} from "./llamadas-api"; export class LogicaJuego { colores = ["#f94144", // Rojo "#f9c74f", // Amarillo "#90be6d", // Verde "#0a9396", // Azul "#6a4c93", ...
<reponame>ATLAS-P/Programming-Hub //needs major cleanups splitting up etc.. interface Response { success: boolean err?: string html: string } let project: string let assignment: string let projectType:string let result: Response let bestScript: string let hasStudents = false let canSubmit = false name...
import React, { useEffect } from "react"; import Hiepngu from "../../static/Hiep_Ngu.jpg"; import Minhkhue from "../../static/Minh_Khue.jpeg"; import BachThao from "../../static/Bach_Thao.jpg"; import { useState } from "react"; import { Grid, IconButton, Typography } from "@material-ui/core"; import BackGroundCool fro...
// export function obj_getProperty(obj, property) { // let chain = property.split('.'), // imax = chain.length, // i = -1; // while (++i < imax) { // if (obj == null) // return null; import { is_Array, is_Object, obj_getProperty, obj_setProperty } from 'atma-utils'; import...
import clsx from "clsx" import { Transition, Variants, m as motion } from "framer-motion" import { useRouter } from "next/router" import { ComponentProps } from "react" import { useSystemTheme } from "../../hooks/use-system-theme" import { springiest } from "../../transitions" const themeTransition: Transition = { d...
<filename>src/commands/message.ts<gh_stars>0 import { Message } from 'discord.js'; import { ICommand } from '../ICommand'; import { getAttachments } from '../utils/getAttachments'; import logger from '../utils/logger'; import Discord from 'discord.js'; import { query } from '../mysql'; import config from '../config.js...
import * as React from "react"; import classnames from "classnames"; import moment from "moment"; import NumberInput from "../ctrl/NumberInput"; import UnionValue from "../model/UnionValue"; import Values from "../model/Values"; import Formatter, { FormatType, FormatOption, DecimalFormatOption, DateTime...
<gh_stars>0 /** * This module contains the base structure of a Gobstones Language code translation * for a specific locale. The exported member [[LocaleTokens]] * is the type in charge of how a locale translation is defined. * * @see [[LocaleDefinition]] to see how to define a locale based on another, or a full lo...
<gh_stars>1-10 /** * hive */ /* Node modules */ /* Third-party modules */ import { GetterTree, ActionTree, MutationTree } from 'vuex'; import { Vue } from 'vue-property-decorator'; /* Files */ import { IHive, IInspection } from '../../server/apiary/interfaces/apiary'; import { IPagination } from '../interfaces/pag...
<gh_stars>0 import { BrowserModule } from '@angular/platform-browser'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; impor...
<reponame>isavegas/elevatorsaga<gh_stars>1-10 declare const _: typeof import('lodash') import { getCodeObjFromCode, UserCodeObject, createFrameRequester, objectFactory } from './base.js' import { WorldController, WorldCreator } from './world.js' import { Challenge, WinCondition, ChallengeOptions } from './challenges.j...