text
stringlengths
2
1.04M
import React from 'react'; import { Link } from 'react-router-dom'; import MasterclassItem from './MasterclassItem'; const TeacherMasterclassList = ({ masterclasses, handleDeleteCourse }) => { const masterclassElement = masterclasses.map((masterclass) => ( <MasterclassItem courseId={masterclass._id} ...
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])...
// import java.util.concurrent.TimeUnit; // import org.openqa.selenium.support.ui.WebDriverWait; var webdriver = require('selenium-webdriver'), By = webdriver.By, until = webdriver.until; var chrome = require('selenium-webdriver/chrome'); var path = require('chromedriver').path; var service = new chrome.Ser...
/*! Copyright (c) 2016, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of co...
import { grayColor, roseColor, primaryColor, infoColor, successColor, warningColor, dangerColor, } from "assets/jss/material-kit-react.js"; const buttonStyle = { button: { minHeight: "auto", minWidth: "auto", backgroundColor: grayColor, color: "#FFFFFF", boxShadow: "0 2px 2px ...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.createTable('clinics', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER, }, nome: { type: Sequelize.STRING, }, ...
// @flow const constants = require('./constants'); const { DATE } = constants; module.exports = [ { id: 'dm-1', createdAt: new Date(DATE), name: null, threadLastActive: new Date(DATE), }, { id: 'dm-2', createdAt: new Date(DATE - 1), name: null, threadLastActive: new Date(DATE - 1)...
const f = function /*foo*/ () {}; const g = async function /*foo*/ () {}; const h = async /*foo*/ function () {}; const i = function* /*foo*/ () {}; const j = function/*foo*/* () {}; const k = async function* /*foo*/ () {}; const l = function (/*foo*/) {};
// Copyright ยฉ 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by an Apache v2 // license that can be found in the LICENSE-APACHE-V2 file. // Run tests silently to avoid spew from tests failing on purpose. require("../src/Config").getInstance().setSilentConsole(true); var Comma...
const { content_parser, nomention_parser, user_from_text, user_from_info } = require("./parsers"); module.exports = { dm: async (m, a, i, byevent = false) => { let user = byevent ? m.user : user_from_info(m, a, i.user); console.log(user); if (!user) return "unknow_user"; return await user .send...
var IBSMSG = IBSMSG || {}; IBSMSG.Ko = { 'Lang': { 'Alert': { 'CanReloadStart': '', 'CanReloadChanges': '๋ชจ๋“  ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์„œ๋ฒ„์— ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค.', 'CanCancelChanges': '๋ชจ๋“  ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ทจ์†Œํ•ฉ๋‹ˆ๋‹ค.', 'And': ' and ', 'CanReloadSelect': '๋ชจ๋“  ์„ ํƒ์„ ์ง€์›๋‹ˆ๋‹ค.', 'CanReloadEnd': '! ๊ณ„์† ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?', 'ErrTimeout': '๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค์šด...
import Ember from 'ember'; export default Ember.Controller.extend({ queryParams: ['sortBy', 'sortAscending'], sortAscending: true, // // We'll use sortBy to hold the name of the field we want to sort by. // sortBy: 'first-name', // // The setSortBy function receives the name of the function and // tog...
module.exports = { "env": { "node": true, "jasmine": true }, "extends": "eslint:recommended", "rules": { "no-console": 0, // disallow use of console (off by default in the node environment) "linebreak-style": [ "error", "unix" ], ...
/** * Locale * Class * 1.0.0 */ 'use strict'; const _ = require('lodash'); class Locale { constructor(config) { if (config) { this.set(config); } } set(config) { let prop; let i; for (i in config) { prop = config[i]; if (_.isFunction(prop)) { this[i] = prop; ...
import { createStore, applyMiddleware, compose } from 'redux'; import thunkMiddleware from 'redux-thunk'; import callAPIMiddleware from './callAPIMiddleware'; import rootReducer from './Reducers'; export default function storeCreator() { const middleWareTools = compose( applyMiddleware(thunkMiddleware, c...
// Include the cluster module const cluster = require('cluster'); // Code to run if we're in the master process if (cluster.isMaster) { // Count the machine's CPUs const cpuCount = require('os').cpus().length; // Create a worker for each CPU for (let i = 0; i < cpuCount; i += 1) { cluster.for...
import React, { useState, useEffect } from 'react' import axios from 'axios' import { Link } from 'react-router-dom' import { Form, Button, } from 'react-bootstrap' import { useDispatch, useSelector } from 'react-redux' import ErrorMessage from '../components/ErrorMessage' import Loader from '../components/Loader' impo...
jQuery( document ).ready(function( $ ) { "use strict" /*-----------------------------------------------------------------------------------*/ /* LOADER /*-----------------------------------------------------------------------------------*/ $("#loader").delay(1000).fadeOut("slow"); /*-----------------------------------...
class Input { constructor(game) { super(game, x, y, key, frame); this.game.physics.enable( [ this ], Phaser.Physics.ARCADE); this.body.collideWorldBounds = true; } } export default Input;
๏ปฟUE.registerUI('insertalert', function (editor, uiName) { var dialog = new UE.ui.Dialog({ iframeUrl: '/libs//ueditor/dialogs/insertalert/insertalert.html', editor: editor, name: uiName, title: "ๆ็คบๆก†" }); var btn = new UE.ui.Button({ name: 'my_' + uiName, title...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[34],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/referral/referral.vue?vue&type=script&lang=js&": /*!*********************************************************************************...
AOS.init({ duration: 800, easing: 'slide' }); (function ($) { "use strict"; $(window).stellar({ responsive: true, parallaxBackgrounds: true, parallaxElements: true, horizontalScrolling: false, hideDistantElements: false, scrollProperty: 'scroll' });...
import React, { useCallback, useState } from "react" import { useWindowScroll } from "react-use" import { css } from "@emotion/core" import { useTheme } from "emotion-theming" import { background, navigation, line, cirlce, content } from "./style" const Background = ({ children, className, slopedBackgroundColor...
const { Comment } = require('../models'); const commentdata = [ { comment_text: 'Nunc rhoncus dui vel sem.', user_id: 6, book_id: 1 }, { comment_text: 'Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est.', user_id: 6, book_id: 8 }, { comm...
String.prototype.trimLeft = function(charlist) { if (charlist === undefined) charlist = "\s"; return this.replace(new RegExp("^[" + charlist + "]+"), ""); }; String.prototype.trimRight = function(charlist) { if (charlist === undefined) charlist = "\s"; return this.replace(new RegExp("[" + charlist + "]+$"), "...
import React from 'react' import { Link, graphql } from 'gatsby' import _get from 'lodash/get' import _sortBy from 'lodash/sortBy' import Layout from '../components/Layout' import SEO from '../components/seo' import { rhythm } from '../utils/typography' class GearIndex extends React.Component { render() { ...
'use strict'; const opentelemetry = require('@opentelemetry/core'); const { NodeTracer } = require('@opentelemetry/node'); const { SimpleSpanProcessor } = require('@opentelemetry/tracing'); const { JaegerExporter } = require('@opentelemetry/exporter-jaeger'); const { ZipkinExporter } = require('@opentelemetry/exporter...
// Examples of docker engine // dockerJS = require('mydockerjs').docker, // UNCOMMENT WHAT YOU WANT TO USE const dockerJS = require('../lib/docker.js'); const utils = require('./utils'); /* function rmAll() { console.log('RM ALL EXAMPLE'); dockerJS.rmAll((err, data) => { utils.print(err, data); }); } */ // ...
'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); gulp.task('sass', function () { return gulp.src('./sass/**/*.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('./public/css')); }); gulp.task('sassAdmin', function () { return gulp.src('./sassAdmin/**/*.scss') ...
const result = {} for (var key in process.binding('natives')) { if (/^_|\/|^sys$/.test(key)) continue try { result[key] = Object.keys(require(key)) } catch (error) { // ignore } } console.log(JSON.stringify(result)) // eslint-disable-line no-console
const router = require('express').Router(); const path = require('path'); //router that serves the stats.html page router.get('/', async (req, res) => { try { res.sendFile(path.join(__dirname, '../public/stats.html')); console.log("Server has loaded the stats page!!\n\n"); }catch(err) ...
const {resolve} = require('path'); const ClosureCompilerPlugin = require('webpack-closure-compiler'); module.exports = { entry: resolve(__dirname, 'src', 'main.js'), output: { filename: 'bundle.js', path: resolve(__dirname, 'public', 'static', 'js'), }, module: { rules: [ { test: /\...
import Page from 'components/Page'; import React, { useRef } from 'react'; import ReactDOM from 'react-dom'; import ReactToPrint from 'react-to-print'; import Axios from 'axios' import { Button, Card, CardBody, CardFooter, CardHeader, CardDeck, CardTitle, CardText, Col, Collapse, Form, FormGroup, Input, I...
const recorder = require("node-record-lpcm16"); const speech = require("@google-cloud/speech"); const useError = require("./useError"); const { handleError } = useError(); const useStt = (config, commandCallback) => { const { sampleRateHertz } = config; const client = new speech.SpeechClient(); const request = ...
const get = require('../ops/get'); async function getDocument(identifier) { if (!this.state.isReady) { await this.isReady(); } return (await get.call(this, identifier)); } module.exports = getDocument;
import Service from '@ember/service'; import {set} from '@ember/object'; export default Service.extend({ init() { this._super(...arguments); }, previousSlide(slider){ let lastIndex = slider.length - 1; let newIndex; slider.forEach((slide, index) => { if(slide.active) { if(index ==...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */
import React, { Component } from 'react' import axios from 'axios'; import { Link } from "react-router-dom"; import { baseUrl } from '../../config'; import "react-tabulator/lib/styles.css"; // default theme import "react-tabulator/css/bootstrap/tabulator_bootstrap.min.css"; // use Theme(s) <<<<<<< HEAD <<<<<<< HEAD im...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var _24 = { "elem": "svg", "attrs": { "xmlns": "http:/...
// 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...
import Vue from 'vue' import App from './App.vue' import MuseUI from 'muse-ui' import 'muse-ui/dist/muse-ui.css' import 'muse-ui/dist/theme-light.css' Vue.use(MuseUI) Vue.config.productionTip = false new Vue({ render: h => h(App), }).$mount('#app')
const webpack = require('webpack'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const slsw = require('serverless-webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const path = require('path'); const env = process.env.NODE_ENV === 'production' ? 'production' : 'development'; co...
'use strict' module.exports = app => { const { router, controller } = app const { get, post, put, delete: dele } = router const { user, goods, order, address, school, category, notice, chat, cart, begging, common, } = controller // ็”จๆˆทๆจกๅ— post('/api/user/sign_in', user.signIn) post('/api/user/sign...
const test = require('ava'); const { promisify } = require('util'); const exec = promisify(require('child_process').exec); test.afterEach(() => exec('npm run clean')); test('build for dev', async t => { const output = await exec('npm run build:dev'); t.true(output.stdout.includes('Build Mode: Development')); t...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["vue-awesome-grid"] = factory(); else ro...
import React from 'react' import {Link} from 'gatsby' import usePosts from '../hooks/use-posts' import Layout from '../components/layout' import PostPreview from '../components/post-preview' import Hero from '../components/hero' import Insta from '../components/insta' export default () => { const posts = usePosts()...
/** * @license b-here v1.0.0 * (c) 2020 Luca Zampetti <lzampetti@gmail.com> * License: MIT */ (function(f){typeof define==='function'&&define.amd?define(f):f();}((function(){'use strict';var controllers = {}; function resize(src, blob, size) { if (!self.createImageBitmap || !self.OffscreenCanvas) { return r...
var _time_zone_8cpp = [ [ "Transition", "d3/de8/structadbase_1_1detail_1_1_transition.html", "d3/de8/structadbase_1_1detail_1_1_transition" ], [ "Comp", "de/d41/structadbase_1_1detail_1_1_comp.html", "de/d41/structadbase_1_1detail_1_1_comp" ], [ "Localtime", "d0/d8c/structadbase_1_1detail_1_1_localtime.html...
/*! For license information please see 6.7021f477e8309cd4ecc1.manager.bundle.js.LICENSE.txt */
import { Button, Form, Input, Modal, Select } from 'antd'; import { connect } from 'dva'; import React, { PureComponent } from 'react'; import AddGroup from '../../components/AddOrEditGroup'; import { getCodeBranchs } from '../../services/createApp'; import { getGitlabInfo } from '../../services/team'; import globalUti...
import React, { useRef, useState } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { useIntl } from 'react-intl'; import { Typography } from '@strapi/design-system/Typography'; import { Box } from '@strapi/design-system/Box'; import { Stack } from '@strapi/design-system/...
var express = require('express'); var router = express.Router(); require('dotenv').config(); var ManagementClient = require('auth0').ManagementClient; var management = new ManagementClient({ domain: 'upworld.auth0.com', clientId: process.env.CLIENT_ID, clientSecret: process.env.CLIENT_SECRET }); /* create user...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.styles = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _int...
import actionTypes from 'ringcentral-integration/modules/AvailabilityMonitor/actionTypes'; import * as mock from 'ringcentral-integration/integration-test/mock'; import prefix from 'ringcentral-widgets-demo/dev-server/prefix'; import LimitedRes from './data/Limi./data/LimitedResponse'; import deviceBody from './data/d...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import './home.css'; import '../../service/movie-box-api'; import { getGenres, searchMovies } from '../../service/movie-box-api'; import MovieTile from '../movie-tile/movie-tile'; class Home exte...
var searchData= [ ['factswidget_0',['factsWidget',['../d5/d61/classDashboard_1_1Pages_1_1Globals.html#a2d9efe577fa91c68b59cb891a7f1275f',1,'Dashboard::Pages::Globals']]], ['feelslike_1',['feelslike',['../d6/d53/classDashboard_1_1Pages_1_1WeatherForecast_1_1Current.html#ab39eb7ece6fa2d11c49a42a836eca801',1,'Dashboar...
const chai = require('chai'); const chaiHttp = require('chai-http'); const should = chai.should(); const server = require('../../app'); chai.use(chaiHttp); let token, movieId; describe('/api/movies tests', () => { before((done) => { chai.request(server) .post('/authentication') .se...
exports.up = async function(knex) { let hasTable = await knex.schema.hasTable('work') return !hasTable ? knex.schema.createTable('work', (table) => { table.increments(); table.string('company_name'); table.string('position'); table.date('start_period'); table.date('end_pe...
/** * this is TestListensMethod. */ export default class TestListensMethod { /** * this is method1. * @listens {TestListensMethodEvent1} listen event because foo. * @listens {TestListensMethodEvent2} listen event because bar. */ method1(){} } /** * this is TestListensMethodEvent1. */ export class T...
import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { connect } from 'react-redux' import * as actions from '../../actions'; class Signin extends Component { handleFormSubmit({email, password}) { // Need to do something this.props.signinUser({ email, password }); ...
include.module( 'tool-measure-esri3d', [ 'tool-measure', 'esri3d', 'types-esri3d', 'util-esri3d' ], function () { "use strict"; var E = SMK.TYPE.Esri3d SMK.TYPE.MeasureTool.prototype.afterInitialize.push( function ( smk ) { var self = this this.changedActive( function () { if ...
// ThemeDefault.js 'use strict'; import {PixelRatio} from 'react-native'; //primary color const primaryColor = '#337ab7'; //secondary color const secondaryColor = '#5bc0de'; //default color const defaultColor = '#fff'; //default text color const defaultTextColor = '#333'; //pixel size const pixelSize = (function() ...
Ext.define('Admin.view.payment.PaymentModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.payment-payment' });
/** * @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 { __assign, __extends } from 'tslib'; import * as tslib_1 from 'tslib'; import { A11yModule, FocusMonitor } fro...
const express = require('express'); const mongoose = require('mongoose'); const route = express.Router(); const { changeUserProfile } = require('../Controllers/UserController'); route.post('/', async (req, res) => { changeUserProfile(req, res); }); module.exports = route;
var express = require('express'); var bodyParser = require('body-parser') var app = express(); var url = bodyParser.urlencoded({ extended: false }) const mysql = require('mysql'); const crypto = require('crypto'); const secret = 'abcdefg'; const fileUpload = require('express-fileupload'); app.use(fileUpload()); // i...
const express=require("express"); const router=express.Router(); const fileUpload=require("express-fileupload"); router.post("/sell",(req,res)=>{ if(req.files==null){ return res.status(400).json({msg:"NO files found"}); } const file=req.files.file; file.mv(`$(_dirname)/random-project/public/upl...
(function() { 'use strict'; angular .module('monitorApp') .factory('Sessions', Sessions); Sessions.$inject = ['$resource']; function Sessions ($resource) { return $resource('api/account/sessions/:series', {}, { 'getAll': { method: 'GET', isArray: true} }); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Returns a random value between [-1,1) */ function randomClamped() { return Math.random() * 2 - 1; } exports.randomClamped = randomClamped;
// @flow import test from 'ava'; import inflate from '../src/inflate'; test('inflates a deflated object', (t) => { const deflatedResponse = { data: [ { __typename: 'foo', id: 1, name: 'bar' }, { __typename: 'foo', id: 1 } ] }; const inflat...
import { module, test } from 'qunit'; import { setupApplicationTest } from 'travis/tests/helpers/setup-application-test'; import jobPage from 'travis/tests/pages/job'; import topPage from 'travis/tests/pages/top'; import signInUser from 'travis/tests/helpers/sign-in-user'; import { setupMirage } from 'ember-cli-mirage/...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 a...
// initial state const initialState = { books: [0,1,2,3], cover: "https://s3.amazonaws.com/titlepages.leanpub.com/reactjsforthevisuallearner/hero?1496374274", title: "React.js for the Visual Learner", author: "Shamim Khan", link: "https://github.com/khanshamim" } //define reducers with an InitialSt...
// Copyright 2012 Software Freedom Conservancy // Copyright 2010 WebDriver committers // // 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...
const { Model, DataTypes, Op } = require('sequelize') const Note = require('./note') const { sequelize } = require('../util/db') class User extends Model { async number_of_notes() { return (await this.getNotes()).length } static async with_notes(limit){ return await User.findAll({ attributes: { ...
// Copyright (c) 2019 Chris DeMartini // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publis...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import '@audius/stems/dist/stems.css' import '@audius/stems/dist/avenir.css' ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document....
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@material-ui/core/Typography'; import ProfileImage from '../ProfileImage'; co...
import * as Yup from "yup"; const getAddressSchema = () => Yup.object().shape({ lineOne: Yup.string() .required("Please enter a valid address.") .test("len", "Address must be between 8-128 characters.", val => val ? val.length >= 8 && val.length <= 128 : "" ), city: Yup.string() ...
// CS 341 Anna Yrjasnon var express = require('express'); var dbms = require('./dbms.js'); var router = express(); router.use(express.json()); router.post('/', function(req, res, next) { ORDERID = 66; MONTH = "JAN"; DAY = 20; QUANTITY = req.body.QUANTITY; TOPPING = req.body.TOPPING; NOTES = req...
'use strict'; var Message = require('../message'); var inherits = require('util').inherits; var bitcore = require('bitcore-lib-zcoin'); var BufferUtil = bitcore.util.buffer; var BloomFilter = require('../../bloomfilter'); var $ = bitcore.util.preconditions; var _ = bitcore.deps._; /** * Request peer to send inv mess...
'use strict'; var chai = require('chai'); var Net = require('net'); var Socks5Client = require('socks5-client'); /* jshint unused: false */ var should = chai.should(); var expect = chai.expect; var sinon = require('sinon'); var fs = require('fs'); var thoughtcore = require('@thoughtnetwork/thoughtcore-lib'); var _ =...
import styled from "styled-components"; import { variantMatch } from "../../lib/helpers"; const variantSize = (size) => size ? size === "sm" ? "0.67rem" : size === "md" ? "0.775rem" : size === "lg" ? "1rem" : size === "xl" ? "1.68rem" : "" : "0.775rem"; const ...
/* jQWidgets v4.3.0 (2016-Oct) Copyright (c) 2011-2016 jQWidgets. License: http://jqwidgets.com/license/ */
function loadKeyboards() { var commonPrefix = "/resources"; if(location.protocol == "file:") { // Note: won't actually work, as it'll be blocked by CORS / same-origin policy when // KeymanWeb tries to load the stub via the file: protocol. // // Both Firefox and Chrome don't like that it's not data...
var util = require('../util'); exports.encode = function encode ( packet, value ) { var data = new Buffer(packet.raw); data.writeUInt16BE(data.length + 8 - 20, 2); return util.xor(util.crc32(data), MAGIC); } exports.decode = function decode ( packet, value ) { if ( value.length != 4 ) { return new Error...
'use strict'; module.exports = { root: true, parserOptions: { ecmaVersion: 2017 }, extends: 'eslint-config-bbva', env: { node: true }, rules: { 'callback-return': 0 }, overrides: [{ files: [ 'tests/**/*.js' ], env: { mocha: true }, rules: { 'prefer-arrow-callback': 0, 'no-magic-num...
// Copyright (c) 2020, EngLandGR and contributors // For license information, please see license.txt frappe.ui.form.on('Site', { // refresh: function(frm) { // } });
// @flow export const LOGIN = 'login' export const ROOT = 'root' export const EDGE = 'edge' export const ONBOARDING = 'onboarding' export const CHANGE_PASSWORD = 'changePassword' export const CHANGE_PIN = 'changePin' export const OTP_SETUP = 'otpSetup' export const RECOVER_PASSWORD = 'passwordRecovery' export const EX...
const express = require('express'); const bodyParser = require('body-parser'); const cors = require('cors'); const morgan = require('morgan'); const apiRoutes = require('./router/index'); const bookmarkRoutes = require('./router/bookmarks'); const songRoutes = require('./router/songs'); const historyRoutes = require('....
/* * Copyright 2021 WPPConnect Team * * 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...
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql } from "gatsby" import Header from "./header" import "./layout.css" cons...
import { BaseWrappedException } from './base_wrapped_exception'; import { ExceptionHandler } from './exception_handler'; export { ExceptionHandler } from './exception_handler'; export class BaseException extends Error { constructor(message = "--") { super(message); this.message = message; th...
// Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved. 'use strict'; var uuid = require('node-uuid'); describe(require('path').basename(__filename), function() { var WsmanConfigJob; var wsmanConfigJob; var wsmanTool; var configuration; var sandbox = sinon.sandbox.create(); var...
'use strict'; const program = require('commander'); const rootPrefix = '../../..', logger = require(rootPrefix + '/lib/logger/customConsoleLogger'), OriginGethSetup = require(rootPrefix + '/lib/setup/originChain/Geth'); program.option('--originChainId <originChainId>', 'origin ChainId').parse(process.argv); pro...
'use strict'; class ConfigGenerator { constructor(config) { this.config = config || {}; if (!this.config.page) { this.config.page = {}; } this.sizes = config.sizes || {}; } sizeNames() { let keys = this.sizeKeys(); if (!keys.some((key) => { return key === 'default'})) { key...
var egret = window.egret;var __reflect = (this && this.__reflect) || function (p, c, t) { p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t; }; var __extends = this && this.__extends || function __extends(t, e) { function r() { this.constructor = t; } for (var i in ...
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ /** * For jQuery versions less than 3.4.0, this replaces the jQuery.extend * function with the one from jQuery 3.4.0, slightly modified (documented * below) to be compatible with older jQuery versions and browsers. * * This provides the Object.prototype pollutio...
"use strict"; /** * Visual effects for the history of races table. */ var History = (function () { var $historyTable; $(document).ready(function() { $historyTable = $('#history tbody'); var observer = new MutationObserver(highlighAchievements); observer.observe($historyTable.get(0), { childList:true }); }...
const path = require('path'); const PROJECT_ROOT = path.resolve(__dirname, '../'); module.exports = { projectRoot: PROJECT_ROOT, outputPath: path.join(PROJECT_ROOT, 'dist'), appEntry: path.join(PROJECT_ROOT, 'src') };