text
stringlengths
3.22k
29.5k
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may n...
var $box = $('.box'); var batteryWater = function(opts){ var self = this; this.opts = $.extend({ dom: '', timeScale: [], //时钟刻度 num: 50, //电量百分比 minutes: 160, //所耗时间 color: {}, speed: 2000, consume: true //true耗电,true充电 }, opts) this.$dom = this.opts.dom; this.timeScale = this.opts.timeScale;...
importPackage(Packages.com.ibm.security.access.ciclient); importPackage(Packages.com.ibm.security.access.server_connections); importClass(Packages.com.tivoli.am.fim.trustserver.sts.utilities.IDMappingExtUtils); importMappingRule("CI_Common"); importMappingRule("CI_Enrollment_Methods"); /** * This mapping rule allows ...
function moreAddress(profileNo) { var dotId = "dots" + profileNo; var textId = "more" + profileNo; var moreId = "moreclick" + profileNo; var lessId = "lessclick" + profileNo; var dots = document.getElementById(dotId); var moreText = document.getElementById(textId); var moreClick = document.getElementById...
// @ts-check /* eslint no-bitwise: ["off"], max-lines: ["off"] */ /** * @typedef {{ * name: Uint8Array, * version: number, * madeBy: number, * fileStart: number, * diskNumberStart: number, * internalFileAttributes: number, * externalFileAttributes: number, * comment: Uint8Array * } & ArchiveH...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
/* global window, OffscreenCanvas */ import { isWebGL, createGLContext, instrumentGLContext, resizeGLContext, resetParameters } from '@luma.gl/gltools'; import { requestAnimationFrame, cancelAnimationFrame, Query, lumaStats, // TODO - remove dependency on framebuffer (bundle size impact) Framebuff...
import * as THREE from 'three'; import { CSG } from 'three-csg-ts'; import BaseTag3D from './base'; import { getRoundedRectShape, getBoundingBoxSize, subtractMesh } from './utils'; /** * Class used for generating the 3D model from a bitmask that contains the QR Code Data. * qrCodeBitmask must be a square number (QR ...
import { dcrwalletCfg, getWalletPath, getExecutablePath, dcrdCfg, getDcrdRpcCert } from "./paths"; import { getWalletCfg, readDcrdConfig } from "../config"; import { createLogger, AddToDcrdLog, AddToDcrwalletLog, GetDcrdLogs, GetDcrwalletLogs, lastErrorLine } from "./logging"; import parseArgs from "minimist"; import {...
import { defineMessages } from 'react-intl'; const MESSAGES = defineMessages({ close: { id: 'iaso.label.close', defaultMessage: 'Close', }, copyError: { id: 'iaso.snackBar.copyError', defaultMessage: 'Copy error', }, successful: { id: 'iaso.snackBar.successfu...
import React, { useState, useEffect } from 'react' import useDesign from '../../hooks/useDesign' import useMergeData from '../../hooks/useMergeData' import Layout from '../layouts/default' import YAML from 'yaml' import Fab from '@material-ui/core/Fab' import ConfigIcon from '@material-ui/icons/Build' import CloseIcon...
'use strict' const fs = require('fs') const path = require('path') const crypto = require('crypto') module.exports = { mkdirs(dirPath) { if (fs.existsSync(dirPath)) return this.mkdirs(path.dirname(dirPath)) fs.mkdirSync(dirPath) }, deepEqual(a, b) { let type = typeof a if (type != typeof b) ...
let gl = null; let canvas = null; let container = null; let glProgram = null; let fragmentShader = null; let vertexShader = null; let vertexPositionAttribute = null; let vertexNormalAttribute = null; let vertexTexCoordAttribute = null; const trianglesInterleavedBuffers = []; const vertexIndexBuffers = []; const spher...
/* app.js */ var globals = { apiUrl: '/api/', rootElement: '#appRoot', currentPage: 0, searchTerm: '', searchField: '', sortField: '' }; var displayFields = { 'applicant_s_last_name': 'Applicant\'<NAME>', 'applicant_s_first_name': 'Applicant\'s First Name', 'borough' : 'Borough', 'building_type': 'Buildin...
const { app, dialog, ipcMain, shell, globalShortcut, screen, net, Menu, Tray, BrowserWindow, } = require("electron"); const { autoUpdater } = require("electron-updater"); const AutoLaunch = require("auto-launch"); const Positioner = require("electron-traywindow-positioner"); const Store = require("e...
import React, { Component } from 'react'; import equals from 'lodash/fp/equals'; import pipe from 'lodash/fp/pipe'; import uniqBy from 'lodash/fp/uniqBy'; import sortBy from 'lodash/fp/sortBy'; import styled from 'styled-components'; import Context from './Context'; import InfiniteScroll from './InfiniteScroll'; impor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SvelteFragmentMapper = exports.TranspiledSvelteDocument = exports.SvelteDocument = exports.TranspileErrorSource = void 0; const source_map_1 = require("source-map"); const documents_1 = require("../../lib/documents"); const importPacka...
$('.daterange').daterangepicker({ locale: { format: 'DD-MM-YYYY' }, ranges: { 'Today': [moment(), moment()], 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().s...
function rgb2color(rgb) { for (var i = 0; i<3; i++) { rgb[i] = Math.round(rgb[i]*256).toString(16); if (rgb[i].length == 1) rgb[i] = "0" + rgb[i]; } return "#" + rgb.join("") } var Window = Class.extend({ init: function(options) { log(options); this.options = options; this.options.position = options.po...
"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...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
const classes = { 0: 'Apple', 1: 'Artichoke', 2: 'Avocado', 3: 'BBQ sauce', 4: 'Bacon', 5: 'Bagel', 6: 'Banana', 7: 'Beef', 8: 'Beer', 9: 'Blueberries', 10: 'Bread', 11: 'Broccoli', 12: 'Butter', 13: 'Cabbage', 14: 'Candy', 15: 'Cantaloupe', 16: 'Carro...
import moment from 'moment'; import BrowserStorage from './BrowserStorage'; import Item from './Item'; import Request from './Request'; import ActivityActionCreators from './history-sync/ActivityActionCreators'; import TraktWebAPIUtils from './history-sync/TraktWebAPIUtils'; const AUTH_REGEXP = new RegExp(`"authURL":"...
/* * Magazine core functions */ function addPage(pageNumber, book) { // Create a new element for this page var element = $("<div>"); // Add the page to the flipbook if (book.turn("addPage", element, pageNumber)) { // Add the initial HTML // It will contain a loader indicator and a...
const path = require('path'); const { existsSync } = require('fs'); const { checkReact, getMode } = require('@rockpack/utils'); const deepExtend = require('deep-extend'); const _makeConfig = (commonRules = {}, tsCommonRules = {}, overrideRules = {}, customConfig = {}, opts = {}) => { const mode = getMode(['developme...
/*! * @pile/alert.js v2.0.0 * (c) 2018-2019 zhangzhipeng <<EMAIL>> * Released under the MIT License. */ import React, { Component } from 'react'; import { CSSTransition } from 'react-transition-group'; import classNames from 'classnames'; import { prefixClsProperty } from '@pile/shared'; import ReactDOM from 'react...
"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]; ...
const test = require('tape'); const s = require('../src'); test('standard', function(t) { t.plan(2); t.equal(typeof s, 'function', 'exports function'); t.equal(typeof s('', {}), 'string', 'return string'); }); test('variables', function(t) { t.plan(11); t.equal(s(`Hello {{name}}`, {name: `Robin`})...
'use strict'; import path from 'path'; import obj2osm from 'obj2osm'; import osmP2PApi from 'osm-p2p-server/api/index'; import through2 from 'through2'; import osmtogeojson from 'osmtogeojson'; import config from '../../config'; import { getDatabase } from '../rra-osm-p2p'; import db from '../../db/'; import { putFile...
const { v4: uuidv4 } = require("uuid"); const { type: jot } = require("ot-json0"); module.exports = class RealtimeFile { constructor(fileName, base, sockets, fileChangeCallback) { this.fileName = fileName; this.sockets = sockets; this.fileChangeCallback = fileChangeCallback; this.committedFile = JSON...
/* This component works very similarly to ConfirmSend, in that it takes in the parameters to send and signs a transaction. Unlike ConfirmSend, this component pushes the transaction to the blockchain and displays the result. This component should always be resetTo, so that the navigation stack get reset whe...
import React, { useEffect, useState } from 'react'; import Link from 'next/link'; import { usePoolContext } from '../data/PoolContextProvider'; import styled from 'styled-components'; import { CONSTANTS } from '../constants'; import { getPitcherStats, getHitterStats } from '../data/fetchStats'; const Flex = styled.di...
import * as Log$WonderLog from "../../../../../../../node_modules/wonder-log/lib/es6_global/src/Log.js"; import * as Contract$WonderLog from "../../../../../../../node_modules/wonder-log/lib/es6_global/src/Contract.js"; import * as StateDataMain$Wonderjs from "../data/StateDataMain.js"; import * as TypeArrayService$W...
/** This module contains functions to process a group of "ejs" template files into a single js file that can be used in the browser. (bascially creating an output similar to what the old SOY closure compiler used to produce). Each ejs file will be processed twice by EJS. Each pass will be configured to recognize...
import { createApp } from 'vue'; import { createStore } from 'vuex'; import App from './App.vue'; import data from './data.js'; import { parse_data, round, load, assignment_by_id, all_sub_assignments, } from './utils.js'; // Create a new store instance. const store = createStore({ state: { ...
//This module is adapted from the CodeIgniter framework //The license is available at http://codeigniter.com/ var html_entity_decode = require('./entities').decode; var never_allowed_str = { 'document.cookie': '[removed]', 'document.write': '[removed]', '.parentNode': ...
/** * 设置中心::默认设置 */ const LANG = antSword['language']['settings']['adefault']; const LANG_T = antSword['language']['toastr']; class ADefault { constructor(sidebar) { var self = this; sidebar.addItem({ id: 'adefault', text: `<i class="fa fa-sliders"></i> ${LANG['title']}` }); const cel...
//console.log("Reached options state"); // The Google WebFont Loader will look for this object, so create it before loading the script. WebFontConfig = { // The Google Fonts we want to load (specify as many as you like in the array) google: { families: ['VT323' ] } }; var optionsState = { ...
var express = require("express"); var url = require("url"); var bodyParser = require('body-parser'); var randomstring = require("randomstring"); var cons = require('consolidate'); var querystring = require('querystring'); var jose = require('jsrsasign'); var __ = require('underscore'); const json = require("body-parser...
/* eslint-disable camelcase,no-param-reassign,consistent-return,no-console,new-cap */ import numeral from 'numeral'; import base58 from 'bs58'; import steem from 'steem'; import getSlug from 'speakingurl'; import secureRandom from 'secure-random'; /** * https://github.com/steemit/steemit.com/blob/47fd0e0846bd8c7c941e...
import Cookies from 'universal-cookie'; import { getHostedLinks, setSnackbar } from '../actions/appActions'; import GeneralApi from '../api/general-api'; import UsersApi from '../api/users-api'; import * as UserConstants from '../constants/userConstants'; import { advanceOnboarding } from '../utils/onboardingmanager';...
// Element selectors const ipInput = document.querySelector("#ip"); const portInput = document.querySelector("#port"); const listenerSelect = document.querySelector("#listener-selection"); const shellSelect = document.querySelector("#shell"); // const autoCopySwitch = document.querySelector("#auto-copy-switch"); const...
import React, { PureComponent } from "react"; import { Card, Form, Row, Col, Button, Select, Input, Table, Divider, Modal, Popconfirm, message } from "antd"; import PageHeaderWrap from "@/components/PageHeaderWrapper"; import NumberInput from "@/components/NumberInput"; import { connect } from "...
// This is the electron startup script const { app, BrowserWindow, Tray, Menu, dialog, ipcMain } = require('electron'); const { autoUpdater } = require("electron-updater"); const { nativeImage } = require('electron/common'); const path = require("path"); let server; let mainWindow; let trayIcon; const gotTheLock = ap...
/** https://github.com/cgloeckner/pyvtt/ Copyright (c) 2020-2021 <NAME> License: MIT (see LICENSE for details) */ var socket = null; // websocket used for client-server-interaction var quiet = true; var ping_delay = 2000; // delay between two pings var next_ping = null; // indicates when the next ping will be sent ...
var express = require('express'); var session = require('express-session'); var MemoryStore = require('memorystore')(session); var logfmt = require('logfmt'); var _ = require('underscore'); var { OAuth2Client } = require('google-auth-library'); var enforce = require('express-sslify'); var app = express(); var mongoUri...
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] =...
/* global Phaser */ import 'phaser'; import {Util} from './util/Util.js'; import {InputBar} from './obj/InputBar.js'; import {MinigameTimer} from './obj/MinigameTimer.js'; const BG_LAYER = -10; const CAR_LAYER = -1; const WINDOW_LAYER = 3; const LENNY_LAYER = 5; var carsCleared =0; var Minigame02 = new Phaser.Class(...
var lb = document.getElementsByTagName('label'); if (LN === 'vi') { let _vi = ['Mật độ xác suất bình thường', 'Phân phối tích lũy bình thường', 'Phân phối tích lũy bình thường nghịch đảo', 'Xác suất nhị thức', 'Phân phối tích lũy nhị thức', 'Xác suất Poisson', 'Phân phối tích lũy Poisson']; document.getElementsB...
"use strict"; /** @typedef {import("../../document/doc-builders").Doc} Doc */ const assert = require("assert"); const { printDanglingComments, printCommentsSeparately, } = require("../../main/comments.js"); const getLast = require("../../utils/get-last.js"); const { getNextNonSpaceNonCommentCharacterIndex, } = ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import Constants from './constants.js'; import {objectAssign} from './utils.js'; import ByteOrder from './byte-or...
/** * */ $(document).ready(function () { $("#frm_marcacion_listado #btn_consultar_marcacion").on('click', function(event){ $('#grid_marcacion_listado').jqGrid("setGridParam",{datatype:"json"}).trigger("reloadGrid"); return false; }); $("#frm_marcacion_listado #btn_nueva_marcacion").on('click', func...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {removeFromCart, flushCart} from '../actions/index' const axios = require('axios'); const mapDispatchToProps = dispatch => ({ removeFromCart: (value) => dispatch(removeFromCart(value)), flushCart: () => dispatch(flushCart(...
var util = require('util'); var events = require('events'); var fs = require('fs'); var querystring = require('querystring'); var path = require('path'); var common = require('./common'); var dictionary = require('./dictionary'); var protocol = require('./protocol'); var transports ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import Crypto from 'utils/crypto' import { connect as connectSocket } from 'utils/socket' import Nav from 'components/Nav' import shortId from 'shortid' import ChatInput from 'components/Chat' import Connecting from 'components/Connecting' impo...
/* * moleculer * Copyright (c) 2018 MoleculerJS (https://github.com/moleculerjs/moleculer) * MIT Licensed */ "use strict"; const _ = require("lodash"); const { ServiceSchemaError } = require("./errors"); /** * Service class * * @class Service */ class Service { /** * Creates an instance of Service...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {PropTypes} from 'prop-types'; import React from 'react'; import {intlShape} from 'react-intl'; import { Dimensions, ScrollView, Platform, View, } from 'react-native'; import LinearGra...
import React, { useEffect, useState } from "react"; import PCABarPlot from "../Plots/PCABarPlot"; import ClusterBarPlot from "../Plots/ClusterBarPlot"; import CellLabelTable from "../Plots/CellLabelTable"; import { useContext } from "react"; import { AppContext } from "./../../context/AppContext"; import { Card, Eleva...
import { connect, Contract, keyStores, WalletConnection, utils, KeyPair } from 'near-api-js'; import * as nearAPI from "near-api-js"; const CryptoJS = require('crypto-js'); /** Real config. It's async. It was important when we tried to clone the site, so the config is not burnt in */ async function getRealConfig(env) ...
// Dependancies import eachDay from 'date-fns/each_day'; import format from 'date-fns/format'; import getDate from 'date-fns/get_date'; import getDaysInMonth from 'date-fns/get_days_in_month'; import getISODay from 'date-fns/get_iso_day'; import getYear from 'date-fns/get_year'; import getMonth from 'date-fns/get_mont...
/* jshint esversion: 6 */ /* global require, module */ "use strict"; var defaults = require("defaults-deep"); var debug = require("debug")("esformatter:autoWrap"); var rocambole = require("rocambole"); var _tk = require("rocambole-token"); var _lb = require("rocambole-linebreak"); var _ws = require("rocambole...
import { UserInputError } from 'apollo-server-lambda'; import { BR_STATES_LIST } from '../models/br-states.list'; import { COUNTRY_LIST } from '../models/country.list'; import { DISABILITY_LIST } from '../models/disability.list'; import { EDUCATION_LIST } from '../models/education.list'; import { GENDER_LIST } from '.....
'use strict'; var FFT = require('./fftlib'); /** * Calculates the inverse of a 2D Fourier transform * * @param ft * @param ftRows * @param ftCols * @return */ function ifft2DArray(ft, ftRows, ftCols) { var tempTransform = new Array(ftRows * ftCols); var nRows = ftRows / 2; var nCols = (ftCols - 1) ...
import React from 'react'; import propTypes from '../../../node_modules/prop-types/index.js'; import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; import _styled from 'styled-components'; import classCallCheck from '../../../node_modules/@babel/runtime/helpers/classCallCheck.js';...
'use strict'; var test_text_data = 'Test text data.'; var test_text_byte_array = new TextEncoder('utf-8').encode(test_text_data); var test_number_data = 42; var test_json_data = {level: 1, score: 100, label: 'Game'}; var test_url_data = 'https://w3c.github.io/web-nfc/'; var test_message_origin = 'https://127.0.0.1:844...
import store from "../index"; import {fetchPost} from "../../scripts/fetch-helpers"; // Defines the Name given to the anomaly score name from the algorithms output let anomalyScoreName = "anomalyScore"; const state = { anomalyProblemData: [], anomalyVariables: [], anomalyVariablesCorrelation: [], anom...
'use strict'; const _ = require('lodash'); const Promise = require('bluebird'); const { apiServerClient } = require('@sf/eventmesh'); const { CONST, errors: { NotFound } } = require('@sf/common-utils'); const { backupStore } = require('@sf/iaas'); const config = require('@sf/app-config'); const logger = requ...
/** * Copyright 2022 F5 Networks, 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 agr...
function createMarkup(html) { return {__html: html}; } /*定义所有简历显示的ReactJS组件*/ window.Resume = React.createClass({ getDefaultProps:function (){ return { json:{} } }, getInitialState:function(){ console.debug('[Resume][getInitialState]'); return { } }, render:functi...
var async = require('async') var $ = require('jquery') var csjs = require('csjs-inject') var yo = require('yo-yo') var minixhr = require('minixhr') // simple and small cross-browser XMLHttpRequest (XHR) var remixLib = require('remix-lib') var EventManager = remixLib.EventManager var FileExplorer = require('../files/fi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: 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]; } }...
//@ts-check const { diffTrimmedLines } = require("diff"); const { basename, join, resolve } = require("path"); const { tmpNameSync } = require("tmp"); const { Paths, Tags } = require("../src/constants"); const { createInclusionHandler } = require("../src/inclusion-handler"); const { asyncMap, isNotEmpty, isNotUndefin...
import React from 'react'; const EuiIconLogoIbm = ({ title, titleId, ...props }) => ( <svg width={32} height={32} viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" aria-labelledby={titleId} {...props}> {title ? <title id={titleId}>{title}</title> : null} <defs> <linearGradi...
import React, { useState, useEffect, useLayoutEffect, useCallback, useMemo } from "react"; import PropTypes from "prop-types"; import { useSelector, useDispatch } from "react-redux"; import { FormattedMessage } from "react-intl"; import StaticMap, { NavigationControl } from "react-map-gl"; import DeckGL, { ...
// only remove the thing if it's a symlink into a specific folder. This is // a very common use-case of npm's, but not so common elsewhere. exports = module.exports = gentlyRm var resolve = require('path').resolve var dirname = require('path').dirname var normalize = require('path').normalize var validate = require('...
"use strict"; 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]; } } } return target; }; var _createClass = function () { function defi...
import React from 'react'; import BaseForm from '../grid/BaseForm'; import _ from "lodash"; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import {EditorState, SelectionState, convertToRaw, convertFromRaw} from "draft-js"; import {compose, graphql, withApollo} from ...
///////// Back End ///////// ///////// Pizza ///////// function Pizza(pizzaSize, pizzaSauce, useXtraSauce, pizzaToppings, premiumToppings) { this.size = pizzaSize, this.sauce = pizzaSauce, this.xtraSauce = useXtraSauce, this.toppings = pizzaToppings, this.premium = premiumToppings, this.costBreakDown = [0,0...
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] =...
#!/usr/bin/env node /* eslint-disable no-console */ require('babel-register')({ plugins: [ 'babel-plugin-transform-es2015-modules-commonjs', 'babel-plugin-transform-object-rest-spread', 'babel-plugin-transform-react-jsx', ], extensions: ['.jsx'], cache : true, }); const Rea...
/* * src/firestoreREST/commit.js * * The 'commit' API. * * Forget about 'createDocument' and 'patch' - they don't support 'serverTimestamp' (and other such) sentinels (ehem, * "transforms" in the Firebase lingo). Also, 'commit' does what they do so there's no need for them. * * References: * * - commit API * -> h...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use th...
import React from 'react' import Node from './Node' import { Dijkstra } from '../algoritm/dijkstra' import { Menu } from './Menu' let START_COL = '10'; let START_ROW = '7'; let END_COL = '25'; let END_ROW = '7'; const ROW_NUMBER = 15; const COL_NUMBER = 35; let VEL = 40; const createNode = (row, col) => { return ...
var stellar = require('stellar-sdk') var printDisplay = function(str) { console.error(str); } if (process.argv.length != 4) { printDisplay("Usage: node trades.js account price_map"); printDisplay("price_map is code:issuer to price quoted in USD as a JSON formatted map, native XLM tokens should use \"XLM\"...
const assert = require('assert'); const async = require('async'); const { errors } = require('arsenal'); const BucketInfo = require('arsenal').models.BucketInfo; const { cleanup, DummyRequestLogger } = require('../helpers'); const { isKeyInContents } = require('../../../lib/metadata/in_memory/bucket_utilities'); ...
"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)...
var utils = require("../src/index.js"); var crypto = utils.crypto; var date = utils.date; var request = utils.request; var media = utils.media; var epConfig = { "scheduleOpen" : { "hours" : 8, "minutes" : 0, "seconds" : 0 }, "scheduleClose" : { "hours" : 18, "minutes" : 0, "sec...
const MongoLib = require("../mongo/connection"); const ObjectId = require("mongodb").ObjectId; const codeGen = require("../utils/createCodes"); const codeIsExpired = require("../utils/checkExpirationDate"); const CodigoModel = require("../models/codigo"); class CodesServices{ constructor(){ this.collectio...
/** * Copyright 2018, the AMP HTML authors * 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 agr...
// ECMAScript 6 elements are used here 'use strict'; var Data = {}; //Here will lie all data var Tools = {}; //Here will lie all parameters for site. function Init(){ Tools.tableCell = { width: 90, height: 30 }; Tools.tableMinute = Tools.tableCell.height/60; // the height of 1 render...
'use strict'; /* indi - имя главного героя */ let indi = new Hero(hero); // создание и инициализация объекта главный герой characters.push(indi); // добавляем его в спосок персонажей /* создаем замок */ let doorLock = new LockClass(lockArr[lvl]); /* текущий уровень*/ let curLevel = new LevelClass(lvl); /* вызываем...
/** * Oimo.js and Worker for three.js 2014 * @author LoTh / http://3dflashlo.wordpress.com/ * * OimoPhysics DEV 1.1.0a * @author Saharan / http://el-ement.com/ * @Copyright (c) 2012-2013 EL-EMENT saharan */ //--------------------------------------------------- // OimoPhysics use international system units //...
'use strict' /** * @module nock/scope */ const globalIntercept = require('./intercept') const common = require('./common') const assert = require('assert') const url = require('url') const _ = require('lodash') const debug = require('debug')('nock.scope') const { EventEmitter } = require('events') const globalEmitte...
import React, { Component } from 'react' import PropTypes from 'prop-types' import '../../App.css' import { drizzleConnect } from 'drizzle-react' import CurrencyFormat from 'react-currency-format'; import NewList from '../newList/NewList' import OwnerTool from '../ownerTool/OwnerTool' import Button from '@material-ui/c...
import React, { Component } from 'react'; import {Line, Bar} from 'react-chartjs-2'; import checker from './checker'; function getRandomRgb() { var num = Math.round(0xffffff * Math.random()); var r = num >> 16; var g = num >> 8 & 255; var b = num & 255; return 'rgb(' + r + ', ' + g + ', ' + b + ')'; } const...
//Had to do too much logic that could break with small changes to the db. //If I were to do this over, I'd seperate pickup requests into two or more tables const express = require('express'); const tokenAuth = require('./authUtils/tokenAuthentication.js'); const db = require('../data/dbModel.js'); const router = expr...
// Copyright 2016 Zipscene, LLC // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 const _ = require('lodash'); const mongodb = require('mongodb'); const EventEmitter = require('events').EventEmitter; const pasync = require('pasync'); const XError = require('xerror'); const...
const sunCalc = require('suncalc') const turf = require('@turf/turf') var helpers = {} helpers.defaultReply = { 'id': 'na', 'satellite': { 'name': 'na', // String 'sensor': 'na', // String 'producttype': 'na', // String 'sensormode': 'na', // String 'polarisati...
const bel = require('bel') const csjs = require('csjs-inject') const logo = require('play-logo') const orgpage = require('../') document.title = 'play' document.head.innerHTML = `<link rel="icon" type="image/png" href="demo/assets/play-logo-icon.png" />` const style = document.createElement('style') style.textConte...
'use strict'; // Getting string color maker. let color = require('./util/color'); // Exporting Test instance maker. module.exports = Test; /** * JSMicroTest Instance Maker * * @param {function} [fn] - Function to test. Required when running a simple tests. * @param {string} [name] - String function name. * @ret...