text
stringlengths
5.97k
41.2k
function ModalSelectFactura({ moneda, setshowModalFacturas, facturas, factqBuscar, setfactqBuscar, factqBuscarDate, setfactqBuscarDate, factsubView, setfactsubView, factSelectIndex, setfactSelectIndex, factOrderBy, setfactOrderBy, factOrderDescAsc, setfactOrderDescAsc, setfactInpdesc...
/** * @imgArr 商品图片 用于配送方式页 * @address 【地址信息】 [fulladdress: 详细地址; mobile:地址电话; consignee:收货人; address_id:地址id] * @isChooseAddress 【选择地址标识】 [is: 0 未修改, 1 修改了] */ /**订单数据 * @user_id 是 用户id * @address_id 是 收货地址id * @ID_number 是 身份证号 * @buy_method 是 配送方式 1 到店自提 2 快递送货 * @pay_p...
/** * This is a middleware that makes building and serving javascript in a monorepo with * Webpack a bit more bearable. The TL;DR is that you should give it an array of webpack * configs (although it'll take a single config as well), and it'll determine which configs * to build as requests come in. It'll try and ke...
/* * Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL) * * 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. * * U...
import { Mesh } from "../../Meshes/mesh"; import { Scene } from "../../scene"; import { Observable } from "../../Misc/observable"; import { Vector3 } from "../../Maths/math.vector"; import { PointerEventTypes } from "../../Events/pointerEvents"; import { Ray } from "../../Culling/ray"; import { PivotTools } from '../.....
/// <reference path="typings/chrome/chrome.d.ts" /> var CamlJs; (function (CamlJs) { var ChromeIntegration = (function () { function ChromeIntegration() { } ChromeIntegration.init = function (listener) { if (window["chrome"] && chrome.tabs) { chrome.runtime.onConn...
"use strict"; const fs = require(`fs`); const { cpuCoreCount } = require("gatsby-core-utils"); const { PLUGIN_OPTIONS, BENCHMARK_REPORTING_URL, MAX_ATTRIBUTE_LENGTH } = require("gatsby-build-newrelic/utils/constants"); const NewrelicLogs = require("winston-to-newrelic-logs"); const winston = require("winst...
//background-image: url(https://cdn.pixabay.com/photo/2015/03/26/09/47/sky-690293_960_720.jpg); var harr = []; var sarr = []; var bool = true; var now = new Date().getTime(); console.log(now); var yule; var leet; var yeet; var heart; var step; var taken = false; var langs = [['Afrikaans', ['af-ZA']], ['Bahasa In...
// ---------------------------------------------- // Conditions_ // Written by <NAME>, 2015 // ---------------------------------------------- var timeoutID; // Execute appending only once var resultsDisplayed = false; // Displays the default word findings on click function displayResults() { $('.block-...
'use strict'; // Port from Chromium // https://chromium.googlesource.com/chromium/blink/+/master/Source/platform/audio/DynamicsCompressorKernel.cpp import assert from 'assert'; import { flushDenormalFloatToZero, toDecibel, toLinear } from '../../utils'; const DEFAULT_PRE_DELAY_FRAMES = 256; const MAX_PRE_DELAY_FRAME...
'use strict'; /* The MIT License Copyright (c) 2020 <NAME>. WestLangley and mrdoob for the 'decompose' function Inspired from the ThreeJs Matrix4 library : https://github.com/mrdoob/three.js/blob/dev/src/math/Matrix4.js Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
import { logWarn, isArray, isStr, triggerPixel, deepAccess, deepSetValue, isPlainObject, generateUUID, parseUrl, isFn, getDNT, logError } from '../src/utils.js'; import { registerBidder } from '../src/adapters/bidderFactory.js'; import { config } from '../src/config.js'; import { BANNER, VIDEO, NATIVE } from '../src/me...
const base64 = require('base-64') const crypto = require('crypto') const fs = require('fs') const { render } = require('mustache') const moment = require('moment') const jose = require('node-jose') const path = require('path') const readFrom = (p) => fs.readFileSync(path.resolve(__dirname, p), 'utf8') const TEMPLATE ...
$('input[type="file"]').each(function(){ // Refs var $file = $(this), $label = $file.next('label'), $labelText = $label.find('span'), labelDefault = $labelText.text(); // When a new file is selected $file.on('change', function(event){ var fileName = $file.val().split( '\\' ).pop(), ...
// CSS // Public Methods css = function ( styles ){ // support more than one formats? // for now expecting a straighforward object... this.fn.css.set.call(this, this.last , styles); // preserve chainability return this; }; // Internal functions fn.css = { styles: function (a){ var sheets = document.sty...
const utils = require('@fuel-js/utils'); const protocol = require('@fuel-js/protocol'); const interface = require('@fuel-js/interface'); const struct = require('@fuel-js/struct'); const mempool = require('./mempool'); const operatorsToWallets = require('./operatorsToWallets'); const reconcileMempoolBalance = require('....
"use strict"; exports.__esModule = true; exports.MenuItem = exports.MenuLink = exports.MenuButton = exports.MenuList = exports.Menu = undefined; var _extends = Object.assign || function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { ...
'use strict' const Audio = require('../') const t = require('tape') const AudioBuffer = require('audio-buffer') const db = require('decibels') const lena = require('audio-lena') const isBrowser = require('is-browser') const path = require('path') const fs = require('fs') const AudioBufferList = require('audio-buffer-l...
const async = require('async'); const Kafka = require('node-rdkafka'); const uuidv4 = require('uuid/v4'); const util = require('util'); const CommitManager = require('./CommitManager.js'); const { Logger } = require('../logging/Logger'); const Helper = require('./Helper.js'); /** * Logger instance */ const logger = ...
import { resolve, dirname, relative, sep, posix } from 'path'; import { promises as fs, createReadStream } from 'fs'; import chokidar from 'chokidar'; import htmPlugin from './plugins/htm-plugin.js'; import sucrasePlugin from './plugins/sucrase-plugin.js'; import wmrPlugin, { getWmrClient } from './plugins/wmr/plugin.j...
/* * digitalStorage.js - Unit conversions for Digital Storage * * Copyright © 2014-2015, JEDLSoft * * 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/licen...
/* EVENTFUL API */ var p = require('../pFactory.js'); var cfg = require('../config.json').apis.eventful; var request = require('request'); //var cities = require('cities'); var Promise = require('bluebird'); var qs = require('querystring'); var moment = require('moment'); var _ = require('lodash'); var gps = requir...
// const W3Main = require("./w3_main.js"); const prompt = require('electron-prompt'); const bitcoinjs = require('bitcoinjs-lib'); const btcClient = require('bitcoin-core'); // var MININGFEE = 67800; var IChaKey=require('./js/IChaKey.js'); var player = require('play-sound')(opts = {}); var mIChaKey=new IChaKey(); const ...
import {AuthUserContext} from "../Session"; import Parse from "parse"; import emoji from 'emoji-dictionary'; import 'emoji-mart/css/emoji-mart.css' import {Divider, Form, Input, Layout, List, Popconfirm, Popover, Tooltip, notification, Button} from 'antd'; import "./chat.css" import React from "react"; import ReactMa...
const http = require('http'); const https = require('https'); const cluster = require('cluster'); const proxy = require('./proxy'); const requestIp = require('request-ip'); const url = require('url'); const fs = require('fs'); const path = require('path'); const helper ...
// ResourceList import React, {PureComponent} from 'react'; import {connect} from 'dva'; import {formatMessage, FormattedMessage} from 'umi-plugin-react/locale'; import T from './../../utils/T'; import router from 'umi/router'; import { EnumQuickRegisterParams, } from './../../constants/dataSync/EnumSyncConfigModal...
/** * * Web Starter Kit * Copyright 2014 Google Inc. 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/LICENS...
// NOT USEFUL FOR THIS DEMO const SphCM = 2.00; const aCM = 1.90; const HoleDiamCM = 0.15; const BoGX = 25; const BoGY = 20; const BoSIX = BoGX * aCM // TIMESTEP let dt = 1; // TWO SPECIES GAS DYNAMICS const m1 = 1; const m2 = 16; const r1 = 10; const r2 = 40; const c1 = 'rgba(0, 176, 218, 0.95)'; const c2 = '...
import { join, sep } from 'path'; import get from 'platform/utilities/data/get'; import disableFTUXModals from '~/platform/user/tests/disableFTUXModals'; const APP_SELECTOR = '#react-root'; const ARRAY_ITEM_SELECTOR = 'div[name^="topOfTable_"] ~ div.va-growable-background'; const FIELD_SELECTOR = 'input, select, te...
// Default geohash length var g_GEOHASH_PRECISION = 10; // Characters used in location geohashes var g_BASE32 = "0123456789bcdefghjkmnpqrstuvwxyz"; // The meridional circumference of the earth in meters var g_EARTH_MERI_CIRCUMFERENCE = 40007860; // Length of a degree latitude at the equator var g_METERS_PER_DEGREE_L...
function inserirProdutoVenda2(x){ var spreadsheet = SpreadsheetApp.getActive(); var Form = spreadsheet.getSheetByName('Vendas'); var values = [[Form.getRange('L5').getValue(), //ID Produto Form.getRange('K4').getValue(), // Marca Form.getRange('K5').getValue(), //...
'use strict'; // import React from 'react'; // import ReactDOMServer from 'react-dom/server'; var Model = require('objection').Model; // var runner = require('child_process'); // var php = require('phpjs'); import Response from './components/response'; // import MuiThemeProvider from 'material-ui/styles/MuiT...
'use strict' const vscode = require('vscode') const { init, localize } = require('vscode-nls-i18n') const Cache = require('./Cache') const util = require('./util') /** * SFCC Cartridges */ class Cartridges { /** * Initialize Cartridges */ constructor(context) { // Initialize Localization init(con...
/** helpers */ function id(id) { return document.getElementById(id); } /** C interface wrappers */ function yakc_boot(sys, os) { Module.ccall('yakc_boot', null, ['string','string'], [sys, os]); } function yakc_toggle_ui() { return Module.ccall('yakc_toggle_ui', 'int', null, null); } function yakc_toggle_...
/* The great and powerfull whiteboard.js This holds all the core functionality of the whiteboard, including tool management, interface bindings and socket handling. */ function Whiteboard() { this.whiteboard_id = 'unknown'; this.socket = undefined; this.tool_head = null; this.active_tool = null; this.colours...
import output from "Console.js" import guybryshConfig from "./Guybrush.sprite.js"; import Sprite from "./Sprite.js"; function removeSmallest (array, f) { var newArray = []; var minitem; var minv for(var i =0; i < aray.length; ++i) { var current = array[i]; if(!minitem) { minitem = current; ...
var React = require('react'); import { IconButton, IconMenu, MenuItem, Dialog, RaisedButton, TextField, FontIcon, FlatButton, Toggle } from 'material-ui'; var util = require('utils/util'); var api = require('utils/api'); import {clone, pick, merge, get} from 'lodash'; import {Link} from 'react-router' import {cyanA...
"use strict"; /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of c...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Contains all Parse API classes and functions. * @name Parse * @namespace * * Contains all Parse API classes and functions. */ var Parse = require('./Parse').Parse; // Helpers // ------- // Shared empty constructor function to aid in prototype-chain creation. var EmptyConstructor = f...
$(function() { // allow tab key to be used in the text area $('#input').keydown(function(e) { // http://stackoverflow.com/questions/1738808/keypress-in-jquery-press-tab-inside-textarea-when-editing-an-existing-text/1738888#1738888 if (e.keyCode == 9) { var myValue = "\t"; ...
import * as Caml_option from "../../../../../node_modules/bs-platform/lib/es6/caml_option.js"; import * as JobService$Wonderjs from "../../service/primitive/job/JobService.js"; import * as HandleJobService$Wonderjs from "../../service/primitive/job/HandleJobService.js"; import * as TickMainWorkerJob$Wonderjs from "./...
////////////////////////////////////////////////////////////////////// // Section 0: missing core operations Array.prototype.peek = function() { return this[this.length-1]; } // CSS query selectors need special escaping to work on non-identifier IDs function cssIdEscape(id) { return id.replace(/[-!"#$%&\'()*+,./;...
import {IDBRequest} from './IDBRequest'; import IDBObjectStore from './IDBObjectStore'; import {createDOMException} from './DOMException'; import {setSQLForKeyRange, convertValueToKeyRange} from './IDBKeyRange'; import {cmp} from './IDBFactory'; import * as util from './util'; import IDBTransaction from './IDBTransact...
/* HTML5STICKY (http://github.com/sarfraznawaz2005/HTML5Sticky) ================================================================ Author : <NAME> (<EMAIL>) Twitter : @sarfraznawaz Blog : http://sarfraznawaz.wordpress.com/ LICENSE : MIT ========================================================...
import React, { memo, useState, useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { HubMainScreenModel } from '../../../../models/HubMainScreenModel'; import PopUp from './PopUp'; import * as classes from '../../../../../../../constants/classes'; impo...
'use strict'; var logger, User, passport, loginExtSettings, appSettings, path = require('path'), merge = require('utils-merge'), async = require('async'), moment = require('moment'), FacebookStrategy = require('passport-facebook').Strategy, InstagramStrategy = require('passport-instagram').Strategy, Twitter...
'use strict'; 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 ("value" in descriptor) descriptor.writable = true; Object.definePrope...
import React from 'react' import XYGraph from '../XYGraph' import { connect } from 'react-redux' import ReactTooltip from 'react-tooltip' import { nest, nestStack, nestMax, merge, sorter } from "../../../utils/helpers" import { line, area } from 'd3'; import { properties } from './default.config'; class Are...
function autocomplete(inp, arr) { var currentFocus; let hintsenabled = getCookie("hintsenabled", false) inp.addEventListener("input", function (e) { var a, b, i, val = this.value; closeAllLists(); if (!val) { return false; } currentFocus = -1; a = document.createElement("DIV"); a.setAttrib...
/* * Copyright 2022 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...
// VARS var tasksSheetName = "tasks"; var dashboardSheetName = "dashboard"; var financeSheetName = "finance"; var dataSheetName = "data"; var auxiliarDataSheetName = "auxiliar_data"; var alertColor = "#FF5950"; var professionalType = "professional"; var personalType = "personal"; var logosophyType = "logosophy"; va...
console.log("loaded kanga.js "); const WHITE = "#ffffff"; const GREY = "#999999"; const LIGHTBLUE = "#99ccff"; // var expVariables set in HTML var allKeyPresses = []; var currTrialN = 0; var specialKeys = []; var expResults = []; var allTrials = []; /* DISPLAY */ // canvas is the drawing platform on which stimuli...
// eslint-disable-next-line no-unused-vars const { accounts, defaultSender } = require('@openzeppelin/test-environment'); const { ether, time, expectEvent, expectRevert } = require('@openzeppelin/test-helpers'); const { default: BigNumber } = require('bignumber.js'); const { assert } = require('chai'); const { contract...
export { buildVariantMaterial, UVspec, UV_ATTRIBUTE_PREFIX, ManagedColor, ManagedTexture } import { getUID } from '../libek/libek.js' /* A shader variation generator. -- A simple and convenient way to inject custom GLSL into shader (as well as to configure the Material). base: Name of the builtin shader to...
/* if (typeof define !== 'function') { var define = require('amdefine')(module); } define(['../web/jsgui-html', 'os', 'http', 'url', './core/resource', '../web/jsgui-je-suis-xml', 'cookies'], */ // Not sure the server needs the controls??? // This module is really adding a resource. //function(jsgui, o...
import React, {Component} from 'react'; import './Profiler.css'; import {addRequest, pushMessage, setControlVisibility} from '../../../../actions'; import {withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; import jQuery from "jquery"; import { errorHandler, getCurrentUser, g...
import game from "./index.js"; import Phaser from "phaser"; const tt = 42; //text offsets for dominos export default class sceneMain extends Phaser.Scene { constructor() { // on scene creation super("sceneMain"); } preload() //load images & sounds { this.topText = []; this.nomText = []; thi...
/* "<tr class=\"authLine\" >"+ "<td class=\"authline\">"+ "<svg id=\"svgA"+<---ID--->+"\" class=\"svgA\"></svg></td></tr>" <rect x="400"width="100px" height="8px" fill="black"></rect> */ function prettyPrintAuthor(auth){ function getAuthPapers(item){ return auth.paperList.includes(item.id); } var thehtml...
var geocoder; var street_number; var street_name; var city_name; var state_abbreviation; var zip_code; var playground = {}; var move_end_listener = null; var reverse_geocode_listener = null; $(function() { playground = { 'ACTION': get_parameter_by_name('action'), 'BASE_LAYER': APP_CONFIG.MAPBOX_BAS...
function TFPanel(args) { this.init = function(args) { this.orientation = args.orientation || 'horizontal'; this.root = args.root || false; //console.log("INIT panel:", args); this.elementtype = args.elementtype || 'DIV'; this.container = args.container || document.createElement(this.elementtype); ...
/** * Interface to https://github.com/skeeto/chacha-js that will use a hex string as a seed for * the key and IV. 32 byte key, 8 byte IV, 8 byte internal counter initialized to 0. * * The seed is assumed to be a 320 bits hex number represented by an 80 characters long string * if it's longer, then it truncates it ...
require("dotenv").config(); var userInquiry= process.argv; var keys=require("./keys.js"); var fs=require("fs"); var Twitter = require('twitter'); var Spotify = require('node-spotify-api'); var song=""; var newSong=""; if(userInquiry[2]==="my-tweets"){ gettingTweets(); } else if (userInquiry[2]==="spotify-this-song"...
// global variables let board; let cellSize; let tetris; let buffer; let startTime = 0; let waitTime = 750; let score; let over = false; let backgroundMusic, rowClearedSound; let gameStarted = false; let gamePaused = false; let pauseIcon; let colors = ["lightblue", "blue", "orange", "yellow", "lightgreen", "purple", ...
import React, { useState, useEffect, useRef } from 'react' import Button from '@material-ui/core/Button' import Dialog from '@material-ui/core/Dialog' import { makeStyles } from '@material-ui/core/styles'; //icons import NavigateNextIcon from '@material-ui/icons/NavigateNext'; import IconButton from '@material-ui/core/...
var snapshotAuxiliaryData = {} function generateSnapshot () { const outerScope = this let process = {} Object.defineProperties(process, { 'platform': {value: 'processPlatform', enumerable: false}, 'argv': {value: [], enumerable: false}, 'env': {value: {'NODE_ENV': 'production'}, enumerable: false} ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopReq...
import TreeNode from './tree-node.js'; import Window from '../window.js'; import game from "thing-editor/js/engine/game.js"; import Selection from "../../utils/selection.js"; import Lib from "thing-editor/js/engine/lib.js"; import Scene from 'thing-editor/js/engine/components/scene.js'; import DataPathFixer from 'thing...
import React from 'react'; import styles from './index.less'; import {Form, Input, Button, Checkbox, Radio, Row, Col, Select, message, Icon, InputNumber, Table, Popconfirm, Tooltip, Spin, Tabs } from 'antd'; import moment from 'moment'; import utils, { getCurrTk } from '../../../utils/utils'; import fetch from 'dva/f...
/** import $ from "jquery"; **/ const $ = jQuery; /** NMedia Helper Object **/ const nmh = { show_console: true, working_dom: 'loading-data', decimal_separator: ppom_input_vars.wc_decimal_sep, no_of_decimal: ppom_input_vars.wc_no_decimal, thousand_sep: ppom_input_vars.wc_thousand_sep, ...
const rabbit = require('../src/rabbit') const assert = require('assert') require('../src/logger').disable() describe('rabbit', () => { describe('configuration', () => { let savedData = null beforeEach(() => { let controller = { storage: { teams: { get: (id, callback) => { ...
/** * 将iframe转化为图片并储存至七牛云 * 先后使用html2canvas和dom-painter,然后弃用 */ // import html2canvas from 'html2canvas' // import domPainter from 'dom-painter' import axios from 'axios' import { get } from './request' import store from '../vuex/store' /** * 向七牛云获取token */ async function getToken () { let token = '' await ge...
'use strict'; console.log('ready to rock'); //////////////////Global Variables/////////////////////// var rounds = Math.ceil(Math.random() * 20) + 5; var Products = []; var imageElements = document.getElementsByTagName('img'); var totalClicks = 0; var productIndex1 = 0; var productIndex2 = 1; var productIndex3 = 2; /...
/** * (c) 2020 <NAME>, MIT License * File creation: 01/28/2020 * UCSC, CSE160, Winter 2020 * https://nero.dev * * Required: * - libs/ * - Animal.js * * Description: * This class creates a beautiful? cubic fox */ // Left, right, back and front are relative to the fox var K_BODY = "K_BODY"; var K_FR_...
'use strict'; /*global Deck, Card, $, Image, localStorage*/ // scoring // starting at 10, each card in the streak doubles the last point value // so 10, 20, 40, 80, 160, etc.. // last card in a peak is worth a bonus starting at 500 and increasing // each next peak by 250. the peak bonus goes down by 250 at the start ...
import Table from '../../libs/table'; import Upload from '../../libs/upload'; import Autocomplete from '../../libs/autocomplete'; import ValidationForm from '../../libs/validation_form'; import BranchService from '../../services/admin/branch_service'; import Branch from '../../models/branch'; import Image from '../../m...
var api_head = "json.cgi/"; var ret_hash = {}; var cur_n_target = "queued"; var tid_select = ['input_n_tid', 'input_s_tid']; var targets_cg = ['sms', 'phone', 'email', 'webpush']; var list_actions = ['notices', 'targets', 'schemes']; var n_fired_icon = { 0: { 'title': 'notification queued', 'icon': 'schedule' }, ...
import $ from '$'; import _ from '_'; import key from 'key'; import ko from 'ko'; import { EventKeyCode } from 'Common/Enums'; import { isArray, inArray, noop, noopTrue } from 'Common/Utils'; class Selector { list; listChecked; isListChecked; focusedItem; selectedItem; itemSelectedThrottle; selectedItemUseCa...
// This creates a new directory, "build-result" that contains the entire website as it is meant to be uploaded // to AWS s3. Yes, I'm probably supposed to use something different. But hey, at least I'm not copy pasting files, right? // It is meant to be run as a node.js program // The end goal is to get a file t...
var S = require("./structs.js"), _ = require("./helpers.js"); var dir = exports; dir.iterator = function (dirChain, opts) { opts || (opts = {}); var cache = {buffer:null, n: null}; function getSectorBuffer(n, cb) { if (cache.n === n) cb(null, cache.buffer); else cache.n = cache.bu...
import decoder from './decoder'; import { wToR } from '../client/rsys'; // Maximum number of property textures that will be uploaded automatically to the GPU // in a non-lazy manner const MAX_GPU_AUTO_UPLOAD_TEXTURE_LIMIT = 32; export default class Dataframe { // `type` is one of 'point' or 'line' or 'polygon' ...
// participant_listener.js var config = require('./local_config.js'); const VERBOSE = config.verbose; const send_tweets_automatically = config.send_tweets_automatically; // Database Setup const mysql = require('mysql'); const connection = mysql.createConnection(config); connection.connect((err) => { if (err) { ...
import "@babel/polyfill"; import { login, logout } from "./login"; import { newUser, editUser } from "./user"; import { newStudent, editStudent } from "./student"; import { updatePassword } from "./password"; import { addDevice, checkInDevice, checkOutDevice, createError, editDevice, updateError, } from "./...
var input = document.getElementById("dep"); function adjustSuggestion() { if (input === null) { console.warn("input is undefined."); updateTable(); return; } var a, b; var search = input.value.toUpperCase(); currentFocus = -1; a = document.getElementById('dep-list'); a.innerHTML = ''; var count = 0; ...
const contexts = []; const injectPieces = (element, config, patterns) => { const {[PIECE_KEY]: pieces, [STYLES_KEY]: styles} = config; pieces.forEach((path, index) => { //const d = translateShip(encoded); const piece = createSVGelement('path'); const pattern = patterns[styles[index]]; setAttribut...
import { createRgbaColors, get, transformValuesToReferences, transformValuesToVariables, transformValuesToVariablesString, } from './utils'; const ANIMATION_PROPS = { transitionDuration: '200ms', transitionDurationFast: '160ms', transitionDurationFaster: '120ms', transitionDurationFastest: '100ms', transitio...
/* global Localize */ /* global ExifFunctions */ /* global isValidNumber */ /* global CONTENT_SPACE */ /* global STORAGE_NAME_IMGDATA */ /* global STORAGE_NAME_EXIFDATA */ /* global STORAGE_NAME_IPTCDATA */ /* global OPTION_ACTIVE_LINK */ /* global OPTION_CUSTOM_TAGS */ const _Msg = browser.i18n.getMessage; const Name...
import React, { Fragment, Component, useState } from "react"; import styled from "styled-components"; import { compose } from "recompose"; import QRCode from "qrcode.react"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import Modal from "react-bootstrap/Modal"; import Form from "react-...
moment.updateLocale('en', { relativeTime: { future: 'in %s', past: '%s ago', s: '%ds', m: '1m', mm: '%dm', h: '1h', hh: '%dh', d: '1d', dd: '%dd', M: '1M', MM: '%dM', y: '1y', yy: '%dy', }, }); class Main { constructor() { this.db = new DB(); this.pageT...
"use strict"; function loadWaterflowSettings() { return { minValue: 0, // min value. Used to calculate scales and associated stuff. maxValue: 100, // max value. Used to calculate scales and associated stuff. scale: 1, // // scale of the svg's parent div. Shouldn't be used. It is a...
const electron = require('electron') // moment is a date time software package const moment = require('moment') const path = require('path') const fs = require('fs') const app = electron.app const BrowserWindow = electron.BrowserWindow const dialog = electron.dialog const Menu = electron.Menu // exporting the next m...
let path = require("path"); let { logDebug, logInfo, logError, logWarning, logSuccess, asyncForEach, } = require("./util"); let agilitySync = require("@agility/content-sync"); let syncInterfaceGatsby = require("./sync-interface-gatsby"); //SOURCE NODES *****************************************************...
/****************************************************************************** ** Description: MY QUIZZES PAGE - client side javascript file that handles ** the dynamic behavior of the page ** ** Contains: deleteQuiz ** downloadQuiz ** uploadQuiz *******************...
var db = require("../models"); var DecisionTree = require('decision-tree'); module.exports = function (app) { // Load index page app.get("/dashboard", function (req, res) { db.TODO.findAll({}).then(function (dbTODO) { var count = 1; var count1 = 1; var training_data = [ { "category"...
// Author: <NAME> // Copyright: <NAME> // License: MIT // License file: LICENSE var d = document var qs = Document.prototype.querySelector.bind(d) // {{{ Constants // host, path :: String var host = window.location.host var path = "/" // port :: Int var port = 8080 // playerSize, maxSpeed :: Int var playerSize = 1...
import React from 'react'; import {View, Text, StyleSheet, Button, Alert, BackHandler, Image, TouchableOpacity} from 'react-native'; import { displayArrowWithMessage } from "../helpers/NavigationHelper"; import {ActionAPI, ProgramsAPI, StatusAPI} from "../network/APIClient"; import NetworkRoute from "../network/Network...
const { Client, Collection } = require("discord.js"); const Discord = require("discord.js"); const { config } = require("dotenv"); const ayarlar = require("./ayarlar.json"); const db = require("quick.db") const app = new Client({ disableEveryone: true }); app.commands = new Collection(); app.aliases = new Collection...
/* global THREE*/ var scene, scene2, renderer, material, geometry, mesh, wireframe_flag = false; //basic var camera, last_camera = camera, cameraLives, perspectivecamera, perspectivecamera2, orthogonalcamera, width=500, height=300, cameraRatio = (width/height); //cameras var board, ship; //objects var boardWidth = widt...
/* Copyright 2011 <NAME>, Queensland University of Technology 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 a...
let names = { adjectives: [ 'adorable', 'adventurous', 'aggressive', 'agreeable', 'alert', 'alive', 'amused', 'angry', 'annoyed', 'annoying', 'anxious', 'arrogant', 'ashamed', 'attractive', 'average', 'awful', 'bad', 'beautiful', 'better', ...