text
stringlengths
3.22k
29.5k
/** * Created by CDejarl1 on 8/30/2017. */ const setup = require('webdev-setup-tools'); const semver = require('semver'); const os = require('os'); const fs = require('fs'); const operatingSystem = os.platform().trim(); const windows = (operatingSystem === 'win32'); const formatOutput = setup.getOutputOptions(); con...
/* Should these be split up into a Mesh2D superclass and an UnsteadyMesh2D childclass? */ // Some geometry to initialise the buffers. let vertices = [ 1, -0.99, 1, -1, 0.99, -1 ]; // vertices // clockwise triangles. let indices = [ 0, 1, 2 ]; // indices // values per vertex let values = [ 0, 0, 0 ...
/* eslint-disable react/no-string-refs */ /* eslint-disable react/prop-types */ import React, {Component} from 'react'; import '../App.css'; import Util from "../libs/util"; import {Collapse, Input} from 'antd' import xrange from 'highcharts/modules/xrange'; import Highcharts from 'highcharts/highstock'; import Metho...
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { ENV_FREEPASCAL_ID, ENV_MONO_ID, ENV_JAVA_ID, ENV_PYTHON3_ID } from '../../helpers/exercise/environments'; /** * Free Pascal Runtime Error Codes * https://www.freepascal.org/docs-html/user/userap4.html */ const pascalCodes = { 0: <F...
var wait = require('wait.for'), bnf = require('bnf'), compiler = new bnf.Compiler, fs = require('fs'); var repl = function () { var _opts; var command = function () { var _section, _action, _extra, _command; var _calledCallback = false, _extraApplied = false; var _externalCallback = function () { }; ...
// An instance of resultstable should hold no data.. eventually remove import { isArray } from 'util' import globals from './globalwords' import { getNested } from './mathtext2' /* ID Func Inputs Precalc Result 0 f [..] true/false _ Create calc table, list of needed row value...
// Socket msgs var socket = io.connect(location.protocol + '//' + location.host); socket.on('connect', function() { socket.emit('user_connect', {data: 'user connected'}); }); socket.on('feed-bloom-us', function(data) { console.log(data); $('#analysis2').text(data['data']) }); socket.on('feed-bloom-glob', funct...
// TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full d...
var Botkit = require(__dirname + '/CoreBot.js'); var express = require('express'); var bodyParser = require('body-parser'); var querystring = require('querystring'); var request = require('requestretry'); var clone = require('clone'); var async = require('async'); var TeamsAPI = require(__dirname + '/TeamsAPI.js'); fu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _lodashEs = require("lodash-es"); var _assessment = require("../../assessment"); var _assessment2 = _interopRequireDefault(_assessment); var _inRange = require("../../helpers/inRange"); var _isValueTooLong = require("../../helpers/i...
function loadVinList(pageInfo) { if (pageInfo == undefined) { pageInfo = { pageNumber: 1, pageSize: 10 }; } var tableOptions = { url: allurl + '/car-management/gpscar/pageQuery.action', dataType: 'json', striped: true, // 是否显示行间隔色 toggle: "table", toolbar: "VinTable_toolbar...
var snoozedTabs; var settings; var bg = chrome.extension.getBackgroundPage(); $(document).ready(function() { console.log("Welcome to options.js"); init(); function init() { console.log("options.js is initializing..."); snoozedTabs = bg.getSnoozedTabs(); console.log("snoozedTabs fr...
addEventListener('load',function(){ /* INI-dropdown */ if( !window.VAR ){window.VAR = {};} window.VAR.dropdown = false; var dropdownToggles = document.querySelectorAll('.dropdown-toggle'); Array.prototype.slice.call(dropdownToggles).forEach(function(v){var d = new dropdown(v);}); var body = document.body;...
/* Programmed on: 09 Oct 2018, Tue */ const getEntryTypes = require("./getEntryTypes"); module.exports = function getBibCodeFromObject(object, format=2) { // console.log(object); // To check the format (default is 2, double quoted representation) if(!(format === 1 || format === 2 || format === 3)){ console.log...
import styled from "styled-components"; import React, {useEffect, useMemo, useState} from "react"; import { IconComponent } from "../../components"; import { COLOR, FONT, MEDIA_QUERY } from "../../constants/style"; import useCart from "../../hooks/cartHooks/useCart"; import { LoopCircleLoading } from "react-loadingg"; ...
const sql = require('mssql') const connection = require('../db/connection.js') const colors = require('colors') const cache = require('../cache.js') const log = require('../../server-common/logger.js') const regionEnum = { cf: 0, central: 1, hutt: 2, porirua: 3, paraparaumu: 4, wairarapa: 5, late: 6, } ...
var impuesto=18; var cont=0; var detalles=0; var subtotal_todos = 0; $('#msg_decimales_compra').css("display","none"); $(function (){ cargar_taba_productos(); var fecha_hoy = new Date(); $(".form_datetime").datetimepicker({ format: 'd-mm-yyyy HH:ii:ss', endDate: fecha_hoy, todayBtn: true }...
// Copyright 2014 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. /** * Tests that the extension is able to query feature status and that the feature * status is as expected. * @param {string} featureName The boolean ...
import { expect } from "chai"; import EvmError from "./helpers/EVMThrow"; // const divRound = (v, d) => d.divToInt(2).plus(v).divToInt(d); const Q18 = new web3.BigNumber(10).pow(18); const B56 = new web3.BigNumber(2).pow(56); const B255 = new web3.BigNumber(2).pow(255); const acceptedPrecissionLoss = -9; // 10^-9 cons...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const tree_kill_1 = __importDefault(require("tree-kill")); const path_1 = require("path"); const cross_s...
'use strict'; const request = require('superagent'); const mongojs = require('mongojs'); const commands = ['csid', 'gst'] const Bot = require('./Bot'); var db_legal_entity = mongojs('127.0.0.1:27017/legal_entity', ['legal_entity']); var db_trades = mongojs('127.0.0.1:27017/trades', ['trades']); var db_score = mongojs...
import React from "react"; // react plugin for creating charts import ChartistGraph from "react-chartist"; // @material-ui/core import { makeStyles } from "@material-ui/core/styles"; import Warning from "@material-ui/icons/Warning"; import DateRange from "@material-ui/icons/DateRange"; import LocalOffer from "@material...
import { keccak256, asciiToHex } from './utils/web3' import { parseEvents, extractEventArgs, hdWallet, ADDRESS_ZERO, createTranch, createEntity, preSetupPolicy, EvmSnapshot, } from './utils' import { events } from '..' import { ROLES, ROLEGROUPS, SETTINGS } from '../utils/constants' import { ensureA...
/* * Copyright 2016 Red Hat 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...
import React, { useEffect } from "react"; import { useHistory } from "react-router-dom"; import axios from "axios"; import * as Survey from "survey-react"; import "survey-react/survey.css"; import * as showdown from "showdown"; Survey.StylesManager.applyTheme("darkblue"); const PreSurveyPage = (props) => { const hi...
'use strict' const debug = require("debug")("signalk:rest-provider-signalk") const maxPaths = 9 function buildDeltaUpdate(path, value) { return { path: path, value: value } } function createPathSchema(schema, limit, ui) { let restPaths = { type: 'object', title: 'Paths pro...
import React from "react" import { Link } from "gatsby" import { getFirebase } from "../firebase" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import { Button, Typography, Flexbar, BarItem, ScrollView, Card, CardBody, Separator, } ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]...
$(document).ready(function() { $("#example_1").ionRangeSlider({ min: 0, max: 5000, type: 'double', prefix: "$", maxPostfix: "+", prettify: false, hasGrid: true }); $("#example_2").ionRangeSlider({ min: 1000, max: 100000, from: 3...
import classNames from 'classnames'; import React, { Component, PropTypes } from 'react'; import Button from 'react-bootstrap/lib/Button'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { createStructuredSelector } from 'reselect'; i...
// unused by Giha // all functions and logic for instances of characters and about singleton characters import { log, greenCheck } from '../util/util.js' import db from './db.js' const mongoose = db.mongoose const Schema = mongoose.Schema const ROLE_LIST = ['Admin', 'DM'] const MIN_HANDLE_LENGTH = 2 const MAX_HANDLE_...
import DefaultThemeView from "./default/view"; import DefaultTheme from "./default/model"; import Buildings3dThemeView from "./buildings3d/view"; import Buildings3dTheme from "./buildings3d/model"; import TableThemeView from "./table/view"; import TableTheme from "./table/model"; import ReisezeitenThemeView from "./rei...
const Net = require ('net') const Url = require ('url'); const httpZ = require ('./http-z'); const WWWAuthenticate = require('www-authenticate'); const Emitter = require ('./Emitter'); class RTSPClient extends Emitter { constructor() { super (); this.cseq = 1; this.transactions = {}; } authenticate(usern...
const path = require('path') const { mergeConfig } = require('metro-config') const { fse, ejs, tapable: { SyncHook, SyncBailHook }, log, paths: ps, dataExtend, argv } = require('general-tools') const baseConfig = require('./config/baseConfig') const InjectVar = require('./plugins/InjectVar') const { isBaseDllPath, path...
import { Component } from "react"; import React from "react"; import { withSnackbar } from "notistack"; import MaterialTable from "material-table"; import { forwardRef } from "react"; import SupervisorAccountIcon from "@material-ui/icons/SupervisorAccount"; import AddBox from "@material-ui/icons/AddBox"; import Arrow...
var crypto = require('crypto'); var util = require('util'); var stringifyUri = require('./sip').stringifyUri; function unq(a) { if (a && a[0] === '"' && a[a.length - 1] === '"') return a.substr(1, a.length - 2); return a; } function q(a) { if (a && a[0] !== '"') return ['"', a, '"'].join('...
import React, { Component } from 'react'; import { connect } from 'dva'; import { Picker, List, InputItem } from 'antd-mobile'; import { Cascader, Form, Input, Button } from 'antd'; import pathToRegexp from 'path-to-regexp'; import _ from 'lodash'; import { Debounce } from 'lodash-decorators/debounce'; import FloatBar ...
import EthGasOracle from '../eth-gas-oracle.js'; const Tx = require('ethereumjs-tx') const ContractInterface = require('./contract_interface') var web3utils = require('web3-utils'); var LavaPacketUtils = require('lava-packet-utils'); export default class TXHelper { /** Should return everything that we wa...
// Webfont load WebFont.load({ google: { families: ["Lato:400,700,400italic:latin"] }, active: renderMasonry, }); // Algolia variables are set in bottom.php var search = instantsearch({ searchClient: algoliasearch(algolia_appId, algolia_apiKey), indexName: algolia_indexName, routing: true, // Replace with ...
/* * Copyright (c) 2021, the hapjs-platform Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ import { isFunction, isPlainObject, isReserved, isObject } from 'src/shared/util' /** * 定义属性 * @param obj * @param key * @param val * @param enumerable */ function $def(obj, key, val, enumerable) { ...
/* * EaseScript * Copyright © 2017 EaseScript All rights reserved. * Released under the MIT license * https://github.com/51breeze/EaseScript * @author <NAME> <<EMAIL>> */ ///<references from='Class' /> ///<references from='EventDispatcher' /> function System(){ throw new SyntaxError('System is not construct...
var base_URL = '/adtalk'; //全局变量污染 var confirmInfo = false,$doc=$(document); //加载页面,触发一次ajax,自动加载情景模式 getScene(); //选择省、市开始 var jqueryDom = { $doc: $(document), $city: $('#city'), $modal: $('#myModal'), $modalBody: $('#modalBody'), $main: $('.micro-main'), ...
const path = require('path'); const sass = require('node-sass'); module.exports = function (grunt) { /** * Grunt task to remove source map comment */ grunt.registerMultiTask('removesourcemap', 'Grunt task to remove sourcemp comment from files', function () { var done = this.async(), files = this.f...
// import config var config = require('./config.js') var schemabits = require('./schemabits.js') // console.log(config); console.log("Config loaded, initiating progress...") // Import the required libraries var graphql = require('graphql'); var graphqllang = require('graphql/language') var graphqlutils = require('...
/** * External dependencies */ import { drop, every, isEqual, map, overEvery, some, sum, take, takeRight, takeWhile, zipWith, } from 'lodash'; export function imagesToRatios( images ) { return map( images, ratioFromImage ); } export function ratioFromImage( { height, width } ) { return height && width ...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "globalnl-database.firebaseapp.com", databaseURL: "https://globalnl-database.firebaseio.com", projectId: "globalnl-database", storageBucket: "globalnl-database.appspot.com", messagingSenderId: "331545031788" }; firebase.initializeApp(config)...
const express = require('express'); const app = new express(); const port = process.env.PORT || 3000; const server = require('http').createServer(app); const io = require('socket.io')(server) const dir = __dirname; const fs = require('fs'); const timers = require('timers'); const readline = require('readline'); const {...
/*global require, module, process, console, JSON, __dirname, setTimeout*/ /* * Script for linking the lk core to webwerkstatt * * Run it like that: * * node scripts/link-core.js -t 2.1.2 \ * --lk-dir /Users/robert/Lively/core-link/lk/ \ * --ww-dir /Users/robert/Lively/core-link/ww/ * */ var args ...
// @ts-check import { E } from '@agoric/eventual-send'; import { assert, details as X } from '@agoric/assert'; import { AssetKind, AmountMath, isNatValue } from '@agoric/ertp'; import { makeNotifierKit } from '@agoric/notifier'; import { Far } from '@agoric/marshal'; import { getInputPrice, getOutputPrice, calc...
/* eslint-disable no-restricted-syntax, no-await-in-loop, import/no-extraneous-dependencies, security/detect-object-injection, camelcase, prefer-destructuring, no-param-reassign, no-console */ const { Client } = require('pg') const fs = require('fs').promises const yaml = require('js-yaml') const uuidv4 = require('uuid...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Babel based translation extracter Mk.2 const babelParser = require("@babel/parser"); const babelTraverse = require("@babel/traverse"); const util = require("util"); const fs = require("fs"); const path = require("path"); const glob = requir...
var workoutChart; $(document).ready(function(){ $(function () { $('[data-toggle="tooltip"]').tooltip() }); getProfileImg(); $("select").addClass("form-control").addClass("cr-pointer"); getNoti(); $('.notification').on('click', function () { }); getRating(); handleMenu(); });...
var bookComponent = Vue.extend({ template : '#template-books', props: ['books'], methods: { removeBook : function(book){ var obj = this; $.ajax({ url : '/book/remove/'+book.book_id, dataType : 'TEXT', type : 'GET', }).s...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { defaults as defaultInteractions } from 'ol/interaction'; import { equals } from 'ol/extent'; import OLMap from 'ol/Map'; import OLCollection from 'ol/Collection'; import View from 'ol/View'; import { unByKey } from 'ol/Observable...
const LogEvent = require ('./Log/Events/Text.js') const ErrorEvent = require ('./Log/Events/Error.js') const WrappedError = require ('./Log/WrappedError.js') const Dia = require ('./Dia.js') module.exports = class { zero_or_more (p) { if (Array.isArray (p)) return p.map (i => i === null ? null : this....
function processCommand(text) { if(text.substr(0, 1) == '/') { var tokens = text.slice(1).split(' '), command = tokens.shift(), arguments = tokens; switch(command) { case 'user': var user = arguments.join('-'); send("set-user", {user: user}); ...
import 'phaser' import player from '../components/player' import obstacle from '../components/obstacle' import dog from '../components/dog' const parallax_backgrounds = [ { key: 'buildings', z_index: 3, offsetY: -150 } ] export default class game extends Phaser.Scene{ constructor...
/*global $, document, setTimeout, dictBranze, dictPrefix, dictInfix, dictSufix */ var BRANZA_N = dictBranze.length, branzaNum, branzaStr, PREFIX_N = dictPrefix.length, prefixNum, prefixStr, INFIX_N = dictInfix.length, infixNum, infixStr, SUFIX_N = dictSufix.length, sufixNum, ...
import React, { useState, useEffect, useContext } from "react"; import { Row, Col, Layout, Card, Select, Button, Modal, Input, Icon, Form } from "antd"; import { CartContext } from "../CartContext"; import Navbar from "./navbar"; import Axios from "axios"; // import Bongloy from "bongloyjs"; const...
jQuery(document).ajaxComplete(function() { if (jQuery('.wps_show_after_page_load').length) { jQuery('.wps_show_after_page_load').show(); } }); jQuery(document).ready(function() { // Click to hide jQuery('body').on('click','#wps_activity_dialog', function(e) { jQuery('#wps_activ...
const add = document.getElementById('add'); const inputProduct = document.getElementById('input-product'); const inputPrice = document.getElementById('input-price'); const products = document.getElementById('products'); const superTotal = document.getElementById('total'); const search = document.getElementById('se...
const ipcRenderer = require('electron').ipcRenderer; // electron 通信模块 const remote = require('electron').remote; // electron 主进程与渲染进程通信模块 const Menu = remote.Menu; // electron renderer进程的菜单模块 const dialog = remote.dialog; // electron 对话框模块 const fs = require('fs'); // 引入 NodeJS 的 fs 模块 const shell = require('electron')...
import { Button, Form, Modal, Popover, Select, Typography } from 'antd'; import moment from 'moment'; import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import * as CA from '../../../state/actions'; import { axiosWithAuth } from '../../../utils/axiosWithAuth'; c...
"use strict"; //REFERENCE: //https://code.lengstorf.com/get-form-values-as-json/ //LAYOUT: //Have a fixed tab system on the top of the page that scrolls you down to whatever part of the form you need //MOU //RFR //Service Selection //Editable Cart //Grand Total //Signature block $(function() { /**Hides and show...
var index = 0; var timer = 0; var ulist = $('.page2-2-2 ul'); var list = ulist.find('li'); var llength = list.length;//li的个数,用来做边缘判断 var lwidth = $(list[0]).width();//每个li的长度,ul每次移动的距离 var uwidth = llength * lwidth;//ul的总宽度 function init(){ $('.link').bind('click', function(event) { var elm = $(this); doMove(el...
function MultimediaReferenceController (references, obj_map, totals) { 'use strict'; var self = this; self.obj_map = obj_map; self.modules = []; self.showMissingReferences = ko.observable(false); self.totals = ko.observable(totals); self.toggleRefsText = ko.computed(function () { ...
"use strict"; var Carbon; (function (Carbon) { Carbon.controllers = { get: function (name) { return Carbon.controllers[name]; }, set: function (name, controller) { Carbon.controllers[name] = controller; } }; Carbon.controllerFactory = Carbon.controller...
var _ = require('isa.js') var m = require('mithril') var moment = require('moment') var defaultFormat = 'YYYY-MM-DD HH:mm' function walk ( model ) { var res if ( _.isFunction( model ) ) res = model.purify ? model.purify() : model() else if ( _.isArray( model ) ) { res = [] model.forEach(function (item) { ...
// set initial center point, zoom, and layers var startCenter = [41.7647179, -72.671771]; // displays "Hartford" Esri label on downtown area var minLatLng = [40.9301, -73.7238]; var maxLatLng = [42.0248, -71.7792]; var bounds = L.latLngBounds(minLatLng, maxLatLng); var startZoom = 14; var minZoom = 9; var layer1 = 'mag...
import { handleActions } from 'redux-actions'; import { createApiAction } from '../middleware/apiMiddleware'; import factory, { initialState, defaultNeedsRefetching, createRecord, resourceStatus, } from '../helpers/resourceManager'; import { actionTypes as submissionActionTypes } from './submission'; import { ...
'use strict'; let assign = require('lodash').assign; let browserify = require('browserify'); let buffer = require('vinyl-buffer'); let cache = require('gulp-cached'); let csscomb = require('gulp-csscomb'); let del = require('del'); let ejs = require('gulp-ejs'); let gulp = require('gulp'); let gutil = require('gulp-uti...
var clsSystem = Class.create(); var systemCls = Array(); clsSystem.prototype = { initialize: function(id) { this.id = id; }, systemInit: function(message) { this.origItems = $H(Form.serialize($("form" + this.id), 1)); this.message = message; this.showAllUseItems = false; // this.initShowDate(); }, i...
const http = require('https'); const path = require('path'); const fs = require('fs'); const mkdirp = require('mkdirp'); const chalk = require('chalk'); const inquirer = require('inquirer'); const { URL } = require('url'); const appDirectory = fs.realpathSync(process.cwd()); const packageJson = require(path.resolve(ap...
const CFonts = require('cfonts'); const pWaterfall = require('p-waterfall'); const chalk = require('chalk'); const os = require('os'); const debounce = require('lodash.debounce'); const { error } = require('../../lib/text'); const { config } = require('../../lib/config'); const blessed = require('../../lib/ui/blessed'...
const fs = require('fs'); const path = require('path'); const chalk = require('chalk'); const { stripHtml } = require('string-strip-html'); const highlightjs = require('highlight.js'); const md5File = require('md5-file'); const markdownIt = require('markdown-it'); const handlebars = require('handlebars'); const glob = ...
/** * @fileoverview Code to handle home view of gadget. * @author */ /** * Number of trips in home view. * @const * @type {number} */ var TRIPS_IN_HOME = 5; /** * Default error value. * @const * @type {number} */ var ERROR_VALUE = 1; /** * Array to hold current trip related information. * @type {Object}...
/* eslint-disable no-unused-vars,no-case-declarations */ import * as THREE from 'three' /** * ___ ___ ___ ___ ___ ___ ___ * /\ \ /\ \ /\ \ /\__\ ___ /\__\ /\ \ /\ \ * /::\...
var assert = require('assert'); var numbers = require('./rand.js'); var CenterAverage = require('../build/average.js').CenterAverage; var fs = require('fs'); // Throw enough infinities into the mix for it to be realistic. for (var i = 0; i < numbers.length; ++i) { if (numbers[i] < 1000) { numbers[i] = -Infinity;...
/* * Copyright (c) 2021, <NAME>.- <EMAIL> http://sergiosoriano.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyr...
/* * @Author: <NAME> * @Description: 微信平台banner广告 */ let _instance; let _Base_Adv_Mgr = require('base_adv_mgr'); let wxShare = null; let wxAdv = null; let _onLoadCbs = []; let _loadedBanner = false; let _bannerCaches = []; // 缓存创建好的banner广告 let _advIdIndex = 0; // 在缓存中取广告,按顺序循环取 let _advBanner = null; // 广告对象,保证页面...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhHandPalm = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" ...
/*! ========================================================= * Liquid Yield - v1.1.0 ========================================================= * Copyright 2020 <NAME> (https://www.andrew-schmidt.com) * Licensed under MIT (https://github.com/aschmidt20/liquid-yield/blob/master/LICENSE.md) * Coded by <NAME> =======...
import { Routes } from "./routes.js"; const sanitize = (textContent) => encodeURIComponent(textContent) .replace(/%20/g, "+") .replace(/%26/g, "&") .replace(/%3D/g, "=") .replace(/%5B/g, "[") .replace(/%5D/g, "]") export const getDoc = async (url, email) => { const fetchCall = await fetch(url,...
const uuidv4 = require('uuid/v4'); const request = require('request'); const async = require('async'); module.exports = function(webserver, api) { webserver.get('/admin', function(req, res) { res.render('index',{ layout: 'layouts/layout', }); }); webserver.get('/admin/edit/:n...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import { mount } from 'enzyme'; import ModalPostMeta from './ModalPostMeta'; const logo = 'data:image/svg+xml;base64,logo-file'; const source = 'share.dev.america.gov'; const sourcelink = 'https://share.dev.america.gov'; const props = { type: 'post', author: null, sourcelink, logo, source, datePublished:...
import { Keyring } from '@polkadot/api'; import '@polkadot/api-augment'; import { Channel } from 'async-channel'; import { setup_substrate, SECRETSEED, pallet_bridge_burn, pallet_bridge_mint, destination, pallet_bridge_set_lockdown } from './pallet_bridge.js'; import { NODE_ADDRESS, ROUTER_ADDRESS, get_bitgreen_bridge_...
/* eslint-env browser */ import React, { useState, useEffect, useMemo, useCallback, useContext } from 'react' import { useQuery } from 'react-query' import Link from 'next/link' import { getTokens, getStorage, getUploads } from '../lib/api' import countly from '../lib/countly' import Button from '../components/button' ...
import { LitElement, html } from "@polymer/lit-element"; import { repeat } from "lit-html/directives/repeat"; import { bezier } from "bezier-easing"; import { style } from "./ar-picker-css"; const ITEM_HEIGHT = 24; const EFFECTIVELY_ZERO = 1e-10; const approxEq = (value1, value2, delta = EFFECTIVELY_ZERO) => Math.a...
import React from 'react'; import {connect} from 'dva'; import {Row, Col, Form, DatePicker, Input, Radio, Select, Button, notification, Modal, Checkbox} from 'antd'; import {action, model, fun, config, modular} from '../../common'; import {OrderStep, BaseInfo, ResidentInfoTable, PayModal, CarryMaterial} from '../../com...
import React, { useState, useEffect, useRef } from 'react' import { graphql, Link } from 'gatsby' import Img from 'gatsby-image' import Layout from '../layout/' import SEO from '../components/seo' import { CustomerChat } from '../components/chat' import { Container as GridContainer, Grid } from '../components/grid' imp...
/*============================================================================== Convolution Reverb Example Copyright (c), Firelight Technologies Pty, Ltd 2004-2016. This example shows how to set up a convolution reverb DSP as a global DSP unit that can be routed into by multiple seperate channels. Convolution reverb...
var purchases = { init: function() { $("#contribute-why").popup("#contribute-more-info", { pointTo: "#contribute-more-info" }); $(document).on('click', '.price-wrapper a', _pd(function(event) { /* Update the currency from the drop down. */ var $w = $('.pri...
// Load up the discord.js library const Discord = require("discord.js"); const readline = require("readline"); // This is your client. Some people call it `bot`, some people call it `self`, // some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`, // this is what we're referin...
import { Spin } from "antd"; import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import Icon, { createFromIconfontCN } from "@ant-design/icons"; class antdSpin { options = {}; dom = null; targetDOM = null; // 当前是否正在请求 requestFlag = false; config = { /* 可传入一个 D...
require('Application'); var os = require('os'); var fs = require('fs'); var ismac = (os.platform().toLowerCase() === "darwin" || os.platform().toLowerCase() === "mac"); var log = function(e) { process.stdout.write(e); }; var exit = function(code) { process.exit(code); }; var isappveyor = process.env['APPVEYOR'] ? true...
'use strict' import express from 'express' import sharp from 'sharp' import { constants as fsConstants, promises as fs } from 'fs' import path from 'path' import boom from '@hapi/boom' import { asyncMiddleware, checkSceneName, checkRequiredParameters } from '../functions' import { imageServedUrl, imagesPath, extracts...
const HEIGHT = 650; const WIDTH = document.getElementById("chart").offsetWidth; const FORCE_STRENGTH = 0.03; const VELOCITY_DECAY = 0.2; const RADIUS = 5; let margin = { top: 0, left: 15, right: 15, bottom: 0, } let svg = d3.select("#chart") .append("svg") .attr("viewBox", `0 0 ...
import { Howler, Howl } from "howler"; import UserPreferences from "@/classes/UserPreferences"; import { randomIntFromInterval } from "@/helpers/functions/Number"; class AudioManager { constructor() { const userPreferences = new UserPreferences(); this.isMuted = userPreferences.audio.isMuted; ...
const Moment = require('moment'); const MomentRange = require('moment-range'); const xlsx = require('node-xlsx'); const moment = MomentRange.extendMoment(Moment); const core = require('./core'); const errors = require('./errors'); const constants = require('./constants'); const helpers = require('./helpers'); const {...