text stringlengths 9.82k 47.8k |
|---|
/**
* @license
* Copyright 2016-2018 the original author or 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 requir... |
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
/**
* Interfaces and methods for tr... |
import Formatter from '../core/Formatter';
import Tokenizer from '../core/Tokenizer';
import type { StringPatternType } from '../core/regexFactory';
import { dedupe } from '../utils';
/**
* Priority 5 (last)
* Full list of reserved functions
* distinct from Keywords due to interaction with parentheses
*/
// https:... |
import { updateReplySed } from 'actions/svarpased'
import { resetValidation } from 'actions/validation'
import { FormålManagerFormProps, FormålManagerFormSelector } from 'applications/SvarSed/Formaal/FormålManager'
import {
validateVedtakVedtaksperiode,
ValidationVedtakPeriodeProps,
ValidationVedtakVedtaksperiode... |
import * as React from 'react';
import {
Button,
ButtonVariant,
Card,
CardBody,
Grid,
GridItem,
TextInput,
Toolbar,
ToolbarGroup,
ToolbarItem,
Tooltip,
TooltipPosition,
Form,
FormGroup,
Dropdown,
DropdownItem,
KebabToggle
} from '@patternfly/react-core';
import { style } from 'typestyl... |
<reponame>caisq/tfjs-data-1
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... |
import { ServerConfig, StateObject, Hashmap, obs_stat, serveFileObs, sendResponse, canAcceptGzip, recieveBody, DebugLogger, ServerEventEmitter, tryParseJSON, normalizeSettings, obs_readFile, obs_writeFile, defaultSettings } from "./server-types";
import { EventEmitter } from "events";
import { Observable, Subject } fro... |
import { Account } from './account.model';
import { Application } from './application.model';
import { LegalEntity } from './legal-entity.model';
import { Contact } from './contact.model';
import { LicenseeTreeComponent } from '@shared/components/licensee-tree/licensee-tree.component';
export class LicenseeChangeLog {... |
import { diff as getObjDiff } from 'deep-object-diff'
import PouchDB from 'pouchdb-browser'
import memoryAdapter from 'pouchdb-adapter-memory'
import auth from 'pouchdb-authentication'
import hoodieApi from 'pouchdb-hoodie-api'
import { NIL } from 'uuid'
import connectCircuit from './actions/connectCircuit'
import { i... |
<filename>src/components/Cropper/gifToCanvas.ts
type ListenerFn = (canvas: HTMLCanvasElement, delay: number) => void
type Listener = {
'finished': ListenerFn
'progress': ListenerFn
}
type TargetOffset = {
dx: number
dy: number
width: number
height: number
sWidth: number
sHeight: number
}
interface Gi... |
<filename>src/lib/temple/back/vault.ts
import { Address } from '@signumjs/core';
import {
generateMasterKeys,
generateSignature,
generateSignedTransactionBytes,
Keys,
verifySignature
} from '@signumjs/crypto';
import { HttpResponseError } from '@taquito/http-utils';
import { DerivationType } from '@taquito/le... |
import './series_overrides_ctrl';
import template from './template.html';
import { GraphRenderer } from './graph_renderer';
import { GraphLegend } from './graph_legend';
import { DataProcessor } from './data_processor';
import { MetricExpanded } from './models/metric';
import { DatasourceRequest } from './models/data... |
import { MixinProvider, ScryptedDeviceType, ScryptedInterface, MediaObject, VideoCamera, Settings, Setting, Camera, EventListenerRegister, ObjectDetector, ObjectDetection, PictureOptions, ScryptedDeviceBase, DeviceProvider, ScryptedDevice, ObjectDetectionResult, FaceRecognition, ObjectDetectionTypes, ScryptedMimeTypes,... |
/* eslint-disable max-classes-per-file */
import { QuerySelector } from '@svgdotjs/svg.js'
import { range } from './utils'
import { constants } from './constants'
import { Alignment, GraphcisElement, Renderer, RoughJsRenderer, SvgJsRenderer } from './renderer'
import { Constructor, ReturnTypeOf, SVGuitarPlugin } from '... |
<reponame>victorgianvechio/date-pt-br-ts
import {
LanguageType,
pt_BR,
EN,
DE,
FR,
ES,
} from "./lib/languages/index.ts";
// Deno.readTextFile('./languages/pt_BR.json').then(data => {
// const d = JSON.parse(data);
// console.log(d.day)
// })
interface ApiData {
city: string;
regionName: string;
... |
<reponame>barriebyron/spn
import { Reader, Writer } from 'protobufjs/minimal';
import { Header } from '../types/types';
import { ProofOps } from '../crypto/proof';
import { EvidenceParams, ValidatorParams, VersionParams } from '../types/params';
import { PublicKey } from '../crypto/keys';
export declare const protobufP... |
//
// The MIT License
//
// Copyright (c) 2010-2017 Google, Inc. http://angularjs.org
// Copyright (c) 2017 <NAME>
//
// 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, i... |
import { Point, TreeData, TreeNodeModel, NodeContour } from './org.models';
import { sampleData} from './org.data';
import { clone, createSvgLine } from './org.helper';
import { MyEvent } from './myevent';
export class OrgChart {
private _baseElement: HTMLElement;
private _nodesPanelElement: HTMLDivElement;
... |
<reponame>chris-mcclure/cs480_graphics<gh_stars>0
enum SGAssetType {
Scene,
GeometryGroup,
MaterialLibrary,
ShaderProgram,
Image,
Text
};
class ScenegraphNode {
public geometryGroup: string = "";
public transform: Matrix4 = Matrix4.makeIdentity();
public pretransform: Matrix4 = M... |
<filename>app/elements/pages/settings-page/settings-page.ts<gh_stars>0
/**
* Custom element for a page in an SPA app
*
* @module els/pages/settings
*/
/** */
/*
* Copyright (c) 2015-2019, <NAME> All rights reserved.
* Licensed under the BSD-3-Clause
* https://opensource.org/licenses/BSD-3-Clause
* https:/... |
<reponame>hirokai/YetAnotherChat<filename>client/main.ts<gh_stars>0
/// <reference path="../common/types.d.ts" />
// @ts-ignore
import { Elm } from './view/Main.elm';
import map from 'lodash/map';
import values from 'lodash/values';
import includes from 'lodash/includes';
import compact from 'lodash/compact'
import ax... |
/**
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* 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 limitation
* th... |
import React, {
useContext,
useState,
useEffect,
useRef,
useCallback
} from 'react';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import { cloneDeep, isUndefined } from 'lodash-es';
import {
Input,
Radio,
Select,
Button,
Switch,
Tooltip,
Checkbox,
Message
} from ... |
<filename>src/index.ts
import { AuthenticationError, gql } from 'apollo-server-express';
import { GraphQLJSON } from 'graphql-type-json';
import * as Knex from "knex";
import { Column } from './models/column';
import { ForeignKey } from './models/foreign-key';
import { IResolverArg, Resolver } from './models/resolver';... |
/// <reference path="../external.ts" />
/**
* Bonus for CS/EP definition
*/
interface Bonus {
/** The bonus description */
concept : string;
/** The increment / decrement of the CS/EP */
increment : number;
}
/**
* The action chart / player state
*/
class ActionChart {
/** First book number... |
<reponame>biliskener/MiniWanna
import { DEBUG as _CC_DEBUG, DEV as _CC_DEV, PREVIEW as _CC_PREVIEW, EDITOR as _CC_EDITOR } from "cc/env";
import { Vec2, VERSION as _CC_VERSION, __private } from "cc";
import { assert as _cc_assert, log as _cc_log, warn as _cc_warn, error as _cc_error, js as _cc_js, errorID as _cc_erro... |
<reponame>nikolaits/gamesFirebase
import { Component, OnInit, Input, ViewChild } from '@angular/core';
import { NameListService } from '../shared/name-list/name-list.service';
import { AuthService } from '../shared/auth-service/auth.service';
import { UserService } from '../shared/user-service/user.service';
import { N... |
<reponame>famibee/SKYNovel-vscode-extension<gh_stars>1-10
/* ***** BEGIN LICENSE BLOCK *****
Copyright (c) 2019-2021 Famibee (famibee.blog38.fc2.com)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
** ***** END LICENSE BLOCK ***** */
import {getFn, IFn2Path, docsel} ... |
<reponame>lambkin179294/cactbot
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../ty... |
import { logMessage } from './debug-manager';
declare global {
interface HTMLElement {
'kup-theme': any;
kupCurrentTheme: any;
kupThemes: any;
}
}
const dom = document.documentElement;
const kupThemes = JSON.parse(`{
"dark": {
"cssVariables": {
"--kup-background... |
<reponame>b12f/gg
import { Cell } from './hexpixi-cell';
import { updateLineStyle } from './pixi-helpers';
import * as PIXI from 'pixi.js';
import * as debug from 'debug';
const debugLog = debug('hexPixiJs:log');
const debugError = debug('hexPixiJs:error');
export type CornerCoordinate = [Coordinate, Coordinate, Coord... |
import * as common from "./common";
import * as sharedTypes from "./sharedTypes";
import * as react from "react";
import * as mui from "@material-ui/core";
import * as muic from "@material-ui/icons";
import * as muidg from "@material-ui/data-grid";
import * as rrd from "react-router-dom";
import _ from "lodash";
import... |
/**
* file: `ga.ts`
* - function for ga
*
* @author Steve <<EMAIL>>
* @date 2020-07-17 initial version.
*/
import { _log, _inf, _err, $U, $_ } from 'lemon-core';
import fs from 'fs';
const NS = $U.NS('ga', 'blue');
// const _log = console.log;
// const _inf = console.info;
// const _err = console.err... |
<filename>test/test-parse.ts
import {buildParser, BuildOptions} from "../dist/index.js"
import {Tree, TreeFragment, NodeProp, parseMixed, SyntaxNode} from "@lezer/common"
import {LRParser, ParserConfig} from "@lezer/lr"
// @ts-ignore
import {testTree} from "../dist/test.js"
import ist from "ist"
function p(text: strin... |
import { ICommandDefinition } from "../../command-parser";
import { Player } from "../../room-activity";
import { Game } from "../../room-game";
import { IGameTemplateFile, IGameAchievement, GameCommandReturnType } from "../../types/games";
import { User } from "../../users";
interface ISpaceAttributes {
achievement?... |
// Type definitions for CSG from OpenJsCad.js
// Project: https://github.com/joostn/OpenJsCad
interface IAMFStringOptions {
unit: string;
}
declare class CxG {
toStlString(): string;
toStlBinary(): void;
toAMFString(AMFStringOptions?: IAMFStringOptions): void;
getBounds(): CxG[];
transform(matri... |
import {
ViewContainerRef,
Directive,
ElementRef,
EmbeddedViewRef,
Component,
ViewEncapsulation,
ChangeDetectionStrategy,
AfterContentChecked,
OnDestroy,
IterableDiffer,
Input,
ContentChildren,
IterableDiffers,
ChangeDetectorRef,
OnInit,
ViewChild,
Ite... |
import * as GA from "../ga";
import * as GAPoint from "../gapoints";
import * as GADirection from "../gadirections";
import * as GALine from "../galines";
import * as GATransform from "../gatransforms";
import { isPathALoop, isPointInPolygon, rotate } from "../math";
import { pointsOnBezierCurves } from "points-on-cur... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>0
/// <reference path="./helper.ts" />
/*
* This file is responsible for downloading data from all lanes, cacheing
* successfully downloaded data, and passing results to a Build subclass.
*/
// Constants
const defaultMaxBuildQueries = 500
const maxCacheSize = 5000000 - 1024 // Limit 50 MB minus some hea... |
import { END, HOME, LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';
import { NgModule } from '@angular/core';
import * as Chart from 'chart.js';
const timelineDefaultOptions: TimelineChartOptions & TimelineChartStateOptions = {
timeline: {
backgroundColor: '#f1f2f3',
selectionColor: 'rgba(1... |
<reponame>YSHIDM/vue-todo<gh_stars>0
import config from '@/config';
import Cookies from 'js-cookie';
import rules from "@/plugins/validate/rules";
// import * as moment from 'moment';
const prefix = process.env.VUE_APP_PREFIX ? process.env.VUE_APP_PREFIX : '';
// import vPinyin from '@/libs/vue-py.ts';
/**
* ========... |
/*
TODO:
- Fix: object from another task still availble (underneath) in another task's scene -> reduce performance
- Fix: double click -> screenshot
- Remove task's event listeners when switch to another
- Add more Passes
- Add more skyboxes
*/
import * as THREE from '/build/three.module.js'
import... |
<filename>polygerrit-ui/app/elements/gr-app-element.ts
/**
* @license
* Copyright (C) 2019 The Android Open Source Project
*
* 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://w... |
<reponame>tec27/shieldbattery
import crypto from 'crypto'
import { app, BrowserWindow, dialog, Menu, protocol, screen, Session, shell } from 'electron'
import isDev from 'electron-is-dev'
import localShortcut from 'electron-localshortcut'
import { autoUpdater } from 'electron-updater'
import fs from 'fs'
import fsPromi... |
<reponame>karanjitsingh/lightweight-charts
import { DateFormatter } from '../formatters/date-formatter';
import { DateTimeFormatter } from '../formatters/date-time-formatter';
import { ensureNotNull } from '../helpers/assertions';
import { Delegate } from '../helpers/delegate';
import { ISubscription } from '../helper... |
<gh_stars>1-10
import { createID, escapeRegExp, has, hasSigil, isEmpty, pointsMatch, unSigil, removeUndefined, toPoints } from '../util'
import { styleTags, tags } from '@codemirror/highlight'
import { NodeProp, NodePropSource } from 'lezer-tree'
import { isArray, isFunction, isRegExp, isString } from 'is-what'
import ... |
import * as React from 'react';
import '../../style/trace-viewer.css';
import '../../style/trace-context-style.css';
import '../../style/output-components-style.css';
import '../../style/trace-explorer.css';
import '../../style/status-bar.css';
import { Layout, Responsive, WidthProvider } from 'react-grid-layout';
impo... |
<reponame>drmathias/blockcore-extension<gh_stars>1-10
import { HDKey } from "micro-bip32";
import { mnemonicToSeedSync } from 'micro-bip39';
import { Account, AccountUnspentTransactionOutput, Address, Logger, Wallet } from "../../shared/interfaces";
import { MINUTE } from "../shared/constants";
import { Psbt } from '@b... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------... |
/// <reference path="draw_world.ts" />
/// <reference path="leveldata.ts" />
var b2CircleDef;
var b2BodyDef;
var b2PolyDef;
var b2RevoluteJointDef;
var $;
var b2BoxDef;
var b2AABB;
var b2Vec2;
var b2World;
var ball;
var ballBd;
var ballShape;
var direction : number = 90;
var playerImage;
var levelData;
var SCREENWID... |
<gh_stars>0
// (C) Copyright 2015 Moodle Pty Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
<filename>lib/token.ts<gh_stars>0
/*!
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/license... |
/*
* Copyright 2021 Canopy Pte Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import { createSimulatedFrame } from "./media/jpeg";
import { range, wrapAsync, randomUID, keyBy, mapObjectValues } from "./util/misc";
import { SPS, PPS, NALType, NALList, ConvertAnnexBToAVCC, NALRawType, NALListRaw, NALLength, NALCreateRaw, ConvertAnnexBToRawBuffers, NAL_SPS, NAL_SEI, NALCreateRawNoSizeHeader, NA... |
import * as vscode from 'vscode';
import * as path from 'path';
import { getExtensionConfiguration } from './configurationHelper';
/**
* returns a local file path relative to the extension root dir
* @param filePath
*/
export function getResourcePath(context: vscode.ExtensionContext, filePath: string): string {
/... |
import { Controller, Post, Body, Get, Param, Put, Delete, Res, ParseIntPipe, UseInterceptors, UploadedFiles, UseGuards, UseFilters } from "@nestjs/common";
import { ProduitsService } from "./produits.service";
import { ProduitsDto } from "./dto/produits.dto";
import { HistoricSearchService } from "src/historic-search/h... |
import { Sana } from "./types";
export enum Cadeau_1 {
Kappale_2 = "2. Bonjour",
Kappale_3 = "3. Tu as quel âge ?",
Kappale_3a = "3. Tu as quel âge ? - Les nombres",
Kappale_4 = "4. Tu as des frères et sœurs ?",
Kappale_4a = "4. Tu as des frères et sœurs ? - La famille",
Kappale_5 = "5. Tu as un chien ?",
... |
declare const enum ADGAdType {
kADG_AdType_Sp = 0,
kADG_AdType_Large = 1,
kADG_AdType_Rect = 2,
kADG_AdType_Tablet = 3,
kADG_AdType_Free = 4
}
declare class ADGAdWebView extends UIView implements UIWebViewDelegate {
static alloc(): ADGAdWebView; // inherited from NSObject
static appearance(): ADGAdWebVi... |
<reponame>FabianGMImagen/IntranetGrupoImagen
import * as express from 'express';
import CatCtrl from './controllers/cat';
import UserCtrl from './controllers/user';
import Cat from './models/cat';
import User from './models/user';
import SolicitudController from './controllers/solicitud';
import SolicitudRegControll... |
import * as dom from 'dts-dom';
import Guard from './Guard';
const regexEndLine = /^(.*)\r\n|\n|\r/gm;
export type DOMObject = dom.ModuleMember | dom.EnumDeclaration | dom.PropertyDeclaration | dom.MethodDeclaration;
export type DOMObjectWithParent<T extends DOMObject> = T & { _parent: DOMObject };
export class Pars... |
// tslint:disable
// =============================================================================
// This file was generated with `npm run generate-myinfo-typings` on 2021-04-09
// Any modifications to this file may be overwritten when the script runs again
// Check README.md for more information
// ==================... |
import { Component, OnInit, ElementRef, ViewChild, HostListener, Input } from '@angular/core';
import { TiValidationConfig } from '@cloud/tiny3';
import { Router } from '@angular/router';
import { FormControl, ValidationErrors, ValidatorFn, AbstractControl } from '@angular/forms';
import { Subscription } from 'rxjs';
i... |
//
// Copr. (c) 2012 <NAME>
//
// see: http://www.khronos.org/registry/webgl/specs/latest/
//
interface WebGLObject
{
}
interface WebGLBuffer extends WebGLObject
{
}
interface WebGLFramebuffer extends WebGLObject
{
}
interface WebGLProgram extends WebGLObject
{
}
interface WebGLRenderbuffer extends WebGLObject
{
... |
import { CustomElementBase, decode, reduceCss, reduceHtml } from '@ne1410s/cust-elems';
import { ContextMenu } from '@ne1410s/menu';
import { q, ChainedQuery } from '@ne1410s/dom';
import { Grid } from '../../solve/grid';
import { XGrid, PlainGrid, DenseGrid } from '../../models/grid';
import { Point, GridContextPoint... |
<reponame>mjunior/ag-grid
import { Autowired, Bean, Optional, PostConstruct } from "../context/context";
import { CellPosition } from "../entities/cellPosition";
import { MouseEventService } from "./mouseEventService";
import { PaginationProxy } from "../pagination/paginationProxy";
import { Column } from "../entities/... |
<gh_stars>0
import * as createDebug from 'debug';
import { INTERNAL_SERVER_ERROR } from 'http-status';
import * as moment from 'moment-timezone';
import * as MoneyTransferOfferService from './offer/moneyTransfer';
import * as ProductOfferService from './offer/product';
import * as ReservationOfferService from './offer... |
import React, { useRef, useEffect, useState } from 'react';
import { Space, Input, Modal, Button, Select, Typography } from 'antd';
import { Link } from 'react-router-dom';
import Layout from '@/components/Layout';
import AppInfo from '@/components/AppInfo';
import Group from '@/components/Group';
import Welcome from ... |
<filename>client/src/app/site/slots/swap-slots/swap-slots.component.ts<gh_stars>0
import { Component, Injector, Input, OnDestroy } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Response } from '@angular/http';
import { TranslateService } from '@ngx-translate/core';
import { Obs... |
<gh_stars>0
import { CONFIG } from './config'
export const WORDS = [
'acelo',
'acerl',
'acirl',
'adeho',
'aders',
'adils',
'adist',
'adurt',
'afnar',
'agvir',
'aihou',
'aklot',
'akxaz',
'alari',
'aldas',
'alfal',
'alfan',
'alfen',
'alsat',
'altea',
'altiu',
'alvir',
'alxif',
'amath',
'amcol',
'amean',
'anenk',
'anfil'... |
import './Table.css';
import React, { useMemo } from 'react';
import { useComponentSize } from '../../hooks/useComponentSize/useComponentSize';
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
import { IconSortDown } from '../../icons/IconSortDown/IconSortDown';
import { IconSortUp } from '../../icons/... |
import { composite } from 'seemly'
import type { GlobalThemeOverrides } from 'naive-ui'
import { commonDark } from 'naive-ui'
import vars from './vars'
function createHoverColor (color: string, overlayAlpha: number = 0.15): string {
return composite(color, [255, 255, 255, overlayAlpha])
}
function createPressedColo... |
<gh_stars>0
import Papa from 'papaparse'
import { makeObservable, observable } from 'mobx'
import { find, isUndefined, isEqual, isEmpty, chunk } from 'lodash'
import { Query } from 'components/grid/query/Query'
import {
PostgresColumn,
PostgresTable,
PostgresRelationship,
PostgresPrimaryKey,
} from '@supabase/... |
import _ from 'underscore'
import { PartInstance, PartInstanceId } from '../collections/PartInstances'
import { PieceInstance, PieceInstancePiece, rewrapPieceToInstance } from '../collections/PieceInstances'
import { DBPart, PartId } from '../collections/Parts'
import { Piece } from '../collections/Pieces'
import { Seg... |
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
import './BasicLayout.less';
import type { CSSProperties } from 'react';
import { useCallback, useRef } from 'react';
import React, { useContext, useEffect, useMemo, useState } from 'react';
import type { BreadcrumbProps as AntdBreadcrumbProps } from 'infrad/lib/breadcrumb';
import { Layout, ConfigProvider } from 'infr... |
import { Transition } from "@candlelib/glow";
import spark, { Sparky } from "@candlelib/spark";
import { WickRTComponent } from "./component.js";
import { ObservableModel, ObservableWatcher } from "../types/model";
import { hydrateComponentElements } from "./html.js";
import { rt } from "./global.js";
function getColu... |
import { Component } from '@angular/core';
import { NavController, IonicPage } from 'ionic-angular';
import { convertEnumToColumn } from 'ion-multi-picker';
import citise from '../../assets/chinese-cities.json';
enum Fruit {
Apple, Orange, Melon, Banana, Pear,
}
@IonicPage()
@Component({
templateUrl: 'advanced.html... |
<reponame>shinyoshiaki/node-sfu<gh_stars>10-100
import { isEqual } from "lodash";
import Event from "rx.mini";
import * as uuid from "uuid";
import { enumerate } from "./helper";
import { Kind, SignalingState } from "./typings/domain";
import { IceOptions } from "../../ice/src";
import { DISCARD_HOST, DISCARD_PORT, SRT... |
import {
b2DestructionListener,
b2Joint,
b2Fixture,
b2Vec2,
b2PointState,
b2Transform,
b2ContactListener,
b2World,
b2Body,
b2MouseJoint,
b2Profile,
b2Contact,
b2WorldManifold,
b2Manifold,
b2GetPointStates,
b2ContactImpulse,
b2BodyType,
b2MouseJoint... |
<filename>src/pages/Ramen/pos.ts
import {
DeviceAddressResponseCode,
Secrets,
Spi,
SpiFlow,
SpiStatus,
SuccessState,
TransactionOptions,
TransactionType,
} from '@mx51/spi-client-js';
import {
cashout,
moto,
pairing,
purchase,
refund,
settlement,
settlementEnquiry,
terminalStatus,
tra... |
/* eslint no-sync: 0, no-console:0, complexity:0, dot-notation: 0 */
import * as babel from '@babel/core';
import { Visitor } from '@babel/traverse';
import * as BabelTypes from '@babel/types';
import {
MongoshInternalError,
MongoshInvalidInputError,
MongoshUnimplementedError
} from '@mongosh/errors';
import proc... |
import { useNavigation } from '@react-navigation/native';
import i18n from 'assets/i18n';
import { BigNumber } from 'bignumber.js';
import Modal from 'components/Modal';
import Button from 'components/core/Button';
import SuccessSvg from 'components/svg/SuccessSvg';
import WarningTriangle from 'components/svg/WarningTr... |
// tslint:disable: variable-name
const path = require("path")
import fs = require("fs")
import JSON5 = require("json5")
import Vinyl = require("vinyl")
import { BufferFile } from "vinyl"
import { trimSwagger } from "./scripts/trim-swagger/trim-swagger"
import { trimClasses } from "./scripts/trim-classes/index"
const e... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { AdsOptions, Source } from '../interfaces';
import Media from '../media';
import Player from '../player';
import { EVENT_OPTIONS, IS_ANDROID, IS_IOS, IS_IPHONE } from '../utils/constants';
import { addEvent, isAudio, isVideo, isXml, loadScript } from '../u... |
<reponame>wkevina/androidjs-builder
import '../Interfaces';
import {Interfaces} from '../Interfaces';
import * as path from 'path';
import {getDownloadLink, getFileDownloadLink} from '../GitListDir';
const request = require('request');
const { exec } = require("child_process");
import * as fs from 'fs-extra';
import... |
import _ from "lodash";
import { debug } from "@/lib";
import { Buffer } from "buffer";
import { decodeAndPrepare, HttpStatusReply, ReplyStream, NetworkInfo, ModuleConfiguration } from "./http-types";
import { StreamTableRow, DownloadTableRow } from "./row-types";
import { Location } from "./map-types";
export * from ... |
import Taro, { Component } from "@tarojs/taro";
import { AtIcon, AtToast } from "taro-ui"
import { View, Text, Image, ScrollView, Button } from "@tarojs/components";
import "./index.styl";
import request from '../../services/request'
import MobileImg from '../../assets/dianhua.png'
import AddressImg from '../../assets/... |
import React, { PropsWithChildren } from "react";
import { useDispatch, useSelector } from "react-redux";
import Icon from "./Icon";
import ScrollBox from "./ScrollBox";
import Timestamp from "./Timestamp";
import * as codemarkSelectors from "../store/codemarks/reducer";
import * as userSelectors from "../store/users/r... |
<reponame>dombajc/app<filename>plugins/ag-grid-master/src/ts/gridPanel/gridPanel.ts
import _ from '../utils';
import MasterSlaveService from "../masterSlaveService";
import GridOptionsWrapper from "../gridOptionsWrapper";
import {ColumnController} from "../columnController/columnController";
import RowRenderer from "..... |
import type { ThemeProperties } from '../theme/ThemeProperties';
import { PointerEvent } from '../events/PointerEvent';
import type { FocusType } from '../core/FocusType';
import type { Padding } from '../theme/Padding';
import { BaseTheme } from '../theme/BaseTheme';
import type { Event } from '../events/Event';
impor... |
<gh_stars>0
enum NeoPixelColors {
//% block=red
Red = 0xFF0000,
//% block=orange
Orange = 0xFFA500,
//% block=yellow
Yellow = 0xFFFF00,
//% block=green
Green = 0x00FF00,
//% block=blue
Blue = 0x0000FF,
//% block=indigo
Indigo = 0x4b0082,
//% block=violet
Violet = ... |
/*
Copyright (c) 2011 <NAME>
http://gphemsley.org/
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person o... |
<reponame>goldfinch-eng/mono<gh_stars>10-100
import {BackerRewards as BackerRewardsContract} from "@goldfinch-eng/protocol/typechain/web3/BackerRewards"
import BigNumber from "bignumber.js"
import difference from "lodash/difference"
import mapValues from "lodash/mapValues"
import zipObject from "lodash/zipObject"
impor... |
import { Record, ModuleFormat } from './Record';
import { ChangeSet, Patch } from './ChangeSet';
import { features, makeTable } from './platform';
/** Lookahead / behind buffer size to speed up matching surrounding tokens. */
const chunkSize = 128;
/** Table of characters that may surround keyword and identifier name... |
import WS from 'ws';
import { Cluster } from './Cluster';
import { CordisGatewayError, CordisGatewayTypeError } from '../error';
import * as Util from '../util';
import { halt } from '@cordis/common';
import { Queue } from '@cordis/queue';
import { Intents, IntentKeys } from '../Intents';
import { stripIndent } from 'c... |
<filename>src/electron/renderer/webview/selection.ts
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the... |
<filename>node_modules/phovea_clue/src/storyvis.ts
/**
* Created by sam on 09.02.2015.
*/
import * as C from 'phovea_core/src/index';
import * as ranges from 'phovea_core/src/range';
import * as provenance from 'phovea_core/src/provenance';
import * as idtypes from 'phovea_core/src/idtype';
import * as cmode from '... |
<filename>vendor/bower-asset/fullcalendar/src/util.ts
import * as moment from 'moment'
import * as $ from 'jquery'
/* FullCalendar-specific DOM Utilities
----------------------------------------------------------------------------------------------------------------------*/
// Given the scrollbar widths of some oth... |
<gh_stars>0
import { BoxedExpression, ComputeEngine } from '../../src/compute-engine';
export const ce = new ComputeEngine();
function isEquivalent(a: string | BoxedExpression, b: string): boolean {
const lhs = typeof a === 'string' ? ce.parse(a) : a;
return lhs.isSame(ce.parse(b));
}
function isEquivalentSimpli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.