text stringlengths 2 1.04M |
|---|
const { createInMemoryFileSystem } = require("../../utils/memory-fs");
const webpack = require("webpack");
describe("Errors when rendering", () => {
it("should create an error in the compiler", async (done) => {
const compiler = webpack(require("./webpack.errors.config"));
const memoryFs = createInMemoryFil... |
import React from 'react';
import {
connect
}
from 'react-redux';
import {
Link
}
from 'react-router-dom';
import axios from 'axios';
import Form from './form';
import styles from './styles';
import {
SubmissionError,
getFormValues
}
from 'redux-form';
import {
addPost,
addPostFulfilled,
addPostRejected,
getPos... |
$(function () {
// Setup - add a text input to each footer cell
$('#example tfoot th').each( function () {
var title = $(this).text();
if(title!="" && title!="Action") $(this).html( '<input type="text" class="form-control" placeholder="Search '+title+'" />' );
} );
// DataTable
var... |
'use strict';
exports.__esModule = true;
var _trackEnums = require('./track-enums');
var _track = require('./track');
var _track2 = _interopRequireDefault(_track);
var _mergeOptions = require('../utils/merge-options');
var _mergeOptions2 = _interopRequireDefault(_mergeOptions);
var _browser = require('../utils/b... |
var exec = require('cordova/exec');
module.exports = {
exitApp: function () {
exec(null, null, 'OsxUtils', 'exitApp', []);
},
openUrl: function (url, success, fail) {
exec(success, fail, 'OsxUtils', 'openUrl', [url]);
},
resize: function (fullscreen, rect, flags, success, fail) {
exec(success, ... |
import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import Img from 'gatsby-image'
const PartnerLogos = ({ heading, icons }) => (
<section className='section-sm logos'>
<Container>
<Row className='justify-content-center'>
<Col lg='7'>
<div className='title text-cent... |
import { StyleSheet } from 'react-native';
import AppStyles from '@/config/styles';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: AppStyles.colors.lightWhite,
},
mainContainer: {
flex: 1,
width: '100%',
justifyContent: 'space-around',
},
});
export default style... |
export generateScreenshot from './generate_screenshot'
export getEmailAddresses from './get_email_addresses'
export createAttachment from './create_attachment'
export renderTemplate from './render_template'
export getRawEmail from './get_raw_email'
export createEmail from './create_email'
export encodeEmail from './enc... |
function Fizzbuzz() {
this.calc = function(number) {
if(number % 15 === 0) {
return "fizzbuzz";
} else if(number % 5 === 0) {
return "buzz";
} else if(number % 3 === 0) {
return "fizz";
} else {
return number;
}
};
} |
/*! @license Firebase v4.1.1
Build: rev-ca0d1df
Terms: https://firebase.google.com/terms/ */
"use strict";
//# sourceMappingURL=metadata.js.map |
window.bookSummaryJSON = "<p>When linguist Andrew Dennison is yanked from his bed by the Secret Service and taken to a top secret facility in the desert, he has no idea he's been brought there to translate the words of an ancient demon. </p> <p>He joins pretty but cold veterinarian Sun Jones, eccentric molecular biolog... |
const express = require('express');
const app = express();
const bodyparser = require('body-parser');
const knex = require('../db/knex');
const Card = require('../models/Card');
const router = express.Router();
router.route(`/`)
.get((req, res) => {
return Card
.fetchAll()
.then(result=> {
... |
const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const actions = require('../actions')
// const genAccountLink = require('etherscan-link').createAccountLink
const genAccountLink = require('../../lib/account-link.js')
const connect = require('rea... |
import { Maze } from "./Maze.js";
export class Coins{
/** @type {Maze} */
maze;
/** @type {{x: number, y: number }[]} */
place=[];
/** @type {HTMLImageElement} */
pic=new Image();
/**
* @param {Maze} maze объект лабиринт
*/
constructor(maze){
this.maze=maze;
this.pic.src="img/coins.png"; // this.p... |
const DreameMiotHelper = require("../DreameMiotHelper");
const LocateCapability = require("../../../core/capabilities/LocateCapability");
/**
* @extends LocateCapability<import("../DreameValetudoRobot")>
*/
class DreameLocateCapability extends LocateCapability {
/**
*
* @param {object} options
* @... |
/**
* Created by jbonfante on 8/24/14.
*/
'use strict';
//var bombApp = angular.module('bombApp', []);
function timeFormatter(text)
{
if(!text) text = '';
text = text.toString();
var i = text.length;
while(i < 6)
{
text = "0".concat(text); i++
}
return vsprintf("%d%d:%d%d:%d%d",... |
define([
"utilhub/front/apps/App",
"../controls/Layout"
], function(_App, Layout) {
return Class.declare({
"-parent-": _App,
"-protected-": {
"-fields-": {
width: 860,
height: 570,
title: "[TODO: ]"
}
},
... |
var chai = require('chai');
var chaiHttp = require('chai-http');
var should = chai.should();
var server = require('../../index');
var Beer = require('../../models/beer.model');
var Brewery = require('../../models/brewery.model');
var BeerData = require('../../beers.json');
var BreweryData = re... |
import firebase from "../configs/firebase-config.js";
const socialMediaAuth = (provider) => {
return firebase
.auth()
.signInWithPopup(provider)
.then((res) => {
let userName = res.additionalUserInfo.username;
let userToken = res.credential.accessToken;
return { userToken, userName };
... |
import React, { Component } from 'react'
import ShoppingForm from '../components/ShoppingForm'
import ShoppingDoughnutChart from '../components/ShoppingDoughnutChart'
import { Segment, Grid, Image } from 'semantic-ui-react'
import { fetchShopping } from '../actions/index'
import {connect} from 'react-redux';
class Sho... |
import { SET_LOADER } from "../../actions/types/types";
const initState = {
loader: false,
};
const LoaderReducer = (state = initState, action) => {
switch (action.type) {
case SET_LOADER:
return {
...state,
loader: action.payload,
};
default:
return { ...state };
}
};
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg... |
/**
* Get the total number of pages of results from a database query
* @param {Number} count - number of database records
* @return {Number} pages - total number of pages
*/
module.exports = (count) => {
return Math.ceil(count / 12)
} |
import React, { Fragment, useEffect } from 'react';
import useIsMounted from '../../hooks/useIsMounted';
describe('useIsMounted', () => {
const DummyComponent = ({ mountSpy }) => {
const isMounted = useIsMounted();
useEffect(() => {
mountSpy(isMounted.current);
setTimeout(() => {
mountSpy... |
var searchData=
[
['c_5ff',['c_f',['../elastic__gate_8cpp.html#a0f0adcc32c87bd5c7f72c3b006782f74',1,'c_f(): elastic_gate.cpp'],['../filling__tank_8cpp.html#a0f0adcc32c87bd5c7f72c3b006782f74',1,'c_f(): filling_tank.cpp'],['../fsi2__case_8h.html#a0f0adcc32c87bd5c7f72c3b006782f74',1,'c_f(): fsi2_case.h'],... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const ThirdPage = () => (
<Layout>
<SEO title="Page three" />
<h1>Hi from the third page</h1>
<p>Welcome to page 3</p>
<Link to="/">Go back to the homepage</Link>
<... |
$(function() {
consoleInit(main)
});
async function main() {
const App = await init_ethers();
_print(`Initialized ${App.YOUR_ADDRESS}\n`);
_print("Reading smart contracts...\n");
const KUBEANS_CHEF_ADDR = "0x8E1724f750B07DC996361750753354F79315dcEA";
const rewar... |
const assert = require('assert');
const t = require('../index');
const daskeyboardModule = require('daskeyboard-applet');
describe('WorkOut', () => {
let app = new t.WorkOut();
describe('#run()', () => {
// Simulate the One by one in order
it('should build the app and configure it to trigger every hour a... |
//######################################################################################################
//##### Description: Contains all client side methods required for uploading the product image and
//##### detecting the ingredients
//##### Author: Robert Baldauf
//##### Student No.: 9782826
//####################... |
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
actions.setWebpackConfig({
node: {
fs: "empty",
},
})
//Ignore css order
if (stage === "build-javascript") {
const config = getConfig()
const miniCssExtractPlugin = config.plugins.find(
plugin => plugin.constructor.... |
import * as types from './types';
export const selectTransaction = (id) => {
return {
type: types.SELECT_TRANSACTION,
id: id
};
}; |
version https://git-lfs.github.com/spec/v1
oid sha256:1ec0b2609b0a66528da24b3fe0114c08093be807d32cddc7a514cd615b3fc7a3
size 986 |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
const {
getActionMenuButton,
getCaptionTextArea,
getCaseTitleContaining,
getEditCaseCaptionButton,
getSaveButton,
navigateTo: navigateToCaseDetail,
} = require('../support/pages/case-detail');
describe('Edit a case caption from case detail header', function() {
before(() => {
cy.task('seed');
nav... |
/*
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.
You need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the merged node. Otherwise... |
let num = [5, 8, 2, 9, 3]
num.push(1)
num.sort()
console.log(num)
console.log(`O vetor tem ${num.length} posições`)
console.log(`O primeiro valor do vetor é ${num[0]}`)
let pos = num.indexOf(4)
if (pos == -1){
console.log(`O valor não foi encontrado!`)
}else{
console.log(`O valor 4 esta na posição ${pos}`)
} |
var searchData=
[
['sdnn_5ftesting_2ecpp',['SDNN_Testing.cpp',['../_s_d_n_n___testing_8cpp.html',1,'']]],
['sdnn_5ftraining_2ecpp',['SDNN_Training.cpp',['../_s_d_n_n___training_8cpp.html',1,'']]]
]; |
Package.describe({
name: "telescope:datetimepicker",
summary: "Custom bootstrap-datetimepicker input type for AutoForm",
version: "0.25.7",
git: "https://github.com/TelescopeJS/telescope-datetimepicker.git"
});
Package.onUse(function(api) {
api.versionsFrom("METEOR@1.0");
api.use([
'telescope:core@0.... |
import React from "react";
import { Link } from "gatsby";
import illustration from '../imgs/crown.svg';
export default () =>(
<div className=" fixed inset-x-0 top-0 z-50 outline-none focus:outline-none">
<nav class="flex items-center justify-between flex-wrap bg-gray-900 px-3 pt-3">
<div clas... |
import React from "react";
import theme from "theme";
import { Theme, Link, Image, Text, Icon, Box } from "@quarkly/widgets";
import { Helmet } from "react-helmet";
import { Override, Section, StackItem, Stack } from "@quarkly/components";
import * as Components from "components";
import { MdMenu } from "react-icons/md... |
semantic.dropdown = {};
// ready event
semantic.dropdown.ready = function() {
// selector cache
var
$examples = $('.example'),
$hoverDropdown = $examples.filter('.hover').find('.ui.dropdown'),
$buttonDropdown = $examples.filter('.button.example').find('.ui.dropdown'),
$dropdown ... |
module.exports = function asort(inputArr, sortFlags) {
// discuss at: https://locutus.io/php/asort/
// original by: Brett Zamir (https://brett-zamir.me)
// improved by: Brett Zamir (https://brett-zamir.me)
// improved by: Brett Zamir (https://brett-zamir.me)
// improved by: Theriault (https://githu... |
import React, { useState, useEffect } from 'react';
import moment from 'moment';
import { connect } from 'react-redux';
import Button from 'react-bootstrap/Button';
import { RestAPI as API } from '@aws-amplify/api-rest';
import { API_NAME } from '../utils';
import { useHistory } from "react-router-dom";
import { useAmp... |
/* @flow */
import traverse from '@babel/traverse';
import collectProgramOptions from './collectProgramOptions';
import firstPassVisitors from './firstPassVisitors';
import transformVisitors from './transformVisitors';
import type {Node, NodePath} from '@babel/traverse';
import createConversionContext from './createC... |
/** @jsx h */
import h from '../../../helpers/h'
export default function(change) {
change.insertTextByKey('a', 2, 'x')
}
export const input = (
<value>
<document>
<paragraph>
<text key="a">
w<anchor />or<focus />d
</text>
</paragraph>
</document>
</value>
)
export... |
var xhr = require('corslite'),
csv2geojson = require('csv2geojson'),
wellknown = require('wellknown'),
polyline = require('polyline'),
topojson = require('topojson'),
toGeoJSON = require('togeojson');
module.exports.polyline = polylineLoad;
module.exports.polyline.parse = polylineParse;
module.exp... |
const mix = require('laravel-mix');
const { exec } = require('child_process');
mix.extend('ziggy', new class {
register(config = {}) {
this.watch = config.watch ?? ['routes/**/*.php'];
this.path = config.path ?? '';
this.enabled = config.enabled ?? !Mix.inProduction();
}
boot() {
... |
const Sequelize = require("sequelize")
const Equipo = (sequelize)=>{
sequelize.define('equipo',{
id:{
type: Sequelize.INTEGER,
allowNull: false,
primaryKey: true,
allowIncrement: true
},
nombre:{
type: Sequelize.STRING(50),
... |
import styled from 'styled-components';
import media from 'styled-media-query';
import AniLink from "gatsby-plugin-transition-link/AniLink";
const iconSize = '20px';
export const MenuBarWrapper = styled.aside`
align-items: center;
background-color: var(--mediumBackground);
border-left: 1px solid var(--borders);
b... |
const { useBabelRc, override } = require('customize-cra')
module.exports = override(
useBabelRc()
); |
// Copyright (c) 2012 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.
'use strict';
/**
* MetadataCache is a map from Entry to an object containing properties.
* Properties are divided by types, and all properties of ... |
import React, {useEffect} from 'react';
import shave from 'shave';
import './ConversationListItem.css';
export default function ConversationListItem(props) {
useEffect(() => {
shave('.conversation-snippet', 20);
})
const { photo, name, text } = props.data;
return (
<div className="conversation... |
import { graphql } from "gatsby"
import React from "react"
import Layout from "../components/layout"
export default ({ data }) => {
const post = data.markdownRemark
return (
<Layout>
<div>
<h1>{post.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
</di... |
/* @generated */
// prettier-ignore
if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') {
Intl.DisplayNames.__addLocaleData({"data":{},"availableLocales":["en-GY"],"aliases":{},"parentLocales":{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":... |
module.exports = {
setupFiles: ['<rootDir>/jest.setup.js'],
testPathIgnorePatterns: ['node_modules', 'dist', '.cache'],
collectCoverage: false,
verbose: true,
}; |
/* jshint strict: false, undef: true, unused: true */
// Dom based routing
// ------------------
// Based on Paul Irish' code, please read blogpost
// http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution///
// Does 2 jobs:
// * Page dependend execution of functions
// * Gives ... |
const { MessageEmbed } = require("discord.js");
module.exports = {
name: 'clear',
description: "Clears The Mentioned Number of Messages",
usage: "?clear 70",
category: "Admin",
aliases: ["c"],
run: async (client, message, args, config) => {
if(!message.member.hasPermission("MANAGE_MESSAGES")) return me... |
// Copyright (c) 2014-2017, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// c... |
$(".control input[type=file]").change(function() {
var input = this;
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$(input).prevAll("img").attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
... |
var Edit = function(table){
this.table = table; //hold Tabulator object
this.currentCell = false; //hold currently editing cell
this.mouseClick = false; //hold mousedown state to prevent click binding being overriden by editor opening
this.recursionBlock = false; //prevent focus recursion
this.invalidEdit = false;... |
import { minify } from 'terser';
export default (options = {}) => ({
name: 'terser',
renderChunk: (code) => minify(code, options),
}); |
/*
* 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.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { Policy... |
import React from "react"
import { InlineTex } from "react-tex"
import "katex/dist/katex.min.css"
function Flashcard(props) {
return (
<>
<div
className="flashcard"
>
<div
className={`flip-card ${props.isFlipped}`}
onDoubleClick={e => props.handleFlip()}
>
... |
import React, { Fragment } from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { logger } from '@storybook/client-logger';
import { Tabs, TabsState, panelProps, TabWrapper } from './tabs';
const colours = [...new Array(15)].map((_, i) =>
Math.floor((... |
function howManySeconds(hours) {
return 60 * 60 * hours;
} |
var detect_pktvar_8h =
[
[ "DetectPktvarData_", "structDetectPktvarData__.html", "structDetectPktvarData__" ],
[ "DetectPktvarData", "detect-pktvar_8h.html#a0e1d9636ea12bf5952dd3be1234acba5", null ],
[ "DetectPktvarRegister", "detect-pktvar_8h.html#aef10834da135db6f6137355709e197cc", null ]
]; |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.dialog.add("checkbox",function(d){return{title:d.lang.forms.checkboxAndRadio.checkboxTitle,minWidth:350,minHeight:140,onShow:function(){delete thi... |
import {Model, belongsTo} from 'miragejs';
export default Model.extend({
member: belongsTo(),
product: belongsTo()
}); |
(function (angular) {
'use strict';
/*创建模块*/
var myApp=angular.module('app',['ngRoute','app.controllers.main']);
/*路由配置*/
myApp.config(['$routeProvider',function($routeProvider){
$routeProvider
.when('/:status?',{
controllers:'MainController',
templateUrl:'main_tmpl'
})
.otherwise({ redirectTo... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Component, ChangeDetectorRef, Input, Inject, Output, EventEmitter, ElementRef, Directive, Optional, ViewEncap... |
const deserializers = {
'text/plain': (content) => content.toString(),
'application/json': (content) => JSON.parse(content.toString()),
'application/octet-stream': (content) => content
};
const deserialize = (content, contentType) => {
if (deserializers[contentType]) {
return deserializers[conte... |
/*
* flowplayer.js 3.2.11. The Flowplayer API
*
* Copyright 2009-2011 Flowplayer Oy
*
* This file is part of Flowplayer.
*
* Flowplayer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3... |
__zl([{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":2,"12":3,"13":4,"14":5,"15":6,"16":7,"17":8,"18":9,"19":10,"20":11,"21":12,"22":13,"23":14,"24":15,"25":16,"26":17,"27":18,"28":19,"29":20,"30":21,"31":22,"32":23,"33":24,"34":25,"35":26,"36":27,"37":28,"38":0,"40":29,"41":29,"42":29,"47":30,"49":... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pastefromword', 'pt', {
confirmCleanup: 'O texto que pretende colar parece ter sido copiado do Word. Deseja limpar o código antes de o colar?',
err... |
layui.config({
base : "js/"
}).use(['form','layer','jquery','layedit'],function(){
var form = layui.form,
layer = parent.layer === undefined ? layui.layer : parent.layer,
layedit = layui.layedit,
$ = layui.jquery;
//表格操作 [添加、查看、修改、删除、批量删除、全选]
//1、全选功能
form.on('checkbox(allChoose)', function(data){
... |
import fs from 'fs';
import definition from '../src';
const output = definition;
fs.writeFileSync('./output.scad', output.serialize({ $fn: 100 })); |
describe('plot phase', function() {
integration(function() {
describe('when revealing two plots with persistent effects', function() {
beforeEach(function() {
const deck = this.buildDeck('targaryen', [
'Blood of the Dragon', 'A Song of Summer',
... |
angular.module("mra.crudResource",["ngResource"]);var crudService=function(){function n(n){this.ngResourceService=n;this.updateAction={method:"PUT",isArray:!1}}return n.prototype.resource=function(n,t){return this.ngResourceService(n,t,{update:this.updateAction})},n.$inject=["$resource"],n}();angular.module("mra.crudRe... |
import consoleLog from './console-log.js';
import Plateau from './Plateau.js'
import PièceFactory from './PièceFactory.js';
/**
* Alterne le statut de joueur courant entre les deux joueurs.
*/
const changerDeJoueur = () => {
const ctr = document.querySelectorAll(".control");
ctr.forEach(c => { c.classList.to... |
'use babel';
import AtomTextWikiView from './atom-text-wiki-view';
import { CompositeDisposable } from 'atom';
export default {
atomTextWikiView: null,
modalPanel: null,
subscriptions: null,
activate(state) {
this.atomTextWikiView = new AtomTextWikiView(state.atomTextWikiViewState);
this.modalPanel ... |
/*
此文件实现融云注册统计功能, 开发者可忽略
*/
var https = require('https'),
qs = require('querystring');
var DEMO_TYPE = 2; // SealRTC
var ADMIN_REPORT_URL = 'admin.rongcloud.cn',
ADMIN_REPORT_PATH = '/demoApi/sendData';
var request = (options) => {
return new Promise((resolve, reject) => {
var content = options.content;
... |
const express = require('express');
const app = express();
const port = 3000;
const db = require('./database')
app.use(express.static('./public'));
app.listen(port, () => {
console.log('Server listening at http://localhost:3000');
}) |
import users from './users.js';
('use strict');
// Получить массив имен всех пользователей (поле name).
const getUserNames = users => users.map(user => user.name);
const names = getUserNames(users);
console.table(names);
// [ 'Moore Hensley', 'Sharlene Bush', 'Ross Vazquez', 'Elma Head', 'Car... |
'use strict';
var common = require('../../common');
var assert = require('assert');
// testing handle scope api calls
var testHandleScope =
require(`./build/Release/test_handle_scope.node`);
testHandleScope.NewScope();
assert.ok(testHandleScope.NewScopeEscape() instanceof Object);
testHandleScope.NewScopeEscape... |
'use babel';
import Form from './form';
import { CompositeDisposable } from 'atom';
import { spawn } from 'child_process';
export default {
form: null,
modalPanel: null,
subscriptions: null,
state: null,
activate(state) {
this.state = state;
// Events subscribed to in atom's system can be easily c... |
//need to require Manager and Employee models
const Manager = require('../lib/Manager');
const Employee = require('../lib/Employee');
const { expect, test } = require('@jest/globals');
//test to set phoneNumber
test('can set phoneNumber', () => {
const myValue = 555;
const employee = new Manager('Coco', 3, 'co... |
export default{"initial.group.column3d":()=>({"zeroPlane.appearing":()=>[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:'axis'}]})}; |
import React from 'react';
import { Card } from '@material-ui/core';
import styled from 'styled-components';
const StyledCard = styled(Card)`
width: 100%;
height: 27.5vh;
display: flex;
margin: 10% 0 0 10%;
`;
const ImageBox = selectedBridge => {
console.log(selectedBridge)
return (
<StyledCard>
... |
var data=[['19970718',14.117],
['19970721',14.078],
['19970722',14.463],
['19970723',14.035],
['19970724',13.454],
['19970725',13.266],
['19970728',13.287],
['19970729',13.292],
['19970730',13.569],
['19970731',13.749],
['19970801',13.557],
['19970804',13.266],
['19970805',13.352],
['19970806',12.783],
['19970807',12.6... |
import { escapeHtml, hasOwnProp, mergeDeep, ModelValidationError } from '../utils';
import { i18n } from '../translation.js';
class ModelUtils {
static pkFields = ['id', 'pk'];
static getPrototypes(cls, parents = [cls]) {
const proto = Object.getPrototypeOf(cls);
if (proto !== null) {
... |
const OBSERVER = Symbol("scroll.observer");
export default function () {
let intersection = new IntersectionObserver(
(entries) =>
entries.forEach((event) => {
event.target[OBSERVER](event);
}),
{
rootMargin: "200px 0px",
}
);
return (element) => {
let node = element;
... |
/*
* 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 chrome from 'ui/chrome';
let httpClient;
export const setHttpClient = (cli... |
'use strict;'
require('../../libs/automationutils');
stdutils = require('../../libs/standardutils');
configutils = require('../../libs/configurationutils').create();
var gid = '965B358796';
var width = '690px';
var height = '390px';
var url = 'https://example.com/ads/';
var _periodSeconds = 1000;
var _pollPeriodMs... |
import {fits, overlaps, subtract, merge } from './rect'
const find = require('array.prototype.find')
function getMax(items, coord, dimension) {
return items.reduce((value, item) => {
if (item[coord] === undefined) {
return value
}
return Math.max(value, item[coord] + item[dimen... |
/* eslint-env jest */
/* global jasmine */
import { promises } from 'fs'
import { join } from 'path'
import { validateAMP } from 'amp-test-utils'
import { File, nextBuild, nextExport, runNextCommand } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
const { access, readFile } = promises
const ap... |
export const literals = [
'true',
'false',
'null',
'undefined'
];
export const keywords = [
'and',
'or',
'has',
'has no',
'in',
'not in',
'not',
'no',
'asc',
'desc'
]; |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
container: {
flex: 1,
height: "90%",
backgroundColor: '#FEF7DD',
},
scrollContainer: {
margin: 10,
paddingBottom: '15%',
flexGrow: 1,
},
headerContainer: {
justifyContent: 'center',
alignItems: 'cent... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/ |
/*!
* ${copyright}
*/
/*global Promise */// declare unusual global vars for JSLint/SAPUI5 validation
// Provides class sap.ui.core.util.Export
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './ExportColumn', './ExportRow', './ExportType', './File'],
function(jQuery, Control, ExportColumn, ExportRow, Exp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.