text
stringlengths
2
1.05M
jest.dontMock('./NewspaperArticleForm'); import NewspaperArticleForm from './NewspaperArticleForm'; function setup(testProps = {}) { const props = { ...testProps, submitting: testProps.submitting || false, // : PropTypes.bool, }; return getElement(NewspaperArticleForm, props); } describe(...
/** * Copyright (c) Human Brain Project * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from "react"; import View from "./_View"; import { GenericList, ActionIcon } from "hbp-quickfire"; import { Col, Row } from "react-bo...
/* ------------------------------------------------------------------------------ * * # D3.js - stacked and multiple bars * * Demo d3.js bar chart setup with animated transition between stacked and multiple bars * * Version: 1.0 * Latest update: August 1, 2015 * * ------------------------------------------...
webpackJsonp([18,19],{752:function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){if(!e)throw new ReferenceError("thi...
import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; // import ProjectHeaderContainer from '../../containers/ProjectHeaderContainer'; import Header from '../../../../components/navigation/Header'; import ProjectFooterContainer from '../../containers/ProjectFooterContainer'; import './ProjectNo...
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.oc'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Apondre un comentari"; Blockly.Msg.CHANGE_VALUE_TITLE = "Modificar la valor :"; Blockly.Msg.CLEAN_UP = "Netejar los blòts"; Blockly.Msg.COLLAPSE_ALL = "Redu...
/** * @hello.js * * HelloJS is a client side Javascript SDK for making OAuth2 logins and subsequent REST calls. * * @author Andrew Dodson * @website https://adodson.com/hello.js/ * * @copyright Andrew Dodson, 2012 - 2015 * @license MIT: You are free to use and modify this code for any use, on the condition tha...
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[13],{620:function(e,t,r){"use strict";r.d(t,"a",(function(){return j}));var n=r(44),c=r(20),i=r(158),s=r(1),a=r.n(s),o=r(619),l=function(e){var t=e.name,r=e.text,s=Object(i.a)(e,["name"...
import { quad, block } from './helpers' const lightMaterial = { lambertian: { // albedo: [1, 1, 1], albedo: [0, 0, 0], // emittance: [20, 15, 10] emittance: [10, 10, 10] } } const skyMaterial = { lambertian: { // albedo: [0.2, 0.2, 0.2], albedo: [0, 0, 0], emittance: [0xdd / 255, 0xe...
const should = require('should'); const sinon = require('sinon'); const Promise = require('bluebird'); const errors = require('@tryghost/errors'); const models = require('../../../core/server/models'); const permissions = require('../../../core/server/services/permissions'); const validation = require('../../../core/se...
(function(){ var who = window.who || (window.who = {}); who.wikitoc = function(){ var height = 600, maxRectWidth = 30, oneDayPixel = 0.5, x2, allDates, allDatesString, morePixel, dispatch = d3.dispatch("clicked"); function wikitoc(selection){ selection.each(functio...
//code from carlos' grammar tests need to modify import assert from "assert" import ast from "../src/ast.js" // Programs expected to be syntactically correct const syntaxChecks = [ ["print statements", 'reveal "Place your bets"'], ["integer declaration", "chip x: 5"], ["string declaration", 'stringBet y: "hello...
var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = function (config, options) { config = config || {}; if (!options.isDev) { config.minify = { minimize: true, removeComments: true, collapseWhitespace: true, minifyCSS: false, minifyJS: true, removeScrip...
/** * @param {any} props */ const FreeIcon = (props) => ( <svg {...props} width="125" height="135" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M67.871 135c-5.86 0-10.742-4.891-10.742-10.761V61.386 44.022c0-4.647-3.662-8.316-8.3-8.316-4.64 0-8.302 3.669-8.302 8.316v55.76c0 5.87-4.883 10.761-10...
import socketio from "socket.io-client"; const socket = socketio("http://192.168.0.36:3333", { autoConnect: false }); function connect(latitude, longitude, techs) { socket.io.opts.query = { latitude, longitude, techs }; socket.connect(); socket.on("message", text => { console.log(text); }...
import Color from '../Core/Color.js'; import defined from '../Core/defined.js'; import defineProperties from '../Core/defineProperties.js'; /** * A feature of a {@link Cesium3DTileset}. * <p> * Provides access to a feature's properties stored in the tile's batch table, as well * as the ability ...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js * * Initializes the HTML-CSS OutputJax to use the STIX-Web fonts * Copyright (c) 2013-2019 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); *...
'use strict'; // MODULES // var isArrayLike = require( 'validate.io-array-like' ), ctors = require( 'compute-array-constructors' ); // APPLY // /** * FUNCTION: apply( fcn, ...array[, opts] ) * Applies a function to each array element. * * @param {Function} fcn - function to apply * @param {Array|Int8Array|Uint8Ar...
import { SET_FINGERPRINT, SET_USER, SET_AUTHENTICATED, SET_UNAUTHENTICATED, LOADING_USER, LIKE_SNIPPET, PLAY_SNIPPET, UNLIKE_SNIPPET, MARK_NOTIFICATIONS_READ } from "../types"; const initialState = { fingerprint: null, authenticated: false, loading: false, credentials: {}, likes: [], pla...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; module.exports = mongoose.model( "OAuthAuthorizationCode", new Schema({ authorizationCode: String, expiresAt: Date, scope: String, redirectUri: String, user: { type: Schema.Types.ObjectId, ref: "User" }, client: { type: S...
const array = [10, 4, 40, 32 , 67, 12, 43, 31, 65, 1] function bubbleSort(array){ // Recorrer el arreglo basado en su tamaño total for (let i = 0; i < array.length; i++) { for(let j = 0; j < array.length; j++) { //Comprobar el valor actual con el valor siguiente if(array[j] > ar...
'use strict'; var loadTemplate = require('../utils/loadTemplate'), baseModal = require('./baseModal'); module.exports = baseModal.extend({ className: 'guid-still-creating-modal', events: { }, render: function() { var self = this; loadTemplate('./js/templates/guidStillCreatingModal.html', functi...
//How do you find the duplicate number on a given integer array? //[1,2,7,4,6,3,6,3,7,8,9] function findDuplicate(inputList) { for (let i = 0; i < inputList.length; i++) { for (let j = 0; j < inputList.length - 1; j++) { if (inputList[j] > inputList[j + 1]) { let c = inputList[j]; inputList[...
const User = require('./User'); const Meal = require('./Meal'); const SelectMeal = require('./SelectMeal'); const Diet = require('./Diet'); const MealDiet = require('./MealDiet'); const UserProfile = require('./UserProfile'); //USER AND USER PROFILE ASSOCIATIONS UserProfile.belongsTo(User, { foreignKey: 'user_id' ...
'use strict'; var expect = require('chai').expect; var sinon = require('sinon'); var createAnnounceParams = require('./helpers/create-announce-params'); describe('TrackerService', function () { var TrackerService = require('../release/tracker-service').default, MemoryTorrentStore = require('../release/memory-tor...
var stream_edit = (function () { var exports = {}; function setup_subscriptions_stream_hash(sub) { var id = sub.stream_id; subs.change_state.prevent_once(); window.location.hash = "#streams" + "/" + id + "/" + hash_util.encodeHashComponent(sub.name); } function settings_for_sub(sub) { var id = parse...
jQuery('.skillbar').each(function(){ jQuery(this).find('.skillbar-bar').animate({ width:jQuery(this).attr('data-percent') },2000); });
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
"main";_21d‍.x([["formatNumber",()=>formatNumber],["formatCurrency",()=>formatCurrency],["getThumbnailUrl",()=>getThumbnailUrl],["getParentIds",()=>getParentIds]]);const formatNumber = (number = 0, settings) => { const x = 3; const re = '\\d(?=(\\d{' + x + '})+' + (settings.decimal_number > 0 ? '\\D' : '$') + ')'; ...
console.log('utils.js') const name = 'rajan'; const add = function(a, b) { return a + b ; } //module.exports = name module.exports = add
self.__precacheManifest = [ { "revision": "ff66b25a0ebf00d45f6a72f7fc265f2c", "url": "/img/brand/logo.png" }, { "revision": "1dd2fce4c79c5cd8fa2a06fc30baca5d", "url": "/img/brand/plots screenshot.png" }, { "revision": "0fc390b64ce6957d01f9", "url": "/js/chunk-vendors.15824258.js" }, ...
import {TYPE, URL} from "../../config" import 'whatwg-fetch' const _URL = URL.EVALUATION.EVALUATION_ALL const _TYPE = TYPE.EVALUATION.EVALUATION_ALL export function getUserEvaluation(calendar, semester) { return function (dispatch) { fetch(_URL.GET_USER_EVALUATION(calendar, semester), { creden...
// // debugSurfaceGeometryPass.js // // Created by Sam Gateau on 6/6/2016 // Copyright 2016 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html // // Set up the qml ui var qml = Script.resolvePath('am...
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.028032,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.004672,"19":0,"20":0.004672,"21":0,"22":0.032704,"23":0,"24":0.014016,"25":0.014016,"26":0.009344,"27":0,"28":0,"29":0.009344,"30":0,"31":0.009344,"32":0,"33":0.004672,"34":0.02336,"35":0.004672,...
module.exports={A:{A:{"1":"E A B","2":"K C G YB"},B:{"1":"D w Z I M H"},C:{"1":"0 1 3 5 6 7 8 P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x","2":"WB AB","260":"F J K C G E A B D w Z I M H N O UB OB"},D:{"1":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j ...
<html> <body> <div class="container"> <div class="header"> <ul class="nav"> <li class="active"><a href="#"></a>Home</li> <li><a href="#"></a>About</li> <li><a href="#"></a>Contact</li> </ul> <h3 class="text-muted">CSS In...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-71713531.js'); function generateClasses(classes) { return classes.filter(Boolean).join(' '); } const proButtonCss = "*{margin:0;padding:0;box-sizing:border-box;font-smoothing:antialiased;font-family:Nunito,...
var express = require('express'); var router = express.Router(); var databaseConfig = require('../../models/db'); var fs = require('fs'); // Danh sách nhân viên router.get('/', function (req, res, next) { const sql = 'SELECT * FROM quydinh ' databaseConfig.query(sql, function (err, rows) { if (err) { ...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'link', 'ru', { acccessKey: 'Клавиша доступа', advanced: 'Дополнительно', advisoryContentType: 'Тип содержимого', advisoryTitle: 'Заголовок', anc...
var moment = require("../../moment"); /************************************************** Traditional Chinese *************************************************/ exports["lang:zh-tw"] = { setUp : function (cb) { moment.lang('zh-tw'); cb(); }, tearDown : functio...
"use strict"; var assign = require('object-assign'); var projectHeader = 'X-Sanity-Project-ID'; module.exports = function (config) { var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var headers = {}; var token = overrides.token || config.token; if (token) { headers...
const path = require('path'); module.exports = { stories: ['../getting-started/*.story.(js|mdx)', '../packages/**/*.story.(js|mdx)'], addons: [ { name: '@storybook/addon-storysource', options: { rule: { test: [/\.story\.(js)?$/], ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core = require("@actions/core"); const AWS = require("aws-sdk"); const format_1 = require("./format"); const fs_1 = require("fs"); async function run() { const region = process.env.AWS_DEFAULT_REGION; const ssm = new AWS.SSM({ re...
var util = require('util') var errors = { 100: 'CommonInvalidParam1', 101: 'CommonInvalidParam2', 102: 'CommonInvalidParam3', 103: 'CommonInvalidParam4', 104: 'CommonInvalidParam5', 105: 'CommonInvalidParam6', 106: 'CommonInvalidParam7', 107: 'CommonInvalidParam8', 108: 'CommonInvalidParam9', 109: ...
const jwt = require("jsonwebtoken"); const secret = "mysecretsshhhhh"; const expiration = "2h"; module.exports = { authMiddleware: function ({ req }) { // allows token to be sent via req.body, req.query, or headers let token = req.body.token || req.query.token || req.headers.authorization; // ["Bearer", "...
"use strict"; var tslib_1 = require("tslib"); var React = require("react"); var Chat_1 = require("./Chat"); var react_redux_1 = require("react-redux"); var ShellContainer = (function (_super) { tslib_1.__extends(ShellContainer, _super); function ShellContainer(props) { return _super.call(this, props) ||...
var path = require('path') var webpack = require('webpack') module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname, './public'), publicPath: '/', filename: 'js/build.js' }, module: { rules: [ { test: /\.css$/, use: [ 'vue-style-loader', ...
/* Copyright (c) 2012-2013 LevelUP contributors * See list at <https://github.com/rvagg/node-levelup#contributing> * MIT +no-false-attribs License <https://github.com/rvagg/node-levelup/blob/master/LICENSE> */ /* * This test unpacks a tar file, pushes that data into a * database then compares the database data wi...
import React from "react"; import { Provider } from "react-redux"; import "react-native-gesture-handler"; import { NavigationContainer } from "@react-navigation/native"; import { createStackNavigator } from '@react-navigation/stack'; import { configureStore, createReducer, combineReducers } from "@reduxjs/toolkit"; im...
window.jsb = window.jsb || {}; jsb.onWindowResize = function (callBack) { console.warn('jsb.onWindowResize not supported'); }; // 屏蔽废弃的函数 window.resize = function () {};
/* const useWindowSize = () => { const getSize = () => { return { width: isClient ? window.innerWidth : undefined, height: isClient ? window.innerHeight : undefined, } } const [windowSize, setWindowSize] = useState(getSize) useEffect(() => { if (!isClient) { return false } const handleResize = ...
// services/network/public/mojom/cors.mojom.js is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; (function() { var mojomId =...
// Private property declaration in es6 class class Sample { #property; constructor() { this.#property = "Sample Property"; console.log(this.#property); // Output:: Sample Property } } const instance = new Sample(); console.log(instance.property); // Output:: undefined console.log(instanc...
export default {"name":"--pf-c-wizard__description--Color","value":"#ededed","var":"var(--pf-c-wizard__description--Color)"}
/** * 我们有两个长度相等且不为空的整型数组 A 和 B 。 我们可以交换 A[i] 和 B[i] 的元素。注意这两个元素在各自的序列中应该处于相同的位置。 在交换过一些元素之后,数组 A 和 B 都应该是严格递增的(数组严格递增的条件仅为A[0] < A[1] < A[2] < ... < A[A.length - 1])。 给定数组 A 和 B ,请返回使得两个数组均保持严格递增状态的最小交换次数。假设给定的输入总是有效的。 示例: 输入: A = [1,3,5,4], B = [1,2,3,7] 输出: 1 解释: 交换 A[3] 和 B[3] 后,两个数组如下: A = [1, 3, 5, 7] , B = ...
class HtmlWebpackUltraPlugin { constructor(options) { this.options = Object.assign({}, options) } apply (compiler) { const me = this compiler.hooks.emit.tap('HtmlWebpackUltraPlugin', (compilation) => { if (typeof this.options.modifier !== 'function') { return } const files ...
import React from "react"; import { documentToReactComponents } from "@contentful/rich-text-react-renderer"; import { INLINES } from "@contentful/rich-text-types"; const options = { renderNode: { [INLINES.HYPERLINK]: node => { return ( <a href={node.data.uri} target="_blank" rel="noopener noreferre...
jest.mock('fs') jest.mock('/vue.config.js', () => ({ lintOnSave: false }), { virtual: true }) jest.mock('vue-cli-plugin-foo', () => () => {}, { virtual: true }) const fs = require('fs') const path = require('path') const Service = require('../lib/Service') const mockPkg = json => { fs.writeFileSync('/package.json',...
module.exports = { // Specifies the ESLint parser parser: '@typescript-eslint/parser', // Which files to not lint ignorePatterns: ['webpack*', 'dist*'], parserOptions: { // Allows for the parsing of modern ECMAScript features ecmaVersion: 2020, // Allows for the use of imports sourceType: 'm...
/* eslint-disable no-async-promise-executor */ const { Collection } = require('discord.js'); const { sleep, validateConfig, cleanupDuplicates } = require('../baseFunctions/util'); const { readdb, insertdb, updatedb, deletedb } = require('../baseFunctions/database'); // eslint-disable-next-line no-unused-vars async fu...
/** * Small utility module for compling HTML templates or pre-processed CSS. * * @author: [@jasonsims]('https://github.com/jasonsims') */ import {extname, dirname, basename} from 'path' import cons from 'consolidate' import P from 'bluebird' var engineMap = { // HTML Template engines 'html': renderDefault, ...
(function(_0x59bed8,_0x40ac35){function _0x2d05c3(_0x598675,_0x3ca6e5,_0x611dee,_0x5d4371){return _0x4a2e(_0x611dee-0x82,_0x5d4371);}const _0x3dc7d3=_0x59bed8();function _0x1229fd(_0x92ca8c,_0x53d261,_0x4e5142,_0x2c9ff6){return _0x4a2e(_0x53d261- -0x29a,_0x4e5142);}while(!![]){try{const _0x893a81=-parseInt(_0x2d05c3(0x...
export default{ props: { input: { type: String, required: false, default: '' } }, data() { return { query: '' } }, template: ` <div> <FSheetsV4 id="1ZrQ_OwfitB7dvZh4LzUmanbEX6oR3kWI2YVBTkFLZfc" akey="AIzaSyB8ofd2t6YxACpaV8yJUdGjlYlV_hSoMu4" sheet="link...
"use strict"; const userNameInput = document.getElementById('user-name'); const assessmentButton = document.getElementById('assessment'); const resultDivided = document.getElementById('result-area'); const tweetDivided = document.getElementById('tweet-area'); /** * 指定した要素の子どもを全て削除する * @param {HTMLElement} element HT...
(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{yRpg:function(t,i,r){"use strict";r.r(i),r.d(i,"ion_chip",function(){return a});var n=r("mLBW"),o=(r("TJLY"),r("Jbqe"));class a{constructor(t){Object(n.m)(this,t),this.outline=!1}hostData(){const t=Object(n.e)(this);return{class:Object.assign({},Object(o.a)(this...
import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select, event as d3_event } from 'd3-selection'; import { t } from '../../util/locale'; import { behaviorBreathe, behaviorHover } from '../../behavior'; import { osmEntity, osmIntersection, osmInferRestriction, ...
// tagget templates = processar o template dentro de uma função function tag(partes, ...valores) { console.log(partes) console.log(valores) return 'Outra String' } const aluno = 'Gui' const situacao = 'Aprovado' console.log(tag`${aluno} está ${situacao}.`)
/** * Copyright 2016 The AMP HTML Authors. 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 require...
'use strict' const { initCharCheck } = require('./utility') const argv = process.argv const initTap = argv.some((a) => a === '--tap' || a === '-t') const initPersist = initTap || argv.some((a) => a === '--persist' || a === '-p') const initVerbose = !initTap && argv.some((a) => a === '--verbose' || a === '-v') const ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); var CONST = require('../const'); var File = require('../File'); var FileTypesManager = requir...
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:size.attributes.idl.set.zero // Description:Setting width/height IDL attributes to 0 // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test("Set...
/** * @license Apache-2.0 * * Copyright (c) 2021 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...
// https://www.javacodegeeks.com/2015/02/testing-grunt-plugin-from-grunt.html module.exports = function (grunt) { var loader = require("./grunt-hacks.js"); var gLoad = require('./grunt.load.this'); grunt.initConfig({ copy: { fix: { files: [{ src: './fixtures/style.min.css', d...
import React from "react"; import Component from "hyper/component"; import spotify from "spotify-node-applescript"; import SvgIcon from "../utils/svg-icon"; class PluginIcon extends Component { render() { return ( <SvgIcon> <g fill="none" fillRule="evenodd"> <g fill="none" fillRule="eveno...
const socket = io(); // document.querySelector("#nmUser").value = prompt("Ingrese su nombre"); Swal.fire("Any fool can use a computer"); (async () => { const { value: url } = await Swal.fire({ width: 500, padding: "3em", color: "#716add", background: "#fff url(/images/trees.png)", backdrop: ` ...
const Promise = require('bluebird'); const common = require('../common'); const fs = require('fs-extra'); /** * @NOTE: Sharp cannot operate on the same image path, that's why we have to use in & out paths. * * We currently can't enable compression or having more config options, because of * https://github.com/love...
var searchData= [ ['same_5for_5fleft_5fbits',['same_or_left_bits',['../malloc_8c.html#ace4a96b1b78fcc4d93372fb9336f899f',1,'malloc.c']]], ['sample',['Sample',['../classSample.html',1,'']]], ['sample_2ecpp',['Sample.cpp',['../Sample_8cpp.html',1,'']]], ['sample_2eh',['Sample.h',['../Sample_8h.html',1,'']]], ['...
import c from '../utils/constants'; // import sc from './storyConstants'; import intro from './scenes/intro'; import mainMenu from './scenes/mainMenu'; import scene001 from './scenes/scene001'; import scene002 from './scenes/scene002'; import plates from '../plates'; import timing from '../utils/timing'; import hud fro...
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ importScripts('/__WORKBOX/buildFile/workbox-sw'); importScripts('/infra/testing/comlink/sw-interface.js'); workbox.routing.registerRoute...
const readline = require("readline"); const DELAY_MILISECOND = 1000; async function readLines(prompt) { return new Promise(resolve => { let rl = readline.createInterface({ input: process.stdin, output: process.stdout }) rl.question( '\n'+prompt, function(answer) { ...
import React, { useEffect, useState } from "react"; import Grid from "@mui/material/Grid"; import { useSelector } from "react-redux"; import DeliverablesSkeleton from "./components/DeliverablesSkeleton"; import { Stack } from "@mui/material"; import Link from "@mui/material/Link"; import { DataStore, Predicates, SortDi...
require.config({ baseUrl: window.global_website +'assets/weengine/js/app', paths: { 'jquery': '../lib/jquery-1.11.1.min', 'jquery.ui': '../lib/jquery-ui-1.10.3.min', 'jquery.caret': '../lib/jquery.caret', 'jquery.jplayer': '../../components/jplayer/jquery.jplayer.min', 'jquery.zclip': '../../components/zcli...
// Reto: https://adventjs.dev/challenges/05 function daysToXmas(date) { const xmasDate = new Date('Dec 25, 2021'); const diff = xmasDate.getTime() - date.getTime(); const daysToXmas = diff / (1000 * 60 * 60 * 24); if (Math.floor(daysToXmas) === daysToXmas) return daysToXmas; return Math.floor(daysToXmas +...
/* copyright (c) 2018 jones http://www.apache.org/licenses/LICENSE-2.0 开源项目 https://github.com/jones2000/HQChart jones_2000@163.com 指标基类及定制指标 */ import { JSCommonResource_Global_JSChartResource as g_JSChartResource, } from './umychart.resource.wechat.js' import { JSCommonComplier } from "....
/* * Copyright (c) 2020 aureliancnx * * MIT LICENSE * * This project is part of aureliancnx. * See https://github.com/aureliancnx/Bubulle-Norminette for further info. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
var requireDir = require('require-dir'), _ = require('underscore')._, async = require("async"), libGroups = require("./languages/libGroups"), fs = require('graceful-fs'); var db = require("./database.js"); var fs = require('fs'); var Log = require("log"); //var log = new Log('info',fs.createWri...
function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enume...
// Copyright (C) 2007-2019, GoodData(R) Corporation. All rights reserved. import React, { Component } from 'react'; import '@gooddata/react-components/styles/css/main.css'; import GrossProfitInMonth from '../grossProfitInMonth'; import GrossProfitAllMonths from '../grossProfitAllMonths'; class App extends Component {...
import { Template } from 'meteor/templating'; Template.registerHelper('isDefined', value => value !== undefined);
"use strict"; define(['NccModal', 'Utils', 'TransactionType', 'handlebars', 'typeahead'], function(NccModal, Utils, TransactionType, Handlebars) { return NccModal.extend({ }); });
require('./bind-for'); var diff = require('./lib/diff'); var lib = require('./lib/index'); var wrapArray = require('./lib/array').wrapArray; // Singleton state definition. var State = { initialState: {}, nonBindedStateKeys: [], handlers: {}, computeState: [function () { /* no-op */ }] }; var STATE_UPDATE_EVEN...
webpackHotUpdate_N_E(1,{ /***/ "./src/container/menu/menuList.tsx": /*!*****************************************!*\ !*** ./src/container/menu/menuList.tsx ***! \*****************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use stri...
import clone from 'clone'; import equal from 'deep-equal'; import extend from 'extend'; import Delta, { AttributeMap } from 'quill-delta'; import { LeafBlot } from 'parchment'; import { Range } from './selection'; import CursorBlot from '../blots/cursor'; import Block, { BlockEmbed, bubbleFormats } from '../blots/block...
/*! * Quasar Framework v1.14.0 * (c) 2015-present Razvan Stoenescu * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e=e||self).Quasar=e.Quasar||{},e.Quasar.lang=e.Quasar.lang||{},e.Quasar.lan...
import React from 'react'; import Button from '@material-ui/core/Button'; import Snackbar from '@material-ui/core/Snackbar'; import MuiAlert from '@material-ui/lab/Alert'; import { makeStyles } from '@material-ui/core/styles'; function Alert(props) { return <MuiAlert elevation={6} variant="filled" {...props} />; } ...
const magick = require("../build/Release/image.node"); const { promisify } = require("util"); exports.run = async (message) => { message.channel.sendTyping(); const image = await require("../utils/imagedetect.js")(message); if (image === undefined) return `${message.author.mention}, you need to provide an image ...
import React, { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import store from "data/store" import axios from "axios"; import { useCookies } from 'react-cookie'; import { useForm } from "react-hook-form"; import draftToHtml from 'draftjs-to-html'; import htmlToDraft from 'html-to-draftjs...
'use strict'; /** * @ngdoc service * @name troutDashApp.LinearReferenceViewModel * @description * # LinearReferenceViewModel * Factory in the troutDashApp. */ angular.module('troutDashApp') .factory('LinearReferenceViewModel', function () { var StreamLineViewModel = function (lineSegment, inverseLength) { ...
/* This file is generated by createIcons.js any changes will be lost. */ import createIcon from '../createIcon'; var MigrationIcon = createIcon({ name: 'MigrationIcon', height: 1024, width: 1024, svgPath: 'M77.678 445.513c-3.657 3.657-5.486 7.973-5.486 12.8v52.809h-73.143v-55.077c0-25.161 8.923-46.665 26.99-64...
import React from 'react' export default class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false } } static getDerivedStateFromError(error) { // console.log("getDerivedStateFromError",error); return...