text
stringlengths
2
1.05M
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides the Design Time Metadata for the sap.m.Toolbar control sap.ui.define([], function() { "use strict"; return { aggreg...
//1. obter o numero de notas var numNotas = prompt("De me o numero de notas"); //2. pedir a nota do teste //o numero de vezes que o utilizador indicou em 1 var contador = 0; var total = 0; while ( contador < numNotas){ var nota = prompt("A nota do teste"); ++contador;//contador = contador +1 //3.1 cal...
require('dotenv').config() const axios = require('axios') const puppeteer = require('puppeteer') // Headers config axios.defaults.headers.common['Authorization'] = `Bearer ${process.env.STRAPI_API_ADMIN_KEY}` const toKebabCase = (str) => str && str .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[...
//! moment.js locale configuration //! locale : Arabic (Lybia) [ar-ly] //! author : Ali Hmer: https://github.com/kikoanis import moment from '../moment'; var symbolMap = { '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', '7': '7', '8': '8', '9': '9', '0': '0' }, plur...
SIM_STATUS_STOPPED = 1 SIM_STATUS_PLAYING = 2 SIM_STATUS_PAUSED = 3 SIM_STATUS_FINISHED = 4 pyodideCodeList = {} function PyodideCode (opts) { if (opts) { this.init(opts); } } PyodideCode.prototype.init = async function(opts){ this.opts = opts this.id = opts.id this.simStatus = SIM_STATUS_STOPPED ...
QUnit.module("File Creation"); QUnit.test("addSample and segmentation", function( assert ) { var timeout = window.setTimeout(function() { assert.ok(false, "Timeout"); QUnit.start(); }, TIMEOUT_MS); var f = MP4Box.createFile(); f.onSegment = function(id, user, buffer, sampleNum) { window.clearTimeout(timeout); c...
import { basename, dirname, extname, join, relative, resolve } from 'path' import { log, logError, panic } from './logger' import compile from './compile' import compose from 'cumpa' import glob from 'glob' import help from './help' import optionatorFactory from 'optionator' import options from './options' import pkg f...
require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['ebs'] = {}; AWS.EBS = Service.defineService('ebs', ['2019-11-02']); Object.defineProperty(apiLoader.services['ebs'], '2019-11-02', { get: function get() { var model = req...
import React, { Component } from "react"; import { StyleSheet, Text, TouchableHighlight } from "react-native"; import { dynamicFontSize } from "../utils/helpers"; export class CalculatorKey extends Component { render() { const { color, isDirty, text, textDirty, type, style, ...
var data = [{ "trainNo": "42701", "train": "MSBPONLOCALDaily", "fulltrainname": "Chennai Beach LOCAL", "stations": [ "MSB", "RPM", "WST", "KOK", "TNP", "VOC", "TVT", "WCN", "KAVM", ...
/** * Wrapper for noteOnEvent/noteOffEvent objects that builds both events. * @param {object} fields - {pitch: '[C4]', duration: '4', wait: '4', velocity: 1-100} * @return {NoteEvent} */ class NoteEvent { constructor(fields) { this.type = 'note'; this.pitch = fields.pitch; this.wait = fields.wait || 0;...
import assert from 'assert'; import IconService from '../build/icon-sdk-js.node.min'; const tests = [{ wallet: IconService.IconWallet.loadPrivateKey('38f792b95a5202ab431bfc799f7e1e5c74ec0b9ede5c6142ee7364f2c84d72f6'), value: 'ba4da77c1dbf48071fbd3f9ee6d869580d177f01468e1e42bbb58733b9087f64', signature: '4RYSXFpc...
import Controller from './controller' export default { handle(route, args) { let routeName = route + 'Route'; if (!Controller.hasOwnProperty(routeName)) { console.error('Маршрут не найден!'); } Controller[routeName](args); } }
import React from 'react' import { Link } from 'gatsby' import '../scss/styles.scss' import Header from './Header' import SecondaryNavigation from './SecondaryNavigation' import Footer from './Footer' class Layout extends React.Component { render() { const { location, title, children } = this.props return (...
const { writeJsonSync, outputFileSync } = require('fs-extra'); const { join } = require('path'); const { getPackageJson, getWebpackConfigJs } = require('./utils'); const { PACKAGE_JSON, WEBPACK_CONFIG_JS } = require('./config'); module.exports = ({ mainFramework: { name: main }, uiFramework: ui, projectName, $...
'use strict' class RegisterController { * index(request, response) { yield response.sendView('register') } } module.exports = RegisterController
/*eslint-disable*/ import React, {useState, useRef, useEffect} from "react"; // react components for routing our app without refresh // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; // @...
import cloneDeep from 'lodash.clonedeep'; import {SET_IMG_SRC_AND_FILE_OBJ_TO_REDUCER, DELETE_ONE_ImgSrc_AND_ONE_ImgFile, REMOVE_ThoseFileArrAndObjectURLArr_but_also_returnObjectUrlArr_to_RevokeObjectURL } from '@/pages/_vendor/action/type'; import {MAXUploadPicQuantityOfThisApp} from '@/util_func/FileUploadM...
let diyNames = []; diyArr.forEach ( function(diy) { diyNames.push(diy.name); } ); autocomplete(document.getElementById("diyInp"), diyNames); let selectedDiyArr = []; const removeDiyFromArr = function(diyName) { for (let i = 0; i < selectedDiyArr.length; i++) { ...
import { Then } from "cypress-cucumber-preprocessor/steps"; Then("I should see the following posts on the search results page:", table => { table.hashes().forEach(({ title }) => { cy.get(".post-teaser") .should("contain",title) }); });
const os = require('os'); const fs = require('fs'); const utils = require('../utils'); const eventIterface = require('../event'); let k8sHostname = null; let k8sContainerId = null; /** * @returns {boolean} true if the current process is running inside * a K8S container, false otherwise */ module.exports.hasK8sMeta...
/** * echarts图表类:地图 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) * */ define(function (require) { var ChartBase = require('./base'); // 图形依赖 var TextShape = require('../../zrender/shape/Text'); var PathShape = require('.....
'use strict'; // Utilities: var Promise = require('bluebird'); // Module: var Core = require('../Core'); var ConfirmDialogService = function ConfirmDialogService () { return { show: show }; function show () { var resolve, reject; var promise = new Promise(function() { ...
var React = require('react'), Reflux = require('reflux'), Router = require('react-router'), { NotFoundRoute, State, Link, Route, RouteHandler, DefaultRoute } = Router, osmAuth = require('osm-auth'), haversine = require('haversine'), xhr = require('xhr'), qs = require('querystring'); window.React = React;...
"use strict"; import { rebind } from "d3fc-rebind"; import { merge } from "../utils"; import { sar } from "./algorithm"; import baseIndicator from "./baseIndicator"; const ALGORITHM_TYPE = "SMA"; export default function() { var base = baseIndicator() .type(ALGORITHM_TYPE) .accessor(d => d.sar); var underl...
const express = require('express') const cors = require('cors'); const TaskRoutes = require('./routes/TaskRoutes') const server = express() server.use(cors()) server.use(express.json()) server.listen(5000, ()=> { console.log('API ONLINE') }) server.use('/task', TaskRoutes)
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function CgAlbum (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","clipRule":"evenodd","d":"M2 19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 ...
export default { input: './src/react-sane-contenteditable.js', output: { name: 'ReactSaneContenteditable', globals: { react: 'React', 'prop-types': 'PropTypes', }, }, plugins: { babel: { exclude: '**/node_modules/**', }, commonJs: { include: '**/node_modules/**', ...
"use strict"; /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); /** * @hidden */ var AccessTokenValue = /** @class */ (function () { function AccessTokenValue(accessToken, idToken, expiresIn, homeAc...
let handler = async (m, { conn }) => { conn.sendButtonImg(m.chat, global.API('lolhuman', '/api/random2/trap', {}, 'apikey'), 'Nih', wm, 'NEXT', '.trap', m) } handler.help = ['trap'] handler.tags = ['nsfw'] handler.command = /^(trap)$/i module.exports = handler
import React from "react"; import { mdx } from "@mdx-js/react"; export default function MDXRenderer({ children, ...props }) { // Memoize the compiled component const End = React.useMemo(() => { if (!children) { return null; } const fn = new Function(`_fn`, "React", "mdx", `${children}`); re...
function perspective(P, d){ if(!d) d = 12; let ident = [[d, 0, 0, 0], [0, d, 0, 0], [0, 0, d, 0], [0, 0, 1, 0]]; let out = matriz_mult(ident,P); for(let i=0;i<out[3].length; i++){ out[0][i] = out[0][i]/out[3][i]; out[1][i] = out[1][i]/out[3][i]; out[2][i] = out[2][i]/out[3][i];...
// estrategia 1 para valor padrão function soma1(a, b, c) { a = a || 1 b = b || 1 c = c || 1 return a + b + c } console.log(soma1(), soma1(3), soma1(1, 2, 3), soma1(0, 0, 0)); //estrategia 2, 3 e 4 para gerar valor padrão function soma2(a, b, c) { a = a !== undefined ? a : 1 b = 1 in arguments...
import * as _ from 'lodash'; import {API_CALL_BEGIN, API_CALL_ERROR} from '../constants'; import initialState from './initialState'; const apiReducer = (state = initialState.apiReducer, action) => { if (action.type === API_CALL_BEGIN) { return { ...state, apiCallsInProgress: state.apiCallsInProgress + 1 ...
/* Copyright 2015 Skippbox, Ltd 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 writing...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. The ASF licenses this file to You * 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...
define("ace/theme/idle_fingers",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-idle-fingers",t.cssText=".ace-idle-fingers .ace_gutter {background: #3b3b3b;color: #fff}.ace-idle-fingers .ace_print-margin {width: 1px;background: #3b3b3b}.ace-idle-fingers {background-color: #32323...
// config/database.js module.exports = { 'url' : 'mongodb+srv://demo:demo@cluster0-92dvh.mongodb.net/test?retryWrites=true', 'dbName': 'demo' };
const Redis = require("./db/redis"); const { Store } = require("koa-session2"); class RedisStore extends Store { async get(sid, ctx) { // console.log('get', sid) let data = await Redis.get(`SESSION:${sid}`); return JSON.parse(data); } async set(session, { sid = this.getID(24), ...
import Vue from 'vue'; import { // Affix, // Anchor, // AutoComplete, Alert, // Avatar, // BackTop, // Badge, // Breadcrumb, Button, // Calendar, // Card, // Collapse, // Carousel, // Cascader, // Checkbox, Col, // DatePicker, // Divider, // Dropdown, Form, Icon, Input, // ...
import Ember from 'ember'; import { scaleSequential, interpolateViridis, interpolateInferno, interpolateMagma, interpolatePlasma, interpolateWarm, interpolateCool, interpolateRainbow, interpolateCubehelixDefault } from 'd3-scale'; const { assert, isPresent, String: { camelize, underscore }, } = ...
define([ 'underscore', 'backbone' ], function(_, Backbone) { var ExecutionTypeModel = Backbone.Model.extend({ defaults: { id: 0, name: '', description: '' }, initialize: function() { }, urlRoot: '/api/executiontypes' }); ...
let a = "outside"; function f([{ [a]: g }]) { let z = "inside"; return g; }
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { checkLicenseGenerator } from './cluster_alerts/check_license';...
/** * Select2 Italian translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nessuna corrispondenza trovata"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter"...
import AuthorizedLink from './AuthorizedLink'; import AuthorizedRoute from './AuthorizedRoute'; import NotAuthorizedRoute from './NotAuthorizedRoute'; import NotFoundRoute from './NotFoundRoute'; export {AuthorizedLink, AuthorizedRoute, NotAuthorizedRoute, NotFoundRoute};
function parse() { if (text.indexOf(']:') < 0) { return; } var m, regexp = /^\x1A* {0,3}\[([^\x17\]]+)\]: *([^[\s\x17]+ *(?:"[^\x17]*?"|'[^\x17]*?'|\([^\x17)]*\))?) *(?=$|\x17)\n?/gm; while (m = regexp.exec(text)) { addIgnoreTag(+m['index'], m[0].length); // Only add the reference if it does not already e...
// COPYRIGHT © 2018 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const ReactComponent = props => (react_1.default.crea...
/* eslint-disable linebreak-style */ /** ********************************************************* * Copyright (C) 2022 * Worktez * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License * * * This program is distributed in the hope that it will be useful,...
/** * Default State */ const defaultAuth = { user: null, token: localStorage.getItem('token'), role: localStorage.getItem('role'), approve: localStorage.getItem('approve'), personalVerify: false, message: '', error: false, newUser: true, }; const defaultSignup = { message: null, personalVerify: f...
var Event = require('./Event') module.exports = EventEmitter function EventEmitter() { this.eventRegister = { } } EventEmitter.prototype.event = function(key) { var event, key if(key instanceof Array || typeof key == 'object' && key.length) { key = key.join('.') } else if(key.length === 0) { ...
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') class DoseDate extends Model { dose() { return this.hasOne('App/Models/Dose') } } module.exports = DoseDate
import React from 'react' import Header from './header' import Footer from './footer' import '../styles/index.scss' import layoutStyles from './layout.module.scss' const Layout = (props) => { return ( <div className={layoutStyles.container}> <div className={layoutStyles.content}> ...
$(document).ready(function(){ giveHtml('production',1); $('#production-btn').click(function(){ giveHtml('production',1); }) $('#social-btn').click(function(){ giveHtml('social',2); }) $('#about-btn').click(function(){ giveHtml('about',3); }) $('#siteMusic').clic...
// Although MongoDB doesn't enforce any data normalization, the database collections will // benefit from at least a little bit of structure. Mongoose fills that need, allowing us // to add rules for the data so that it's not a free-for-all. Mongoose also provides us with // a lot of similar capabilities that Sequel...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../utils/Class'); var FromPoints = require('../geom/rectangle/FromPoints'); var Rectangle = require('../geom/rectangle/Rect...
import { useServerSideEffect } from 'webshift'; import axios from 'axios'; import logger from '@logger'; export default function Posts() { logger.verbose({message: "[Render]", meta: { component: 'Users'}}); const [data, error] = useServerSideEffect('posts', () => { return axios.get("https://jsonplace...
'use strict'; import { Command } from 'axoncore'; class Pong extends Command { constructor(module) { super(module); this.label = 'pong'; this.aliases = ['pong']; this.isSubcmd = true; this.hasSubcmd = false; this.infos = { owner: ['KhaaZ'], ...
/** * @fileoverview Defines PCx86 CPU constants * @author Jeff Parsons <Jeff@pcjs.org> * @copyright © 2012-2021 Jeff Parsons * @license MIT <https://www.pcjs.org/LICENSE.txt> * * This file is part of PCjs, a computer emulation software project at <https://www.pcjs.org>. */ "use strict"; var X86 = { /* ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _media2["default"]; } }); require("./media.sass"); var _media2 = _interopRequireDefault(require("./media")); function _interopRequireDef...
 /** * France (France) translation * By Thylia * 09-11-2007, 02:22 PM * updated by disizben (22 Sep 2008) * updated by Thylia (20 Apr 2010) */ Ext.onReady(function() { var cm = Ext.ClassManager, exists = Ext.Function.bind(cm.get, cm); if (Ext.Updater) { Ext.Updater.defaults.indicatorText...
import Mousetrap from 'mousetrap'; import preventDefaults from './userInterface/preventDefaults'; const MOUSETRAP = new Mousetrap(); const addKeyboardShortcuts = (container, viewer, viewerDOMId, tumorWidget, compareWidget) => { container.addEventListener('mouseenter', () => { MOUSETRAP.bind('1', function (even...
// @flow /* eslint-env mocha */ import assert from 'power-assert' import differenceInYears from '.' describe('differenceInYears', function() { it('returns the number of full years between the given dates', function() { var result = differenceInYears( new Date(2012, 6 /* Jul */, 2, 18, 0), new Date(2...
const origin = "http//localhost:3100";
require("kaoscript/register"); var Type = require("@kaoscript/runtime").Type; module.exports = function() { var __ks_Array = require("../_/_array.ks")().__ks_Array; __ks_Array.__ks_func_injectAt_0 = function(index, ...args) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + argume...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/** * Swedish translation (utf8-encoding) * By Erik Andersson, Monator Technologies * 24 April 2007 * Changed by Cariad, 29 July 2007 */ Ext.onReady(function() { var cm = Ext.ClassManager, exists = Ext.Function.bind(cm.get, cm); if (Ext.Updater) { Ext.Updater.defaults.indicatorText = '<di...
'use strict'; function foo() {} // Local rules // Off: mocha/no-mocha-arrows, mocha/no-skipped-tests describe.skip( () => { // Off: mocha/no-hooks-for-single-case beforeEach( () => { } ); // Off: mocha/no-skipped-tests it.skip( () => { } ); } ); // Recommended // Off: mocha/valid-suite-description describe( 'S...
/** * ************************************ * * @module next-persist * @author most-js * @description function to save state to cookies * * ************************************ */ const Cookie = require('js-cookie'); function setCookieStore(cookieConfig, state) { const key = Object.keys(cookieConfig)[0]; ...
/* * Copyright (c) 2017-2018 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; const constants = require('../constants'); const LinkedDataSignature2015 = require('./LinkedDataSignature2015'); module.exports = class GraphSignature2012 extends LinkedDataSignature2015 { constructor(injector, algorithm = 'Gr...
import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import axios from "axios"; import { Link } from "react-router-dom"; const SignIn = (props) => { const [user, setUser] = useState({ username: "", password: "" }); const handleChange = (e) => { setUser({ ...user...
import { UPDATE_KEYWORD } from '../actions/keyword'; const initialState = { filterText: '' }; export default function keyword(state = initialState, action = {}) { switch (action.type) { case UPDATE_KEYWORD: return Object.assign({}, initialState, {filterText: action.payload.filterText})...
function wait(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } describe('Visual testing', () => { test('Components available', () => expect(components && components.length > 0).toBeTruthy()); if (components && components.length) { for (const { identifier, link, skip, wait: waitMs } of componen...
CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de herramientas del editor",legend:'Presiona ${toolbarFocus} para navegar por la barra de herramientas. Para moverse por los distintos grupos de herram...
$(document).ready(function () { const context = $('.scrolling-wrapper') $('.left-arrow').bind('click touchstart', function (e) { // console.log(context) context.animate({scrollLeft: 0}, 400, 'swing'); }) $('.right-arrow').bind('click touchstart', function (e) { // console.log(context) co...
/** <doc:module date="2001-06-12"> <doc:module>exslt:date-time</doc:module> <doc:name>dates</doc:name> <doc:version>2.0</doc:version> <doc:language>exslt:javascript</doc:language> <doc:meta> <doc:author email="chris@bayes.co.uk" url="http://www.bayes.co.uk">Chris Bayes</doc:author> <doc:summa...
OC.L10N.register( "calendar", { "User-Session unexpectedly expired" : "ההפעלה של המשתמש הסתיימה באופן בלתי צפוי", "Provided email-address is not valid" : "כתובת הדוא\"ל שצוינה אינה חוקית", "%s has published the calendar »%s«" : "%sפרסם את לוח השנה»%s«", "Unexpected error sending email. Please co...
const Discord = require('discord.js'); const client = new Discord.Client(); const { DiscordTogether } = require('../index.js'); client.discordTogether = new DiscordTogether(client); client.on('message', async message => { if (message.content === 'APESHIT') { if(message.member.voice.channel) { ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","en",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark"...
(function (ns) { 'use strict'; ns.views.LanguageView = function () { var configTemplate = $('#selectTemplate').html(); return { system:undefined, configView: undefined, languageModel: undefined, configUtils: undefined, notificationSer...
import { mockUser } from '@@profile/tests/fixtures/users/user.js'; import serviceHistory from '@@profile/tests/fixtures/service-history-success.json'; import fullName from '@@profile/tests/fixtures/full-name-success.json'; import claimsSuccess from '@@profile/tests/fixtures/claims-success'; import appealsSuccess from '...
// Client-side JavaScript, bundled and sent to client. // Define Minimongo collections to match server/publish.js. Lists = new Meteor.Collection("lists"); Todos = new Meteor.Collection("todos"); // ID of currently selected list Session.set('list_id', null); // Name of currently selected tag for filtering Session.set...
import React from 'react'; import PropTypes from 'prop-types'; import { FlatList, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import I18n from '../i18n'; import * as List from '../containers/List'; import Status from '../containers/Status/Status'; import TextInput from '../containers/TextI...
import React from 'react'; import { string, func, bool } from 'prop-types'; import { uniqueId } from 'lodash'; import classNames from 'classnames'; import './Checkbox.css'; const Checkbox = ({ name, label, onChange, value, checked, inputClassName, labelClassName, normalizeLabel }) => { const checkboxId = uniqueId(l...
/* fill the URL text field with sampel network URLs */ $("#sample-network1").on("click",function(){ // H.pylori ppi network // $("#csv-file-url").val("https://dl.dropboxusercontent.com/u/59758/SimPPI-sample-net.csv") // $("#csv-file-url").val("https://dl.dropboxusercontent.com/u/59758/physical_ppi_table_f.csv"); $...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'bn', { toolbar: 'Block Quote' // MISSING });
import request from '../../utils/request' import APIUrl from '../apiUrl/basic-information-management' // 新增保存 export function saveItemMonitoring(params) { return request({ url: APIUrl.itemMonitoringList.saveItemMonitoring, method: 'post', data: params }) } // 修改保存 export function updateItemMonitoring(pa...
/* Jake's Discord bot currently has no definite purpose or use case exists to teach me JavaScript enjoy */ const Discord = require("discord.js"), // Discord API client = new Discord.Client(), // Set Client config = require("./config.json"), // contains "path" and "t...
describe("List Support Test - HTMLCollection", () => { beforeAll(() => {}); it("filter()", () => { let content = create("<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<...
import React from "react"; import MainPage from "./components/MainPage"; function App() { return ( <div> <MainPage /> </div> ); } export default App;
class Section3 extends HTMLElement { constructor() { super(); document.addEventListener("mousemove", parallax); function parallax(e){ document.querySelectorAll(".object").forEach(function(move){ var moving_value = move.getAttribute("data-value"); var x = (e....
var NAVTREEINDEX24 = { "class_p_h_p_unit___text_u_i___command.html":[48,0,708], "class_p_h_p_unit___text_u_i___command.html#a011800c63ece4cbbfa77136a20607023":[48,0,708,12], "class_p_h_p_unit___text_u_i___command.html#a16a628a086f941d2a00d4cde917d1251":[48,0,708,0], "class_p_h_p_unit___text_u_i___command.html#a1b74a8af...
// select all air quality advisories $(document).ready(function () { $("#selectAll").click(function () { $(".aqa").prop('checked', $(this).prop('checked')); }); $(".aqa").change(function () { if (!$(this).prop("checked")) { $("#selectAll").prop("checked", false); } }...
module.exports = new Date(2010, 11, 22)
import UIPlugin from '../../templates/ui/ui-plugin.js'; const COLOR_PRIMARY = 0x4e342e; const COLOR_LIGHT = 0x7b5e57; const COLOR_DARK = 0x260e04; class Demo extends Phaser.Scene { constructor() { super({ key: 'examples' }) } preload() { } create() { this.print = ...
$(function () { "use strict"; Morris.Area({ element: 'morris-area-chart' , data: [{ period: '2010' , iphone: 10 }, { period: '2011' , iphone: 1667 }, { period: '2012' ...
/** * # A testing environment for React components using karma. * Bit testing environment for testing of React components using Karma, with Mocha and ChaiJS. * * ## How to use? * import the environment * ```bash * bit import bit.envs/testers/karma-mocha-react -t * ``` * * ## What's inside? * - [Karma](https:...
let data = { "body": "<path d=\"M27.66 15.61L18 6l-9.66 9.61A1 1 0 1 0 9.75 17L17 9.81v19.13a1 1 0 1 0 2 0V9.81L26.25 17a1 1 0 0 0 1.41-1.42z\" class=\"clr-i-outline clr-i-outline-path-1\" fill=\"currentColor\"/>", "width": 36, "height": 36 }; export default data;
const mongoose = require('mongoose'); const logger = require('./services/logger.factory'); const config = { autoIndex: false, useUnifiedTopology: true, useNewUrlParser: true, }; if (process.env.DB_URL) { mongoose.connect(process.env.DB_URL, config); } else { logger.info('No MongoDB connection beca...