text
stringlengths
5.97k
41.2k
/* Messages are stored in a Messages collection as follows: { to: recipient, from: sender, createdAt: Date() instance } Friend relationships are stored in a Friends collection as follows: { username: This is you, friendname: This is your friend. requestStatus: accepted/sent/received/removed newMessageC...
// Module dependencies const mongoose = require('mongoose'), Customer = require('../models/customer'), State = require('../models/state'), City = require('../models/city'), Taluka = require('../models/taluka'), Qualification = require('../models/qualification'), WorkArea = require('../models/wor...
function searchSubmit(form,db){ var type_options = ["journal","travel notes","AW's journal","journal index","travel accounts","itinerary"]; let formData = new FormData(form); let query = Object.create(null); query.keyword = formData.get('keyword'); query.entry_type = formData.getAll('entry_type').map(x=>type_...
import $ from 'jquery'; import Snap from 'snapsvg-cjs'; const axios = require('axios'); const ExtensionId = 'MarkupExtension'; export default class MarkupExtension extends window.Autodesk.Viewing.Extension { constructor(viewer, options) { super(options); this.viewer = viewer; this.keyPress = null; t...
var Q = require('Q'); var axios = require('axios'); var sha256 = require('fast-sha256'); var Immutable = require('immutable'); var interpId = 'fda006f4779e4d1a87f130406418d7df'; var ERROR = undefined; var EMPTY = Immutable.Seq(); var PLATFORM_IMPL_URL = 'http://millstonecw.com:11739/module/cc9a4b26e69e60901d521fcdc027...
import React from 'react'; import { connect } from 'dva'; import {Card, Row, Col, List, message, Modal} from 'antd'; import InfiniteScroll from 'react-infinite-scroller'; import PageHeaderWrapper from "@/components/PageHeaderWrapper"; import IndexList from '@/components/SearchPage/indexList'; // 指标组件 import IndexListOn...
const { Client, MessageEmbed } = require('discord.js-self'); const gui = require("../module/gui"); const client = new Client(); const settings = require('../module/selfbot.settings.js'); const moment = require("moment"); const consoleTitle = require("console-title"); const time = moment().format("HH:mm"); require("dote...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy o...
import Vue from 'vue' import axios from 'axios' import mixins from './xmap-mixins' import { LMap, LTileLayer, LMarker, LPopup, LPolyline, LTooltip } from 'vue2-leaflet' import L from 'leaflet' import { latLng, icon } from "leaflet"; import 'leaflet/dist/leaflet.css'; import Vue2LeafletPolylineDecorator from 'vue2-leafl...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import React, { useState, useRef, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { GLOBALTYPES } from '../redux/actions/globalTypes'; import { createPost, updatePost } from '../redux/actions/postAction'; import Icons from './Icons'; import { BiMinus, BiTrash, BiImageAdd } from ...
var ItinFlights = []; var ItinHotels = []; var ItinFood = []; var ItinActivities = []; var presetActivities = ["Movies", "Museums", "Landmarks & Historical Buildings", "Shopping", "Tourist Attractions", "View Points", "Zoos", "Nightlife", "Active Life", "Beauty and Spas"]; var randomSize = 10; $(document).ready(funct...
const Discord = require('discord.js'); const client = new Discord.Client(); const ayarlar = require('./ayarlar.json'); const chalk = require('chalk'); const moment = require('moment'); var Jimp = require('jimp'); const { Client, Util } = require('discord.js'); const fs = require('fs'); const db = require('quick.db'); c...
import React from "react"; import Loading from "react-loading-animation"; import Snackbar from "material-ui/Snackbar"; import PropTypes from "prop-types"; import { Button } from "react-bootstrap"; import { withStyles } from "@material-ui/core/styles"; import { Map, CircleMarker, TileLayer, Popup } from "react-leaflet";...
#!/usr/bin/env node // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; const os = require('os'); const fs = require('fs'); const path = require('path'); const glob = require('glob'); const ...
/* @author <NAME> */ // Performance may improve by disabling 'friendly error system' p5.disableFriendlyErrors = true; // Create a small buffer for window marginal, as some browsers may not like full screen const WINDOW_SCALE = .99; const BG_COLOR = 0; const OSC_RCOLOR = 40; // Useful to lower volume of Tonejs, if i...
/* * Administrator UI specific Javascript functionality. * * In particular, contains administrator UI specific dynamiclist functions * required by formalutils.js. * * (C) Copyright <NAME>, 2006-2008. All Rights Reserved. */ /* -------------------------------------------------------------------------- * P...
let fs = require('fs'); let rootPath = require('electron-root-path').rootPath; const xlsxFile = require('read-excel-file/node'); // get today date return 2021-02-25(Thu) function getTodayDate() { // Date 2021-02-25-17:45:34 Thu // year = splitDate[3] "2021" // month = splitDate[1] "Feb" // weekDay = sp...
#!/usr/bin/env node /* jshint esversion: 8,-W097, -W040, node: true, expr: true, undef: true */ const /* dependencies */ [ fs, readline, https, { spawn } ]= [ "fs", "readline", "https", "child_process" ].map(p=> require(p)); const /* helper for coloring console | main program params */ colors= { e: "\x1b[38;2;2...
"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...
// Copyright 2016 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import { CommandBuilder } from 'components/commands/command_builder.js'; import { Menu } from 'components/menu/menu.js'; import { VehicleModel ...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______ ______ ______ __ __ __ ______ /\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\ \ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/ \ \_____\ \ \_____\ ...
'use strict'; const BOLEX = { angle : 133, prism : 0.8, iso : 100, fstop : 5.6, expected : 530 }; const STATE = { dir : true, exposure : 530, //always ms delay : 0, scale : 'ms', delayScale : 'ms', counter : 0, sequence : false, advanced : 0 }; //functions window.frame = null; window.getState = null; wind...
//counters let guesses = 0; //how many guesses made let hints = 0; //how many hints given let cheats = 0; let i = 0; //which question we're on let quest = []; //array of question objects let time = 0; //starts with first click let startTime = 0; let endTime = 0; let markers = []; //all the places we've covered...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSignAllowed = isSignAllowed; exports.sign = sign; exports.findIdentity = findIdentity; exports.findIdentityRawResult = exports.createKeychain = exports.downloadCertificate = exports.reportError = exports.appleCertificatePrefixes =...
/************************************************************************************************************************************************************************ Version: 1.0.1 created by Scrounger Dieses Skript erzeugt einen json string um den Netzwerk Status aller Geräte des Unifi Adapters mithilfe des Mater...
import { TileMap } from "../graphics2d/TileMap"; import { id } from "../html/attrs"; import { resizeCanvas } from "../html/canvas"; import { hide, show } from "../html/ops"; import { Canvas } from "../html/tags"; import { EventedGamepad } from "../input/EventedGamepad"; import { ScreenPointerControls } from "../input/S...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbsolutePositionStateManager = void 0; var _litElement = require("lit"); function _typeof(obj) { if (typeof Symbol === "function" && babelHelpers.typeof(Symbol.iterator) === "symbol") { _typeof = function _typeof(obj) { ...
/** * @author <NAME> */ /** * Module Dependencies */ var SerialPort = require('serialport').SerialPort, sys = require('sys'), events = require('events'); /** * constants */ var PIN_MODE = 0xF4, REPORT_DIGITAL = 0xD0, REPORT_ANALOG = 0xC0, DIGITAL_MESSAGE = 0x90, START_SYSEX = 0xF0, ...
import React from 'react'; import moment from 'moment'; import BigNumber from 'bignumber.js'; // Import Constants and Actions import config from '../app.config'; import { updateTransactionList, updatePendingTransactions, updateNrgPrice, updateNrgLimit, } from '../constants/transactions'; import NRG_MULTIPLIER ...
/*! * File Created: February 2, 2012 * Created by <NAME> for rendering org chart in HTML5 Canvas * */ /** * utility to help complete some basic tasks */ // var dpr = window.devicePixelRatio || 1; // because the chart is optimized for 800px * 600px, set scale factor by that var dpr = Math.min(window...
import React, { useRef } from 'react'; import { PropTypes } from 'prop-types'; import { DotsVerticalRounded } from '@styled-icons/boxicons-regular/DotsVerticalRounded'; import { Envelope } from '@styled-icons/boxicons-regular/Envelope'; import { Planet } from '@styled-icons/boxicons-regular/Planet'; import { Receipt } ...
`use strict`; let examType= localStorage.getItem('exam'); let qDiv=document.getElementById("questionDiv"); let resultButt= document.getElementById('showResult'); let question=document.getElementById("question"); let answer1=document.getElementById("spanAns1"); let answer2=document.getElementById("spanAns2"); let answe...
// copyright <NAME>. MIT license. /* global THREE, zoomObjectBoundingSphere, divMessage, eventResetAll, scene, mesh, meshPlane, controls */ // jshint esversion: 6 // jshint loopfunc: true const GCO = {}; GCO.contoursLength = 16; GCO.constant = 0; GCO.tolerance = 0.01; THREE.Vector3.prototype.equals = function(v, t...
// TODO: Failover integration for tokens. // TODO: Fix reload when requesting category list // TODO: Token support for random category queries const crypto = require("crypto"); const types = { 1: "boolean", 3: "multiple" }; const difficulties = [ "easy", "medium", "hard" ]; var Database = {}; Database.tokens = []; va...
//Retrieve the countries in ajax and return an array of value //The selectType change the value key : //for select input : {"value":"FR", "text":"France"} //for select2 input : {"id":"FR", "text":"France"} function getCountries(selectType) { var result = new Array(); $.ajax({ url: baseUrl+'/'+moduleId+"/opendata/g...
import domUtils from "domutils"; import htmlparser2 from "htmlparser2"; import hljs from "highlight.js"; import { mdsvex } from "mdsvex"; import katex from "katex"; // Preprocessor that converts markdown into Docstring // svelte component using mdsvexPreprocess export const docstringPreprocess = { markup: async ({ co...
const check = require('check-types'); const app = require('../app'); const model = require('./model.js'); const setupSql = app.locals.db.setupSqlCommand; const sql = require('./sql.js'); const flow = app.locals.flow; const flame = app.locals.flame; const log = app.locals.log; const db = app.locals.db; const config = ap...
var phantom = require('phantom') , _ = require('lodash') , util = require('./util.js') , zlib = require('zlib'); var COOKIES_ENABLED = process.env.COOKIES_ENABLED || false; var PAGE_DONE_CHECK_TIMEOUT = process.env.PAGE_DONE_CHECK_TIMEOUT || 50; var RESOURCE_DOWNLOAD_TIMEOUT = process.env.RESOURCE_DOWNLOAD_TIM...
import React from 'react'; import {withStyles} from '@material-ui/core/styles'; import clsx from 'clsx'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Toolbar from '@material-ui/core/Toolbar'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core...
import React, { useState, useEffect, useContext } from 'react'; import styled from 'styled-components'; // components import RedButton from '@components/buttons/RedButton'; import { Button, InputField, Stack, Tag, Card, CardSection, Textarea, Popover, ListChoice, Alert, InputGroup, Select, Ra...
// // Routino (extras) fixme web page Javascript // // Part of the Routino routing software. // // This file Copyright 2008-2014, 2019, 2020 <NAME> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Softwa...
import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import cx from 'classnames'; import { Link } from 'react-router-dom'; import get from 'lodash/get'; import * as actions from './action'; import { commonP...
var AmphipodType; (function (AmphipodType) { AmphipodType[AmphipodType["A"] = 0] = "A"; AmphipodType[AmphipodType["B"] = 1] = "B"; AmphipodType[AmphipodType["C"] = 2] = "C"; AmphipodType[AmphipodType["D"] = 3] = "D"; })(AmphipodType || (AmphipodType = {})); var AmphipodSpecie = /** @class */ (function (...
import { debounce } from 'lodash'; import { addToken } from 'src/util'; import qs from 'querystring'; import kcService from '../api/service'; import { NODE_TYPE, NODE_VISIBLE_TYPE, NODE_VIEW_TYPE, NODE_OPERATOR_TYPE, ROOT_PERMISSION_TYPE, EXECUTE_RESULT, EXECUTE_ERROR_MESSAGE, NODE_STATUS, PICK_TYPE, ...
var GitHubApi = require('github'); var path = require('path'); var util = require('util'); var Promise = require('bluebird'); var _ = require('lodash'); var fs = Promise.promisifyAll(require('fs-extra')); /** * Make a request to sync the contents of a flat directory to a repo on GitHub. * * @param options Options ...
'use strict'; // #region imports const { ArrayIsArray, ArrayPrototypeSort, ObjectCreate, ObjectEntries, ObjectFreeze, ObjectKeys, ObjectSetPrototypeOf, RegExpPrototypeExec, RegExpPrototypeTest, SafeMap, SafeSet, StringPrototypeEndsWith, StringPrototypeReplace, Symbol, uncurryThis, } = pri...
// 本js在jquery后加载 var charset = document.charset; var userAgent = navigator.userAgent.toLowerCase(); var is_opera = userAgent.indexOf('opera') != -1 && opera.version(); var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3); var is_ie = (userAgent.indexOf('msie') != -1 && !i...
/* eslint-disable require-atomic-updates */ require('@ministryofjustice/module-alias/register-module')(module) const router = require('express').Router() const jsonPath = require('jsonpath') const deepEqual = require('fast-deep-equal') const nunjucksConfiguration = require('~/fb-runner-node/middleware/nunjucks-confi...
/* global KeyboardEvent */ // TODO: jshint doesn't know about KeyboardEvent "use strict"; const util = require('./util'); const EventEmitter = require('events').EventEmitter; // list of private properties and methods const _el = Symbol('element'); const _registered = Symbol('registeredEvents'); const _addDOMListener ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
// Line-Chart micro charts implementation. // @file chartline.js // // Copyright (c) by <NAME>, http://www.mathertel.de // This work is licensed under a BSD 3-Clause license. // // * 25.04.2020 improved vertical scaling // * 07.08.2020 show values optional. // * 21.03.2021 more flexibility in adding elements. // st...
function hex_sha1(s) { return binb2hex(core_sha1(str2binb(s), s.length * chrsz)); } function b64_sha1(s) { return binb2b64(core_sha1(str2binb(s), s.length * chrsz)); } function str_sha1(s) { return binb2str(core_sha1(str2binb(s), s.length * chrsz)); } function hex_hmac_sha1(key, data) { return binb2hex(core_hmac...
$(document).ready(function() { $('select').material_select(); /* $("html, body").animate({ scrollTop: 400 }, "slow");*/ //$("html, body").animate({ scrollTop: $(document).height() }, "slow"); }); /*$(document).on('click', 'a[href^="#"]', function(e) { /*e.preventDefault(); alert("hi"); $('html, body')....
/* TODO: - test fusion performance - test with payload - measure index size - streaming sort, like merge sort! may be good for disk based. - more compact than btree - explain evolution from cracking */ var CELL_W = 25; var CELL_H = 20; var LEAF_CAPACITY = 11; var NEXT_BUCKET_ID = 1; function assert(pred) { if (!pred)...
'use strict'; var path = require('path'); // Option types var MASK_TYPE = 3; var MASK_MULT = 4; var OPT_BOOL = 1; var OPT_STRING = 2; var OPT_COUNT = MASK_MULT | OPT_BOOL; var OPT_ARRAY = MASK_MULT | OPT_STRING; function Arghs (config) { if (!(this instanceof Arghs)) { return new Arghs(config); } // Internal s...
// JS Functions to be used in Medical Hx -> Radiology Tab function addNewRow(cnt){ $('#lab_display_table').css('opacity','0.4'); var preCnt = cnt; var imgObj = $("#add_row_"+cnt); imgObj.attr('title','Delete Row'); imgObj.attr('class','glyphicon glyphicon-remove'); imgObj.removeAttr('onclick'); imgO...
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ const child_process = require('child_process'); const fs = require('fs'); const path = require('path'); const {promisify} = require('util'); const readFileAsync = promisify(fs.readFile); const writeF...
function to_json(workbook){ var result = {}; workbook.SheetNames.forEach(function(sheetName) { var rObjArr = XLSX.utils.sheet_to_row_object_array(workbook.Sheets[sheetName]); if(rObjArr.length > 0){ result[sheetName] = rObjArr; } }); return result; }; function to_csv(workbook) { var resul...
import React, { useState } from "react"; import styled from "styled-components"; //import { Tabs, Panel, useTabState } from "@bumaga/tabs"; import parse from "html-react-parser"; // import { motion } from "framer-motion" import { Tabs, Tab, TabList, TabPanel } from "react-tabs"; import Container from "../../container";...
const { keys, times } = require('lodash'); const { IcpLabels, Ilks } = require('../core/core'); const { snkey, Logger, dgkey } = require('../db/database'); // const { LastEstLoc } = require('../../keri/eventing/util') const { Prefixer } = require('../core/prefixer'); const { Nexter } = require('../core/nexter'); const ...
"use strict"; var Event = require("./event.js"); var fs = require("fs") const DH_LINEUP_POSITION = 0; function parseGameFile(gameFile) { let gg = JSON.parse(fs.readFileSync(gameFile, 'utf8')); return parseGames(gg); } function parseGames(games) { let ret = new Object; ret.description = games.description; ...
/// <binding AfterBuild='Publish-Files' /> /* This file in the main entry point for defining Gulp tasks and using Gulp plugins. Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 */ var gulp = require('gulp') , argv = require('yargs').argv , changed = require('gulp-changed') , clean =...
/* global enemyService */ function EnemyService(gameboard, enemyMovementMode) { // Initialize Blinky. var blinkyScatterModeFixedPos = 40; var blinkyHTML = "<img height='20' width='20' src='images/blinky.png' class='horizontal-block'>"; this.blinky = new Enemy( blinkyHTML, ...
'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]; } } }...
/* eslint-disable react/jsx-props-no-spreading */ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { useForm } from 'react-hook-form'; import styled, { css, useTheme } from 'styled-components'; import { useRouter } from 'next/router'; import Image from 'next/image'; import { FiEdit3, ...
import { Table, Input, InputNumber, Popconfirm, Form,Tooltip, Divider, Modal, Tree, Button, Row, Col, Icon, Select, Alert, Tag, message, Card } from 'antd'; import { connect } from 'dva'; import styles from './style.less'; import CreateForm from "@/components/CreateForm" import moment from "moment" import SearchBox f...
var THREE = require('three'); var Iconeezin = require('iconeezin'); var MonumentRoom = function( geom, materials ) { THREE.Object3D.call(this); this.kionokranoMesh = geom['delay/models/kionokrano']; this.podiumObject = geom['delay/models/podium']; // Prepare materials this.wallsMaterial = materials.wallsMateri...
var spiraling = false; var rotation = 0; $(function() { var WIN = $(window); var BODY = $("body"); var sections = $('.js-section'); var spiral = $('.js-spiral') var _winW; var _winH; var smallScreen; var landscape; var aspect = .618033; var axis = .7237; var spiralOrigin; var colorsArray = [];...
let set1, set2, orders, drawMode, setPick; const introductionDiv = document.querySelector('#introduction'), questionsDiv = document.querySelector('#questions'), directionsDiv = document.querySelector('#directions'), setsDiv = document.querySelector('#sets'), cyclesDiv = document.querySe...
/** * Goals for the dashboard module. * To replace the current device_overview module with inline-edit options & * read the current device values w/o modifying the devices current state. * * @author <NAME> (LabJack Corp, 2014) * @author <NAME> (LabJack Corp, 2013) * * Configuration: * No configuration of the ...
"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)...
'use strict'; // external imports require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.find"); require("core-js/modules/es.array.iterator"); require("cor...
/* * 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")...
/* * * * (c) 2010-2020 <NAME> * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import defaultOptions from './MapViewOptionsDefault.js'; import Projection from './Projection.js'; import U from '../Core/Utilities.js'; var ...
import React, { useEffect, useState } from "react"; import { Input as Uploader } from "rsuite"; import { useGlobal } from "../store"; import { loadJson } from "../utils/coreHelpers"; import { Button, Card, CardHeader, CardBody, FormGroup, Form, Container, Row, Col, ButtonGroup, Input, InputGr...
//小卡片mouseover $(document).on('mouseover', '.dropdown', function () { $(this).find(".dropdown-menu").show() }); //小卡片mouseout $(document).on('mouseout', '.dropdown', function () { $(this).find(".dropdown-menu").hide() }); // ajax定时轮训系统状态 function monitor_system_status() { $.ajax({ type: 'get', ...
import Delta from 'quill-delta'; import { MarkdownToQuill } from 'md-to-quill-delta'; import EventBus from 'utils/eventbus'; import { Attributor, ClassAttributor, EmbedBlot, Scope, // StyleAttributor, BlockBlot, } from 'parchment'; import TurndownService from '../../../utils/turndown'; import { BlockEmbed }...
"use strict"; const fs = require ('fs') function regexAll (text, array) { for (let i in array) { let regex = array[i][0] regex = typeof regex == 'string' ? new RegExp (regex, 'g') : new RegExp (regex) text = text.replace (regex, array[i][1]) } return text } let ccxtjs = fs....
import React, { useState, useEffect } from "react"; import { Link, useHistory } from "react-router-dom"; import axios from "axios"; import $ from "jquery"; import Cropper from "cropperjs"; import "cropperjs/dist/cropper.min.css"; import { storage } from "../../firebase"; //Queries import { uploadPostImage } from "../....
// **************************************************************** // Copyright <NAME> & <NAME>, 1984, 2010–2020 // Licensed under the MIT license. // Laboratory experiment 10.6 // i.t. young // Sunday, 22 October 2017 // // **************************************************************** // checked Sunday, 22 Octobe...
const is_touch = ("ontouchstart" in document.documentElement) ? true : false; var websock; const E_TAB = 0; const E_BOX = 1; const E_TEXT = 2; const E_RADIO = 3; const E_BUTTON = 4; const E_SWITCHER = 5; const E_APPLIER = 6; const E_FIELD = 7; const E_DATE_FIELD = 8; const E_TIME_FIELD = 9; const E_RANGE = 10; cons...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dropdown = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _DomHandler = _interopRequireDefault(require("../utils/DomHandler")); var _ObjectUtil...
var SceGxmTextureType = { Swizzled: 0x00000000 | 0, Cube: 0x40000000 | 0, Linear: 0x60000000 | 0, Tiled: 0x80000000 | 0, SwizzledArbitrary: 0xA0000000 | 0, LinearStrided: 0xC0000000 | 0, CubeArbitrary: 0xE0000000 | 0 }; var SceGxmTextureBaseFormat = { U8 : 0x00000000 | 0, ...
var SIGN_REGEXP = /([yMdhsm])(\1*)/g; var DEFAULT_PATTERN = 'yyyy-MM-dd'; function padding(s, len) { var len = len - (s + '').length; for (var i = 0; i < len; i++) { s = '0' + s; } return s; }; export default { getQueryStringByName: function(name) { var reg = new RegExp("(^|&)" + name + "=([^...
import { EditorState, Modifier, RichUtils, SelectionState, AtomicBlockUtils } from '@wix/draft-js'; import { cloneDeep, flatMap, findIndex, findLastIndex, countBy, debounce, times } from 'lodash'; import { TEXT_TYPES } from '../consts'; export function createSelection({ blockKey, anchorOffset, focusOffset }) { retur...
var $jq = jQuery.noConflict(); var down_arrow_symbol = "&#9660;"; var up_arrow_symbol = "&#9650;"; var board; var topbar; var settings_menu; var staff_btn; var watched_threads_btn; var settings_arr = []; var current_staff; var lightbox_css_added = false; var dropdown_div_created = false; var qr_enabled = false; var m...
var sqlite3 = require('sqlite3').verbose(); var db = new sqlite3.Database('/media/crowDriver/crowBase.db'); var check; device_mapping_length = 0; birds = null; stages = null; trials = null; deviceMappings = {}; // // Initialize the Database tables // db.serialize(function() { // Creates Birds Table (if it doesnt al...
import React from 'react'; import PropTypes from 'prop-types'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import CircularProgress from 'material-ui/CircularProgress'; import MenuItem from 'material-ui/MenuItem'; import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'; import SelectFiel...
var sys = require('sys'); var exec = require('exec-queue'); var Slack = require('slack-client'); var Config = require('./cm-config'); var logger = require('./cm-logger'); var CM = { speechQueue: [], buzzerQueue: [], audioQueue: [], moveQueue: [], lcdQueue: [], remoteCommands: [], detectSoun...
require('events').EventEmitter.prototype._maxListeners = 100; var _ = require('lodash'); var server = require('http').Server(); var io = require('socket.io')(server); var mysql = require('mysql'); var async = require("async"); var connection = mysql.createConnection({ host: 'localhost', user: 'root', passwo...
import React from 'react' import {Link} from 'gatsby' import SEO from '../components/seo' const generateUniqueId = (() => { let currentID = 0; return () => { currentID++; return currentID } })(); export class NumberState { /** * * @param {number}oldX * @param {number}oldY * @param {number}...
var app = { // page element ids content_id: "#content", sidebar_id: "#sidebar", edit_id: "#edit", back_to_top_id: "#back_to_top", theme_id: "#theme", loading_id: "#loading", error_id: "#error", // display elements edit_button: false, save_progress: true, // 保存阅读进度 // initialize function run:...
const color = d3.scaleSequential(d3.interpolateReds).domain([0,8]); const colorActiveSelection = "#00bfff"; const format = d3.format(","); function getRoster() { return $.get('https://canvas-twill-viz.herokuapp.com/twill/roster'); } function getTopicList() { return $.get('https://canvas-twill-viz.herokuapp.co...
/** * Created by JAIR on 26/03/2017. */ function initFormPluginsEvents() { $.datepicker.regional['es'] = { closeText: 'Mostrar', currentText: 'Hoy', monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], ...
import React from "react"; import { navigate } from 'gatsby-link'; import Loading from "../Loading"; import styled from "styled-components"; import Package from "./Package"; import Event from "./Event"; import Customer from "./Customer"; import Summary from "./Summary"; import dots_sm from "../../assets/images/dots-sm....
// Create hmac hasher const Buffer = global.Buffer = require('buffer').Buffer const Base32 = require('thirty-two') const sha1 = (data, data2) => sha1Creator.create().update(Buffer.concat([data, data2])) class Hmac { constructor(salt, base32, config) { if(base32) salt = Base32.decode(salt.replace(/\W+/g, ...
// const tiles = 100; var tiles = [] var bag = [] var player1 = [] var player2 = [] var player1Point = 0 var player2Point = 0 var board = Array(15).fill({letter: 0}).map(x => Array(15).fill({letter: 0})) var playerOneTurn = true var boardEl = document.getElementById("board") var player1Deck = document.getElementById(...
/* eslint space-infix-ops: 0, space-before-function-paren: 0, indent: 0, no-trailing-spaces: 0 */ /* global Image, requestAnimationFrame, Stats, $ */ // eslint-disable-next-line // function preload() { // } // // // eslint-disable-next-line // function setup() { // createCanvas(900, 1000).parent('game') // } // // /...
'use strict'; const { getJSON } = require('./requests'); const { uniq, promiseSeries, reduceChunk, groupBy, indexBy, sleep } = require('./utils'); /** * Converts array-like objects into arrays on classinfo response. This modifies the original object. * @private * @param {ClassInfo} classinfo - Classinfo. * @retur...