text stringlengths 2 1.04M |
|---|
const Bus = require('../../')
const config = require('./config')
const util = require('util')
const sleep = util.promisify(setTimeout)
const bus = Bus.init(config.rabbitmq)
// const send = util.promisify(bus.send).bind(bus)
bus.on('ready', () => {
console.log('[bus] is ready')
})
bus.on('connection.close', (err) => ... |
const Display = {
init: function (cw, ch) {
this.gamingArea = {width: cw, height: ch, scaleX: 1, scaleY: 1}
this.width = cw
this.height = ch
this.scaleX = 1
this.scaleY = 1
this.mobile = false
window.addEventListener('scroll', () => {
window.scrol... |
import React from 'react'
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import 'jest-styled-components'
import { Message } from '../Message'
it('default renders correctly', () => {
const { container } = render(
<Message>This is an infomation message for the cus... |
import SliderDialog from './views/SliderDialog.vue';
import SliderGraph from './views/SliderGraph.vue';
let dashboard_graph_slider = {};
export default function setup (options, imports, register)
{
const studio = imports;
// console.log(studio);
studio.dashboard.registerGraph('SLIDER_GRAPH', 30, 'plugins/dashboard/g... |
var colleges = [
{
name: 'Worcester Polytechnic Institute',
position: {
lat: 42.2746,
lng: -71.8063,
},
},
{
name: 'University of Virginia',
position: {
lat: 38.0336,
lng: -78.5080,
}
},
{
name: '... |
import { Texture } from './Texture.js';
import { ClampToEdgeWrapping, NearestFilter } from '../constants.js';
function DataTexture3D( data = null, width = 1, height = 1, depth = 1 ) {
// We're going to add .setXXX() methods for setting properties later.
// Users can still set in DataTexture3D directly.
//
// cons... |
import NodeImage from '../NodeImage.js';
import IfImageProperties from './IfImageProperties.jsx';
import OutputImage from '../OutputImage.js';
import InputImage from '../InputImage.js';
import InputNumber from '../InputNumber.js';
export default class IfImage extends NodeImage {
constructor(className, graph, x, y, ... |
'use strict';
var _ = require('lodash');
var errors = require('./errors');
var sjcl = require('./sjcl');
module.exports = {
calculateMasterKey: calculateMasterKey,
decryptData: decryptData,
deriveWalletId: generateDeriveFromKeyFunction('WALLET_ID'),
deriveWalletKey: generateDeriveFromKeyFunction('WALL... |
'use strict'
var assert = require('assert')
var codes = require('../character/codes.js')
var markdownLineEnding = require('../character/markdown-line-ending.js')
var markdownLineEndingOrSpace = require('../character/markdown-line-ending-or-space.js')
var constants = require('../constant/constants.js')
var types = requ... |
import TestRenderer from "react-test-renderer";
import "./serializers-with-style";
import shared from "./front-l1and1.base";
export default () => shared(TestRenderer.create); |
// Aquie pondremos nuestro codigo
var myInput = document.getElementById('input1');
myInput.onkeypress = capturarEnter;
function capturarEnter( elEvento) {
console.log(elEvento.keyCode);
if ( elEvento.code == "Enter"){
checkout();
}
}
function checkout(){
console.log("Hice checkout");
} |
import _ from 'lodash';
import iopipe from '@iopipe/core';
import tracePlugin from '@iopipe/trace';
import mockContext from 'aws-lambda-mock-context';
import pkg from '../package.json';
jest.mock("./formatAndSend");
import HoneycombReport from './index';
import { invocations, formattedReports, reports, reset } from '... |
import React from "react";
import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import GlobalStyle from "./styles/global";
import Header from "./components/Header";
import Board from "./components/Board";
function App() {
return (
<DndProvider backend={HTML5Backend}>
... |
var ProgressDemoCtrl = function ($scope) {
$scope.max = 200;
$scope.random = function() {
var value = Math.floor((Math.random() * 100) + 1);
var type;
if (value < 25) {
type = 'success';
} else if (value < 50) {
type = 'info';
} else if (value < 75) {
type = 'warning';
... |
/*! *****************************************************************************
Copyright (c) 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.... |
//# sourceMappingURL=component---src-pages-archive-js-fcb86dc60a594eeba123.js.map |
window.onload = function () {
bomb();
//弹性
function bomb(){
var qin = $('.qin');
for(var i=0;i<qin.length;i++){
// qin.eq(i).css("width",qin.eq(i).width());
qin.eq(i).css("height",qin.eq(i).height(14));
var aHtml=qin.eq(i).html().split("");
for... |
import game from '../game';
function preload(){
console.log('booting...');
game.load.image('bg', 'assets/img/BG.png');
game.load.image('rahmen', 'assets/img/rahmen.png');
game.load.image('bar','assets/img/bar.png');
game.load.image('logo','assets/img/logo.png');
}
function create(){
let bg;
let logo = g... |
describe('angularjs homepage todo list', function() {
// var originalTimeout;
// beforeEach(function() {
// originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
// jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;// default is 5000; IE 11 and Egde are requiring more time...
// });
it('should add a todo', f... |
module.exports = {
"variables": {
"lang": "en",
"locale": "en-US",
"charset": "UTF-8",
"indentation": "\s",
"newline": "\n"
},
"css": {
"filters": "html",
"snippets": {
"@i": "@import url(|);",
"@import": "@import url(|);",
"@m": "@media ${1:screen} {\n\t|\n}",
... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'cs', {
bulletedTitle: 'Vlastnosti odrážek',
circle: 'Kroužky',
decimal: 'Arabská čísla (1, 2, 3, atd.)',
disc: 'K... |
const eslint = require('gulp-eslint');
const paths = require('../../paths');
module.exports = (gulp) => {
return gulp.src([
`${paths.sourceJS}/**/*.js`,
`${paths.sourceApp}/**/*.js`,
`${paths.projectDir}/+(config|gulp|lib|public|test)/**/*.js`,
`${paths.projectDir}/*.js`,
])
.pipe(eslint())
.pi... |
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("Tags.feature");
formatter.feature({
"line": 3,
"name": "Create account on Facebook8",
"description": "As a new user you need to open Facebook home page and do the validations",
"id": "create-account... |
import Chip from "@material-ui/core/Chip";
import React from "react";
import {VscError} from "@react-icons/all-files/vsc/VscError";
import {BsCheckCircle} from "@react-icons/all-files/bs/BsCheckCircle";
const WhenChips = ({condition, onDelete}) => {
if(condition === "") {
return <Chip
icon={<V... |
// Generated by CoffeeScript 1.6.3
(function() {
var nearestNeighbor, should;
should = require('should');
nearestNeighbor = require('../lib/main');
describe('K Nearest Neighbor', function() {
describe('arguments', function() {
it('should be at least 2', function() {
(function() {
... |
var _fnMenuHeaderTop = function(toggle, list, slide) {
var className, el, time;
time = 300;
el = toggle.closest('.mobile-list-anim');
className = 'active';
if (toggle.prop("checked")) {
if(slide) list.stop().slideDown(time);
el.add(list).addClass(className);
} else {
if(... |
// Copyright 2008 The Closure Library Authors. 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 requ... |
import { test } from "../test.js"
test("universe.milkyway", {
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "universe"
},
... |
var searchData=
[
['add_5fimage_2ephp_111',['add_image.php',['../add__image_8php.html',1,'']]],
['admin_2ephp_112',['Admin.php',['../Admin_8php.html',1,'']]],
['adminview_2ephp_113',['AdminView.php',['../AdminView_8php.html',1,'']]]
]; |
/* RainLoop Webmail (c) RainLoop Team | Licensed under RainLoop Software License */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Ch... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import { fakeSchedulers } from 'rxjs-marbles/jest';
import { InputNumber } from 'components';
const response = { values: { COLLECTED: '1' } };
const defaultProps = { id: 'id', label: 'label', response };
describe('input-number', () => {
const handl... |
import BaseProperty from "./BaseProperty";
import { LOAD, CLICK, DEBOUNCE, DRAGSTART, SUBSCRIBE } from "el/base/Event";
import icon from "el/editor/icon/icon";
import Color from "el/base/Color";
import { registElement } from "el/base/registerElement";
export default class ColorAssetsProperty extends BaseProperty {
... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Downshift from 'downshift';
import isEqual... |
import { __decorate } from "tslib";
import { ChangeDetectorRef, Directive, forwardRef, Input } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { NgbButtonLabel } from './label';
import * as ɵngcc0 from '@angular/core';
import * as ɵngcc1 from './label';
var NGB_CHECKBOX_VALUE_ACCESSOR =... |
// https://github.com/standard/eslint-config-standard/blob/master/eslintrc.json
module.exports = {
root: true,
extends: 'standard',
parser: 'babel-eslint',
plugins: [
'html',
],
rules: {
'no-unused-vars': [1],
'comma-dangle': [2, 'always-multiline'],
'dot-location': [2, 'object'],
'lineb... |
/**
* @fileoverview Firebase namespace and Firebase App API.
* Version: 3.2.0
*
* Copyright 2016 Google Inc. 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
*
*... |
const Joi = require('joi');
// const validator = require('validator');
module.exports = {
// POST /api/users
createUser: {
body: {
name: Joi.string().required(),
// mobileNumber: Joi.string().regex(/^[0-9][0-9]{9}$/).required(),
email: Joi.string().email().required(),
password: Joi.stri... |
const React = require('react');
const bs = require('react-bootstrap');
const moment = require('moment');
const DatetimeInput = require('react-datetime');
const { FormattedMessage, FormattedDate } = require('react-intl');
const { Link } = require('react-router');
const MainSection = require('../../layout/MainSection');... |
// Fallback to old WebView where SFSafariViewController is not supported
function WebView() {
this.tab = null;
this.handler = null;
this.open = this.open.bind(this);
this.handleFirstLoadEnd = this.handleFirstLoadEnd.bind(this);
this.handleLoadError = this.handleLoadError.bind(this);
this.handleExit = this.h... |
/* Image w/ description tooltip v2.0
* Created: April 23rd, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
var ddimgtooltip={
tiparray:function(){
var tooltips=[]
//define each tooltip below: tool... |
'use strict';
const fs = require('fs'),
path = require('path'),
_ = require('lodash'),
nodemailer = require('nodemailer'),
configHandler = require('../../configManager/models/configHandler'),
configConsts = require('../../common/consts').CONFIG,
logger = require('../../common/logger');
module.e... |
function validateCpf(strCpf, booShowValidate, inputCpf)
{
if (empty(booShowValidate))
booShowValidate = true;
strCpf = replaceAll(strCpf, '.', '');
strCpf = replaceAll(strCpf, '-', '');
strCpf = replaceAll(strCpf, '/', '');
var strMessage = 'CPF inválido.';
var intDigitosIguais = 1;
... |
var NAVTREEINDEX1 =
{
"class_config___settings.html#a86f30df20877e9ae57a5c81fca28bb8d":[1,0,4,170],
"class_config___settings.html#a873045124d5d009b1bc05d2b53f98c6b":[1,0,4,296],
"class_config___settings.html#a88176fb9973d013cbb761f9197743ae5":[1,0,4,117],
"class_config___settings.html#a88454d1faa079b5fbcb1c8ed6e8a5887"... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
const path = require('path');
const cwd = process.cwd();
const packageConfig = require('../package.json');
module.exports = {
cwd,
basePath: path.resolve(__dirname, '../'),
version: packageConfig.version,
}; |
import { dew as _convertDewDew } from "./convert.dew.js";
import { dew as _flatMapDeepDewDew } from "../flatMapDeep.dew.js";
import { dew as _placeholderDewDew } from "./placeholder.dew.js";
var exports = {},
_dewExec = false;
export function dew() {
if (_dewExec) return exports;
_dewExec = true;
var convert... |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
InspectorTest.log('Checks created frame for async call chain');
InspectorTest.addScript(
`
function foo1() {
debugger;
}
function foo2() {
deb... |
/* @file mqtt.chat.js
* @date 2016.11.14 16:51:52
*/ |
var stripe = Stripe('pk_test_w9RckSgb0LVeeOCHeRT1aZ9S');
// Create an instance of Elements.
var elements = stripe.elements();
// Custom styling can be passed to options when creating an Element.
// (Note that this demo uses a wider set of styles than the guide below.)
var style = {
base: {
color: '#32325d... |
import React from "react"
import SingleTour from "./single-tour.component"
import styles from "../../css-modules/items.module.css"
export const ToursLayout = ({ toursData }) => {
return (
<section className={styles.tours}>
<div className={styles.center}>
{toursData.map(({ node }) => {
re... |
const express = require("express");
const path = require("path");
const cookieParser = require("cookie-parser");
const logger = require("morgan");
const indexRouter = require("./routes/index");
const app = express();
app.use(logger("dev"));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
a... |
export const VERSION = "0.7.0";
export const GitCommit = "3c117d2ade60b5ef77f0170a3b3106d5eae8915a"; |
const Client = require('../src')
const config = {projectId: '89qx0zd4', dataset: 'sweets', useCdn: true}
const token =
'sk6oecvddLqAa9od7KAk90zxCegaNI4jzEPQBZZPfq66BvEfRwRG4KvExnWtKpspQD601VNypC3RQTNySDT8HRtBzqOQ8QTByLmt8dQAIU8kkna9KmnQctri1u7nVDSq0vkkKEvzHgRolNRjJ2sSvddGHx0TKEK2I9gbteKOV50IbRXcWI5c'
const expected... |
import Dot from './Dot'
export const generated = () => {
return <Dot />
}
export default { title: 'Components/Dot' } |
const fs = require('fs-extra');
const path = require('path');
const componentExists = (componentDir, debug) => {
let result = false;
const paths = [
path.join(process.cwd(), componentDir),
path.join(process.cwd(), componentDir, 'index.tsx'),
path.join(process.cwd(), componentDir, 'styl... |
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const root = path.resolve(__dirname, './../../');
const sass = path.resolve(root, './main/assets/scss');
const images = path.resolve(root, './main/assets/images');
const copyLookAndFeelAssets = new CopyWebpackPlugin({
patterns: ... |
//# sourceMappingURL=languages.min.js.map |
function solve(names = []) {
names = names.join('').match(/\b[A-Z][a-z]+ [A-Z][a-z]+\b/g);
console.log(names.join(' '));
}
// Don't copy the calling of the function in judge, you won't get any points, just the code above
solve(["Ivan Ivanov, Ivan ivanov, ivan Ivanov, IVan Ivanov, Test Testov, Ivan Ivanov"]); |
#!/usr/bin/env node
const exec = require('execa')
const fs = require('fs-extra')
const json5 = require('json5')
const esbuild = require('esbuild')
const fg = require('fast-glob')
const createExternalPlugin = require('./externalNodePlugin')
const path = require('path')
const jsOnly = !!process.env.JS_ONLY
const skipJS... |
import React, { Component } from 'react';
import './App.css';
class Hello extends Component {
state = {
opacity: 1.0
}
componentDidMount () {
setInterval (() => {
let opacity = this.state.opacity
opacity -= 0.2
if(opacity < 0.1) {
opacity = 1
}
this.setState({
... |
const Mnemonic = "brush embody impose country draft secret brother purchase believe pony protect shift";
export default Mnemonic; |
function UserPie(){
let graphicopt = {
margin: {top: 0, right: 50, bottom: 0, left: 50},
width: 300,
height: 250,
'max-height': 500,
scalezoom: 1,
zoom:d3.zoom(),
widthView: function () {
return this.width * this.scalezoom
},
height... |
define([
'./grafanaCtrl',
'./pulldown',
'./search',
'./metricKeys',
'./inspectCtrl',
'./jsonEditorCtrl',
'./loginCtrl',
'./sidemenuCtrl',
'./errorCtrl',
], function () {}); |
const semver = require('semver');
const WorkerError = require('../errors/worker_error');
// Additional information for error log
const _messages = {
common: {
element: 'apiParam',
usage: '@apiParam (group) varname',
example: '@apiDefine MyValidParamGroup Some title\n@apiParam (MyValidParamGroup) username... |
// gatsby-config.js
module.exports = {
siteMetadata: {
title: `Gatsby Starter Blog`,
author: {
name: `Ashutosh Kumar Singh`,
},
description: `Gatsby Starter Blog built with MDX and Styled Components.`,
image: `/cover.png`,
siteUrl: `https://lelouchb-gatsby-starter-blog.netlify.app/`,
... |
'use strict';
describe('Thermostat', function() {
var thermostat;
beforeEach(function() {
thermostat = new Thermostat();
});
it('starts at 20 degrees', function() {
expect(thermostat.getCurrentTemperature()).toEqual(20);
});
it('increases in temperature with up()', function() {
thermostat.u... |
var zlib = require('zlib');
var AVAILABLE_WINDOW_BITS = [8, 9, 10, 11, 12, 13, 14, 15];
var DEFAULT_WINDOW_BITS = 15;
var DEFAULT_MEM_LEVEL = 8;
PerMessageDeflate.extensionName = 'permessage-deflate';
/**
* Per-message Compression Extensions implementation
*/
function PerMessageDeflate(options, isServer) {
this... |
export default (position, axis) => {
const positionCss = (axis === 'horizontal') ? [position, 0, 0] : [0, position, 0];
const transitionProp = 'translate3d';
const translatedPosition = '(' + positionCss.join(',') + ')';
return transitionProp + translatedPosition;
}; |
/* ************************************************************************************************
* *
* Please read the following tutorial before implementing tasks: *
* https://develope... |
import * as THREE from '../../build/three.module.js';
import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
import { UIPoints2 } from './libs/ui.three.js';
import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
function SidebarGeometryLatheGeometry( editor, object ) {
var strings = edi... |
// @flow
import { NativeModules } from 'react-native';
const { CTKInterstitialAdManager } = NativeModules;
export default {
/**
* Shows interstitial ad for a given placementId
*/
showAd(placementId: string): Promise<boolean> {
return CTKInterstitialAdManager.showAd(placementId);
},
}; |
import React from 'react';
import ListMessage from '../ListMessage/index';
import {connect} from 'react-redux';
import {addMessage} from "../../actions/action";
import * as MessageTypes from "../../constants/MessageTypes";
import {getMetaLink} from "../../container/BottomBarContainer/actions";
class Scroll extends Rea... |
'use strict';
var $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;
var $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;
var exported;
if (!$WeakMap) {
// eslint-disable-next-line no-unused-vars
exported = function isWeakMap(x) {
// `WeakMap` is not pr... |
/*! Built with http://stenciljs.com */
const { h } = window.App;
function transitionEnd(el, callback) {
let unRegTrans;
const opts = { passive: true };
function unregister() {
if (unRegTrans) {
unRegTrans();
}
}
function onTransitionEnd(ev) {
if (el === ev.target... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9z" /><path d="M18 5V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm9 13H7V7h14... |
import React from 'react';
import PropTypes from 'prop-types';
import { socialMedia } from '@config';
import { Side } from '@components';
import { FormattedIcon } from '@components/icons';
import styled from 'styled-components';
import { theme } from '@styles';
const { colors } = theme;
const StyledList = styled.ul`
... |
app.config(config);
config.$inject=["$routeProvider"];
function config($routeProvider) {
$routeProvider
.when("/page_one",{
templateUrl:"templates/page_one.html",
controller:"page_one"
})
.when("/page_two",{
templateUrl:"templates/page_two.html",
... |
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])... |
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('purchase_types', {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
description: {
type: DataTypes.STRING,
allowNull: true
}
... |
import {Element as PolymerElement} from '../node_modules/@polymer/polymer/polymer-element.js';
class AggregationPickerControl extends PolymerElement {
static get template() {
return `
<div id="aggregations">
</div>
`;
}
constructor() {
super();
}
stat... |
const CANVAS_HEIGHT = window.innerHeight - 20;
const CANVAS_WIDTH = window.innerWidth - 20;
const markup = `<button onclick="resetField()">Reset</button>
<button onclick="bubbleSort()">Bubble Sort</button>
<button onclick="shakerSort()">Shaker Sort</button>
<button onclick="insertionSort()">Insertion sort</button>
<br... |
module.exports = {
tableName: 'country',
columns: [{
columnName: 'country_id',
type: 'integer',
dataType: 'smallint',
notNull: true,
unsigned: true,
primaryKey: true,
autoIncrement: true,
validate: {
func: [],
args: [],
msg: []
},
},
... |
"use strict";
exports.__esModule = true;
var geoserverURL_local = 'https://portal.smart-project.info/geoserver/wms';
var linzwms_URL_new = 'https://data.linz.govt.nz/services;key=a8fb9bcd52684b7abe14dd4664ce9df9/wms';
var lriswms_URL_new = 'https://lris.scinfo.org.nz/services;key=7c49be26da404042b2d0736595e64952/wms';
... |
// Copyright (C) 2021 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-shadowrealm.prototype.importvalue
description: >
ShadowRealm.prototype.importValue is not a constructor.
includes: [isConstructor.js]
features: [ShadowRealm, Reflect.construc... |
/* eslint-disable consistent-return */
const Stack = require("../../Data-Structures/stacksAndQueues/stacks-and-queues").stack;
/**
* [exports description]
* @method vaidateBrackets
* @param {string} str
* @return {boolean}
*/
module.exports = (str) => {
const stack = new Stack();
const openingBrackets = ["[... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/// <reference path="../typings/index.d.ts" />
var express = require("express");
var fs = require("fs");
var https = require("https");
var body = require("body-parser");
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var app = express();
app.... |
const clockContainer = document.querySelector(".js-clock"),
clockTitle = clockContainer.querySelector("h1");
function getTime() {
const date = new Date();
const minutes = date.getMinutes();
const hours = date.getHours();
const seconds = date.getSeconds();
clockTitle.innerText = `${hours < 10 ? `0... |
module.exports = function (sequelize, DataTypes) {
const SystemRole = sequelize.define('SystemRole', {
role_id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true,
comment: "角色id"
},
name: {
type: DataTypes.STRING(100),
allowNull: true,
comme... |
const pg = require('knex')({ client: 'pg' });
const select = pg({ t: 'txs_10' }).select('*');
const selectFromFiltered = filtered =>
pg
.select({
tx_uid: 't.tx_uid',
height: 't.height',
tx_type: 'txs.tx_type',
id: 'txs.id',
time_stamp: 'txs.time_stamp',
signature: 'txs.signat... |
const hapi = require('@hapi/hapi')
const config = require('./config')
const messageService = require('./messaging')
const catbox = config.useRedis ? require('@hapi/catbox-redis') : require('@hapi/catbox-memory')
async function createServer () {
// Create the hapi server
const server = hapi.server({
port: confi... |
var unauthorizedTest = require("../../unauthorized-test-factory");
unauthorizedTest({
uri: "/master/steps"
}); |
/*
Copyright (c) 2016, Geomatics and Cartographic Research Centre, Carleton
University
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... |
// 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 in w... |
describe("correct behavior", () => {
test("basic functionality", () => {
const plainTime = new Temporal.PlainTime(12);
expect(plainTime.hour).toBe(12);
});
});
describe("errors", () => {
test("this value must be a Temporal.PlainTime object", () => {
expect(() => {
Reflec... |
import React from 'react';
import ReactDOM from 'react-dom';
import './style.css';
const Checkbox =({ checkbox, handleChange }) => {
return (
<div>
{checkbox.map(el => (
<div className='divBox'>
<input key={el.name} id={ el.name } type={ el.type } value={ el.name } name={ el.name } onChan... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { DeleteButton } from '../components/buttons';
import api from '../api';
import styled from 'styled-components';
import {FaIdCard, FaBookMedical, FaCity, FaPenSquare, FaTrash } from 'react-icons/fa';
const generateRandomImageWid... |
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
const PrivateRoute = ({ component: Component, user, dispatch, ...rest }) => {
return (
<Route {...rest} render={props => (
user
? <Component {...props} dispatch={dispatch} />
: <Redirect to={{... |
jQuery(document).ready(function(){
jQuery('#fileTree').fileTree({
root : '/',
script : base_path+'/lib/jQueryFileTree/connector.php',
folderEvent : 'click',
expandSpeed : 750,
collapseSpeed : 750,
multiFolder : false
}, function(file,dir)
{
//Get da... |
(function(c){c.fn.stupidtable=function(b){return this.each(function(){var a=c(this);b=b||{};b=c.extend({},c.fn.stupidtable.default_sort_fns,b);a.on("click.stupidtable","th",function(){var d=c(this),f=0,g=c.fn.stupidtable.dir;a.find("th").slice(0,d.index()).each(function(){var a=c(this).attr("colspan")||1;f+=parseInt(a,... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`
},
pathPrefix: `/portfolio-ala-vallejo`,
plugins: [`gatsby-plugin-react-helmet`]
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.