text
stringlengths
3.07k
16k
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
if ( isDebugingModeEnabled ) { var script = $('<script>', { src: 'js/debugging.mode.history.js' }) script.insertAfter('[src="js/history.js"]') } var updateInterval = 1000 //Fetch data every x milliseconds var currentPages = 0 /* * ELECTRICITY COST AREA * --------------------- */ function ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
'use strict'; console.log('app.js file is connected to our index.html'); let userName = prompt('Hello, what is your name?'); let userNameToUpperCase = userName.toUpperCase(); console.log('userName', userNameToUpperCase); alert('Hello, ' + userName + ' here is your name upper case. ' + userNameToUpperCase); alert('H...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ const path = require("path") // Get paths of Gatsby's required rules, which as of writing is located at: // https://github.com/gatsbyjs/gatsby/tree/fbfe3f63dec23d279a27b54b4057dd611dce74bb/packages/ // gatsby/...
'use strict'; let chlothes = []; let shoes = []; let machine = []; let tools = []; const Cart = function (items) { this.items = items; Cart.allcart.push(this); }; Cart.allcart = []; // array Cart.prototype.addItem = function (product, quantity, price) { this.items = new CartItem(product, quantity, pr...
#!/usr/bin/env node import fs from 'fs'; import json2csv from 'json2csv'; import checker from 'license-checker'; import Command from '../command'; export async function handler(argv) { await new LicensesCommand(argv._, argv).run(); } export const command = 'licenses'; export const description = 'extract licenses...
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
import MaterialDatetimePicker from '../lib/material-datetime-picker.min.js'; import M from '../lib/materialize.min.js'; let MaterialsUtils = { modalInstances: [], initMaterialElements: function (container) { M.Toast.dismissAll(); if (M.updateTextFields) { M.updateTextFields(); ...
const { dirname, basename, normalize } = require('path') const { not: notJunk } = require('junk') const precinct = require('precinct') const requirePackageName = require('require-package-name') const { getNestedDependencies, handleModuleNotFound } = require('./nested') const { getPackageJson } = require('./package_js...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"]...
import assert from "assert/strict" import optimize from "../src/optimizer.js" import * as ast from "../src/ast.js" // Make some test cases easier to read const x = new ast.Variable("x", false) const xpp = new ast.Increment(x) const xmm = new ast.Decrement(x) const return1p1 = new ast.ReturnStatement(new ast.BinaryExpr...
/** * * wechaty: Wechat for ChatBots. * * Class Wechaty * * Licenst: ISC * https://github.com/zixia/wechaty * */ const EventEmitter = require('events') const co = require('co') const log = require('./npmlog-env') const Util = require('./util') class Wechaty extends EventEmitter...
#!/usr/bin/env node 'use strict'; const program = require('commander'); const { TezsterManager } = require('./tezster-manager'); const tezstermanager = new TezsterManager(); /******* To setup tezos nodes on user system */ program .version('0.2.4', '-v, --version') .command('setup') .description('To set up...
"use strict"; const PORT_DEFAULT = 3000; const ROOT_DEFAULT = "/www"; module.exports = function (port = PORT_DEFAULT, root = ROOT_DEFAULT) { const fs = require("fs"); const path = require("path"); const express = require("express"); if (root.endsWith("/")) { root = root.slice(0, -1); } ...
/* Toggle the PopUp Window that displays the quizzes */ function toggleShopWindow() { //Set a variable to contain the DOM element of the overlay var overlay = document.getElementById("overlay_base"); //Set a variable to contain the DOM element of the popup var popup = document.getElementById("popup_bas...
import React, { PropTypes } from 'react'; import moment from 'moment'; import classNames from 'classnames'; import SectionHeader from 'es6!display/section_header'; import { ChangesPage, APINotLoadedPage } from 'es6!display/page_chrome'; import { Grid, GridRow } from 'es6!display/grid'; import * as api from 'es6!ser...
import { _, fs, t, path, isBlank, lazy_require } from 'azk'; import { publish } from 'azk/utils/postal'; import { async } from 'azk/utils/promises'; import { ManifestError } from 'azk/utils/errors'; import Utils from 'azk/utils'; import { default as tracker } from 'azk/utils/tracker'; const AVAILABLE_PROVIDERS = ["doc...
'use strict'; // Initialize any constants const config = require('config'); // Initialize access to local libraries const cliInterface = require('./lib/cli-interface'); // Define the current version let projectVersionNo = config.get('versionNo').toString(); // Initialize the CLI program let program = require('comma...
import {BLOCKS} from "./Blocks" export const WIDTH = 1024 export const HEIGHT = 768 export const NARRATE_HEIGHT = 100 export const CONVO_HEIGHT = 220 export const GROUND_TILE_W = BLOCKS["grass"].size[0] export const GROUND_TILE_H = BLOCKS["grass"].size[1] export const GRID_SIZE = 8 export const MAP_VERSION = 1 export ...
// this.onload = () => { // first(); // }; const second = () => { setTimeout(() => { console.log("Async Hey there!"); }, 2000); }; const first = () => { console.log("Hey there!"); second(); console.log("The end!"); }; //first() console.log("################## PROMISSES ###########################"); ...
import $ from 'jquery'; import unique from 'mout/array/unique'; import { config, translations } from 'grav-config'; import formatBytes from '../utils/formatbytes'; import { Instance as gpm } from '../utils/gpm'; import Notifications from './notifications'; import Feed from './feed'; import './check'; import './...
import React, { Component } from 'react'; import { Deck, Slide, List, ListItem, Heading, Image, Code } from 'spectacle'; import styled, { keyframes } from 'styled-components'; import createTheme from 'spectacle/lib/themes/default'; import CodeSlide from 'spectacle-code-slide'; import PersonalBackgroundSlide from '../.....
import * as Backbone from "backbone"; import * as _ from "underscore"; import _l from "utils/localization"; import toolshed_model from "mvc/toolshed/toolshed-model"; import toolshed_util from "mvc/toolshed/util"; /* global $ */ /* global Galaxy */ var View = Backbone.View.extend({ el: "#center", defaults: []...
import React, { useState, useEffect, useMemo, useCallback, } from 'react'; import { withRouter } from 'react-router-dom'; import { Form, DataSet, Icon, message, Select, Button, TextField, } from 'choerodon-ui/pro'; import { observer } from 'mobx-react-lite'; import { remove } from 'lodash'; import { PromptInput } f...
'use strict'; const semver = require('semver'); const fs = require('fs'); const yaml = require('js-yaml'); const MONGODB_VERSIONS = ['latest', '4.0', '3.6', '3.4', '3.2', '3.0', '2.6']; const NODE_VERSIONS = ['carbon', 'boron', 'argon']; const TOPOLOGIES = ['server', 'replica_set', 'sharded_cluster']; const OPERATING...
/* * 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 n...
'use strict' const requestId = require('./requestId') const CODES = require('./codes') const Query = function(bson, ns, query, options) { var self = this // Basic options needed to be passed in if (ns == null) { throw new Error('ns must be specified for query') } if (query == null) { ...
// Create a solved board of size width x height. export const solvedBoard = (width, height) => { return [width * height - 1].concat([...Array(width * height - 1).keys()]); }; const distance = (a, b, width) => Math.abs(((a / width) | 0) - ((b / width) | 0)) + Math.abs((a % width) - (b % width)); export const isM...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseQueryToSequelize = void 0; const sequelize_1 = require("sequelize"); const query_1 = require("../../helper/query"); function parseWhereQuery(model, query) { if (!query || typeof query !== 'object') { return null; }...
// ``` // @datatype_void // <EMAIL> // webpack.prod.js may be freely distributed under the MIT license // ``` //# Common Configuration and Helpers var helpers = require('../helpers'); // Use `webpack-merge` to merge configs var webpackMerge = require('webpack-merge'); // Common `webpack` configuration for `dev` and `p...
import React, { Component, Children, cloneElement, Fragment } from 'react'; import PropTypes from 'prop-types'; import { inject } from 'lib/Injector'; import ImageSizePresetList from './ImageSizePresetList'; import { formValueSelector } from 'redux-form'; import getFormState from 'lib/getFormState'; import { connect } ...
// Configuration var tori = require('./conf/tori.conf.js'); // Express var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('expre...
var Fiber = Npm.require('fibers'); var url = Npm.require('url'); Oauth = {}; OauthTest = {}; RoutePolicy.declare('/_oauth/', 'network'); var registeredServices = {}; // Internal: Maps from service version to handler function. The // 'oauth1' and 'oauth2' packages manipulate this directly to register // for callback...
import React, { useState } from "react" import { graphql } from "gatsby" import { Box, Container, Grid, Heading, Text, Flex, AspectRatio, } from "@theme-ui/components" import { Link } from "../components/link" import loadable from "@loadable/component" import Layout from "../components/layout" import { ge...
const nid = () => Math.random().toString(36).slice(-9) //generador de ID i = 0 // indice p = 0 // puntero m = [{id:nid(), v:0}] // memoria o = '' const action = (act) => { if(act=='+') { //si la instrucion es '+' if (m[p]) { //si el espacio en memoria existe ...
/* * Even bots want to trade sometimes. * * That's why we created an example that demonstrates how easy it is * to find a villager and trade. * * You can ask the bot to trade with a villager, display the villagers in range * and show what trades a villager has by sending a chat message. */ var mineflayer = requ...
import React, { Fragment, Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createSelector } from 'reselect'; import Helmet from 'react-helmet'; import fontawesome from '@fortawesome/fontawesome'; import { fetchUs...
import __KOOT_GET_DIST_PATH__ from '../../../../utils/get-dist-path'; import { ssrContext as SSRContext, koaContext as KOAContext, } from '../../../../defaults/defines-server'; const fs = require('fs'); const path = require('path'); const vm = require('vm'); /** @type {String} ssr.js 文件内容 */ // let __KOOT_SSR...
import _isNil from "lodash/isNil"; import _assign from "lodash/assign"; import { Helpers, LabelHelpers, Scale, Domain, Data } from "victory-core"; var getData = function (props) { var accessorTypes = ["x", "high", "low", "close", "open"]; return Data.formatData(props.data, props, accessorTypes); }; var reduceData...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeWeakCache = makeWeakCache; exports.makeWeakCacheSync = makeWeakCacheSync; exports.makeStrongCache = makeStrongCache; exports.makeStrongCacheSync = makeStrongCacheSync; exports.assertSimpleType = assertSimpleType; function _gens...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const helpers_1 = require("./helpers"); const prettier_config_1 = require("./prettier-config"); const prettier = require("prettier"); const NEW_LINE = "\r\n"; const NEW_LINE_2 = "\r\n\r\n"; const header = `/**${NEW_LINE} * Auto generated by Th...
/********************************************* * @ <NAME>, <NAME>, <NAME> * Carnegie Mellon University 2022 *********************************************/ import React, {Component} from 'react' import {Table} from 'antd'; let getMean = function (data) { return data.reduce(function (a, b) { return Number(a) + N...
'use strict'; var http = require('http'); var port = 3001; var routeMap = {}; var routeSupport = ['get', 'post', 'put', 'delete']; var callHistory = []; var ROOT_ENDPOINT = /^\/$/i; var API_ENDPOINT = /\/api/i; var CALL_HISTORY_ENDPOINT = /\/_call_requests/i; var COLON_TOKEN = /(:[^:\/]+)[^\/]?/gi; var COLON_REPLACE ...
/* * @Descripttion: * @Author: sunft * @Date: 2020-04-30 10:24:10 * @LastEditTime: 2020-04-30 15:07:48 */ import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Card, Upload, Modal, message, Select, Radio, Icon, Form, Input, notification, Button, } from 'antd'; ...
import fs from 'fs'; import path from 'path'; import addAttributes from '../../../utils/attributes'; /** * Creates the Navigation for the page. * * @param {Array} nav Data for creating the navigation * @param {String} type Defines the type of navigation. (sub | footer | (default: nav)) * @param {Boolean} aria To...
import React from 'react'; import PropTypes from 'prop-types'; import propTypes from '@styled-system/prop-types'; import { truncate } from 'lodash'; import { defineMessages, injectIntl } from 'react-intl'; import Select, { components } from 'react-select'; import styled from 'styled-components'; import { layout, space,...
/* eslint complexity: ["error", 21] */ 'use strict'; var Promise = require('bluebird'); var identityService = require('gitter-web-identity'); var presenceService = require('gitter-web-presence'); var avatars = require('gitter-web-avatars'); var resolveUserAvatarUrl = require('gitter-web-shared/avatars/resolve-user-ava...
/** * Created by damian.warzecha on 2016-08-12. */ /** * sprawdzenie czy dany text występuje w bazie za pomocą ajax, jquery */ $(document).ready(function () { validateInput('[name="reg_login"]', 'login'); validateInput('[name="email"]', 'email'); $("#user").click(function () { showUsersList(...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.Overlay = void 0; var _extends2 = _interopRequireDefault(require("...
import bp from './breakpoints'; const HIDE_INTERVAL_TIMEOUT = 300; const IS_OVER_CLASS = 'is-over'; const IS_ABOVE_CLASS = 'is-above'; const IS_SHOWING_FLY_OUT_CLASS = 'is-showing-fly-out'; let currentOpenMenu = null; let menuCornerLocs; let timeoutId; let sidebar; export const mousePos = []; export const setSidebar...
const { defaultArgs, baseOptions } = require('./config'); const { setLogging, setCustomLogger, log } = require('./utils/log'); const parseProgress = require('./utils/parseProgress'); const parseArgs = require('./utils/parseArgs'); const { defaultOptions, getCreateFFmpegCore } = require('./node'); const { version } = re...
let webcam_output; let poseNet; let poses = []; let wnd = []; let sz = 300; let warn = [] class Slicer{ constructor() { this.data = [] } add(x) { if (this.data.length >= sz) { for (var i = 0; i < 100;++i) this.data.shift(); } this.data.push(x); } obgetMode() { return Sli...
var upColor = '#ec0000'; var upBorderColor = '#8A0000'; var downColor = '#00da3c'; var downBorderColor = '#008F28'; var dataCount = 2e5; var data = generateOHLC(dataCount); var myChart = echarts.init(document.getElementById('main')); var option = { dataset: { source: data }, title: { text...
import React from 'react'; import PropTypes from 'prop-types'; import { compose, pure, withReducer } from 'recompose'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { sortBy, reverse } from 'lodash'; import { Table, Button, Dropdown, Icon } from 'semantic-ui-react'; import { compositeIdT...
var del = require('del'); var gulp = require('gulp'); var typescript = require('gulp-typescript'); var watch = require('gulp-watch'); var exec = require('child_process').exec; var karma = require('karma').Server; var path = require('path'); var runSequence = require('run-sequence'); var through2 = require('through2'); ...
const Message = require("../model/message"); const SealIMClient = require("./SEAL/identityManagement"); const SealGMClient = require("./SEAL/groupManagement"); const logger = require("./logger"); class ChannelServer { constructor(io) { this.io = io; this.seal = { im_client: new SealIMClient(), gm...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const paths = require("path"); const fs = require("fs"); cons...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
load("0d8683db8b3792521a65ad1edba9cf82.js"); load("dada5190587903f93a3604016a6099ce.js"); load("3c5963ebbdec4853c65f16970bfa9a36.js"); load("31a58575345927801eb58823ddd840ef.js"); /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2...
'use strict'; var React = require('react'); var ReactDOM = require('react-dom'); var cloneElement = React.cloneElement; var OverlayMixin = require('./mixins/OverlayMixin'); var assign = require('object-assign'); var dom = require('./utils/domUtils'); var createChainedFunction = require('./utils/createChainedFunction')...
/** * @overview This script runs `electron-builder` with special management of code signing configuration on Windows. * Running this script with no command line parameters should build all targets for the current platform. * On Windows, make sure to set CSC_* or WIN_CSC_* environment variables or the NSIS build will...
const DefaultConfig = require("../resource/defaultConfig"); const Config = require("electron-store"); const dotProp = require('dot-prop'); const cp = require("child-process-es6-promise"); const os = require("os"); const path = require("path"); const request = require("request-promise-native"); const ffi = require("ffi"...
"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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlaywrightDispatcher = void 0; var _net = _interopRequireDefault(require("net")); var _fetch = require("../server/fetch"); var _debugLogger = require("../utils/debugLogger"); var _socksProxy = require("../utils/socksProxy"); va...
const fs = require("fs-extra"), stableVersion = require("../../package.json").version.replace(/\./g, "_"), portalsForStableReplace = require("./buildPortalconfigsReplace"), execute = require("child-process-promise").exec, customPortalsForStableReplace = require("./customBuildPortalconfigsReplace"), ...
// Exported Variable so you finally have OOP In Javascript G (function ($) { var $window = $(window), $body = $('body'), $menu = $('#menu'), $sidebar = $('#sidebar'), $main = $('#main'); // Breakpoints. breakpoints({ xlarge: ['1281px', '1680px'], large: ['981px', '1280px'], medium: ['737px', '980px...
import React, {Component} from 'react'; import { ElectionSystemAPI } from '../../../api'; import {Grid, Typography, withStyles, LinearProgress, Container, AppBar, Toolbar, Fab, Divider} from '@material-ui/core'; import ProfProjectEntry from '../../assets/ProfProjectEntry'; import CreateProject from '../../dialogs/Creat...
//[media] // Uncomment the previous line for testing on webpagetest.org // Sanitize the `attributes` property. function getNodeAttributes(node) { // Inspired by dequelabs/axe-core. if (node.attributes instanceof NamedNodeMap) { return node.attributes; } return node.cloneNode(false).attributes; } // Map no...
/** This variable is initialized as soon as the panel is created. * This is the only way to grab the reference to the window, and then add/remove stuff */ var PanelWindow; /** * This function creates a new panel in devtools */ chrome.devtools.panels.create( "Django Query Profiler", null, "panel_table.html", fu...
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
import React, { useEffect, useState, useRef } from "react"; import { useHistory } from "react-router-dom"; import { AgGridReact } from "ag-grid-react"; import "ag-grid-community/dist/styles/ag-grid.css"; import "ag-grid-community/dist/styles/ag-theme-balham.css"; import { InputGroupButtonDropdown, DropdownToggle,...
import React from 'react' import moment from 'moment' import { FilterItem } from '../../components' import { Form, Button, Row, Col, TreeSelect, DatePicker, Input, Switch, Select,Cascader } from 'antd' import styles from './index.less' import { createDicNodes,jsUtil } from '../../utils' const {createSelectOption} = cre...
/** * @file acrophobia command * @author <NAME> (a.k.a k3rn31p4nic) * @license GPL-3.0 */ let activeChannels = {}; exports.exec = async (Bastion, message) => { if (activeChannels.hasOwnProperty(message.channel.id)) { return Bastion.emit('error', '', Bastion.i18n.error(message.guild.language, 'isGameInUse',...
'use strict'; const fastGlob = require('fast-glob'); const fs = require('fs-extra'); const klaw = require('klaw'); const path = require('path'); const {bgWhite, cyan} = require('kleur/colors'); const {log} = require('../common/logging'); const {runReleaseJob} = require('./release-job'); const {Storage} = require('@goo...
import axios from 'axios'; import moment from 'moment'; import momentBusinessDays from 'moment-business-days'; import momentBusinessTime from 'moment-business-time'; import { FETCH_PLANNING, savePlanning, ADD_PLANNING_IN_DB, UPDATED_PLANNING, DELETE_PLANNING, ADD_SEVERAL_LINE_IN_DB, } from '../actions/launc...
import React, {useEffect, useState} from "react" import {Link, useStaticQuery, graphql} from "gatsby" import {css} from "@emotion/core" import styled from "@emotion/styled" import Img from "gatsby-image"; const Header = () => { // determined if page has scrolled and if the view is on mobile const [scrolled, se...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.originKeyExtractor = exports.capitalise = exports.SNACKBAR_INDENTS = exports.MESSAGES = exports.defaultIconVariant = exports.allClasses = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); v...
/* Simple OpenID Plugin http://code.google.com/p/openid-selector/ This code is licenced under the New BSD License. */ var providers_large = { stackexchange: { name: 'StackExchange', url: 'https://openid.stackexchange.com/', x: -1, y: -518 }, google: { ...
import { patch as applySerializedPatch } from "./vdom-serialized-patch-browserified.js"; import { VNode, patch as applyPatch, VText, create as createElement, } from "virtual-dom"; import { fromJson as vdomFromJson } from "vdom-as-json"; import EventCollector from "./client-events.js"; import L2LClient from "liv...
import styled from 'styled-components'; import { BORDER_RADIUS_2 } from '../../../styles/borderRadius'; import { FONT_SIZE_TEXT_LARGE } from '../../../styles/fontSizes'; import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs'; const hasLeftIcon = props => props.icon && props.iconPosition === 'left'; co...
var _ = require('lodash'); var zlib = require('zlib'); var base64 = require('base64-stream'); var path = require('path'); var urljoin = require('url-join'); var mime = require('mime'); var replaceStream = require('replacestream'); var debug = require('debug')('4front:apphost:static-asset'); require('simple-errors'); ...
import * as Adapter from 'src/adapter.js'; import bidfactory from 'src/bidfactory'; import bidmanager from 'src/bidmanager'; import * as utils from 'src/utils'; import {ajax} from 'src/ajax'; import {STATUS} from 'src/constants'; import adaptermanager from 'src/adaptermanager'; const SMARTYADS_BIDDER_CODE = 'smartyads...
function toPlaceValue(value, digits, hasNegativeNumbers, minusSign) { if (hasNegativeNumbers === false && value < 0) return null; if (!minusSign) minusSign = '-'; var sign = ''; if (value < 0) sign = minusSign; if (-1 < value && value < 1) return sign + digits.char...
'use strict'; require(__dirname + '/polyfills'); let Point = require(__dirname + '/Point'); let Matrix = require(__dirname + '/Matrix'); module.exports = class Contour { constructor(points) { this.points = points; } boundingBox() { return { min: new Point(this.points.min(point => point.x), this....
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
'use strict' // SPNEGO linux: https://gist.github.com/dmansfield/c75817dcacc2393da0a7 let urlParser = require('url') let http = require('http') let xmlExact = require('xmlexact') const wsdlDefinition = { definitions: { types: { schema$type: [], schema: { element$type: [], simpleType...
import React, { Component } from 'react'; import { getGradientColor } from '../../utils/colors'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/CardMedia'; impo...
// SceneApp.js import alfrid, { GL, Scene } from 'alfrid'; import gsap from 'gsap'; import Assets from './Assets'; import Config from './Config'; import ViewPlane from './ViewPlane'; import ViewBackground from './ViewBackground'; import ViewNoise from './ViewNoise'; import ViewTooth from './ViewTooth'; import { resiz...
import React, { useRef, useState } from "react"; import Editor from "@monaco-editor/react"; import examples from "./Example/Example"; import axios from "axios"; //styling import { Grid, Paper, Button } from "@material-ui/core"; //dropdown import { makeStyles } from "@material-ui/core/styles"; import InputLabel from "@m...
var lost = false; var began = false; var col; var col2; var col3; var Score = 0; var key = 0; var ActiveBlock; var strngScore; var mode = 1; var act_color = '#8BC34A'; var def_color = '#DCEDC8'; //alternative color: #26A69A var mode = "Classic";//by default var streak = 0; var Csound = new Audio('Press.m...
/** * Crow Tech Asynchronous Functions * Copyright © 2019 <NAME> * * 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...
<!-- var resultString = new Array(' ','Tr&egrave;s faible','Faible','Moyen','Elev&eacute;','Tr&egrave;s &eacute;lev&eacute;'); var resultColors = new Array('#CC0000', '#FF6600', '#FF9900', '#FFFF00', '#CCFF00', '#66FF00'); var bigLists = new Array('<KEY>','nbvcxwmlkjhgfdsqpoiuytreza','<KEY>','mnbvcxzlk...
import { FaExternalLinkAlt, FaGithub } from "react-icons/fa"; import styled, { ThemeContext } from "styled-components"; import BookSvg from "../assets/book.svg"; import CameraSvg from "../assets/camera.svg"; import { Layout } from "../components/Layout"; import LockSvg from "../assets/lock.svg"; import { Paragraph } f...
var assert = require('chai').assert; var sinon; var jsdom = require('mocha-jsdom'); var fs = require('fs'); var vm = require('vm'); describe('yii.activeForm', function () { var yiiActiveFormPath = 'src/assets/yii.activeForm.js'; var yiiPath = 'src/assets/yii.js'; var jQueryPath = 'vendor/bower-asset/jquer...
const fs = require("fs"); const jsdom = require("jsdom"); const { JSDOM } = jsdom; class Config { constructor(obj) { this.watch = obj.watch===true; this.inPointName = obj.inPointName; this._fromPaths = obj.fromPaths; this.targetPath = obj.targetPath; this.gsInd...
/** * GeekBucket 2015 * Author: <NAME> * Define funcionalidad el dashboard de booking * */ ///////////variables///////////// var dialog; //////////////index////////////// $(document).on('click','.bodyMSGRectRounded',function(){ showModalMessage(this); }); ///////////funciones///////////// $(function() { di...
// // Global variables // var gMessageID = ""; var fTestingMode = false; // // Retrieves a given parameter from the URL string // Note: This function has been copied from ccc.js. // TBD: Refactor the shared scripts // function getParamVal(paramName) { var sQueryVar = location.search.toLowerCase(); return extractPara...
const http = require('http'); const https = require('https'); const EventEmitter = require('events'); const url = require('url'); const socketIo = require('socket.io'); const uuidv1 = require('uuid/v1'); const NestedError = require('nested-error-stacks'); /** * Create a `HttpsTunnelServer` instance. * * @param {Obj...
import setAttribute from './setAttribute' import { createComponent, setComponentProps, unmountComponent } from './componentCycle' /** * * @param {DOM} dom 真实DOM * @param {object} vnode 虚拟DOM * @param {DOM} container 真实DOM容器 * * @description 比较真实DOM和虚拟DOM,并将最终得到的真实DOM放入真实DOM容器中 * */ export function diff (dom, v...