text
stringlengths
2
1.04M
var webpackMerge = require('webpack-merge'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var commonConfig = require('./webpack.common.js'); var helpers = require('./helpers'); module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-eval-source-map', output: { path: helpers.roo...
import React, { createRef, useEffect } from "react" import lottie from "lottie-web" import animationData from "../../../assets/animations/back.json" const BackAnimation = () => { let animationContainer = createRef() let anim = null useEffect(() => { anim = lottie.loadAnimation({ container: animationCon...
module.exports = { preset: 'ts-jest', globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.test.json', }, }, testEnvironment: 'node', roots: ['<rootDir>/src'], transform: {'^.+\\.tsx?$': 'ts-jest'}, testMatch: ["**/*.(spec|test).ts"], moduleFileExtensions: ['...
import Head from 'next/head' export default () => ( <div id="page-with-h1-and-title"> <Head> <title>Another Page's Title</title> </Head> <h1>My heading</h1> <div>Extraneous stuff</div> </div> )
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js"; import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js"; import Integer from "@ui5/webcomponents-base/dist/types/Integer.js"; import { fetchI18nBundle, getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js"; import { ge...
const cheerio = require('cheerio') exports.route = { async get() { return await this.publicCache('1mo', async () => { // 暂时固定课程号为 2598,如果日后有更改可以取消注释这一段 // let res = await this.get('http://tyx.seu.edu.cn') // let $ = cheerio.load(res.data) // let cid = /course_(\d+)/.exec($('a[title="国家级资源...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-1083255b.js'); var React = require...
export const sampleData = [ { id: '1', title: 'Trip to Empire State building', date: '2018-03-21', category: 'culture', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sollicitudin ligula eu leo tincidunt, quis scelerisque magna dapibus. Sed e...
/* *Created by 2018-3-13 * */ var priKeyBytes; var addressBytes; var address; var accountName; var pk; //创建账户 $('.creat-account-btn').on('click',function () { $('#wel_login').css('display','none'); $('#article_login').css('display','block') }); $('.wel-login-btn').on('click',function () { $('.motal-mask...
import { lazy } from 'react'; export const Split = lazy(() => import(/* webpackChunkName: "split" */ '@/components/ui/split')); export const Space = lazy(() => import(/* webpackChunkName: "space" */ '@/components/ui/space')); export const ConditionalRender = lazy(() => import(/* webpackChunkName: "conditionalrender"...
// Arabic [ar] import dayjs from '../index'; var months = 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'); var locale = { name: 'ar', weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'...
// Copyright 2014-2020, University of Colorado Boulder /** * This class represents a "slice" within a 2D container that can contain a set of energy chunks, and can be used to add * some limited 3D capabilities by having some z-dimension information. The slice consists of a 2D shape and a Z value * representing its...
import { assert } from '@ember/debug'; import BaseSerializer from './-base'; export default class extends BaseSerializer { normalizeResponse(store, primaryModelClass, payload, id, requestType) { assert(`Unknown \`requestType\`: ${requestType}`, ['query'].indexOf(requestType) !== -1); return payload.reduce(...
import MaskableImage, { MaskableImageProps } from './MaskableImage'; export { MaskableImageProps }; export default MaskableImage;
/* globals i18n */ module.exports = login; var fhreq = require("./request"); var log = require("./log"); var fhc = require("../fhc"); var util = require('util'); var crypto; try { crypto = process.binding("crypto") && require("crypto"); } catch (ex) { // ignore error } function login(username, password, domain, ...
import chai, { expect } from 'chai'; import sinon from 'sinon'; import { search, top, listTags, tagName, info } from '../src/search'; import sinonChai from 'sinon-chai'; import sinonStubPromise from 'sinon-stub-promise'; chai.use(sinonChai); sinonStubPromise(sinon); global.fetch = require('node-fetch'); describe('Pod...
import { collectUnitConverters as collectMetricConverters } from './metric' export { collectDomainConverters } from './metric' export function collectUnitConverters() { return [ ...collectMetricConverters() ] }
#!/usr/bin/env node 'use strict'; var _lodash = require('lodash'); var _getLogger = require('../get-logger'); var _getLogger2 = _interopRequireDefault(_getLogger); var _index = require('../index'); var _index2 = _interopRequireDefault(_index); var _parser = require('../bin-utils/parser'); var _parser2 = _interop...
const { HLTV } = require('hltv') const { RichEmbed} = require('discord.js') const mapList = require('./mapList') module.exports = (msg, parameter) => { HLTV.getMatch(parameter) .catch(err => console.error(err)) .then(match => { embed = new RichEmbed() .setTitle(`${match.team1.name} / ${match.team2.name}...
/* @flow */ import path from 'path'; import copyDir from 'copy-dir'; import {fs} from 'mz'; import {describe, it} from 'mocha'; import {assert} from 'chai'; import sinon from 'sinon'; import promisify from 'es6-promisify'; import {onlyInstancesOf, UsageError, WebExtError} from '../../../src/errors'; import {getManife...
deepmacDetailCallback("000a4c000000/24",[{"d":"2002-08-03","t":"add","a":"1311 Orleans Drive\nSunnyvale CA 94089\n\n","c":"UNITED STATES","o":"Molecular Devices Corporation","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"1311 Orleans Drive Sunnyvale CA US 94089","c":"US","o":"Molecular Devices Corporation"}])...
import { JSONResponse } from '../utils/json-response.js' import { validate } from '../utils/auth-v1.js' import { parseCidPinning } from '../utils/utils.js' /** @type {import('../utils/router.js').Handler} */ export async function pinsDeleteV1(event, ctx) { const { params } = ctx const { user, db } = await validate...
const ROOT_URL = "http://localhost:5000"; export async function loginUser(dispatch, loginPayload) { const requestOptions = { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(loginPayload), }; try { dispatch({ type: "REQUEST_LOGIN" }); let response = await...
const IS_TEST = process.env.NODE_ENV === "test"; const IS_PRODUCTION = process.env.NODE_ENV === "production"; module.exports = { sourceMaps: IS_PRODUCTION ? undefined : "inline", presets: [ !IS_TEST && [ "@babel/preset-env", { useBuiltIns: "entry", ...
/** * Created by liqian on 2017/3/9. */ var SlideModel = require('../models/slide'); //首页右侧模块 module.exports = function rightModule(req, res, next) { var list = [ SlideModel.getSlide({ status: 1, category: 'introduce' }) ]; Promise .all(list) .the...
macDetailCallback("a87484000000/24",[{"d":"2020-08-26","t":"add","s":"ieee-oui.csv","a":"12/F.,zte R&D building ,kejinan Road,Shenzhen,P.R.China shenzhen guangdong CN 518057","c":"CN","o":"zte corporation"}]);
import produce from 'immer'; import homeReducer, { initialState } from '../reducer'; import { loadGalleries, galleriesLoadingSuccess, galleriesLoadingError, } from '../actions'; /* eslint-disable default-case, no-param-reassign */ describe('homeReducer', () => { let state; beforeEach(() => { state = ini...
import React from 'react' import styled from 'styled-components' import { CrashBoom, ContinuousIndices, VolatilityIndices, } from '../../markets/instruments/_submarkets.js' import MarketsAccordion from '../../markets/components/helper/_markets_accordion.js' import AvailablePlatforms from '../../markets/comp...
// Your web app's Firebase configuration var firebaseConfig = { apiKey: "AIzaSyCM0T90XHlH4h7sq2bdEnnnSdkvHJr4ZAc", authDomain: "remote-dbs-exercise.firebaseapp.com", databaseURL: "https://remote-dbs-exercise-default-rtdb.firebaseio.com", projectId: "remote-dbs-exercise", storageBucket: "remote-dbs-e...
'use strict'; const MLBStatsAPI = require('../index'); const should = require('should'); describe('MLBStatsAPI', () => { //let mlbStats = new MLBStatsAPI(); const mlbStats = new MLBStatsAPI(); it('Should Get Attendance with a 200 Status', async () => { const response = await mlbStats.getAttendance...
'use strict'; /** * @license * Copyright SOAJS All Rights Reserved. * * Use of this source code is governed by an Apache license that can be * found in the LICENSE file at the root of this repository */ function getrecipe(localConfig) { return { service: { "apiVersion": "v1", "kind": "Service", "met...
import { h } from 'preact' import style from './style.css' const Title = ({title, subTitle}) => <div className={style.titleWrapper}> <div className={style.title}>{title}</div> { subTitle && <div>{subTitle}</div> } </div> export default Title
// import { Nuro } from './nuro' class App { name = 'world' template = ` <div id="app"> Name: <input $bind="name"/> Hello, {{name}}! </div> ` } Nuro.mount(App)
export const userSessions = { name: 'userSessions', description: 'Routes that handle things like user creation, logging in, and session management.', }
import React from 'react'; import { Router, Route, Switch } from 'react-router-dom'; import createHistory from 'history/createBrowserHistory'; import DashboardPage from '../components/DashboardPage'; import LoginPage from '../components/LoginPage'; import NotFoundPage from '../components/NotFoundPage'; import PrivateRo...
// Publish users table Meteor.publish('users', function () { return Meteor.users.find({ }); }); // Publish composite the posts table related to relationship table Meteor.publishComposite('posts', function() { return { find: function() { // Find the current user's following users ret...
import React from "react" import Helmet from 'react-helmet'; import { graphql } from "gatsby" import Layout from "../components/layout" export default function Template({ data, // this prop will be injected by the GraphQL query below. }) { const { site, markdownRemark } = data // data.markdownRemark holds your pos...
const express = require('express') const app = express() const cors = require('cors'); const request = require('request') require('dotenv').config() const apiCache = require('apicache') app.use(cors({ origin: 'https://quentinburgniard.com' })) let cache = apiCache.middleware app.use(cache('1 day')) app.set('STRA...
module.exports = { not: 'Reserved name', minLength: 'The length of product name should be between 3 and 20 chars', maxLength: 'The length of product name should be between 3 and 20 chars', pattern: 'Product name should be a string of alphanumeric characters without underscores', noConfiguration: 'You are not ...
const ora = require('ora') const { exec } = require('child_process') module.exports = ({ command, startMessage, successMessage, failureMessage, shouldNotHandleError, }) => { const spinner = ora(startMessage || 'Attempting to execute a command') spinner.start() return new Promise((resolve, reject) => ...
import React from "react" import { useStaticQuery, graphql } from "gatsby" export default function Everyone() { const data = useStaticQuery(graphql` query { allMarkdownRemark(filter: {fields: {slug: {regex: "^/people/"}}}) { edges { node { fields { slug ...
window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { 'use strict'; window.EJS_RESET_VARS = []; for (var k in window) { window.EJS_RESET_VARS.push(k); } _0x2c1832.r(_0x17edbf); var _0x39ca5e = { 'volume': 0.5, 'muted': false, 'i18n': { ...
const Registry = require('./../../src/registry'); describe('MemoryRegistry', function() { it('registers and returns values', function() { const registry = new Registry(); registry.register('a', 1); expect(registry.get('a')).to.equal(1); }); it('throws when unknown name requested', function() { const regis...
/* * * App * */ import React, { Component } from 'react'; import { Switch, Route, BrowserRouter as Router } from 'react-router-dom'; import Face from 'containers/Face/' import Test from 'containers/Test' import ProjectCardContainer from "../ProjectCardContainer" import ProjectContainer from "../projectContainer" ...
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.imageWall = factory(); } }(this, function () { var config; function run () { // config.cla...
"use strict"; var log = require("../util/log"); var api = require("../util/api-json"); /** * @class Tokens * @desc * Tokens takes care of requesting authentication from the Repository API endpoint and * fetching the API-Auth token used as a header value to inform the API of our allowance to talk to it */ /** *...
export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, options: { storySort: { method: "alphabetical", }, }, };
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from ...
import React, { Component } from 'react'; import TorrentLine from './torrent' import {List} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; export default class RecentTorrents extends Component { constructor() { super() this.torrents = []; } com...
/* * @name 애니메이션 * @description 원이 움직입니다. */ // 원의 위치를 알기 위해 let x, y; function setup() { createCanvas(720, 400); // 화면 가운데에서 시작하기 x = width / 2; y = height; } function draw() { background(200); // 원 그리기 stroke(50); fill(100); ellipse(x, y, 24, 24); // 가로축에서 무작위로 흔들리기 x = x + random(-1,...
"use strict"; // // Copyright IBM Corp. 2017,2018. All Rights Reserved. // // Node module: @loopback/example-todo // // This file is licensed under the MIT License. // // License text available at https://opensource.org/licenses/MIT // import {inject} from '@loopback/core'; // import {Filter, repository} from '@loopbac...
/* * api portal */ var url = require("url") , querystring = require('querystring') , common = require("../controllers/Common") , wo = require("../controllers/weboperating"); /* * desc : report status */ function __getStatus(allQueries, res) { var config = require("../configure/sysconfig.js"); var allowL...
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 The Regents of the University of California * Author: Jim Robinson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without res...
angular.module('app') .provider('Comment', function() { this.$get = ['ActiveResource', function(ActiveResource) { function Comment(data) { this.body = data.body; this.author = data.author; this.belongsTo('post'); this.validates({ body: { presence: true, ...
module.exports = {"name":"--pf-c-content--FontSize","value":"1rem","var":"var(--pf-c-content--FontSize)"}
var React = require('react'); var freshFinderActions = require('../../actions/freshFinderActions'); var marketStore = require('../../stores/MarketStore'); var MarketData = React.createClass({ getInitialState: function(){ return { market_id: marketStore.getMarketId(), market_data: marketStore.getMarke...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw...
'use strict' const Handler = require('./handler') const Routes = [ { method: 'GET', path: '/profile', handler: Handler.profile, options: {} } ] module.exports = Routes
window['anychart']=window['anychart']||{};window['anychart']['format']=window['anychart']['format']||{};window['anychart']['format']['locales']=window['anychart']['format']['locales']||{};window['anychart']['format']['locales']['fi-fi'] = { code: 'fi-fi', engName: 'Finnish (Finland)', nativeName: 'suomi (Suomi)',...
var classtesting_1_1internal_1_1_select_args_3_01_result_00_01_argument_tuple_00_1_00_1_00_1_00_1_005f626e5adb9246c46f665dbb755b50f6 = [ [ "SelectedArgs", "classtesting_1_1internal_1_1_select_args_3_01_result_00_01_argument_tuple_00-1_00-1_00-1_00-1_005f626e5adb9246c46f665dbb755b50f6_adc60d51fe96e09fd5e41b2a61f998c...
/** * Copyright 2017 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...
/** * @file Time indicator tests. * @copyright IBM Security 2019 */ import { render } from '@testing-library/react'; import React from 'react'; import { Default as TimeIndicator } from '../TimeIndicator.stories'; describe('TimeIndicator', () => { it('renders', () => { expect(render(<TimeIndicator />).contai...
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.handleEvent=void 0;var _main=require("../error/main.js"); var _exit=require("../exit.js"); var _level=require("../level.js"); var _limit=require("../limit.js"); var _repeat=require("../repeat.js"); var _event=require("./event.js"); const h...
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { FormSet, FormItem, FormLabel, FormInput, FormMessage, } from 'fundamental-react'; const FormSetWrapper = styled.div` padding-top: ${(props) => props.marginTop || '0'}px; `; class Input extends ...
// @flow import type { AppT, ActionT } from '../types'; import initialState from './initialState'; import * as constants from './constants'; export default (state: AppT = initialState, action: ActionT): AppT => { switch (action.type) { case constants.SET_AUTHENTICATED: return { ...state, ...
/****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ const args = proces...
const fs = require('fs') const moment = require('moment') const { slice, indexOf, split, join } = require('lodash') const db = require('../models') module.exports = (() => { const formatTotal = (total) => { return parseFloat(total.split(',').join('')) } const formatTotalWithQuotes = (total) => {...
import DashboardLayout from '../layout/DashboardLayout.vue' import HomeLayout from '../layout/HomeLayout.vue' // GeneralViews import NotFound from '../admin/NotFoundPage.vue' // Web page import Home from 'src/pages/Home.vue' import Shop from 'src/pages/Shop.vue' import Contact from 'src/pages/Contact.vue' import About...
zipdata({"5820006":[27,"柏原市","清州"],"5820025":[27,"柏原市","国分西"],"5828501":[27,"柏原市","片山町","13-13"],"5820028":[27,"柏原市","玉手町"],"5820023":[27,"柏原市","国分東条町"],"5820002":[27,"柏原市","今町"],"5820007":[27,"柏原市","上市"],"5820009":[27,"柏原市","大正"],"5820003":[27,"柏原市","堂島町"],"5820020":[27,"柏原市","片山町"],"5820021":[27,"柏原市","国分本町"],"582001...
import Site from 'Site'; let dataTpl = () => { let data = { status: false, title: '', description: '', priority: 'normal', duedate: '', members: [], subtasks: [], attachments: [], comments: [] }; return data; }; class StageList { constructor($el, data) { this.$el = $el;...
/** * Copyright (c) 2018 GrowthFile * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish...
/* * Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute * of Technology. Users are free to copy, change or remove. Because no one * will read this. Only I know is that Repeaters are the best of the world. * Only I know is that Repeaters are the best of the world. Only I know is * that Repea...
const button = document.querySelector('.submito'); texto = document.querySelector('.texto'); const prev = "Previous guesses:"; let container = document.createElement('div'); container.className = 'container'; let correct = document.createElement('p'); correct.textContent = "Congratulations! You got it right!"; corre...
'use strict'; const fs = require('fs'); const paths = require('../config/paths'); // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'test'; process.env.NODE_ENV = 'test'; process.env.PUBLIC_URL = ''; // Makes the script crash on unhandled rejections instead of sil...
import React from "react" import styled from "styled-components" import Image404 from "../images/404.png" import Footer from "../components/footer" import Nav from "../components/nav" const Container404 = styled.div` width: 100vw; min-height: 100vh; display: flex; padding-top: 65px; flex-direction: column; ...
deepmacDetailCallback("782f17000000/24",[{"d":"2018-03-21","t":"add","a":"#401 4F, Achasan-ro, Seongdong-gu SEOUL KR 04793","c":"KR","o":"Xlab Co.,Ltd"}]);
// The MIT License (MIT) // // Copyright (c) 2018-2021 Camptocamp SA // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // u...
/* it was created with such script JSON.stringify( $$('tr').reduce( (res, node) => { res[node.childNodes[0].textContent] = { value: node.childNodes[1].textContent === '💀' ? '' :node.childNodes[1].textContent.replace('system/', ''), type: node.childNodes[...
const showdown = require("showdown"); const convertPost = rawPost => { try { return new showdown.Converter().makeHtml(rawPost); } catch (err) { return new Error(err); } }; module.exports = { convertPost };
/** ** * Contributed from https://github.com/bellstrand/mongoose-seed-db ****/ const mongoose = require('mongoose'); const read = require('fs-readdir-recursive'); class MongooseSeed { constructor(seedOptions = {}, dbOptions = {}) { this.options = { useFindAndModify: false, useNewUrlParser: true, useUnifi...
var searchData= [ ['index',['index',['../namespaceindex.html',1,'']]], ['py',['py',['../namespaceindex_1_1py.html',1,'index']]] ];
"use strict"; var $___46__46__47_private_46_js__; var $__2 = ($___46__46__47_private_46_js__ = require("../private.js"), $___46__46__47_private_46_js__ && $___46__46__47_private_46_js__.__esModule && $___46__46__47_private_46_js__ || {default: $___46__46__47_private_46_js__}), createPrivateSymbol = $__2.createPriva...
import React from "react"; import { getAllByLabelText } from "@testing-library/dom"; import { Formik } from "formik"; import { MemoryRouter } from "react-router-dom"; import { render, fireEvent, act } from "utils/test-utils"; import BaseSignupForm, { baseInitialValues as initialValues } from "./BaseSignupForm"; cons...
// // officegen: pptx charts // // Please refer to README.md for this module's documentations. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without lim...
!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...
import { LOCAL_STORAGE_KEYS, YOUTUBE, BASE_URL } from "../utils/constant.js"; import { API_KEY } from "../utils/env.js"; import { request } from "../utils/fetch.js"; import { makeQueryString } from "../utils/makeQuery.js"; import { renderYoutubeClip } from "../view/renderYoutubeClip.js"; import { getYoutubeClipInfo, st...
// https://vuex.vuejs.org/en/modules.html const requireModule = require.context('.', true, /\.js$/) const modules = {} requireModule.keys().forEach(fileName => { if (fileName === './index.js') return // Replace ./ and .js const path = fileName.replace(/(\.\/|\.js)/g, '') const [moduleName, imported] = path.s...
const stopwatch = (function () { let displayTime = null; let intervalId = null; let startTime = 60; let time = 0; let timerRunning = false; let timesUp = null; function formatTime(time) { let minutes = Math.floor(time / 60); let seconds = time - (minutes * 60); if (...
class Iframe { constructor({ el, sandboxAttrs = [] }) { if (!el) throw new Error('Expect "el" to mount iframe to!'); this.$el = el; this.sandboxAttrs = sandboxAttrs; } createIframe() { const iframe = document.createElement('iframe'); iframe.setAttribute('sandbox', this.sandboxAttrs.join(' '))...
$(function(){ $('#calendar').fullCalendar({ header: { left: 'prev,next today', // prevYear nextYea center: 'title', right: 'month,agendaWeek,agendaDay', }, buttonIcons:{ prev: 'left-single-arrow', next: 'right-single-arrow', ...
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as createProductAction from './createProductAction'; import Select from 'react-select'; import PropTypes from 'prop-types'; import CheckBoxMaterial from "../../components/common/CheckBoxMaterial"; import T...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const environment_variables_1 = require("../environment.variables"); const keys_1 = require("../utilities/keys"); let environmentService = new environment_variables_1.EnvironmentService('.env'); const rootPath = process.cwd(); const jwtSecret ...
// Coronavirus Command if (CMD_NAME.toLowerCase() == 'covid') { if (args.length == 0) args.push('total'); const child = spawn('python', ['script/covid-api.py', args.join(' ')]) // Print Data from Python Script child.stdout.on('data', (data) => { // Encode Text from Buffer into readable string ...
var Plotly = require('@lib/index'); var Registry = require('@src/registry'); var Plots = require('@src/plots/plots'); var createGraphDiv = require('../assets/create_graph_div'); var destroyGraphDiv = require('../assets/destroy_graph_div'); var failTest = require('../assets/fail_test'); var Lib = require('@src/lib'); d...
const currentTimestamp = () => new Date().getTime(); export default (state = {}, action) => { let key = action.payload.metaKey; switch (action.status) { case 'start': return { ...state, meta: { ...state.meta, [key]: { ...
import sdk from "./1-initialize-sdk.js"; const tokenModule = sdk.getTokenModule( "0x3ec6a25bc8f95f78162eE4406cf5306a7DF860Ad", ); (async () => { try { // Log the current roles. console.log( "👀 Roles that exist right now:", await tokenModule.getAllRoleMembers() ); // Revoke all the su...
#!/usr/bin/env node 'use strict'; var os = require('os'); var path = require('path'); var dotenv = require("dotenv"); var fs = require('fs'); var configPaths = [path.join(os.homedir(), '.config', 'bch-rpc-explorer.env'), path.join(process.cwd(), '.env')]; configPaths.filter(fs.existsSync).forEach(path => { console....
var toArray = function(x) { return Array.prototype.slice.call(x); } // curry/auto is from wu.js (function() { var curry = function (fn /* variadic number of args */) { var args = Array.prototype.slice.call(arguments, 1); var f = function () { return fn.apply(this, args.concat(toArray(arguments))); ...
(function() { // Default to the local version. var path = '../bower_components/jquery/dist/jquery.js'; // Get any jquery=___ param from the query string. var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/); // If a version was specified, use that version from code.jquery.com. if (jqversion) { ...
import { createContext } from 'react'; const user = {}; export const UserContext = createContext({ ...user, setUser: () => {}, });