text stringlengths 8.5k 48.7k |
|---|
/*
CyKITv2
CyInterface.js 2018.Feb.06
============================
Written by Warren
CyKITv2 HTML back-end for controlling interface and handling data.
*/
var cyHost = document.getElementById('cyHost').value;
var cyPort = document.getElementById('cyPort').value;
if (cyHost == null) { var cyHost = "1... |
#!/usr/bin/env node
/*
* Jake JavaScript build tool
* Copyright 2112 <NAME> (<EMAIL>)
*
* 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/LICENS... |
'use strict'
import Config from '../Config'
import Tone from 'tone'
import { map } from '../../utils/math'
import EventEmitter from 'eventemitter3'
const MAX_HASH_RATE = 35000000 // maximum hash rate
export default class Audio extends EventEmitter {
constructor (camera, path) {
super()
this.sam... |
// variables
var $header_top = $('.header-top');
var $nav = $('nav');
// toggle menu
$header_top.find('a').on('click', function() {
$(this).parent().toggleClass('open-menu');
});
// fullpage customization
$('#fullpage').fullpage({
sectionsColor: ['#B8AE9C', '#000000', '#F2AE72', '#5C832F', '#B8B89F'],
sec... |
/* File name: main.js
* Author: <NAME>
* Date created:
* Last modified: 27 January 2020
* TO:DO, create all note cards view func in line 147
*/
// ******* MODEL ******* //
const model = {
currentNote: null,
days: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],
DB_NAME: 'notes_app',
DB_VERSI... |
import * as util from '../util';
import * as is from '../is';
import Promise from '../promise';
const styfn = {};
// keys for style blocks, e.g. ttfftt
const TRUE = 't';
const FALSE = 'f';
// (potentially expensive calculation)
// apply the style to the element based on
// - its bypass
// - what selectors match it
s... |
// Copyright 2016 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import Command from 'features/playground/command.js';
import { CommandBuilder } from 'components/command_manager/command_builder.js';
import { ... |
"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]; } } } ... |
const StaticPrefixCollection = Jymfony.Component.Routing.Dumper.StaticPrefixCollection;
const RouteCollection = Jymfony.Component.Routing.RouteCollection;
const firstChars = 'abcdefghijklmnopqrstuvwxyz';
const nonFirstChars = 'abcdefghijklmnopqrstuvwxyz0123456789';
/**
* PhpMatcherDumper creates a PHP class able to ... |
/**
* Created by Mauriel on 5/19/2016.
*/
var resourceTable;
var ACTIONS_COL = 0;
var RESOURCE_TYPE_COL = 1;
var TITLE_COL = 2;
var OWNER_COL = 3;
var DATE_CREATED_COL = 4;
var LAST_MODIFIED_COL = 5;
var SUBJECT_COL = 6;
var AUTHORS_COL = 7;
var PERM_LEVEL_COL = 8;
var LABELS_COL = 9;
var FAVORITE_COL = 10;
var LAST... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var rafz = require('@react-spring/rafz');
var React = require('react');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== '... |
import React from 'react';
import PropTypes from 'prop-types'
import {observer, inject} from 'mobx-react';
import {action, runInAction} from 'mobx'
import * as Xcomp from './observableComponents';
import Tabs from '../tabs'
import Criterion from './criterion'
import Assessment62Okologiskeffekt from './assessment62Oko... |
import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import Joi from 'joi';
import _ from 'lodash';
//
import uuid from 'uuid';
import { Advanced, Basic, Domain, Enums, Managers, Utils } from 'czechidm-core';
import MappingContextComple... |
const BinanceClient = require('binance-api-node').default;
const moment = require('moment');
const _ = require('lodash');
const querystring = require('querystring');
const request = require('request');
const Candlestick = require('../dict/candlestick');
const ExchangeCandlestick = require('../dict/exchange_candlestic... |
'use strict'
let Font = require('css-font')
let pick = require('pick-by-alias')
let createRegl = require('regl')
let createGl = require('gl-util/context')
let WeakMap = require('es6-weak-map')
let rgba = require('color-normalize')
let fontAtlas = require('font-atlas')
let pool = require('typedarray-pool')
let parseRec... |
/* eslint-disable
handle-callback-err,
max-len,
new-cap,
no-return-assign,
no-sequences,
no-undef,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.fro... |
/**
* @name glassbox
* @overview Javascript User Interface (UI) Library
* @homepage <a href="http://www.glassbox-js.com">www.glassbox-js.com</a>
* @status development
* @version 2.0.0
* @last mod 2009/02/23
* @supported<br/>browsers
Internet Explorer 6 higher <br/>
Firefox 1.5 higher ... |
//(function() {
if(typeof(eg_lang) == 'undefined'){
eg_lang = {};
eg_lang.essential_grid_shortcode_creator = 'Essential Grid Shortcode Creator';
eg_lang.shortcode_generator = 'Shortcode Generator';
eg_lang.please_add_at_least_one_layer = 'Please add at least one Layer.';
eg_lang.choose_image = 'Choose Im... |
const OPPONENT_USER = -1;
const OPPONENT_CURRENT_AI = 0;
let g_settings =
{
style :{
titleStyleH1 : { fontFamily: 'Arial', fontSize: 64, color: '#ffff00' },
titleStyleH2 : { fontFamily: 'Arial', fontSize: 32, color: '#ffffff' },
textStyle1 : { fontFamily: 'Arial', fontSize: 16, color: '#80... |
const _ = require('lodash');
const oneLineTrim = require('common-tags/lib/oneLineTrim');
const previousSpec = require('./v3');
const ghostVersions = require('../utils').versions;
const docsBaseUrl = `https://ghost.org/docs/themes/`;
const prevDocsBaseUrl = `https://themes.ghost.org/v${ghostVersions.v3.docs}/docs/`;
con... |
'use strict';
// Include the async package
var async = require("async");
process.env.TZ = 'America/Argentina/Buenos_Aires';
/**
* Module dependencies.
*/
var _ = require('lodash'),
fall = require('async-waterfall'),
path = require('path'),
mongoose = require('mongoose'),
Moment = require('moment'),
... |
var elegilegi = {};
elegilegi.data = {};
elegilegi.load = function (key) {
$.ajax({
'type': 'GET',
'url': 'data/' + key + '.csv',
'dataType': 'text',
'success': function (rawData) {
elegilegi.data[key] = CSVToMap(rawData);
}
});
};
elegilegi.projects = {};
elegilegi.userId = null;
elegilegi.sortingCallba... |
const List = require('./listdocEntity');
const userList = require('../users/userProfileEntity').userModel;
// const logger = require('./../../applogger');
const nodemailer = require('nodemailer');
// let host = 'localhost:8080';
let driver = require('../config/neo4j');
let session = driver.session();
let redis = requir... |
function setACLstatus($elem, elemrole, newroles) {
console.log("newroles-setacl", newroles);
// remove icons
let $icocheck = $elem.find(".fa-check-square");
if ($icocheck && $icocheck.length) {
$icocheck.remove();
}
let $icosquare = $elem.find(".fa-square");
if ($icosquare && $icosq... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _operations = require("../display/operations.js");
var _selection = require("../display/selection.js");
var _view_tracking = require("../display/view_tracking.js");
var _input = require("./input.js");
var ... |
/**
* Copyright 2012-2016, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var isNumeric = require('fast-isnumeric');
var Registry = require('../../registry');
v... |
import definitionsIndex from '../search-parameters/definitions/index.json';
let commonRequestCache = {}; // Map from url to result JSON
// The value of property status in the rejection object when request is aborted due to clearPendingRequests execution
export const HTTP_ABORT = 0;
// The value of property status in ... |
import PropTypes from 'prop-types';
import url from 'url';
import _ from 'underscore';
import { auditDecor } from './audit';
import * as encoding from '../libs/query_encoding';
import { Panel, PanelBody } from '../libs/ui/panel';
import { collapseIcon } from '../libs/svg-icons';
import * as globals from './globals';
im... |
let canvasArray = [];
let canvasParamsArray = [{}, {}, {}, {}, {}, {}];
let paperArray = [];
let paperArrayAll = [];
let imageArray = [];
let imageArrayAll = [];
let fontSize = 20;
let isDragging = false; // For distinguishing click and drag.
let action = "add";
let mouseX = 0;
let mouseY = 0;
function remove(index) {... |
// ***************************************************************************
// Copyright (c) 2014, AssureNote project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistribut... |
import './ControlPanel.less';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import * as classes from '../../../../../constants/classes';
import * as storeUtils from '../../../../../storeUtils';
import UI from '../../../../../ui';
import PopUp fr... |
$(function(){
$("#rateYo").on("rateyo.set", function (e, data) {
var rate=data.rating;
$("#starscoun").val(rate);
});
//$("#getbrochure").click(function () {
getbrochure();
//});
sendrequest();
getdata();
collegecategory();
getFacilities();
getCourses(1);
gets... |
/* Module: VRChatPhotos -- Manages a channel for sharing VRChat photos and screenshots. */
const random = require('meteor-random');
const { MessageEmbed } = require('discord.js');
const pngextract = require('png-chunks-extract');
const Module = require('../Module.js');
const PERM_ADMIN = 'administrator';
const MAX_... |
const battle_only_forms = ['cherrim-sunshine', 'aegislash-blade', 'wishiwashi-school'];
const clickOutsideDropdownMenuListener = (e) => {
$target = $(e.target);
if (!$target.closest('.filter.active :not(label)').length) {
$('.filter.active .dropdown-menu').parent().removeClass('active');
do... |
var assert = require('assert');
var utils = require('../utils');
var config = require('../config');
var ghUtils = require('../ghUtils');
var gh = ghUtils.githubUtils;
const testData = require( './testData' );
const tu = require('./testUtils');
const ISS_FLOW = "Snow melt";
const ISS_RACE = "Ice skating";
const ASSIG... |
(function ($) {
$.datepicker.regional['ru'] = {
monthNames: ['Январь', 'Февраль', 'Март', 'Апрель',
'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь',
'Октябрь', 'Ноябрь', 'Декабрь'],
dayNamesMin: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
monthNamesShort: ['Янв', 'Фев', '... |
var debug = true;
// var is_chief = (navigator.userAgent.indexOf("Chrome") == -1) && (navigator.userAgent.indexOf("Firefox") == -1);
var is_chief = window.location.search.substring(1).indexOf("chief") >= 0;
// the_gs is mainly for chief, it is where it keeps the game state.
// Non-chiefs use it only for two reasons:
//... |
import {version} from '../package.json';
import {cleanPath, ext, parse, nodejsIds, mapId, resolveModuleId} from './id-utils';
import makeSpace from './space';
import _global from './_global';
import {markPromise, isMarkedPromise, serialResults} from './promise-utils';
// Try prefix plugin (like text!mId) or extension ... |
/*
* Copyright 2015-2018 <NAME>, <NAME>, <NAME>, <NAME>
*
* This file is part of WepSIM.
*
* WepSIM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (a... |
////////////////////////////////////////////////////////////////////////////////
// Utility Functions ///////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
"use strict";
var escapeRegExp = function(s) {
return s.replace(/[-\/\\^... |
/*
Automain
*/
import * as autoutils from './autoutils.js';
import * as autolang from './autolang.js';
import * as autoapi from './autoapi.js';
import * as autolist from './autolist.js';
import * as autoform from './autoform.js';
import * as autoview from './autoview.js';
import * as autoedit from './autoedit.js... |
//#region DATEPICKER
/**
* Create a new Datepicker element
* @class
* @classdesc Represents a datepicker element
*/
class Datepicker {
constructor() {
this.classToApply = "datepicker";
this.language = "EN";
this._months = [];
this._days = [];
this.yearSel;
... |
// Factory for creating the bidderAdaptor
// jshint ignore:start
var utils = require('../utils.js');
var bidfactory = require('../bidfactory.js');
var bidmanager = require('../bidmanager.js');
var adloader = require('../adloader.js');
var ADAPTER_NAME = 'INDEXEXCHANGE';
var ADAPTER_CODE = 'indexExchange';
var CONSTAN... |
var preloader = {
preload: function() {
for (var key in gui.assets.audio){
var fileName = gui.assets.audio[key].fileName
game.load.audio(key,`assets/${gui.name}/${fileName}`);
}
for (var key in gui.assets.images){
var asset = gui.assets.images[key];
game.load.image(asset.name, `as... |
import EventEmitter from 'wolfy87-eventemitter'
import $ from 'jquery'
import { WbEvents } from './commonDef'
import { drawingMessageType } from '../../common'
import { Delete, Line, Rect, Round, StraightLine, Text } from '../../common'
import { textSize, getFontSize } from './utils'
let handler = null
export default... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var sql = _interopRequireWildcard(require("pg-sql2"));
var _isSafeInteger = _interopRequireDefault(require("lodash/isSafeInteger"));
var _chunk = _interopRequireDefault(require("lodash/chunk"));
function _inter... |
'use strict';
const periodic = require('periodicjs');
const capitalize = require('capitalize');
const numeral = require('numeral');
const qs = require('query-string');
const moment = require('moment');
const ml = require('ml');
const CONSTANTS = require('../constants');
const references = require('../views/cons... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
const log4js = require('log4js')
const Twit = require('twit')
const sentiment = require('sentiment')
const nlp = require('compromise')
// log levels
const INFO = 'info'
const DEBUG = 'debug'
const RATE = 'rate'
// TODO: move this to config?
const MAX_SEARCH_RESULTS = 20 // max tweets to analyze every 15 minutes for s... |
/*******************************************************************************
* This library file contains OES Processing Network foundation elements
* @copyright Copyright 2021 <NAME>, BTU (Germany)
* @license The MIT License (MIT)
* @author <NAME>
**************************************************************... |
import assert from 'assert';
import {theta as AngleTheta} from '../helpers/Angles';
import {Vector2 as vec2} from 'nd-linalg';
import {clamp, between, roughlyEqual, ROUGHLY_EPSILON} from 'missing-stuff';
export default intersect;
function Intersection(x, y, u, v) {
this.p = vec2.fromValues(x, y);
this.u = u;
this.... |
var $glPPV$react = require("react");
var $glPPV$reactariafocus = require("@react-aria/focus");
var $glPPV$reactariautils = require("@react-aria/utils");
var $glPPV$reactariai18n = require("@react-aria/i18n");
var $glPPV$reactariainteractions = require("@react-aria/interactions");
function $parcel$exportWildcard(dest, ... |
window.onload = function () {
khoiTao();
// Thêm hình vào banner
addBanner("img/banners/banner0.gif", "img/banners/banner0.gif");
var numBanner = 9; // Số lượng hình banner
for (var i = 1; i <= numBanner; i++) {
var linkimg = "img/banners/banner" + i + ".png";
addBanner(linkimg, linkimg);
}
// Khởi động th... |
/**************************************************
** DataSetDataWorld.js
** by: <NAME>
**
** Manage datasets retrieved from data.world
** by the COVID-19 Data Resource Hub
**
** https://data.world/covid-19-data-resource-hub
**
** The data is retrieved by the
** get-data/processDataWorld.py python script
** that con... |
const { EventEmitter } = require('events')
const raf = require('random-access-file')
const isOptions = require('is-options')
const hypercoreCrypto = require('hypercore-crypto')
const c = require('compact-encoding')
const b4a = require('b4a')
const Xache = require('xache')
const NoiseSecretStream = require('@hyperswarm/... |
var canvas;
var gl;
var cubeVerticesBuffers = [];
var cubeVerticesIndexBuffer;
var bufferCount;
var particleMaterials = [];
var particleMaterialIndex = 0;
var frameVerticesBuffer;
var frameIndexBuffer;
// Using multiple framebuffers since can't use multiple color attachments without extensions or webgl2
var rtPosB... |
// http://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit
function post_to_url(path, params) {
// The rest of this code assumes you are not using a library.
// It can be made less wordy if you use one.
var form = document.createElement("form");
form.setAttribute("method", "... |
//https://github.com/SheetJS/sheetjs
const xlsx = require('xlsx');
const fs = require ('fs');
const path = require ('path');
//отримання даних та первинна обробка з Masterdata
function getmasterdataxls (masterdata) {
const masterdataxls = masterdata.pathes.masterdataxls;
const wb = xlsx.readFile(masterdataxls);
... |
/*eslint-disable*/
import {
MathUtils,
Vector3,
LineSegments,
BufferAttribute,
BufferGeometry,
LineBasicMaterial,
Plane,
} from 'three';
export const WGS84_MAJOR_RADIUS = 10;// 6378137.0;
export const WGS84_MINOR_RADIUS = 5; //6356752.314245;
const PI = Math.PI;
const PI2 = PI * 2;
const PI_OVER_2 = PI / 2;
co... |
/*
* Application Insights JavaScript SDK - Web Analytics, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
/**
* ApplicationInsights.ts
* @copyright Microsoft 2018
*/
import { __extendsFn, __assignFn } from "@microsoft/applicationinsights-shims";
import { PageViewPerformance, PageVie... |
'use strict';
const mp25 = Math.pow(2,25);
const vtquery = require('@mapbox/vtquery');
const termops = require('../text-processing/termops');
const feature = require('../util/feature');
const bbox = require('../util/bbox');
const queue = require('d3-queue').queue;
const Locking = require('@mapbox/locking');
const addre... |
/* dat.gui menu */
function parseColour(input) {
if (typeof(input) != 'object') {
//var div = document.createElement('div');
var div = document.getElementById('hidden_style_div');
div.style.color = input;
//This triggers a full layout calc - can slow things down
c = getComputedStyle(div).color;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.authoriseRequest = exports.createSession = undefined;
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _possibleConstructorRetur... |
/* eslint-disable no-await-in-loop */
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com... |
/**
* Style Guide
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import ImagePicker from 'react-native-image-crop-picker';
import {
View,
Alert,
ListView,
ScrollView,
StyleSheet,
Touc... |
/**
* 六星开源商城系统 - 团队十年电商经验汇集巨献!
* ========================================================= Copy right
* 2015-2025 湖南六星教育网络科技有限公司, 保留所有权利。
* ---------------------------------------------- 官方网址:
* http://www.sixstaredu.com 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
* ====================... |
import React, { Component } from 'react';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import { connect } from 'react-redux';
import * as action from '../../../store/actions/producer';
import ProducerService from '../../../services/Producer';
import Http from '... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DEFAULT_ALPHABET = void 0;
exports.alphabetPad = alphabetPad;
exports.averageBetweenStrings = averageBetweenStrings;
exports.baseToString = baseT... |
// tooling
import { convertDtoD, convertGtoD, convertRtoD, convertTtoD, convertNtoRGB, convertHtoRGB } from './conversions';
import Color from './color';
import manageUnresolved from './manage-unresolved';
import parser from 'postcss-values-parser';
/* Transform AST
/* =================================================... |
/**
* Load a json data file of the given name and attach it's
* contents to the global $data.name.
*
* Returns a promise that is resolved when the data is loaded.
*/
async function loadData(version, name) {
return new Promise((resolve, reject) => {
const req = new XMLHttpRequest();
req.addEven... |
/**
* Created by riggs on 2017/9/1
*
* USB HID utility for WebUSB.
*/
import 'improved-map';
import { Binary_Array, Binary_Map, Repeat, Uint8, Padding, Uint, Int, Float, Utf8, Byte_Buffer } from 'binary-structures';
import * as HID from './HID_data';
import { BOS_descriptor, HID_descriptor, HID_item, languages_stri... |
var fs = require('fs');
var FILE_NAME = "stripe-helpers.js";
var NAMESPACE = "endpoint.";
var CODE = '';
var urlsData = {};
var API_DESCRIPTOR = {
"coreResources": [
{"method": "GET", "URL": "/v1/balance"},
{"method": "GET", "URL": "/v1/balance_transactions/:id"},
{"method": "GET", "URL":... |
var search = angular.module('search', ['ngSanitize']),
searchRefinement = [];
function indexOfObjectValueInArray(arr, key, val) {
idx = -1;
for(var i=0, l=arr.length; i<l; i++) {
if(arr[i][key] && arr[i][key] === val) { idx = i; }
}
return idx;
}
/*
Create a service for fetching materials
*/
search.se... |
function speed() {
var sp;
sp = document.getElementsByName("speed")[0].value;
return(sp);
}
function target() {
var galaxy;
var system;
var planet;
galaxy = document.getElementsByName("galaxy")[0].value;
system = document.getElementsByName("system")[0].value;
planet = document.getElementsByName("planet")[0]... |
var CollisionProcessorNull = require('sim/CollisionProcessorNull');
var Constants = require('Constants');
var Object3DUtil = require('geo/Object3DUtil');
var Octree = require('three-octree');
var BVH = require('geo/BVH');
var RaycasterUtil = require('geo/RaycasterUtil');
var _ = require('util/util');
/**
* Collision ... |
function EQ_GET_DATA(){
var ret = {
"name": " lucene-solr working set: {lucene-solr.solr.contrib.prometheus-exporter.main}", "value":600393,
"prmetrics":{"5":1,"6":1,"7":1,"8":1,"9":3,"10":1,"11":1},
"prmetricvalues":{"5":0,"6":21,"7":1,"8":738,"9":28,"10":3,"11":89},
"children": [ {
"name": "org.apache.solr.prome... |
document.body.oncontextmenu = function() {
return false;
};
var start_map = [];
var final_map = [];
var maxCellsInLine = 15;
var minCellsInLine = 1;
var maxFinalMaps = 3;
//Storage.clear('maps');
var visualise = {"visibility": "visible"};
var hide = {"visibility": "hidden"};
//__________________________________... |
'use strict';
const fs = require('fs');
const path = require('path');
const fileUtils = require('./utils/files');
const compressionUtils = require('./utils/compression');
const promiseUtils = require('./utils/promises');
const YAML = require('yamljs');
const rimraf = require('rimraf');
const assert = require("assert")... |
import { html, useState, useEffect, useLayoutEffect, useRef, useContext, useMemo } from "../imports/Preact.js"
import _ from "../imports/lodash.js"
import { utf8index_to_ut16index } from "../common/UnicodeTools.js"
import { PlutoContext } from "../common/PlutoContext.js"
import { get_selected_doc_from_state } from "./... |
// Regular expressions are very powerful, but can be hard to read because they use special characters to make more complex, flexible matches.
// JavaScript has multiple ways to use regexes. One way to test a regex is using the .test() method. The .test() method takes the regex, applies it to a string (which is placed... |
// > CONSTANTS
// >> Timer
const TIMER_RESOLUTION = 16;
// >> ID Generator
const PROCESS_ID = 42;
const PROCESS_NAME = "project";
// > DATA
const ICONS = {
get pause () {
return html`
<svg xmlns="http://www.w3.org/2000/svg" image-rendering="optimizeQuality" shape-rendering="geometricPreci... |
/**
* GriffithCards.js
* - implement a view for a Canvas Collection implementing the Card Interface
* functionality
*/
import { cc_View } from '../../cc_View.js';
import { UniversityDateCalendar } from '../../university-date-calendar.js';
import { CircularProgressBar } from "../../../node_modules/circular-pro... |
// // Functions here will not work on the full page tab of a new sale as there are duplicates
$("#idBtn").on("click", function () {
var id = $("#custId").val();
$.ajax({
url: "/search-customer/" + id,
type: "GET",
data: { id: id },
success: function (data) {
$("#fNa... |
/**
* DevExtreme (esm/ui/lookup.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
getWidth,
getHeight,
getOuterHeight,
ge... |
import React, { Component } from "react";
import { dpcm, models, schema, stats, tMax } from "./schema";
import { BaseToolTip, mobile } from "./BaseToolTip";
const dict = {
data: { e: "data", i: "dato" },
day: { e: "day", i: "giorno" },
desktop: {
e: (
<span>
horizontal zoom: <b>wheel</b> - vertical ... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache Lice... |
var express = require('express')
var router = express.Router()
const BASE_PATH = '/';
const ABS_BASE_PATH = `${BASE_PATH}`;
const RESULT_PATH = '/estimate/result';
router.get('/', function (req, res) {
var data = req.session.data
// sets default data
// data.estimateResult = data.normalAgeMinLump2015;
res.r... |
var px = require("../build/Debug/px");
var scene = px.getScene(0, 0, 1920, 1080);
var MenuBarImage = require("menubar_image");
var globals = require("globals");
// URL to use for locating images for lines, focus lines and arrows
//var urlstart = "http://127.0.0.1/XRE2/XREImages/";
console.log("globals.gUrlStart in O... |
const block_size = 512;
const digitizers = [
'Unknown',
'Demo',
'MiniDigi',
'DD132X',
'OPUS',
'PATCH',
'Digidata 1440',
'MINIDIGI2',
'Digidata 1550'
];
const telegraphs = [
'Unknown instrument (manual or user defined telegraph table).',
'Axopatch-1 with CV-4-1/100',
'Ax... |
const logger = require('./logger');
const utils = require('./utils');
//================================================
// Configuration
//================================================
const config = require('./config.json');
if ( typeof(config.server_port) != 'number' || !config.server_port ) {
config.server... |
/*! Customized Jquery from <NAME>. <EMAIL> : www.templatemela.com
Authors & copyright (c) 2013: TemplateMela - Megnor Computer Private Limited. */
// Megnor Start
jQuery(document).ready(function() {
//=================== Jquery For Lightbox ========================//
Shadowbox.init({
overlayOpacity: 0.8
}, set... |
/**
* Created by jtsjordan on 3/2/17.
*/
// Background
var $background = $( '#backrect' );
// Interface Grouping
var $interface = $( '#interface' );
var $characters = $( '#characters' );
var $character_0 = $( '#character_0' );
var $character_1 = $( '#character_1' );
var $character_2 = $( '#... |
/**
* v1
* 对内提供, 不可跨域
**/
// Guard against loading the script twice
var Piwik, piwik_log, piwik_track;
if (!this.Piwik) {
// Piwik singleton and namespace
Piwik = (function () {
/************************************************************
* Private data
*****************... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { getLayerStyles } from './KeytipLayer.styles';
import { Keytip } from '../../Keytip';
import { Layer } from '../../Layer';
import { BaseComponent, classNamesFunction, getDocument, arraysEqual, warn, isMac } from '../../Utilities';
import { Keytip... |
/*
Editorial by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
(function($) {
var $window = $(window),
$head = $('head'),
$body = $('body');
// Breakpoints.
breakpoints({
xlarge: [ '1281px', '1680px' ],
large: ... |
import { isInteger } from '../../utils/number.js';
import { factory } from '../../utils/factory.js';
import { createSimplifyConstant } from './simplify/simplifyConstant.js';
import { createSimplifyCore } from './simplify/simplifyCore.js';
var name = 'rationalize';
var dependencies = ['config', 'typed', 'equal', 'isZero... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _lodash = _interopRequireDefault(require("lodash.isequal"));
var _classnames = _interopRequireDefault(require("classnames"));
var _utils = require("./u... |
const {invent} = require('./objectCreationUtils')
const Box = require('../class/Box')
const Point = require('../class/Point')
const regex = require('./regex')
const matrixFactory = require('../class/SVGMatrix').matrixFactory
var pathHandlers = {
M: function(c, p, r, p0) {
p.x = p0.x = c[0]
p.y = p0.y = c[1]
... |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Prompt, Redirect } from 'react-router';
import { Button, Row, Col, ButtonToolbar, ButtonGroup, DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown, Nav, NavItem, NavLink } ... |
// This is a port of Google Android `libphonenumber`'s
// `phonenumberutil.js` of 17th November, 2016.
//
// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js
import
{
extractCountryCallingCode,
VALID_DIGITS,
VALID_PUNCTUATION,
PLUS_CHARS,
MAX_LENGTH_FOR_N... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.