text stringlengths 2 1.04M |
|---|
import { StyleSheet } from "react-native";
export const globalOptions = {
name: "noisy_hall_31498",
url: "https://noisy_hall_31498.botics.co",
api: "https://noisy_hall_31498.botics.co/api/v1"
}
export const modulesOptions = {
"@modules/app-menu": {
"copy": "Routes available!"
}
} |
const Sequelize = require('sequelize');
const db = require('../db');
const YearlyDeduction = db.define('yearlyDeduction', {
name: {
type: Sequelize.STRING,
allowNull: false,
},
rule: {
type: Sequelize.ENUM('FIXED', 'PERCENT'),
allowNull: false,
defaultValue: 'FIXED',
},
percent: {
typ... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
goog.module('test_files.export.export_star_imported');var module = module || {id: 'test_files/export/export_star_imported.js'};
const tsickle_forward_declare_1 = goog.forwardDeclare("test_files.export.export_helper");
var export_helper_1... |
import React, { Component } from "react";
import PlaygroundSection from "../PlaygroundSection";
import { Button, Tooltip } from "../../hig-react";
class TooltipSection extends Component {
render() {
return (
<PlaygroundSection title="Tooltip">
<Tooltip anchorPoint="top-center" content="Testing tool... |
'use strict';
/**
* @param {Object} gulp The gulp object
* @param {Object} config The configuration for gulp tasks. To get a property using `config.a.b.c` or `config.get('a.b.c')`
* @param {Object} LL Lazy required libraries and other data
* @param {Object} args The parsed arguments from commen... |
Admin.StatsUsersController = Admin.StatsBaseController.extend({
downloadUrl: function() {
return '/admin/stats/users.csv?' + $.param(this.get('query.params'));
}.property('query.params', 'query.params.query', 'query.params.search', 'query.params.start_at', 'query.params.end_at'),
});
Admin.StatsUsersDefaultCon... |
var defineProperty = require('../internals/object-define-property').f;
var hide = require('../internals/hide');
var has = require('../internals/has');
var TO_STRING_TAG = require('../internals/well-known-symbol')('toStringTag');
var toString = require('../internals/object-to-string');
var METHOD_REQUIRED = toString !==... |
//==============================================================================
// ■ Primitive (primitive.js)
//------------------------------------------------------------------------------
// Primitive related utility functions.
//==============================================================================
//... |
import React from 'react';
class Nav extends React.Component {
constructor(props){
super(props);
this.clicked = false;
this.onClick = this.onClick.bind(this);
this.onScroll = this.onScroll.bind(this);
}
onClick = function(){
let navMenu = document.querySelector('.nav-menu-part');
let lis ... |
(()=>{let e={action:new Map};var t=new Map;function o(){var e=navigator.userAgent.toLowerCase();return!!/iphone|ipad|ipod/.test(e)}e.enable=function(){return e.request({method:"eth_requestAccounts"})},e.send=function(t,o){return console.log("ethereum.send ->",t,o),"eth_accounts"==t?e.request({method:"eth_accounts"}):"e... |
app.controller('golongancontroller', function ($scope,$state,golonganResource) {
$scope.widgetShow = false;
$scope.success = "false";
$scope.init = [];
$scope.data = {};
$scope.message = {};
$scope.golongan = {};
$scope.editmode = false;
var golonganresource = new golonganResource();
$scope.initgo... |
/**
* lodash 3.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigat... |
//
// LiveAssessments
//
// Create live assessment results
// Creates live assessment results and adds them to a live assessment
//
// API Docs: https://canvas.instructure.com/doc/api/live_assessments.html
// API Url: courses/{course_id}/live_assessments/{assessment_id}/results
//
// Example:
// return canvasRequest(cr... |
// dw_event.js version date Oct 2009
// basic event handling file from dyn-web.com
var dw_Event = {
add: function(obj, etype, fp, cap) {
cap = cap || false;
if (obj.addEventListener) obj.addEventListener(etype, fp, cap);
else if (obj.attachEvent) obj.attachEvent("on" + etype, fp);
... |
module.exports={A:{A:{"2":"H E G C B A WB"},B:{"132":"D u g I J K"},C:{"1":"0 1 2 3 4 5 6 O N h i j k l m n o p q r s t y L","2":"UB z F M H E G C B A D u g I J K Y P f Q R S T U V W X v Z a b c d e SB RB"},D:{"1":"AB CB VB DB EB","2":"F M H E G C B A D u g I J K Y P f","260":"0 1 2 3 4 5 6 Q R S T U V W X v Z a b c d ... |
const mongoose = require('mongoose')
const Designer = require('../models/Designer')
const mapDesigner = require('../mappers/designer')
module.exports.designerList = async function designerList(ctx, next) {
const designers = await Designer.find()
ctx.body = { designers: designers.map(mapDesigner) }
}
module.export... |
exports.pingPong = function(goal) {
var output = [];
for (var i = 1; i <= goal; i++) {
if (i % 15 === 0) {
output.push("Ping-Pong");
} else if (i % 3 === 0) {
output.push("Ping");
} else if (i % 5 === 0) {
output.push("Pong");
} else {
output.push(i);
}
}
return outp... |
module.exports = {
"type": "service_account",
"project_id": "phoenix-parts-8eeea",
"private_key_id": "391273f49346e03cd88bec15cf190bebcfaad164",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCdO4G7aJEgT4j0\naDf9Be74ucnL5Vq7CXNwU9QBpvcA1/6UwxLtMBglq3Pn076/8v4D7q0a... |
/*\
Show local git state and sync to git on click.
Requires you are using TiddlyGit, and have install the "Inject JS" API with access to NodeJS and Electron API).
\*/
(function () {
/*jslint node: true, browser: true */
/*global $tw: true */
'use strict';
const Widget = require('$:/core/modules/widgets/widget... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import App from './App';
import './index.css';
import * as serviceWorker from './serviceWorker';
import 'bootstrap/dist/css/bootstrap.min.css';
import { QueryParamProvider } from 'use-query-p... |
import React from "react";
import {getPageName} from "analytics.config";
class Home extends GridironComponent {
static willTrackPageView() {
const tracking = getPageName({
siteName: "nfl.com",
siteSection: "anthology",
siteSubsection: "super bowl",
pageDetail... |
const path = require('path');
const envPath = path.join(__dirname, '../../../.env');
require('dotenv').config({ path: envPath });
const hre = require("hardhat");
const constants = require(path.join(__dirname, '../../../../dist/types/constants'));
const chalk = require('chalk');
async function main() {
await hre.run('... |
let chai = require('chai');
let InstructionManager = require("../source/instructionManager").InstructionManager;
let config = require("../source/config").config;
let winston = require("winston");
var assert = chai.assert;
describe('Instruction Manager', function() {
describe('loadCleanser', function () {
i... |
const path = require('path');
const glob = require('glob');
const Minio = require('minio');
const assetsDir = path.resolve(__dirname, '../../build/public');
const verifyConditions = (pluginConfig, context) => {
const { bucket, endPoint } = pluginConfig;
const { logger } = context;
const errors = [];
... |
import React from "react"
import { graphql } from "gatsby"
import { Layout, SEO, Search } from "../components"
import { TITLE } from "../elements"
const BlogPage = ({ data, ...props }) => {
const posts = data.allMarkdownRemark.edges
return (
<Layout page="blog">
<SEO title="Blog" />
<TITLE>All blo... |
define({
"id": "Id.",
"state": "De forma predeterminada, las coordenadas se mostrarán en el sistema de coordenadas del mapa actual. Para obtener coordenadas en otros sistemas de coordenadas, debes agregarlas y especificar las transformaciones apropiadas.",
"outputUnit": "Unidad de salida",
"wkid": "WKID de sali... |
import React, { useState, useEffect } from "react";
import { Button, Navbar, Card, CardImg } from 'reactstrap';
import { Route, Link, Switch } from 'react-router-dom';
// components
import OrderForm from './components/Form.js';
import LoginForm from "./components/LoginForm.js";
import Registration from './components/R... |
const assert = require('assert')
const Policy = require('../../dist/common').FabrixPolicy
const Fabrix = require('../../dist').FabrixApp
const testApp = require('../fixtures/testapp')
describe('lib/Policy', () => {
describe('sanity', () => {
it('should exist', () => {
assert(Policy)
// Deprecated v1.... |
'use strict';
var Transform = require('readable-stream/transform');
var rs = require('replacestream');
var istextorbinary = require('istextorbinary');
module.exports = function(search, _replacement, options) {
return new Transform({
objectMode: true,
transform: function(file, enc, callback) {
if (file... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var _ = require('lodash'),
Promise = require('bluebird'),
url = require('url'),
routeMatch = require('path-match')(),
api = require('../../api'),
settingsCache = api.settings.cache,
optionsFormat = '/:options?';
function getOptionsFormat(linkStructure) {
return lin... |
/**
* MyUnitCubeQuad
* @constructor
*/
class MyUnitCubeQuad extends CGFobject
{
constructor(scene)
{
super(scene);
this.quad = new MyQuad(this.scene);
};
display()
{
// front face
this.scene.pushMatrix();
this.scene.translate(0, 0, 0.5);
this.quad.display();
this.scene.popMatrix();
// back ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_accessibility_twotone = void 0;
var ic_accessibility_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M0 0h24v24H0V0z",
"fill": "none"
},
"children": []
}, {
... |
"use strict";
process.env.NODE_ENV = "test";
const http = require("http");
const userServiceServer = require("../../userservicerpjss");
const userServiceClient = require("../../userservicerpjsc");
const chai = require("chai");
const expect = chai.expect;
describe("UserService::GetUsers", () => {
it("Should be ab... |
export function getWindowProfile(){
var body, html, output;
if ('undefined' == typeof document) return {};
body = document.body;
html = document.documentElement;
output = {
'height': ('innerHeight' in window) ? window.innerHeight : document.documentElement.offsetHeight,
'width': ('innerWidth' in wi... |
var callbackArguments = [];
var argument1 = function (d) {
callbackArguments.push(arguments)
return d.depth == 0;
};
var argument2 = ["o","2"];
var argument3 = function () {
callbackArguments.push(arguments)
var i = 0;
for (; i < l; i++) {
if (jQuery.contains(this, targets[i])) {
r... |
// ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated document... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
//= require_directory ../we/actually/should/not/use/relative/paths/like/this |
//// [sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts]
class Greeter {
public a = 10;
public returnA = () => this.a;
}
//// [sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js]
var Greeter = (function () {
function Greeter() {
var _this = this;
... |
/**
* Talisman keyers/name-sig
* =========================
*
* The Name Significance "NameSig" similarity key. The algorithm is slightly
* modified to align itself with the string fingerprint.
*
* [Article]:
* Similarity Analysis of Patients’ Data: Bangladesh Perspective.
* Shahidul Islam Khan, Abu Sayed Md. L... |
const ScoreStorageUtils = require('./score_storage_utils.js');
const mapObjectValue = require('./../util/map_object_value.js');
class Scores {
constructor() {
this.aggregateScoreForUserId = {};
this.nameForUserId = {};
}
static createNew(scoreLimit, deckId, scoreScopeId) {
const scores = new Scores(... |
(function () {
AblePlayer.prototype.updateTranscript = function() {
if (!this.includeTranscript) {
return;
}
// Update transcript.
var captions;
var descriptions;
var captionLang;
if (this.transcriptCaptions) {
captionLang = this.transcriptCaptions.language;
captions = th... |
import * as Utils from "./utils.js"
export class Mouse {
constructor(element, max, sensitivity) {
if (max === undefined) {
max = 0;
}
if (sensitivity === undefined) {
sensitivity = 1;
}
/* Element id */
this.element = element;
this.position = {
x: 0,
y: 0,
};
this.previousPositions = {
... |
// Copyright (c) Kai Krause <kaikrause95@gmail.com>
// You may deal with this file under the terms of license found in this program's install directory.
/*
This file checks whether a file exists and creates the file if it does not,
checks whether a file has been modified by a supplied time and returns a boolean,
an... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (v... |
import bodyParser from 'body-parser';
import logger from 'morgan';
import responseTime from 'response-time';
import compression from 'compression';
import helmet from 'helmet';
import errorhandler from 'errorhandler';
export const applyMiddleware = (app) => {
app.use(logger('dev'));
app.use(responseTime());
app.... |
/*
FusionCharts JavaScript Library
Copyright FusionCharts Technologies LLP
License Information at http://www.fusioncharts.com/license
@author FusionCharts Technologies LLP
@meta package_map_pack
@id fusionmaps.Rapti.1.01-17-2017 02:22:28
*/
(function(b){"object"===typeof module&&"undefined"!==typeof module.expor... |
// I18N constants
// LANG: "gb", ENCODING: UTF-8
//
// IMPORTANT NOTICE FOR TRANSLATORS
// ============================================================================
//
// Please be sure you read the README_TRANSLATORS.TXT in the Xinha Root
// Directory. Unless you are making a new plugin or module it is unlikely
... |
import video from "./../video/video.js";
import event from "./../system/event.js";
import pool from "./../system/pooling.js";
import loader from "./../loader/loader.js";
import game from "./../game.js";
import Renderable from "./renderable.js";
/**
* a generic Image Layer Object
* @class
* @extends me.Renderable
... |
var texts = [
"Bing chillin",
"Bingus",
"F"
];
document.getElementsByClassName("splash-text")[0].innerText = texts[Math.floor(Math.random() * texts.length)]; |
;(function ($, window, document, undefined ) {
"use strict";
/** Abort if already present **/
if (CarbidApp || !(window.history && history.pushState)) return;
console.log('Page Loaded')
var $body,
$main,
$previewAnchor,
main;
// Custom event for content update
var... |
const redis = require("redis");
const {client} = require("./redisConfig");
const mockUsers = [
{
id: "0",
userName: "Oscar",
pass: "123",
isAunthenticated: false,
wins: 0,
losses: 0,
},
{
id: "1",
userName: "Roger",
pass: "321",
isAunthenticated: false,
wins: 0,
l... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* 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
*
* ... |
/**
* Registers a new block provided a unique name and an object defining its behavior.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
import { registerBlockType } from '@wordpress/blocks';
/**
* Lets webpack process CSS, SASS or SCSS files referenced in Ja... |
import Check from "../Core/Check.js";
import defaultValue from "../Core/defaultValue.js";
import MetadataEnumValue from "./MetadataEnumValue.js";
import MetadataType from "./MetadataType.js";
/**
* A metadata enum.
* <p>
* See the {@link https://github.com/CesiumGS/3d-tiles/tree/3d-tiles-next/extensions/3DTILES_met... |
'use strict';
const map = require('bluebird').map;
const FileList = require('./file-list');
const ReadFile = require('./read-file');
const ParseFile = require('./parse-file');
const FilterRequires = require('./filter-requires');
const FilterBuiltin = require('./filter-builtin');
module.exports = opts => Promise.reso... |
/**
* Tom Select v1.7.1
* Licensed under the Apache License, Version 2.0 (the "License");
*/
/**
* MicroEvent - to make any js object an event emitter
*
* - pure javascript - server compatible, browser compatible
* - dont rely on the browser doms
* - super simple - you get it immediatly, no mistery, no magic invo... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
export const AUTH_TOKEN = 'tip-auth-token';
export const COMPANY = 'Telecom Infra Project';
export const USER_FRIENDLY_RADIOS = {
is2dot4GHz: '2.4GHz',
is5GHz: '5GHz',
is5GHzL: '5GHz (L)',
is5GHzU: '5GHz (U)',
};
export const ROUTES = {
root: '/',
login: '/login',
dashboard: '/dashboard',
network: '/n... |
const express = require('express');
const cors = require('cors');
const app = express();
const PORT = 5000 || process.env.PORT;
app.use(cors());
app.use(express.json());
app.use('/', require('./routes/web'));
app.listen(PORT, () => {
const msg = `Development server is running on http://localhost;${PORT}`;
c... |
/**
* @license Angular v11.1.1
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
typeof define === 'function' && define.amd ? define('@angular/common', [... |
"use strict";
exports.__esModule = true;
var _FilledWarning = require("./FilledWarning");
exports.FilledReportProblem = _FilledWarning.FilledWarning; |
$(document).ready(function() {
var editor = new $.fn.dataTable.Editor({
ajax: {
"edit": {
"url": sysSettings.domainPath + "RaymSP_GatewayPaymentMerchant",
"async": true,
"crossDomain": true,
"type": "POST",
"dataT... |
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const sinon = require('sinon');
chai.use(chaiAsPromised);
const expect = chai.expect;
const mongoose = require('mongoose');
const config = require('config');
describe('prod', () => {
let server, consoleLog, consoleStub, connectStub, co... |
require('@babel/register');
({
ignore: /node_modules/
});
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
let mnemonic = 'give glove fresh speak notice crime remind huge guess nation force tumble';
let testAccounts = [
"0x6fbcb87aaad7ecd5d615f642af0c7299d778cf9b4300620... |
const Discord = require('discord.js');
module.exports = (member) => {
var {leaveMessageChannel} = require('../../config.json');
var memberCount = member.guild.members.filter(_member => !_member.user.bot).size;
var date = new Date();
var day = date.getDate();
var embed = new Discord.MessageEmbed().s... |
/*!
* hungry-dragon
* Hungry dragon game made in Phaser
* https://github.com/verybluebot
* @author Blue Bot
* @version 1.0.0
* Copyright 2018. MIT licensed.
*/
"use strict";var game=void 0,score=void 0;window.onload=function(){game=screen.width>1e3?new Phaser.Game(640,480,Phaser.AUTO,"ph_game"):new Phaser.Game(w... |
import template from "./personalProfileStuff.html";
import controller from "./personalProfileStuff.controller";
import "./personalProfileStuff.scss";
let personalProfileStuffComponent = {
bindings: {},
template,
controller
};
export default personalProfileStuffComponent; |
const minilog = require('minilog');
module.exports = new minilog('sb1-converter'); |
/* eslint-disable no-unused-vars */
var categories = [
{
name: "animation",
examples: [
"blend",
"tweening"
]
}, {
name: "camera",
examples: [
"first-person",
"fly",
"orbit"
]
}, {
name: "grap... |
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class ErrorPage extends Component {
render() {
return (
<div className="container">
<div className="row justify-content-center">
<div className="col-md-6">
<div className="clearfix">
... |
/**
* Created by mayco on 22/04/2017.
*/
(function () {
'use strict';
app.controller('MainCtrl', MainCtrl);
MainCtrl.$inject = [];
function MainCtrl() {
var vm = this;
vm.notes = {
shayam: {
id: 1,
label: 'First Note',
d... |
import { CASE_TYPES_MAP } from '../../../shared/src/business/entities/EntityConstants';
import { applicationContextForClient as applicationContext } from '../../../shared/src/business/test/createTestApplicationContext';
import { reviewSavedPetitionHelper as reviewSavedPetitionHelperComputed } from '../../src/presenter/... |
// {namespace name=backend/plentyconnector/main}
// {block name=backend/plentyconnector/model/mapping/information}
Ext.define('Shopware.apps.PlentyConnector.model.mapping.Information', {
extend: 'Ext.data.Model',
fields: [
// {block name="backend/plentyconnector/model/mapping/information/fields"}{/blo... |
'use strict';
/* global SettingsPromiseManager, CloseLockManager,
GeneralSettingsGroupView, HandwritingSettingsGroupView,
MozActivity */
(function(exports) {
var KeyboardSettingsApp = function KeyboardSettingsApp() {
this.closeLockManager = null;
this.generalSettingsGroupView = null;
this.h... |
import Header from "./header"
import Footer from "./footer"
import Head from "next/head"
const Layout = ({ data, children }) => {
return(
<div>
<Head>
<link rel="shortcut icon" href={ data?.header?.favicon } />
</Head>
<Header header={ data?.header } head... |
import client from 'prom-client'
import Boom from '@hapi/boom'
// Clear the register to make sure we're not registering multiple ones
client.register.clear()
const gauge = new client.Gauge({ name: 'number_of_peers', help: 'the_number_of_currently_connected_peers' })
// Endpoint for handling debug metrics
export defau... |
(function(CLIENTS, $, undefined) {
var oClients, oClientsGlobal, oClientCerts;
var stateSortOrder = [
"registered",
"registration in progress",
"saved",
"global error",
"deletion in progress"
];
function enableActions() {
if (oClientsGlobal && oClientsGl... |
function drawInputGrid(grid, canvas, ctx) {
canvas.width = canvas.width
const dim = Math.floor(
grid[0].length >= grid.length
? canvas.width / grid[0].length
: canvas.height / grid.length
)
// Cells
for (const y in grid) {
for (const x in grid[y]) {
ctx.strokeStyle = '#686868'
... |
"use strict";
/**
* Copyright 2018, OpenCensus 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 required by appl... |
initSidebarItems({"constant":[["BUFSIZ",""],["EOF",""],["EXIT_FAILURE",""],["EXIT_SUCCESS",""],["FILENAME_MAX",""],["FOPEN_MAX",""],["L_tmpnam",""],["RAND_MAX",""],["SEEK_CUR",""],["SEEK_END",""],["SEEK_SET",""],["TMP_MAX",""],["_IOFBF",""],["_IOLBF",""],["_IONBF",""]]}); |
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, ScrollView, Image } from 'react-native';
import Button from '../components/Button';
import firebase from '../lib/firebase';
import { RkStyleSheet, RkText } from 'react-native-ui-kitten';
export default class Profile extends React.Comp... |
'use strict';
const test = require('ava');
const sinon = require('sinon');
const Plugin = require('..');
const functions = {
skip: {},
test: {
events: [{
stream: 'arn:test:foo:bar'
}, {
stream: {
type: 'dynamodb'
}
}, {
stream: {
type: 'kinesis'
}
}, ... |
import GuideLayer from './guide-layer'
const install = function(Vue) {
let components = [GuideLayer]
components.forEach(function(item) {
if (item.install) {
Vue.use(item)
} else if (item.name) {
Vue.component(item.name, item)
}
})
}
if (typeof window !== 'undefined' && window.Vue) {
in... |
import React from 'react';
import Card from './Card';
const Store = (props) => {
return (
<React.Fragment>
<h2>Store</h2>
<div className='columns'>
{props.cards.map((card) => (
<div key={card.id} className='column is-one-sixth'>
<button className='button' onClick={(e) => props.purchaseCard(car... |
import React from 'react';
import { Container, Row, Col, Image, Button} from 'react-bootstrap';
import { Link} from "react-router-dom";
import $ from 'jquery';
function Home(props) {
// console.log(props.location.pathname);
return (
<div>
<Container className="gallery-container">
<hr />
... |
import React from 'react';
import { render } from 'react-testing-library';
import ProgressBar from '../components/ProgressBar';
const dummyScore = {
correct: 33,
incorrect: 33,
possible: 100,
};
it('should render the progress bar', () => {
const { getByTestId } = render(<ProgressBar score={dummyScore} />);
... |
const Native = require("./Native");
const IncomingStream = require("./IncomingStream");
const RecorderTrack = require("./RecorderTrack");
const Refresher = require("./Refresher");
/**
* MP4 recorder that allows to record several streams/tracks on a single mp4 file
*/
class Recorder
{
/**
* @ignore
* @hideco... |
export default {
async registerCoach(context, data) {
const userId = context.rootGetters.userId;
const coachData = {
firstName: data.first,
lastName: data.last,
description: data.desc,
hourlyRate: data.rate,
areas: data.areas
};
const token = context.rootGetters.token;
... |
//Dependencies
import React from 'react';
import Footer from './elements/Footer'
import NavBar from './navBar/NavBar';
import marketing from '../marketing.jpg';
import './about.css';
export default class about extends React.Component {
render() {
/* istanbul ignore next */
return(
<div className="about">
... |
// Packages
import React, { Component } from 'react';
// Views
import Footer from './Footer';
import {
Draggable,
WINDOW_CUSTOM,
WINDOW_DEFAULT,
WINDOW_DEFAULT_WITH_BUTTON,
WINDOW_DRAGGABLE_TOPBAR,
WINDOW_DRAGGABLE_TOPBAR_WITH_BUTTON
} from '../../src/Draggable';
// Style
import 'bootstrap/dis... |
import assert from 'assert';
import python from '../../lib/plugins/python';
import liveResolverQuery from '../../lib/resolver/live-resolver-query.js';
describe('python', () => {
const path = '/octo/dog.py';
it('resolves local file', () => {
assert.deepEqual(
python.resolve({ path, target: '.foo' }),
... |
import React, { Component } from 'react';
import firebase from 'firebase/app'
import 'firebase/database'
import tracks from '../../constants/tracks.json'
import Tracks from '../../Components/Utils/Tracks'
import EditRaceForm from './components/EditRaceForm'
import Menu from './components/Menu'
import qs from 'qs'
impor... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';... |
// Collection Decorator For Aggregating many collections
// ----------------------------------
define(['underscore'], function(_) {
function AggregateCollection(aggregateCollection, sourceCollections) {
var aggregated = new aggregateCollection();
// allow this object to have it's own events
ag... |
class ApiResponseAbstractError extends Error {
/**
*
* @param {object} params
* @param {string} [params.message] The error message. If not set, will use the status text
* from the fetch response.
* @param {object} params.fetchResponse The Fetch response
* @param {num... |
/*
* /MathJax/jax/output/SVG/fonts/Gyre-Pagella/Size5/Regular/Main.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* 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
*
* ... |
/* eslint-env node */
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'blog-poster',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-... |
import { act, render, screen } from "@testing-library/react";
import StaleDataIndicator from "./StaleDataIndicator";
it("shows no indicator if the data is less than 60 minutes old", async () => {
const recentTimestamp = new Date() - 60 * 1000; // 1 min old
await act(async () => {
render(
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.