text
stringlengths
2
1.05M
const { Command } = require('@dyno.gg/dyno-core'); const superagent = require('superagent'); class Birb extends Command { constructor(...args) { super(...args); this.aliases = ['bird', 'birb', 'lunar']; this.module = 'Fun'; this.description = 'Random Adorable Birdies';...
const express = require('express'); const app = express(); const bodyparser = require('body-parser'); const mongoose = require('mongoose'); const ejs = require('ejs'); const Entities = require('html-entities').AllHtmlEntities; const entities = new Entities(); app.set('view engine', 'ejs'); app.use(bodyparse...
import testSettingList from '../samples/chart-config/testSettingList'; import { readFile, readFileSync } from 'fs'; import d3 from 'd3'; import { merge } from 'd3'; import jsdom from 'jsdom'; import webcharts from '../../build/webcharts'; import expect from 'expect'; import testCreateChart from '../chart/createChart'...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _styleToHexColor = require('./styleToHexColor'); var _styleToHexColor2 = _interopRequireDefault(_styleToHexColor); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { ...
// @flow import { observable, action, runInAction, computed } from 'mobx'; import { findIndex } from 'lodash'; import Store from './lib/Store'; import Request from './lib/LocalizedRequest'; import Wallet from '../domains/Wallet'; import { WALLET_UTXO_API_REQUEST_INTERVAL } from '../config/timingConfig'; import { getRec...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
macDetailCallback("003192000000/24",[{"d":"2020-09-25","t":"add","s":"ieee-oui.csv","a":"Room 901,9/F.New East Ocean Centre, 9 Science Museum Road Tsim Sha Tsui Kowloon HK 999077","c":"HK","o":"TP-Link Corporation Limited"}]);
const jwt = require("jsonwebtoken"); const APP_SECRET = "rharshad.com"; function getUserId(context) { const Authorization = context.request.get("Authorization"); if (Authorization) { const token = Authorization.replace("Bearer ", ""); const { userId } = jwt.verify(token, APP_SECRET); return userId; }...
/* @flow */ import { connect } from 'react-redux'; import React, { PureComponent } from 'react'; import { StyleSheet, View, ScrollView } from 'react-native'; import type { ChildrenArray, Context, Dimensions, LocalizableText, Style } from '../types'; import { KeyboardAvoider, ZulipStatusBar } from '../common'; import ...
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.7 Version: 2.1.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v2.1/admin/material/ */var handleDataTableCombinationSetting=function(){"use strict";0!==$("#data-table").length&&$("#data-table")....
/** * Pimcore * * This source file is available under two different licenses: * - GNU General Public License version 3 (GPLv3) * - Pimcore Enterprise License (PEL) * Full copyright and license information is available in * LICENSE.md which is distributed with this source code. * * @copyright Copyright (c) 200...
import StatusIndicator from '@/components/misc/feedingFrenzy/StatusIndicator' export const feedingFrenzy = { components: {StatusIndicator}, data() { return { fetchedData: [], loading4More: false, reachedEnd: false, } }, // this.$options.nonReactiveData...
import Ember from 'ember'; import AbstractTestModule from './abstract-test-module'; import { getResolver } from './test-resolver'; import buildRegistry from './build-registry'; import hasEmberVersion from './has-ember-version'; import { preGlimmerSetupIntegrationForComponent } from './-legacy-overrides'; import { setup...
import * as uut from '../CarouselPresenter'; describe('Carousel presenter', () => { it('should getChildrenLength', () => { expect(uut.getChildrenLength({children: [{}, {}, {}]})).toBe(3); expect(uut.getChildrenLength({children: [{}]})).toBe(1); expect(uut.getChildrenLength()).toBe(0); }); describe('...
/* eslint-disable jsx-a11y/alt-text */ import { useState } from "react"; import { Link } from "react-router-dom"; import { fbAuth, storage } from "../../../firebase"; import { updateUserData } from "../../../Network/Network"; export default function CreateProfilePhoto({ setBtns, btns }) { const [imgUrl, setimgUrl]...
/** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { __awaiter, __generator } from "tslib"; import { Task } from '../../mol-task'; import { Column, Table } from '../../mol-data/db'; import { ...
angular.module('ruchJow.security.interceptor', ['ruchJow.security.retryQueue']) // This http interceptor listens for authentication failures .factory('securityInterceptor', ['$injector', '$q', 'ruchJowSecurityRetryQueue', function($injector, $q, queue) { return { responseError: function (reject...
import moment from 'moment'; class DateTimesService { formatDate(string){ if(string){ return moment(new Date(string)).format("DD/MM/YYYY HH:mm"); }else { return moment(new Date()).format("DD/MM/YYYY HH:mm"); } } } export default new DateTimesService();
$.widget('ui.chunkHtml', $.ui.chunk, { edit: function() { var self = this, dialog; dialog = new BoomCMS.Dialog({ url: this.options.currentPage.baseUrl + 'chunk/edit?type=html&slotname=' + this.options.name, width: 600, title: 'Edit HTML' }).do...
'use strict' /* global WebAssembly */ const net = require('net') const tls = require('tls') const assert = require('assert') const util = require('./core/util') const Request = require('./core/request') const Dispatcher = require('./dispatcher') const { ContentLengthMismatchError, TrailerMismatchError, InvalidA...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","et",{euro:"Euromärk",lsquo:"Alustav ühekordne jutumärk",rsquo:"Lõpetav ühekordne jutumärk",ldquo:"Alustav kahekordne jutumärk",rdquo:"...
import React, { useState, useEffect } from "react"; import ReactDOM from "react-dom"; import ModalHeader from "./ModalHeader"; import ModalFooter from "./ModalFooter"; /* Modal component using bootstrap classes but without jquery. Required props: isOpen (bool), onDismiss (function) Optional props: children, headin...
import React from 'react'; import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform, AsyncStorage, } from 'react-native'; import { Block, Text, theme } from 'galio-framework'; import { Button, Select, Icon, Input, Header, Switch } from '../components'; //import { Button } from "../com...
const path = require('path') const fs = require('fs-extra') const globby = require('globby') const yamlParser = require('js-yaml') const tomlParser = require('toml') const createMarkdown = require('./markdown') const tempPath = path.resolve(__dirname, 'app/.temp') const { inferTitle, extractHeaders, par...
let fs = require('fs') require('../global') let configUtil = require('../../config/configUtil') configUtil.reloadConfig() let vpp = require('../fs-vpp'); let result; console.log('dbg', c2real(`/Users/zhanglei/workspaces/apps-ingage-web/src/main/webapp/static/source/core/i18n/all_zh-cn`)); console.log('r1:', fs.existsS...
'use strict'; var global = require('../internals/global'); var isForced = require('../internals/is-forced'); var has = require('../internals/has'); var classof = require('../internals/classof-raw'); var inheritIfRequired = require('../internals/inherit-if-required'); var toPrimitive = require('../internals/to-primitive...
/** * Lin-Validator v1 * 作者:7七月 * 微信公众号:林间有风 */ const validator = require('validator') const { ParameterException } = require('./http-exception') const { get, last, set, cloneDeep } = require("lodash") const { findMembers } = require('./util') class LinValidator { constructor() { ...
/** @jsx React.DOM */ /* * 画像のviewを提供する * componentWillMount()にてmbaasから画像データを取得し、base64エンコーディングして表示する */ (function(definition){ Item = definition(); })(function(){ var Item = React.createClass({ componentWillMount: function(){ var that = this; var fileName = this.props.fileName; MbaasUtil.g...
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
module.exports = { 'pure-white': '#ffffff', 'warm-white': '#f9f6da', 'polar-white': '#feeaca', 'soft-white': '#fbf5ea', 'antique-white': '#faf6ea', 'incandescent-white': '#f6e89f', 'gold': '#f9c718', 'red': '#ff0000', 'orange': '#ffb000', 'golden-yellow': '#ffcf00', 'acid-yellow': '#beec05', 'ch...
const path = require('path'); const metamarked = require('meta-marked'); const fs = require('fs'); const PAGE_MARKDOWN_PATH = path.join(__dirname, './posts'); const PAGE_OUTPUT_PATH = path.join(__dirname, './dist/posts'); const loadMarkdownPage = (mdFilename) => { const mdPath = path.join( PAGE_M...
import Character from "../../database/models/Character"; import Submission from "../../database/models/Submission"; import { Command } from "karasu"; import fs from "fs"; import path from "path"; export default class LinkCommand extends Command { constructor(bot) { super(bot, "link", { descript...
//-----------------------------Xem chi tiết thông tin user------------------------------- $(document).ready(function() { toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDu...
import gql from 'graphql-tag'; import { head } from 'ramda'; import { queryAsAdmin } from '../../utils/testQuery'; const ABOUT_QUERY = gql` query about { about { version dependencies { name version } } } `; const READ_QUERY = gql` query settings { settings { i...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Artillery = void 0; const Fortifiable_1 = require("@civ-clone/base-unit-type-fortifiable/Fortifiable"); class Artillery extends Fortifiable_1.Fortifiable { } exports.Artillery = Artillery; exports.default = Artillery; //# sourceMapping...
// the comment // gui/daemon indicates who is responsible for persisting that particular key-value-pair module.exports = { Network: { // daemon: isSubscription? type: 'tor|proxy|direct', isConnected: undefined, connectionSeemsLost: undefined, connectionErrorCode: 0 }, Notifi...
import imgT1 from '../assets/image/jpg/portfolio-image.jpg' import imgT2 from '../assets/image/jpg/portfolio-image-2.jpg' import imgT3 from '../assets/image/jpg/portfolio-image-3.jpg' import imgT4 from '../assets/image/jpg/portfolio-image-6.jpg' import imgT5 from '../assets/image/jpg/portfolio-image-7.jpg' import imgT6...
jQuery(function($) { //Let the user hide the demo notice. It would be annoying to have it up all the time. $('#ws-abe-hide-demo-notice').click(function() { $('#abe-demo-notice').hide(); $.cookie('abe_hide_demo_notice', 1); return false; }); });
/** * @fileOverview Provides a reference to the global object * the below solution works in ES3+ environment and doesn't violates CSP in Chrome apps * see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis */ 'use strict'; /* eslint strict:0 */ var getGlobal = function ...
const mix = require('laravel-mix'); require('laravel-mix-merge-manifest'); mix.setPublicPath('../../public').mergeManifest(); mix.js(__dirname + '/Resources/assets/js/app.js', 'js/core.js') .sass( __dirname + '/Resources/assets/sass/app.scss', 'css/core.css'); if (mix.inProduction()) { mix.version(); }
const webpack = require('webpack') module.exports = env => ({ mode: env.production ? 'production' : 'development', entry: "./src/index.ts", output: { libraryTarget: "umd", library: "RLogin", umdNamedDefine: true, globalObject: "this", filename: "index.js" }, watch: env === 'development', ...
import Router from 'vue-router' import Vue from 'vue' import { before, resolve, after } from '@/router/hooks' Vue.use(Router) const router = new Router({ mode: 'history', base: window.config.path, routes: [ { path: '/', component: () => import('@/pages/Dashboard'), ...
import React from 'react'; import PropTypes from 'prop-types'; import { mount } from 'enzyme'; import TableOfContents from '.'; const renderIndex = ({ contents }) => contents.map(({ id, title }) => <div id={`index-${id}`} key={id}>{id}: {title}</div>); describe('TableOfContents', () => { it('renders without cras...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Stream/nls/strings":{_widgetLabel:"Stroom",noStreamLayer:"Geen vooraf geconfigureerde...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7abd522e"],{bd0a:function(e,t,s){},cf8c:function(t,s,a){"use strict";a.r(s);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-container",{attrs:{"grid-list-xl":""}},[e.selectedStreams.length>0?s("v-toolbar",{staticStyle:{"z-index...
import React from "react"; import styled from "@emotion/styled"; import { BeatLoader } from "react-spinners"; const LoaderEl = styled.div` height: 100vh; display: flex; align-items: center; & > div { display: block; width: 100%; text-align: center; } `; export function Loader() { return ( ...
/* @flow */ import { warn, remove, isObject, parsePath, _Set as Set, handleError, invokeWithErrorHandling, noop } from '../util/index' import { traverse } from './traverse' import { queueWatcher } from './scheduler' import Dep, { pushTarget, popTarget } from './dep' import type { SimpleSet } from '.....
// import app dependencies and css style import React, { useRef } from 'react'; import axios from "axios"; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import { lightBlue } from '@material-ui/core/colors'; import "./index.css"; import { useStoreContext } fr...
import User from '../models/user.model' import _ from 'lodash' import errorHandler from './../helpers/dbErrorHandler' import formidable from 'formidable' import fs from 'fs' import profileImage from './../../client/assets/images/profile-pic.png' const create = async (req, res) => { const user = new User(req.body) ...
/** * @file mip-taoge-scaydk-adviser 组件 * @author Taoge <liangtao.gz@foamail.com> */ define(function (require) { var $ = require('zepto'); var customElem = require('customElement').create(); var options; var o; var t; customElem.prototype.build = function () { var element = this.elem...
/** * Have butlerbot provide a link to the landing page. * @module documentation * @return {string} - string (as a message to discord text channel) */ module.exports = { name: 'documentation', description: 'Link to website for butlerbot.', aliases: ['doc', 'credentials', 'resume'], cooldown: 5, ...
$('.modal').modal({ dismissible: true, opacity: .8, inDuration: 400, outDuration: 200, startingTop: '4%', endingTop: '10%' } ); document.getElementById('to-top').onclick = function () { scrollTo(document.body, 0, 100); } function scrollTo(element, to, duration) { ...
function Device(name, power, important) { this.name = name; this.power = power; this.important = important; } Device.prototype.switchOff = function() { this.isTurnedOn = false; } Device.prototype.switchOn = function() { this.isTurnedOn = true; } const fridge = new Device('Холодильник', 2000, 1); const micro...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add('link',function(a){var b=CKEDITOR.plugins.link,c=function(){var F=this.getDialog(),G=F.getContentElement('target','popupFeatures'),H=F.getContentElement('...
"use strict"; var loginForm = document.querySelector('#login-form'); var email, password, type; //Login function loginForm.addEventListener('submit', function (e) { e.preventDefault(); // get user info email = loginForm['login-email'].value; password = loginForm['login-password'].value; type = loginForm['Use...
'use strict'; module.exports = (sequelize, DataTypes) => { const tag = sequelize.define('tag', { name: DataTypes.STRING, }, {}); tag.associate = function(models) { // associations can be defined here tag.belongsToMany(models.bookmark, { through: 'bookmark_tags', onDelete: "CASCADE" }) ...
import { defaultFont, primaryColor, dangerColor, grayColor } from "assets/jss/material-dashboard-react.js"; import tooltipStyle from "assets/jss/material-dashboard-react/tooltipStyle.js"; import checkboxAdnRadioStyle from "assets/jss/material-dashboard-react/checkboxAdnRadioStyle.js"; const tasksStyle = { ......
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+recoil * @flow strict-local * @format */ 'use strict'; import type {Loadable} from '../adt/Recoil_Loadable'; i...
/***** 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...
import { inject as service } from '@ember/service'; import { readOnly, notEmpty } from '@ember/object/computed'; import Controller, { inject as controller } from '@ember/controller'; import { computed } from '@ember/object'; export default Controller.extend({ application: controller(), component: service(), curr...
import React, { PropTypes } from 'react'; import {Link} from 'react-router-dom'; import { connect } from 'react-redux'; import axios from 'axios'; import CountUp from 'react-countup'; import Chart from './Chart'; import Map from './Map'; class MyVariant extends React.Component { constructor(props) { super(prop...
require("../wpt-env.js"); /* Delete created databases * * Go through each finished test, see if it has an associated database. Close * that and delete the database. */ add_completion_callback(function(tests) { for (var i in tests) { if(tests[i].db) { tests[i].db.close(); ...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /******/(function (modules) { //...
var trips_hr = [ { "member_type": "Member", "hour_of_trip": "06/01/2018 0:00", "number_of_trips": 51 }, { "member_type": "Casual", "hour_of_trip": "06/01/2018 0:00", "number_of_trips": 23 }, { "member_type": "Member", "hour_of_trip": "06/01/2018 1:00", "number...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
'use strict'; module.exports = function ( i, j ) { if ( i === j ) { return 1; } return 0; };
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { PersistGate } from 'redux-persist/integration/react'; import { BrowserRouter } from 'react-router-dom'; import { store, persistor } from './store'; import App from './App'; ReactDOM.render( <Provider st...
// # KogeFarm Vaults Asset (LP) + Website (Platform) Scraper // # lb 12/10/21 // ## Asset Selector // /html/body/div[1]/div[1]/div/div[2]/div/div[4]/div/div[1]/table/tbody/tr[1]/td[2]/div/div/div/div[1]/div[2]/div //*[@id=“root”]/div[1]/div/div[2]/div/div[4]/div/div[1]/table/tbody/tr[1]/td[2]/div/div/div/div[1]/div[...
require('dotenv').config({ path: `.env.${process.env.NODE_ENV}`, }); const config = require('./content/meta/config'); module.exports = { pathPrefix: '/gatsby-starter-base', siteMetadata: { title: config.siteTitle, description: config.siteDescription, siteUrl: config.siteUrl, }, plugins: [ { ...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.4/15.4.4/15.4.4.14/15.4.4.14-3-10.js * @description Array.prototype.indexOf - value of 'length' is number primitive (value is NaN) */ function testcase() { var obj = { 0: 0, length: NaN }; return Array.prototype...
const parseUrl = (url) => { let str = '' for (let i = 0; i < url.length; i++) { const c = url.charAt(i) if (c === ':') { let param = '' for (let j = i + 1; j < url.length; j++) { if (/\w/.test(url.charAt(j))) { param += url.charAt(j)...
define(function (require, exports, module) { var c = {}; c.uri = "http://192.168.1.34:8911/web/jf/web/"; // c.uri = "http://192.168.1.77:22222/mockjsdata/5/jf/web/"; c.reg = {}; c.reg.mobile = /^1[3578]\d{9}$/; c.reg.pwd = /^\w{6,16}$/; c.reg.captcha = /^\d{6}$/; c.reg.reward_rmb = /^[1-...
/* Cho object obj, hãy tạo một array chứa key của tất cả các property của obj và đều viết hoa có sử dụng Object.key() có sử dụng các method của array Có sử dụng toUpperCase() */ let obj = { b: 2, a: 1, c: 3, }; // TODO //?? OUTPUT is [B, A, C] const keys = Object.keys(obj); let a =[]; for (...
angular.module('app', [ 'ngRoute', 'projectsinfo', 'dashboard', 'projects', 'admin', 'services.breadcrumbs', 'services.i18nNotifications', 'services.httpRequestTracker', 'security', 'directives.crud', 'templates.app', 'templates.common']); angular.module('app').constant('MONGOLAB_CONFIG', { b...
Clazz.declarePackage ("J.adapter.readers.quantum"); Clazz.load (["J.adapter.readers.quantum.MOReader", "$.BasisFunctionReader"], "J.adapter.readers.quantum.QchemReader", ["java.lang.Float", "java.util.Hashtable", "JU.AU", "$.Lst", "$.PT", "J.api.JmolAdapter", "J.quantum.QS", "JU.Logger"], function () { c$ = Clazz.dec...
process.env.VUE_ENV = 'server' import webpack from 'webpack' import base from './client' import { loaders } from './share' const serverModuleLoaders = Array.from(base.module.loaders) const cssLoaderIdx = base.module.loaders.indexOf(loaders.css) serverModuleLoaders.splice(cssLoaderIdx, 1) const serverConfig = { ...b...
import PublicationUtils from 'meteor/utilities:smart-publications'; import Users from 'meteor/nova:users'; import Folders from "./collection.js"; Users.addField([ /** Count of the user's Folders */ { fieldName: "telescope.folderCount", fieldSchema: { type: Number, ...
import { Viajes } from '../Models/Viajes.js' import { Testimoniales } from '../Models/testimoniales.js' const paginaInicio = async (req, res) => { //Consideraciones de conceptos. Para mejora de performance, es recomendable que ambas consultas se hagan al mismo tiempo. Por talmotivo se crea un objeto de Promise d...
/** * @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...
import { QUEST_REGIONS } from 'constants/dailies'; import calendar from 'initialStates/calendar'; import dailies from 'initialStates/dailies'; import proficiencies from 'initialStates/proficiencies'; import { getItem } from 'utils/localStorage'; export default { characters: [], residence: [], castles: [], prof...
import React from 'react-native'; import {connect} from 'react-redux/native'; import createAll from './createAll'; export const { actionTypes, addArrayValue, autofill, autofillWithKey, blur, change, changeWithKey, destroy, focus, reducer, reduxForm, getValues, initialize, initializeWithKey,...
/** * EmailSendsController * * @description :: Server-side logic for managing emailsends * @help :: See http://links.sailsjs.org/docs/controllers */ module.exports = { };
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Li...
const mongoose = require('mongoose') const schema = new mongoose.Schema({ _id: String, patron: Boolean, webhook: Boolean, maxGuilds: Number, maxFeeds: Number, guilds: [String], expireAt: Date, comment: String, slowRate: Boolean }) exports.schema = schema exports.model = mongoose.model('Supporter', s...
'use strict' const TrackList = require('./abstract-track-list') const { tracksModel } = require('./tracks') const { uniqRef, parseRawRef } = require('../utils') /** * @class ArtistsModel * Manager for Artist models. The seached column is name. * Has references to albums. * * Model properties: * - {number} id ...
import * as types from '../constants/ActionTypes'; export const load = () => ({ type: types.LOAD }); export const login = () => ({ type: types.LOGIN }); export const loginSuccess = () => ({ type: types.LOGIN_SUCCESS }); export const loginFailure = refresh_token => ({ type: types.LOGIN_FAILURE, refresh_token }); ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"1vt9":function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s<i;s++)t.call(o,e[s],s,e);...
const fs = require('fs'); const easySolver = require('./easy-solver'); const hardSolver = require('./hard-solver'); const input = fs.readFileSync('input.txt', 'utf-8').trim(); const passwords = input.split('\n'); // Easy result const easyValidPasswords = passwords.filter(easySolver); console.log(`Number of easy passw...
// Copyright 2021 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. /** * @fileoverview consolidated consent screen implementation. */ 'use strict'; (function() { // Enum that describes the current state of the Consoli...
$(document).ready(function() { $("#formOne").submit(function(event) { const person1Input = $("input#person1").val(); const person2Input = $("input#person2").val(); const animalInput= $("input#animal").val(); const exclamationInput = $("input#exclamation").val(); const verbInput = $("input#verb").v...
Module.register("news", { defaults: { articlesEndpoint: "https://newsapi.org/v1/articles?", sourcesEndpoint: "https://newsapi.org/v1/sources", source: "source=cnn", sortBy: "sortBy=top", apiKey: "apiKey=2c22fec0b0b74305a40943b3a6ff4d9c" }, getHeader: function(){ return this.data.header /...
if(_area_jsonp_420205){_area_jsonp_420205({"420205003":"铁山街道"})}
let nock = require('nock'); module.exports.hash = "05290e7cad837c62960375b296cd9334"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) .get('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5aee4c62-9733-48e9-a548-8a3b37d2e152') .re...
import React from 'react'; const EventTrackerContent = () => { return <div>Content</div>; }; export default EventTrackerContent;
import request from '@/utils/request' export function add(data) { return request({ url: 'api/storeProductConsult', method: 'post', data }) } export function del(ids) { return request({ url: 'api/storeProductConsult/', method: 'delete', data: ids }) } export function edit(data) { ret...
/** * elastiStack.js v1.0.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2013, Codrops * http://www.codrops.com */ ;( function( window ) { 'use strict'; function extend( a, b ) { for( var key in b ) { if( b.hasOwnProper...
/* ======================================================================== * SaRibe: eModal.js v1.2.6 * http://saribe.github.io/eModal * ======================================================================== * Copyright Samuel Ribeiro. * Licensed under MIT. * ===================================================...
const express = require('express'); const cors = require('cors'); const server = express(); const http = require('http').createServer(server); const io = require('socket.io')(http); const {logger} = require('./data/middleware'); server.use(cors()); server.use(express.json()); server.use('/api', require('./api...
const puppeteer = require('puppeteer') exports.config = { specs: [ '../passing-test.js', '../failing-test.js' ], directConnect: true, capabilities: { browserName: 'chrome', chromeOptions: { args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage'], binary: puppeteer.executabl...
const path = require('path'); const express = require('express'); const session = require('express-session'); const exphbs = require('express-handlebars'); const routes = require('./controllers'); // helpers not used (in utils folders) on app currently // const helpers = require('./utils/helpers'); const sequelize = ...