text
stringlengths
2
1.04M
import i18n from 'i18next' import Backend from 'i18next-xhr-backend' import LanguageDetector from 'i18next-browser-languagedetector' import { initReactI18next } from 'react-i18next' i18n // load translation using xhr -> see /public/locales // learn more: https://github.com/i18next/i18next-xhr-backend .use(Backen...
function RandomSeed() { } // adapted from: https://stackoverflow.com/a/19303725 RandomSeed.seed = 1; RandomSeed.x = 0; RandomSeed.nextDouble = function () { RandomSeed.x = Math.sin(RandomSeed.seed++) * 10000; return RandomSeed.x - Math.floor(RandomSeed.x); }; module.exports = RandomSeed;
// Action names export const INCREMENT = '@example/INCREMENT'; export const DECREMENT = '@example/DECREMENT'; export const RESET = '@example/RESET'; // Action creators export const incrementCount = () => { return {type: INCREMENT}; }; export const decrementCount = () => { return {type: DECREMENT}; }; export cons...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v15.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __prot...
// generatedy by JSX compiler 0.9.89 (2014-05-20 06:01:03 +0900; 8e8c6105f36f3dfe440ea026a3c93a3444977102) var JSX = {}; (function (JSX) { /** * extends the class */ function $__jsx_extend(derivations, base) { var ctor = function () {}; ctor.prototype = base.prototype; var proto = new ctor(); for (var i in deriva...
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/*! * VisualEditor IME test for Internet Explorer on Windows in Taditional Chinese Handwriting. * * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org */ ve.ce.imetests.push( [ 'input-ie-win-chinese-traditional-handwriting', [ /*jshint quotmark:double */ {"imeIdentifier":"Chinese Tr...
import { find, findById, findOne } from '../../../../helpers/mock-helper'; export const clientCreditNotesMock = [ { _id : '57c52dd2516a067a6c7a6945', billingAdderss : { _id: '57509b5f350a10fb44e4c2b5' }, client : { _id: '563fb531007093486f3052ac' }, clientInvoices : [{ _id: '57c533...
const messenger_controller = require('../controllers/messenger'); module.exports = app => { app.get('/messenger/:id', messenger_controller.messages); };
import React from 'react'; import PropTypes from 'prop-types'; import { BottomNavigation, BottomNavigationTab, withStyles, Icon } from '@ui-kitten/components'; import { useSelector } from 'react-redux'; import { View, Text } from 'react-native'; import i18n from '../i18n'; const ConversationIcon = style => <Icon {.....
const data = require('./train3.json') const dt = require('./decision-tree.js') const test = require('./test3.json') const sr = require('./serialize.js') // Configuration var config = { trainingSet: data, categoryAttr: 'label', ignoredAttributes: ['win','f1'] }; const predict = (tree, item) => { var at...
var xplmi__task_8h = [ [ "TaskPriority_t", "xplmi__task_8h.html#a4904bbe8466b9be9707082098e502b14", [ [ "XPLM_TASK_PRIORITY_0", "xplmi__task_8h.html#a4904bbe8466b9be9707082098e502b14ad421ffdc12eef2b11396e31dc51d728e", null ], [ "XPLM_TASK_PRIORITY_1", "xplmi__task_8h.html#a4904bbe8466b9be9707082098e502b...
import * as React from 'react' import styled from 'styled-components' /** * A SVG polyfill for "-webkit-brackground-clip: text;". * * How to use: * * 1. Add the polyfill to your page. * * 2. Call the polyfill var element = document.querySelector('.myelement'); element.backgroundClipPolyfill({ 'patternID...
import React from 'react' import { StyleSheet, css } from 'aphrodite' import squareLogo from '../images/square-logo.png' const styles = StyleSheet.create({ outerContainer: { backgroundColor: '#1b2126', marginBottom: '0', position: 'sticky', top: '0', color: "eceef1", marginTop: "96pt" },...
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */
import { test } from '~util/testing' import VBreadcrumbs from '~components/breadcrumbs/VBreadcrumbs' import VBreadcrumbsItem from '~components/breadcrumbs/VBreadcrumbsItem' import { ripple } from '~directives/ripple' VBreadcrumbsItem.directives = { ripple } test('VBreadcrumbs.js', ({ mount }) => { it('should have...
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parserOptions: { parser: 'babel-eslint' }, env: { browser: true, }, // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention // consider switching to `plugin:vue/strongly-recommended` or `p...
import React, { Component, Fragment } from 'react' import { hot } from 'react-hot-loader' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import Nav from '../Nav' import Home from '../Home' import Chat from '../Chat' import Settings from '../Settings' class App extends Component { render() ...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
module.exports = [ { "type": "heading", "defaultValue": "NCC-1701 LCARS TOM Settings" }, { "type": "section", "items": [ { "type": "heading", "defaultValue": "Watchface Settings" }, { "type": "color", "messageKey": "TEXTCOLOR", "defaultValue": ...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const TypeAttributes_1 = require("./TypeAttributes"); const Support_1 = require("./support/Support"); const Messages_1 = require("./Messages"); function checkMinMaxConstraint(minmax) { const [min, max] = minmax; if (typeof min === "num...
export default { editorMode: "web", content: [ { id: "f8043f3e-9e88-46f8-92c0-00aeceddc2ab", type: "Row", attrs: { width: "100%", height: "auto", borderSize: 0, borderColor: "#000000", backgroundColor: "#e4e4e4", backgroundImage: "", back...
process.env.PORT = 3020; const expect = require('chai').expect; const userData = require('./data/user'); const chai = require('chai'); chai.use(require('chai-http')); const app = require('../server'); const request = chai.request.agent(app); const { createUser } = require('./utils/userSignUp'); const incidentData = req...
/* * container.js: Azure container * * (C) Microsoft Open Technologies, Inc. * */ var util = require('util'), _ = require('lodash'), base = require('../../core/storage/container'); var Container = exports.Container = function Container(client, details) { base.Container.call(this, client, details); }; ...
import NgController from "core/NgController"; import Component from "core/Component"; import template from "./todo-filter.template.html"; @Component({ template, inject: ["$store"], }) class TodoFilter extends NgController { constructor($store) { super(); this.$store = $store; } } export default TodoFilter;
module.exports = { platform: 'ios', type: 'icon', path: 'ios/icon', definitions: [{ name: 'icon.png', size: 57, comment: 'Default icon (avoid Apple submit error ITMS-90032)' }, { name: 'icon@2x.png', size: 114, comme...
/* AngularJS v1.5.7-local+sha.f3377da (c) 2010-2016 Google, Inc. http://angularjs.org License: MIT */ (function(D,c){'use strict';function w(s,h,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,e,b,f,y){function k(){n&&(g.cancel(n),n=null);l&&(l.$destroy(),l=null);m&&(n=g.leave(...
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import { Card, CardContent, Grid, Typography, Avatar, LinearProgress } from '@material-ui/core'; import InsertChartIcon from '@material-ui/icons/InsertChartOutlined'; co...
const conf = require("../configs/config.json"); const { MessageEmbed } = require("discord.js"); const moment = require("moment"); const muteLimit = new Map(); moment.locale("tr"); const ms = require("ms"); module.exports = { conf: { aliases: ["mute", "sustur", "chatmute", "chat-mute"], name: "cmute", hel...
/* * 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. */ '...
const bcrypt = require('bcryptjs') module.exports = (sequelize, DataTypes) => { const User = sequelize.define( 'User', { name: DataTypes.STRING, email: DataTypes.STRING, avatar: DataTypes.STRING, password: DataTypes.VIRTUAL, // virtual doesn't create field on table password_hash...
var router = require('express').Router(); var passport = require('passport'); var mongoose = require('mongoose'); var Article = mongoose.model('Article'); var Comment = mongoose.model('Comment'); var User = mongoose.model('User'); var auth = require('../auth'); // Fetching all the artices router.post('/', auth.requir...
/* * Copyright (c) 2018 Texas Instruments Incorporated - http://www.ti.com * 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 cop...
import React from "react"; // reactstrap components // import { // } from "reactstrap"; // core components import IndexNavbar from "components/Navbars/IndexNavbar.js"; import IndexHeader from "components/Headers/IndexHeader.js"; import DarkFooter from "components/Footers/DarkFooter.js"; // sections for this page im...
/* global describe, it */ /* eslint max-len: [1, 125, 1] */ /* eslint one-var: 0, new-cap: 0, no-unused-expressions: 0 */ 'use strict'; // -- Node modules var expect = require('chai').expect ; // -- Local modules var PicoDB = require('../index.js') ; // -- Local constants var docs = [ { a: 1 }, { a: 1, b: ...
import { defineMessages } from 'react-intl'; export default defineMessages({ title: 'There was an error in your request:', });
var Category = require('./categoryModel'); var _ = require('lodash'); exports.params = function(req, res, next, id) { Category.findById(id) .then(function(category) { if (!category) { next(new Error('No category with that id')); } else { req.category ...
/*! * bootstrap-fileinput v5.0.5 * http://plugins.krajee.com/file-input * * Font Awesome 5 icon theme configuration for bootstrap-fileinput. Requires font awesome 5 assets to be loaded. * * Author: Kartik Visweswaran * Copyright: 2014 - 2019, Kartik Visweswaran, Krajee.com * * Licensed under the BSD-3-Clause ...
import * as QuarterUtils from './quarter'; import * as MonthUtils from './month'; import * as TransformUtils from './transform'; function install() { let f; for(f in QuarterUtils) { Date.prototype[f] = AwesomeDate[f]; } for(f in MonthUtils) { Date.prototype[f] = AwesomeDate[f]; } ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * bootstrap-multiselect.js 1.0.0 * https://github.com/davidstutz/bootstrap-multiselect * * Copyright 2012 David Stutz * * 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...
import React from "react"; import { Link } from "react-router-dom"; import logo from "../../images/header-logo--dark.svg"; import "./_nav.scss"; const Nav = () => { return ( <div className="trust--stamp--nav--tunez"> <img src={logo} alt="" /> <ul> <li> <Link to="/">Solutions</Link> ...
import FootballPitch3d from './FootballPitch3d' export { FootballPitch3d as default }
import React, { useMemo } from "react"; import PropTypes from "prop-types"; import { useModule, MODULE_SUCCESS, MODULE_FAILURE } from "../../module-cache"; import { useResource, RESOURCE_SUCCESS, RESOURCE_FAILURE, } from "../../resource-cache"; import { packageSearch } from "../../resources"; import LoadingPage f...
'use strict'; module.exports = { db: 'mongodb://localhost:27017' + '/opensource', debug: true, logging: { format: 'tiny' }, // aggregate: 'whatever that is not false, because boolean false value turns aggregation off', //false aggregate: false, mongoose: { debug: false }, hostname: 'http:/...
import request2 from '@/utils/request2' // import service from '../utils/request2' export function fetchList(query) { return request2({ url: '/downlog/getlist', method: 'get', params: query }) } //获取市场信息 export function fetchMarket(query) { return request2({ url: '/market/getlist', method: ...
'use strict'; angular.module('cylon') .controller('MainCtrl', function ($scope,$http) { var main= this; main.robotname = null; main._fetchRobots = function(){ $http({url:"http://127.0.0.1:4321/Robots",method:"GET"}).success(function(result){ main.robotname = result[0].name...
import partition from "./solution.js"; import { arrayToList, listToArray } from "shared/utils.js"; test("example 1", () => { const input = arrayToList([1, 4, 3, 2, 5, 2]); const output = listToArray(partition(input, 3)); expect(output).toEqual([1, 2, 2, 4, 3, 5]); });
import Vue from 'vue'; import DeployKeysStore from '~/deploy_keys/store'; import deployKeysPanel from '~/deploy_keys/components/keys_panel.vue'; describe('Deploy keys panel', () => { const data = getJSONFixture('deploy_keys/keys.json'); let vm; beforeEach(done => { const DeployKeysPanelComponent = Vue.exten...
/** * @license * Copyright 2013 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
'use strict' var fs = require('fs') var path = require('path') var inspect = require('util').inspect var u = require('unist-builder') var remark = require('remark') var gfm = require('remark-gfm') var parseAuthor = require('parse-author') var remote = require('../package.json').repository var rules = require('./util/r...
/******************************************************************************* * arcs coming out from a circle */ function VizRadialArcs(variant) { this.dampen = true; this.hasVariants = true; this.variants = [[false, true], [true, false], [false, false]]; this.vary(variant); } VizRadialArcs.prototype.vary ...
// https://d3js.org Version 4.13.0. Copyright 2018 Mike Bostock. console.log("search") var term = document.getElementById("term-" + id).value; window['incendiumFlamegraph_' + id].search(term); } function incendiumClear(id) { console.log("clear") document.getElementById('term-' + id).value = ''; window['inc...
'use strict'; const Koa = require('koa'); const Router = require('koa-router'); const config = require('config'); const product = require('./routes/product.js'); const productCategory = require('./routes/product_category.js'); const ingredients = require('./routes/ingredients.js'); const helpUs = require('./routes/he...
/** * Changed by han on 16/9/20. */ import { TOKEN_CREATE, TOKEN_DELETE }from '../mutation_types' const state = { token: sessionStorage.getItem('token') } const mutations = { [TOKEN_CREATE](state,token){ state.token = token; sessionStorage.setItem('token',token); }, [TOKEN_DELETE](state){ ses...
/* With these functions you can convert the CIE color space to the RGB color space and vice versa. The developer documentation for Philips Hue provides the formulas used in the code below: https://developers.meethue.com/documentation/color-conversions-rgb-xy I've used the formulas and Objective-C example code and tra...
/* * 530. Minimum Absolute Difference in BST * * Q: https://leetcode.com/problems/minimum-absolute-difference-in-bst/ * A: https://leetcode.com/problems/minimum-absolute-difference-in-bst/discuss/595803/Javascript-and-C%2B%2B-solutions */ let getMinimumDifference = (root, A = [], min = Infinity) => { let go =...
// App.js import React, { useEffect, useState } from 'react'; import './App.css'; import BarChart from './BarChart'; import BubbleChart from './BubbleChart'; import dataset from './data/tweets_simplify.json'; import * as _ from 'lodash'; const datas = dataset; let dataPerCountry = []; var i = 0; const rawdata = _.map...
import request from '@/utils/request' export function login(data) { return request({ url: '/login', method: 'post', data }) } export function getInfo() { return request({ url: '/getInfo', method: 'get', }) } export function logout() { return request({ url: '/logout', method: 'po...
const router = require("express").Router(); const whiskeyRoutes = require("./whiskeys"); const fightRoutes = require("./fight"); const userRoutes = require("./user"); // whiskey routes router.use("/whiskeys", whiskeyRoutes); router.use("/fight", fightRoutes); router.use("/user", userRoutes); module.exports = router;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2020 Adobe Systems Incorporated ~ ~ 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 ~ ~ htt...
/* * knots * Copyright 2018 data.world, Inc. * * 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 ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const userSchema = new Schema({ username : { type : String, required : true, unique : true, trim : true, minlenght : 3 }, },{ timestamp : true, }); const User = mongoose.model('User', userSchema...
'use strict'; var cheerio = require('cheerio'); hexo.extend.filter.register('after_post_render', function(data){ var config = hexo.config; if(config.post_asset_folder){ var path = data.permalink.split(config.url).join('') var toprocess = ['excerpt', 'more', 'content']; for(var i = 0; i < toprocess.lengt...
/** * Auto-generated action file for "Avaza" API. * * Generated at: 2019-05-07T14:37:03.971Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / avaza-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the Apa...
version https://git-lfs.github.com/spec/v1 oid sha256:e92a7a7af880f0c86e96fcdb9f73377f2b4178af7fe50b7d33b54832d80f71e4 size 1807
/* Copyright 2020-2021 Lowdefy, Inc 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 wri...
const path = require('path'); module.exports = { dependency: { platforms: { ios: { podspecPath: path.join(__dirname, 'ios/ExpoModulesCore.podspec'), project: 'ios/ExpoModulesCore.xcodeproj', }, android: { packageImportPath: 'import expo.modules.adapters.react.ModuleRegis...
// webpack2 vue 异步引用组件 export default function(Vue){ Vue.component('sTable', () => import('@/components/table.vue')) Vue.component('search', () => import('@/components/search.vue')) }
const StandardERC223 = artifacts.require('StandardERC223'); const SettingsRegistry = artifacts.require('SettingsRegistry'); const GringottsBank = artifacts.require('GringottsBank'); const gasPrice = 22000000000; const COIN = 10 ** 18; contract('Gringotts Bank test', async(accounts) => { let deployer = accounts[0]...
var mongoose = require('mongoose'); mongoose.connect('mongodb://adisri:buskr@ds029436.mlab.com:29436/buskrheatmap'); var heatMapSchema = mongoose.Schema({ Day: Number, Month: Number, Year: Number, Amount: Number, Latitude: Number, Longitutde: Number, VendorName: String, City:String }) var newCitySche...
//Restyle UTI pages (donated by womp) new Tweak("Restyle UTI pages", /cemetech\.net\/projects\/uti/, () => { const style = document.createElement("style"); style.innerHTML = `/* Userstyle: Recolor UTI pages */ tr>th{ border-bottom: 1px solid #254e6f !important; } section.sidebar__section,div.mainlowermiddle,div....
const net = require('net'); const server = net.createServer((c) => { // 'connection' listener. console.log( 'client connected' ); c.on( 'end', () => { console.log('client disconnected'); server.close() ; }); c.write('hello\r\n') ; // c.end() ; c.pipe(c); }); server.on('error', (err) => { throw ...
import React from 'react'; import { RocketIcon } from '@modulz/radix-icons'; import { ThemeIcon } from '@mantine/core'; var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumer...
let XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; const fetchData = (url_api) => { return new Promise((resolve, reject) => { const xhttp = new XMLHttpRequest(); xhttp.open('GET', url_api, true); xhttp.onreadystatechange = (() => { if(xhttp.readyState === 4){ ...
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
import React, { PureComponent, createElement } from 'react' import PropTypes from 'prop-types' import classGenerate from '../../utils/classname' import Icon from '../../icons/Icon' import CodeBlock from '../CodeBlock' const exampleClass = classGenerate(require('./example.less'), 'example') export default class Exampl...
/* eslint-disable no-param-reassign */ const { SchemaDirectiveVisitor } = require('apollo-server-express'); const { get, getAsArray, getAsObject } = require('@parameter1/utils'); class ApiValueDirective extends SchemaDirectiveVisitor { /** * * @param {*} field */ visitFieldDefinition(field) { field.re...
import React, { Component, createElement } from 'react'; import { Match } from 'react-router'; import ReactGA from 'react-ga'; import { COLLECT_ANALYTICS } from '../constants'; export default class AnalyticsMatch extends Component { render() { const { path, pattern, exactly, component } = this.props; retur...
/* * 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 License, Version 2.0 * (the "License"); you may ...
import express from "express" const router = express.Router(); import Stage from '../models/stage.model.js'; router.route('/').get((req, res) => { Stage.find().sort({ name: 1 }) .then(stages => res.json(stages)) .catch(err => res.status(400).json('Error: ' + err)); }); router.route('/').post((req,...
import angular from 'angular'; export class EdgeStackEndpointsDatatableController { /* @ngInject */ constructor($async, $scope, $controller, DatatableService, PaginationService, Notifications) { this.extendGenericController($controller, $scope); this.DatatableService = DatatableService; this.Pagination...
(function() { var sui = Bangle.setUI; Bangle.setUI = function(mode, cb) { if (mode!="clock") return sui(mode,cb); return sui("clockupdown", (dir) => { let settings = require("Storage").readJSON("shortcuts.json", 1)||{}; if (dir == -1) { if (settings.BTN1) load(settings.BTN1); } els...
import React, { Component } from 'react'; import axios from 'axios'; import PortfolioSidebarList from '../portfolio/portfolio-sidebar-list'; import PortfolioForm from '../portfolio/portfolio-form'; export default class PortfolioManager extends Component { constructor() { super(); this.state = { portfolioItem...
/************************************************************* * * MathJax/localization/pt-br/HelpDialog.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 obt...
const mongoose = require('mongoose'); mongoose.Promise = global.Promise; const _ = require('underscore'); let EntryModel = {}; const convertId = mongoose.Types.ObjectId; const setName = (name) => _.escape(name).trim(); const EntrySchema = new mongoose.Schema({ name: { type: String, required: true, tr...
import React from "react"; import { render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import formInput from "."; describe("formInput", () => { const EnhancedInput = formInput("input"); describe("onChange and value", () => { let onChangeSpy; beforeEach((...
// // Vivado(TM) // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6 // Copyright 1986-2017 Xilinx, Inc. All Rights Reserved. // echo "This script was generated under a different operating system." echo "Please update the PATH variable below, before executing this script" exit var WshShell = new ActiveXObjec...
'use strict' const path = require('path') const dal = require(path.join(__dirname, '../dal/dal')) const Code = require('Code') const Lab = require('lab') const lab = module.exports.lab = Lab.script() lab.test('returns true if db connection is defined', function (done) { dal.then(function (db) { Code.expect(db).n...
const schema = require('./shema-transformTo-table.js'); const _ = require('underscore'); const json_parse = function(json){ try{ return JSON.parse(json); }catch(err){ return {}; } } // 处理字符串换行 const handleWrap = (str) => { return _.isString(str) ? str.replace(/\n/gi, '<br/>') : str } const messageM...
/** * Auto-generated action file for "Azure Data Lake Storage" API. * * Generated at: 2019-05-07T14:39:16.268Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / azure-com-storage-data-lake-storage-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files ...
/** * Coding as activism * TODO: Add Description * * OpenAPI spec version: 1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.0-SNAPSHOT * * Do not edit the class manually. * */ (function(r...
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
const TomoValidator = artifacts.require('./TomoValidator'); const TomoRandomize = artifacts.require('./TomoRandomize'); const BlockSigner = artifacts.require('./BlockSigner'); const config = require('config'); minCandidateCap = maxValidatorNumber = candidateWithdrawDelay = epochNumber = blockTimeSecret = blockTimeOpen...
module.exports = { product: "Client IP Geolocation", pathPrefix: "/client-ip-geolocation", contentRepo: "cloudflare/cloudflare-docs", contentRepoFolder: "products/client-ip-geolocation", externalLinks: [{ title: "Cloudflare home", url: "https://www.cloudflare.com/" }], search...
function init(Survey) { var widget = { name: "editor", title: "Editor", iconName: "icon-editor", widgetIsLoaded: function() { return typeof CKEDITOR != "undefined"; }, isFit: function(question) { return question.getType() === "editor"; }, htmlTemplate: "<textarea rows...
/* * /MathJax/jax/output/HTML-CSS/fonts/Asana-Math/SansSerif/Regular/Main.js * * Copyright (c) 2009-2018 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 copy of the License at * ...
// private state: 'pending' | 'fulfilled' | 'rejected'; const isFunction = (value) => Object.prototype.toString.call(value) === '[object Function]'; const isPlainObject = (value) => Object.prototype.toString.call(value) === '[object Object]'; function Promise(executor) { this.status = 'pending'; this.value ...