text
stringlengths
3.22k
29.5k
import React, { useState, useEffect } from 'react' import { useHistory } from 'react-router-dom' import { Alert } from 'react-bootstrap' import { FiUser, FiLock, FiEye } from 'react-icons/fi' import { getUsuarios } from '../../../services/getUsuarios' import { getPoliticas } from '../../../services/getPoliticas' import...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Storage = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === S...
const parseString = require('xml2js').parseString const processData = { init: function(xml) { let parsedData parseString(xml, (err, result) => { parsedData = result }) return parsedData }, result: function(data, parsedData) { data.resultNumber = Number(parsedData.aquabrowser.meta[0]...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
/** Copyright 2016 <NAME> 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, software dist...
// Copyright 2018 <NAME>, Inc. and Contributors // // Licensed under the Dgraph Community License (the "License"); you // may not use this file except in compliance with the License. You // may obtain a copy of the License at // // https://github.com/dgraph-io/ratel/blob/master/LICENSE import React from "react"; i...
'use strict'; const mysql = require('mysql'); var os = require("os"); var async = require('async'); var spawn = require('child_process').spawn; const config = Object.freeze(require('plain-config')()); const bunyan = require('bunyan'); const sleep = require('sleep'); global.logger = bunyan.createLogger(config.getBuny...
'use strict'; const debugCO2 = require('debug')('sensor:co2'); // CMD_GET_SENSOR = [ 0xff, 0x01, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x79] // CMD_CALIBRATE = [ 0xff, 0x87, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2 ] const CMD_MEASURE = Buffer.from([0xff, 0x01, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63]); const IOCONTROL...
const util = require(`generator-team/generators/app/utility`); const fs = require('fs'); const os = require('os'); const url = require('url'); const cheerio = require('cheerio'); const request = require(`request`); function tryFindBuild(account, teamProject, token, type, target, callback) { 'use strict'; fin...
"use strict"; var through = require('through2').obj; var pump = require("pump"); var pumpify = require("pumpify").obj; var split = require("split2"); var zlib = require("zlib"); var fastCsv = require("fast-csv"); var write = require("flush-write-stream"); var AWS = require("./leo-aws"); var https = require("https"); va...
const util = require('util'), _ = require('underscore'), request = require('request'), crypto = require('crypto'), VError = require('verror'), md5 = require('MD5') const Yobit = function Yobit(api_key = null, secret = null, verbose = false) { // Set the verbose level this.verbose = verbose this.api_k...
import Dom_ from '../../utility/dom'; import {utils as utils_} from '../../../core/utils/utils'; import {filterSearch as filterSearch_, nofilterSearch as nofilterSearch_} from './search-filter'; import {vec3 as vec3_} from '../../../core/utils/matrix'; import {math as math_} from '../../../core/utils/math'; //get rid...
'use strict'; var path = process.cwd(); var Yelp = require('yelp'); var multer = require('multer'); var upload = multer({ dest: 'uploads/' }); var handlebars = require('handlebars'); var fs = require('fs'); var session = require('express-session'); var Users = require('../models/users.js'); var Nightclubs = require(...
// module for revealing dimensions const dimensions = (function() { const _colWidth = 101, _rowHeight = 83, // the row offset is necessary to vertically center icons because // they have some space above them in the image files _rowOffset = _rowHeight * 0.25, // row offset for collectibles _co...
function ChatRoomMessagesWP(opt) { var defaults = { chatMessageTemplate: "", contentClientID: "", clientID: 0, groupID: 0, roomID: 0, count: 0, enableBBCode: false, displayInline: false, direction: 0, loadingDiv: "", envelopeID: "", pnlInformDialog:"", btnInformDialogClose:"",...
var bigImage; var authDo; var assumeFullMax = false; var viewer; $(document).ready(function () { $(".row-toggle").click(function () { $(this).parents("tr").nextUntil(".row-overview").toggle(); }); $(".metadata-toggle").click(function () { $(this).next("pre").toggle(); }); $(".all-toggle").click(function (...
import React from "react" import Layout from "../components/layout/layout" import SEO from "../components/seo" import styled from 'styled-components' import Slider from 'react-styled-carousel' import { lightBleu } from "../styles/colors" import Head from "../components/home/head" import Section from '../components/h...
/** * Import libraries */ import restify from 'restify'; import path from 'path'; import DebugModule from 'debug'; import { createRequire } from 'module'; /** * Import class libraries */ import logging from './logging.mjs'; import response from './response.mjs'; import vault from './vault.mjs'; import database fro...
/* * This implementation of Google Ad Manager code for mobile web web apps is pure Javascript. It supports: * a kill switch for all banners, * gam:s own lazy loading, * banners of varying height on the same ad slot, * banner that display outside of iframes when requested with post message,...
let VEL_MAX=300; let DAMP=.7 class Vector { constructor(x=0,y=0) { this.x=x; this.y=y; } get len() { return Math.sqrt(this.x*this.x+this.y*this.y); } set len(value) { const fact = value / this.len; this.x*=fact; this.y*=fact; } } cla...
/** * @providesModule Schedule2018Page * @flow */ import React from 'react' import Link from 'gatsby-link' import styled, { css } from 'styled-components' import TitleSection from '../../components/shared/TitleSection' import MaxWidthContainer, { RunningTextContainer } from '../../components/shared/MaxWidthConta...
import React from 'react'; import Layout from '../components/layout'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import List from '@material-ui/core/List'; import Typography from '@material-ui/core/Typography'; import Divid...
function eliminar(numero, description){ let id = document.getElementById("modal-destroy"); cleanAllNodosById(id); let modalFade = document.createElement("div"); modalFade.className = "modal fade"; modalFade.id = "destroyElement"; modalFade.setAttribute("tabindex", "-1"); modalFade.setAttri...
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import * as Utils from '../../utils'; import { PasswordPolicyManager, SecurityManager } from '../../redux'; import PasswordPolicyTypeEnum from...
/** * encage.js * Classes that create private and protected variables * Automatiacally tracks instances from Class * * Copyright (c) <NAME> 2019 * MIT License */ const checkObject = require('./src/checkObject'); const separateStatics = require('./src/separateStatics'); const checkInit = require('./src/checkInit'...
import { storableError } from '../../util/errors'; import { addMarketplaceEntities } from '../../ducks/marketplaceData.duck'; import { convertUnitToSubUnit, unitDivisor } from '../../util/currency'; import { formatDateStringToUTC, getExclusiveEndDate } from '../../util/dates'; import { parse } from '../../util/urlHelpe...
// Input remembered username and check checkbox var checkbox_status = localStorage.getItem('remember_checkbox'); var last_login = localStorage.getItem('remember_login'); if (checkbox_status === 'true') { $('#remember-input').prop('checked', 'checked'); $('#login-input').val(last_login); $('#login-in...
/** * FileWriter -- fast non-streaming file appender for accepting buffered data * * Locks the file when appending to be safe with multiple writers. * Also, it reopens the file periodically, to make it work with logrotate. * * Copyright (C) 2014-2015,2019,2021 <NAME> * Licensed under the Apache License, Version ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports._setCustomCacheDir = exports._REMOTE_REPO_URL = exports._getLastUpdatedFile = exports._getCacheRepoGitDir = exports._clearCustomCacheDir = exports._cacheRepoEnsureToken = exports._CACHE_REPO_EXPIRY = undefined; exports.ensureCacheRe...
const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.DIRECT_MESSAGES, Intents.FLAGS.DIRECT_MESSAGE_TYPING, Intents.FLAGS.DIRECT_MESSAGE_REACTIONS ], partials: ["CHANNEL"] }) /...
/* A memory game Alexa Skill optimized for Echo Show */ 'use strict'; const Alexa = require('alexa-sdk'); const ImageUtils = require('alexa-sdk').utils.ImageUtils; const TextUtils = require('alexa-sdk').utils.TextUtils; exports.handler = function(event, context, callback){ const alexa = Alexa.handler(event, context...
/** * Text methods * @namespace TextMethods */ /** * Cleans text and strips out unwanted symbols/patterns. * * @memberof TextMethods * @param {string} content - the chunk of text we will be operating on * @param {boolean} [filterChars=true] - whether or not we want to filter out single characters * @returns...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray...
import {Card, CardContent, makeStyles} from '@material-ui/core'; import {TextField} from '@material-ui/core'; import {useState, useEffect} from 'react'; import {useDropzone} from 'react-dropzone'; import styled from 'styled-components'; import redeemheader from '../images/redeempage/reedemspace.png'; import previewhead...
/** * Module dependencies */ var util = require('util'); var _ = require('@sailshq/lodash'); /** * flaverr() * * Flavor an Error instance with the specified error code string or dictionary of customizations. * * Specifically, this modifies the provided Error instance either: * (A) by attaching a `code` prope...
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import SectionLoader from '../shared/SectionLoader'; import ShowMoreFooter from '../shared/ShowMoreFooter'; import FlashesStore from '../../stores/FlashesStore'; import UserSessionStore from '../../stores/UserSessi...
const express = require("express"); const app = express(); const fs = require("fs"); const xml2js = require("xml2js"); const crypto = require("crypto"); const streams = {}; const sessions = {}; /** * Accelerated way to calculte a^b mod n * @param {bigint} a * @param {bigint} b * @param {bigint} n */ function ...
/* * Black Duck Hub Plugin for SonarQube * * Copyright (C) 2020 Black Duck Software, Inc. * http://www.blackducksoftware.com/ * * 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 * re...
// Copyright 2016 <NAME>. 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/LICENSE-2.0 // // Unless required by applicable la...
const medias = {audio : false, video : { facingMode : { exact : "environment" } }}, video = document.getElementById("video"), canvas = document.getElementById("canvas"), ctx = canvas.getContext("2d"), ticket_pane = document.getElementById("ticket_pane"), ...
"use strict"; /*loadHarness("client"); var TWUtil = require("../utility.js"); for (let name of Object.getOwnPropertyNames(TWUtil)) { global[name] = TWUtil[name]; } var TWClient = require("../client.js"); for (let name of Object.getOwnPropertyNames(TWClient)) { global[name] = TWClient[name]; }*/ /* TODO 2021: *...
/* * Depends on [D3.js](https://d3js.org/) * * Automatically usable by using <d3> tags in the markdown * by virtue of /plugins/charts/charts.py * *//* ''' References: [Towards reusable charts](https://bost.ocks.org/mike/chart/) [Thinking with joins](https://bost.ocks.org/mike/join/) [General Update Pattern...
var debug = require("debug")("st:geomutil:utils"); var Point = require("./vector"); // Use Pythagoras to find the distance between two points function findDistanceBetweenTwoPoints(point1, point2) { return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)); } // Takes a, b, and c to be ...
import { allowInsecurePrototypeAccess } from "@handlebars/allow-prototype-access"; import { csvParse } from "d3-dsv"; import Handlebars from "handlebars/dist/cjs/handlebars"; import _ from "lodash"; import marked from "marked"; import { assign_to_dev_helper_namespace } from "src/core/assign_to_dev_helper_namespace"; i...
/** * node-zip-stream * * Copyright (c) 2014 <NAME>, contributors. * Licensed under the MIT license. * https://github.com/ctalkington/node-zip-stream/blob/master/LICENSE-MIT */ var inherits = require('util').inherits; var DEFAULT_FILE_MODE = 0100664; var DEFAULT_DIR_MODE = 040755; var BASE_FILE_MODE = 0100000; v...
import React, { useState, useEffect, useRef, Fragment } from 'react'; import PropTypes from 'prop-types'; import { View, Text, StyleSheet, TouchableWithoutFeedback, Animated, } from 'react-native'; const STEP_STATUS = { CURRENT: 'current', FINISHED: 'finished', UNFINISHED: 'unfinished', }; const styles...
/* Global resources for artists and rounds */ var db_api_url = window.location.origin + '/slam/data/'; var resArtists = { path: db_api_url + 'artists', name: 'artists' }; var resRounds = { path: db_api_url + 'rounds', name: 'rounds' }; /* Global variables to cache the data from the db */ var rounds, artists; /** * R...
var Q = require("q"); var _ = require("lodash"); var baked = require("./baked"); (function (Global, undefined) { "use strict"; function els(path, dir) { if (dir) { path = [''].concat(_.compact(path.split('/'))).join('/').replace(/\/[^\/]*$/, ''); } return _.compact(path.split('/')); } func...
const { conversation, Table } = require('@assistant/conversation'); const functions = require('firebase-functions'); const admin = require('firebase-admin'); const moment = require('moment'); const pdfFonts = require('pdfmake/build/vfs_fonts'); const pdfMake = require('pdfmake/build/pdfmake'); const sgMail = require('@...
/** * @Constructor * @variable DockerSandbox * @description This constructor stores all the arguments needed to prepare and execute a Docker Sandbox * @param {Number} timeout_value: The Time_out limit for code execution in Docker * @param {String} path: The current working directory where the current API folder is...
const path = require('path'); const { userDetails } = require('./mockData'); module.exports = { "Users can signup and logout": (browser) => { browser .url('http://localhost:8000') .waitForElementVisible('body', 5000) .click('a.btn.btn-outline-danger.btn-lg') .setValue('input[name=username...
/// <reference types="node" /> "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function re...
"use strict"; /** * @module opcua.address_space * @class AddressSpace */ require("requirish")._(module); var assert = require("better-assert"); var _ = require("underscore"); var UAVariable = require("lib/address_space/ua_variable").UAVariable; var Variant = require("lib/datamodel/variant").Variant; var DataType =...
$(function () { //加载弹出层 layui.use(['form','element'], function() { layer = layui.layer; element = layui.element; }); //触发事件 var tab = { tabAdd: function(title, url, id) { //新增一个Tab项 element.tabAdd('xbs_tab', { title: title, content: '<iframe tab-id="' + id + '" frame...
/* * module policy check * * This module introduces a security-mechanism to prevent two things: * - it prevents security relevant information from leaving * the routers privacy scope. * - and stops unauthorised manipulation of the routers data. * * It does this by introducing so called 'policie...
(function( $ ){ $.fn.dependsOn = function(element, value) { var elements = this; var hideOrShow = function() { var $this = $(this); var showEm; if ( $this.is('input[type="checkbox"]') ) { showEm = $this.is(':checked'); } else if ($this.is('select')) { var fieldValue = ...
'use strict'; var fs = require('fs'); var path = require('path'); var https = require('https'); var http = require('http'); var Utils = require('./util/utils'); var VERSION = (function() { var data = fs.readFileSync(path.join(__dirname, '../package.json')).toString(); return JSON.parse(data).version; })(); var ...
import Vue from 'vue' import VueRouter from 'vue-router' import ChangePassword from '../components/ChangePassword.vue' import ChangeProfile from '../components/ChangeProfile.vue' import PermissionsIndex from '../components/admin/cruds/Permissions/Index.vue' import PermissionsCreate from '../components/admin/cruds/Perm...
import { Object3D, EventDispatcher, Vector3 } from "three" // import { Object3D, EventDispatcher, Vector3, Points, Geometry, ShaderMaterial } from "three" import { loadGLTF } from '../../Core/loadGLTF' // import { MatCapService } from '../../Packages/MatCaps/MatCapService' import SpriteText from 'three-spritetext' ex...
import mongoose from 'mongoose'; import moment from 'moment-timezone'; import { getSession, allowAnyone, authorizedForDomain, requireAdministrator, requireSomeAdministrator, } from './auth'; // import { addForms, addNewForm } from './formTemplates'; import { unsetDomainIfNeeded } from './domains'; import register f...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { List, ListItem } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import { Accordion, AccordionItem } from 'react-sanfona'; import './accordian.css'; import Moment from 'moment'; import { Link } from 'react-router-do...
import React from 'react' import {notification} from 'antd' class SpringText extends React.Component{ componentDidMount(){ this.createText() notification.open({ description: '鼠标移入到文字上,或者鼠标点击屏幕', style:{marginTop:64} }); } componentWillUnmount(){ window.cancelAnimationFrame(this.myReq...
//Dependencies const mysql = require("mysql"); const inquirer = require("inquirer"); const table = require("console.table"); const connection = mysql.createConnection({ host: "localhost", port: 3306, user: "root", // Be sure to update with your own MySQL password! password: "<PASSWORD>", database: "employ...
const express = require("express"), Product = require("../models/product"), User = require("../models/user"), Comment = require("../models/comment"), Post = require("../models/post"), Offer = require("../models/offer"), Favourite = require("../models/favour...
var hash = require("../../utils/hash"); var sprintf = require("sprintf").sprintf; var _ = require("underscore")._; var ftrs = require('../../features'); /** * BinarySegmentation - Multi-label text classifier, based on a segmentation scheme using base binary classifiers. * * Inspired by: * * <NAME>, <NAME>. Joint ...
import React from "react"; import { Link } from "react-router-dom"; import algoliasearch from "algoliasearch/lite"; import { InstantSearch, ClearRefinements, connectHierarchicalMenu, Configure, PoweredBy, connectSearchBox, connectHits, connectPagination, connectRefinementList, connectCurrentRefineme...
Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descrip...
import React from "react" import { graphql } from "gatsby" import styled from "styled-components" import { device } from "src/components/brakePoints" import MainNav from "src/components/Navigation.js" import ScrollContainer from "react-indiana-drag-scroll" import Helmet from "react-helmet" import MainWrap from "src/co...
const Parse = require("./parse.js"); const DataManager = require("./datamanager.js"); const Commands = require("../commands/message.json"); const DMCommands = require("../commands/dm.json"); const reactionCommands = require("../commands/reaction.json"); const Permissions = require("./permissions.js"); const DM = requir...
var img_PlayerStatMenu = new Image(); img_PlayerStatMenu.src = 'sprites/PlayerStatMenu.png'; function Gui(world, canvas, player){ this.world = world; this.player = player; this.canvas = canvas; //this.controls = new Array(); this.menusBar = this.createMenusbar(this.canvas, 48); this.focusCreature = null; thi...
$(function() { /* ********************** Overlay Code ***************************** */ $('#guranteeBtn').click(function(){ $('div#overlay_lightbox').removeClass('overlayModalBkgd'); $('div#overlay_background').fadeIn(400); $('div#overlay_lightbox').fadeIn(400); ...
import React from "react"; import { useState, useEffect } from "react"; import { useSelector, useDispatch } from "react-redux"; import { useHistory } from "react-router-dom"; import RecipeName from "./RecipeFormComponents/RecipeName"; import RecipeContent from "./RecipeFormComponents/RecipeContent"; import RecipeStep f...
"use strict"; const assetsPath = "assets/stardew/"; const storageKey = "stardew-combos"; const shedWidth = 390; const shedHeight = 437; const previewArea = document.getElementById("preview-area"); const previewCanvas = document.getElementById("preview-canvas"); const saveButton = document.getElementById("save-button...
'use strict' // **Github:** https://github.com/toajs/toa // // **License:** MIT const util = require('util') const http = require('http') const Stream = require('stream') const thunks = require('thunks') const accepts = require('accepts') const Cookies = require('cookies') const statuses = require('statuses') const Ev...
import {Alert, PermissionsAndroid} from "react-native"; let React = require("react"); let {View, Text, TextInput, TouchableHighlight, NativeModules, Button, TouchableOpacity} = require("react-native"); import Svg from 'react-native-svg' import IconLib from '../../../../../../../assets/svg/IconLib' import formStyle fro...
var upg3Manage = new Array(11); var upg3Amt = [2,3,1,1,3,2,1,1,3,1,2]; var upg3Free = false; var shownUpg3Before = false; upg3Manage.fill(0); upg3Manage[0] = 1; upg3Manage[4] = 1; upg3Manage[7] = 1; $('#b3upg1').toggleClass("upgradeBuy"); $('#b3upg5').toggleClass("upgradeBuy"); $('#b3upg8').toggleClass("upgradeBuy"); ...
import { connect as natsConnect, StringCodec } from "nats.ws" import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb" import { Points, Point } from "./protobuf/point_pb" import { NodesRequest } from "./protobuf/node_pb" import { NatsRequest } from "./protobuf/nats-request_pb" import { Message } from "....
/** * on(HTMLElement, eventType, event) 监听原生事件 * off(HTMLElement, eventType, event) 移除原生事件 * once(HTMLElement, eventType, event) 监听原生事件,但只触发一次 * getStyle(HTMLElement, styleName) 获取目标样式属性 * setStyle(HTMLElement, styleName, value) 设置标样式属性 */ const isServer = typeof window == undefined; const SPECIAL_CHARS_REG...
import UI5ButtonType from '@ui5/webcomponents/dist/types/ButtonType'; import UI5Icon from '@ui5/webcomponents/dist/Icon'; import UI5InputType from '@ui5/webcomponents/dist/types/InputType'; import UI5LinkType from '@ui5/webcomponents/dist/types/LinkType'; import UI5BackgroundDesign from '@ui5/webcomponents/dist/types/B...
let input = document.getElementById("searchBar"); var inputText = ""; input.addEventListener("keyup", searchFunction, false); function searchFunction(e){ inputText = input.value; console.log(inputText); filteredArray = []; for(var i = 0; i < adjectives.length; i++){ if(adjectives[i].includes(inputText)){ filt...
var emitter = require('events').EventEmitter, util = require("util"), fs = require('fs'), crypto = require('crypto'), http = require('http'), https = require('https'); function spawn (config) { function Crawler (config) { /* *file types to ignore ...
import { ipcRenderer } from 'electron' import Test from './views/test' import DeviceSettings from './views/settings' import PatternsView from './views/patterns' import SelfTest from './selftest/selftest'; import HttpClient from './network/client'; import {Status,Settings, Patterns} from './datamodels/status'; import { ...
import { PropTypes } from "prop-types"; import { useIsFocused } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/core"; import { View, Image, Text, Pressable, FlatList, TouchableOpacity, ScrollView, StyleSheet, } from "react-native"; import Constants from "expo-constants...
// Copyright 2020-2021, University of Colorado Boulder /** * Generates JS modules from resources such as images/strings/audio/etc. * * @author <NAME> (PhET Interactive Simulations) * @author <NAME> (PhET Interactive Simulations) */ const _ = require( 'lodash' ); // eslint-disable-line require-statement-match co...
import React from 'react'; import { render } from 'react-dom'; import { PropTypes as T } from 'prop-types'; import mapboxgl from 'mapbox-gl'; import { withRouter } from 'react-router-dom'; import { environment } from '#config'; import { withLanguage } from '#root/languageContext'; import { source } from '#utils/get-ne...
const mysql = require('mysql'); var con = mysql.createConnection({ host: "localhost", user: "username", password: "password", database: "mkyBank", dateStrings: "date" }); con.connect(function(err) { if (err) throw err; }); var iDay = 2; function main(){ console.log("Start Main"); let SQL = "select coun...
import React, { Component, Suspense } from 'react'; import { connect } from 'react-redux'; import { withTranslation } from 'react-i18next'; import VideoSpace from './VideoSpace'; import Stack from '@material-ui/core/Stack'; import { createGlobalStyle } from 'styled-components'; import LocalVideo from './LocalVideo'; im...
equipment_types = [ { name: "Energy Shield", notes: "x energy shield dice", sizeCost: 1, baseCost: 0, usePower: true, remark: "The shield must be created by a Shield Projector somewhere on the surface of the Creation. (<a target=\"_blank\" class=\"ref\" href=\"http://www.brikwars.com/rules/2010/8#5.htm\">...
import React, { useState, useRef, useEffect } from "react"; import { useHistory } from "react-router-dom"; import { useAuth } from "../auth/AuthContext"; import { useFireStore, useFireStorage } from "../auth/Firebase"; import firebase from "firebase/app"; // ant design component call import styled from "styled-compone...
/** * Licensed under the terms of the MIT License (see LICENSE.md). * * Basic plugin inserting QR elements into the CKEditor editing area. * */ 'use strict'; function rgbToHex(a) { if (a.startsWith("#")) { return a; } a = a.replace(/[^\d,]/g, "").split(","); var rgb = (1 << 24) + (+a[0] <<...
const mongoose = require('mongoose') const electron = require('electron') const IScroll = require('./iscroll') const Store = require('./model') const { remote, clipboard } = electron // connect to MongoDB Atlas function connectMongo(excute) { // mongodb://admin:785689@<EMAIL>:27017,cluster0-shard-00-01-koeuy.mongo...
/* Mine Sweeper 1. Done - choose Level: beginnerGame mediumGame expertGame 1.1. Done - Play again - with the same level 2. initGame 2.1 Done - resetGame 3. Done - buildBoard 3.1. Done - setNumtoBoard 4. Done - setMinesNegsCount 5. Done - renderBoard 6. Done - showTimer 6.1. Done - endTim...
var defaults = require('./defaults'); var utils = require('./utils') , noop = utils.noop , escape = utils.escape , unescape = utils.unescape , merge = utils.merge , replace = utils.replace; /** * Inline-Level Grammar */ var inline = { escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, autolink: /^<([^ >]+(@|:\/)...
const Market = artifacts.require("Market"); const truffleAssert = require('truffle-assertions'); const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const expect = chai.expect; chai.use(chaiAsPromised); const co = require('co'); const BN = require('bn.js'); const moment = require('moment'...
'use strict'; let state = { userInfo : { userStatus:true, userName:'Guest', userEmail:'<EMAIL>', userPassword:'<PASSWORD>', favorites : [], recent : [] }, searchInfo : { searchBoxText : '', filterState : [] //{category : "", checked : boolean...
//定义变量 var datajson; var userphone; var selecttype; var colortype; var items = new Array(); var mapPoint; var unitname; //var njpointresult; //njpointresult = new Array(); var graphictemp; var pt; var njpointresult1; njpointresult1 = new Array(); var dianx; var diany; var unitid = sessionStorage.unitid; (function (wi...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
$('#view_file').fadeOut(2000); $('#edit_file').fadeOut(2000); $('#delete_file').fadeOut(2000); var checkBoxes = $('input[type=checkbox]'); var checked=0; $('.table tr').click(function(event) { checked=1; $('#view_file').fadeIn(1000); $('#edit_file').fadeIn(1000); $('#delete_file').fadeIn(1000); ...
import React, { useState } from "react"; import { useSelector, useDispatch } from "react-redux"; import ReactPlayer from 'react-player'; import { updateExercise } from '../actions'; import EditModal from './EditModal'; const Wrapper = ({ children, editing, className }) => { return editing ? <form className={clas...