text
stringlengths
3.22k
29.5k
// <NAME> <<EMAIL>> "use strict"; const assert = require('../assert.js'); const ContextMenu = require('./contextmenu.js'); const SketchAction = require('./actions/action.js'); const ActionContext = require('./actions/actioncontext.js'); const { snapshotTime } = require('./history.js'); const { triggerUpdate } = requir...
/* ====================================== STOP MAPPING PAGE move to its own file ====================================== */ // Set up the map for the stops page var map_stops = new mapboxgl.Map({ container: "map_stops", style: "mapbox://styles/mapbox/light-v9", center: centerCoordinates, zoom: 11 }); var fe...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useSwapCalculator = exports.SwapState = void 0; const reactivity_1 = require("@vue/reactivity"); const entities_1 = require("../../../entities"); const useField_1 = require("./useField"); const utils_1 = require("./utils"); const forma...
// MAIN const const ADDRESS = '/reservations/get-reservations'; const MONTHS = [ { long:'Janvier', short:'Jan' }, { long:'Février', short:'Fev' }, { long:'Mars', short:'Mar' }, { long:'Avril', short:'Jan' }, { long:'Mai', short:'Jan' }, { long:'Juin', ...
var videoClassName = "PT_video"; var playPauseClassName = "PT_vid_play-pause_btn"; var vidBoxClassName = "PT_vid_box"; var playPauseContAlt0 = "PT_vid_play-pause_btn_alt_0"; var playPauseContAlt1 = "PT_vid_play-pause_btn_alt_1"; var timerCurrClassName = "PT_vid_timer_curr"; var timerMaxClassName = "PT_vid_timer_max"; v...
import { checkParamOrThrow } from 'apify-client/build/utils'; import log from 'apify-shared/log'; import _ from 'underscore'; import BasicCrawler from './basic_crawler'; import PuppeteerPool from './puppeteer_pool'; import { addTimeoutToPromise } from './utils'; const DEFAULT_OPTIONS = { gotoFunction: async ({ req...
$(window).load(function () { // TOPPER STUFF fillTopper(); var topperHeight = $(window).height() var scrollProgress = 5; var topperScrollMagicController = new ScrollMagic({ globalSceneOptions: { triggerHook: 'onLeave' } }); function getTopperHeight() { re...
var timeoutid; var skintypeid = 1; var skinCurrGroupIndex = 0; var lastSkinId = '';//从cookie中读取 var lastBgImgUrl = ''; var skins = [ //8个分类,每组分类4~5组图片,每组12张,每张图片可能对应一组样式 { typeid: 1, typename: "热门", groups: [1, 2, 3, 4, 5] }, { typeid: 2, typename: "游戏", groups: [6, 7, 8, 9, 10] }, { typeid: 3, typenam...
module.exports = addIconsToScope; // Adding icons function getWordsFromString(theString) { const wordsList = theString.split(/(?=[A-Z])|-|_/); const words = {}; for (let i = 0; i < wordsList.length; i++) { const loopedWord = wordsList[i].toLowerCase(); words[loopedWord] = true; } return words; } const rul...
'use strict'; const periodic = require('periodicjs'); const mathjs = require('mathjs'); const helpers = require('./helpers'); const { generateProjectedResult, mapPredictionToDigiFiScore, normalize, } = require('../helpers'); function evaluate({ mlmodel, configuration, state, scoreanalysis = null }, /*configurati...
import { OWNER, assign } from 'ember-utils'; import { combineTagged } from '@glimmer/reference'; import { PrimitiveReference, ComponentDefinition } from '@glimmer/runtime'; import { assert } from 'ember-debug'; import { DEBUG } from 'ember-env-flags'; import { ROOT_REF, DIRTY_TAG, IS_DISPATCHING_ATTRS, HA...
'use strict'; var express = require('express'); var router = express.Router(); var uuid = require('node-uuid'); const db = require("../app/db/"); const config = require('../config.json') const wechat = require('../app/wx/wechat/wechat'); var wechatApp = new wechat(config); const home = require('../app/wx/controllers/...
'use strict'; var parseToken = require('@mapbox/parse-mapbox-token'); var xtend = require('xtend'); var EventEmitter = require('eventemitter3'); var urlUtils = require('../helpers/url-utils'); var constants = require('../constants'); var requestId = 1; /** * A Mapbox API request. * * Note that creating a `MapiReq...
import moment from "moment"; import _ from "lodash"; const utils = { // 例如url为: /sample // 传入的参数为: {id:123,typeId:2343} // /sample?id=123&typeId=2343 buildQueryUrl(url, params) { // 判断url是否带参数 let arrs = url.split("?"); if (arrs[1] && arrs[1].length > 0) { let ps = arrs[1].split("&"); /...
const map = { x: 'dark', Z: 'light', Y: 're', X: 'blu', W: 'gr', V: 'medium', U: 'slate', A: 'ee', T: 'ol', S: 'or', B: 'ra', C: 'lateg', D: 'ights', R: 'in', Q: 'turquois', E: 'hi', P: 'ro', O: 'al', N: 'le', M: 'de', L: 'yello', F: 'en', K: 'ch', G: 'arks', H: 'ea', I: 'ightg', J: 'wh' }; ...
import React, { Component } from "react"; import { connect } from "react-redux"; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; import App from "./App"; import Fountain from "./Fountain"; import Howto from "./Howto"; import Airgrab from "./Airgrab"; import _ from "lodash"; import { Hea...
const { play } = require("../helpers/music.js"); const botConfig = require("../data/botconfig.json"); const { readFileSync } = require('fs'); var serverConfig = JSON.parse(readFileSync('./data/serverconfig.json', 'utf8')) const ytdl = require("ytdl-core"); const YouTubeAPI = require("simple-youtube-api"); const youtube...
const axios = require('axios'); export default { // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode ssr: false, // Target: https://go.nuxtjs.dev/config-target target: 'static', // Global page headers: https://go.nuxtjs.dev/config-head head: { title: 'Download and stream movie on vidfye ...
'use strict'; define(['projectSugar'], function () { console.log("FAQ"); var faQuestionsModule = angular.module('projectSugar', ['ui.router', 'oc.lazyLoad', 'faQuestionsService', 'layoutService']); faQuestionsModule.controller('faQuestionsController', ['$scope','$http', '$ocLazyLoad', 'faQuestionsService', 'layo...
/** * * VariableDraggableAttr */ /* eslint-disable react/no-find-dom-node */ import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import { DragSource, DropTarget, } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; import { get, flow }...
import PageManager from './defaultSite/PageManager'; import PanelManager from './defaultSite/PanelManager'; import 'touchjs'; import 'jstween'; import 'ds/net/QuickAjax'; import 'ds/net/ADTrack'; import 'ds/net/QueueLoad'; import 'ds/ui/PopAlert'; import 'ds/utils/Animate'; import 'ds/net/SiteWechatShareModel'; import ...
function check_Date(i_Date) { var flag = moment(i_Date, 'YYYYMMDD').isValid(); if (i_Date.length > 8) { flag = false; } return flag; } function get_StudyUID(i_Item) { if (i_Item.identifier.value.includes('urn:oid:')) { return i_Item.identifier.value.substring(8); } return i...
var net = require('net'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var shared = require('../shared/tcp'); // Client Transport's data handling function, bound to the TcpTransport // instance when attached to the data event handler function onDataCallback(message) { if(message &...
import React, { useState, useEffect, useCallback } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { compose } from 'recompose'; import BigNumber from 'bignumber.js'; import { bindActionCreators } from 'redux'; import { Select, Icon } from 'antd'; import { connectAccount...
const Discord = require('discord.js'); // To install Discord, execute npm install discord.js const bot = new Discord.Client(); const config = require('../config.json'); const message = require('./message'); module.exports = { name: "guildMemberAdd", run: async (bot, member) => { console.log(member)...
/** * prpr-mf.js, a part of PR-PR (previously known as PaR-PaR), a biology-friendly language for liquid-handling robots * Author: <NAME>, <EMAIL>, <EMAIL> * Copyright 2012-2013, Lawrence Berkeley National Laboratory * http://github.com/JBEI/prpr/blob/master/license.txt */ function getConnectionInfos() { var w...
import React, { useEffect, useState } from 'react'; import { check } from '../../utils/helpers'; import Tablinator from '../interactions/tablinator'; import ImageUploader from "react-images-upload"; import { graphql, useStaticQuery, Link } from "gatsby" const adminEP = process.env.GATSBY_adminEP; const Managefaqs = (...
const Discord = require("discord.js"); const client = new Discord.Client(); const ayarlar = require("../ayarlar.json"); const moment = require("moment"); const db = require("quick.db"); exports.run = async (client, message, args) => { let pc = message.guild.members.cache .filter(m => !m.user.bot && m.user.prese...
const users = [ { caption: "Facebook", image: "img/logos/facebook.svg", infoLink: "https://www.facebook.com", }, { caption: "Messenger", image: "img/logos/messenger.svg", infoLink: "https://messenger.com", }, { caption: "OneGraph", image: "img/logos/onegraph.svg", infoLink:...
#!/usr/bin/env node var {Detector, Device, Socket} = require('../') , DEFAULT_TIMEOUT = 10000; const argv = require('minimist')(process.argv.slice(2), { default: { pin: '' }, alias: { credentials: 'c', device: 'd', timeout: 't', bind: 'b', 'bind-port': 'p...
import React, {Component} from 'react'; import {Card, Table, Accordion, Icon} from 'semantic-ui-react'; import PreviewCard from './previewCard'; import LiveCard from './LiveCard'; import FinalCard from './FinalCard'; import WinProbability from './winProbability'; import {connect} from 'react-redux'; import {winProbabil...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { prefix } from '../../lib/library/prefixes'; import { Media, Player, controls, utils } from 'react-media-player'; import { registerClock, tickTimedResource, fetchGraph } from '../actions/...
import React, { useEffect, useState } from 'react' import PageHeader from './PageHeader.js' import PageSection from './PageSection.js' import { AttributeTable, AttributeRow } from './CommonStylesTables' function Credential(props) { const history = props.history const credential = props.credential const credent...
/** * Created by wzgong on 12/5/14. */ function DummyObjectA() { this.id = _.uniqueId("DummyObjectA_"); this.num = [0, 0, 0, 0]; console.log(this.id); } DummyObjectA.prototype.sum = function (index) { this.num[index] = this.num[index] + index + 1; }; DummyObjectA.prototype.asyncSum = function (i...
export { Activity } from './icons/activity'; export { AddCart } from './icons/add-cart'; export { AlignBottom } from './icons/align-bottom'; export { AlignCenter } from './icons/align-center'; export { AlignLeft } from './icons/align-left'; export { AlignRight } from './icons/align-right'; export { AlignTop } fro...
import 'custom-event-polyfill' import VueThrottleEvent from 'vue-throttle-event' const $combination = require('js-combinatorics').combination; const VueCollision = { install (Vue, options = { globalTriggers: ['resize', 'scroll'] }) { // setup an empty window group array VueCollision._windowGroup = [] //...
import React, { Component } from 'react'; import { AppRegistry, Text, View, TouchableOpacity, ListView, ActivityIndicator, AsyncStorage, ToastAndroid, Linking, } from 'react-native'; import Camera from 'react-native-camera'; import Icon from 'react-native-vector-icons/FontAwesome'; import Modal from ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCal...
var $ = require('jquery'); var onReady = require('kwf/commonjs/on-ready'); var historyState = require('kwf/commonjs/history-state'); var getKwcRenderUrl = require('kwf/commonjs/get-kwc-render-url'); var statistics = require('kwf/commonjs/statistics'); var formRegistry = require('kwf/commonjs/frontend-form/form-registry...
// const { indexOf } = require("lodash"); // const { get } = require("jquery"); var imagesDropZone = new Dropzone("#product-images-dropzone", { addRemoveLinks: true, // maxFiles: 4, acceptedFiles: 'image/*', // maxFilesize: 5, autoProcessQueue: false, removedfile: function (file) { var ...
// License: MIT // Dynamic CGI serving using dynamic path imports for // CGI supporting executable for Interpreted languages Embedded Distribution // Contribution: 2018 <NAME> <<EMAIL>> // // Config based Usage - All ways const express = require('express'); const URL = require('url'); const fs = require('fs')...
/** * * The shadowDom / Intersection Observer version of Paul's concept: * https://github.com/paulirish/lite-youtube-embed * * A lightweight YouTube embed. Still should feel the same to the user, just * MUCH faster to initialize and paint. * * Thx to these as the inspiration * https://storage.googleapis.com/...
var request = require("request"); var async = require("async"); function BitbucketPlugin(bot) { var self = this; self.name = "bitbucket"; self.help = "Bitbucket stats plugin"; self.depend = ["cmd", "ignore", "bits", "util"]; self.userRe = /^\w[\w-]*$/; self.repoRe = /^(\w[\w-]*)\/(\w[\w-]*)$/; self.request = ...
// ========================================================================== // Project: Ember Metal // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== require('ember-metal/core'); r...
/** * v0.0.1 * (c) 2018 Baianat * @license MIT */ function icons(name) { return '\n <svg class="dropper-file__icon" viewBox="0 0 24 24">\n <path d="' + iconsPath[name] + '"/>\n </svg>'; } var iconsPath = { folder: 'M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 2...
/** * Javascript adaptation of AffineTransform.ccp from * https://github.com/WebKit/webkit/blob/66e68cd8d7bf4ea1cf52f31ed9cb242f83ea5b57/Source/WebCore/platform/graphics/transforms/AffineTransform.cpp */ /* * Copyright (C) Research In Motion Limited 2010. All rights reserved. * * This library is free softw...
'use strict' const os = require('os'); const async = require('async'); const debug = require('debug')('specify-artifact:chef'); const fs = require('fs-extra'); const path = require('path'); const _ = require('lodash'); const got = require('got'); const flatten = require('flat'); const shortid = require('shortid'); con...
// Copyright 2011 <NAME>, University of San Francisco. 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 copyright notice, this l...
// -------------------------------------------------------------------------------------------------------------------- // // amazon.js - the base class for all Amazon Web Services // // Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/ // Written by <NAME> <<EMAIL>> // // License: http://opensource.org/lice...
import express from 'express'; import http from 'http'; import bodyParser from 'body-parser'; import socketIO from 'socket.io'; import series from 'async/series'; import Deezer from 'deezer-node-api'; import send from './send'; const dz = new Deezer(); let WAITING_FOR_SONG = false; import routes from './routes'; i...
let searchCities = []; let apiKey = "<KEY>"; async function currentWeather(searchCity){ let queryURL = `https://api.openweathermap.org/data/2.5/weather?q=${searchCity}&appid=${apiKey}`; $.ajax({ url: queryURL, method: "GET" }).then( ( response ) => { let currentData = { ...
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'emotion'; import { Icon, Modal, Input, Checkbox, Radio, Tooltip, Button, Select } from 'antd'; import { FormBuilder, Validators, FieldGroup, FieldControl } from 'react-reactive-form'; import get from 'lodash/get'; import styles from './...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React from "react"; // reactstrap components import { Button, Form, TabContent, TabPane, NavItem, NavLink, Nav, } from "reactstrap"; //materialui components import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import TextField from "@material-ui/core/TextField"; cons...
var _ = require('underscore'); var async = require('async'); var google = require('googleapis'); var key = require('rcpol-google-key.json'); const VIEW_ID = 'ga:128522305'; module.exports = function(Identification) { Identification.accessCount = function(cb) { var jwtClient = new google.auth.JWT(key.client_e...
import React from 'react' import { connect, useDispatch } from 'react-redux' import { signIn, resetPassword, signInWithPhone } from '../../store/Actions/AuthActions' //eslint-disable-next-line import { backDrop, showDialog } from '../../store/Actions/UIActions' import { Redirect } from 'react-router-dom' import firebas...
const Web3 = require("web3"); const { expectRevert, time, ether, expectEvent } = require('@openzeppelin/test-helpers'); //require('OniTokenGetArtifacts'); require('dotenv').config(); const HDWalletProvider = require('@truffle/hdwallet-provider'); const fs = require('fs'); const mnemonic = fs.readFileSync('.secret')....
'use strict'; exports.__esModule = 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 ('value' in descriptor) descriptor.writab...
import AgoraRTC from 'agora-rtc-sdk-ng'; AgoraRTC.setLogLevel(process.env.AGORA_LOG_LEVEL || 0); const TOAST_TIMEOUT = 5000; class Conference { state = { hasAudioEnabled: false, hasCameraEnabled: false, videoEncoding: '1080p_2', audioEncoding: 'high_quality_stereo', audioDevice: 'default', ...
import './BarSort.less'; import React, { useRef, useState, useEffect, Fragment } from 'react'; import PropTypes from 'prop-types'; import { classNames, flattenObject, removeObjectEmptyKeys, searchNestedObject, } from '../../../../../utils'; import UI from '../../../../../ui'; import * as _ from 'lodash'; fun...
/* eslint no-magic-numbers: "off" */ import { LoremIpsum, loremIpsum } from 'lorem-ipsum'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import ReactScrollToBottom, { StateContext } from 'react-scroll-to-bottom'; import classNames from 'classnames'; import createEmotion from '@emotion/css/...
const _ = require('lodash'); const dot = require('dot'); const MarkdownIt = require('markdown-it'); const ContextExtensions = require('./contextExtensions'); const log = new (require('lognext'))('Renderer'); const ABS_PATH_REGEX = /(<\s*(?:a|img|script|link)\s+.*?(?:href|src)=['"])(\/.*?['"].*?>)/gim; // Markdown r...
var config = require('./config.json') , log = require('../../logger') , environment = require('../../environment/env') , async = require('async') , path = require('path') , fs = require('fs-extra') , mongoose = require('mongoose') , Event = require('../../models/event') , Observation = require('../../mo...
import React, { Component } from 'react'; import gql from "graphql-tag"; import { Query, Mutation } from "react-apollo"; import { Link } from 'react-router-dom'; const GET_MEMBER = gql` query member($memberId: String) { member(id: $memberId) { _id firstname lastname ...
// Hide popover message document.getElementById("popover-container").style.height = 0; const DribbblishShared = {}; // Get stored hidden sidebar list let appHiddenList = []; try { const rawList = JSON.parse(localStorage.getItem("sidebar-app-hide-list")); if (!Array.isArray(rawList)) throw 0; appHiddenList....
import { ASMError, token, next, ungetToken, currRange, currSyntax, prevRange, setToken } from "./parser.js"; import { Expression, CurrentIP } from "./shuntingYard.js"; // Operand types export const OPT = { REG: 1, // General-purpose register (8/64-bit) - ax, bl, esi, r15, etc. VEC: 2, // Vector register (64/51...
let apiUrl = 'https://faucet.allaboardbitcoin.com' let showRefill = false let ADDR = null let tapAddress = null let audio = new Audio('drop.mp3') let user = null let token = null audio.load() let FBconfig = { apiKey: "<KEY>", authDomain: "faucet.allaboardbitcoin.com", projectId: "faucet-6dcc5", } firebase.initia...
var url = require('url'); var fs = require('fs'); var http = require('http'); var https = require('https'); var crypto = require('crypto'); var util = require('util'); var urljoin = require('url-join'); var _ = require("underscore"); function getFileRealPath(s) { try { return fs.realpathSync(s); } catc...
$(function(){ // 验证码验证 $("#code").blur(function(){ var codeStr = $("#code").val(); if(codeIsError()){ console.log("验证失败"); $("#codeValid").val("false"); }else{ //验证码设定为 false $("#codeValid").val("true"); console.log("验证成功"); } }); //默认开始禁用按钮的 // disable("btn_login",true); }); //验证数据是否正确 f...
"use strict"; function hashCode(str) { var hash = 0; for (var i = 0; i < str.length; i++) { hash = ~~((hash << 5) - hash + str.charCodeAt(i)); } return hash; } function intToRGB(i) { var c = (i & 0x00ffffff).toString(16).toUpperCase(); return "00000".substring(0, 6 - c.length) + c; } function getRan...
class Ball { constructor(collision) { this.collision = collision; this.w = 4; this.h = this.w; this.y = height / 2 - this.h / 2; this.x = width / 2 - this.w / 2; this.oldX = this.x; this.oldY = this.y; this.velX = 6; this.velY = 3.5 + Math.random(); } reset() { this.y = he...
import Coordinates from '../Core/Geographic/Coordinates'; import Extent from '../Core/Geographic/Extent'; function applyOffset(indices, offset) { for (const indice of indices) { indice.offset += offset; } return indices; } function readCRS(json) { if (json.crs) { if (json.crs.type.toL...
var warningData = []; var dataForShow = []; /** * 验证用户输入 * @param {是否显示头部提示信息} boolShowTopMsg * @returns {验证通过true 失败 false} */ function validationAll(boolShowTopMsg, editorCode, saveCallBack) { //没有指定要验证的编辑器就全部校验 if (!editorCode) { vm.errorData.splice(0, vm.errorData.length); //清空数组 war...
import React, { Component } from "react"; import DataSection from "../DataSection"; import Roster from "../Roster"; import { Link } from "react-router-dom"; import ConfirmAbsentees from "../ConfirmAbsentees/index"; import { calculateDashboardCheckinData, calculateDashboardStandupsData, calculateAbsentees } from "...
// required modules const path = require("path"); const webpack = require("webpack"); const StringReplacePlugin = require("string-replace-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const TerserJSPlugin = require("terser-webpack-plugin"); const OptimizeCSSAssetsPlugin = require("o...
const config = require('../config'); exports.findById = (req,res,next)=>{ var course_id = parseInt(req.params.course_id); var exam_id = parseInt(req.params.exam_id); req.getConnection((err, connection)=>{ if(err) return next(err); connection.query("SELECT * FROM course_exam WHERE course_id ...
import React, { useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import Layout from "../layoutAdmin"; import { DataStore } from "@aws-amplify/datastore"; import { Quiz, Subscribers, Questions, Responses } from "../../models/"; import { Breadcrumb, Row, Col, Card, Button, Fo...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { format } from "d3-format"; import { ascending as d3Ascending } from "d3-array"; import { noop, strokeDashTypes, isDefined } from "../../utils"; import { saveNodeType, isHover } from "../utils"; import { getXValue } from "../../utils...
const BLOCK_WIDTH = 10; const BLOCK_YPOS_OFFSET = 15; const MAX_BLOCK_HEIGHT = 10; const BLOCK_COLOR = "#00a0df"; const BLOCK_HIGHLIGHT = "#f5cd5d"; const NUM_BLOCKS = 20; const DELAY_SLIDER_OFFSET_VALUE = 25; const DEFAULT_DELAY_VALUE = 150; const MAX_DELAY_VALUE = 300; // GLOBAL VARIABLE - NEEDS TO BE SHARED BETWEE...
/* Copyright 2015 <NAME> (<EMAIL>) Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
// tagging system Script jQuery('.tagCategory.tagItem').on('click',function(){ console.log(' tagCategory tagItem click '); jQuery('.tagCategory.tagItem').removeClass('selected'); jQuery(this).addClass('selected'); jQuery('.tagListCont .tagListBox').html(''); jQ...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ const path = require("path") const languages = require("./src/data/languages") require("dotenv").config({ path: `.env.${process.env.NODE_ENV}`, }) // const siteMetadata = require('./config/metadata'); modu...
import Delta from 'quill-delta'; import Parchment from 'parchment'; import Quill from '../core/quill'; import logger from '../core/logger'; import Module from '../core/module'; let debug = logger('quill:toolbar'); class Toolbar extends Module { constructor(quill, options) { super(quill, options); if (Array...
// D3 is included by globally by default const width = window.innerWidth, height = window.innerHeight; let scene = new THREE.Scene(); let camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 15000 ); scene.add(camera); // let camera = new THREE.PerspectiveCamera(75, window.in...
// +------------------------------------------------------------------+ // | ____ _ _ __ __ _ __ | // | / ___| |__ ___ ___| | __ | \/ | |/ / | // | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / | // | | |___| | | | __...
/* * # ES-TinyColor : CSS named colors *──────────────────────────────────────────────────────────────────────────── */ import TinyColor from '../classes/tinycolor.js' import {rgbToHex} from '../converters.js' import {hasAlpha} from '../utilities.js' const api = TinyColor.registerFormat('name', { alias: ['toName']...
var Vector2 = require('./lib/Vector2'); var Vector3 = require('./lib/Vector3'); var Vector4 = require('./lib/Vector4'); var Quaternion = require('./lib/Quaternion'); var Matrix3 = require('./lib/Matrix3'); var assert = require('assert'); var ovec2 = new Vector2(); var ovec3 = new Vector3(); var ovec4 = new Vector4();...
'use strict'; // requires const CleanCSS = require('clean-css'); const platform = require('electron-platform'); const utils = require('../utils'); // ========================== // internals // ========================== let _css = ` :host { position: relative; contain: content; flex: none; white-s...
var allegedRC4 = new AllegedRC4(); var base64 = new Base64(); var database = new DataBase(); var generator = new Generatorcontrolcode(); var list = database.getTable("5000CasosPruebaCCVer7",'',0); QUnit.test("Las_5000_pruebas_codigocontrol", function( assert ) { var i; var x; var fecha for(i = 0; i < list...
function rgbToLum(r, g, b) { r /= 255; g /= 255; b /= 255; return r * 0.2126 + g * 0.7152 + b * 0.0722; } function arrToColor(r, g, b, a) { if (typeof a !== 'undefined') return `rgba(${r}, ${g}, ${b}, ${a})`; return `rgb(${r}, ${g}, ${b})`; } function classSet(className, properties, propval) { const el...
import React from 'react'; import { connect } from 'react-redux'; import FormInput from '../common_components/FormInput'; import Select from '../common_components/SelectInput'; import PreviewInput from '../common_components/PreviewInput'; import { editActions } from '../../actions/edit.actions'; import { Link } from "r...
// configure variable start/end here for now var varstart = "\\-\\-"; var varend = "\\-\\-"; var fs = require("fs"); var path = require("path"); var cli = require("commander"); var colors = require("colors"); cool(" _ ", " _ _ _ "); cool(" (_) ", "| |(_) (_) _ ...
/* Initializers */ var imagesAvailable = 6; var currentImage = 6; var lazyLoadInstance = new LazyLoad({ elements_selector: ".lazy" // ... more custom settings? }); var pluginspreparer = function () { "use strict"; $(window).load(function () { setTimeout(function () { $("body").addC...
const axios = require('axios'); const csvParser = require('csv-parser'); const stripBom = require('strip-bom-stream'); var iconv = require('iconv-lite'); var XLSX = require('xlsx'); var AWS = require('aws-sdk'); AWS.config.update({region:'eu-west-1'}); var sqs = new AWS.SQS({apiVersion: '2012-11-05'}); async fu...
var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i) }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i) }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i) }, Opera: function() { re...
import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, Text, View, Animated, TouchableWithoutFeedback, TextInput, Dimensions } from 'react-native'; import { Icon } from 'react-native-elements'; import * as Animatable from 'react-native-animatable'; import Wo...
const fs = require("fs"); const path = require("path"); const Timer = require("./Timer"); const Discord = require("discord.js"); const CreaturesModel = require("../../Models/CreaturesModel"); class Tame { get cacheTime() { return 60 * 60 * 24 * 3 * 100; } constructor(messageAcc...
import { Container } from '@material-ui/core'; import React, { useState } from 'react'; import { form, TextField, Button } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; // import { getDetailedObj, updateUserDetails } from "../../store/userStore/userFormSlicer"; import { getDetailedObj...
var a = document.getElementById("1"); function playAudio1() { a.play(); } var b = document.getElementById("2"); function playAudio2() { b.play(); } var c = document.getElementById("3"); function playAudio3() { c.play(); } var d = document.getElementById("4"); function playAudio4() { ...
const os = require('os'); const fs = require('fs'); const path = require('path'); const zlib = require('zlib'); const crypto = require('crypto'); const { pipeline } = require('stream'); const JSONStream = require('JSONStream'); const request = require('request'); const waterfall = require('async/waterfall'); const queu...