text
stringlengths
5.97k
41.2k
// ========================================================================= // // tinyxmlsax.js - an XML SAX parser in JavaScript compressed for downloading // // version 3.1 // // ========================================================================= // // Copyright (C) 2000 - 2002, 2003 <NAME> (<EMAIL>), <NAME> a...
/* eslint-disable no-console */ const path = require("path"); const fs = require("fs"); const fse = require("fs-extra"); const glob = require("glob"); const yaml = require("js-yaml"); const chalk = require("chalk"); const handlebars = require("handlebars"); const Mustache = require("mustache"); const { version } = requ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import { Card, CardHeader, CardText } from 'material-ui/Card'; import { Grid, Row, Col, Table, DropdownButton } from 'react-bootstrap'; import _ from 'lodash'; import ShowFields from '.....
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
const { Available, LocationType, VaccineProduct } = require("../../model"); const { parseUsAddress } = require("../../utils"); const crypto = require("crypto"); const csvParse = require("csv-parse/lib/sync"); const getStream = require("get-stream"); const { S3 } = require("@aws-sdk/client-s3"); const { ApiClient } = re...
const { webFrame, remote } = require('electron'); const Store = require('electron-store'); const wsutil = require('./ws_utils'); const WalletShellSession = require('./ws_session'); const config = require('./ws_config'); const syncStatus = require('./ws_constants').syncStatus; const brwin = remote.getCurrentWindow(); co...
/* eslint-disable func-names */ /* eslint-disable prettier/prettier */ /* global d3 */ import enterView from 'enter-view'; // import turf from '@turf/turf' // import turfHelpers from '@turf/helpers' import makeMaps from './makeMaps'; import isMobile from './utils/is-mobile'; let $countryHeaderLarge; let $countryHeade...
/* eslint-disable no-restricted-globals */ /* eslint-disable no-await-in-loop */ // run with: node --max-old-space-size=8192 populate_analytics.js // will oom without the added tag // Load Environment Variables require('dotenv').config(); const mongoose = require('mongoose'); const { winston } = require('../serverjs...
/* * Copyright 2017-2020 Elyra 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 law or agreed ...
ISOMapFlags = { Blocked_Mask: 3, Blocked_Clear: 0, Blocked_Blocked: 1, Blocked_Callback: 2 }; function ISOMapCell() { return { isoplacedobject: null, flags: 0 } } function ISOMapPlacedObject(isomapobject, gx, gy, attributes) { return { isomapobject: isomapobject, ...
import * as clipboard from 'clipboard-polyfill/text' import _ from 'lodash/fp' import * as qs from 'qs' import { Fragment, useEffect, useState } from 'react' import { a, div, h, label, span } from 'react-hyperscript-helpers' import * as breadcrumbs from 'src/components/breadcrumbs' import { requesterPaysWrapper, withRe...
import * as d3 from 'd3'; import materialColors from './materialColors'; import { getDates } from './analysis.utils'; const langNames = new Set(); /* Simple pie chart with D3 */ export function drawPie(data,date, idchart, text, value, donut = true, replace = false){ let width = 330; const height = 430; ...
/* global Map,System */ import { obj, num, arr, string } from 'lively.lang'; import { connect, signal } from 'lively.bindings'; import { TreeData } from 'lively.components'; import { newUUID } from 'lively.lang/string.js'; import { localInterface } from 'lively-system-interface'; const MAX_NODE_THRESHOLD = 1000; // th...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.B2MotorJoint = exports.B2MotorJointDef = void 0; const b2Math_1 = require("../../Common/b2Math"); const b2Joint_1 = require("./b2Joint"); class B2MotorJointDef extends b2Joint_1.B2JointDef { constructor() { super(11 /* e_mo...
import { Vec4 } from '../../../math/vec4.js'; import { ADDRESS_CLAMP_TO_EDGE, FILTER_LINEAR, FILTER_NEAREST, PIXELFORMAT_111110F, PIXELFORMAT_R8_G8_B8_A8, PIXELFORMAT_RGBA16F } from '../../../graphics/graphics.js'; import { drawQuadWithShader } from '../../../graphics/simple-post-effect.js'; import { shaderChunks } fr...
import config from '../../core/config'; import { map, each } from '../../core/utils/iterator'; import dateSerialization from '../../core/utils/date_serialization'; import { getRecurrenceProcessor } from './recurrence'; import dateUtils from '../../core/utils/date'; import { equalByValue } from '../../core/utils/common'...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import i18n from '@dhis2/d2-i18n'; import { Tab, Tabs } from '../../core'; import ValueTypeSelect from './ValueTypeSelect'; import AggregationTypeSelect from './AggregationTypeSelect'; import NoDataColor...
'use strict'; const xlsxPopulate = require('xlsx-populate'); const momentTz = require('moment-timezone'); const { dateFormats, reportNames, } = require('../../admin/constants'); const { weekdaysArray, alphabetsArray, dateStringWithOffset, getEmployeeDetailsString, } = require('./report-utils'); const { d...
import React, {PureComponent,Fragment} from 'react'; import {Divider, message, Card, Row, Col, Table, Button, Form, Modal, Input, Select, Drawer, Tag, Dropdown, Menu, Icon} from 'antd'; import {connect} from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import Ellipsis from '@/components/Ellips...
/** * Copyright (c) 2018, <NAME>. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @@flow */ "use strict"; var Quirk; const ShapeType = { EMPTY: 0, CHALK: 1, LINE: 2, RECTANGLE: 3, properties: { 0: {name: "Empt...
const helpers = require(app_root + '/routes/helpers/helpers'); const CFG = require(app_root + '/config/config'); const fs = require("fs"); const path = require("path"); const C = require(app_root + '/public/constants'); class CsvFileRead { constructor(req, res, full_file_name) { this.inputPath = full_...
import { wCanvas, UMath, Color } from "./wCanvas/wcanvas.js"; import { MapStyle, mapStyleToDict } from "./MapStyle.js"; import { isValidKarnaughMap } from "./validationUtils.js"; /** * @typedef {[Number, Number, Number, Number, [Number, Number, Number]]} Group */ /** * @typedef {Object} DrawOverrideConfig * @pro...
//Try https://davidwalsh.name/destructuring-function-arguments class GameEngine { constructor(opts) { // Initialize Param Vars if (!opts) opts = {} this.xMin = opts.xMin || 0 this.xMax = opts.xMax || 640 this.yMin = opts.yMin || 0 this.yMax = opts.yMax || 480 ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.isImplicitlyInstallablePlugin = exports.ApolloServerBase = void 0; const mock_1 = require("@grap...
import { Col, Input, Row, Form, Select, Typography } from "antd"; import { QRButton } from "components/QRButton/QRButton"; import { $get_exchange_result } from "helpers/bonded"; import { getParams } from "helpers/getParams"; import React, { useEffect, useState, useRef } from "react"; import { useTranslation } from "rea...
import Dotenv from 'dotenv'; import MessageService from '../message/message.service'; import GroupService from '../group/group.service'; import log from '../../config/log4js.config'; import UserService from '../user/user.service'; import consultationGroupModel from '../group/index'; import DialogFlowService from '../di...
/*----------------------------------------------------------------------------------------VARIABLES*/ var gc; //context variable var canvas; //canvas variable var runner = []; //runner object in an array var birds = []; //bird objects in an array var cloudLong = []; //clouds objects...
import React, { useEffect, useState } from "react"; import { Paper, Grid, Modal, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Typography, TextField, Button, Checkbox, FormControlLabel, FormControl, InputLabel, Select, MenuItem, Snackbar, CircularProgress, Table, TableRow, TableBody,...
/*~~~~~~~~~~~~~~~~~~~~~~~~~ VARIABLES ~~~~~~~~~~~~~~~~~~~~~~~~~*/ //HTML element selectors let main = document.querySelector("main"); let header = document.querySelector("header"); let heightMain = 0; //selector of the cards container let cardsContainer = document.getElementById("cardsContainer"); let buttonAction = do...
// # Tween factory // A ___tween___ - _inbetween animation_ - is a small, targeted, time-limited animation where we define the start and end points (_key frames_) of the animation, and a method for calculating the intermediate values between the two (_interpolation_, using an _easing_ function). // // Scrawl-canvas inc...
// TODO: Code this up! let lock_icon = ` <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-lock-fill" fill="green" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 9a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9z"/> <path fill-rule="evenodd" d="M4.5 4a3.5 3.5 0 1 1 7 0v3h-1V...
/** * Created by <NAME> on 2016-11-04. */ import React, { Component } from 'react'; import {connect} from 'react-redux'; import {createSelector} from 'reselect'; import cn from 'classnames'; import {toggleHighlightMonophyly, selectBranchOnFullDendrogram, toggleCheckingBranch, toggleHighlightDuplicate, toggleExte...
/* * @Author: czy0729 * @Date: 2019-02-21 20:36:42 * @Last Modified by: czy0729 * @Last Modified time: 2019-09-14 17:33:04 */ import { AsyncStorage } from 'react-native' import * as WebBrowser from 'expo-web-browser' import { info } from './ui' /** * 安全对象 * @param {*} url */ export function safeObject(object =...
const { OrdStatus, TdData } = require("../utils/enum.js"); const { last, yellow, latestTimestamp } = require("../utils/helpers.js"); const onEvent = require("../handlers/onEvent.js"); /** * @class Strategy * @description General template for a strategy, helper functions are abstracted * Recommend implementing overr...
jQuery(document).ready(function ($) { M.AutoInit(); $("a.sidenav-trigger-lg").click(function (e) { $("body").toggleClass("sidenav-open"); $("#slide-out").removeAttr("style"); }); $(".sidenav").niceScroll(); $("#darkmode-switch").change(function (e) { e.preventDefault(); $("html").toggleClas...
function itemIdExists(id,arr) { return arr.some(function(el) { return el.item_id === id; }); } async function showProductDetails(item, cart){ getFavouriteItemList = favouriteItemList console.log("getFavouriteItemList ", getFavouriteItemList) var detailsHTML = "" detailsHTML += '<div class="con...
/* Calendar APP 01-08-2019 Author: <NAME> */ let Calendar = function () { const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] const MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']...
/* For DatePicker*/ $(document).ready(function () { var date_input = $('input[name="date"]'); //our date input has the name "date" var container = $('.bootstrap-iso form').length > 0 ? $('.bootstrap-iso form').parent() : "body"; date_input.datepicker({ format: 'yyyy-mm-dd', container: contai...
import $ from "jquery"; import {drawAnimation, angToRad} from "webgl/lib/util"; import Matrix4 from "webgl/lib/matrix/Matrix4"; import Vector3 from "webgl/lib/matrix/Vector3"; import Slider from "webgl/lib/slider"; import {initShaders} from "webgl/lib/cuon-utils"; import VERT_SHADER from "../shader/lightedTranslatedRot...
/* PDF objects internally are just javascript objects datatypes: dictionaryProperty Dictionary properties can be arrays, numbers, strings or javascript objects. Arrays are translated to PDF arrays, each component is a property itself Numbers are translated to PDF num...
/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true nomen:true, node:true continue:true*/ /* * Copyright (c) 2012, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ var log4js = require("log4js"), fs = require('fs'...
function mformInterpolate(aStr, parms) { // TODO: Copy Interpolate functionality from GOUtil. } function isEOL(charCode) { //LF CR return (charCode === 0x0A) || (charCode === 0x0D); } function isWS(charCode) { // tab space return (charCode === 0x09) || (charCode === 0x20); } function isQuote(char...
function wl(content) { document.writeln(content); //document.getElementById("frm"+id).innerHTML+=content; //console.log(content); } function WriteDivMatriculaOnline(id) { // ReSharper disable StringLiteralWrongQuotes var complemento = id === 3 ? " banner divForm" : ""; wl('<div class="modal-matri...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');...
/* global ININ CXBus */ /* global $ */ import Ember from 'ember'; import Chance from 'npm:chance'; import { purecloudEnvironmentTld } from '../utils/purecloud-environment'; import config from '../config/environment'; var computed = Ember.computed; export default Ember.Controller.extend({ purecloud: Ember.inject.serv...
function up_wh(){ console.log("updateITEM select wh.."); console.log(localStorage.api_url_server+"NPInventoryWs/V2/is/searchWH"); console.log('{"accessToken":"'+localStorage.token+'","search":""}'); loading(); var select_wh = ""; $.ajax({ url: localStorage.api_url_server+"NPInventor...
import $d from "./dum"; import Swiper from "./swiper"; import RbpBase from "./base"; import RbpCore from "./core"; const RbpCarousel = (($d, swiper, core, base, w, d) => { const rhint = /\((\w+)\|(\w+)\)/; const cactive = "carousel-active", citems = "figure, .slide"; const defaults = { interval: 0, // ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const path = require("path"); const webpackSchema = require("../schemas/WebpackOptions.json"); // TODO add originPath to PathItem for better errors /** * @typedef {Object} PathItem * @property {an...
import React, { useEffect, useState, useRef } from 'react' import './CaseStudyReskin.scss' import LazyBackground from '../utils/LazyBackground' import { graphql, Link, useStaticQuery } from 'gatsby' import { AgilityImage } from "@agility/gatsby-image-agilitycms" import LazyLoad from 'react-lazyload' import Helpers, { a...
$(function () { function submitForm(mode) { var form = $("#addPersons"); var data = form.serializeArray(); $('.error_field').text(""); $('#loadingData').show(); $.post("ajouter_individu", data, function (res) { if (res.invalid_field == 1) { for (var i = res.fields.length - 1; i >= 0; i--) { $(...
import range from "lodash/range"; import { writeTabs } from "./templateHelper"; // common constructor parameters for MintableBaseCrowdsale & MiniMeBaseCrowdsale // [ [solidity data type], [path for lodash.get] ] const makeArrayPath = (len, prefix, postfix = "") => range(len).map(i => `get(data, "${ prefix }.${ i }${...
import React, { useState } from 'react' import { useFormik } from 'formik' import { useHistory } from 'react-router-dom' import { CButton, CCard, CCardBody, CCol, CContainer, CForm, CFormControl, CFormLabel, CInputGroup, CInputGroupText, CRow, CFormSelect, CFormFeedback, } from '@coreui/react'...
'use strict'; var winston = require("winston"); /** * Module dependencies. */ const path = require('path'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), logHandler = require(path.resolve('./modules/mago/server/controllers/logs.server.controller')), d...
import {math as math_} from '../utils/math'; //get rid of compiler mess var math = math_; var MapTrajectory = function(map, p1, p2, options) { this.map = map; this.p1 = p1.clone(); this.p2 = p2.clone(); this.op2 = p2.clone(); var hm1 = this.p1.getHeightMode(); var hm2 = this.p2.getHeightMod...
var DefaultMinWidth = 0, DefaultMinHeight=0; var countTime=0; var outputManger; var reciver = chrome.extension.onMessage; if (!reciver) { reciver = chrome.extension.onRequest; } reciver.addListener(function(request, sender, sendResponse) { console.log("已经收到消息",request,sender); if (request.cmd == 'ADD_PIC...
/* Change this file to get your personal Portfolio */ // To change portfolio colors globally go to the _globalColor.scss file import emoji from "react-easy-emoji"; import CiscoLogo from "./assets/images/ciscoLogo.svg"; import NokiaLogo from "./assets/images/nokiabelllabsLogo.svg"; //SEO Related settings const seo =...
import React, { useContext, useEffect, useState } from 'react' import { Link as NavLink } from 'react-scroll'; import CCSCLogo from '../../../Assets/BlueWithBrackets.png' import EventsContext from '../../../context/EventsContext/EventsContext'; import TeamMemberContext from '../../../context/TeamMemberContext/TeamMembe...
var height = 500; var width = 960; var path = []; var paths = []; var points = []; var swaps = []; var insertions = []; var isAnimate; var pathDistances = []; var distanceMatrix; var N; var solver = function (req, res) { points = JSON.parse(req.body.points); N = points.length; generateDistanceMatrix(); ...
'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(...
//requires let util = require('util'); let EventEmitter = require('events').EventEmitter; let botConfig = require('./config.js'); var request = require('request'); var JsonDB = require('node-json-db'); const Mixer = require('@mixer/client-node'); const ws = require('ws'); const log = require('electron-log'); log.tran...
import { del } from '@/services/tag'; import { setUserStar } from '@/services/users'; import { type, PAYERROR } from '@/utils/utils'; import { connect } from 'dva'; import { Input, Breadcrumb, Icon, Button, Pagination, Divider, DatePicker, Table, Popconfirm, Badge, Card, Form, Row, Col, ...
import React, { useState } from "react"; import { Dialog, DialogActions, DialogContent, DialogTitle, Button, TextField, Grid, Divider, Accordion, AccordionSummary, AccordionDetails, Box, CircularProgress } from "@material-ui/core"; import { ExpandMore } from "@material-ui/icons"; import WearableLabel from "../WearableC...
/*global $, jsbin, _, setTimeout, module */ var helper = require('../helper/global_helper'); var store = require('../chrome/storage'); var renderLivePreview = require('../render/render_live_preview').renderLivePreview; var jsconsole = require('../render/console'); var Panel = require('../editors/panel'); // var PanelF...
//Code for plotting map var w2 = 600; var h = 500; var scale = ((w2-1) / 2 / Math.PI) var rScale; var color2 = ['#ff0066', '#ff4000', '#008000', '#527a7a','Yellow', '#009933', '#ff0000', '#660000', '#002db3','black' ]; //Define map projection var projection = d3.geo.mercator() .center([-73.9, 40.730610,]) .sc...
// Copyright © 2015, 2021 IBM Corp. 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 applicab...
import { composeConverters, defaultIlluminant } from './internals.js'; export function rgbToHsv(r, g, b) { (r /= 255), (g /= 255), (b /= 255); let h, s, v; const min = Math.min(r, g, b); const max = Math.max(r, g, b); const delta = max - min; v = max; if (delta === 0) { // grayscale h = 0; s = 0; } e...
// DONE: https://www.ag-grid.com/javascript-grid-cell-editing/#losingFocusStopsEditing // TODO: https://www.ag-grid.com/javascript-grid-header-rendering/#example-header-group-cells // TODO: https://www.ag-grid.com/javascript-grid-width-and-height/#inside-css-grid-container // TODO: https://stackoverflow.com/questions/4...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _styled = require('styled-components'); var React = require('react'); var index = require('./index-37353731.js'); var web = require('./web-7e5f0d11.js'); var Layout = require('./Layout.js'); var Checkbox = require('./Checkbox.js'); var T...
var UIDebug = false; let drawW = 1000; let drawH = 1000; let drawWp = drawW/1000; let drawHp = drawH/1000; let XLwordWp = 160; let XLwordHp = 160; let LwordWp = 70*drawHp; let LwordHp = 94*drawHp; let MwordWp = 60*drawHp; let MwordHp = 80*drawHp; let SwordWp = 26*drawHp; let SwordHp = 35*drawHp; //...
var toggle_boundary = function () { OSD_control.mask_controller = !OSD_control.mask_controller update_toggle_boundary_info(); remove_mask(); if (OSD_control.mask_controller) add_mask(TBA_control.reg_id); }; var update_toggle_boundary_info = function () { if ($("#tog_result")) $("#tog_result...
'use strict'; import { OrbitControls } from './js/examples/jsm/controls/OrbitControls.js'; import { LineCurve3, Vector3 } from './js/build/three.module.js'; import { RectAreaLightHelper } from './js/examples/jsm/helpers/RectAreaLightHelper.js'; let wndHeight = 400; let wndWidth = 400; ...
const uuid = require('uuid'); const {config, Monitor, GraphParser, logger, bus, state} = require('@ucd-lib/krm-node-utils'); const kafka = bus.kafka; const mongo = state.mongo; /** * @class KrmController * @description Both a source and a sink for kafka events. Listens to the * config.kafka.topics.subjectReady to...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
"use strict"; var app = app || {}; var draw = 'boop'; app.main = { canvas: undefined, ctx: undefined, hoverImg: undefined, now: undefined, targetAngle: undefined, mouse: { x: 0, y: 0 }, MAIN: { radius: 245, shift: 20 }, STATE: { DEFAULT: 0, HOVER: 1, EDIT: 2 }, SCHEDULE_STATE: {...
/* Copyright 2014 Adobe Systems 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 or agreed to in writing, software ...
// eslint-disable-next-line import/no-unresolved import { isNumber } from 'emnida'; import { toArray, of, copyWithin, fill, find, findIndex, flat, flatMap, asc, desc, insert, replace, remove, shuffle, includes, deepFind, ascBy, descBy, reduce, forEach, concat, indexOf, last...
/** * Updating scoreBoard using local storage, * * Updating lastScore using local storage */ $(document).ready(function() { topFive(); $("#lastScoreList li").remove(); lastScores = localStorage.getItem("lastScores"); lastScoresEdited = lastScores.split(".").join("<br>"); /*for (let index = 0...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = require("react"); const helpers_1 = require("./../helpers"); const types_1 = require("./../types"); const EMPTY_SELECTION = []; /** * Hook to enable selection in datagrid * @param initialSelection */ const useSelection = (op...
var wordList = [ "ACNE", "ACRE", "ADDENDUM", "ADVERTISE", "AIRCRAFT", "AISLE", "ALLIGATOR", "ALPHABETIZE", "AMERICA", "ANKLE", "APATHY", "APPLAUSE", "APPLESAUCE", "APPLICATION", "ARCHAEOLOGIST", "ARISTOCRAT", "ARM", "ASLEEP", "ASTRONAUT", "...
/** * Used to send language picker * * @module language * @license MIT */ /** Dependencies */ const db = require('./db'); const start = require('./start'); const config = require('../config'); /** * Sends language message to specified chat * @param {Telegam:Bot} bot Bot that should send help * @param {Mongoos...
'use strict'; exports.__esModule = true; var _exposableEffects; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" ...
function log(msg) { console.log(msg); } /** function predicat pour un set interval avec un compteur */ function buildPredicatWithMaxcount(predicat, _maxcount, labelCounter) { var maxcount = _maxcount || 10; var id = new Date().getTime(); var counterName = "count" + id; var isValidPredicat = typeof predicat =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WHITESPACE_COMMENT1 = -2; exports.WHITESPACE_COMMENT2 = -3; exports.ESCAPED_NEWLINE = -4; const DOUBLE_QUOTE = 34; const SINGLE_QUOTE = 39; const SLASH = 92; const _escapeStrings = { 0: "\\0", 8: "\\b", 9: "\\t", 10: "\...
// This file is part of MusicBrainz, the open internet music database. // Copyright (C) 2015 MetaBrainz Foundation // Licensed under the GPL version 2, or (at your option) any later version: // http://www.gnu.org/licenses/gpl-2.0.txt const { PART_OF_SERIES_LINK_TYPES, PROBABLY_CLASSICAL_LINK_TYPES, VARTIST...
"use strict"; 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.protot...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, withRouter } from 'react-router-dom'; import { Col, Row, Spinner, Label, Input, Button, Badge } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTachometerAlt, faEnvelope, faTic...
/* * Copyright (c) 2016 Internet of Protocols Alliance (IOPA) * Portions Copyright Node.js contributors. * See THIRDPARTY for details of original licenses. * * 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 co...
////////////////////////////////// // // JS IM Library // by Colspan (Miyoshi) // http://colspan.net/ // License : MIT license // // depend jsim_common.js,jsim_keycode.js,jsim_caret.js function JS_IM_setClassName( targetElement, className ){ targetElement.className = className; if( target...
/* * Gekko Javascript Tom DeMark's Sequential indicator * Translated from https://www.tradingview.com/script/t08BkTIg-TD-Sequential/ by Ash * */ // [ INTRO FROM PINESCRIPT ] // This indicator implements a flexible rendition of TD Sequentials // Reference: DeMark Indicators by <NAME> // // TD Indicators: // - TD...
var optionsApp = angular.module( 'optionsApp' , [ 'ngRoute', 'optionsControllers' ] , function( $compileProvider ) { var currentImgSrcSanitizationWhitelist = $compileProvider.imgSrcSanitizationWhitelist(); var newImgSrcSanitizationWhiteList = currentImgSrcSanitizationWhitelist.toString...
import plist from 'plist' import axios from 'axios' import { isString } from './check-types.js' import parseMacho from './macho/index.js' const prettyBytes = require('pretty-bytes') const knownArchiveExtensions = new Set([ 'app', 'dmg', // 'pkg', 'zip', // 'gz', // 'bz2' ]) const notAppFile...
'use strict'; const os = require('os'); const fs = require('fs'); const path = require('path'); const { hrtime } = require('process'); const { spawn } = require('child_process'); const config = require('config'); const Redis = require('ioredis'); const { nanoid } = require('nanoid'); const { PREFIX, matchNetwork, fmtD...
var contador = 0; // numero de itens que tem no formulario var itensForm = 12; // valor que soma na barra de progresso ao passar pelos campos var incremento = 100 / itensForm; var imc = 0; // função apenas para verificar internamente $("input, select").focusout(function () { // para mostrar durante a construção da...
/* --- description: This provides a simple Drop Down menu with infinite levels license: MIT-style authors: - <NAME>, <NAME> requires: - Core/Class.Extras - Core/Element.Event - Core/Selectors provides: [MooDropMenu, Element.MooDropMenu] --- Note: The menu works like a menu in Mac OS X. - The menu isn...
"use strict"; var xssec = require("@sap/xssec"); var xsenv = require('@sap/xsenv'); var axios = require("axios"); var request = require('request'); const rp = require('request-promise'); const dest_service = xsenv.getServices({ dest: { tag: 'destination' } }).dest; const uaa_service = xsenv.getServices({ uaa: { tag: ...
function Piece() { this.x; this.y; this.pos = 0; this.tetro; this.index; this.kickData; this.lockDelay = 0; this.lockLimit = 0 this.shiftDelay = 0; this.shiftDir; this.shiftReleased; this.arrDelay = 0; this.held = false; this.finesse = 0; this.dirty = false; ...
/* global expect:false, weknowhow:false */ const assess = typeof weknowhow !== "undefined" ? window.unassessed : require("../lib/unassessed"); const METHODS_LIST = [ "notToBeTruthy", "toBeTruthy", "notToBe", "toBe", "notToBeTrue", "toBeTrue", "notToBeFalse", "toBeFalse", "notToBeFalsy", "...
/* J Q U E R Y */ /* ***************************************** */ //jquery center jQuery.fn.center = function () { this.css("position","absolute"); this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + $(window).scrollTop()) + "px"); this.css("left", Math.max(0, (($(window).width(...
var MainGame = function() { }; function arraysEqual(a, b) { if (a === b) return true; if (a == null || b == null) return false; if (a.length != b.length) return false; // If you don't care about the order of the elements inside // the array, you should sort both arrays here. for (var i = 0; i...
const IMAGE_CACHE = {}; function reconcileArgs(arg1, arg2) { if (typeof (arg1) === 'function') { return [arg1]; } return [arg2, arg1]; } class Renderer { constructor(root, options = {}) { const { width = 1600, height = 900 } = options; const canvas = document.createElement('canvas'); canvas.wi...