text
stringlengths
3.3k
33k
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import { DeclarationReference } from '@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference'; import { ApiItem, ApiItemKind, IApiItemJson } from '../items/ApiIt...
<reponame>Nymoth/business-cards<gh_stars>0 import { Injectable, Inject } from '@angular/core'; import { Http } from '@angular/http'; import { environment } from '../../environments/environment'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import { AuthService as SocialAuth } fr...
<reponame>toba/flickr<gh_stars>0 import { EventEmitter, Duration, is, addUnique, durationString, listDifference, } from '@toba/node-tools' import { Flickr, FlickrClient } from './' const defaultPollInterval = Duration.Minute * 5 /** * Set and collection IDs that have been added, removed or changed,...
<reponame>hmcts/fact-admin<gh_stars>1-10 import autobind from 'autobind-decorator'; import {AuthedRequest} from '../../../types/AuthedRequest'; import {Response} from 'express'; import {CourtType, CourtTypeItem, CourtTypePageData} from '../../../types/CourtType'; import {CSRF} from '../../../modules/csrf'; import {Cour...
import * as acorn from 'acorn'; import { walk } from 'estree-walker'; import { Property, Node, ObjectExpression, Expression } from 'estree'; import { id, re } from './utils/id'; import { get_comment_handlers, CommentWithLocation } from './utils/comments'; const sigils: Record<string, string> = { '@': 'AT', '#': 'HAS...
import { createThemeProvider, defaultPalette, francePalette, ultravioletPalette, defaultGetTypographyDesc, getIsPortraitOrientation, ViewPortOutOfRangeError, breakpointsValues, } from "onyxia-ui"; import type { ThemeProviderProps } from "onyxia-ui"; import { createIcon } from "onyxia-ui/...
import * as React from "react"; import { Button } from "../controls/Button"; import { EditorToggle } from "../controls/EditorToggle"; import { Input } from "../controls/Input"; import { MenuDropdown } from "../controls/MenuDropdown"; import { Textarea } from "../controls/Textarea"; import { Modal } from "../controls/Mo...
<reponame>curiousdannii/asyncglk /* GlkOte input handlers ===================== Copyright (c) 2022 <NAME> MIT licenced https://github.com/curiousdannii/asyncglk */ import {throttle} from 'lodash-es' import {KEY_CODES_TO_NAMES, KEY_NAMES_TO_CODES, OFFSCREEN_OFFSET} from '../../common/constants.js' import * as protoc...
import {commands, CodeActionProvider, ExtensionContext, LanguageClient, LanguageClientOptions, languages, ProviderResult, ServerOptions, services, window, workspace} from 'coc.nvim'; import {CancellationToken, CodeAction, CodeActionContext, CodeActionKind, Command, Range} from 'vscode-languageserver-protocol'; import {...
/** * Unit tests for checking that a full game works. It's tedious to repeat very * long sequence with GUI, but this module makes sure that basics are working. */ import chai from 'chai'; import {chaiBattles} from '../../helpers/chai-battles'; import RG from '../../../client/src/rg'; import {Keys} from '../../../cl...
import React from 'react'; import { findIndex, get, toPairs, startCase } from 'lodash'; import Img, { FixedObject } from 'gatsby-image'; import { Box, Flex, Heading, Text, Button } from 'rebass'; import { Label } from '@rebass/forms'; import { InlineIcon } from '@iconify/react'; import priceTag3Fill from '@iconify/ico...
/* eslint max-len: ["error", 240] */ import {Dex, toID} from '../sim/dex'; import {PRNG, PRNGSeed} from '../sim/prng'; export interface TeamData { typeCount: {[k: string]: number}; typeComboCount: {[k: string]: number}; baseFormes: {[k: string]: number}; megaCount: number; zCount?: number; has: {[k: string]: nu...
import React, { ComponentType, Component, ComponentClass } from 'react'; import QiscusSDKCore from 'libs/SDKCore'; import { Comment, QiscusCore, Selected, CommentType, Payload, AppConfig, PreviewImage } from 'types'; import { sendComment, uploadFile } from 'libs/utils'; import { getPayload } from 'libs/ut...
// Ramda.deepMergeRight is currently used. This dependency could be removed in future. // eslint-disable-next-line @typescript-eslint/no-var-requires const R = require('ramda'); // tslint:disable-line:no-var-requires import { NistField, NistFieldCodecOptions, NistFieldValue, NistFile, NistFileCodecOptions, ...
/** ******************************************************************************************************************* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the Lice...
import * as createjs from 'createjs-module'; import { FlowConnector } from './flow-connector'; import { FlowItem } from './flow-item'; import { GraphWalker } from './graph'; export interface NodeOptions { color?: string; background?: string; } export interface ConnectorsOptions { width?: number; color?: stri...
import { generateFiles, joinPathFragments, NxJsonConfiguration, readJson, readWorkspaceConfiguration, Tree, updateJson, updateWorkspaceConfiguration, workspaceRoot, writeJson, } from '@nrwl/devkit'; import { DEFAULT_NRWL_PRETTIER_CONFIG } from '@nrwl/workspace/src/generators/workspace/workspace'; im...
/* Copyright (c) Walmart Inc. This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree. */ import { BoundedPriorityQueue, DefaultComponentContext, failSpan, IComponentContext, IInputSource, ILogger, IMessage, IMetrics...
/* eslint-disable ember/no-assignment-of-untracked-properties-used-in-tracking-contexts */ /** * Copyright 2022, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ import Component from '@glimmer/component'; import { inject as service } from '@ember/ser...
<gh_stars>0 export declare enum QrcodeStatus { Waiting = 0, Scanned = 1, Confirmed = 2, Canceled = 4, Expired = 3 } export declare enum LoginStatus { Logined = 1 } export declare enum ContactType { Unknown = 0, Personal = 99990, Official = 99991 } export declare enum FriendshipType {...
import React, { useContext, useEffect, useRef, useState } from "react"; import { View, Text, StyleSheet, TouchableOpacity, FlatList, ListRenderItemInfo, TextInput, Alert, } from "react-native"; import SegmentedControl from "@react-native-community/segmented-control"; import InputSpinner from "react-nat...
<reponame>flarestart/rekv<filename>src/index.ts // MIT License // // Copyright (c) 2019 flarestart // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without...
<filename>src/deploy.ts<gh_stars>0 import * as util from "util"; import * as fs from "fs"; import * as readlineSync from "readline-sync"; import HDWalletProvider from "@truffle/hdwallet-provider"; const rawExec = util.promisify(require("child_process").exec); const isProd = process.env.NODE_ENV === "production"; requ...
import { join as pathJoin } from 'path'; import { IFSStoreReq, IFSStoreReqFixed, IFSStoreResp, fsReqType, ITransport, } from '@testring/types'; import { generateUniqId } from '@testring/utils'; import { transport } from '@testring/transport'; import { PluggableModule } from '@testring/pluggable-mod...
<filename>src/cli/packages/postcssPlugins/postCssPluginValidateStyle.ts<gh_stars>10-100 import postCss from 'postcss'; import parser from 'postcss-selector-parser'; import config from '../../config/config'; const ignoreCss = require('../quickHelpers/ignoreCss'); const postCssPluginValidateStyle = postCss.plugin('postc...
import React from 'react' import debounce from 'lodash/debounce' import throttle from 'lodash/throttle' import { isAndroid, initializeEvents, initializeSettableProperties, initializeEnableableProperties, updateEvents, override, updateEnableableProperties, updateSettableProperties, isDeskto...
/* * Copyright 2020 Huawei Technologies Co.,Ltd. * * 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 Ap...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AfterContentChecked, ChangeDetectorRef, ElementRef, IterableDiffers, OnInit, QueryList, TrackByFunction, View...
<gh_stars>0 import {XE} from 'xtal-element/src/XE.js'; import {TemplMgmtProps, TemplMgmtActions, tm} from 'trans-render/lib/mixins/TemplMgmtWithPEST.js'; import { XtalFigDBCylinderActions, XtalFigDBCylinderProps } from './types'; import { PropInfo } from 'trans-render/lib/types'; import 'be-active/be-active.js'; const...
<filename>src/lexer/template.ts import { ParserState, Context } from '../common'; import { fromCodePoint, toHex } from './common'; import { Token } from '../ast/token'; import { Char } from './char'; import { addDiagnostic, DiagnosticSource, DiagnosticKind } from '../diagnostic'; import { DiagnosticCode } from '../diag...
import { random } from './random'; import * as imdb from 'imdb-api'; import * as globby from 'globby'; import * as path from 'path'; import * as sec from 'search-engine-client'; import * as fs from 'fs'; import { ISearchEngineResult, IVideo, movieFileTypes } from './types/types'; const IMDB_API = 'put key here'; impor...
import './styles.module.scss'; import Button from 'components/Button'; import shouldIgnoreControl from 'lib/client/shouldIgnoreControl'; import type { Dispatch, ReactNode, RefObject, SetStateAction } from 'react'; import React, { useContext, useEffect, useRef } from 'react'; import type { KeyedClientStoryPage } from 'c...
/** * 新增、修改人员信息 */ import React, { Component } from 'react'; import { Form, Spin } from 'antd'; import moment from 'moment'; import { EditDrawer } from '@/common/'; import AddressInfoForm from './addressInfoForm'; import FacilityInfoForm from './facilityInfoForm'; import FacilityImg from './facilityImg'; import { ...
<gh_stars>1-10 import * as vscode from 'vscode'; import {MoverState, MoverMode} from "./mover_state"; // add new keybindings here let cmd_func: CmdFuncDict = { "b i": () =>{ const editor = vscode.window.activeTextEditor; let current_num = MoverState.getCurrentNum(); if(editor){ let del_start = Math.max(edit...
import html2canvas from "html2canvas"; import {StatusCodes} from "http-status-codes"; import {ChangeEvent, FormEventHandler, useState} from "react"; import "./App.css"; import Config from "./Config"; // @ts-ignore import isMobileBrowser from "./detectmobilebrowser"; import {GithubLink} from "./Footer"; import {renderIm...
import { assert } from '@canvas-ui/assert' import { Point } from '../math' import { SyntheticEvent, SyntheticPointerEvent, SyntheticWheelEvent } from './synthetic-event' import { SyntheticEventDispatcher } from './synthetic-event-dispatcher' import type { HitTestRoot, NativeEventBinding, NativePointerEvents...
import LoadingButton from "@mui/lab/LoadingButton"; import Box from "@mui/material/Box"; import Button from "@mui/material/Button"; import Dialog from "@mui/material/Dialog"; import DialogContent from "@mui/material/DialogContent"; import DialogTitle from "@mui/material/DialogTitle"; import IconButton from "@mui/materi...
<reponame>SwissDataScienceCenter/renku-ui /*! * Copyright 2021 - Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
import React, { ComponentType, forwardRef, useMemo } from 'react'; import clsx from 'clsx'; import { CustomStyledComponentResult, RcBaseProps, RcBaseSize, RcClassesProps, RcPaletteProp, styled, useThemeProps, withDeprecatedCheck, } from '../../foundation'; import { SvgSymbol } from '../Icon'; import {...
<gh_stars>0 const CUBE_META_BG_COLOR = '#eeecec'; /** * 构建 polars dataframe 执行脚本 * @param path * @param groupDimensions * @param measureItems */ export function buildDfScript(path,groupDimensions,measureItems,filters){ let script = ['let result = read_csv("'+path+'")']; //build filter script let filt...
import { transform } from 'lodash'; import React, { Component, useEffect, useRef, useState } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Image, Dimensions, Platform, SafeAreaView, ScrollView, FlatList, NativeModules, NativeEventEmitter, Button, Pressable, Animated, } f...
<reponame>rtsp/morchana-app import AsyncStorage from '@react-native-community/async-storage' import moment from 'moment' import { distance } from '../utils/distance' export enum LOCATION_TYPE { HOME = 'HOME', OTHER = 'OTHER', OFFICE = 'OFFICE', CLOSED_GPS = 'CLOSED_GPS', } export interface LocationField { H...
import { OrderSide, OrderType, sleep } from "my-utils" import { PlaceOrderRequestV1, PlaceOrderRequestV2, OrderInfoV1, OrderInfoV2, wsOrder, wsTicker } from ".." import { WebsocketAPIClient } from "./websocketClient" export interface SinglePositionParameters { name: string...
<filename>src/searchprovider.ts // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ISearchMatch, ISearchProvider } from '@jupyterlab/documentsearch'; import { SpreadsheetEditorDocumentWidget } from './documentwidget'; import { Widget } from '@lumino/widgets'...
import { DirectiveBinding, VNode } from 'vue'; import { set, get } from './utils'; import { DefaultOptions, getAxisNameFromValue, getAxisNames } from './options'; export const enum BindingResult { InvalidArg, InvalidCallback, Ok, } export default function(options: VueGamepadOptions = DefaultOptions) { return ...
import { ButtonBase, Icon, TextField, Typography } from "@material-ui/core"; import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; import * as React from "react"; import { MutableRefObject } from "react"; import { Draggable, Droppable } from "react-beautiful-dnd"; import { AdvanceFilterContext } f...
import { PlatformAccessory, Logger } from 'homebridge'; import { CoffeeType, CoffeeTypeUtils, TemperatureType, TemperatureUtils } from '../models/cofeeTypes'; import { on, Peripheral, startScanningAsync, stopScanningAsync, Characteristic, removeAllListeners, state } from 'noble'; import MachineUDID from '../models/mach...
<filename>src/client.ts /* global WebSocket */ import { EventEmitter } from 'events'; import { api } from '@replit/protocol'; import { Channel } from './channel'; import { createDeferred, Deferred } from './deferred'; import { EIOCompat } from './EIOCompat'; enum ConnectionState { CONNECTING = 0, CONNECTED = 1, ...
import { GraphQLClient } from 'graphql-request'; import { print } from 'graphql'; import gql from 'graphql-tag'; export type Maybe<T> = T | null; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: numb...
<gh_stars>0 import { Component, DoCheck, ElementRef, EventEmitter, Input, OnInit, Output, QueryList, ViewChild, ViewChildren } from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {Observable} from 'rxjs/Observable'; import {Subscription} from 'rxjs/Subscription'; imp...
import { rad2deg } from "../math/rad2deg"; import { isNullOrUndefined, isObject } from "../typeChecks"; import { DatumWGS_84 } from "./Datum"; import { GlobeHemisphere, IUTMPoint, UTMPoint } from "./UTMPoint"; export interface ILatLngPoint { lat: number; lng: number; alt?: number; } /** * A point in geog...
const english = { value: 'en', label: 'English' } export const DEFAULT_LANGUAGE = english export const LANGUAGES = [ { value: 'af', label: 'Afrikaans' }, { value: 'sq', label: 'Albanian' }, { value: 'an', label: 'Aragonese' }, { value: 'ar', label: 'Arabic (Standard)' }, { value: 'ar-dz', label: 'Arabic (Al...
<filename>src/index.ts /* eslint-disable no-undef */ import { NativeModules } from 'react-native'; const QuickSQLiteModule = NativeModules.QuickSQLite; if (QuickSQLiteModule) { if (typeof QuickSQLiteModule.install === 'function') { QuickSQLiteModule.install(); } } /** * JSI BINDINGS DO NOT WORK WHEN CONNECTE...
import React, { useEffect, useState, useRef } from 'react' import { View, Text, StyleSheet, Image } from 'react-native' import { useStores, useTheme } from '../../../store' import shared from './sharedStyles' import { TouchableOpacity } from 'react-native-gesture-handler' import { useCachedEncryptedFile } from './hooks...
import { useEffect, useLayoutEffect, useRef, useState } from 'react' import { ConvertTimeToText } from './helper' interface Props { tracks: string[] startIndex?: number children?: any } // prop types should be like this interface /** * Reaplay * @param {string[]} tracks * @param {number} startIndex * @param...
<reponame>sttz/TraktRoller import TraktApi, { ITraktScrobbleData, TraktApiError, ITraktSearchResult, ITraktShow, ITraktSeason, ITraktEpisode } from "./TraktApi"; export class TraktLookupError extends Error { public associatedObject: any; constructor(message: string, object?: any) { super(message); this.as...
<filename>scripts/combine-chapters.ts const fs = require('fs'); const inquirer = require('inquirer'); const parse = require('csv-parse/lib/sync'); const path = require('path'); const readline = require('readline'); const stringify = require('csv-stringify/lib/sync'); // We hardcode an output filename because if we ins...
<reponame>nikeshnazareth/verifiable-voting import 'rxjs/add/observable/from'; import 'rxjs/add/observable/never'; import 'rxjs/add/observable/timer'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/reduce'; import { Observable } from 'rxjs/Observable'; import { ReplaySubject } from 'rxjs/ReplaySubject'; impo...
import SortableLib from "sortablejs"; import { ItemValue } from "./itemvalue"; import { Serializer } from "./jsonobject"; import { QuestionFactory } from "./questionfactory"; import { QuestionCheckboxModel } from "./question_checkbox"; import { IsMobile } from "./utils/is-mobile"; const Sortable = <any>SortableLib; /...
// To parse this data: // // import { Convert } from "./file"; // // const githubCommit = Convert.toGithubCommit(json); // // These functions will throw an error if the JSON doesn't // match the expected interface, even if the JSON is valid. export interface GithubCommit { sha: string; node_id: ...
<reponame>ThomasBarnekow/linq /*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import {expect} from 'chai'; import linq from '../src'; import distinct from '../src/filters/distinct'; import where from '../src/filters/where'; import {emptyIterable} from '../src/iterables/empty'; ...
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import useGame from '../@core/useGame'; import { dialogs } from '../dialogs/battle'; import * as THREE from 'three'; import Collider from '../@core/Collider'; import GameObject from '../@core/GameObject'; import Interactable from '../@cor...
import { useCallback, useMemo, useState } from "../deps/preact.tsx"; import { toId, toLc } from "../utils.ts"; import type { LinkType, ScrollTo } from "../types.ts"; import { Scrapbox } from "../deps/scrapbox.ts"; import { getPage } from "../fetch.ts"; declare const scrapbox: Scrapbox; export interface Cache { proje...
<gh_stars>0 import { IdName } from '../common/idname'; import { UserGroup } from '../users-groups/users-groups'; export const toolPageLinks = { datasetDescription: 'dataset-description', datasetStatistics: 'dataset-statistics', genotypeBrowser: 'genotype-browser', phenotypeBrowser: 'phenotype-browser', pheno...
<filename>src/main/data/export/pdf/table/pdf-table.ts import { PDFPage } from 'pdf-lib'; import * as Collections from 'typescript-collections'; import { IPdfTextManager } from '../content/pdf-text-manager'; import { ITableOptions } from "../options/table.options"; import { PdfStatics } from '../../pdf-statics'; import ...
<reponame>wesselvdv/schema import * as Chunk from "@effect-ts/core/Collections/Immutable/Chunk" import * as T from "@effect-ts/core/Effect" import * as E from "@effect-ts/core/Either" import * as FC from "fast-check" import * as S from "../src" import * as Arbitrary from "../src/Arbitrary" import * as Constructor from...
import isBuffer from './utils/isBuffer' import isPlainObject from './utils/isPlainObject' import trough from './utils/through' import vfile, {VFile} from 'vfile' interface ParserInterface { parse: () => unknown } interface ParserConstructor { new (doc: string, file: {message: unknown}): ParserInterface } interfa...
import * as React from 'react'; let injectSheet = require('react-jss').default; import * as mobx from "mobx"; import { observer } from "mobx-react"; import 'purecss/build/pure.css'; import 'purecss/build/grids-responsive.css'; import 'react-select/dist/react-select.css'; import 'react-virtualized/styles.css'; import 'r...
import { name as pkgName } from 'package'; import { getEnv } from 'universe/backend/env'; import { getDb, closeDb, initializeDb, destroyDb } from 'universe/backend/db'; import { usernames as rawUsernames } from 'data/corpus.json'; import { spawn, Pool, Worker } from 'threads'; import { createUser, getSystemInfo, MACHIN...
<reponame>pravgupt/aws-sdk-js-v3 import { _CloudWatchLogsConfiguration, _UnmarshalledCloudWatchLogsConfiguration } from "./_CloudWatchLogsConfiguration"; import { _VolumeConfiguration, _UnmarshalledVolumeConfiguration } from "./_VolumeConfiguration"; import { _Recipes, _UnmarshalledRecipes } from "./_Recipes"; ...
/* * Copyright © 2019 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...
<gh_stars>100-1000 //#region IMPORTS import type Pose from '../../armature/Pose'; import type { IKChain, IKLink } from "../rigs/IKChain"; import type { ISolver } from './support/ISolver'; import { QuatUtil, Transform, Vec3Util } from '../../maths'; import C...
import * as fs from './fs.ts'; import * as path from 'https://deno.land/std@0.91.0/path/mod.ts'; import BackupInstance from './backup-instance.ts'; import BackupLog from './backup-log.ts'; import BackupSet from './backup-set.ts'; import BackupFileSystem from './backup-filesystem.ts'; import Filter from './filter.ts'; ...
<gh_stars>10-100 /* eslint-disable @typescript-eslint/naming-convention */ export const Consts = { mY: 18, mX: 38, mZ: 7, tileWidth: 75, tileHeight: 100 }; export const STATES = { idle: 0, run: 1, pause: 2, freeze: 3 }; export const Backgrounds: Array<{ img?: string; name: string; small?: boolean }> = [ {img...
import { Box, Button, Checkbox, CheckboxGroup, FormControl, FormErrorMessage, FormHelperText, FormLabel, Input, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Stack, Textarea, useToast, } from "@chakra-ui/react"; import { zodResolver } fro...
<reponame>YECHUNAN/json-color-token<gh_stars>1-10 /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. * ------------------...
<reponame>xupengfei2061/datart /** * Datart * * Copyright 2021 * * 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 require...
import { question } from 'blessed' // import { Point, Range } from 'text-buffer' // type Range = any // type Point = any import { EditorBindingsOptions, EditorGutterStyle, EditorOptions, EditorPerf, EditorStyle, IEditor } from '.' import { box } from '../' import { Element, Node, Screen } from '../blessedTypes' import ...
<filename>distribution/serveur/reseauDistribution.ts import { GenerateurReseau, ReseauMutable, ReseauMutableParEnveloppe } from "../../bibliotheque/applications/reseau"; import { CanalPersistantEcritureJSON } from "../../bibliotheque/communication/connexion"; import { binaire, FormatBinaire, mot, Mot, motAleatoire, tai...
import _ from "lodash"; import { SubtrackDefinition, TrackDefinition } from "../entities/TrackDefinition"; import i18n from "../utils/i18n"; import { subtracks } from "./subtracks"; export const trackDefinitions = { structureCoverage: definition({ id: "structure-coverage", name: i18n.t("Structure C...
import React, {useCallback} from 'react'; import { ApiHelper, ReportInterface } from './'; import { InputBox, ReportValueInterface, Helper, ServiceInterface, ServiceTimeInterface, GroupInterface, ReportHelper } from './'; import { FormControl, FormGroup, FormLabel } from 'react-bootstrap'; import { CampusInterface, Fun...
import localforage from "localforage"; import { TAbstractFile, TFile, TFolder } from "obsidian"; import type { SUPPORTED_SERVICES_TYPE } from "./baseTypes"; import type { SyncPlanType } from "./sync"; export type LocalForage = typeof localforage; export const DEFAULT_DB_VERSION_NUMBER: number = 20211114; export cons...
<gh_stars>0 /* eslint-disable max-len */ import nbaApiRequest from './utils/request' export enum Conference { east = 'east', west = 'west', } export enum Year { twentyFifteen = '2015', twentySixteen = '2016', twentySeventeen = '2017', twentyEighteen = '2018', twentyNineteen = '2019', twentyTwenty = '2...
/** The MIT License (MIT) Copyright(c) 2016-present <NAME> */ import { IIndexer } from "./int"; import { CoreUtils } from "./utils/coreutils"; const coreUtils = CoreUtils; export function assign<T extends U, U extends IIndexer<any>>(target: T, source: U): T { return coreUtils.assignStrings(target, source); } ex...
<reponame>hoshiyuki-tamako/atelier_online_data_unpack import { EBattleEffectKind, EBattleEffectTarget, EBattleEffectTrigger } from '@/logic/Enums'; import { dataManager } from '@/utils/DataManager'; import { Type } from 'class-transformer'; export class Skill { m_GameObject: MGameObject; m_Enabled: number; ...
import {CleanupRule, StockingRule} from '@philter/common'; import { isCleanable, logger, ReadonlyCleanupRules, ReadonlyStockingRules, toItemMap, } from '@philter/common/kol'; import { availableAmount, closetAmount, creatableAmount, getInventory, getProperty, haveDisplay, itemAmount, myPath, ...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Title } from '@angular/platform-browser'; import { MatSnackBar, MatSelectChange } from '@angular/material'; import { TranslateService } from '@ngx-translate/core'; import { ProjectorReposit...
<filename>src/app/modules/disbursement/disbursement/create-disbursement/create-disbursement.component.ts<gh_stars>0 import { Router } from '@angular/router'; import { DataServiceProxy, CommonServiceProxy, BudgetDTO } from 'app/_services/service-proxies'; import { AlertserviceService } from 'app/_services/alertservice.s...
import { Component, OnInit, Input, OnDestroy, OnChanges, ViewChild } from '@angular/core'; import { LocationService } from '../../location/location.service'; import { Subject } from '../../../../node_modules/rxjs'; import { takeUntil, take } from '../../../../node_modules/rxjs/operators'; import { RegionService } from ...
<gh_stars>10-100 import path from "path"; import type { CodeFixAction, Diagnostic, FileTextChanges, TextChange } from "typescript"; import os from "os"; import _ from "lodash"; import { createProject, Project } from "./ts"; import { PathLike, writeFileSync, mkdirSync, existsSync } from "fs"; export interface Logger {...
import { measuringExecutionTime, readInputFile } from './utilts'; const day = '13'; console.log(`\n🎄🎄🎄🎄🎄 Day ${day} 🎁🎁🎁🎁🎁\n`); const challengeInput = readInputFile(day).split('\n'); /* --- Day 13: Shuttle Search --- Your ferry can make it safely to a nearby port, but it won't get much further. When you ca...
import { IDisposable } from "../../core/types"; import { transformGeometry } from "../../geometry/Geometry.Functions"; import { planeGeometry } from "../../geometry/primitives/planeGeometry"; import { Blending } from "../../materials/Blending"; import { ShaderMaterial } from "../../materials/ShaderMaterial"; import { c...
/*jshint esversion: 6 */ import { app, ipcMain, BrowserWindow, BrowserWindowConstructorOptions, Menu, MenuItem, MenuItemConstructorOptions, dialog, } from "electron"; import { IpcMainProxy } from "./ipcMainProxy"; import BashWizardMainService from "./bwMainService"; import path from "pa...
<gh_stars>1-10 type ObjectModel_ParseErrorCode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27; /** * Represents an error in parsing `.bib` database. */ class ObjectModel_ParseDatabaseError { /** * Gets the...
<filename>src/app/app.component.ts<gh_stars>0 import { Component, NgModule, OnInit } from '@angular/core'; import fragmentShaderSrc from '../assets/shaders/fragment-shader.glsl'; import vertexShaderSrc from '../assets/shaders/vertex-shader.glsl'; import { BoardFile, BoardView, Color, Model } from './constants'; import ...
<reponame>CalTech1200/context-mod<filename>src/Web/Server/routes/authenticated/user/liveStats.ts<gh_stars>0 import {authUserCheck, botRoute, subredditRoute} from "../../../middleware"; import {Request, Response} from "express"; import Bot from "../../../../../Bot"; import {boolToString, cacheStats, filterLogs, formatNu...
<gh_stars>0 // // AvatarTrait.ts // // Created by <NAME> on 14 Apr 2022. // Copyright 2022 Vircadia contributors. // Copyright 2022 DigiSomni LLC. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // import ...
import * as React from "react"; import { IAzSearchRequest, IAzSearchResult, IUserFavourite } from "../../../../../../common"; import SearchService from "../../../services/SearchService"; import UserService from "../../../services/UserService"; import { useErrorHandling } from "../../controls/ErrorBoundary/ErrorBo...
import { AmbientLight, BaseEvent, DirectionalLight, Light, Line, LineBasicMaterial, Material, Mesh, MeshLambertMaterial, Object3D, Points, PointsMaterial, Scene, Sprite, SpriteMaterial, Texture, } from "three"; import { Engine } from "../engine/Engine"; import { Vector3Config } from "../...
<filename>src/main/typescript/wcardinal/ui/util/util-keyboard-event.ts /* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { DApplicationLayerLike } from "../d-application-layer-like"; import { DApplications } from "../d-applications"; import { DBase } from "../d-base"; impor...