text
stringlengths
5.97k
41.2k
var esprima = require('esprima'); var escodegen = require('escodegen'); var estraverse = require('estraverse'); var util = require('util'); var eventEmitter = require('events').EventEmitter; var _ = alp._; var path = _.path; var Syntax = require('./syntax.js'); var config = alp.config; var File = require('./fi...
"use strict"; const { Tezos } = require('@taquito/taquito'); const { InMemorySigner } = require('@taquito/signer') const axios = require('axios'); const express = require('express'); const helmet = require('helmet'); const app = express(); const fs = require('fs'); const Redis = require('ioredis'); const ContractLoade...
import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import './css/taskTree.less'; import doT from 'dot'; import 'mdDialog'; import ajaxRequest from 'src/api/taskCenter'; import { listLoadingContent } from '../../utils/taskComm'; import { formatTaskTime, errorMessage, formatStatus...
// Load Environment variables //require('dotenv').load(); // paystack module is required to make charge token call const paystack = require('paystack')('sk_live_fe15d79d28e8ea1b009253c0c0a90b27c639b92b'); const GeoFire = require('geofire'); const functions = require('firebase-functions'); const admin = require('fireb...
// Generated by BUCKLESCRIPT VERSION 3.1.1, PLEASE EDIT WITH CARE 'use strict'; var Block = require("bs-platform/lib/js/block.js"); var Curry = require("bs-platform/lib/js/curry.js"); var Js_list = require("bs-platform/lib/js/js_list.js"); var Belt_List = require("bs-platform/lib/js/belt_List.js"); var Caml_int32 = re...
// http://localhost:3002/ // Use this to hit the locally-running-server's homepage // Required packages and set up ports for local hosting const express = require('express'); const bodyParser = require('body-parser'); const service = require('./index.js'); const app = express(); const port = process.env.PORT || 3002; ...
Vue.prototype.cr = new CommonRequest(); Vue.prototype.sortByKey = sortByKey; Vue.prototype.shuffle = shuffle; Vue.prototype.formatTime = formatTime; Vue.prototype.getDialog = getDialog; Vue.prototype.getBubbles = getBubbles; Vue.prototype.getLines = getLines; Vue.prototype.getConfetti = getConfetti; Vue.prototype.getS...
var appName = storage.getItem(config.storageAppNameKey), appDir = get_app_dir(appName), setup_obj; $(function() { function workOnAwsS3() { formDisplay(); $pubDlg.find('.fileinput').each(initUploadEl); awsS3.getObject({ Bucket: config.s3Bucket, Key: appDir + '/APP_/Upl...
var MAINNET_PUBLIC = 0x0488b21e; // 'xpub' var MAINNET_PRIVATE = 0x0488ade4; // 'xprv' var TESTNET_PUBLIC = 0x043587cf; // 'tpub' var TESTNET_PRIVATE = 0x04358394; // 'tprv' // Create a BIP32 address. // |bytes| is a string and must be a Base58-encoding of a BIP32 extended public or extended private key. var BI...
import React, { Component } from 'react'; import SortableTree, { getTreeFromFlatData, getFlatDataFromTree } from 'react-sortable-tree'; import EditModal from './EditModal.js'; import AddModal from './AddModal.js'; import DeleteModal from './DeleteModal.js'; import FlashcardsModal from './FlashcardsModal.js'; import UUI...
import PropTypes from 'prop-types'; import React from 'react'; import * as d3 from 'd3'; import { injectIntl, FormattedHTMLMessage } from 'react-intl'; import fontSizeComputer from '../../lib/visUtil'; import { WarningNotice } from '../common/Notice'; const localMessages = { noData: { id: 'wordspace.noData', default...
"use strict"; var handleCard = function handleCard(e) { e.preventDefault(); $("#otherMessage").animate({ width: 'hide' }, 350); if ($("#cardPar1").val() == '' || $("#cardPar2").val() == '' || $("#cardPar3").val() == '' || $("#cardPar4").val() == '' || $("#cardPar5").val() == '' || $("#cardPar6").val() == ...
// onerror = "this.onerror=null;this.src=\'' + noimg + '\';" // LANG -EN-ID var lang = new Lang(); lang.dynamic('id', '/js/langpack/id.json'); lang.init({ defaultLang:'en' }); var server_cdn = $("#server_cdn").val(); var ui = { popup: { show: function show(type, message, tittle) { toastr[...
import _ from 'lodash'; import React from 'react'; import axios from 'axios'; import EasyStar from 'easystarjs'; import window from 'global/window'; import document from 'global/document'; import io from 'socket.io-client'; import styled from 'styled-components'; import NPC from '../NPC/NPC'; import Donate from '../Don...
const iconv = require('iconv-lite'); Proj4js.defs['EPSG:2443'] = '+proj=tmerc +lat_0=33 +lon_0=129.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'; Proj4js.defs['EPSG:2444'] = '+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Popover = exports.PopoverPosition = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var React = _interopRequireWildcard(require("react")); var _PopoverBase = _interopRequireDefault(require("../../helpers/P...
import "./style.css"; import * as THREE from "three"; import { Mesh, MeshStandardMaterial, SphereBufferGeometry } from "three"; import * as dat from "dat.gui"; import { UnrealBloomPass } from "three/examples/jsm/postprocessing/UnrealBloomPass.js"; import { EffectComposer } from "three/examples/jsm/postprocessing/Effect...
// External modules const mediasoup = require('mediasoup-client'); // Local modules const { HTTPConnectionClient } = require('./HTTPConnectionClient'); const { SocketConnectionClient } = require('./SocketConnectionClient'); const { LocalMediaStream, RemoteMediaStream, MediaStreamTypes } = require('./MediaStreams'); /...
const express = require('express'); const nunjucks = require('nunjucks'); const fetch = require('node-fetch'); const bcrypt = require('bcrypt-nodejs'); const app = express(); const info = require('./modules/weather-info'); nunjucks.configure('src/views', { express: app, noCache: true }) app.use(express.static...
var OnuDescriptionListSearch = (function () { "use strict"; var onuListTableTbody = $(".onu-list > tbody"); var searchForm = $("#search-input"); var init = function () { $.event.special.inputchange = { setup: function () { var self = this, val; $.dat...
// import daikon from "daikon"; import * as daikon from "daikon"; import pngjs from "pngjs"; import * as cornerstone from "cornerstone-core"; function getString(inputObject){ if (inputObject === null){ return ''; } else { return inputObject.toString(); } } function fakeImage(){ return [0]; ...
var people = [ {name: 'sam', parents: ['brad', 'karen'], level: 0}, {name: 'emily', parents: ['brad', 'karen'], level: 0}, {name: 'willem', parents: ['cherie', 'aj'], level: 0}, {name: 'audrey', parents: ['cherie', 'aj'], level: 0}, {name: 'brad', parents: ['jim', 'liz'], level: 1}, {name: 'karen', parents:...
import React, {useEffect, useLayoutEffect, useRef, useState} from 'react'; import {Alert, FlatList, Text, View} from 'react-native'; import {Formik} from 'formik'; import {Button, ButtonGroup, ListItem} from 'react-native-elements'; import {useDispatch, useSelector} from 'react-redux'; import commonStyles from '../.....
function SynchronizedFirstAid (completeModel) { var self = this; bodyXml = "<AnsweredSurveys>"; var fileMaster = ""; var arrayPhotos = []; self.emailMaster = ko.observableArray(eval(completeModel)); for (var i = 0; i < self.emailMaster().length; i++) { var title = "<answeredSurvey id='3161' name='BIT 12 - LIST...
/* eslint-env node */ "use strict"; const monitor = require('./monitor.js'); const fs = require('fs').promises; const path = require('path'); const config = require("./config.js"); const Octokit = require("@octokit/core").Octokit .plugin(require("@octokit/plugin-throttling")); // how many files per subdirectories ...
/* Copyright (c) 2016 <NAME> [@groundh0g] 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, distrib...
var testArray = new Array(); var testDate = new Date(); var testString = "aaa"; var testVal = 1; var testObj = new myObj; function myObj() { myObj.prototype.testFunc = function () { }; this.testProperty = "test"; } function KeyDown() { //alert(event.altKey); if (event.keyCode == 9) { //TAB 键 } clipboardData.set...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ const __1 = require(".."); const internal_1 = require("../internal"); /** * @hidden */ class ContextInternal { constructor(context) {...
"use strict"; var framework; (function (framework) { var FileParser = /** @class */ (function () { function FileParser(filename, content) { this.filename = filename; this.content = []; for (var _i = 0, _a = content.trim().split('\n'); _i < _a.length; _i++) { ...
"use strict"; // CONSTANTS, VARIABLES var darkmodeButton = (document.getElementById("darkmodeButton")); var kanaDisplay = (document.getElementById("kanaDisplay")); var answer = (document.getElementById("answer")); var feedback = (document.getElementById("feedback")); var next = (document.getElementById("next")); var hi...
/* This file is part of the HeavenMS MapleStory Server Copyleft (L) 2016 - 2019 RonanLana This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 as published by the F...
/*------- Author: <NAME>===tylerchao.sh (at) gmail.com -------*/ //=基本表单验证 var validatorMap = { 'required': ['此项必填', function(element, v, type) { if (type == 'select') { var index = element.selectedIndex; v = element.options[index].value; return index >= 0 && (v != '' &&...
const Discord = require("discord.js") const botconfig = require("../botsettings.json"); const request = require('request'); const xor = require('base64-xor'); module.exports.run = async (bot, message, args) => { level = message.content cmdsplit = (message.content).split(' ')[0] test = level.replace(/ /g, '...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Particle = void 0; const ParticlesOptions_1 = require("../Options/Classes/Particles/ParticlesOptions"); const Shape_1 = require("../Options/Classes/Particles/Shape/Shape"); const Enums_1 = require("../Enums"); const Utils_1 = require("...
var tls = require('tls'); var https = require('https'); var http = require('http'); var express = require('express'); var bodyParser = require('body-parser'); var fs = require('fs'); var crypto = require('crypto'); var nodemailer = require('nodemailer'); var net = require('net'); var app = express(); var pollNumber = ...
// Your code goes here var previousSpeed = 0; //0=parked, 1-2=driving gm.system.watchSpeed(watchSpeedCallback); var dataListener; // id of vehicle data process var rotaryWatcher; //id of rotary watcher process var brakePositionData = []; var acceleratorPositionData = []; var wheelAngleData = []; var svg, margin, widt...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs-extra"); const path = require("path"); const log = require("./log"); const GraphicsApi_1 = require("./GraphicsApi"); const Architecture_1 = require("./Architecture"); const AudioApi_1 = require("./AudioApi"); const VrApi...
Ext.namespace('webmail_reconf_space_op'); var op_ds_reconf; var op_gp_reconf; webmail_reconf_space_op.webmail_reconf = function() { function op_fn_reconf_datastore(){ op_ds_reconf = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: 'webmailReConfirm.auth.do?method=aj_confirm_list', m...
import React, { useEffect, useState } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import $ from "jquery"; // core components import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import serialize from "f...
/** * @file Generate a Windows 10 app package manifest for a web-based application. * @see appx-manifest.html The document this file scripts and depends on. * @see https://docs.microsoft.com/uwp/schemas/appxpackage/appx-package-manifest * @author Paul <<EMAIL>> * @since 2018 * @license CC0-1.0 * The author has ...
import _ from 'lodash'; import { Component, Fragment } from 'react'; import { a, button, div, h, hr, input, label, span } from 'react-hyperscript-helpers'; import Select from 'react-select'; import ReactTooltip from 'react-tooltip'; import { ConfirmationDialog } from '../components/ConfirmationDialog'; import { PageHea...
const express = require('express') const path = require('path') const bodyParser = require('body-parser') const cookieParser = require('cookie-parser') const expressValidator = require('express-validator') const RateLimit = require('express-rate-limit') const csurf = require('csurf') const vhost = require('vhost') cons...
// References: // https://github.com/turbomaze/JS-Fourier-Image-Analysis // https://homepages.inf.ed.ac.uk/rbf/HIPR2/fourier.htm // http://lpsa.swarthmore.edu/Fourier/Series/DerFS.html#Equiv // https://www.reed.edu/physics/courses/Physics331.f08/pdf/Fourier.pdf window.addEventListener("load", () => { const canvas...
var REQ_TYPE = 'GET'; var EARTH_RADIUS_KM = 6371.009; var MIN_STOPS = 1; var MIN_RADIUS = 250; var INCREASE_RADIUS = 250; var MAX_RADIUS = 50000/2; var BUS_STOPS = 'https://raw.githubusercontent.com/desh-eng/wmb_data/master/BusStop.json'; var BUS_ARRIVAL = 'http://datamall2.mytransport.sg/ltaodataservice/BusArrival?Bus...
/** * generate * * @description Generates an engine compliant JSON out of a MapEdit save file * this is a node.js module * * @author <NAME> * @email raphael.marandet(at)gmail(dot)com * @date 2019-06-12 */ const LOOPS = [ '@LOOP_NONE', '@LOOP_FORWARD', '@LOOP_YOYO' ]; const PHYS = [ "@PHYS_NONE"...
var modified = false; var objApp = window.external; var wizEditor; $(function() { var objDatabase = null; var objDocument = null; var objCommon = getObjCommon(); var plainPasteMode = false; // 纯文本粘贴模式 var filesDirName = "index_files/"; // 本地文件目录名,不可更改 var filesFullPath = getLoc...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * * Unless required by appli...
/** * Module dependencies */ var path = require('path'); var util = require('util'); var _ = require('@sailshq/lodash'); var htmlScriptify = require('./html-scriptify'); /** * Adds `res.view()` (an enhanced version of res.render) and `res.guessView()` methods to response object. * `res.view()` automatically rend...
"use strict"; $(function ($) { // Show the navbar links, hide the search box function showNavBarLinks() { var $form = $('#search_form'); var $textbox = $('#search_textbox'); var $links = $('#navbar-links'); $form.removeClass('active'); $links.addClass('active'); ...
var Q = require('q'); var async = require('async'); var models; BackstrapSql = function (m) { models = m; }; ///BEGIN BACKSTRAP QUERY V2 var validQueryOperators = ['exact', 'equals', 'partial', 'like', 'gt', 'gte', 'lt', 'lte', 'between']; function parseQueryParameters(objType, objParams, ix) { var noResObj = {...
'use strict' const fs = require( 'fs' ) const path = require( 'path' ) const { app, ipcMain, globalShortcut, BrowserWindow, Menu } = require( 'electron' ) const { autoUpdater } = require( 'electron-updater' ) const { is, showAboutWindow } = require( 'electron-util' ) const unhandled = require( 'electron-unhandled' ) c...
page = "search"; var baseStat = 180; var defaultFilter = {}; var rawVerifiedData; var verifiedData; var itemInventory = null; var saveNeeded = false; var onlyShowOwnedItems = false; var showNotReleasedYet = false; var filterReady = false; var filters = ["types","elements","ailments","physicalKillers","magicalKillers",...
function AnimatedModel(category, name, model, animations) { this.initialize = ZIL_UTIL.bind(this, function() { this.shape_objs = {}; this.angles = {}; this.width = this.height = this.depth = 0; this.shape_obj = new THREE.Object3D(); this.model_obj = new THREE.Object3D(); ...
import _extends from '@babel/runtime/helpers/esm/extends'; import removeAccents from 'remove-accents'; var rankings = { CASE_SENSITIVE_EQUAL: 9, EQUAL: 8, STARTS_WITH: 7, WORD_STARTS_WITH: 6, STRING_CASE: 5, STRING_CASE_ACRONYM: 4, CONTAINS: 3, ACRONYM: 2, MATCHES: 1, NO_MATCH: 0 }; var caseRanking...
'use strict'; var chai = require('chai'); var util = require('util'); var _ = require('lodash-checkit'); var rewire = require('rewire'); var expect = chai.expect; var matchPattern = rewire('../'); var only = 'only'; // eslint-disable-line no-unused-vars var checkMessages = false; Function.prototype.commentToString ...
#!/usr/bin/node -max_old_space_size=5120 const pscheduler_hosts = [ 'perfsonar-dev.grnoc.iu.edu', //'perfsonar-dev5.grnoc.iu.edu', // removed, does not run pscheduler 'perfsonar-dev8.grnoc.iu.edu', 'perfsonar-liva.lbl.gov', 'perfsonardev0.internet2.edu', 'ps-4-0-xenial.qalab.geant.net', 'ps...
/*global $,extend,ajax*/ function LayerContainer(name,container,mapContainer,layers){ this.initialised(name,container,mapContainer,layers); this.initializeTable(); } LayerContainer.prototype = { initialised:function(name,container,mapContainer,layers){ if(typeof name===undefined)throw Error("LayerContainer...
/* selectiv v1.1.0 for Vue 2+ (c) 2017, <NAME> - http://nerdcave.com */ const SelectivComponent = { template: ` <div class="selectiv-component" @mousedown.prevent="toggleAutocomplete"> <select multiple v-show="false" v-if="!useStringInput" :name="name" v-model="currSelectedValues"> <option v-for=...
// Graph API endpoint to show user profile // let graphApiEndpoint = "https://graph.microsoft.com/v1.0/drives/b!ke3cURxhuEOowDZ8Isx-b0DoOZc1X_lKjcVghFA_3dDELeTyyf9jSKXnDV2F4sCZ/items/01GGBEMY4W4LM2QNPXABAKEYIJXUPIOEQW/children?$filter=startswith(name,'1 Fleet Allocation')"; let graphApiEndpoint = "https://graph.microso...
'use strict' var init = require('../helpers/init') var sauce = require('./sauce') module.exports = { before: function (browser, done) { init(browser, done) }, '@sources': function () { return sources }, 'Execute Simple Contract and Test Terminal': function (browser) { browser.testContracts('Unti...
import { PlatformModule } from '@angular/cdk/platform'; import * as i0 from '@angular/core'; import { InjectionToken, Injectable, RendererFactory2, Optional, Inject, Self, Directive, NgZone, ElementRef, Renderer2, Input, NgModule } from '@angular/core'; import { __decorate } from 'tslib'; import { Subject, from } from ...
//CANVAS VARIABLES var c = document.getElementById("myCanvas"); c.width = window.innerWidth; c.height = window.innerHeight; var ctx = c.getContext("2d"); //GLOBAL VARIABLE DECLARATION var hue=getRandomArbitrary(0,255); var direction=1; timer = "" var date = null var counter = 0 var ga = 0 var randomProperty = functio...
/* * A live-editor, based on contentEditable * * @author <NAME> * @version 2012-12-15 */ /** * Creates a new four-way stack */ function DPContextMap() { this.env = []; this.buf = []; this.sym = []; this.arg = []; } DPContextMap.prototype.count = function() { return this.env.length; }; DPCo...
const words = [ 'a', 'ability', 'able', 'about', 'above', 'accept', 'according', 'account', 'across', 'act', 'action', 'activity', 'actually', 'add', 'address', 'administration', 'admit', 'adult', 'affect', 'after', 'again', 'against', 'age', 'agency', 'agent', 'ago',...
// Generic Strings const root_url = "https://electro-smith.github.io/Programmer" // New changes involve reading from sources.json to find the 'sources' we should pull from // Those sources replace the previously hard coded 'examples.json' file, and should otherwise // function the same. // The changes should primari...
/* eslint-disable */ import React from 'react'; import Link from 'umi/link'; import router from 'umi/router'; import request from '@/utils/axios'; import { Table, Pagination, message, Modal, Divider, Checkbox, Icon, Menu, Dropdown, Tooltip, } from 'antd'; import './index.scss'; import moment from 'm...
var _ = require('lodash'); var sh = require('shelljs'); var path = require('path'); /*global module:false*/ module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.title ...
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ /** * @projectconfig.api.js * - Handlers for Project Configuration * - Interfaces with config api server */ var rest = require(process.mainModule.exports["corePath"] + '/src/serverroot/commo...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stack = void 0; var _common = require("./common"); var _timestamp = require("../util/timestamp"); function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _...
// TODO: doesn't work with e10s -- be sure to launch nightly disabling remote tabs const {Cc, Ci, CC, Cu, components} = require("chrome"); const events = require("sdk/system/events"); const data = require("sdk/self").data; var loggingDB = require("./logging-db"); var httpPostParser = require("./http-...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _intersection2 = _interopRequireDefault(require("lodash/intersection")); var _pick2 = _interopRequireDefault(require("lodash/pick")); var _get2 = _interopRequireDefault(require("lodash/get")); var _gotrueJs...
import { ProgressBar } from "../components/ProgressBar/ProgressBar.js"; import { theme } from "../theme.js"; import { adventures } from "../adventures.js"; import { JobsDetails } from "../JobsDetails/JobsDetails.js"; import { CharacterStatus } from "../components/CharacterStatus/CharacterStatus.js"; import { playerDeat...
"use strict"; /* * Copyright 2008 ZXing 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 applicable ...
import React, { Component } from 'react'; import { Card, CardWithTitle } from '../../components/Card'; import { getAllProvinces, getAllDistricts } from '../../actions/AddressActions'; import { getAllCafe } from '../../actions/CafeActions'; import { createCoupleEvent } from "../../actions/EventActions"; import connect f...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var axios = _interopDefault(require('axios')); var qs = _interopDefault(require('qs')); var debounce = _interopDefault(requir...
Hooks.once('ready', async function () { let defaultLabel = game.i18n.localize("ModularFate.defaultSkillsLabel"); game.settings.register("ModularFate", "skillsLabel", { name: game.i18n.localize("ModularFate.SkillsLabelName"), hint: game.i18n.localize("ModularFate.SkillsLabelHint"), scope:...
'use strict'; const fs = require('graceful-fs'); const util = require('util'); const multer = require('multer'); const db = require(APP_PATH + '/helpers/database.js'); const md5File = require('md5-file/promise'); const permissionManager = require(APP_PATH + '/helpers/PermissionManager.js'); const clientManager = requi...
/*global L, d3*/ /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define, $, jQuery, alert */ var centerOfBostonCoordinates = [42.312626, -71.071870], //center was calculated from the bounds of hand designed grid mymap = L.map('map').setView(centerOfBostonCoordinates...
function embedDiagramMain() { var selectedDiagramInfo = null; var selectedElt = null; var activeTab = 'upload'; var issueId = getUrlParam('issueId'); var attEditor, odEditor = null, gdEditor = null; var curViewer = null; var lastDiagramUrl = null; var opts = { lines: 12, // The number of lines to draw le...
// vars // var colors = [ "#F932FC", "#30E16C", "#FF4242", "#555", "#0B62E6", "#A01E7D", "#139B99" ]; $(document).ready(function(){ // for production // console.log = function() {}; window.sr = ScrollReveal({ duration: 650, delay: 160, scale: 0.95 }); wp_id_global = $("#wp_id").html(); console.log("Th...
//FUNZIONE PER INSERIRE DINAMICAMENTE LA PRESENTAZIONE NEL MIO SITO function onJSON3(json){ let i =0; for(elemento of json){ const container = document.createElement('div'); container.classList.add('info'); container.setAttribute('id',[i]); cons...
import React, { Component } from "react"; import { StyleSheet, FlatList, Text, View, Alert, Dimensions, Platform, RefreshControl, TouchableOpacity, } from "react-native"; import Swipeout from "react-native-swipeout"; import ModalDropdown from 'react-native-modal-dropdown'; import * as R from 'ramda'; ...
import _ from 'lodash'; import React from 'react'; class Commitments extends React.Component { constructor() { super(); this.colors = { "research": "rgb(210,210,255)", "teaching": "rgb(195,240,195)", "service": "rgb(255,222,162)", "personal...
const SERVER_URL = "http://localhost:8080/H2HBABBA3242" // const SERVER_URL = "http://localhost:5500/db.json" // global variable used for storing ID of each checkbox, is used for enabling and disabling EDIT and DELETE buttons. let idArray = [] let FETCH_API_RESULTS_ARR = [] let totalRowCount; let addBtnModal = documen...
'use strict'; var VASTError = require('../vast/VASTError'); var VASTResponse = require('../vast/VASTResponse'); var VASTTracker = require('../vast/VASTTracker'); var vastUtil = require('../vast/vastUtil'); var VPAIDAdUnitWrapper = require('./VPAIDAdUnitWrapper'); var async = require('../../utils/async'); var dom = r...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types = require("@nativescript/core/utils/types"); var file_system_1 = require("@nativescript/core/file-system"); var file_1 = require("../file/file"); var http_request_common_1 = require("./http-request-common"); var application_settings_...
import { createElement } from './libs/viv.js'; import builders from '../dist/webscript.modern.js' //import builders from '../src/webscript.js'; import examples from './examples.js'; //import minify = require('html-minifier-terser'); //const { h1: { text: h1t }, div, h1, h2, span, button, textarea, pre, code } = eleme...
import Animation from './Animation'; import Position from './Position'; import Item from './Item'; import {nextId} from './Id'; import ItemCollection from './ItemCollection'; import TabList from './TabList'; import Attributes from './Attributes'; import {ReusableStyleSheet} from './Style'; import style from '../style/...
import { observable, action, runInAction, configure } from 'mobx'; import * as r from 'ramda'; import { db } from 'js/init_db'; import * as analytics from 'js/analytics'; import * as file_types from 'js/file_types'; import * as get_ms_left from 'js/get_ms_left'; import * as last_background_change_time from 'js/last_ba...
// pages/goods/comment.js var util = require('../../utils/util.js'); var app = getApp(); var buyClearTime = null; var status = require('../../utils/index.js'); function count_down(that, total_micro_second) { var second = Math.floor(total_micro_second / 1000); var days = second / 3600 / 24; var daysRound = Math.f...
// Copyright (c) 2018-2020, <NAME>, <EMAIL> // // 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,...
"use strict"; // Copyright 2014-2016, Google, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// all functions ------------------ function initOutdoor() { "use strict"; $(window).load(function() { "use strict"; $(".loader").fadeOut(500, function() { $("#main").animate({ opacity: "1" }); }); initgalheight(); }); initgalheight(); // css ------------------ $(".hero-title , .team-socia...
/* -*- Mode: js2; tab-width: 4; indent-tabs-mode: nil; -*- * vim: set ts=4 sw=4 et tw=99 ft=js: */ import * as os from '@node-compat/os'; import * as path from '@node-compat/path'; import * as fs from '@node-compat/fs'; import * as child_process from '@node-compat/child_process'; let ...
var dateArrival; var dateDeparture; var totalDaysStay; var stayWeekdayDays; var stayWeekendDays; var stayWeekdayNights; // for gettting total var stayWeekendNights; // for getting total function getCheckInOrCheckOutDate(dateToCheck){ var date = ("0" + dateToCheck.getDate()).slice(-2) var month = ("0" + (da...
import { Emote } from "./Emote.js"; import { EventedGamepad } from "./gamepad/EventedGamepad.js"; import { id, style } from "./html/attrs.js"; import { resizeCanvas } from "./html/canvas.js"; import { Canvas } from "./html/tags.js"; import { isFirefox } from "./html/flags.js"; import { clamp, lerp, project, unproject ...
// load core react + custom components import React from 'react'; import { isMobile } from 'react-device-detect' import styled from 'styled-components' import './css/Analysis.css'; import ChartContainer from '../Components/ChartContainer' import KeyChart from '../Components/KeyChart' import GenreChart from '../Componen...
import "core-js/modules/es.array.concat.js"; import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find.js"; import "core-js/modules/es.array.for-each.js"; import "core-js/modules/es.array.includes.js"; import "core-js/modules/es.array.join.js"; import "core-js/modules/es.array.map.js"; import "...