text stringlengths 2 1.04M |
|---|
module.exports = {
extends: 'eslint-config-rnx',
globals: {
__DEV__: false,
B: false,
window: false,
document: false,
fetch: false,
},
rules: {
'jsx-a11y/no-static-element-interactions': ['off']
}
} |
import { combineReducers } from "redux";
import auth from "./auth/reducer";
import user from "./user/reducer";
export default combineReducers({
auth,
user,
}); |
export const LOGIN_USER = 'app/auth/LOGIN_USER';
export const LOGIN_USER_SUCCESS = 'app/auth/LOGIN_USER_SUCCESS';
export const LOGIN_USER_ERROR = 'app/auth/LOGIN_USER_ERROR';
export const REGISTER_USER = 'app/auth/REGISTER_USER';
export const REGISTER_USER_SUCCESS = 'app/auth/REGISTER_USER_SUCCESS';
export const REGIS... |
/*************************************************************
*
* MathJax/localization/pt-br/pt-br.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... |
const Joi = require('joi')
module.exports = {
body: {
name: Joi.string().required(),
email: Joi.string()
.email()
.required(),
password: Joi.string().required().min(6)
}
} |
const readInputList = function(action) {
if (settings[action.inputListName].trim() === '') {
return;
}
settings[action.inputListName].split('|').forEach(pair => {
if (!pair.includes(',')) {
return;
}
let split = pair.split(',');
let value = split.pop().trim();
// We want to allow com... |
/**
* This script automatically creates a default Admin user when an
* empty database is used for the first time. You can use this
* technique to insert data into any List you have defined.
*/
exports.create = {
User: [
{ 'name.first': 'Admin', 'name.last': 'User', email: 'supervisor@keystonejs.com', password: ... |
import React from 'react';
import { Ripple } from 'react-ripple-effect';
class RippleButton extends React.Component {
constructor() {
super();
this.state = {
cursorPos: {}
}
}
render () {
return (
<button
className="Ripple-parent"
onMouseUp={this.handleClick.bind(th... |
import React from 'react';
export default function Receipt(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24" width={24} height={24} {...props}>
<path d="M9,12H7a1,1,0,0,0,0,2H9a1,1,0,0,0,0-2ZM8,10h4a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Zm1,6H7a1,1,0,0,0,0,2H9a1,1,0,0... |
import { useState, useEffect } from 'react'
import { Row, Typography, Checkbox, Tooltip } from 'antd'
import { Client, Network } from '@helium/http'
import Fade from 'react-reveal/Fade'
import Checklist from '../../components/Hotspots/Checklist/Checklist'
import RewardSummary from '../../components/Hotspots/RewardSumma... |
function mostrarListaPersonasConForeEachYArrowFunction(listaPersonas) {
listaPersonas.forEach(p => console.log(p));
}
// El arreglo personas se encuentra declarado en el archivo personas.js
console.log('########Inicio Mostrar########');
mostrarListaPersonasConForeEachYArrowFunction(personas);
console.log('####... |
/* eslint-disable import/no-extraneous-dependencies */
import '@testing-library/jest-dom/extend-expect'
import 'jest-styled-components'
jest.doMock('next/config', () => {
const mockConfig = require('./next.config')
return jest.fn(() => ({
publicRuntimeConfig: mockConfig.publicRuntimeConfig
})
})
// Mockin... |
/*
YUI 3.12.0 (build 8655935)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/series-marker-stacked/series-marker-stacked.js']) {
}
var __cov_vb9jJpsodsNhLkVO6OSnFQ... |
import React, { Component } from 'react'
export default class Signup extends Component {
constructor(props) {
super(props)
this.state = {
usernameInput: "",
passwordInput: ""
}
this.handleChange = this.handleChange.bind(this)
this.handleSubmit = this.hand... |
const mysql = require('mysql');
//uncessesary in practice but just getting used to classes
class ConnectionString {
constructor(user,host,port,database,password){
this.user = user;
this.host = host;
this.PORT = port;
this.database = database;
this.password = password;
}
... |
var socket = io();
var buton = document.querySelector(".tikla");
var video = document.querySelector("video");
buton.addEventListener("click",function(){
socket.emit("video baslat",{status:"Video Başlatıldı", durum:1});
})
socket.on("VideStream",function(data){
console.log(data)
var c... |
const contractAddress = "0x37b39BaBAa98a6e7eb1485bf12f3B657A22c6562"; //Replace with your own contract address
const chain = 'polygon'; // rinkeby or polygon
const welcome_h1 = "Welcome to the Land of Big Ted!";
const welcome_h2 = "Connect to MetaMask to Get Started";
const welcome_p = 'In a far away land, the one tru... |
//>>built
require({cache:{"url:dojox/widget/Wizard/Wizard.html":"<div class=\"dojoxWizard\" dojoAttachPoint=\"wizardNode\">\n <div class=\"dojoxWizardContainer\" dojoAttachPoint=\"containerNode\"></div>\n <div class=\"dojoxWizardButtons\" dojoAttachPoint=\"wizardNav\">\n <button dojoType=\"dijit.form.Butto... |
const pkg = require("../package.json");
const Path = require('path');
const Webpack = require('webpack');
const Merge = require('webpack-merge');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const LessPluginInlineSvg = require('less-plugin-inline-svg');
module.exports = Merge(require... |
/**
* php `basename` with Javascript
*
* Returns trailing name component of path
* @see https://www.php.net/manual/en/function.basename.php
*
* @param string filepath
* @param string suffix
* @return string
*/
const path = require("path")
const basename = (filepath, suffix="")=>path.basename(filepath, suffi... |
import React from 'react';
import MenuItem from './menuItem';
import store from '../store';
import {selectDisk} from '../actions/diskActions';
import {setActiveDisk} from '../actions/diskActions';
export default class MenuLine extends React.Component{
constructor(props) {
super();
}
componentDid... |
(function() {
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
! function(a) {
"use strict";
var b = null;
"undefined" != typeof exports ? exports.loadCSS = b : a.loadCSS = b
}("undefined" != typeof global ? global : this);
... |
/* Directive to bind an event listener for the "enter" key to call the
form validation function */
signupApp.directive('aiEnter', function() {
return function(scope, element, attrs) {
element.on("keydown keypress", function(event) {
if (event.which === 13) {
event.preventDefa... |
/**
* marked - a markdown parser
* Copyright (c) 2011-2021, Christopher Jeffrey. (MIT Licensed)
* https://github.com/markedjs/marked
*/
/**
* DO NOT EDIT THIS FILE
* The code in this file is generated from files in ./src/
*/
var defaults$5 = {exports: {}};
function getDefaults$1() {
return {
baseUrl: nu... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true })... |
{
$(function(){
$("#mayoria_edad").click(function(evento){
if ($("#mayoria_edad").prop("checked")){
$("#formulariomayores").css("display", "block");
}else{
$("#formulariomayores").css("display", "none");
}
});
});
} |
let redirections = {
// "/SOURCE (BROKEN) URL without trailing slash":"/DESTINATION (CORRECT) URL with slash"
"/swan-lake/learn/tools-ides/setting-up-visual-studio-code":"/swan-lake/learn/vscode-plugin/",
"/swan-lake/learn/setting-up-visual-studio-code":"/swan-lake/learn/vscode-plugin/",
"/1.1/learn/... |
'use strict';
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
const ignoredFiles = require('react-dev-utils/i... |
(function ($) {
AjaxSolr.StatusWidget = AjaxSolr.AbstractWidget.extend({
init: function(){
var self = this;
var statusID = getURLParameter("status");
if (statusID!=null && statusID!="null" && jQuery.trim(statusID)!=""){
var statusRequester=jQuery.getJSON(self.server_URL+"/"+statusID);
statusRequest... |
/**
* Takes a requestActionCreator to trigger the action indicating that a request
* has occurred in the application, and a receiverActionCreator to trigger, indicating
* that data for the request has been received.
* @param {Function} requesterActionCreator redux action creator
* @param {Function} receiverAct... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const writeFile = require('util').promisify(fs.writeFile);
/* eslint-disable import/no-extraneous-dependencies */
const { ESLint } = require('eslint');
const ConfigValidator = require('@eslint/eslintrc/lib/shared/config-validato... |
const gulp = require('gulp');
const jshint = require('gulp-jshint');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');
const babel = require('gulp-babel');
const concat = require('gulp-concat');
gulp.task('styles', function() {
gulp.src('assets/sass/**/*.scss')
.pipe(sass().... |
// command checkResultClass
new UUID('31323334')
// command checkResultClass
UUID('31323334')
// command checkResultClass
new UUID('5220b418-8f7d-4cd9-bd27-35b6f8d990c5')
// command dontCheckValue
new UUID() |
var randomDivs = function () {
var i,
div = document.createElement('div'),
wrapper = document.createElement('div'),
fragment = document.createDocumentFragment();
wrapper.id = 'wrapper';
div.style.position = 'absolute';
div.style.borderStyle = 'solid';
div.innerHTML = '<stro... |
import test from "tape-async";
import reduce from ".";
const arr = [42, Promise.resolve(43)];
const add = (accum, item) => accum + item;
const rejection = p => p.catch(err => err);
const fail = () => {
throw new Error("test");
};
test("exports a function", async t => {
t.is(typeof reduce, "function");
});
test(... |
// You should implement your task here.
module.exports = function towelSort(matrix = []) {
if (matrix.length === 0) {
return [];
}
let arr = matrix.reduce((acc, el, idx) => {
if (idx % 2 == 0) {
acc.push(...el);
return acc;
} else {
acc.push(...el... |
const express = require("express");
const routes = express.Router();
const multer = require("../app/middlewares/multer");
const ChefController = require("../app/controllers/ChefController");
const { onlyUsers } = require("../app/middlewares/session");
const ChefValidator = require("../app/validators/chef");
routes
... |
'use strict';
const bcrypt = require( 'bcrypt' );
const encryptPassword = async function ( user ) {
if ( user.changed( 'password' ) ) {
const salt = await bcrypt.genSalt( 10 );
user.password = await bcrypt.hash( user.password.toString(), salt );
}
};
module.exports = (sequelize, DataTypes) => {
const... |
// TODO: Write code to define and export the Intern class. HINT: This class should inherit from Employee.
const Employee = require('./Employee');
class Intern extends Employee {
constructor(id, name, email, school) {
super(id, name, email);
this.school = school;
}
getSchool() {
return this.school;
}
get... |
require.config({
paths: {
'oidc': '//cdnjs.cloudflare.com/ajax/libs/oidc-client/1.10.0/oidc-client.min',
'universal-cookie': '//unpkg.com/universal-cookie@3/umd/universalCookie.min'
},
shim: {
'oidc': {
exports: 'Oidc',
},
'universal-cookie': {
... |
const formatOptionsMap = {
startTime: '-ss',
stopTime: '-to',
};
const videoOptionsMap = {
vcodec: '-c:v',
preset: '-preset',
bitrate: '-b:v',
minrate: '-minrate',
maxrate: '-maxrate',
bufsize: '-bufsize',
gopsize: '-g',
pixelFormat: '-pix_fmt',
frameRate: '-r',
tune: '-tune',
profile: '-prof... |
'use strict';
const { setCreatorFields, sanitizeEntity } = require('strapi-utils');
const _ = require("lodash");
const { pick } = require('lodash/fp');
const { getService } = require('../utils');
const { validateCreateShopInput, validateUpdateShopInput } = require('../validation/shops');
const { formatShop } = require... |
"use strict";
const gulp = require("gulp");
const gutil = require("gulp-util");
const open = require("gulp-open");
const rimraf = require("rimraf");
const webpack = require("webpack");
const WebpackDevServer = require("webpack-dev-server");
gulp.task("clean", cb => {
rimraf("./public/assets", cb);
});
gulp.task(... |
/**
* @license Highstock JS v7.2.0 (2019-09-03)
*
* Data grouping module
*
* (c) 2010-2019 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;... |
$(document).ready(function(){
//VARIABLES FOR INPUTS START
inputSize = $("input[type=text][name=pizzasizeinput]");
inputTopping = $("input[type=text][name=pizzatoppinginput]");
inputCrust= $("input[type=text][name=pizzacrustinput]");
inputDeliver = $("input#delivery[name=delivery]");
inputNumber = $("input[type=nu... |
import LumaCharacter from './character/luma_character.fbx'
import LumaIdle from './character/luma_idle.fbx'
import LumaRun from './character/luma_run.fbx'
import LumaWalk from './character/luma_walk.fbx'
import SkaljordCharacter from './character/skaljord_character.fbx'
import SkaljordIdle from './character/skaljord_id... |
'use strict'
const RequestClient = require('./RequestClient')
const _getName = (id) => {
return id.split('-').map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(' ')
}
module.exports = class Provider extends RequestClient {
constructor (uppy, opts) {
super(uppy, opts)
this.provider = opts.provider
... |
'use strict';
// Copyright 2015 Mateusz Stępniak, zenedith@wp.pl
// etagify (https://github.com/lloyd/connect-etagify)
var assert = require('assert-plus');
var crypto = require('crypto');
var etag = function etag(options) {
assert.optionalObject(options, 'options');
// path to etag mapping
var etags = {};
... |
export default function watchForChange(
targetNode = null,
callback = (mutationsList, observer) => { console.log(mutationsList, observer) },
config = { attributes: true, childList: true, subtree: true },
) {
if (targetNode !== null) {
if (!targetNode.classList.contains("observing")) {
const observer = new ... |
var input = document.querySelector("#phone");
window.intlTelInput(input, {
onlyCountries: ["al", "ad", "at", "by", "be", "ba", "bg", "hr", "cz", "dk",
"ee", "fo", "fi", "fr", "de", "gi", "gr", "va", "hu", "is", "ie", "it", "lv",
"li", "lt", "lu", "mk", "mt", "md", "mc", "me", "nl", "no", "pl", "pt", "ro",
"ru",... |
var styleCache = {};
var styleFunction = function(feature) {
// 2012_Earthquakes_Mag5.kml stores the magnitude of each earthquake in a
// standards-violating <magnitude> tag in each Placemark. We extract it from
// the Placemark's name instead.
var name = feature.get('name');
var magnitude = parseFloat(name.... |
const request = require('request-promise-native');
const config = require('config');
const fs = require('fs');
const editor = require('editor');
const { promisify } = require('util');
const writeFile = promisify(fs.writeFile);
const readFile = promisify(fs.readFile);
const unlink = promisify(fs.unlink);
exports.desc... |
import PropTypes from "prop-types";
import { forwardRef } from "react";
// material-ui
import { useTheme } from "@mui/material/styles";
import { Card, CardContent, CardHeader, Divider, Typography } from "@mui/material";
// constant
const headerSX = {
"& .MuiCardHeader-action": { mr: 0 }
};
// ===================... |
import React from 'react'
import { Row, Col, Input, Button } from 'antd'
import { PlusOutlined } from '@ant-design/icons';
import SubscriptionCard from './registration/SubscriptionCard';
import { SUBSCRIPTION_ERROR_OBJECT } from '../../../common/utils';
import SuccessfulRegistration from './registration/SuccessfulRegis... |
var index = { };
var index$1 = /*#__PURE__*/Object.freeze({
default: index
});
var index$2 = { };
var index$3 = /*#__PURE__*/Object.freeze({
default: index$2
});
let arr = [ ];
for ( let i = 0; i < 256; i++ )
{ arr[i] = ( i < 16 ? '0' : '' ) + ( i ).toString( 16 ); }
let UUID = ( ) =>
{
let a = Math.random( )... |
let testCaseId = '';
const setTestCaseId = caseId => {
testCaseId = caseId;
};
const getTestCaseId = () => {
return testCaseId.toString();
};
function merge(intoObject, fromObject) {
return Object.assign({}, intoObject, fromObject);
}
module.exports = {
setTestCaseId,
getTestCaseId,
merge
}; |
//
// PasswordScreen.js
// CosyncJWT
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache L... |
import Parse from '../../../parse';
import parseUtils from '../../../../utils/parseUtils';
import { RoleName } from '../../../../Constants';
import Organization from '../../resource/Organization';
// 训练人数统计
// const DailyParticipationRateSchema = new Schema({
// date: { type: Date, required: true }, ... |
import React, { Component } from 'react';
import CommentBox from './comment_box'
import CommentList from './comment_list';
export default class App extends Component {
render() {
return (
<div>
<CommentBox />
<CommentList />
</div>
);
}
} |
module.exports = serializeElement
function serializeElement(elem) {
var strings = []
var tagname = elem.tagName
if (elem.namespaceURI === "http://www.w3.org/1999/xhtml") {
tagname = tagname.toLowerCase()
}
strings.push("<" + tagname +
properties(elem) + datasetify(elem) + ">")
... |
'use strict';
var completedFactions;
$(function () {
if (!localStorage['completedFactions']) {
localStorage['completedFactions'] = "[]";
}
completedFactions = JSON.parse(localStorage['completedFactions']);
$('.order-list').on('click', 'button', function () {
completedFactions.push($(this).data('factio... |
import { Router } from 'express';
import ShoppingCartController from '../controllers/shoppingCart';
import validate, { validateUpdateCart } from '../middlewares/validate';
import findProduct from '../middlewares/findProduct';
import { findItem } from '../middlewares/findCart';
import findAttributes from '../middlewares... |
import {createStore} from 'redux';
import reducer from './reducer'
const store=createStore(reducer);
export default store |
var callbackArguments = [];
var argument1 = true;
var base_0 = [714,893,25,59,705,82,59,126,618]
var r_0= undefined
try {
r_0 = base_0.reduceRight(argument1)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefined) return a;
var name = a.constructor.name;
if... |
const babylon = require('babylon');
const t = require('@babel/types');
const traverse = require('@babel/traverse')['default'];
const generate = require('@babel/generator')['default'];
const {
tagMap
} = require('../common/cml-map.js')
const utils = require('./utils');
exports.startCallback = function(matchStart, typ... |
"use strict";
var core_1 = require('@angular/core');
var AppHeaderComponent = (function () {
function AppHeaderComponent() {
this.signOut = new core_1.EventEmitter(false);
}
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], AppHeaderComponent.prototype, "authent... |
export { default } from 'explorviz-frontend-extension-comparison/models/merged-landscape'; |
//business logic
function Contact(first, last) {
this.firstName = first;
this.lastName = last;
this.addresses = [];
}
function Address(street, city, state) {
this.street = street;
this.city = city;
this.state = state;
}
Contact.prototype.fullName = function() {
return this.firstName + " " + this.lastNam... |
'use strict';
module.exports = require('./clubhouse_auth.js'); |
module.exports = {
entry: [
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{
exclude: /node_modules/,
loader: 'babel',
query: {
... |
const debug = require("debug")("evolvus-user:db:user");
const mongoose = require("mongoose");
const ObjectId = require('mongodb')
.ObjectID;
const userSchema = require("./userSchema");
const bcrypt = require('bcryptjs');
// Creates a userCollection collection in the database
var userCollection = mongoose.model("use... |
/*! formiojs v4.10.0-rc.2 | https://unpkg.com/formiojs@4.10.0-rc.2/LICENSE.txt */
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017 Joachim Wester
* MIT license
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released u... |
import React from 'react';
const NearByIcon = () => (
<svg
version="1.0"
xmlns="http://www.w3.org/2000/svg"
width="512.000000pt"
height="512.000000pt"
viewBox="0 0 512.000000 512.000000"
preserveAspectRatio="xMidYMid meet"
>
<g
transform="translate(0.000000,512.000000) scale(0.100... |
'use strict';
System.register(['net', 'buffer', 'stream'], function (_export, _context) {
var net, Buffer, stream, _createClass, port, socket, UpperCaseTransformStream, BufferStream;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a c... |
module.exports = /`x-else-if` used on element <div> without binding value/ |
const { Listener } = require('@sapphire/framework');
class UserEvent extends Listener {
async run(message) {
const prefix = this.container.client.options.defaultPrefix;
return message.channel.send(prefix ? `My prefix in this guild is: \`${prefix}\`` : 'You do not need a prefix in DMs.');
}
}
exports.UserEvent =... |
exports.auth = require('./wsfed');
exports.metadata = require('./metadata');
exports.federationServerService = {};
exports.federationServerService.wsdl = require('./federationServerService').wsdl;
exports.federationServerService.thumbprint = require('./federationServerService').thumbprint;
exports.sendError = requi... |
import * as vec2 from "./glmatrix/vec2.js";
import Cartesian3 from "../viewer/cesium/Core/Cartesian3.js";
import Transforms from "../viewer/cesium/Core/Transforms.js";
const b3dm = 0x6D643362;
const gltf = 0x46546c67;
export class ThreeDTileLoader {
constructor(params) {
this.url = params.url;
th... |
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App.js'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
) |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{YuTi:function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:functi... |
process.env.NODE_ENV = 'test';
var chai = require('chai');
var chatHttp = require('chai-http');
var index = require('../dynamicBusNodeServer/routes/index');
var server = require('../dynamicBusNodeServer/bin/www');
var should = chai.should();
chai.use(chatHttp);
describe('Bus Data', () => {
describe('POST bus data'... |
sap.ui.define([
'sap/m/Button',
'sap/m/Dialog',
'sap/m/Label',
'sap/m/MessageToast',
'sap/m/Text',
'sap/m/TextArea',
'sap/ui/core/mvc/Controller',
'sap/ui/layout/HorizontalLayout',
'sap/ui/layout/VerticalLayout',
'sap/m/ButtonType'
], function(Button, Dialog, Label, MessageToast, Text, TextArea, Co... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
const { readdirSync } = require('fs')
const { resolve, join } = require('path')
const consola = require('consola')
const chalk = require('chalk')
const { getTags, detectTags } = require('./tags')
const logger = consola.withScope('@nuxtjs/amp')
const AMPBoilerplate = '<style amp-boilerplate>body{-webkit-animation:-amp... |
const { archivoTabla } = require('./helpers/multiplicar');
const argv = require('./config/yargs');
require('colors')
console.clear();
archivoTabla(argv.b, argv.l, argv.h)
.then(nombreArchivoTabla => console.log(nombreArchivoTabla.rainbow, 'Se creo Correctamente.'.rainbow))
.catch(err => console.error(err)); |
const axios = require('axios');
const config = require('../config/config');
const format = require('../utils/format');
const resLog = require('../utils/logger')('resLogger');
const errLog = require('../utils/logger')('errLogger');
let registration = async ctx => {
let body = ctx.request.body;
let request_body =... |
/**
* Send Google Analytics data to InfluxDB
* Copyright (c) 2016, Steffen Konerow
* Released under the MIT License
* Inspired by gaToGraphite by Peter Hedenskog
*/
'use strict';
var influx = require('influx')
function InfluxSender(host, port, user, pass, database) {
this.client = influx({
host : host... |
// Copyright 2014 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.
/**
* @unrestricted
*/
UI.ResizerWidget = class extends Common.Object {
constructor() {
super();
this._isEnabled = true;
this._elements = ... |
/** layuiAdmin.std-v1.0.0 LPPL License By http://www.layui.com/admin/ */
layui.define(function(e){
var i=(layui.$,layui.layer,layui.laytpl,layui.setter,layui.view,layui.admin);
i.events.logout=function(){
i.req({
//HLTODO 退出的接口
url:"/houdaexam/rest/user/logout",
type:"get",
data:{},
done:fun... |
const db = require('../db/index.js');
test('database should have 100 items on it', done => {
function cb(data) {
expect(data.length).toBe(100);
done();
}
db.productDbData(cb);
}); |
import {Parser, Cell, IronSymbol} from '../iron.js';
import Jsonfs from '../browser-runtime/utils/jsonfs.js';
import Runtime from '../browser-runtime/runtime.js';
import {readFileSync} from 'fs';
import {dirname, basename, join, extname} from 'path';
const _begin = new IronSymbol ('_begin');
const _sync = new IronSy... |
/**
* CLDR JavaScript Library v0.5.0
* http://jquery.com/
*
* Copyright 2013 Rafael Xavier de Souza
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2017-12-16T21:14Z
*/
/*!
* CLDR JavaScript Library v0.5.0 2017-12-16T21:14Z MIT license © Rafael Xavier
* http://git.io/h4lmVg
*/
(functi... |
//FUNÇÃO JAVASCRIPT GLOBAL DO JASMINE QUE É EXECUTADA DEPOIS DE CADA TESTE
//PODE SER EXECUTADA DEPOIS DE CADA TESTE, SERVE PARA INICIALIZAR O REINICIAR UM STATUS
//PODE TAMBEM EXECUTAR UMA AÇÃO DEPOIS DE CADA TESTE
describe('Teste do beforeEach', function() {
var contador = 0;
beforeEach(function() {
... |
import express from 'express';
import bodyParser from 'body-parser';
import sessionValidation from '../../middleware/sessionValidation';
import permissionMw from '../../middleware/permission';
import validate from '../../middleware/validate';
import ReviewController from '../../controllers/ReviewController';
import Aut... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { InputNumber, message } from 'antd';
// 模式说明:
// 组件内部使用setState后,通过form的事件onChange,改变form表单值
// 调用
// form.getFieldDecorator('', {})(
// <ComboInput />
// )
export default class RangeInput extends Component {
constructor(props) ... |
import React from 'react';
import { shallow } from 'enzyme';
import Checkbox from './Checkbox';
describe('Checkbox', () => {
const requiredProps = {
id: 'still-in-role',
label: 'Still in role'
};
it('should render with simple props', () => {
const wrapper = shallow(<Checkbox {...requiredProps} />);... |
'use strict';
var etherUnits = require(__lib + "etherUnits.js")
var BigNumber = require('bignumber.js');
var RLP = require('rlp');
/*
Filter an array of TX
*/
function filterTX(txs, value) {
return txs.map(function(tx){
return [tx.hash, tx.blockNumber, tx.from, tx.to, etherUnits.toEther(new BigNumber(tx.value)... |
import config from "../../../config";
import { activationWrapper, getPermissions, hasSomePermission } from '../helpers';
import { createAuthenticator } from "./authenticator";
function allowSomePermissionsMiddlewareFactory(allowedPermissions) {
const authenticator = createAuthenticator();
return function allow... |
'use stricts';
/**
* Just a couple of testing tools for the Contacts app.
*
* Right now, it just allows you to insert a large number of fake contacts
* into the database, and then clear the database.
*/
var ContactsTest = {
get loadButton() {
delete this.loadButton;
return this.loadButton = document.ge... |
import Vuex from 'vuex'
import { default as modules } from './modules'
Vue.use(Vuex)
export default new Vuex.Store({
modules: modules
}) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.