text
stringlengths
3.22k
29.5k
//////////////////////////////////////////////////////////////////// // // Kerf Compensation by <NAME> | April 9th 2018 | CC BY SA 4.0 // // Credits: <NAME> for his support // ///////////////////////////////////////////////////////////////////// //Define some variables: var width = 80; // Outer dimensions var groo...
/** * Copyright (C) 2006-2019 Talend Inc. - www.talend.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* * 流程: 绑定指令-> 设置配置(vaConfig) -> 校验(check) -> 报错(showErr) 或 自定义报错 * canNull vanow * 用法,绑定v-va.(reg) tag="使用默认提示", name="唯一name", errMsg="自定义报错信息" */ var va = {}; function unique(arr){ var hashTable = {}, newArr = []; for(var i = 0;i < arr.length;i++){ if(!hashTable[...
import _ from "lodash"; import methods from "methods"; import express from "express"; import logger from "./logger.js"; import colors from "colors/safe"; import async from "async"; import ms from "ms"; class mapingRoutes { constructor (appExpress, { prefix = "", maping = null, capjs = null } = {}) { this....
var CreatedOKLodop7766=null; //====判断是否需要安装CLodop云打印服务器:==== function needCLodop(){ try{ var ua=navigator.userAgent; if (ua.match(/Windows\sPhone/i) !=null) return true; if (ua.match(/iPhone|iPod/i) != null) return true; if (ua.match(/Android/i) != null) return true; if (ua.match(/Edge\D?\d+/i) != null) retu...
"use strict"; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ...
'use strict'; const isObject = require('lodash.isobject'); const isString = require('lodash.isstring'); const aws = require('@cumulus/common/aws'); const StepFunctions = require('@cumulus/common/StepFunctions'); const AWS = require('aws-sdk'); const moment = require('moment'); const log = require('@cumulus/common/log'...
const Wrapper = styled.div` color: #232323; border-top: 4px solid #fcb431; max-width: 940px; flex-grow: 1; margin: 2rem; background: #fff; padding: 2rem; font-size: 1em; box-shadow: 1px 1px 3px rgba(0,0,0,0.3); font-size: 1em; line-height: 1.4; @media(max-width: 500px) { margin: 0; } ` c...
var getDayOfYear = require('date-fns/get_day_of_year'); var getISOWeek = require('date-fns/get_iso_week'); var getISOYear = require('date-fns/get_iso_year'); var parse = require('date-fns/parse'); var isValid = require('date-fns/is_valid'); var enLocale = require('date-fns/locale/en'); /** * @category Common Helpers ...
var didScroll; var lastScrollTop = 0; var delta = 5; var body = $( 'body' ); var navbar = $( '#navigation-bar' ); var navbarHeight = navbar.outerHeight(); var mask = $( '#hero-mask' ); var heroHeight = $( '#hero' ).outerHeight(); jQuery( document ).ready( function( $ ) { ( function() { 'use strict'; noImagePost...
'use strict' var gBoard; var gLevel = { size: 8, mines: 12, } var gGame = { isOn: false, shownCount: 0, markedCount: 0, secsPassed: 0, lives: 3, difficulty: 'MEDIUM', bestTimeEasy: Infinity, bestTimeMedium: Infinity, bestTimeHard: Infinity, hints: 3, safeMoves: 3, ...
'use strict'; const test = require('mapbox-gl-js-test').test; const Anchor = require('../../../src/symbol/anchor'); const CrossTileSymbolIndex = require('../../../src/symbol/cross_tile_symbol_index'); const {OverscaledTileID} = require('../../../src/source/tile_id'); const styleLayer = { id: 'test' }; function m...
var fs = require('fs'); var util = require('util'); var Buffer = require('safe-buffer').Buffer; var Readable = require('readable-stream'); var objectAssign = require('object-assign'); var Command = require('./command.js'); var Packets = require('../packets/index.js'); var compileParser = require('../compile_text_pars...
var canvas = document.getElementById("mycanvas"); var gl; var pos; var pMatrixUniform; var mvMatrixUniform; var pMatrix = mat4.create(); var mvMatrix = mat4.create(); var samplerUniform; var vShader; var fShader; var program; var texCoordAttr; var texCoords; var vpWidth; var vpHeight; var loading = true; var outstandin...
// Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved //----------------------------------------------------------------------------- // // You may not use the identified files except in compliance with the Apache // License, Version 2.0 (the "License.") // // You may obtain a copy of the Lice...
import {ConsoleCommand} from '../../console/index.js'; import {ModalWindow} from '../../modal-window/index.js'; const monthNumberToWord = (n) => { return ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][n]; } const stringToHTML = (htmlString) => { const div = document.crea...
// Core Libs & Utils import React, { PureComponent } from 'react'; import QrReader from 'react-qr-reader'; import cx from 'classnames'; // Assets import boltImage from './assets/images/bolt.png'; import arrowImage from './assets/images/arrow.svg'; import closeImage from './assets/images/close.svg'; import qrcodeImage ...
import React, { Component, Fragment } from "react"; import PropTypes from "prop-types"; import Message from "./components/Message/Message"; import Frame from "./components/Frame/Frame"; import ZoomScale from "./components/ZoomScale/ZoomScale"; import Dropzone from "./components/Dropzone/Dropzone"; import Status from "...
"use strict"; var genericPool = require('generic-pool'); var pg = require('pg'); var q = require('q'); var _ = require('underscore'); const fairScheduler = require('./fair-scheduler'); var logger = require('@dawadk/common/src/logger').forCategory('sql'); var statistics = require('../statistics'); var Client = pg.Cli...
/* * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import React, { useState } from 'react'; import { Translate } from 'react-localize-redux'; import { useDispatch, useSelector } from 'react-redux'; import styled from 'styled-components'; import { EXPLORER_URL } from '../../config'; import { checkAccountAvailable } from '../../redux/actions/account'; import { clearLoca...
/* * jsGameSoup Multiplayer Client * Copyright 2009-2011 <NAME> * * AGPL version 3 (see COPYING for details) * * Note: this depends upon json2.js on platforms that don't have JSON.stringify() * */ // check for JSON and barf if not found. Probably you will be using IE if this happens. if (typeof(JSON) == "u...
// Automatically adds external references. // Looks for the terms which do not have a definition locally on Shepherd API // For each returend result, adds `data-cite` attributes to respective elements, // so later they can be handled by core/link-to-dfn. // https://github.com/w3c/respec/issues/1662 import { IDBKey...
/* Copyright (c) 2007 <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 restriction, including without limitation the rights * to use, copy, modify, merge, publish, distr...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var scriptList; // Mapping between font list ids and the generic family setting they // represent. var genericFamilies = [ { fontList: 'standardFon...
import * as React from 'react'; import PropTypes from 'prop-types'; import Downshift from 'downshift'; import memoize from 'fast-memoize'; import { bem } from '../../utils'; import { Text, MarkedText } from '../Text'; import { FieldWrapper } from '../FieldWrapper'; import { ContentPlaceholder } from '../ContentPlacehol...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; var BatteryManager = { TOASTER_TIMEOUT: 5000, TRANSITION_SPEED: 1.8, TRANSITION_FRACTION: 0.30, AUTO_SHUTDOWN_LEVEL: 0.00, EMPTY_BATTERY_LEVEL: 0...
var base_url = $('#mainurl').val(); var amount = $('input[name=amount]').val(); var duration = $('input[name=duration]').val(); var currency = $('input[name=hidden_currency]').val(); var vendor = $('input[name=vendor]').val(); var orderData; $(document).ready(function () { orderData = new FormData(); orderDat...
/*global System*/ import { resource, loadViaScript } from 'lively.resources'; import { promise, string, obj } from 'lively.lang'; import * as modulePackage from 'lively.modules'; import { easings } from "lively.morphic"; import { adoptObject } from "lively.classes/runtime.js"; import { Color } from "lively.graphics"; ...
'use strict'; let svg = require('../util/svg'); let Interface = require('../core/interface'); let Step = require('../models/step'); import * as Interaction from '../util/interaction'; /** * Slider * * @description Horizontal or vertical slider with settable interaction modes. * * @demo <span nexus-ui="slider" step=0....
var Joystick = function(opts) { opts = opts || {}; this._container = opts.container || document.body; this._strokeStyle = opts.strokeStyle || 'cyan'; this._lineStyle = opts.lineStyle || 'red'; this._container.style.position = "relative"; this._width = this._container.offsetWidth; this._he...
import {useState, useEffect} from 'react' import './style.css'; import AutoSizer from "react-virtualized-auto-sizer" import * as d3 from 'd3' import { sankeyCircular, sankeyJustify } from 'd3-sankey-circular' import {GenerateRandomKey} from '../../util'; export default function Sankey(props) { const {getWorkflow...
import { v4 as uuidv4 } from "uuid"; import yesNo from "~/components/yes-no/YesNo"; import numberinput from "~/components/number-input/NumberInput"; import * as PMBuilder from "~/scripts/promotion-message-builder"; import Observatory from "~/lib/foe-data/gbs-data/Observatory"; const i18nPrefix = "components.promotion_...
import React from 'react' import PropTypes from 'prop-types' import Tree from '../Tree' import { PureComponent } from '../component' import { getProps } from '../utils/proptypes' import { getUidStr } from '../utils/uid' import { treeSelectClass } from '../styles' import Result from './Result' import absoluteList from '...
const inputIdx = 5; const debug = false; function getOre(map, fuelQty) { const fuelReactants = Object.keys(map['FUEL'].reactants).reduce( (fuelReactants, chem) => { fuelReactants[chem] *= fuelQty; return fuelReactants; }, { ...map['FUEL'].reactants, } ); while ( Object.keys(...
/* * CONSTANTS */ var protocolId = Buffer.from([ 0xfe, 'S'.charCodeAt(0), 'M'.charCodeAt(0), 'B'.charCodeAt(0), ]); var headerTranslates = { Command: { NEGOTIATE: 0x0000, SESSION_SETUP: 0x0001, LOGOFF: 0x0002, TREE_CONNECT: 0x0003, TREE_DISCONNECT: 0x0004, CREATE: 0x0005, CLOSE:...
/** * Copyright 2013-2021 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
/* eslint-disable new-cap */ /* eslint-disable no-undef */ const QuillCursors = require('quill-cursors'); const ejs = require('ejs'); const host = location.origin.replace(/^http/, 'ws'); const Logoot = require('../../src/logoot'); let l1 = new Logoot('site1'); const format = require('xml-formatter'); Quill.register('m...
var KA_LAT = 52.1363188; var KA_LNG = 7.7404166; var elemSvg = null; var GEOJSON = null; var TILES_URL = 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png'; var MAP_ATTRIBUTION = 'Map data &copy; <a href="//openstreetmap.org">' + 'OpenStreetMap</a> contributors |...
/** * Copyright 2016 The AMP HTML Authors. 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 require...
const { waitForEvent } = require('../app/utils/utils'); const Contracts = require('../app/contracts.js'); const { web3, ServerPublicURL } = require('../app/contracts.js'); // Get resources packages listed for wholesale module.exports = async function (req, res) { await Contracts.loadContracts(); console...
function radioChecked(name,value){ $("input[name='project."+name+"']").removeAttr("checked"); $("input[name='project."+name+"'][value='"+value+"']").attr("checked","checked"); $("input[name='project."+name+"']").parent().removeClass("checked"); $("input[name='project."+name+"'][value='"+value+"']").parent()...
/* * 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. */ const assign = require("object-assign"); const {head, get} = require("lodash"); const { SELECT_FEATURES, DESEL...
'use strict' var bits = require('bit-twiddle') var dup = require('dup') var Buffer = require('buffer').Buffer //Legacy pool support if(!global.__TYPEDARRAY_POOL) { global.__TYPEDARRAY_POOL = { UINT8 : dup([32, 0]) , UINT16 : dup([32, 0]) , UINT32 : dup([32, 0]) , BIGUINT64 : dup([32, 0])...
//ad bot to server: https://discord.com/oauth2/authorize?client_id=758234874661306368&scope=bot require('dotenv').config(); const Discord = require('discord.js'); const DisTube = require('distube'); // const SpotifyPlugin = require("@distube/spotify"); const client = new Discord.Client(); var color = 0xc1f68a config = ...
'use strict'; var crypto = require('crypto'); var File = require('vinyl'); var objectAssign = require('object-assign'); var objectPick = require('object.pick'); var Bluebird = require('bluebird'); var tryJsonParse = require('try-json-parse'); var TaskProxy = function(opts) { objectAssign(this, { task: opts.tas...
/* * JS for gameOfSkate generated by Appery.io */ Apperyio.getProjectGUID = function() { return '0f717aab-f351-4aa4-aaec-666dbb5f0d0a'; }; function navigateTo(outcome, useAjax) { Apperyio.navigateTo(outcome, useAjax); } function adjustContentHeight() { Apperyio.adjustContentHeightWithPadding(); } func...
require("dotenv").config(); const PORT = process.env.PORT || process.env.NODE_PORT || 8080; console.log([PORT]) const ITEMS_COLLECTION = "gifts"; // const MONGODB_URI = process.env.PROD_MONGODB || process.env.MONGODB_URI; const MONGODB_URI = `mongodb://${process.env.MONGO_USERNAME}:${process.env.MONGO_PASSWORD}@${p...
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { function selecionaCategoria(e) { menu_visivel = true; showMenu(); var section = $.listaCategorias.sections[e.sectionI...
/** Runnable examples functionality Copyright: 2012 by Digital Mars License: http://boost.org/LICENSE_1_0.txt, Boost License 1.0 Authors: <NAME>, <NAME> */ /** Script workflow: 1. Scan current document DOM tree for <pre> elements with class=d_code. <pre class="d_code">...</pre> blocks are generated by DDOC...
clout.exec('tosca.lib.traversal'); tosca.coerce(); var bpmn = puccini.newXMLDocument(); bpmn.createProcInst('xml', 'version="1.0" encoding="UTF-8"'); var definitions = bpmn.createElement('bpmn:definitions'); definitions.createAttr('id', 'definitions'); definitions.createAttr('xmlns:bpmn', 'http://www.omg.org/spec/...
// JavaScript Document to draw snowflakes in SVG. // Global variables var snowflakes; // container for snowflakes var snowfield; // the SVG drawing root within the page var canvas; // dimensions of snowfield viewbox var svgNameSpace = "http://www.w3.org/2000/svg"; var xlinkNameSpace = "http://www.w3.org/1999/xlink"; va...
"use strict"; 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) { t...
/** * Options * -d directory to save cached data to * -p <port number> the port to run on, the default is 8092 * -e <CSV exclusions> a comma separated list of URL parameters to exclude from the hash, for example rand,cache-buster, etc (will still be included in proxied request, just not used when determining if thi...
var babelHelpers = require('./babel-helpers.js'); /** * MUI React Textfield Helpers * @module react/_textfieldHelpers */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.textfieldWrapper = void 0; var _react = babelHelpers.interopRequireDefault(require("react")); var _reactAd...
#!/usr/bin/env node var fs = require('fs'); var path = require('path'); var commander = require('commander'); var global_options = {}; var saveCompletion = function(options, completions, callback) { var txt = JSON.stringify(completions, null, 4); fs.writeFile(options.output, txt); callback(null, txt) } /** ...
/** * Copyright 2012-2016, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var createLinePlot = require('gl-line3d'); var createScatterPlot = require('gl-scatter3d'); var createErrorBars...
// client.js - main client file that does most of the processing 'use strict'; var fs = require('fs'), constants = require('crypto').constants || require('constants'), request = require('request'), util = require('util'), EventEmitter = require('events').EventEmitter, Clie...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeUrl = normalizeUrl; exports.getFilter = getFilter; exports.getModulesPlugins = getModulesPlugins; exports.normalizeSourceMap = normalizeSourceMap; exports.getImportCode = getImportCode; exports.getModuleCode = get...
"use strict"; 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) { t...
// função encontrada em https://www.guj.com.br/t/somar-valores-de-uma-lista-e-apresentar-o-total-via-javascript/200770/17 // função replace em https://forum.imasters.com.br/topic/289712-c%C3%A1lculos-com-numeros-em-formato-moeda/ // função moeda em https://www.alura.com.br/artigos/formatando-numeros-no-javascript // fu...
var currencySymbols = [ "AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD", "BND","BOB","BRL","BSD","BTC","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNH","CNY","COP", "CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR"...
/*jshint node:true */ /* Copyright (c) 2015 <NAME> (https://github.com/creationix) and other contributors. All rights reserved. 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,...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import Select from '@material-ui/core/Select'; import MenuItem from '@material-ui/core/MenuItem'; import InputLabel from '@material-ui/core/InputLabel'; import Input from '@material-ui/core/Input'; import FormHel...
import { Vector3 as Vector3Base, Vector2, } from "../third_party/three.module.js"; import { perlin3 } from "../third_party/perlin.js"; import { clamp, mix, mod, TAU, randomInRange } from "../modules/Maf.js"; function sabs(p) { return Math.sqrt(p * p + 2e-3); } function smin(a, b) { return (a + b - sabs(a - b)...
import React, { Component } from 'react'; import { Container, ListGroup,ListGroupItem, Button,Table} from 'reactstrap'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import { connect } from 'react-redux'; import Image from 'react-bootstrap/Image' import { Row, Col } from 'reactstrap'; import...
// Legacy JavaScript from DAS var sfa; sfa = sfa || {}; //Floating menus sfa.navigation = { elems: { userNav: $("nav#user-nav > ul"), levyNav: $("ul#global-nav-links") }, init: function() { this.setupMenus(this.elems.userNav); this.setupEvents(this.elems.userNav) }, s...
require('dotenv').config() const { Client } = require('@notionhq/client') const readlineSync = require('readline-sync') const puppeteer = require('puppeteer') const notion = new Client({ auth: process.env.NOTION_KEY }) // Get data async function initBot() { console.clear() console.log('🤖 Wellcome t...
var GLenum = "number"; var GLint = "number"; var GLuint = "number"; var GLfloat = "number"; var GLclampf = "number"; var GLsizeiptr = "number"; var GLintptr = "number"; var GLbitfield = "number"; var GLboolean = "boolean"; var GLsizei = "number"; var DOMString = "string"; var DOMStringArray = "string[]"; var any = "str...
class Painter { /** * 绘图类 (V) * @param {HTMLElement} root 绘图区域 * @param {storage} storage Storage实例 * @param {Object} shape 图形库 */ constructor(root, storage, shape) { this.root = root; this.storage = storage; this.shape = shape; this._domList = {};// ca...
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var _createClass2 = _interopRequireDefault(require("...
var timer = document.querySelector(".timer"); var startButton = document.querySelector(".start-button"); var info_box = document.querySelector("#infobox"); var quiz_box = document.querySelector("#question-box"); var temp_score = document.querySelector("#temp-score"); var option_list = document.querySelector(".option-li...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Job = exports.nodeFileTrace = void 0; const path_1 = require("path"); const graceful_fs_1 = __im...
var radius = 4, bound = 10, seriesHeight = 100; var center = d3.forceCenter(width / 2, (height - seriesHeight) / 2); var minX = width / 2, minY = (height - seriesHeight) / 2, maxX = width / 2, maxY = (height - seriesHeight) / 2; var maxGroup = 1, minGroup = 0; var maxStrength = 1, minStrength = 0; var maxBar =...
// Copyright 2011 <NAME>, Inc. All rights reserved. const assert = require('assert-plus') /// --- Helpers function invalidDN (name) { const e = new Error() e.name = 'InvalidDistinguishedNameError' e.message = name return e } function isAlphaNumeric (c) { const re = /[A-Za-z0-9]/ return re.test(c) } fu...
$(document).on('click', '.ajouter', function(e){ const titre = $(this).data('titre'); const type = $(this).data('type'); const titred = titre.split(" "); const afair = titred[0]+ " du :"; //insertion $('#seanTraveau').text(titre); $('#titreajou').text(afair); $('.fonction').text(titre...
const { google } = require('googleapis') const sheets = google.sheets('v4') const is_prod = process.env.GCLOUD_PROJECT === 'sharing-excess-prod' const spreadsheetId = is_prod ? '1wmcOySR3EhHezgFn0o3suf7RZFDh62secue3jpbPK4Q' : '<KEY>' const serviceAccountKey = is_prod ? './serviceAccountProd.json' : './serviceAc...
#!/usr/bin/env node var Promise = require('bluebird'); var git = require('nodegit'); var program = require('commander'); var _ = require('lodash'); var moment = require('moment'); var fs = require('fs'); var DATE_FORMAT = 'YYYY-MM-DD'; var config = { // Maximum time diff between 2 subsequent commits in minutes w...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.generatePouchKeyRange = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _utils = r...
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] =...
function main() { window.context = new glContext($('#glcontext .webgl')[0],$('#glcontext .fps')[0]); window.gl = context.gl; window.cameraRotateDirection = 1; window.boxTranslateDirection = 1; window.translateX = 0.0; window.translateY = 0.0; window.translateZ = 0.0; gl.clearColor(0, 0, 0, 1); console.log(cont...
function OnResize(){//just make the style of the objects obj = document.getElementById('time'); obj.style.fontSize = Math.max( 8, document.documentElement.clientWidth/3 )+"px"; obj = document.getElementById('day_of_week'); obj.style.fontSize = Math.max( 6, document.documentElement.clientWidth/20 )+"...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var http = require('http'); var EventEmitter = require('events'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var http__default = /*#__PURE__*/_interopDefaultLegacy(htt...
'use strict' var ddata = require('./ddata') var arrayify = require('array-back') var handlebars = require('handlebars') var util = require('util') var commonSequence = require('common-sequence') var unique = require('reduce-unique') var without = require('reduce-without') /** A library of helpers used exclusively by d...
'use strict'; const layerRecord = require('./layerRecord.js')(); const attribFC = require('./attribFC.js')(); /** * @class AttribRecord */ class AttribRecord extends layerRecord.LayerRecord { // this class has functions common to layers that have attributes get clickTolerance () { return this._tolerance; }...
import Vue from 'vue' import { action } from '@storybook/addon-actions' import Autocomplete from './Autocomplete.vue' const CustomInput = Vue.component('CustomInput', { props: { value: { type: String, default: '', }, }, template: ` <input style="padding: 32px 32px 32px 48px;" ...
"use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); ...
/* SPDX-FileCopyrightText: 2016-present Kriasoft <<EMAIL>> */ /* SPDX-License-Identifier: MIT */ /* * This script helps to configure all the required * environment variables such as application URL (origin), * Google Cloud project IDs, database name, etc. Usage example: * * $ yarn setup */ import spawn from "c...
/*! * Copyright 2017 - Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
import * as hangeul from "./hangeul"; import {availableLetterSets, availableSyllableSets} from "./hangeul"; /** * Parses the specified hexadecimal code into a syllable and returns an array * of the initial consonant, vowel and (if any) final consonant. * @param syllableHex * @returns {string[]} */ export function...
import React from 'react' import { connect } from 'dva' import { WhiteSpace, WingBlank, Picker, Icon, Toast } from 'antd-mobile' import arrayTreeFilter from 'array-tree-filter' import _ from 'lodash' import { modifyAdr, addAdr } from '../../services/user' import ZInput from '../../components/Form/ZInput.js' import ZTex...
/**************************************************************************** Copyright (c) 2008-2010 <NAME> Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated document...
import { getLeagueData } from './leagueData'; import { leagueID } from '$lib/utils/leagueInfo'; import { getLeagueRosters } from "./leagueRosters" import { getLeagueUsers } from "./leagueUsers" import { waitForAll } from './multiPromise'; import { get } from 'svelte/store'; import {upcomingDraft, previousDrafts} from '...
Raphael.fn.drawGrid = function (x, y, w, h, wv, hv, color) { color = color || "#000"; var path = ["M", x, y, "L", x + w, y, x + w, y + h, x, y + h, x, y], rowHeight = h / hv, columnWidth = w / wv; for (var i = 1; i < hv; i++) { path = path.concat(["M", x, y + i * rowHeight, "L", x + ...
/** * Minecraft Vanilla jar 下載模組 * * 2021-05-01 友 */ const consoleTitle = '[/app/common/myMCDownloader.js]'; const path = require('path'); const electron = require('electron'); const myProgressBar = require('./myProgressBar'); //進度條 const myDownloader = require('./myDownloader'); const mcVerUrl = `https://launche...
const pathSymbol = Symbol("path"); const parentSymbol = Symbol("parent"); const cleanSymbol = Symbol("clean"); const serializeSymbol = Symbol("serialize"); const deserializeSymbol = Symbol("deserialize"); // a function to get the Module class in order to deal with a cyclic import pattern let Module; const getModule = ...
const auth = require('./auth'); const knex = require('../config/database'); const bcrypt = require('bcryptjs'); const express = require('express'); const router = express.Router(); router.post('/register', async (req, res, next) => { if (! await UserExists(req.body.email, req.body.davcna)) { const regex = ...
"use strict"; const DocUtils = require("./doc-utils"); const ScopeManager = require("./scope-manager"); const xmlMatcher = require("./xml-matcher"); const Errors = require("./errors"); const Lexer = require("./lexer"); const Parser = require("./parser.js"); const render = require("./render.js"); function getFullText(...
const https = require('https'); const agentkeepalive = require('agentkeepalive'); const nano = require('nano')({ "url": "http://phx:c002n68r7507@localhost:5984", "requestDefaults": { "agent": new agentkeepalive({ maxSockets: 50, maxKeepAliveRequests: 0, maxKeepAliveTi...
import React, { Component, Fragment } from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import { Redirect, withRouter } from "react-router-dom"; import { Field, reduxForm } from "redux-form"; import ReCAPTCHA from "react-google-recaptcha"; //Material UI import { InputLabel } from...