text
stringlengths
5.97k
41.2k
import { zeros, create } from "../core"; import { random_fn } from '../core'; // Log-gamma function export function gammaln(x) { var j = 0; var cof = [ 76.18009172947146, -86.50532032941677, 24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, -0.5395239384953e-5 ]; var ser = 1.00000000019001...
var currentEvalHabitoIdUsuario, currentIdAreaOpcionesEvaluacion; var estaCargadoListaHabitoActitud = false; var selectOptions = {}; $(function () { EvaluacionPeriodo(QueryStringCustom.x1); }); function EvaluacionPeriodo(idSubnivel) { $('#tablaAsistenciaWrapper').empty(); $('#Modal_Evaluacion').modal('show'...
const chai = require('chai'); const assert = chai.assert; const expect = chai.expect; const sinon = require('sinon'); import { afterEach } from 'mocha'; import { IframeHelpers, GenericHelpers } from '../../../src/utilities/helpers'; import { LuigiConfig, LuigiI18N, LuigiTheming, LuigiFeatureToggles } from '../../../sr...
"use strict"; let host = window.chrome.webview; let $html = document.documentElement; ///// Toolbar DOM // Simple back and forward buttons let $back = $("div", { id: "back", title: "Back", click: e => { host.postMessage(["back"]); handled(e); }, }); let $forward = $("div", { id: ...
"use strict"; /**! * @module select * @file Contig selection functions. */ /** * Initialize mini plot controls. * @function initSelectCtrl * @param {Object} mo - main object */ function initSelectCtrl(mo) { initSelTools(mo); initInfoCtrl(mo); } /** * Initialize select panel toolbar. * @function initSe...
/* File: profile_image_scripts.js Called From: index.cfm Associated Files: index.cfm, profile_image_scripts.js, image_cropper.js, up_action.cfm, up.cfc Purpose: Implements image upload functionality with error handling. Functions: 1. Remove_URL_Parameters(base_URL) 2. Create_Toggle_La...
import React, { Component } from 'react'; import { Container, Row, Col, Image, Spinner } from 'react-bootstrap'; import { Link, NavLink } from 'react-router-dom'; import { ShopHeader, UploadModal, EditModal, Database, Storage, } from 'components'; import StackGrid from 'react-stack-grid'; import Modal from 'r...
import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import * as XLSX from 'xlsx'; import Button from '../../default_components/Button/Button'; import ChartPreview from '../../default_components/Chart/ChartPreview'; import UploadedFileComponent from '.....
var Alloy = require('/alloy'), Backbone = Alloy.Backbone, _ = Alloy._; function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; } return arg; } function Controller() { require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.slice.call(arguments)); ...
const EmojiDialogItem = require('./EmojiDialogItem.js'); const SearchBox = require('../LeftSidebar/SearchBox.js'); class GIFs extends EmojiDialogItem { constructor(params) { super(params); this._itemHeight = 105; // 100 + 5 padding this._minWidth = 50; this._maxWidth = 250; this._lastOffsetY = null; thi...
"use_strict"; const appName = "JSCalendar"; const today = new Date(); // Time right now. let currentDate = today.getDate(); let currentMonth = today.getMonth() + 1; let currentYear = today.getFullYear(); const maximumAmountOfButtons = [7 * 6]; // Maximum amount of cells in the month-grid. let oldMonthAmountOfDays = ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const crypto_1 = __importDefault(require("crypto")); const user_1 = __importDefault(require("../models/u...
var camera, scene, renderer, controls; /* global THREE */ // Force to always be daytime for now. THREE.is_daytime = true; var init = function () { var light, directionalLight, directionalLight2, directionalLight3; /* Standard THREE.JS stuff */ camera = new THREE.PerspectiveCamera(75, window.innerWidth / ...
import { roundPrice, arrayByClass, coolDown } from '../../shared/helpers.mjs'; import { popUp, popFlash } from '../../shared/popup.mjs'; import { updateQuantityFor, updateSubTotalFor } from '../../shared/update-article.mjs'; import { updateCartQuantity, setCartTotal } from '../../shared/update-cart.mjs'; // Sentry imp...
export { default as Airplay } from './icons/Airplay.svelte'; export { default as AlignCenter } from './icons/AlignCenter.svelte'; export { default as AlignJustify } from './icons/AlignJustify.svelte'; export { default as AlignLeft } from './icons/AlignLeft.svelte'; export { default as AlignRight } from './icons/AlignRi...
function centerModals($element) { var $modals; if ($element.length) { $modals = $element; } else { $modals = $(view.modalVerticalCenterClass + ':visible'); } $modals.each(function (i) { var $clone = $(this).clone().css('display', 'block').appendTo('body'); var top = M...
import path from 'path'; import open from 'better-opn'; import axios from 'axios'; import ip from 'ip'; import commandExists from 'command-exists'; import { Common, Logger, EngineManager, Resolver, FileUtils, PluginManager, Constants, Exec, PlatformManager, ProjectManager } from 'rnv'; const { isPlatformActive } = Pl...
const React = require("react"); const styles = require("./styles.scss"); const d3 = Object.assign( {}, require("d3-selection"), require("d3-scale"), require("d3-transition") ); const ScrollReveal = require("scrollreveal").default; const { ContextConsumer } = require("../ContextProvider"); // Increase > 1.0 or...
var oPatternTable = null; //var oIpPatternTable = null; var sProxyColor = null; var selectedPattern = -1; (function($) { $.fn.extend({ setChecked : function(state) { if (state) return this.filter(":radio, :checkbox").attr("checked", true); else return this.filter(":radio, :ch...
/* global artifacts, contract, it, assert */ /* eslint-disable prefer-reflect */ const Web3 = require('web3') //import expectThrow from './helpers/expectThrow'; const expectThrow = require("./helpers/expectThrow"); const { waitForEvent } = require('./helpers/utils') const localProviderUrl = 'http://localhost:8545' c...
'use strict'; var currentEnv = "dev"; var env = { "dev":{ lat: 45.070312, lon: 7.686856, zoom: 13, colors:{ primary:'wgnred', secondary: 'red' }, language: 'en' }, "pt3":{ lat: 45.070312, lon: 7.686856, zoom: 1...
// import libraries import * as THREE from 'https://threejs.org/build/three.module.js'; import { OrbitControls } from 'https://threejs.org/examples/jsm/controls/OrbitControls.js'; import { TransformControls } from 'https://threejs.org/examples/jsm/controls/TransformControls.js'; import { Rhino3dmLoader } from 'https:...
/* * Copyright 2019 Altran. 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...
var modules = modules || {}; modules.updateApps = { name: 'Map Updater', description: 'Updates From Dusk Till Dawn.', icon: '/gfx/icons/item_map.gif', pages: 'outside', externalApps: { 'dusk-till-dawn': { name: 'From Dusk Till Dawn', directoryId: 14, logo: '/file/25.dat', success: fu...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
const express = require('express') const bodyParser = require('body-parser') const fs = require('fs') const csv = require('csv-parser') const net = require('net') const readCsv = require('./serverModules/csvParseToArray') const Commands = require('./serverModules/VizProjectSpecificCommands') const app = express() con...
const appDetails = chrome.app.getDetails(); const repo = "gadhagod/bell-schedule-extension"; const req = new XMLHttpRequest(); const time = new Date(); const markdownConverter = new showdown.Converter(); const header = document.getElementById("header"); const scheduleTable = document.getElementById("schedule"); const...
const REPLACES = [ {p: /^cough/g, v: 'cou2f'}, {p: /^rough/g, v: 'rou2f'}, {p: /^tough/g, v: 'tou2f'}, {p: /^enough/g, v: 'enou2f'}, {p: /^gn/g, v: '2n'}, {p: /mb$/g, v: 'm2'}, {p: /cq/g, v: '2q'}, {p: /ci/g, v: 'si'}, {p: /ce/g, v: 'se'}, {p: /cy/g, v: 'sy'}, {p: /tch/g, v: '2ch'}, {p: /c/g, v:...
// 初始化Web Uploader var uploader = WebUploader.create({ // 选完文件后,是否自动上传。 auto: false, // swf文件路径 swf: '/js/Uploader.swf', // 文件接收服务端。 server: '/admin/goods/game-ico', // 选择文件的按钮。可选。 // 内部根据当前运行是创建,可能是input元素,也可能是flash. pick: '#filePicker', // 只允许选择图片文件。 accept: { title: 'Images', extensions: 'gif,jpg,jpeg...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _ = require("lodash"); const openapi_schema_validator_1 = require("openapi-schema-validator"); const json_schema_ref_parser_1 = require("@apidevtools/json-schema-ref-parser"); const mock_json_schema_1 = require("mock-json-schema"); const...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Draggable from 'react-draggable'; import get from 'lodash/get'; import isEmpty from 'lodash/isEmpty'; import { TimelineMax } from 'gsap'; import isClient from 'utils/isClient'; import getBounds from 'utils/getBounds'; import getMa...
import { composeOptionsTemplates, createOptionsObject } from "./internal/options"; import { isValidIdentifier } from "./is"; import { assign } from "./object"; import parseBranchedConfig from "./parse-branched-config"; import hasOwn from "./has-own"; // Utility for creating chainable functions // Usage: // // NodeOb...
/** * @Author: <NAME> * @Date: 2017-06-06T11:09:28+02:00 * @Email: <EMAIL> * @Project: Fragole - FrAmework for Gamified Online Learning Environments * @Last modified by: <NAME> * @Last modified time: 2018-05-19T11:09:28+02:00 * @License: MIT * @Copyright: <NAME> */ const Lib = require('../lib/FragoleLib.j...
//import Konva from "./konva.min.js" class MascotStates { constructor() { this.Falling = 0; this.Grabbed = 1; this.Running = 2; this.Walking = 3; this.Standing = 4; this.chatting=5; } getMaxNum() { return 4; } } class DIRECTION { constructor() { this.Right = 0; this.Left = ...
//code sourced here: https://observablehq.com/@d3/bubble-chart /** * class for bubble graph */ class bubble { /** * Constructor for data input. The constructor takes data as input, sets the element as the div "bubble-container" - this puts the entire visulization with the div. The draw function is then called, ...
const React = require('react') import styled, { css } from 'styled-components' import { getCards, QuickFactCard, FAQCard, ClipCard, ArticleCard } from '../components/subtheme' import { Overlay, OverlayHeader, OverlayTitle, OverlayFilter, OverlayBody } from '../components/overlay' const queryString = require(...
// Insert per-day active class counts into analytics.perdays collection // Usage: // mongo <address>:<port>/<database> <script file> -u <username> -p <password> try { logDB = new Mongo("localhost").getDB("analytics") var scriptStartTime = new Date(); var analyticsStringCache = {}; var numDays = 40; var day...
"use strict"; var clone = require("clone"); var BigNumber = require("bignumber.js"); var abi = require("augur-abi"); var constants = require("../constants"); var abacus = require("./abacus"); module.exports = { calculateBuyTradeIDs: function (marketID, outcomeID, limitPrice, orderBooks, address) { var orders =...
// import hre from "hardhat"; const { expect } = require('chai'); const { ethers } = require('hardhat'); const { IUniRouter02_abi } = require('./abi_files/IUniRouter02_abi.js'); const { token_abi } = require('./abi_files/token_abi.js'); const STRATEGY_CONTRACT_TYPE = 'CryptoIndexBinance'; //<-- change strategy type t...
/** * FieldView * --------------------------------- * I am the view of an Field part. * I am an "interim" view intended to display * and edit plain text on a Card. * I should be replaced with a more comprehensive * implementation of Field/FieldView in the future. */ import PartView from './PartView.js'; import ...
/* See license.txt for terms of usage */ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); Components.utils.import("chrome://firetv-comp/content/http-channel.jsm"); var EXPORTED_SYMBOLS = [ "DVBChannel", "DVB_URI_TYPE", "scope", "FBTrace" ]; const Cc = Components.classes; const Ci = Components.interf...
import React, { Component } from 'react'; import propTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; // API services import { createItem, getItemByID, updateItem, deleteItemById } from '../../../utils/ItemAPI'; import { getCollectionNames } from '../../../utils/CollectionAPI'; import { getVen...
var macRomanEncoding = ['.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',...
"use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.app...
class Connection { constructor(url, reconnectTimeout) { this.url = url; this.reconnectTimeout = reconnectTimeout; this.connected = false; } connect() { this.ws = new WebSocket(this.url); this.ws.onopen = this.onOpen.bind(this); this.ws.onmessage = this._onMes...
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 (Object.prototype.hasOwnProp...
var map = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\n' + '0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0\n' + '0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0\n' + '0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0\n' + '0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0\n' + '0,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,1,0\n' + '0,1,1,1,1,0,1,1...
// app.js -- support functions /* eslint-env console, jquery, browser, shared-node-browser */ /* eslint-disable comma-dangle */ /* global Mousetrap, TooltipManager, SettingsJSON, PARAMS, signal, assert, log, debugPrint */ // ---------------------------------------------------------------------------- var viewportUpda...
var _ = require('lodash').mixin(require('lodash-deep')); var async = require('async-chainable'); var colors = require('chalk'); var homedir = require('homedir'); var fs = require('fs'); var fspath = require('path'); var ini = require('ini'); var moduleFinder = require('module-finder'); var mustache = require('mustache'...
var block_id; var block_obj; var nb_cues; var is_loop; /* ** Initialise the popup window for a block ** Differs if it's for a new cue or for an edit */ function init_window_block() { event_selected += url.searchParams.get("event_name"); event_obj = project.list_events[event_selected]; block_obj = {}; document.g...
/* globals jQuery */ /** * Tools for selection. * @module selection * @license MIT * @copyright 2011 <NAME> */ import {NS} from '../common/namespaces.js'; import { isNullish, getBBox as utilsGetBBox, getStrokedBBoxDefaultVisible } from '../common/utilities.js'; import {transformPoint, transformListToTransform, ...
import React from 'react'; import { Grid } from '@material-ui/core'; import Fab from '@material-ui/core/Fab'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import Divider from '@material-ui/core/Divider'; import PropTypes from 'prop-types'; import Snackbar...
import { decrementActiveDropZoneCount, incrementActiveDropZoneCount, ITEM_ID_KEY, printDebug, SHADOW_ITEM_MARKER_PROPERTY_NAME, SHADOW_PLACEHOLDER_ITEM_ID, SOURCES, TRIGGERS } from "./constants"; import {observe, unobserve} from "./helpers/observer"; import {armWindowScroller, disarmWind...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var PropTypes = _interopDefault(require('prop-types')); function _typeof(obj)...
const fs = require('fs'); const request = require('request'); const path = require('path'); const util = require('util'); const exec = util.promisify(require('child_process').exec); const {time: {debounce}} = global.OMEGGA_UTIL; const { PNG } = require('pngjs'); // path in which images are downloaded const DOWNLOAD_F...
const express = require('express'), fs = require('fs'), request = require('request'), compression = require('compression'), MobileDetect = require('mobile-detect'), _ = require('lodash'), path = require('path'), envHelper = require('../helpers/environmentVariablesHelper.js'), tenantHelper = require('../helpers/tenantHe...
"use strict"; /** * @license * Copyright 2018 Google LLC. 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...
let sceneWidth let sceneHeight let camera let scene let renderer let dom let sun let heroRollingSpeed let clock let treesPool let treesInPath let lastTreeReleaseTime = 0 let pathAngleValues let globalRenderID const worldRadius = 26 const rollingSpeed = 0.008 const heroRadius = 0.2 const heroBaseY = 1.8 const gravity...
function setupChalHTML() { let chals_table = new Element("chals_table") let table = "" for (let x = 1; x <= CHALS.cols; x++) { table += `<div id="chal_div_${x}"><img id="chal_btn_${x}" onclick="player.chal.choosed = ${x}" class="img_chal" src="images/chal_${x}.png"><br><span id="chal_comp_${x}">X</span></...
$(function () { JEEGEM.Dict.setSelect("selectPosType","positionType",'1'); loadOrgTree(); loadPreOrgTree(); //新增职务 $('#addPosBtn').on('click', function(e) { //通知浏览器不要执行与事件关联的默认动作 e.preventDefault(); cleanPosForm(); JEEGEM.Model.edit("auPosDiv","新增职务",function(){ var selectType=$("#auP...
var cppCode = ""; cppCode = "// This is an interactive demo, so feel free to change the code and click the 'Run' button.\r\n\r\n"; cppCode += "// This simple program uses the mlpack::neighbor::NeighborSearch object\r\n"; cppCode += "// to find the nearest neighbor of each point in a dataset using the L1 metric,\r...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* * Copyright © 2016-2017 The Thingsboard 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 applicabl...
/* AUTHOR <NAME> Direct Questions -> <EMAIL> Date: 4/11/2018 Notes: Please give credit or don't remove author block */ /** * Excogitation: * * This is a copy/paste library I have been using for years which includes many frequently used javascript specific functions/inquiries/validation methods * * ...
/* jshint esversion: 6 */ import { output, guiUtils, map } from "../libgui/modules.js"; import { circles, Corner, Line, basic } from './modules.js'; /** * detecting disjoint target regions as defined by the circles * making separating polygons around these regions * some may be empty ...
"use strict"; // Defining some variables var _scroll, _wresize, _mobile; var _window = $(window); var _document = $(document); var _body = $('body'); var _tablet = 1020; var _navigationWrapper = $('.navWrapper'); var _navigationWrapperMobile = $('.slicknav_menu'); var _singleNavigationContainer = $('.sf-simple-...
'use strict'; const util = require('../util/util'); const async = require('async'); const _ = require('lodash'); const EVERYONE = '000000000000000000000000'; module.exports = function(router) { const hook = require('../util/hook')(router.formio); /** * Convert the submissions resource access into the common r...
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
/* Copyright 2017 Infor * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
const INTERVAL_MILLIS = 300; const CHANCE_FOOD = 0.6; const CHANCE_FOOD_SPOIL = 0.1; const CHANCE_REMOVE_POISON = 0.3; const CHANCE_SPEED_POWER_UP = 0.2; const CHANCE_TELEPORT_POWER_UP = 0.2; const SPEED_POWER_UP_AMT = 0.1; const SPEED_POWER_UP_DURATION_MILLIS = 5000; const MAX_SPEED_UP = 0.3; const TELEPORT_POWER_UP_D...
import { id, key, toJSON } from "electrode-ota-server-util"; import { isZip, generate, manifestHash } from "electrode-ota-server-model-manifest/lib/manifest"; import { shasum } from "electrode-ota-server-util"; import { alreadyExists, alreadyExistsMsg, notFound, missingParameter, notAuthorized, inval...
const {Builder, logging, Capabilities } = require('selenium-webdriver'); const Koa = require('koa'); const KoaStatic = require('koa-static'); const path = require('path'); const expect = require("expect.js"); const Lamden = require("../../dist/cjs/lamden"); require("dotenv").config(); // https://www.selenium.dev/sele...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import doMath from './lib/MathEngine.js'; import DeferredPromise from './lib/DeferredPromise.js'; import { TTAConstants } from './TTAConstants/TTAConstants.js'; import { getSetting } from './TTAFoundryApiIntegration/Settings/TTASettingsUtils.js'; import { clone, debug, MODULE_NAME } from './TTAUtils/TTAUtils.js'; clas...
import Ember from 'ember'; import d3 from 'npm:d3'; import Rule from '../rule'; import VisualizationFactory from '../visualization/factory'; import PatternMaker from 'khartis/utils/pattern-maker'; import Colorbrewer from 'khartis/utils/colorbrewer'; import config from 'khartis/config/environment'; let DataMixin = Embe...
import _extends from '@babel/runtime/helpers/esm/extends'; import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose'; import * as React from 'react'; import React__default from 'react'; import { formSubscriptionItems, createForm, version as version$1, fieldSubscriptionItems } f...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const path = require("path"); const Tapable = require("tapable"); const Compilation = require("./Compilation"); const Stats = require("./Stats"); const NormalModuleFactory = require("./NormalModuleFact...
NodeList.prototype.toArray = function () { return Array.prototype.slice.call(this); } ///// [Data Structures] function Node(_type, _value, _children) { this.type = _type || ""; this.value = _value || ""; this.children = _children || []; } Node.prototype.stringify = function (level) { level = leve...
//////////////////// ////////// Inspired by EDEngineer https://github.com/msarilar/EDEngineer ////////// ED Modules by <NAME> https://github.com/rkodey ////////// DISCLAIMER!! This script is super-rough, quick-and-dirty. No judgement allowed! :) ////////// Usage: Double-click the JS file" /...
import { get, cloneDeep } from 'lodash'; import { ANNOTATION_FIRST_BOOT, BOOT_ORDER_SECOND, BOOT_ORDER_FIRST, PVC_ACCESSMODE_RWO, TEMPLATE_FLAVOR_LABEL, POD_NETWORK, DISK_PATH_KEY, } from '../../constants'; import { getPxeBootPatch, getAddDiskPatch, getUpdateDescriptionPatch, getUpdateFlavorPatch...
'use strict'; class DoughRequest { constructor(tf, quantity, shape, diameter, length, width, flours, water, yeastType, yeast, salt, oil, sugar, image) { this.shapeCheck = ["Round", "Rectangular"]; this.setTf(tf); this.setQuantity(quantity); this.setShape(shape); this.setFlours(flours); this.setDiameter(d...
/*function getCredentials(callbackFunction) { //getGifCredentials(); var data = { 'grant_type': 'client_credentials', 'apiKey': API_KEY }; var url = 'https://api.clarifai.com/v2/token'; return axios.post(url, data, { 'transformRequest': [ function() { return transformDataToParams(dat...
'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...
import macro from 'vtk.js/Sources/macro'; import Constants from 'vtk.js/Sources/Rendering/OpenGL/HardwareSelector/Constants'; import vtkHardwareSelector from 'vtk.js/Sources/Rendering/Core/HardwareSelector'; import vtkOpenGLFramebuffer from 'vtk.js/Sources/Rendering/OpenGL/Framebuffer'; import vtkSelectionNode from 'vt...
import Vue from 'vue'; import iView from 'iview'; import 'iview/dist/styles/iview.css'; import VueRouter from 'vue-router'; import {routers, otherRouter, appRouter} from './router'; import Vuex from 'vuex'; import Util from './libs/util'; import App from './app.vue'; import Cookies from 'js-cookie'; import Axios from '...
// Declares a "card" object and a factory method for creating one /** Card Object ------------- Title Status Tag(s) Type Description Img **/ // Object that renders data about a post in standardized way for the site class Card { constructor(id, title, status, tagArray, type, description, imgLink) { this.id = ...
const Promise = require('bluebird'); const fs = require('fs'); const Handlebars = require('handlebars'); const request = require('request'); const requireg = require('requireg'); const _ = require('underscore'); const commonFunctions = require('../Utils/co...
'use strict'; const Money = require('..'); const Big = require('big.js'); const should = require('should'); describe('Money', () => { it('should have a Big amount', () => { let money = new Money(10, 'JPY'); money.should.have.property('amount'); money.amount.should.be.instanceof(Big); ...
/** * name : assessments/helper.js * author : Akash * created-date : 22-Nov-2018 * Description : Assessment related helper functionality. */ // Dependencies. const entityAssessorsHelper = require(MODULES_BASE_PATH + "/entityAssessors/helper"); const formsHelper = require(MODULES_BASE_PATH + "/forms/helper"); co...
/* Created by Artisteer v4.3.0.60745 */ /*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, curly:false, browser:true, jquery:false */ /*global jQuery */ var responsiveDesign = { isResponsive: false, isDesktop: false, isTablet: false, isPhone: false, l...
'use strict'; var Base = require('./base'); var fs = require('fs'); var path = require('path'); var util = require('./download-job-util'); var commonUtil = require('./util'); var RETRYTIMES = commonUtil.getRetryTimes(); class DownloadJob extends Base { /** * * @param ossClient * @param config * conf...
import React from 'react'; import brace from 'brace'; import AceEditor from 'react-ace'; import Button from 'react-bootstrap/lib/Button.js'; import DropdownButton from 'react-bootstrap/lib/DropdownButton.js'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger.js'; import ButtonGroup from 'react-bootstrap/li...
/** * @license * Blockly Demos: Block Factory * * Copyright 2017 Google Inc. * https://developers.google.com/blockly/ * * 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://w...
// provide service to handle OAuth based authorization (either 1.0 or 2.0) 'use strict'; const APIServerModule = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/api_server/api_server_module.js'); const fetch = require('node-fetch'); const FormData = require('form-data'); const Base64 = require('base-64'); c...
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
'use strict'; const Command = require('../../utils/Command.js'); class Help extends Command { constructor() { super({ name: 'profile', category: '<:profile:954798416603533382> Profile', description: 'Voir votre profil ou le profil d\'un autre utilisateur', o...
//ensure to have this theory in the theory-sdk release folder when editing otherwise you won't see api documentation on hover //you may need to use ../api/<file> to see documentation depending on ide etc //useful only when making the theory, shows documentation on hover, doesn't actually get used, so you don't need it...
/** * settings.js * * Handles the loading and saving of the users settings. */ /* Event Listeners */ document.getElementById("saveSettings").addEventListener("click", initSettingsSave); document.getElementById("openImport").addEventListener("click", openImport); document.getElementById("openExport").addEventLis...
//$ZEUUX: product/hacker/ss/bs/zeuux-com-upload.uncompressed.js,v 1.20 2010/06/22 02:10:21 xiawu Exp $ var now = new Date(); var g_random = Math.random() + "_" + now.getTime(); var SESSION_KEY = "miaid"; var TARGET_SERVER_URL = "http://uploads.miabaobei.com/upload_web_koubei.php"; var interval = null; var QUERY_INTER...