text stringlengths 3.08k 15.5k |
|---|
/* eslint-disable react/no-danger */
import Link from 'next/link';
import Head from 'next/head';
import Prismic from '@prismicio/client';
import ptBR from 'date-fns/locale/pt-BR';
import { format } from 'date-fns';
import { RichText } from 'prismic-dom';
import { useRouter } from 'next/router';
import { GetStaticPaths,... |
<filename>packages/kotti-ui/source/index.ts<gh_stars>0
// styles
import './kotti-style/index.scss'
// components
import { KtAccordion } from './kotti-accordion'
export * from './kotti-accordion'
import { KtActionbar } from './kotti-actionbar'
export * from './kotti-actionbar'
import { KtAvatar } from './kotti-avatar'
... |
import * as React from "react";
import {
Command, CommandGroup,
GenerateMarkdownPreview, GetIcon
} from "../types";
import {getDefaultCommands} from "../commands";
import {MdePreview, MdeToolbar, TextArea} from ".";
import {extractCommandMap} from "../util/CommandUtils";
import {Tab} from "../types/Tab";
import... |
import React from 'react';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faTrashAlt} from '@fortawesome/free-solid-svg-icons'
import RestrictionType from '../enums/RestrictionType'
import Restriction from '../DataStorageClasses/Restriction'
import TableAttribute from '../DataStorageClasses/Tab... |
<filename>app/frontend/data/units.ts
import * as Qty from 'js-quantities'
import { forOwn, identity, isArray } from "lodash-es";
export class UnitSystem {
units: Map<string, string>
static base = new Proxy(new UnitSystem(), {
get(target, property: string, receiver): string {
if (target.units.has(property... |
import express,{Response,NextFunction} from 'express';
import { GuildModel } from '../database/guild';
import { MessageModel } from '../database/message';
const Router:express.Router = express.Router();
import {start,client} from '../bot/botStart';
import { v4 as uuidv4 } from 'uuid';
import { authenticate } from '../... |
import { Fragment } from 'react';
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/solid';
import { PaginationChangeEventData } from '@typings/common';
import classNames from 'classnames';
type PaginateProps = {
totalRecords: number;
pageLimit: number;
pageNeighbours: number;
onPageChanged:... |
<filename>apps/server/src/modules/contrib-install-controller/index.ts
import { EventEmitter } from 'events';
import * as path from 'path';
import { copyFile, fileExists, rmFolder } from '../../common/utils';
import { logger } from '../../common/logging';
import { ERROR_TYPES, ErrorManager } from '../../common/errors';... |
import type Painter from './painter';
import type SourceCache from '../source/source_cache';
import type StyleLayer from '../style/style_layer';
import type {OverscaledTileID} from '../source/tile_id';
import type SymbolBucket from '../data/bucket/symbol_bucket';
import DepthMode from '../gl/depth_mode';
import Stencil... |
<gh_stars>1-10
import { Injectable } from '@angular/core';
import { HubConnectionBuilder, LogLevel, HubConnection, HubConnectionState } from '@microsoft/signalr';
import { appsettings } from './global-resolver.guard';
import { OAuthStorage } from 'angular-oauth2-oidc';
import { from, Observable, of, Subject } from 'rxj... |
<reponame>vilyLei/voxweb3d<filename>src/demo/DemoTexUpdate.ts<gh_stars>1-10
import RendererDevice from "../vox/render/RendererDevice";
import RendererParam from "../vox/scene/RendererParam";
import RendererInstanceContext from "../vox/scene/RendererInstanceContext";
import RenderStatusDisplay from "../vox/scene/Render... |
<gh_stars>0
import CreateElement from "@components/CreateElement";
import InsertAfter from "@root/helpers/InsertAfter";
import classnames from "classnames";
import AddChildren, { ChildrenParamType } from "./helpers/AddChildren";
import { CommonComponentPropsType } from "./helpers/SetProps";
import Icon, { IconColorType... |
import * as comlink from 'comlink';
import sha1 from 'crypto-js/sha1';
import graphlib, { Edge } from 'graphlib';
import * as ksp from 'k-shortest-path';
import stations from './data/stations.json';
type Indices = number[] | number;
type Station = Record<string, Indices>;
type Stations = Record<string, Station>;
ex... |
import React, { useCallback, useState } from 'react'
import { Badge, Divider, ListItem, ListItemIcon, ListItemText, Tooltip } from '@material-ui/core'
import AppBar from '@material-ui/core/AppBar'
import IconButton from '@material-ui/core/IconButton'
import InputBase from '@material-ui/core/InputBase'
import Menu from ... |
import { VectorMap } from '@paosder/vector-map';
import {
BufferIndex, Color, createAttribute, createProgram, createShader,
Coordinate, updateAttribute, ObjectBufferIndex, ObjectInfo, createUniform, addObject,
deleteObject, RotationMat, modifyObject,
} from '@common/gl';
import type { Renderer } from '@common/typ... |
/// <reference types="node" />
import { EventEmitter } from 'events';
import { Sipster, TransportConfig, EpConfig, AccountConfig, Call, CallInfo, Account, AudioMediaPlayer, AudioMediaRecorder, Media } from 'sipster.ts';
export { TransportConfig, EpConfig, AccountConfig, CallInfo, Media };
export interface PlayerConfig ... |
<filename>src/spotify/services/spotify.service.ts
import { DateTime } from 'luxon';
import { SpotifyCurrentlyPlaying, SpotifyError } from './spotify';
import {
getterBool,
getterDateTime,
getterString,
setterBool,
setterDateTime,
setterString,
} from '../../utils/getter-setter';
export class SpotifyServic... |
<filename>lib/snifflesProtocol.ts
// Copyright (c) 2018 by Audere
//
// Use of this source code is governed by an MIT-style license that
// can be found in the LICENSE file distributed with this file.
// ========================================================================
//
// PLEASE NOTE:
//
// If you need to ch... |
<filename>packages/helpers/src/route-declutter.ts
import L from 'leaflet'
import { RouteStore, Route, RouteTurn, MapAnnotations, MapAnnotation } from '@serge/custom-types'
import { cloneDeep } from 'lodash'
import { h3ToGeo } from 'h3-js'
/** signature of method to update location */
interface ClusterSetter {
(newLo... |
<reponame>jackyzha0/discord-steward<gh_stars>1-10
import {Discord, SelectMenuComponent, Slash, SlashGroup,} from "discordx"
import {newLogger, traceCommand} from "../logging"
import {
Collection,
CommandInteraction,
GuildMember,
GuildMemberRoleManager,
MessageActionRow,
MessageEmbed,
MessageSelectMenu,
... |
<gh_stars>1-10
import { s3helpers } from './s3-api'
const debug = require("debug")("cypress:binary")
import la from 'lazy-ass'
import is from 'check-more-types'
// using "arg" module for parsing CLI arguments
// because it plays really nicely with TypeScript
import arg from 'arg'
import {prop, sortBy, last, equals} fro... |
import { ViewCheck } from "../types";
// Note: a check throwing an error is equivalent to a failure
// ============= Arithmetic functions =========================================
/** Greater than */
export const gt: ViewCheck = (limit: any) => ((value: any) => value > limit);
/** Greater than or equal to... |
import { AddressInfo } from 'net';
import { createServer as createHttpServer, IncomingMessage, Server as HttpServer, ServerResponse } from 'http';
import { createServer as createHttpsServer, Server as HttpsServer } from 'https';
import url from 'url';
import nock from 'nock';
import { TokenSet, TokenSetParameters } fro... |
// @if DEBUG
import { ASSERT } from './debug';
// @endif
import { ITileset, ITile } from './tiled/Tileset';
import { loadImage } from './utils/loadImage';
import { IDictionary } from './IDictionary';
import { IAssetCache } from './IAssetCache';
import { IPoint } from './IPoint';
import { extrudeImage } from './utils/e... |
import * as React from 'react';
import { ListView, IViewField, SelectionMode, GroupOrder, IGrouping } from "@pnp/spfx-controls-react/lib/ListView";
import { Icon } from 'office-ui-fabric-react/lib/Icon';
export const initials : IViewField = {
name: "userInitials",
displayName: "User",
isResizable: true,
... |
<gh_stars>0
///<reference path="../testReference.ts" />
var assert = chai.assert;
class TestHoverable extends Plottable.Component.AbstractComponent
implements Plottable.Interaction.Hoverable {
public leftPoint = { x: 100, y: 200 };
public rightPoint = { x: 300, y: 200 };
public _hoverOverCo... |
import * as log from "https://deno.land/std@0.106.0/log/mod.ts";
import * as Colors from "https://deno.land/std/fmt/colors.ts";
import { ArrayReply, connect } from "https://deno.land/x/redis/mod.ts";
import { unflattenRedis } from "./utils.ts";
const commands = [
{ key: "info", description: "Show info on the request... |
import { changeCase, Utils } from "./utils";
import axios, { AxiosRequestConfig } from 'axios';
import { AppUtils } from "./app-utils";
import { i18n } from "./shared-vars";
import { Alert } from "../controls/inspired-components";
import swal from "sweetalert2";
function delayedValue<T>(v: T, timeout): Promise<T> {
... |
import maplibregl, { GeoJSONSource, Marker } from 'maplibre-gl';
import { Position } from 'geojson';
import distance from '@turf/distance';
import { Units } from '@turf/helpers';
import Base from '../Base/Base';
import Button from '../Button/Button';
import labelFormat from './labelFormat';
import lineStringFeature fro... |
import * as React from 'react';
import { StyleSheet, Image, TextInput } from 'react-native';
import EditScreenInfo from '../components/EditScreenInfo';
import { Text, View } from '../components/Themed';
import { RootTabScreenProps } from '../types';
import RestoPanelInfo from '../components/RestoPanelInfo';
import { Bu... |
<gh_stars>1-10
import { IAbstractConsensus } from 'evm-lite-consensus';
import Client, { IBaseInfo, IReceipt } from 'evm-lite-client';
import utils, { Currency } from 'evm-lite-utils';
import Account from './Account';
import Transaction from './Transaction';
export interface IEVMAccount {
address: string;
balance:... |
<reponame>DitlevHB/fuse-box<gh_stars>0
import * as path from 'path';
import { Cache } from '../cache/cache';
import { Context } from '../core/Context';
import { IDevServerProps } from '../dev-server/devServerProps';
import { env } from '../env';
import { IRawCompilerOptions } from '../interfaces/TypescriptInterfaces';
... |
/**
* Copyright (c) 2014,Egret-Labs.org
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... |
<filename>src/X12ValidationEngine/X12ValidationEngine.ts
import { X12Segment } from '../X12Segment'
import { X12Element } from '../X12Element'
import { X12Transaction } from '../X12Transaction'
import { X12FunctionalGroup } from '../X12FunctionalGroup'
import { X12Interchange } from '../X12Interchange'
import { X12Seri... |
<filename>packages/transaction/src/index.ts
import { Hash, HexNumber, HexString, Script, utils } from "@ckb-lumos/base";
import {
RawL2Transaction,
SudtTransfer,
UnoinType,
schemas,
normalizers,
RawWithdrawalRequest,
WithdrawalRequest,
Fee,
} from "@godwoken-js-sdk/base";
import { RPC } from "@godwoken-... |
<gh_stars>0
import { Navigation } from 'react-native-navigation';
import { Root, BottomTabs, StackWith, Component, Stack } from './layout';
import { screens } from './screens';
import NavigationSystem from './system';
import { getTabOptions } from './tabs';
class NavigationService extends NavigationSystem implements I... |
<reponame>tesalm/sijoitussimulaattori-app<filename>tools/mocks/firebase.ts<gh_stars>0
import { firestore } from 'react-native-firebase';
import { UserAuth } from '../../src/models';
import 'react-native-mock-render/mock';
export enum TestCaseType {
NormalCase,
ErrorCase,
}
// Definition for mocking the essentia... |
import React, { useEffect, useState } from "react";
import { Layout, Row, Col, Tabs, Popover, Spin } from 'antd';
import Navbar from "../Shared/Navbar/NavbarContainer";
import SidebarView from "../Shared/Sidebar/SidebarView";
import Collaborators from "./ProfileComponents/Collaborators";
import TabPaneView from "./Pro... |
import { ICustomItemExtension, CustomItemViewer, DashboardControl } from 'devexpress-dashboard/common';
import { ICustomItemMetaData } from 'devexpress-dashboard/model/items/custom-item/meta';
import dxTreeView, { Node, Properties } from 'devextreme/ui/tree_view';
const HIERARCIAL_TREE_VIEW_EXTENSION_NAME = 'TreeView'... |
<filename>src/lib/frontpanel.spec.ts
import { expect } from 'chai';
import * as fs from 'fs';
import 'mocha';
import { DeviceInterface } from './device-info';
import {
FrontPanel,
MAX_DEVICEID_LENGTH,
MAX_SERIALNUMBER_LENGTH
} from './frontpanel';
const SERVER = 'wss://localhost:9999';
const USER = 'User';... |
<reponame>shahrokni/minesweeper<gh_stars>1-10
import { Content } from '../../enum/Content';
import { ICell } from '../../interfaces/ICell';
export interface IPair {
row: number;
col: number;
}
export interface ICleanFieldResult {
isExploded: boolean;
newGameState: [ICell[]];
}
export const scatterMines... |
import * as functions from 'firebase-functions';
import * as admin from 'firebase-admin';
import * as fs from 'fs'
import * as os from 'os'
import * as faker from 'faker';
import * as Twitter from 'twitter'
import { ImageMaker } from './image-maker';
import { listAvailableFonts } from './system-info';
import * as servi... |
import * as _ from 'lodash';
import { ListItem } from './apListItemFactory';
import { User } from './apUserFactory';
import { FieldDefinition, FieldConfigurationObject } from './apFieldFactory';
import { IModelFactory } from './apModelFactory';
export interface ListItemVersions<T extends ListItem<any>> {
[key: num... |
import { readFileSync } from 'fs';
/**
* https://adventofcode.com/2021/day/17
*/
const input = readFileSync('./december17.txt', 'utf-8');
const t = '23,-10 25,-9 27,-5 29,-6 22,-6 21,-7 9,0 27,-7 24,-5\n' +
'25,-7 26,-6 25,-5 6,8 11,-2 20,-5 29,-10 6,3 28,-7\n' +
'8,0 ... |
<filename>src/core/game.ts
import Designer from 'Core/designer';
import {
DOWN, UP, LEFT, RIGHT,
OBSTACLES, UNIT_HEIGHT, UNIT_WIDTH, TEXT,
} from 'Constants';
import {buttonHandlerArgument} from 'Interfaces';
import Obstacle from '../entities/obstacle';
import Player from '../entities/player';
import Level from... |
import * as React from "react"
import { PageProps, Link, graphql } from "gatsby"
import { createStyles, makeStyles, Theme, createTheme, ThemeProvider, responsiveFontSizes } from "@material-ui/core/styles"
import Typography from "@material-ui/core/Typography"
import Dialog from "@material-ui/core/Dialog"
import Button f... |
import { DOM_EVENTS } from "../code-generator/dom-events-to-record";
import { defaultBindTags } from "../code-generator/elements-to-bind-to";
// import { finder } from "../code-generator/alauda-finder";
import finder from "@medv/finder";
import { PPTR_ACTIONS } from "../code-generator/pptr-actions";
import { matchClass... |
<reponame>BirWri/CS50BirWri
import { Assertions, Chain, Cursors, StructAssert, UiFinder } from '@ephox/agar';
import { Optional } from '@ephox/katamari';
import { Hierarchy, Html, SugarElement } from '@ephox/sugar';
import { Editor } from '../alien/EditorTypes';
import * as TinySelections from '../selection/TinySelecti... |
//
// RESPONSIVENESS METRICS -- includes "competitiveness" metrics
//
import {Normalizer} from '../rate/normalize';
import * as T from '../types/all';
import * as U from '../utils/all';
import * as C from '../rate/dra-config';
import {estDistrictResponsiveness, estFPTPSeats, findBracketingLowerVf, findBracketingUpper... |
import { readFileSync } from 'fs';
import * as path from 'path';
import {
AppOutputStEntry, ComponentStEntry, ComponentSymbolTable,
ComponentSymbolTableStEntry, ConceptStEntry, EntryKind, InputStEntry,
OutputStEntry, SymbolTable
} from '../symbolTable';
import * as _ from 'lodash';
import {
NgComponentBuilde... |
import clone from "clone";
import { v1 as uuidv1 } from "uuid";
import { UserPost, Posts } from ".";
const init: Posts = {
"e49bc914-a8f2-11eb-bcbc-0242ac130002": {
id: "e49bc914-a8f2-11eb-bcbc-0242ac130002",
timestamp: 1619704748161,
titulo: "Por que as águias não os levaram logo até o destino?",
c... |
import classnames from "classnames";
import * as React from "react";
import Popup from "reactjs-popup";
import { TooltipsLocationTheme } from "..";
import { Link, LinkTarget } from "../link";
import { forPhoneOnlyMediaQuery } from "../utils";
const styles = require("./tooltips.scss");
const OFFSET = 11;
const ARROW_O... |
import { ChildProcess, spawnSync } from "child_process";
import { EOL } from "os";
import * as path from "path";
import { launch, LaunchOption, launchServer } from "./launch";
declare const tempDir: string;
declare const inCI: boolean;
function getJavaVersion(javaPath: string) {
const { stderr } = spawnSync(javaP... |
<reponame>OpenMicroStep/RepositoryCore
import * as crypto from 'crypto';
export function randomBytesUnsafe(size = SecureHash.defaultSaltBytes): string {
let buffer = new Buffer(SecureHash.defaultSaltBytes);
for (let i = 0; i < buffer.length; i++)
buffer[i] = Math.floor(Math.random() * 256); // [0-255[ of bad q... |
<reponame>adaladam/vscode-objectscript
import * as path from "path";
import * as vscode from "vscode";
import { AtelierAPI } from "../../api";
import { Directory } from "./Directory";
import { File } from "./File";
export type Entry = File | Directory;
export class FileSystemProvider implements vscode.FileSystemProvi... |
import {
FC,
useEffect,
useRef,
useState,
Fragment,
ComponentType,
HTMLAttributes,
lazy,
Suspense,
} from "react";
import { TextFieldProps } from "@material-ui/core/TextField";
import CircularProgress, {
CircularProgressProps,
} from "@material-ui/core/CircularProgress";
import Autocomplete, {
Aut... |
import Link from '@/components/Link';
import PageTitle from '@/components/PageTitle';
import SectionContainer from '@/components/SectionContainer';
import { BlogSEO } from '@/components/SEO';
import Image from '@/components/Image';
import Tag from '@/components/Tag';
import siteMetadata from '@/data/siteMetadata';
// i... |
/*
* Copyright (C) 2018 <NAME> <<EMAIL>>
* See LICENSE.md for licensing information.
*/
import { isIterable } from "../lang/Iterable";
import { ObservableLike } from "./ObservableLike";
import { createObserver, Observer } from "./Observer";
import { isSubscribable } from "./Subscribable";
import { SubscriberFunctio... |
<reponame>Simonwep/conway<filename>src/store/models/KeyboardShortcuts.ts
import {action, computed, observable} from 'mobx';
import {on} from '../../lib/events';
import {prettyKeyCode} from '../../lib/pretty-key-code';
export type KeyboardShortcutListener = () => void;
export ty... |
<reponame>antvis/antv-spec
import { ChartAntVSpec, AxisLabelProps, AxisProps, AxisTitleProps } from '../../schema';
export type G2PlotType = 'Line' | 'Area' | 'Column' | 'Bar' | 'Pie' | 'Rose' | 'Scatter' | 'Histogram' | 'Heatmap';
const CHART_TYPES_WITH_STACK = ['Area', 'Column', 'Bar'];
/**
* get chart type (Line... |
import dbInit, { ITestDb } from '../../helpers/database-init';
import getLogger from '../../../fixtures/no-logger';
import { IUnleashTest, setupApp } from '../../helpers/test-helper';
import { collectIds } from '../../../../lib/util/collect-ids';
import {
IConstraint,
IFeatureToggleClient,
ISegment,
} from ... |
/*
* Placeholder data
*/
export let workspaces = [
{
workspace_id: 1,
name: 'Course In Science',
info: 'This is a course where we talk about science. What is science? Why is science valuable?\n\nPlease sign up to the waiting list for help during the lectures. Sign up to the seminar groups before 24/5.'... |
// @ts-nocheck
import React, { useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { createUseStyles, useTheme } from 'react-jss'
import clsx from 'clsx'
import moment from 'moment'
import key from 'weak-key'
import {
resetPlayback
} from '../../../features/playerSlice'
import {
... |
/*
p1 = Bot Side
p2, p3, p4 = User Sides
*/
import { FS } from "../../../lib";
import { Teams, Pokemon } from "../../../sim";
import { PetModeBossConfig } from "../../../config/pet-mode/boss-config";
const USERPATH = 'config/pet-mode/user-properties';
const DEPOSITPATH = 'config/pet-mode/deposit';
const bossConfig... |
import { Component, DebugElement, Type } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router';
import { PaymentType } from '@spartacus/cart/base/root';
import { CheckoutPaym... |
import React, { useRef } from 'react'
import FullCalendar, { EventClickArg } from '@fullcalendar/react'
import timeGridPlugin from '@fullcalendar/timegrid'
import locale from '@fullcalendar/core/locales/pl'
import { EventContentArg } from '@fullcalendar/core'
import { FaChevronLeft, FaChevronRight, FaLink } from 'react... |
// (C) 2007-2022 GoodData Corporation
import head from "lodash/head";
import isEmpty from "lodash/isEmpty";
import { isAreaChart, isOneOfTypes, isTreemap } from "../chartTypes/_util/common";
import { VisualizationTypes } from "@gooddata/sdk-ui";
import { supportedDualAxesChartTypes } from "../chartTypes/_chartOptions/... |
import styled, { css } from 'styled-components';
import React from 'react';
import { Grid, Col, Row } from 'react-styled-flexboxgrid';
import rocket from '../../assets/Rocket.png';
import { colors } from '@atlaskit/theme';
import {
MOBILE_BREAKPOINT_MAX,
TABLET_BREAKPOINT_MIN,
TABLET_BREAKPOINT_MAX,
} from '../..... |
<reponame>numsu/nalli
import moment from 'moment';
export default class CurrencyService {
static resourceUrl = 'https://api.coingecko.com/api/v3/coins/nano?localization=false&tickers=false&market_data=true&community_data=false&developer_data=false&sparkline=false';
static cachedResponse = { res: [], time: undefined... |
/// <reference types="../typings" />
import { promises as fs } from 'fs';
import path from 'path';
import { OutputChunk, rollup } from 'rollup';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { babel } from '@rollup/plugin-babel';
import replace from '@... |
<gh_stars>0
// Copyright 2016-2018, Pulumi Corporation.
//
// 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 appli... |
<gh_stars>0
import { ElementIri, LinkModel, hashLink, sameLink } from '../data/model';
import { ValidationApi, ValidationEvent, ElementError, LinkError } from '../data/validationApi';
import { CancellationToken } from '../viewUtils/async';
import { HashMap, ReadonlyHashMap, cloneMap } from '../viewUtils/collections';
i... |
import * as React from 'react';
import { observer } from 'mobx-react';
import { css } from '@patternfly/react-styles';
import { Tooltip, TooltipPosition } from '@patternfly/react-core';
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
import ExclamationCircleIcon from '@patternfly... |
import { CompositionState } from "~/composition/compositionReducer";
import { FlowNodeType } from "~/flow/flowTypes";
import { FlowState } from "~/flow/state/flowReducers";
import { FlowGraphSelection, FlowSelectionState } from "~/flow/state/flowSelectionReducer";
import { ValueType } from "~/types";
import { isMapShal... |
<filename>src/backend/firebase.ts
import Backend from "./backend.js";
import * as pubsub from "../pubsub.js";
import { Jsonified } from "../map.js";
declare const firebase: any;
interface Current {
id: string | null;
name: string | null;
data: Jsonified | null;
}
export default class Firebase extends Backend {
... |
import React, { useEffect, useRef, useState } from 'react'
import * as d3 from 'd3'
import { usePlotContext, Svg, ResponsiveSvg } from 'vizlib'
import { schemeGreens } from 'd3-scale-chromatic'
import { data } from '../data'
const getData = () => {
const byDecade = groupBy(
data,
d => `${d.date.getFullYear(... |
<gh_stars>0
/*
This is the linting section which parses your scripts and calls out inconsistencies in style.
TODO: spellchecker?
TODO: read the eslint source for inspiration.
TODO: this should be parseable from a yml file
TODO: this should be scoped to a specific database vendor.
(think vscode sett... |
import * as React from 'react';
import { clamp, useBoolean, useControllableState, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';
import { useFluent } from '@fluentui/react-shared-contexts';
import type { SwitchState } from './Switch.types';
type SwitchInternalState = {
/**
* The internal rend... |
import IFinder from "./IFinder";
import SingleStructure from "./SingleStructure";
import Sleep from "../helper/Sleep";
import {ServerEnum} from "../enum/ServerEnum";
const ENDPOINT_URI = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/";
const PROPERTY_VALUES = "IUPACName,MolecularFormula,MonoisotopicMass,Canonica... |
import { readdir, readFile, writeFile } from 'fs/promises';
import htm from 'htm';
import { marked } from 'marked';
import vhtml from 'vhtml';
import { objects } from './objects';
const html = htm.bind(vhtml);
// console.log(marked);
// console.log(Markup);
// console.log(h);
const raw = (html: string) =>
vhtml(nu... |
import React from 'react';
import styles from './App.module.css';
import { Grid, GridItem, SnakeGrid } from "@components/snake/grid/Grid";
enum Direction { Up, Down, Left, Right };
const GRID_DIM: number = 20;
const INIT_DIR: Direction = Direction.Up;
const INIT_FREQ: number = 275;
const FREQ_SUB: number = 15;
const ... |
<reponame>ParadigmFoundation/kosu-monorepo
import { BigNumber } from "@0x/utils";
import { Web3Wrapper } from "@0x/web3-wrapper";
import {
AuthorizedAddressesContract,
BasicTradeSubContractContract,
EventEmitterContract,
KosuTokenContract,
OrderGatewayContract,
PosterRegistryContract,
Treasu... |
import * as util from 'util';
import { createLogger } from "@script-common/logging";
const logger = createLogger(module);
import { bedesQuery } from "@bedes-backend/bedes/query";
import { BedesRow } from "./bedes-row";
import { IBedesConstrainedList, IBedesTerm } from "@bedes-common/models/bedes-term";
import { BedesM... |
// Debugger Frontend Interface
import { RuntimeEnvironment, WorkerInterface } from './env';
type Vector = [number, number]; // [offset, selector]
const HELP_MESSAGE = `\
Continue G [breakpoint]
Step Into T
Step Over P
Register R [register [value]]
Reg Details RD
Edit Memory E addres... |
/**
* @license
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
import {
AUTHOR_CLAIM_ACTION_LABEL,
AUTHOR_CLAIM_STATUS,
} from "./constants/AuthorClaimStatus";
import BaseModal from "../Modals/BaseModal";
import Button from "../Form/Button";
import { css, StyleSheet } from "aphrodite";
import Modal from "react-modal";
import React, { Fragment, ReactElement, SyntheticEvent, use... |
<reponame>somedaygone/query-lab<gh_stars>100-1000
import queryString from 'query-string';
import { localStorageKeys } from '../constants';
import { editorUrls, currentEditorUrl } from '../environment';
import ensureFreshLocalStorage from './ensure.fresh.local.storage';
import { showSplashScreen } from './splash.screen'... |
/*
Adapted from https://github.com/Gyumeijie/github-files-fetcher
Credit to: Gyumeijie
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... |
<reponame>stu43005/sdorica-wiki-bot
import MWBot from "mwbot";
import path from "path";
import { WIKI_PATH } from "./config";
import { Logger } from "./logger";
import { outJson, outText } from "./out";
import { isDevMode, objectEach } from "./utils";
import { getMWBot } from "./wiki-bot";
import { getHeroJsonData } fr... |
<reponame>AckerApple/ack-x
export interface fromOptions {
roundUpMins?: boolean;
roundDownMins?: boolean;
roundUpHours?: boolean;
roundDownHours?: boolean;
}
export interface dateStats {
years: number;
months: number;
weeks: number;
days: number;
hours: number;
minutes: number;
... |
<reponame>brandon-julio-t/game-nar21-2
import store from "@/store";
import PowerUp from "../abstracts/power-up";
import RGB from "../interfaces/rgb";
import PowerUpBullet from "../power-up-bullet";
import PowerUpHealth from "../power-up-health";
export function randomIntegerBetween(min: number, max: number): number {
... |
<reponame>Apollon77/ioBroker.iogopro
/*
* Created with @iobroker/create-adapter v1.34.1
*/
import * as utils from '@iobroker/adapter-core';
import axios from 'axios';
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import 'firebase/functions';
import 'firebase/storage';
imp... |
<reponame>equinor/fusion-components<gh_stars>10-100
import {
followUpStatuses,
proCoSysStatuses,
proCoSysWorkOrderColorMap,
FollowUpStatuses,
} from '../WorkOrderGarden/utils/procosys';
import WorkOrderType from './models/WorkOrderType';
import { FilterTypes } from '../../../../..';
export const follow... |
import * as request from 'request';
import * as Promise from "bluebird";
import { IXHROptions, IXHRApi, IXHRProgress } from "./ews.partial";
import { setupXhrResponse } from "./utils";
import { Agent as httpsAgent } from "https";
import { ClientResponse } from "http"
import { IProvider } from "./IProvider";
expor... |
<filename>node_modules/hyperformula/typings/Operations.d.ts<gh_stars>0
/**
* @license
* Copyright (c) 2021 Handsoncode. All rights reserved.
*/
import { ClipboardCell } from './ClipboardOperations';
import { SimpleCellAddress } from './Cell';
import { AbsoluteCellRange } from './AbsoluteCellRange';
import { CellCont... |
<reponame>nnoodle/gemini-proxy<gh_stars>0
import * as tls from 'tls'
import { isIP } from 'net'
import { transcode } from 'buffer'
export enum StatusCode {
INPUT = 10,
SENSITIVE_INPUT = 11,
SUCCESS = 20,
REDIRECT_TEMPORARY = 30,
REDIRECT_PERMANEN... |
import * as React from "react";
import {
Button,
ButtonGroup,
ButtonToolbar,
Glyphicon,
Alert
} from "react-bootstrap";
import Form, { ISubmitEvent } from "react-jsonschema-form";
import { useState, useRef } from "react";
import CollapsibleField from "react-jsonschema-form-extras/lib/CollapsibleField";
impor... |
<gh_stars>1-10
import dayjs from "dayjs";
import { fetch } from "cross-fetch";
// https://docs.google.com/spreadsheets/d/113tb0FFuUusqRJTy6wMyFIBMOo5Q3Z6kWZUpdvE9CuI/edit
// This spreadsheet must have "Anyone with the link can view" permission
export const SPREADSHEET_ID = "113tb0FFuUusqRJTy6wMyFIBMOo5Q3Z6kWZUpdvE9CuI... |
<filename>src/auth/src/providers/idp.ts<gh_stars>100-1000
'use strict';
import { GenericOAuth2Router } from '../common/generic-router';
import { AuthRequest, EndpointDefinition, AuthResponse, IdentityProvider, IdpOptions, CheckRefreshDecision, ErrorLink } from '../common/types';
import { Callback, WickedApi } from 'wi... |
<filename>src/parserGen/jsRouter.ts
import * as recast from 'recast';
import * as parser from '@babel/parser';
import { namedTypes, builders as b } from 'ast-types';
import path from 'path';
import fs from 'fs';
import { any } from '@/utils';
function getComponentFilePath(variableDeclarator: namedTypes.VariableDeclara... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.