text
stringlengths
5.97k
41.2k
// TODO : Refactor code to make it more reusable and clean /* I was learning more about templates. So what it does is it will bind rendered DOM for you. For learning purposes, I used the Grid Component example as a guide and made my own template based on it. This template used will be <poke-table></poke-table> Wi...
$(function () { var showCoordinations = true; var $types = $(".types"); var onResize = function () { $types.css({ maxHeight: $(window).height() - parseInt($types.css("marginTop"), 10) - parseInt($types.css("marginBottom"), 10) - parseInt($("header").height()) + ...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import router from 'umi/router'; const {CDN_ADDRESS}=process.env; import { Row, Col, Card, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, DatePicker, Modal, me...
/* @license Rollup.js v2.3.3 Sat, 04 Apr 2020 22:17:48 GMT - commit d18cb37d7c328a63c36761583ce456275f164462 https://github.com/rollup/rollup Released under the MIT License. */ 'use strict'; var rollup_js = require('./rollup.js'); var path = require('path'); let enabled = !("NO_COLOR" in process.env) && ...
'use strict' var fs = require('fs'); const util = require('util'); const readFile = util.promisify(fs.readFile); const csvtojson=require('csvtojson') const contentful = require('contentful') const contentfulManagement = require('contentful-management') const chalk = require('chalk') const Table = require('cli-table2'...
/** * @author derschmale <http://www.derschmale.com> */ var project = new DemoProject(); var physics = false; var lights; var heightData; var worldSize = 20000; var waterLevel = 467; var minHeight = 0; var maxHeight = 4000; var treeLineStart = 1000; var treeLineEnd = 2000; var terrain = null; var numFoliageCells = ...
var complete = { actor: 'actress', actors: 'actresses', actress: 'actor', archduchess: 'archduke', archduchesses: 'archdukes', archduke: 'archduchess', aunt: 'uncle', aunts: 'uncles', baron: 'baroness', baroness: 'baron', baronesses: 'barons', baronet: 'baronetess', baronets: 'baronetesses', ...
import '../_core/core.js'; import * as icons from '../_core/icons.js'; import { getWidth, index, insertAfter, insertBefore, isTouchDevice, parseDOMElement, setOuterWidth, setWidth, textWidth, getHeight, diffPosition, siblings, empty } from '../_core/lib.js'; import { Resizable } f...
// Copyright 2015 Sinfonier Project /* * 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, V...
/** * Created by ryeubi on 2015-08-31. * Updated 2017.03.06 * Made compatible with Thyme v1.7.2 */ var net = require('net'); var util = require('util'); var fs = require('fs'); var xml2js = require('xml2js'); var wdt = require('./wdt'); const path = require('path'); const moment = require('moment...
/* PAGINATORE JS V 2 AJAX */ /* campi hidden da avere nella pagina dove si vuole usare il paginatore Numero di righe totali <input type='hidden' id='number_of_items' value="{ @totale_righe }" /> Imposto il numero di righe per pagina che viene passato al js <input type='hidden'...
/** * 过车导出_全部导出 */ import React, {Component} from 'react' import {inject, observer} from "mobx-react"; import axios from "axios"; import {Button, Divider, message, notification} from "antd"; import progress from "request-progress"; import request from "request"; import { eventBus, md5Sign, formatDate, ...
var markers = {}; var contextmenuDir; var contextmenuDir; var cevent; var map; var infoWindow = new google.maps.InfoWindow(); var lat; var lng; var currSite; var currEvent; function node_turn(cmd) { $('.contextmenu').remove(); bootbox.confirm("Do you want to turn "+cmd+" "+currSite.name+" ?", function(res) { ...
var s_date = windowvar.start_date; var s_date1 = windowvar.start_date1; var e_date = windowvar.end_date; let list_btn_template_start = '' let list_btn_template_end = '' list_btn_template_start += '<div class="dropdown pull-right">' list_btn_template_start += '<button class="btn btn-info btn-sm btn-flat dropdown-toggle"...
import ActionFactory from "./Actions/ActionFactory"; import debug from "debug"; import RoonApi from "node-roon-api"; import RoonApiBrowse from "node-roon-api-browse"; import RoonApiImage from "node-roon-api-image"; import RoonApiTransport from "node-roon-api-transport"; const log = debug("plug-in"); const roonLog = de...
import React, { useEffect, useState } from "react"; import * as baseApi from "../../api/baseApi"; import * as gameApi from "../../api/gameApi"; import * as playerApi from "../../api/playerApi"; import "./GamePage.css"; import CardTable from "./CardTable"; import { Row, Col } from "react-bootstrap"; import Sidebar from ...
"use strict"; // The MIT License (MIT) // // Copyright (c) <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // righ...
const Layer = function (qubits, registers) { this.qubits = [].concat(qubits); this.registers = [].concat(registers); }; Layer.prototype = { set_qubit: function (qubit, element) { this.qubits[this.qubits.indexOf(qubit)] = element; }, set_qu_multibox: function (bits, label, connectors) { connectors = ...
const grid = new Muuri('.grid',{ items: listarContactos(true), layout: { rounding: false } }); var isLoading = false; const notyf = new Notyf({ duration: 3000, position: { x: 'right', y: 'top' }, types: [ { type: 'info', ...
var MZFFTotal = doc.getElementById("MZFFTotal"), MZFFTotalPage = 0, MZFFnumPerPage = doc.getElementById("MZFFnumPerPage"), MZFFnumPer = 20, MZFFassignPage = doc.getElementById("MZFFassignPage"), MZFFconfirm = doc.getElementById("MZFFconfirm"); var MZFSpage = 1, MZFSdataSource = [], ...
// Sample: const nationalData = {} const dataByState = { // Sample: Alabama: { latitude: 32.31823, longitude: -86.902298, totalSoftwareDeveloperJobs: 10000, medianDevloperSalary: 60000, studioAverageRent: 700.48, oneBedroomAverageRent: 946.94, twoBedroomAverageRent: 1060.12, abb: 'A...
import React from "react"; import styled, {keyframes} from "styled-components"; import {BaseContainer} from "../../helpers/layout"; import {getDomain} from "../../helpers/getDomain"; import {withRouter, Link} from "react-router-dom"; import {Button} from "../../views/design/Button" import {Button2} from "../../views/de...
const userConfig = require('./userConfig.json') const Discord = require('discord.js'); const playerID = userConfig["PlayerTagID"] const playertag = (`<@${playerID}>`) const fetch = require('node-fetch'); const funcImports = require('./functions'); const fs = require('fs'); process.env.TZ = userConfig["Timezone"]; glob...
const QUERYSTRING = window.location.search; const URLPARAMS = new URLSearchParams(QUERYSTRING); const INTERNAL = URLPARAMS.get('internal'); const LINE = URLPARAMS.get('line'); const STOP1_IDS = URLPARAMS.get('stop1'); const STOP2_IDS = URLPARAMS.get('stop2'); let STOP1_ID_ARR = []; let STOP2_ID_ARR = []; const STOP1_NA...
class EditPlayerStunts extends FormApplication { constructor(actor, stunt, options){ super(actor, stunt); this.actor = actor; this.stunt=duplicate(stunt); this.new = options?.new; //This is a good place to set up some variables at the top level so we can access them...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 const AWS = require('aws-sdk'); const moment = require('moment'); const { customAlphabet } = require('nanoid'); const { SOLUTION_ID, VERSION } = process.env; let options = {}; if (SOLUTION_ID && VERSION && SOLU...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.forEach = forEach; exports.concatenateAsyncIterator = concatenateAsyncIterator; exports.textDecoderAsyncIterator = textDecoderAsyncIterator; expo...
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import _typeof from "@babel/runtime/helpers/esm/typeof"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _extends from "@babel/runtime/helpers/esm/extends"; var _this = this; import isPlainObject from 'lodash-...
/** * Copyright 2018 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 applica...
'use strict' exports.__esModule = true var _extends = Object.assign || function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key] } ...
import { GEO_CONTEXT_RENDER } from "../engine/graph_node" import { ObjectListProcessorInstance as ObjectListProc } from "./ObjectListProcessor" import { castle_grounds_movtex_water, castle_grounds_movtex_tris_waterfall, castle_grounds_dl_waterfall } from "../levels/castle_grounds/areas/1/movtext.inc" import { ccm_movte...
"use strict"; 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)...
import _assign from 'lodash.assign'; import _forOwn from 'lodash.forown'; import {v4 as uuid} from 'uuid'; import cloneDeep from 'lodash.clonedeep'; import h from 'virtual-dom/h'; import extractPeaks from 'webaudio-peaks'; import { FADEIN, FADEOUT } from 'fade-maker'; import { secondsToPixels, secondsToSamples } fro...
import classNames from "classnames"; import deepEqual from "deep-equal"; import { MountService } from "foundation-ui"; import PropTypes from "prop-types"; import React, { Component } from "react"; import { deepCopy, findNestedPropertyInObject } from "#SRC/js/utils/Util"; import { pluralize } from "#SRC/js/utils/String...
/* * Copyright 2011 Rackspace * * 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...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DevServer = void 0; /* eslint-disable global-require,no-restricted-syntax */ const dotenv_1 = __...
import Cookies from 'universal-cookie' import FormikEffect from './FormikEffect.js' import Popup from 'react-popup' import React, { Component } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { Formik, Field, FieldArray, Form } from 'formik' import { faPlus, faTimes } from '@fortawe...
/* eslint-disable no-param-reassign */ /* eslint-disable react/no-unused-state */ /* eslint-disable react/jsx-indent */ /* eslint-disable no-nested-ternary */ import React, { Component } from "react"; import PropTypes from "prop-types"; import classnames from "classnames"; import { Upload, Icon, Modal, Progress, Toolti...
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnProp...
// 任务验证者类 class nsTaskValidator { // 角色code码 NOT_PROJECT_MEMBER = '59008'; PROJECT_MEMBER = '59007'; SUB_TASK_JOIN_USER = '59006'; SUB_TASK_VALIDATOR = '59005_5'; SUB_TASK_FINISH_USER = '59005'; SUB_TASK_CREATE_USER = '59004'; TASK_JOIN_USER = '59006'; TASK_VALIDATOR = '5...
import 'ol/ol.css' import { get, transform } from 'ol/proj' import Map from 'ol/Map' import View from 'ol/View' import TileLayer from 'ol/layer/Tile' import XYZ from 'ol/source/XYZ' import Overlay from 'ol/Overlay' import TileGrid from 'ol/tilegrid/TileGrid' import VectorLayer from 'ol/layer/Vector' import Feature from...
import Proxy from './proxy' import { util, deepCopy, findDom, createDom, addClass, typeOf, hasClass, removeClass, checkIsBrowser } from './utils/util' import sniffer from './utils/sniffer' import XgplayerTimeRange from './utils/xgplayerTimeRange' import Errors from './error' import allOff from 'event-emitter/all-off' i...
/* jshint -W097 */ /* jshint -W030 */ /* jshint strict: false */ /* jslint node: true */ /* jslint esversion: 6 */ "use strict"; const modifyResponse = require('http-proxy-response-rewrite'); const express = require('express'); const proxy = require('http-proxy-middleware').createProxyMiddleware; const querystring = r...
var APP_TYPE = 'Iteration'; var START_DATE_NAME = "StartDate"; var END_DATE_NAME = "EndDate"; var ESTIMATE_UNIT_NAME = 'IterationEstimateUnitName'; function IterationScopeChange() { var dropdown; var wait; var prefixes = { 'storyPrefix':null, 'defectPrefix':null, 'defectSuitePrefix':null, 'testSetPrefix':...
"use strict"; /*jshint -W030, node: true */ var esprima = require('esprima'), fs = require('fs'), jsdoc = require('jsdoc-parse'), path = require('path'), when = require('when'), node = require('when/node'), fsp = node.liftAll(require('fs')), glob = require('glob-all'); // promisified versio...
'use strict' const querystring = require('querystring') const THREE = require('three') import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader' import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' import { RGBELoader } f...
/* @license * Copyright 2020 <NAME> - 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 app...
/* Copyright (c) 2013-2015 <NAME>, MIT License */ /* jshint node:true, asi:true, eqnull:true */ "use strict"; var util = require('util') var buffer = require('buffer') var _ = require('lodash') var parambulator = require('parambulator') var mstring = require('mstring') var nid...
/** * Отсортируй c помощью фугкции * массив по приоритету где вначале 'Super High' * а в конце 'Backlog'. * Если приоритет будет одинаковый, то первее будет тот, у кого id меньше * const PRIORITY нельзя изменять * const array нельзя изменять */ const PRIORITY = { SUPER_HIGH: 'Super High', HIGH: 'High', NO...
var posicion_categ; var cant_categ; var categorias; var formulario, inputs, inputNombre, inputApellido, inputEmail, inputUserName, inputOldContra, inputContra, inputConContra, botonEnvio; var errorNomb, errorUserName, errorAp, errorEm, errorOldPassword, errorCon,...
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 (b.hasOwnProperty(p)) d[p] =...
/* * 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 * distributed u...
import { getClientRects, addEvent, getPointDatasetElement } from './utils/dom'; const childrenElm = new Map(); const childrenScaleElm = new Map();//放缩element集合 const positionMap = new Map();//页面分割,如6列12块; const ElmPositionMap = new Map();//存储节点占据的位置和高 const yMap = new Map(); const xMap = new Map(); let curElementIndex ...
/// <reference path="initCesium.js" /> homePosition[2] = 40000; initCesium(); Sandcastle.finishedLoading(); // 为 ture 时,球体会有高程遮挡效果 viewer.scene.globe.depthTestAgainstTerrain = false; var scene = viewer.scene; var camera = viewer.camera; const handler = new Cesium.ScreenSpaceEventHandler(scene.canvas); var pick; ...
import { Meteor } from 'meteor/meteor'; import { Session } from 'meteor/session'; import { TAPi18n } from 'meteor/tap:i18n'; import { $ } from 'meteor/jquery'; import { getDelegationContract } from '/imports/startup/both/modules/Contract'; import { Contracts } from '/imports/api/contracts/Contracts'; import { convertT...
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(generator["throw"]...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.download = exports.collect = void 0; const fs_1 = require("fs"); const path_1 = require("path"); const child_process_1 = require("child_process"); const ip = require("ip"); const init_1 = require("./init"); const cli_tools_1 = require(...
import React, { Component } from 'react'; import Frame from 'react-frame-component'; import SyntaxHighlighter from 'react-syntax-highlighter'; import { vs2015, docco } from 'react-syntax-highlighter/dist/esm/styles/hljs'; import getBlock from './blocks'; import getIcons from './icons'; const iconList = getIcons(); con...
const preprints = `{{preprintWords.Preprints}}`; const brand = `OSF Preprints`; const arxiv_trademark_license = 'arXiv is a trademark of Cornell University, used under license.'; export default { global: { share: `Share`, complete: `Complete`, cancel: `Cancel`, discard: `Discard cha...
/* ************************************ */ /* Define Helper Functions */ /* ************************************ */ function getDisplayElement() { $('<div class = display_stage_background></div>').appendTo('body') return $('<div class = display_stage></div>').appendTo('body') } function addID() ...
'use strict' /** * GET Badges * Controllers for badge routes * (C) <NAME> ******************************/ // Deps const req = require('request-promise-native'), logger = require('winston'), numeral = require('numeral'), parseLink = require('parse-link-header'), _ = require('lodash'), querystring = requir...
/** * Copyright 2017 HUAWEI. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 * * @file Implementation of the default test framework which start a test flow to run multiple tests according to the configuration file */ 'use strict'; // global variables const childProcess = require('child_process'); const ...
import { JB2APATREONDB } from "./jb2a-patreon-database.js"; import { JB2AFREEDB } from "./jb2a-free-database.js"; import getVideoDimensionsOf from "../canvas-animation/video-metadata.js"; import meleeExplosion from "./melee-explosion.js"; const wait = (delay) => new Promise((resolve) => setTimeout(resolve, delay)...
/* eslint-disable no-shadow, no-param-reassign */ const MatchSubclassesAnalyzer = require('./match-subclasses.js'); const FindExportsAnalyzer = require('./find-exports.js'); const FindCustomelementsAnalyzer = require('./find-customelements.js'); const { Analyzer } = require('./helpers/Analyzer.js'); /** @typedef {impo...
/* eslint-env node, es6 */ // @remove-on-eject-begin /** * Portions of this source code file are from create-react-app, used under the * following MIT license: * * Copyright (c) 2013-present, Facebook, Inc. * https://github.com/facebook/create-react-app * * This source code is licensed under the MIT license foun...
const Items = [ { id: "getting-started", title: "Getting Started", description: "brief static html content with an overview on how to use BULS; links to direct to main BULS help page in WordPress, other pages, and/or other sections of the menu", icon: { code: "description", group: "action" }, ...
const fs = require('fs-extra') const config = require('../lib/config/config.json') const prefix = config.prefix exports.afkOn = (pushname, reason) => { return `AFk esta activado!!!\n\n➸ *Usuario*: ${pushname}\n➸ *Razon*: ${reason}` } exports.afkOnAlready = () => { return `Afk ya esta activado.` } exports.afk...
import {parse as isoParse} from "isoformat"; import {isColor, isEvery, isOrdinal, isFirst, isSymbol, isTemporal, maybeSymbol, order} from "./options.js"; import {registry, color, position, radius, opacity, symbol, length} from "./scales/index.js"; import {ScaleLinear, ScaleSqrt, ScalePow, ScaleLog, ScaleSymlog, ScaleQu...
import React from 'react' import FormWrapper from 'core/components/FormWrapper' import AwsAvailabilityZoneChooser from '../cloudProviders/AwsAvailabilityZoneChooser' import AwsClusterReviewTable from './AwsClusterReviewTable' import AwsRegionFlavorPicklist from './AwsRegionFlavorPicklist' import AwsClusterVpcPicklist f...
'use strict' const glob = require('glob') const path = require('path') const fs = require('fs') const yaml = require('js-yaml') const hljs = require('highlight.js') const MD = require('markdown-it') const argv = require('yargs').argv let langs = ['en', 'zh-CN'] const getPath = function (dir) { return pa...
// gostdjs version 0.1 // Copyright 2017 The Go Authors. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. "use strict"; const fs = require("fs"); const zlib = require("zlib"); const sync = require("../sync/index.js"); const internal = require("....
//---------Global----------// var timer = 0; var portrait_width = 768; var landscape_width = 1024; var metatag = null; var masthead = null; var tabletop = null; var label = null; var container = null; var current_left = 0; var current_top = 0; var absx = 0; var absy = 0; var dx = 0; var dy = 0; var x_ispos = 1; var y_i...
$.fn.OneClickSelect = function () { return $(this).on('click', function () { var range, selection; if (window.getSelection) { selection = window.getSelection(); range = document.createRange(); range.selectNodeContents(this); selection.removeAllRanges(...
if (typeof(console) == 'undefined') { window.console = console = { 'log': function() {}, 'info': function() {}, 'warn': function() {}, 'error': function() {} }; } var xn = {}; xn.config = { 'fancyOptions': { 'transitionIn' : 'fade', 'transitionOut' ...
"use strict"; /* * This file contains some shared functions. They are used by other modules, but * are defined here so that tests can import this library and test them. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getTargetWindow = exports.getPatientParam = exports.byCodes = exports.b...
import React, { useState, useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux' import { Button, Checkbox, Dimmer, Divider, Dropdown, Form, Icon, Input, Loader, Responsive, Table } from 'semantic-ui-react' import { cre...
/* AWAL SWAL ALERT */ var oTable; function datatable(id, url) { var table = id; // var fixedHeaderOffset = 0; // if (App.getViewPort().width < App.getResponsiveBreakpoint('md')) { // if ($('.page-header').hasClass('page-header-fixed-mobile')) { // fixedHeaderOffset = $('.page-header').outerHeight(true);...
'use strict'; let definitions = { stripe_secret_key:'<KEY>', stripe_public_key:'<KEY>', stripe_product_id:'prod_E0jrZSc9mBYvfn' } let lastScreen = ''; let changeScreen,backScreen; $(document).ready(function () { $("#donate-amount-1").prop("checked", true);...
var simpleGridObj = { indexOffset : 0, colors : [ 'red', 'blue', 'black', 'orange', 'green', 'turquoise', 'gray', 'pink', 'violet', 'brown' ], settings : { hideheader : false, gtype : ...
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cli = void 0; var tslib_1 = require("tslib"); var terminusdb_client_1 = tslib_1.__importStar(require("@terminusdb/terminusdb-client")); var commander_1 = require("commander"); var json_colorizer_1 = tslib_1.__import...
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
var INITIAL_SIZE = 250, INITIAL_WIND = [10.0, 10.0], INITIAL_CHOPPINESS = 1.5; var CLEAR_COLOR = [1.0, 1.0, 1.0, 0.0], GEOMETRY_ORIGIN = [-1000.0, -1000.0], SUN_DIRECTION = [-1.0, 1.0, 1.0], OCEAN_COLOR = [0.004, 0.016, 0.047], SKY_COLOR = [3.2, 9.6, 12.8], EXPOSURE = 0.35, GEOMETRY_RES...
import { observable, observe, autorun, autorunAsync, action, computed, asMap, isComputedProp } from 'mobx'; const DEFAULT_SERVER_ERROR_MESSAGE = 'Lost connection to server'; const getFieldErrors = (tempData) => { const errorsArray = []; Object.keys(tempData).forEach((key) => { if (tempData[key] && typeof temp...
/* * Copyright 2019 Lightbend Inc. */ const path = require("path"); const debug = require("debug")("akkaserverless-crdt"); const util = require("util"); const grpc = require("grpc"); const protoLoader = require("@grpc/proto-loader"); const protoHelper = require("./protobuf-helper"); const AnySupport = require("./pro...
/* * Copyright 2017, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import Rx from 'rxjs'; import {get, find, isString, isNil, isNumber} from 'lodash'; import axios from '../libs/ajax';...
const Telegraf = require('telegraf') const sqlite3 = require('sqlite3').verbose(); const moment = require('moment'); var i18n = require('i18n'); const fs = require('fs'); const PropertiesReader = require('properties-reader'); const prop = PropertiesReader('config.properties'); getProperty = (pty) => { return prop.ge...
/****************************************************************************** ************************************ cidSign* ********************************* ******************************************************************************* Description - Very fun code to run a basic way to sign CIDs on the Ethereum blo...
require('env2')('config.env'); var debug = require('debug')('advertise'); var bleno = require('./lib/bleno'); var fs = require('fs'); var util = require('util'); var utils = require('./lib/utils') var hookFunctions = require('./hookFunctions/pos.js'); var path=require('path'); var events = require('events'); var getop...
import * as THREE from '../resources/threejs/r119/build/three.module.js'; export { main }; function main() { const canvas = document.querySelector('#c'); const renderer = new THREE.WebGLRenderer({canvas: canvas}); renderer.setClearColor(0xAAAAAA); renderer.shadowMap.enabled = true; function makeCamera(fov ...
const mdtApp = new Vue({ el: "#content", data: { page: "Home", officer: { name: "Guest" }, offenses: [], warrants: [], homepage: { button_press: 0, reports: false, warrants: false }, recent_searches...
import '../colors/colors.js'; import './list-item-generic-layout.js'; import './list-item-placement-marker.js'; import { css, html } from 'lit-element/lit-element.js'; import { classMap } from 'lit-html/directives/class-map.js'; import { getFirstFocusableDescendant } from '../../helpers/focus.js'; import { getUniqueId ...
let bgm = document.getElementById("bgm"); let sound = document.getElementById("sound"); class Vector { constructor(x, y) { this.x = x; this.y = y; } plus(other) { return new Vector(this.x + other.x, this.y + other.y); } times(factor) { return new Vector(this.x * factor, this.y * factor); } ...
class Color { constructor(opacity) { this.opacity = opacity; } toJSON() { return this.toString(); } } // --- // LAB helper functions const rgbToLRGB = function (x) { x /= 255; return x > 0.04045 ? Math.pow((x + 0.055) / 1.055, 2.4) : x / 12.92; }; const lrgbToRGB = function (...
"use strict"; var path = require("path"); var fs = require("fs"); var dotenv = require("dotenv"); var micromatch = require("micromatch"); var minimist = require("minimist"); var mkdirp = require("mkdirp"); var recursiveReadDir = require("recursive-readdir-sync"); var terser = require("terser"); var programVersion; v...
window.idproduct = ""; window.condition = ""; window.tax_oficial = 10; var pedido = new Array(); var detallePedido = new Array(); pedido.detalle = new Array(); localStorage.lastname = "Smith"; $(document).ready(function(){ $('.carousel.carousel-slider').carousel({full_width: true}); inicializar(); con...
//All ye who enter here abandon all hope const { CanvasManager, ResourceManager } = Eleven; const BACKGROUND_COLOR = "white"; const GEM_IMAGE = "gems.png"; const BOARD_ROWS = 9; const BOARD_COLUMNS = 9; const GEM_SIZE = 10 const GEM_SPACE = 1; const GEM_STRIDE = GEM_SIZE + GEM_SPACE; const GEM_COUNT = 6; const SELECT_...
/** * Define the global variables used for this script. */ const scriptID = "GM-GL"; let glContainer; let glSearchDiv; let glResultDiv; let glActionDiv; let glFormTag; let initFilter; const glBtnShowResultText = "SR"; const glBtnShowResultTextDesc = "show result"; const glBtnHideResultText = "HR"; co...
var currentTestName = ""; var currentSteps = []; var currentStepIndex = 0; var testCases = []; var testMode = "manual"; // can be "auto" var isRecursive = false; var runningRecursive = false; var snapshotPrefix = ""; var snapshotIndex = 0; var textIndex = 0; var advanceKey = "n"; // Request to...
/* Copyright 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ //(function( $ ) { // 'use strict'; // // // console.log("working"); // refresh_messenger(); // // setTim...