text stringlengths 9.82k 47.8k |
|---|
import camelCase from 'camelcase';
import type {
JSONSchema4,
JSONSchema6,
JSONSchema6Definition,
JSONSchema6TypeName,
JSONSchema7,
JSONSchema7Definition,
} from 'json-schema';
import type { OpenAPIV3 } from 'openapi-types';
import * as ts from 'typescript';
import { factory } from 'typescript';
import YErr... |
import * as React from 'react';
import '../../App.css';
import { GameBoardIP, GameBoardIS } from '../../icdots/interfaces';
import { mySVGHClicked64Uri, mySVGVClicked64Uri, mySVGHOpen64Uri, mySVGVOpen64Uri } from './SvgUri';
class GameBoard extends React.Component<GameBoardIP, GameBoardIS> {
constructor(props: Gam... |
import * as grok from 'datagrok-api/grok';
import * as ui from 'datagrok-api/ui';
import * as DG from 'datagrok-api/dg';
import CodeMirror from 'codemirror';
import {BehaviorSubject} from 'rxjs';
import 'codemirror/mode/javascript/javascript'
import 'codemirror/mode/python/python'
import 'codemirror/mode/octave/octave'... |
import {NodeSelection, EditorState, Plugin, PluginView, Transaction, Selection} from "prosemirror-state"
import {Slice, ResolvedPos, DOMParser, DOMSerializer, Node, Mark} from "prosemirror-model"
import {scrollRectIntoView, posAtCoords, coordsAtPos, endOfTextblock, storeScrollPos,
resetScrollPos, focusPreventS... |
// We're importing every item on its own to enable webpack tree shaking
import isEqual from "lodash/isEqual"
import map from "lodash/map"
import sortBy from "lodash/sortBy"
import orderBy from "lodash/orderBy"
import each from "lodash/each"
import keys from "lodash/keys"
import entries from "lodash/entries"
import isNu... |
/** @jsx jsx */
import {
React,
Immutable,
ImmutableObject,
IMState,
jsx,
UseDataSource,
ThemeVariables,
SerializedStyles,
css,
urlUtils,
DataSourceManager,
IMUseDataSource,
ImmutableArray,
polished,
DataSource,
IMDataSourceJson,
getAppStore,
FeatureLayerDataSource,
SupportedLayerS... |
import { autoinject } from 'aurelia-dependency-injection'
import {
ReferenceEntity,
Entity,
EntityCollection,
Cartographic,
ConstantPositionProperty,
ConstantProperty,
Cartesian3,
Quaternion,
Matrix4,
Matrix3,
CesiumMath,
Transforms,
JulianDate,
ReferenceFrame,
... |
<gh_stars>0
import { getTokens, Token, Type } from './tokenizer';
export enum SyntaxKind {
ASSIGNMENT,
BINARY_OPERATOR,
CATCH_STATEMENT,
DO_STATEMENT,
FOR_STATEMENT,
IDENTIFIER,
IF_STATEMENT,
NUMERIC_LITERAL,
POST_CONDITION,
QUIT_STATEMENT,
RETURN_STATEMENT,
SET_STATEMENT,
MULTIPLE_VARIABLE_SET,
STRING_L... |
import { message } from 'antd';
import _ from 'lodash';
import { all, call, delay, put, takeLatest } from 'redux-saga/effects';
import { getType } from 'typesafe-actions';
import { updateRequireLoadStatus } from '@/actions/builder/component-load';
import { updateConditionBindDrawerVisible } from '@/actions/builder/con... |
<reponame>pegasystems/angular-sdk<gh_stars>1-10
import { Component, OnInit, Input, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
import { AngularPConnectServic... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
import * as minimatch from 'minimatch';
import * as server from 'vscode-languageserver';
import * as fs from 'fs';
... |
<gh_stars>1-10
// tslint:disable:max-classes-per-file
import { Serialization, StringBuilder, Strings } from ".";
// http://openmobilealliance.org/release/LightweightM2M/V1_0_2-20180209-A/OMA-TS-LightweightM2M-V1_0_2-20180209-A.pdf.
// Section 6.4.3:
export const TLV_MIME_TYPE = "application/vnd.oma.lwm2m+tlv";
/** Cu... |
<gh_stars>0
import * as request from 'supertest'
import { disconnectFromServer, generateAndRunServerFromSchema, loadGraphQL } from './utils'
export async function createModel1(server, token, data, relations = {}) {
if (relations['model2'] && Array.isArray(relations['model2'])) {
const modelmodel2 = server.... |
<filename>src/main.ts
import * as utils from '@iobroker/adapter-core';
import * as semver from 'semver';
import { TestRequirements } from './lib/testClass';
import pidusage from 'pidusage';
import { testObjects } from './lib/helper';
import { tests as allTests } from './lib/allTests';
import { readFileSync } from 'fs';... |
<filename>core/geometry/src/test/Graph.test.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*------------... |
<reponame>joe-sky/nornj<filename>packages/nornj/src/compiler/buildRuntime.ts
import nj from '../core';
import * as tools from '../utils/tools';
import * as tranData from '../transforms/transformData';
import { unescape } from '../utils/escape';
import { extensionConfig } from '../helpers/extension';
import { filterConf... |
<gh_stars>1-10
/*
a parser thread takes a parser and uses it to consume some of a token stream,
and returns some result
a thread can *split* the current parser state into N branches,
each of which consume their own things separately and return their own results
the thread which initiated the split ... |
import { createClient, ClientOpts, RedisClient } from "redis"
class redissearch {
redis: RedisClient
constructor(clientOpts: ClientOpts) {
this.redis = createClient(clientOpts);
}
async sendCommand(command: string, arg?: any[]) {
return await new Promise((resolve, reject) => {
this.redis.sendCo... |
<gh_stars>10-100
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
<reponame>KrzysztofMadejski/incubator-echarts
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Lice... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright 2012-2020 Online-Go.com
*
* 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... |
import { DestinyVersion, TagValue } from '@destinyitemmanager/dim-api-types';
import { StoreIcon } from 'app/character-tile/StoreIcon';
import { StatInfo } from 'app/compare/Compare';
import BungieImage from 'app/dim-ui/BungieImage';
import { StatTotalToggle } from 'app/dim-ui/CustomStatTotal';
import ElementIcon from ... |
import { Component } from 'react'
import { FaPlay, FaPlus, FaPause, FaBars, FaChevronLeft, FaChevronRight, FaTools } from 'react-icons/fa';
import { APP_NAME, MIDI_STATUS, LAYERS_INDEXES, TEMPO_CHANGERS, PitchesType, TempoChanger, EMPTY_LAYER } from "appConfig"
import AddColumn from 'components/icons/AddColumn';
impo... |
import { mkScope } from "lonna"
import * as O from "./observable/observables"
export type HarmajaComponent = (props: HarmajaProps) => HarmajaOutput
export type JSXElementType = string | HarmajaComponent
export type HarmajaProps = Record<string, any>
export type HarmajaChild = HarmajaObservableChild | DOMNode | string... |
import { Backdrop, CircularProgress } from "@mui/material";
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Theme, SxProps } from "@mui/material/styles";
import { ApolloError } from "@apollo/client";
import { getSavedPaymentMethodAddressIdFromBillingInfo, savedPaymentMethodToB... |
/* @license
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* ... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Copyright (C) 2012 Google Inc. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are perm... |
<gh_stars>0
import {
Component,
OnInit,
ViewChild,
HostListener,
ElementRef,
TemplateRef,
Input,
Renderer2,
OnDestroy,
} from '@angular/core';
import { MatTableDataSource, MatSort, PageEvent } from '@angular/material';
import { Router, ActivatedRoute } from '@angular/router';
import { ApiService } fro... |
<filename>packages/model-viewer/src/three-components/SmoothControls.ts<gh_stars>0
/* @license
* 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... |
<filename>wwwroot/libs/vidyano/query.ts
import type * as Dto from "./typings/service.js"
import { Observable, IPropertyChangedObserver, ISubjectDisposer, PropertyChangedArgs } from "./common/observable.js"
import { QueryColumn, SortDirection } from "./query-column.js"
import { QueryResultItem } from "./query-result-ite... |
import { EventEmitter } from "events";
interface KeyState {
isDown: boolean;
wasJustPressed: boolean;
wasJustAutoRepeated: boolean;
wasJustReleased: boolean;
}
interface MouseButtonState {
isDown: boolean;
doubleClicked: boolean;
wasJustPressed: boolean;
wasJustReleased: boolean;
}
interface TouchSta... |
// external imports
import type { Config } from 'houdini-common'
// local imports
import {
Maybe,
GraphQLValue,
SubscriptionSelection,
SubscriptionSpec,
GraphQLObject,
} from '../types'
import { Record } from './record'
import { ListHandler } from './list'
import { isScalar } from '../scalars'
// this class imple... |
<gh_stars>1-10
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
export type ImageTempla... |
/********************************************************************************
* Copyright (C) 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
import React, { useState, useContext, useEffect } from "react";
import {
Layout,
Row,
Col,
Card,
Icon,
Button,
BackTop,
Spin,
Modal,
Progress,
Tooltip
} from "antd";
import axios, { AxiosError, AxiosResponse, AxiosRequestConfig } from "axios";
import { AuthCo... |
<reponame>metrodao/quests<filename>packages/react-app/config/webpack.config.ts
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const PnpWebpackPlugin = require('pnp-webpack-... |
/**
* @script
*
* This script should be run to update the playground with all the latest type
* definitions and module exports.
*
* It should be run after running `pnpm build` otherwise it will fail.
*/
import assert from 'assert';
import { promises as fs, readdirSync, Stats } from 'fs';
import glob from 'globb... |
///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" />
import config from 'app/core/config';
import {CanvasPanelCtrl} from './canvas-metric';
import {DistinctPoints} from './distinct-points';
import _ from 'lodash';
import $ from 'jquery';
import moment from 'moment';
import kbn from 'app/... |
/* eslint-disable camelcase */
type ArrayOneOrMore<T> = {
0: T;
} & T[];
export type IMarketOrdersData = IMarketOrdersDataUnit[];
export interface IMarketOrdersDataUnit {
order_id: number;
type_id: number;
location_id: number;
volume_total: number;
volume_remain: number;
min_volume: numbe... |
declare namespace CompletersNS {
const enum SugType {
Empty = 0,
bookmark = 1,
history = 2,
tab = 4,
search = 8,
domain = 16,
Full = 0x3f,
/** bookmark | history | tab */ MultipleCandidates = 7,
}
const enum QComponent { NONE = 0, mode = 1, query = 2, offset = 4, queryOrOffset = q... |
<reponame>SteveVaneeckhout/Geowars
interface IInput {
mousePosition: IPos;
isMouseDown: boolean;
arrowLeft: boolean;
arrowUp: boolean;
arrowRight: boolean;
arrowDown: boolean;
}
interface IPos {
x: number;
y: number;
}
interface IBullet {
position: IPos;
origin: IPos;
angle: number;
speed: number;
}
in... |
// import * as t from '@tableau/extensions-api-types';
import { Parameter, Worksheet } from '@tableau/extensions-api-types';
import { useEffect, useReducer, useRef, useState } from 'react';
import * as React from 'react';
import { debugOverride, defaultSelectedProps, HierarchyProps, HierType, SelectedParameters, Status... |
import { Observable } from 'rxjs/Observable';
import { Injectable } from '@angular/core';
import { BaseService, INameValue } from '../shared/service/base.service';
import { HubService } from '../shared/hub/hub.service';
import { OverpunchService } from './overpunch.service';
import { IServiceOptions, IDataService, ICol... |
<reponame>Bhaskers-Blu-Org2/powerquery-parser
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TokenRange } from "../token";
export const enum NodeKind {
ArithmeticExpression = "ArithmeticExpression",
ArrayWrapper = "ArrayWrapper",
AsExpression = "AsExpression",
AsNu... |
<reponame>Troppydash/TroppydashTimetable-c<filename>src/lib/MapRenderer.ts
import * as THREE from 'three';
import * as OrbitControls from 'three/examples/jsm/controls/OrbitControls.js';
import * as GLTFLoader from "three/examples/jsm/loaders/GLTFLoader";
import TWEEN from "@tweenjs/tween.js";
import similarity from 's... |
<reponame>jonbjornn/eve-hyperdev<filename>src/runtime/builder.ts
//-----------------------------------------------------------
// Builder
//-----------------------------------------------------------
import {inspect} from "util";
import * as join from "./join";
import * as providers from "./providers/index";
import ".... |
<gh_stars>0
type Energy = string;
type ItemStackIndex = number;
type FileName = string;
type SpriteSizeType = number;
type RealOrientation = number;
type Order = string;
type ItemCountType = number;
type Vector3D = number[];
type MaterialAmountType = number;
type TriggerTargetMask = string[];
// The documentation in s... |
/*
* Copyright (C) 2018 DANS - Data Archiving and Networked Services (<EMAIL>)
*
* 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
*
* Unle... |
/// <reference path="../node_modules/@keymanapp/models-templates/src/index.ts" />
/// <reference path="correction/context-tracker.ts" />
class ModelCompositor {
private lexicalModel: LexicalModel;
private contextTracker?: correction.ContextTracker;
private static readonly MAX_SUGGESTIONS = 12;
readonly punctua... |
<filename>web/src/main/webapp/dataViews/tsViewBase.ts<gh_stars>10-100
/*
* Copyright (c) 2018 VMware Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
/**
* These tests demonstrate some common patterns for using quickjs-emscripten.
*/
import {
getQuickJS,
QuickJSHandle,
InterruptHandler,
QuickJSDeferredPromise,
newQuickJSAsyncWASMModule,
newQuickJSWASMModule,
} from "."
import { it, describe } from "mocha"
import assert from "assert"
import { isFail, V... |
<gh_stars>0
import {HiveCluster} from './_HiveCluster';
import {profile} from '../profiler/decorator';
import {Colony} from '../Colony';
import {Mem} from '../memory/Memory';
import {TerminalNetwork} from '../logistics/TerminalNetwork';
import {Reaction} from '../resources/Abathur';
import {Pathing} from '../movement/P... |
import { graphql, Link } from 'gatsby';
import Img from 'gatsby-image';
import * as _ from 'lodash';
import { setLightness } from 'polished';
import * as React from 'react';
import styled from '@emotion/styled';
import { css } from '@emotion/core';
import { Helmet } from 'react-helmet';
import Content, { HTMLContent }... |
/**
* @license
* Copyright 2016-2019 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... |
import { AleaState, emptyState, initState, random } from '@spissvinkel/alea';
import { DebugState, getDebugState } from './debug/debug-mgr';
import { addToList, clearList, mkArrayList } from './utils';
/**
* Top left world coords is (0, 0)
*/
export const WORLD_CHUNKS_V = 100;
export const WORLD_CHUNKS_H = 100;
ex... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import * as isEqual from 'lodash.isequal';
import * as classNames from 'classnames';
import {
autoBindHandlers,
bottom,
outOfBoundary,
childrenEqual,
cloneLayoutItem,
compact,
getLayoutItem,
getLayoutItemIndex,
... |
import { degToRad } from './v2'
import { v3, normalize, cross, sub } from './v3'
export interface mat4 extends Array<number> {
position?: v3
translate?(target: v3): mat4
scale?(target: v3): mat4
scaleVector?(): v3
multiply?(target: mat4): mat4
invert?(): mat4
}
export const identity = () => {
const out: ... |
<gh_stars>0
import { Timeline, Tween } from "@akashic-extension/akashic-timeline";
import { E, PointUpEvent } from "@akashic/akashic-engine";
interface NinjaPlayer {
isPointPress: boolean;
pointX: number;
pointY: number;
ninjaPos: {
x: number;
y: number;
};
ninja: g.FrameSprite;
zombie: number;
shotAge: nu... |
import React, { createContext, useCallback, useContext, useEffect, useState } from 'react';
import { PERMISSIONS, requestMultiple } from 'react-native-permissions';
import MusicFiles from 'react-native-get-music-files-v3dev-test';
import TrackPlayer from 'react-native-track-player';
import AsyncStorage from '@react-nat... |
<filename>src/index.ts
import axios, { AxiosResponse, AxiosError } from 'axios';
interface ICoin {
name: string;
}
interface IExchange {
name: string;
currency: ICurrency;
url: string;
displayName: string;
}
interface ICurrency {
name: string;
}
interface ICoinPrice {
exchange: IExchange;
coin: ICoin... |
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnDestroy,
OnInit,
Output,
SimpleChanges,
ViewChild,
} from '@angular/core';
import { LngLatBounds, LngLatLike, Map as MaplibreMap } from 'maplibre-gl';
import { ReplaySub... |
<reponame>stagnationlab/jumio<gh_stars>1-10
import { Router } from "express";
import { Logger } from "ts-log";
export declare type HandleIdentityVerificationFn = (verificationResult: IdentityVerificationResult) => Promise<void>;
export declare type HandleDocumentVerificationFn = (verificationResult: DocumentVerificatio... |
// Copyright (c) 2022 Uber Technologies, Inc.
//
// 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 the rights
// to use, copy, modify, merge... |
<filename>cli/buildengine.ts
/// <reference path="../built/pxtlib.d.ts"/>
/// <reference path="../built/pxtsim.d.ts"/>
(global as any).pxt = pxt;
import * as nodeutil from './nodeutil';
import * as fs from 'fs';
import * as path from 'path';
import * as child_process from 'child_process';
import { promisify } from "... |
<gh_stars>10-100
/**
* this was seeded from Brett Knights open source here https://github.com/BKnights/KotN-Netsuite/edit/master/SuiteScriptAPITS.d.ts
*/
//TODO: add help for text for everything declared here!
declare function nlapiCopyRecord(type:string, id:string, initializeValues?:Object): nlobjRecord;
declare ... |
import sdk, { DeviceManifest, DeviceProvider, HttpRequest, HttpRequestHandler, HttpResponse, HumiditySensor, MediaObject, MotionSensor, OauthClient, Refresh, ScryptedDeviceType, ScryptedInterface, Setting, Settings, TemperatureSetting, TemperatureUnit, Thermometer, ThermostatMode, VideoCamera, MediaStreamOptions, Binar... |
/**
* gridstack-dd.ts 4.4.0-dev
* Copyright (c) 2021 <NAME> - see GridStack root license
*/
/* eslint-disable @typescript-eslint/no-unused-vars */
import { GridStackDDI } from './gridstack-ddi';
import { GridItemHTMLElement, GridStackNode, GridStackElement, DDUIData, DDDragInOpt, GridStackPosition } from './... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import { assert, LazyPromise, Timer } from "@fluidframework/common-utils";
import {
cloneGCData,
concatGarbageCollectio... |
<filename>src/katamari_damacy/bin.ts
import ArrayBufferSlice from "../ArrayBufferSlice";
import { assert, hexzero, assertExists } from "../util";
import { Color, colorNew, colorFromRGBA } from "../Color";
const enum VifUnpackVN {
S = 0x00,
V2 = 0x01,
V3 = 0x02,
V4 = 0x03,
}
const enum VifUnpackVL {
... |
<filename>internals-js/src/schemaUpgrader.ts
import {
ASTNode,
GraphQLError,
Kind,
print as printAST,
} from "graphql";
import { ERRORS } from "./error";
import {
baseType,
CompositeType,
Directive,
errorCauses,
Extension,
FieldDefinition,
isCompositeType,
isInterfaceType,
isObjectType,
Na... |
/*
* Copyright (c) 2006-2011 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
... |
import { HumanNames, NameType, VillageNameModel } from '../models/name.model'
export const humanNames: HumanNames = {
Alderlander: {
Male: {
probabilites: [
{
type: NameType.FirstName,
weight: 49,
},
{
type: NameType.FamilyName,
//'[name.Alder... |
<gh_stars>0
import { getApi } from './api';
import { importfunc, symbolName } from '../native';
import { readFile } from '../linux';
interface Image {
name: string | null
handle: NativePointer
assembly: NativePointer
};
interface Il2cppClass {
[index: string]: any
$classHandle: Nativ... |
<filename>test/driver.ts
import BN from "bn.js";
import chai from "chai";
chai.use(require('chai-bn')(BN));
export const ZERO_ADDR = "0x0000000000000000000000000000000000000000";
import { ElectionsContract } from "../typings/elections-contract";
import { DelegationsContract } from "../typings/delegations-contract";
i... |
<gh_stars>0
import {
Component,
OnInit,
ViewChild,
HostListener,
ElementRef,
AfterViewChecked,
} from '@angular/core';
import {
MatTableDataSource,
MatSort,
PageEvent,
MatPaginator,
} from '@angular/material';
import { Router } from '@angular/router';
import { ApiService } from './../../../shared/se... |
/**
* Table 0 - National/International Originating Centers
*
* [Read more...](https://www.nco.ncep.noaa.gov/pmb/docs/on388/table0.html)
*/
export const lookupTable0 = (code: number) => {
switch (code) {
case 1:
return 'Melbourne (WMC)'
case 2:
return 'Melbourne (WMC)'
case 3:
return... |
<reponame>obiSerra/saasform<filename>src/webapp/src/auth/auth.service.ts
import { Injectable, UnauthorizedException } from '@nestjs/common'
import { UsersService } from '../accounts/services/users.service'
import { AccountsService } from '../accounts/services/accounts.service'
import { RequestUser, ValidUser } from './... |
<reponame>njpipeorgan/wolfram-language-notebook
// Copyright 2021 <NAME>
//
// 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
//
// Unle... |
<filename>src/lib/updating-element.ts
/**
* @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
... |
import {NgModule,Component,ElementRef,OnInit,AfterViewInit,AfterContentInit,AfterViewChecked,OnDestroy,Input,Output,Renderer2,EventEmitter,ContentChildren,
QueryList,ViewChild,TemplateRef,forwardRef,ChangeDetectorRef,NgZone} from '@angular/core';
import {trigger,state,style,transition,animate,AnimationEvent} fr... |
<gh_stars>0
import { Column } from '../dataStructures/DataFrame';
import { URLAnalysis } from '../analyses/URLAnalysis';
import tippy from 'tippy.js';
import { ResponseDataCell, ResponseDataCellType, URLResponseDataCell } from '../SPARQLResponseVisualisation';
const BUTTON_HEIGHT = 50;
const SPACE_BETWEEN_COLUMNS = 40... |
<reponame>mraf/Cromwell<gh_stars>100-1000
import {
getRandStr,
TFrontendDependency,
TModuleConfig,
TPackageCromwellConfig,
TPackageJson,
TPagesMetaInfo,
TPluginConfig,
TRollupConfig,
TScriptMetaInfo,
} from '@cromwell/core';
import {
buildDirName,
getLogger,
getMetaInfoPa... |
<reponame>Flusinerd/angular
/**
* @license
* Copyright Google Inc. 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 * as ts from 'typescript';
import {Reference} from '../../imports';
import {Owni... |
/**
* Copyright Microsoft Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
/** An RGBA color */
export type Color = {
/** Red channel value, between 0 and 1 */
r: number;
/** Green channel value, between 0 and 1 */
g: number;
/** Blue channel value, between 0 and 1 */
b: number;
/** Alpha channel value, between 0 and 1 */
a: number;
};
/** A string enum with value, describing ... |
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
import * as vscode from 'vscode';
import * as cp from 'child_pro... |
/**
* <NAME> @ Bright Wearables
* https://github.com/BrightWearables/pxt-microbit-brightboard
*
* Development environment specifics:
* Written in and tested with PXT
* Tested with a Bright Board and micro:bit
* More information on the Bright Board available at https://www.brightwearables.com
*
* This code is released u... |
<filename>src/Keyboard.ts
// Keyboard.ts - Keyboard handling
// (c) <NAME>, 2019
// https://benchmarko.github.io/CPCBasicTS/
//
import { Utils } from "./Utils";
import { View } from "./View";
export interface CpcKeyExpansionsOptions {
iCpcKey: number
iRepeat: number
iNormal?: number
iShift?: number
iCtrl?: numbe... |
<gh_stars>0
import { mat4 } from 'gl-matrix';
import { AbstractScene } from '../../AbstractScene';
import { context as gl } from '../../core/RenderingContext';
import { Texture } from '../../core/texture/Texture';
import { TextureUnit } from '../../core/texture/TextureUnit';
import { TextureUtils } from '../../core/uti... |
<filename>src/constants.ts<gh_stars>100-1000
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as path from "path";
import { MessageItem } from "vscode";
import * as nls from "vscode-nls";
// Debugger Server
export const SERVER_INFO = {
DEFAULT_SERVER_PORT: 5577,
ERROR_CODE_I... |
import { $$ } from '../../utils/Dom';
import { DeviceUtils } from '../../utils/DeviceUtils';
import { SliderEvents, IGraphValueSelectedArgs } from '../../events/SliderEvents';
import { Utils } from '../../utils/Utils';
import { scaleBand, scaleLinear } from 'd3-scale';
import { select as d3select, max as d3max } from '... |
<gh_stars>100-1000
// This file is derived from the Cesium code base under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
/*
The Tileset loading and rendering flow is as below,
A rendered (i.e. deck.gl `Tile3DLayer`) triggers `tileset.update()` after ... |
<gh_stars>100-1000
import { Translate } from '../translate/translate.service';
export interface Country {
code: string;
name: string;
}
export interface Region {
code: string;
name: string;
}
export class Geo {
private static countries: Country[] = [];
private static regions: { [k: string]: Region[] } = {};
... |
import { ReactNode, MouseEvent } from 'react';
import { Getters } from '@augurproject/sdk';
import type {
Address,
PayoutNumeratorValue,
MarketInfoOutcome,
MarketOrderBookOrder,
OutcomeOrderBook,
MarketOrderBook,
MarketTradingHistory,
Orders,
} from '@augurproject/sdk-lite';
import type {
TransactionM... |
<filename>lib/therror.d.ts
/**
* Therror is a library created for making node error management easy, customizable, interoperable and documentable.
* Therror errors are javascript errors with sugar. You can use this library to create your application or library errors, and maintain fully interoperability with others c... |
<filename>src/view/component/showPathInput.ts
import * as vscode from "vscode";
import fs from "../../util/fs";
import * as path from "path";
import { Stats } from "fs";
import { CheckRule } from "../../util/vscode";
import { Constant } from "../../UserConfiguration";
import * as os from "os";
import { listMountPath, s... |
<reponame>spatools/koui
/*eslint no-console: [0], no-unused-vars: [2, { args: "none" }] */
/// <amd-dependency path="jqueryui" />
import * as ko from "knockout";
import * as $ from "jquery";
import * as utils from "./utils";
import * as ctx from "./contextmenu";
import {
defaultInstance as templateEngine
} from "... |
/**
* AVR-8 Timers
* Part of AVR8js
* Reference: http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf
*
* Copyright (C) 2019, 2020, 2021 <NAME>
*/
import { AVRInterruptConfig, CPU } from '../cpu/cpu';
import { AVRIOPort, PinOverrideMode, portBConfig, portDConfig } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.