text
stringlengths
8.5k
48.7k
import chai from 'chai'; import dirtyChai from 'dirty-chai'; import BigNumber from 'bignumber.js'; import moment from 'moment'; import expectRevert from './helpers/expectRevert'; import time from './helpers/time'; const { expect } = chai; chai.use(dirtyChai); const TEST_ACCOUNTS = require('./accounts.json').accounts...
import { readFileSync } from 'fs'; import Redis from 'ioredis'; import Redlock from 'redlock'; import { RedisPubSub } from 'graphql-redis-subscriptions'; import * as R from 'ramda'; import { create as createJsonDiff } from 'jsondiffpatch'; import conf, { booleanConf, configureCA, DEV_MODE, ENABLED_CACHING, logApp } fro...
/*************************** Drag & drop support ********************/ DragNDrop = Ember.Namespace.create(); DragNDrop.cancel = function(event) { event.preventDefault(); }; DragNDrop.Draggable = Ember.Mixin.create({ attributeBindings: 'draggable', draggable: 'true', }); DragNDrop.Droppable = Ember.Mixin...
var app =require('../fixtures/bootstrap'), _ = require('underscore'), vows = require('vows'), assert = require('assert'), fs = require('fs'), util = require('util'), http = require('http'), Multi = require('multi'), EventEmitter = require('events').EventEmitter; app.logging = false; v...
// Copyright 2018 <NAME> // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those t...
const pty = require('node-pty') const log = require('./log') const os = require('os') const { SubTerminal: OldSubTerminal } = require('./old-subterminal') const { getCtlSeqs, CTL } = require('./ctlseqs') const { updateCursor } = require('./cursor') function uniqueId () { return Math.random().toString(36).slice(2) ...
/******************************************************************************* * MIT License * * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without...
var scene; var camera; var renderer; var controls; var TOP = ['Top_Head', 'FR_Head', 'BR_Head', 'FL_Head', 'BL_Head', 'R_Shoulder_Top', 'R_Shoulder_Back', 'R_Bicep', 'R_Elbow', 'R_Wrist_Upper', 'R_Wrist_Lower', 'R_Pinky', 'R_Thumb', 'L_Shoulder_Top', 'L_Shoulder_Back', 'L_Bicep', 'L_Elbow', 'L_Wrist_Upper', 'L_Wrist_L...
// PorNo! // @author <NAME> // with help from https://www.w3schools.com/howto/howto_js_todolist.asp // This file is responsible for the addition and deletion of links to the list // of website redirect links // as well as realtime updates for the collection of porn urls in the cloud // and the local machine to use ...
import '@brightspace-ui/core/components/icons/icon.js'; import '@brightspace-ui/core/components/button/button.js'; import '@brightspace-ui/core/components/alert/alert.js'; import '@brightspace-ui/core/components/overflow-group/overflow-group'; import 'd2l-users/components/d2l-profile-image'; import './summary-cards-con...
'use strict'; import Sessions from './sessions'; import Dashbot from 'dashbot'; import config from 'config'; const Chat = require('./Chat'); const Conversation = require('./Conversation'); const EventEmitter = require('eventemitter3'); const express = require('express'); const bodyParser = require('body-parser'); cons...
function clickEl(el) { $(el).click(); } Toast.setTheme(TOAST_THEME.DARK); Toast.setPlacement(TOAST_PLACEMENT.BOTTOM_RIGHT); Toast.setMaxCount(10); function cartEvent(data) { if (data.action == 'cartAdded') { $('#cartCount').html(data.cart_count); $('.cart-btn-a'+data.product_id).addClass('cart-btn-ac...
import React from 'react'; import {withStyles} from '@material-ui/core/styles'; import withWidth from "@material-ui/core/withWidth"; import PropTypes from 'prop-types'; import LinearProgress from '@material-ui/core/LinearProgress'; import ExpansionPanel from '@material-ui/core/ExpansionPanel'; import ExpansionPanelSumm...
/* globals fetch */ import { push, replace } from 'connected-react-router' import haversine from 'haversine' import hash from 'object-hash' import coreUtils from '@opentripplanner/core-utils' import { createAction } from 'redux-actions' import qs from 'qs' import { getStopViewerConfig, queryIsValid } from '../util/sta...
var HOST = "", URL = "", ISSEARCH, OPTION; HOST = window.location.host; var TEXT = "", googleSites = ["www.google.com.hk", "www.google.com.tw", "www.google.co.jp", "www.google.cn", "www.google.co.kr", "www.google.co.th", "www.google.de", "www.google.fr", "www.google.co.uk", "www.google.com.gr", "www.google.com.au", "ww...
const lvr = [{ lv: 80, r: 0 }, { lv: 80, r: 4 }, { lv: 80, r: 5 }, { lv: 90, r: 0 }, { lv: 90, r: 4 }, { lv: 90, r: 5 }, { lv: 100, r: 0 }, { lv: 100, r: 4 }, { lv: 100, r: 5 }]; let ranking; let boss; const langs = { ja: { lang: '', ...
// code is from https://github.com/AnAppAMonth/linewrap // Presets var presetMap = { 'html': { skipScheme: 'html', lineBreakScheme: 'html', whitespace: 'collapse' } }; // lineBreak Schemes var brPat = /<\s*br(?:[\s/]*|\s[^>]*)>/gi; var lineBreakSchemeMap = { 'unix': [/\n/g, '\n'], ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* jshint quotmark:double, newcap:false */ "use strict"; /** * This file is taken from Promise-backend.js from m...
// By <NAME> // www.simonsarris.com // <EMAIL> // // Last update December 2011 // // Free to use and distribute at will // So long as you are nice to people, etc // Constructor for Shape objects to hold data for all drawn objects. // For now they will just be defined as rectangles. function Shape(x, y, w, h, fill) { ...
import EventEmitter from 'component-emitter'; import sift from 'sift'; import { sorter, select, AdapterService } from '@feathersjs/adapter-commons'; import { _, hooks, stripSlashes } from '@feathersjs/commons'; import errors from '@feathersjs/errors'; import ls from 'feathers-localstorage'; import { genUuid, to, Option...
/*A linguagem JavaScript é projetada com base em um simples paradigma orientado a objeto. Um objeto é uma coleção de propriedades, e uma propriedade é uma associação entre um nome (ou chave) e um valor. Um valor de propriedade pode ser uma função, que é então considerada um método do objeto. Além dos objetos que são...
const Discord = require("discord.js"); let client = new Discord.Client(); const starter = require("../addons/starter.js"); let remote = "<br />NO MESSAGES FOUND"; global.inv = "<br />NO INVITE FOUND"; const {inspect} = require('util'); let cmdr = ""; let loggedin = false; let eoc = false; process.on('unhandledRejecti...
$(document).ready(function() { p_initialize(); var header = $('.navbar'); $(window).scroll(function () { if ($(this).scrollTop() > 0) { header.addClass("navbar-offset"); } else { header.removeClass("navbar-offset"); } }); }); function p_in...
/*This programm based on the project: <NAME> Extreme In this version has added next updates: - was change bever to the OhNoesGuy - done - was add sounds for OhNoesGuy hops - done - was add change gems to the gem - done - was add the screen of choose username - done - was add level with holes in the ground - done ...
$(document).on('show','.accordion', function (e) { //$('.accordion-heading i').toggleClass(' '); $(e.target).prev('.accordion-heading').addClass('accordion-opened'); }); $(document).on('hide','.accordion', function (e) { $(this).find('.accordion-heading').not($(e.target)).removeCl...
const { URL } = require('url') const fs = require('fs') const dns = require('dns').promises const path = require('path') const http = require('http') const https = require('https') const Wappalyzer = require('./wappalyzer') const { setTechnologies, setCategories, analyze, analyzeManyToMany, resolve } = Wappalyzer f...
/** * @version 0.9 */ import React, { Component } from 'react' import { connect } from 'react-redux' import { View, ScrollView, Keyboard, Text, TouchableOpacity } from 'react-native' import { KeyboardAwareView } from 'react-native-keyboard-aware-view' import firebase from 'react-native-firebase' import AsyncStora...
/* copyright (c) 2018 jones http://www.apache.org/licenses/LICENSE-2.0 开源项目 https://github.com/jones2000/HQChart <EMAIL> 全局配置颜色 */ function JSChartResource() { this.TooltipBGColor = "rgb(255, 255, 255)"; //背景色 this.TooltipAlpha = 0.92; //透明度 this.SelectRectBGColor...
'use strict'; /* eslint max-lines:off */ /* eslint max-statements-per-line:off */ let NAVPROP_TRENNER = '_'; let VALUELIST_NAVPROP_PREFIX = ''; const edmUtils = require('./edmUtils.js') const { initializeModel } = require('./edmPreprocessor.js'); const translate = require('./annotations/genericTranslation.js'); cons...
const EventEmitter = require('events'); const mongoose = require('mongoose'); const ValidationError = require('../errors/validation'); module.exports = class StarService extends EventEmitter { constructor(gameRepo, randomService, nameService, distanceService, starDistanceService, technologyService, specialistServ...
import QRCode from 'qrcode'; import { proto } from './lib/trace_location_pb'; import { encode } from 'uint8-to-base64'; import dayjs from 'dayjs'; import Cleave from 'cleave.js'; import Papa from 'papaparse'; import { jsPDF } from "jspdf"; import 'regenerator-runtime/runtime'; import $ from 'jquery'; import 'slick-caro...
/** **/ var TM = {}; TM.registerHandle = function(_funcname, func){ if(_funcname){ if(typeof TM[_funcname] != "undefined" && typeof TM[_funcname] != "null"){ var _fun = TM[_funcname]; if(typeof _fun == "function"){ return true; } } eval("TM."+_funcname+" = func"); } }; /* var _hmt = _hmt || []; (...
import React, { useEffect, useCallback, useState } from 'react'; import _ from 'underscore'; import { Collapse } from 'react-collapse'; import { TextField } from '@material-ui/core'; import Autocomplete from '@material-ui/lab/Autocomplete'; import { makeStyles } from '@material-ui/core/styles'; import SimpleTable from ...
// ==UserScript== // @name Fair Game QoL v1 // @namespace https://fair.kaliburg.de/# // @version 0.425 // @description Fair Game QOL Enhancements // @author Aqualxx // @match https://fair.kaliburg.de/ // @include *kaliburg.de* // @run-at document-end // @icon https://www...
const worldMap = [ [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1], [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], [1,0,0,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], [1,0,0,3,0,3,0,0,1,1,1,2,1,1,1,1,1,2,1,1,1,2,1,0,0,0,0,0,0,0,0,1], [1,0,0,3,0,4,0,0,0,0,0,...
/** Sprite3Dが可視範囲にいるか. */ enchant.gl.Sprite3D.prototype.inScreen = function() { // return -VIEWPORT_H <= this.z && this.z <= VIEWPORT_H && -VIEWPORT <= // this.y // && this.y <= VIEWPORT; var sc = this.screenCoord(); return (0 <= sc.x && sc.x < GAME_WIDTH && 0 <= sc.y && sc.y < GAME_HEIGHT); }; /** Sprite3Dが存在範囲にい...
import goldenField from '../fields/golden.js' import root2Field from '../fields/root2.js' import root3Field from '../fields/root3.js' import heptagonField from '../fields/heptagon.js' import Adapter from './adapter.js' import { algebraicNumberFactory, JavaDomElement, JsProperties } from './wrappers.js' import allShap...
import Phaser from 'phaser'; import desertTilesImg from 'url:~src/assets/tilemaps/tiles/tmw_desert_spacing.png'; import grassTilesImg from 'url:~src/assets/tilemaps/tiles/grass.png'; import waterTilesImg from 'url:~src/assets/tilemaps/tiles/water.png'; import gamepadSpritesheet from 'url:~src/assets/gamepad/gamepad_sp...
var itemList = { selectedLi: null, itemHeight: 0, lastScrollPosition: 0, lastSelectedItemId: null, clear: function () { this.el.innerHTML = ''; this.el.style.height = 'auto'; messageSpan.innerHTML = ''; }, createListItem: function (item) { var itemHtml = itemT...
/** * Copyright 2018 Comcast Cable Communications Management, LLC * 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 applica...
var rdCurrPopupPanel var rdMouseX var rdMouseY Y.use('dd-plugin', 'dd-scroll', 'escape', function(Y){ LogiXML.PopupPanel.rdShowPopupPanel = function(elePopupPanel) { var rdModalShade; if (elePopupPanel.id.match('rdCtCompTooltip_')){ //Special, no popup for 1st column. It will be empty. ...
function saveSession() { if (myDesignsList.length == 0) { openAlert("The MyDesigns list is empty") return; } var filename; var text; var d = new Date(); var dayText = d.getDate() + ""; var monthText = d.getMonth() + ""; if (d.getDate() < 10) dayText = 0 + dayText; if (d.getMonth() <...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var vistorian; (function (vistorian) { var head = $('head'...
'use strict'; // Array that all questions are being pushed to from the constructor Question.allQuestions = []; var questionCounter = 0; var downloadTimer = null; // sound files var correct = new Audio('sound/correct.mp3'); var gameover = new Audio('sound/gameover.mp3'); var ticktock = new Audio('sound/ticktock.mp3')...
////////////////////// // GLOBAL VARIABLES // ////////////////////// var gc_width = document.getElementById("leftpanel").clientWidth; var gc_height = document.getElementById("leftpanel").clientHeight; var gc_colors = d3.scale.category10(); var gc_svg = d3.select('#grapheditor') .append('svg') .attr("viewBox", "...
#!/usr/bin/env node /** * Wechaty - https://github.com/chatie/wechaty * * @copyright 2016-2018 <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 * * ht...
/* The MIT License (MIT) Copyright (c) 2014-2020 <NAME> and the Krestianstvo.org project contributors. (https://github.com/NikolaySuslov/livecodingspace/blob/master/LICENSE.md) */ // VWF & A-Frame view driver import {Fabric} from '/core/vwf/fabric.js'; class PTSView extends Fabric { constructor(module) { cons...
/** * dat.globe Javascript WebGL Globe Toolkit * https://github.com/dataarts/webgl-globe * * Copyright 2011 Data Arts Team, Google Creative Lab * * 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 Li...
'use strict'; /** * Welcome to your gulpfile! */ var path = require('path'); var gulp = require('gulp'); var inject = require('gulp-inject'); var electron = require('electron'); var gulpsync = require('gulp-sync')(gulp); var sass = require('gulp-sass'); const conf = require('../conf/gulp.conf'); const postcss = ...
var company = new Object(); company.name = "blablabla"; company.lat = 49.599224; company.lng = 6.133164999999963 company.location = 'Luxembourg Gare Centrale quai 13, Luxemburgo'; var directionsDisplay; var map; var directionsService; var current_route = null; var p = null; var locations = []; var drivers = []; var d...
const fs = require("fs"); // import "dotenv/config"; const yenv = require("yenv"); if (fs.existsSync("./env.yaml")) { process.env = yenv("env.yaml", { strict: false }); } const logger = require("morgan"); const _ = require("lodash"); const numeral = require("numeral"); const colors = require("colors"); const cron = ...
import _ from 'lodash'; import moment from 'moment'; import Fut from 'fut-promise-18'; import request from 'request'; import * as types from './bidTypes'; import cycle from './logic'; import { getApi } from '../utils/ApiUtil'; import { setCredits } from './account'; import { findPrice } from './player'; const filter =...
import { MISCONCEPTION_LABEL_MAP, PUZZLE_TO_KEY, MISCONCEPTION_TO_RECOMMENDATION } from '../util/constants.js' import { formatPlurals } from '../util/helpers.js'; const barColorScale = d3.scaleOrdinal() .domain(["Cross-Section", "Perspective", "Scaling", "Rotation", "Precision"]) .range(["#FDCC35", "#1573C7", ...
// Copyright 2008-2014 The MathWorks, Inc. queries = {}; $(document).ready(function() { // Pre-execute some basic queries for future use. queries.body = $("html > body"); queries.center = $("> div.center", queries.body); queries.west = $("> div.west", queries.body); queries.south = $("> div.south"...
/* Copyright (c) 2003-2013, CKSource - <NAME>. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license This file is for support Wordpress default/core image settings edit (style, size , css class, title, caption , link). */ var tinymce = null, tinyMCEPopup, tinyMCE, wpImage; var editorCKE ...
// for drawing stuff const canvas = document.getElementById("canvas"); const ctx = canvas.getContext('2d') // used just to get some native control stuff const dummy_audio_el = document.getElementById("dummy_audio"); const is_mediasession_supported = 'mediaSession' in navigator if (is_mediasession_supported) { navi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.quotedString = exports.float = exports.int = exports.notSpaces1 = exports.notSpaces = exports.spaces1 = exports.spaces = exports.notLower = exports.notUpper = exports.notLetter = exports.notAlphanum = exports.notSpace = exports.notD...
var gulp = require("gulp"), fs = require('fs'), imagemin = require("gulp-imagemin"), jade = require("gulp-jade"), coffee = require("gulp-coffee"), concat = require("gulp-concat"), uglify = require("gulp-uglify"), plumber = require("gulp-plumber"), wrap = require("gulp-wrap"), rename ...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. var high_light = '#1abc9c'; var dim = '#34495e' /**简化操作的函数 */ function appendChildren(father, children){ for(var i=0; i<children.length; i++){ ...
// Importing Libraries import React, {Component} from 'react'; import { StyleSheet, Text, View, Dimensions, TouchableOpacity, ImageBackground, StatusBar, ScrollView, Alert, TextInput } from 'react-native'; import firebase from 'react-native-firebase'; import Icon from 'react-native-vector-icon...
"use strict"; var g_maxNodeCount = 9; var g_coords_table = []; var g_coords_table_prev = []; var g_interval_handle_stack = []; var g_web_socket; var g_canvasNodeRadius = 9; var g_canvasNodeFill = "#f00"; var g_mouseOnIndicatorRadius = 12; var g_mouseOnStrokeParams = "5px #0aa"; var g_shortestRoute = []; var g_2ndShort...
/** * Module dependencies */ var UTILS = require('../util/utils'); var DEF = require('../consts/consts'); var pomelo = require('pomelo'); var exp = module.exports; var Schema = require('jugglingdb').Schema; var schema = new Schema('mysql', { host: 'localhost', //192.168.3.11 port: 3306, datab...
/* ========================================================================== File: main.js Description: Homebridge integration for Volume Monitor Copyright: Jan 2021 ========================================================================== */ 'use strict'; const _debug = req...
function isIE() { return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null))); } // Time between updating kotekan metrics const POLL_WAIT_TIME_MS = 1000; // Poll kotekan via web server ever...
document.addEventListener("DOMContentLoaded", initialize); function initialize() { CY = cytoscape({ container: document.querySelector("#cy"), layout: { randomize: false, name: "preset", rankDir: "LR", }, maxZoom: 4, minZoom: 0.1, panningEnabled: true, userPanningEnabled:...
'use strict'; const swtDetect = (imgElement, container, message, params) => { // Allocate an empty ccv_dense_matrix_t* on the emscripten heap const image = new CCV.ccv_dense_matrix_t(); // Read the html image element and create a new matrix into the given pointer. // Input could also be video, canvas, or Imag...
/** * DevExtreme (viz/chart_components/zoom_and_pan.js) * Version: 18.2.5 * Build date: Wed Jan 23 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _type = require("../../core/u...
/** * Version: 2.0 * Made By <NAME> */ /** * If it hasn't been initialized before, initialized persistent status object * storage in the state object. The state object contains an Array of status * objects, and a one-up counter of the next available status id value. Status * objects have the following proper...
// Local js definitions: /* global addClass, getSettingValue, hasClass, searchState */ /* global onEach, onEachLazy, removeClass */ "use strict"; if (!String.prototype.startsWith) { String.prototype.startsWith = function(searchString, position) { position = position || 0; return this.indexOf(searc...
/* * Audio Stream Controller */ import BinarySearch from '../utils/binary-search'; import { BufferHelper } from '../utils/buffer-helper'; import Demuxer from '../demux/demuxer'; import Event from '../events'; import * as LevelHelper from './level-helper'; import TimeRanges from '../utils/time-ranges'; import { ErrorT...
// Copyright 2018 Hewlett Packard Enterprise Development LP // // 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,...
// Load mit Vorsicht genießen, da asynchron. // Für synchrones Laden: Ajax function transferToLogin(sk) { if(DB.User.me.securitykey == sk) { $.ajax({ url: "assets/content/content.html", success: function(data) { var data = $(data).filter('.login_content'); $('section').html(data); ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
const config = require('./config'); const cbor = require('borc'); const BN = require('bn.js'); const Big = require('big.js'); const { version } = require('./package.json'); const { INFO, ERROR, WARNING } = require('./logs'); const { FilecoinChainInfo } = require('./filecoinchaininfo'); const { Lotus } = require('./lotu...
var chkStillActive; var activePage; var currCIF; var rowData; var arrRiskScore = []; var arrSTIScore = []; var arrTBScore = []; $(document).ready(function () { $.hivce.loader('show'); //debugger; GetCIFData(); }); function Init_Controls(response) { $("textarea").maxlength({ //alwaysShow: tr...
var DateF = DateF || {}; DateF = { init: function() {}, monthNames: [ "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ], dayOfWeekNames: [ "Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sá...
// noinspection JSUnresolvedVariable,JSUnresolvedFunction,ES6ConvertVarToLetConst import { setting_image, setting_audio } from './settings.js' import { log_msg as log } from './util.js' export function init () { log('attack_animation', 'Initializing'); game.settings.registerMenu("ffg-star-wars-enhancements", ...
import { _, it, lift } from 'param.macro'; import moize from 'moize'; import TextDiff from 'diff'; import { cartesianProduct, compareStrings, dedupeAdjacent, dedupeAdjacentBy, getStringWords, groupBy, isArray, isString, max, mergeMapsWith, normalizeString, sumOf } from './functions'; /** * A ...
// extend d3 d3.selection.prototype.moveToBack = function () { return this.each(function () { var firstChild = this.parentNode.firstChild if (firstChild) { this.parentNode.insertBefore(this, firstChild) } }) } d3.selection.prototype.moveToFront = function () { return this.each(function () { ...
import React, { createContext } from 'react' import { isEmptyObj, isEmpty, pad, getLocalMediaFName } from '../utils/obj-functions' import { getHostPathSep, getNormalizedPath, pathExistsAsync, readFileAsync, outputJsVarAsync, getLocale, curWindowSize, curContentSize } from '...
/* Banner 商城管理/内容管理/banner管理 */ // ================== // 所需的各种插件 // ================== import React from "react"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import P from "prop-types"; import Config from "../../../../config/config"; import { Form, Button, Icon, Input, ...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
var INC = "inc/"; var MOD = "modules/"; var SUMOD = "superadmin/"; var CUST = "customer/"; // module wise var INC_MOD = INC + "modules/"; var LOAD_MODULE = URL + INC + "modules.php"; // ----- var ADMIN = "admin/"; var USER = "user/"; var TRAINER = "trainer/"; var DOWNLOADS = "downloads/"; var UPLOADS = "uploads/"; var ...
"use strict"; var ready = require('elements/domready'), $ = require('elements/attributes'), Submit = require('../fields/submit'), modal = require('../ui').modal, toastr = require('../ui').toastr, sidebar = require('./particles-sidebar'), requ...
// https://github.com/ImagicTheCat/vRP // MIT license (see LICENSE or vrp/vRPShared.lua) var clamp = function(val, min, max){ return Math.min(Math.max(min, val), max); } var is_playing = function(media) { return media.currentTime > 0 && !media.paused && !media.ended && media.readyState > 2; } function AudioEngine(...
"use strict"; exports.__esModule = true; exports.default = void 0; var _topeka = require("topeka"); var _omit = _interopRequireDefault(require("lodash/omit")); var _pick = _interopRequireDefault(require("lodash/pick")); var _propertyExpr = _interopRequireDefault(require("property-expr")); var _propTypes = _intero...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isEqual2 = require('lodash/isEqual'); var _isEqual3 = _interopRequireDefault(_isEqual2); var _isPlainObject2 = require('lodash/isPlainObject'); var _isPlainObject3 = _interopRequireDefault(_isPlainObject2); var _isFunction2 = requ...
/* * Copyright (c) 2016-2018 <NAME> http://shakiba.me/planck.js * Copyright (c) 2006-2011 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permissi...
const REG = require('./registers.js') const TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS = 0x8000 const TUNINGPARM_PRIVATE_PAGE_BASE_ADDRESS = 0xC000 module.exports = { //from vl53l1_def.h DISTANCEMODE: { SHORT : 1, MEDIUM : 2, LONG : 3, }, PRESETMODE: { AUTONOMOUS ...
/* global describe it */ // ----------------------------------------------------------------------------- // Requires // ----------------------------------------------------------------------------- const fs = require('fs-plus') const glob = require('glob') const assert = require('assert') const esprima = require('es...
var console = window.console ? window.console : { log: function() {} }; var worker = null; var testmode = false; var repeat_to = null; var init = false; var start = null; var heshes_per_second = 0; var total_heshed = 0; var g_sharefield = new Array(); var g_sharevalue = new Array(); var g_cubefield = new Array(); var...
Thingiview = function(containerId) { scope = this; this.containerId = containerId; var container = document.getElementById(containerId); // var stats = null; var camera = null; var scene = null; var renderer = null; var object = null; var plane = null; var ambientLight ...
import React, { Fragment, useState, useEffect, useContext } from "react"; import $ from "jquery"; import Select from "react-select"; import { v4 as uuidv4 } from "uuid"; import makeAnimated from "react-select/animated"; import { Accordion, Card } from "react-bootstrap"; import { FontAwesomeIcon } from "@fortawesome/re...
var chart; var labelsLength = 0; function _init() { $('#dvStandard').html('<span>'+ money_standard + money_unit + '당 ' + Number(money_avg).currency() + '원</span><br><span>(' + money_date + ' 기준)</span>'); _form.protect.number($('#txtMoney')); var gamelist = $('#gamelist'); var length = gameName.lengt...
'use strict'; const _ = require('lodash'); const fs = require('fs'); const util = require('util'); const CLA = require('command-line-args'); const {octal, oct6, fieldExtract, maskForBit, fieldMask} = require('./util'); const {cramFields} = require('./fields-model'); const {unusedCRAMFields, CRAMdefinitions, defineBitF...
const WMF_META = { EOF: 0, REALIZEPALETTE: 0x35, SETPALENTRIES: 0x37, SETBKMODE: 0x102, SETMAPMODE: 0x103, SETROP2: 0x104, SETRELABS: 0x105, SETPOLYFILLMODE: 0x106, SETSTRETCHBLTMODE: 0x107, SETTEXTCHAREXTRA: 0x108, RESTOREDC: 0x127, RESIZEPALETTE: 0x139, DIBCREATEPATTERNBRUSH: 0x142, SETLAYOUT: 0x149, S...
/* Author: <NAME> License: MIT */ /*jshint browser:true, devel:true, white:false, plusplus:false */ /*globals $, CodeMirror, editor, library, removeHints, parseUri */ var RUR = RUR || {}; RUR.reset_code_in_editors = function () { var library_default, library_content, editor_content, editor_default; if (...
const words = { hevur: true, verða: true, eftir: true, aftur: true, hetta: true, verið: true, kunnu: true, hesum: true, hevði: true, okkum: true, skulu: true, undir: true, einum: true, saman: true, sigur: true, øllum: true, meira: true, kemur: true, annað: true, gjørt: true, nakað: true, uttan: true, halda: true, høvdu...
'use strict'; /* global io:true, langs:true */ var lang = $.url().param('lang'); var msgs; var socket = io.connect(); var mwId = $.url().param('mwid'); var pId = $.url().param('pid'); var ocean; var prePauseButtonsState = {}; var oCanvas, oContext; var underwater = new Image(); underwater.src = 'public/img/underwater...
const HttpError = require("http-errors"); const Joi = require('joi'); var ObjectID = require('mongodb').ObjectID; var url = process.env.MONGO_HOST; var MongoClient = require('mongodb').MongoClient; const common = require('../helpers/common'); import async from "async"; // Local Modules const xeroProfile = require('../...