text
stringlengths
8.5k
48.7k
/* global exports process console __dirname Buffer */ /* eslint-disable no-console */ 'use strict'; // Пакеты, использующиеся при обработке //const { series, parallel, src, dest, watch, lastRun } = require('gulp'); const { series, parallel, src, dest, watch } = require('gulp'); const fs = require('fs'); const plumber ...
// BERT-JS // Copyright (c) 2009 <NAME> (@rklophaus) // Contributions by <NAME> (@bbrowning) // See MIT-LICENSE for licensing information. // BERT-JS is a Javascript implementation of Binary Erlang Term Serialization. // - http://github.com/rklophaus/BERT-JS // // References: // - http://www.erlang-factory.com/upload...
/* * * Wijmo Library 3.20143.59 * http://wijmo.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Dual licensed under the MIT or GPL Version 2 licenses. * <EMAIL> * http://wijmo.com/widgets/license/ * ---- * Credits: Wijmo includes some MIT-licensed software, see copyright notices below. */ va...
import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js'; import { createComponent } from 'reakit-system/createComponent'; import { createHook } from 'reakit-system/createHook'; import 'reakit-utils/shallowEqual'; import '../Box/Box.js'; import { useRef, useEffe...
import Rectangle from './rectangle' import Simulator from './simulator' import Brush from './brush' import WrappedGL from './wrappedgl' import Utilities from './utilities' const INTERACTION_MODE = { NONE: 0, PAINTING: 1, RESIZING: 2, PANNING: 3 } const COLOR_MODEL = { RYB: 'RYB', RGB: 'RGB' } const QUALITI...
// ====================================================================================== // ====================================================================================== // ============= KCacheManager // ====================================================================================== // ===============...
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE 'use strict'; var Rebase = require("@glennsl/rebase/lib/js/src/Rebase.bs.js"); var Caml_format = require("bs-platform/lib/js/caml_format.js"); var Util$AgdaMode = require("./Util.bs.js"); var Parser$AgdaMode = require("./Parser.bs.js"); var Caml_chrome_...
"use_strict"; /** * creates a new WebGL context (it can create the canvas or use an existing one) * @method create * @param {Object} options supported are: width, height, canvas * @return {gl} gl context for webgl */ var GL = module.exports; var glm = require('./gl-matrix-extra.js'), mat3=glm.mat3, mat4=glm.mat...
'use strict'; // Application interface for Impress Application Server const SCRIPT_PREPARE_TIMEOUT = 500; const USE_STRICT = '\'use strict\';\n'; const ASCII_BRACE_OPENING = 123; const ROUTE_NUM_REGEXP = /\[([0-9]+)]/g; const CONFIG_FILES_PRIORITY = [ 'sandbox.js', 'log.js', 'scale.js', 'servers.js', 'databases.js...
/** * @fileinfo This is the ChallengeHandler module * - Loads stuff used in challenges. */ const EventEmitter = require("events"), { URL } = require("url"), got = require("got"), emoji = require("./emoji.js"); // overwrites functions function Injector() { this.data = this.data || {}; Object.assign(this.data, {...
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; } ...
//base url for search var base_url = $('#base_url').val(); var search_path = $('#search_path').val(); var search_slug = $('#search_slug').val(); var search_controller_url = base_url + '/' + search_path + "/"; var search_url = base_url + '/' + search_slug + "/"; var view_changed = 0; var map; var location_change_tri...
/* * Copyright (c) 2021-2022 the DerivX authors * All rights reserved. * * The project sponsor and lead author is <NAME>. * E-mail: <EMAIL>, QQ: 277195007, WeChat: xrd_ustc * See the contributors file for names of other contributors. * * Commercial use of this code in source and binary forms is * governed by a LGPL v3 ...
/* global tf */ import {OOV_INDEX, padSequences} from '../../imdb/sequence_utils'; import {Node, Link} from './class'; // Enum of node types const nodeType = { INPUT: 'input', CONV: 'conv', POOL: 'pool', RELU: 'relu', FC: 'fc', FLATTEN: 'flatten', EMBEDDING: 'embedding', LSTM: 'lstm', DENSE: 'dense'...
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import url from 'url'; import { Panel, PanelBody } from '../libs/bootstrap/panel'; import { auditDecor } from './audit'; import { Document, DocumentPreview, DocumentFile, DocumentsPanel } from './doc'; import { FetchedData, Param...
var resetCheckboxChecked = function (instance) { instance.anyChecked.set(false); var $table = instance.$(".meteor-table .meteor-table-table table"); $table.find("input.checkboxes").each(function () { $(this).prop('checked', false); }); $("body").removeClass("checkboxes-field-enabled"); }; v...
var secondVal = 10; var addToUrl = '/api/v1/entries.json?count='; var urgentLowValue; var lowValue; var highValue; var urgentHighValue; var refreshGraphFunc; //default variables var defaultSite = ''; var defaultUrgentLowValue = 55; var defaultLowValue = 80; var defaultHighValue = 180; var defaultUrgentHighValue = 260;...
const Base = require('./base.js'); const fs = require('fs'); module.exports = class extends Base { /** * index action * @return {Promise} [] */ async indexAction() { const page = this.get('page') || 1; const size = this.get('size') || 10; const name = this.get('name') || ''; const model = ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/* eslint-disable react/no-did-mount-set-state,no-else-return, consistent-return,no-param-reassign,prefer-destructuring,react/destructuring-assignment,no-return-assign,arrow-body-style,react/no-array-index-key,no-case-declarations,camelcase,no-plusplus,one-var,react/no-unused-state,prefer-const */ import React, { Compo...
/*namespace*/ var mdl = window.mdl || {}; //store of calibration data mdl.calibration = []; /*create task events*/ var experiment = []; var debug = false; //flag if debugging var isHeatmap = false; //flag if using heatmap var webgazer_idle = true; //check if webgazer is in idle mode /*webgazer*/ var MediaDevice = '-1'...
var ctx; var tool; var console; var windowSize; var starSet, skylineSet, obslineSet, compassSet, labelSet; var stopMoving = false; // just debug var moveIndex; function Tool() { this.secO = this.secN = 60; this.countFrame = 0; this.frame; this.drawingObject; this.liningObject; this.fps = fun...
/*global Ammo*/ import { math } from './math.js'; import { root, map } from './root.js'; /** _ _____ _ _ * | | |_ _| |_| | * | |_ _| | | _ | * |___|_|_| |_| |_| * @author lo.th / https://github.com/lo-th * * GUN - VEHICLE */ function Vehicle() { this.ID = 0; this.cars = []; this.trans = n...
// Data objects class QCDash_Subject { constructor(p_numericID, p_textID, p_t1CorrTarget, p_t1OverlapBrain, p_boldCorrTarget, p_boldOverlapBrain, p_listIndices) { this.numericID = p_numericID; this.textID = p_textID; this.t1 = { corrTarget: p_t1CorrTarget, overlapBrain: p_t1OverlapBrain }; thi...
import React from 'react'; import {useRouteMatch, useHistory} from 'react-router-dom' import {Map, List} from 'immutable' import {FormControl, Select, MenuItem, Box, Button, Paper, Typography, useTheme} from "@material-ui/core"; import { DragHandle, Opacity, SpeakerNotes, SpeakerNotesOff, Add, Remove, Visib...
export const UPDATE_EXECUTED_MAINTENANCE_TASKS = 'UPDATE_EXECUTED_MAINTENANCE_TASKS'; export const UPDATE_MAINTENANCE_TASK_ACTIVE = 'UPDATE_MAINTENANCE_TASK_ACTIVE'; import { CARDS_COLLECTION, SECTIONS_COLLECTION, MAINTENANCE_COLLECTION, TWEETS_COLLECTION, } from './database.js'; import { store } from '../store....
import React, { useState } from 'react' import { makeStyles } from '@material-ui/core/styles' import { Container, Typography, Grid, TextField, Button, FormControl, FormLabel, RadioGroup, Radio, FormControlLabel, Input, InputAdornment, ButtonGroup, Dialog, AppBar, Toolbar, IconButton, ...
function barchart() { //Set time formats let formatTime = d3.timeFormat("%-I %p") let parseAll = d3.timeParse("%I:00 %p") let parseSingle = d3.timeParse("%I %p") // Load data first Promise.all([ d3.csv('data/RoundTripData.csv', function (d) { return { time: formatTime(parseAll(d.Adjust...
/****************************************************************************** Copyright:: 2020- IBM, 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...
var DASHBOARD_MARGINS = {}; window.sincluding = []; window.visits = []; window.players = []; window.jsErrors = []; window.noError = false; $(window).unload(function() { window.noError = true; }); function getQueryObject(url) { var match, pl = /\+/g, // Regex for replacing addition symbol with a s...
import Node from './Node'; import TextBox from './TextBox'; import mode from './mode'; import css from '../style/css'; import font from '../style/font'; import unit from '../style/unit'; import enums from '../util/enums'; import util from '../util/util'; import textCache from './textCache'; import inject from '../util/...
/* eslint-disable object-curly-newline */ /* global Chart */ import * as Papa from 'papaparse' //import Reader from 'fstream' import $ from 'jquery' import 'babel-polyfill' // /** * -------------------------------------------------------------------------- * CoreUI Free Boostrap Admin Template (v2.1.14): main.js...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may n...
// **************************************************************** // Copyright <NAME> & <NAME>, 1984, 2010–2022 // Licensed under the MIT license. // **************************************************************** // *********************** IMAGE work starts here var thisCanvas = document.createElement('canvas'); ...
const IGNORE_PROTOTYPE = true const IS_SORT_BY_PERCENT = true const DEFAULT_FILTER_LENGTH = 66 const DEFAULT_CATEGORY = 'N/A' const SIMILAR_PAGE_SIZE = 10 const regexWholeWord = /^\w+$/i const globalDictionary = {} const globalPhrases = {} let globalData let maxSimilarPageCount const vm = new Vue({ el: '#app', da...
// $Id$ var calWin = null; function setMilestoneEndDate(checked){ if(checked){ document.datesFrm.end_date.value = document.datesFrm.start_date.value; document.datesFrm.task_end_date.value = document.datesFrm.task_start_date.value; } } /** setTasksStartDate sets new task's start date valu...
import { select } from 'd3'; import svgDraw, { drawText, fixLifeLineHeights } from './svgDraw'; import { log } from '../../logger'; import { parser } from './parser/c4Diagram'; import common from '../common/common'; import c4Db from './c4Db'; import * as configApi from '../../config'; import utils, { wrapLabel, cal...
/** * Usage: 修改自ejs的模板引擎,使用更简单。感谢ejs的作者tj和mde。 * Author: Spikef < <EMAIL> > * Copyright: Envirs Team < http://envirs.com > * * 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 * ...
export default class Color { _h = 0; _s = 100; _v = 100; _a = 100; _f = "hex"; v = "#fff"; s = false; constructor (color) { if (color) { this._f = checkIsColor(wordToRgb(color)); this.format(color); } } format(color, _f) { if (!color) { this._h = 0 this._s = 100...
"use strict;" /* Global variables */ var canvas = document.getElementById('screen'); var game = new Game(canvas, update, render); var player = new Player({ x: canvas.width / 2, y: canvas.height / 2 }, canvas); var levelDiv = document.getElementById('levelDiv'); var scoreDiv = document.getElementById('scoreDiv'); var f...
'use strict' const express = require('express'); const app = express(); require('dotenv').config(); const PORT = process.env.PORT || 3000; //const url = process.env.MAPURL; app.set('view engine', 'ejs'); app.use(express.static('./public')); app.use(express.urlencoded({extended:true})); app.listen(PORT, () => consol...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { Grid, Card, Typography, IconButton, Button, Chip, TextField, CircularProgress, } from "@material-ui/core"; import _ from "lodash"; import { Edit, Save, DeleteForever } from "@material-ui/icons"; import EditCard from...
var framework; (function (framework) { var FileParser = /** @class */ (function () { function FileParser(filename, content) { this.filename = filename; this.content = []; for (var _i = 0, _a = content.trim().split('\n'); _i < _a.length; _i++) { var line = ...
import 'assets/images/loading.gif'; import _throttle from 'lodash.throttle'; import 'flot-charts'; import 'flot-charts/jquery.flot.time'; import 'flot-charts/jquery.flot.symbol'; import 'flot-charts/jquery.flot.navigate'; import 'flot-charts/jquery.flot.crosshair'; import 'flot-charts/jquery.flot.resize'; i...
import React, { cloneElement } from 'react' import createReactClass from 'create-react-class' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Route, withRouter, } from 'react-rout...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
import React, { useEffect, useRef, Fragment, } from 'react'; import { Table, TableRow, TableCell, TableBody, Hidden } from '@material-ui/core'; import { makeStyles } from '@material-ui/styles'; import * as d3 from 'd3'; import { getScoreColor, AttributeColors, BranchColors } from './ColorClasses'; import { PreferenceLi...
import { ObjectID } from 'mongodb'; import winston from 'winston'; import handlebars from 'handlebars'; import settings from '../../lib/settings'; import { db } from '../../lib/mongo'; import utils from '../../lib/utils'; import parse from '../../lib/parse'; import webhooks from '../../lib/webhooks'; import dashboardWe...
import $ from '../../core/renderer'; import core from './ui.grid_core.modules'; import { each } from '../../core/utils/iterator'; import { combineFilters } from './ui.grid_core.utils'; import { equalByValue } from '../../core/utils/common'; import { isDefined, isBoolean } from '../../core/utils/type'; import { Deferred...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _renamer = require("./lib/renamer"); var _index = require("../index"); var _binding = require("./binding"); var _globals = require("globals"); var t = require("@babel/types"); var _cache = require("../cac...
/** * @author <NAME> / elalish * * This class generates a Prefiltered, Mipmapped Radiance Environment Map * (PMREM) from a cubeMap environment texture. This allows different levels of * blur to be quickly accessed based on material roughness. It is packed into a * special CubeUV format that allows us to perform c...
/**************************************************************************** * app.js * openacousticdevices.info * October 2019 *****************************************************************************/ 'use strict'; /* global document */ const electron = require('electron'); const dialog = electron.remote....
/* Copyright (C) 2016 NooBaa */ 'use strict'; const argv = require('minimist')(process.argv); const dbg = require('../../util/debug_module')(__filename); if (argv.log_file) { dbg.set_log_to_file(argv.log_file); } dbg.set_process_name('test_build_chunks'); const _ = require('lodash'); const fs = require('fs'); con...
var kv = new IdbKvStore('bogbook') async function loadfeeds () { let feeds feeds = await kv.get('feeds') if (!feeds) { feeds = [] } return feeds } async function loadlog () { let log log = await kv.get('log') if (!log) { log = []} return log } var delay = false async function savefeeds (feeds, log)...
// // Three.js basic objects // var scene = undefined; var camera = undefined; var renderer = undefined; // // For viewing nice photo behind the map // var backgroundScene = undefined; var backgroundCamera = undefined; // // Show fps (or other) info to help application development // var stats = undefined; // // For...
// PACKAGES const { remote, webFrame, nativeImage } = require("electron"); const { BrowserView, BrowserWindow, screen, dialog, nativeTheme, ipcMain, app, Menu } = remote; require("electron").ipcMain = ipcMain; const { join, normalize } = require("path"); const { ElectronBlocker } = require("@cliqz/ad...
import { ethers } from 'ethers'; import log from 'loglevel'; import BigNumber from 'bignumber.js'; import { ObservableStore } from '@metamask/obs-store'; import { mapValues, cloneDeep } from 'lodash'; import abi from 'human-standard-token-abi'; import { calcTokenAmount } from '../../../ui/app/helpers/utils/token-util';...
'use strict'; const Utils = require('../../utils'); const util = require('util'); //const Transaction = require('../../transaction'); const _ = require('lodash'); const AbstractQueryGenerator = require('../abstract/query-generator'); const DataTypes = require('../../data-types'); const Model = require('../../model'); ...
// graphdrawer.js - sharpnod.es // GRAPH DATA STRUCTURE: TYPES, NODES, EDGES // available types for graph nodes var countryType = "country"; var siteType = "site"; var ispType = "isp"; var keywordType = "keyword"; // special type for edges var edgeType = "edge"; // separator for node IDs var sep = "/"; eventMan.su...
const { Arrow, Assign, Binary, Block, Call, Catch, Conditional, Id, Iife, Literal, Member, Return, SafeId, Sequence, Template, Try, Unary, Vector, generate } = require('./ast'); const { AsyncFunction, butLast, last, produce, produceState, raise, s } = require('./utils'); const Cons = class { constructor(he...
const PythonShell = require('python-shell'); const OS = require('os'); const fs = require('fs-extra'); const { shell } = require('electron'); const pug = require('pug'); const connect = require('connect'); const serveStatic = require('serve-static'); const XLSX = require('xlsx'); const request = require('request');...
import $ from 'jquery'; import 'bootstrap'; import 'datatables.net/js/jquery.dataTables.min.js'; import 'datatables.net-select/js/dataTables.select.min.js'; import 'datatables.net-buttons/js/dataTables.buttons.min.js'; import 'datatables.net-buttons/js/buttons.html5.min.js'; import datatables_hu from './utils/datatable...
'use strict'; // https://github.com/imathis/hsl-picker/blob/master/assets/javascripts/modules/color.coffee var rHex3 = /^#([0-9a-f]{3})$/; var rHex6 = /^#([0-9a-f]{6})$/; var rRGB = /^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(0?\.?\d+)?\s*\)$/; var rHSL = /^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\%\s*,\s...
import { b as buffer, d as dew$7 } from './chunk-53533520.js'; import { d as dew$6 } from './chunk-91498336.js'; import { p as process } from './chunk-d07c462d.js'; import { h } from './chunk-deebbc2f.js'; import './chunk-cc7644df.js'; import './chunk-1f427064.js'; import './chunk-d49beef2.js'; import './chunk-51fee26b...
'use strict'; function Level() { this.map = null; this.mobmap = null; this.neighbourfields = 0; this.predators = []; this.individuals = game.current_player.individuals; this.density = 0; this.blocking = '00000000000000000000000000000000000011111111111111111111111001111011110000000000111111110000000000011111111...
//modified by Jinsung function SkeletonBinary(){}; SkeletonBinary.prototype = { data : null, scale : 1, json : {}, nextNum : 0, chars : null, readByte : function(){ return this.nextNum < this.data.length ? this.data[this.nextNum++] : null; }, readBoolean : function(){ r...
const { expectRevert, time, BN, expectEvent } = require('@openzeppelin/test-helpers'); const SakeToken = artifacts.require('SakeToken'); const STokenMaster = artifacts.require('STokenMaster'); const MockERC20 = artifacts.require('MockERC20'); contract('STokenMaster', ([alice, bob, carol, jim, minter]) => { beforeE...
/* * @author <NAME> */ 'use strict'; const { EventEmitter } = require('events'); const Request = require('../Request'); const NotificationsStorage = require('./NotificationsStorage'); const api = require('./api'); const customFn = require('../utils/customFn'); const DEFAULT_LIMIT = 20; const DAY = 86400000; const W...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "movieswithfriends-1c676.firebaseapp.com", databaseURL: "https://movieswithfriends-1c676.firebaseio.com", projectId: "movieswithfriends-1c676", storageBucket: "movieswithfriends-1c676.appspot.com", messagingSenderId: "305686437446" }; fireba...
'use strict'; const React = require('react'); import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; const panel = require('../libs/bootstrap/panel'); const _ = require('underscore'); const url = require('url'); import { auditDecor } from './audit'; const globals = require('./globals'); ...
/* TODO * * Add function to get admin's user ID. * * Buffer messages when not connected to any other peers. * * Optionally replay the entire session history to late entrants? * * Disconnect peers who send malformed messages. * * Add method to get the userIDs present in the session. * * Document code. * * Handle ...
//change the Block colors function reColor(block, hue) { var oldInit = block.init; block.init = function() { oldInit.call(this); this.setColour(hue); } } //-------------------------------- let Logic_color = "#43A047"; let Loops_color = "#F44336"; let Math_color = "#FF9800"; let T...
var RpcClient = require('./rpc'); var f = require('../functions'); const { performance } = require('perf_hooks'); var Test = require('./testnode.js'); var Wss = require('./wss.js'); var Node = function(options, manager){ const notactualevents = 360000 //mult const getinfointervaltime = 120000 const max...
import _ from 'lodash' import ExpressionEvaluator from 'expr-eval' import Constants from '../constants' import SimulationFunctions from './functions' import clueImage from '../images/clue.png' let global = window const CONTEXT_MENU_TEMPLATE = ` <div class="simulator-context-menu"> <ul class="dropdown-menu opt...
// set union Set.prototype.union = function(otherSet) { let union = new Set(this); for(elem of otherSet) union.add(elem); return union; } // set intersection Set.prototype.intersection = function(otherSet) { let intersection = new Set(); if (otherSet.size > 0){ for (elem of otherSet) { ...
import React from 'react'; import ReactDOM from 'react-dom'; import autoBind from 'react-autobind'; import $ from 'jquery'; import Select from 'react-select'; import _ from 'underscore'; import DocumentTitle from 'react-document-title'; import Checkbox from '../components/checkbox'; import SurveyScope from '../models/s...
import { getFullYear, getMonth, getDate, getDay, getHours, getMinutes, getSeconds, getMilliseconds, } from './fmtDate'; import { inf, abs, floor, round, round6, ceil, min, max, pow, log10, debounce, closestIdx, rAF, doc, win, pxRatio, incrRoundUp, incrRoundDn, WIDTH, HEIGHT, TOP, BOTTOM...
"use strict"; /** @license Atomic State * Copyright (c) <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(valu...
var self; function __init_local(i,v_c,v_t,local_flag){ var __name = i.name.substring(0, 4).toLowerCase(); if(local_flag)__name=i.name; self.model = 0; self.Structures[ __name ] = { obj:i, representations:{'selection':{},'keep_selection':{}} }; if(Object.keys(top.no_aa_ch).length > 0){ var ...
// Fix navbar/settings nav position on small devices $(document).ready(function(){ var navbar = $('#lc-navbar'); var settingsNav = $(".settings-nav"); $(window).scroll(function(){ if (navbar.visible(true)) { settingsNav.removeClass("top"); } else { settingsNav.addClass("t...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import { run } from '@ember/runloop'; import FactoryGuy, { build, make, makeList, mockUpdate, mockFindRecord, mockReload, mockDelete, manualSetup, mockCreate } from 'ember-data-factory-guy'; import { initializer as modelInitializer } fro...
var currentLangCode = 'nl'; var myDictionary = { fr : { "Reserve" : "Réserve", "Contact" : "Contact", "Rooms & Prices" : "Chambres & Tarifs", "Introduction" : "Introduction", "Availability" : "Disponibilités", "Guestbook" : "Livre d'invité", "Gallery" : "Galerie", "Location" :...
// board variables var brd_side = COLOURS.WHITE; var brd_pieces = new Array(BRD_SQ_NUM); var brd_enPas = SQUARES.NO_SQ; // om en bonde går 2 steg framåt var brd_fiftyMove; // om man gör 50 (100 totalt)drag utan att röra bönderna eller att någon bonde är tagen så kan man begära oavgjort var brd_hisPly; // Denna h...
function addHelp1() { var help1 = d3.select("body") .append("div") .attr("class","help help1") .html("Drag your highest preference to the top of this list. <strong>The map will change&nbsp;colour</strong> to show you the ideal place to live."); help1.append("div") .classed("text-center",true) ...
var newButton; var editButton; var deleteButton; var importButton; var exportButton; var dataButton; var store; var expander; var cmodel; var chkSelModel; var infoGrid; var viewport; var rowsSelected; var importOption; var externalOption; var externalPermissions; var currentSelectedRow = -1; var extensionPmt = 'pmt';...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.com/docs/node-apis/ */ // You can delete this file if you're not using it const path = require(`path`); const editions = [2021]; const editionsToBuild = []; const templateMap = { news: `news-page`, about: `about`, index: `home`, co...
/* ** Copyright (c) 2020, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Instance Javascript'); const instance_query_cb = "instance-query-cb"; const min_instance_width = Math.round(icon_width * 3); const mi...
(function () { $("#doc_no_val").val("PO-"+makeid(5)); $('#doc_date').datepicker({ format: 'dd/mm/yyyy', autoclose: true, }).datepicker("setDate", new Date()); $('#tanggal_kadaluarsa').datepicker({ format: 'dd/mm/yyyy', autoclose: true, }).datepicker("setDate", new Date()); $('#terima_dok').datepicker({ ...
var assert = require('assert'); var Poly = require('../polynomial.js'); var tests = [ {f: "C", o: "add", a: "-1x^3-1x^2-1x-1", b: 0, r: "-x^3-x^2-x-1"}, {f: "R", o: "add", a: "-1x^3-1x^2-1x-1", b: 0, r: "-x^3-x^2-x-1"}, {f: "Q", o: "add", a: "-1x^3-1x^2-1x-1", b: 0, r: "-x^3-x^2-x-1"}, {f: "C", o: "add", a: ...
/** * nbs-qml * @file canavs/planets * @version 1.0 * @brief * @date 2018-09-26 * @author lanbery * @section LICENSE Copyright (c) 2018 - 2025 lanbery,NBS Chain Co. */ Qt.include("three.js") Qt.include("threex.planets.js") var SUN = 0; var MERCURY = 1; var VENUS = 2; var EARTH = 3; var MARS = 4; var JU...
'use strict'; function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === 'object' || typeof call === 'function')) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError( ...
// Chunk Mesher // Builds mesh for a chunk in format expected by [Fury](https://github.com/delphic/Fury) // With the addition of a tileIndicies buffer, for texture array lookup. // Requires vorld slice with chunk and it's adjacent chunks data, // as well as an atlas information for a texture array mapping block id to...
// from github.com/usfvgl/defaults-centroid/ function getClassCentroid(data, selectedclass, xDomain, yDomain){ var classData = data.filter(function(d){ return d.class == selectedclass; }); var xAvg = d3.mean(classData, function(d) {return d[xDomain]}) var yAvg = d3.mean(classData, function(d) {return d[yD...
"use strict"; function timeDifference(date1,date2) { var difference = date1.getTime() - date2.getTime(); var daysDifference = Math.floor(difference/1000/60/60/24); difference -= daysDifference*1000*60*60*24 var hoursDifference = Math.floor(difference/1000/60/60); difference -= ...
const context = new window.AudioContext; const volume = context.createGain(); volume.connect(context.destination); const notes = [ 'G0', 'Gs0', 'A0', 'As0', 'B0', 'C1', 'Cs1', 'D1', 'Ds1', 'E1', 'F1', 'Fs1', 'G1', 'Gs1', 'A1', 'As1', 'B1', 'C2', 'Cs2', 'D2', 'Ds2', 'E2', 'F2', 'Fs2', 'G2', 'Gs2', 'A2', 'As...
/*! PDFix license http://pdfix.net/terms. Copyright (c) 2016 Pdfix. All Rights Reserved. */ //////////////////////////////////////////////////////////////////////////////////////////////////// // pdfix_forms.js // Using ES5 standards //////////////////////////////////////////////////////////////////////////////////////...
import React, { Component } from 'react'; import { Card, CardBody, CardHeader, Col, Row, Label,Input,ListGroup,FormGroup,InputGroup,ListGroupItem,InputGroupAddon,InputGroupText,FormText,Modal, ModalBody, ModalFooter, ModalHeader, Button,Collapse } from 'reactstrap'; import { AppSwitch } from '@coreui/react' import {toa...
/*用户页面 -> projectAuditSchedule.html*/ var projectId = UrlParm.parm("projectId"); var userId = localStorage.getItem("user_id"); var offsetProgress = 1;//所有的offset都是从1开始的,如果从0 分页查询第二页的时候查不出来数据 var limitProgress = 5; var limitReplies = 5; var limitSubscribe = 3; var repliesArray = new Array(); ////二维数组 0 动态ID 1该动态offset...
var ccmFormidableAddressStates = ""; var ccmFormidableAddressStatesToCountries = ""; var ccmFormidableTranslate = function (s, v) { "use strict"; return I18N_FF && I18N_FF[s] ? (I18N_FF[s].replace('%s', v) || s) : s; }; // Formidable plugin (function ($) { "use strict"; $.fn.formidable = function (options) { o...
import pkg from '../package.json'; const __version = pkg.version; import 'regenerator-runtime/runtime.js'; import * as THREE from 'three'; import { VRButton } from 'three/examples/jsm/webxr/VRButton.js'; import { ARButton } from 'three/examples/jsm/webxr/ARButton.js'; import VRControlHelper from './VRControlHelper.j...