text
stringlengths
3.07k
16k
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'gatsby' import './style.scss' import Button from '@weknow/gatsby-theme-drupal-boina/src/components/atoms/button' const Header = ({ scrolled, isMobile, showSidebar, darkMenu }) => ( <div className="grid-x align-middle c-header"> {!...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {withStyles} from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import List from '@mater...
import styles from './mailGroupView.module.css' import React, {useEffect, useState} from "react"; import createEngine, { DiagramModel, DefaultNodeModel, DefaultLinkModel, } from "@projectstorm/react-diagrams" import { CanvasWidget } from '@projectstorm/react-canvas-core'; import { Point } from '@projectsto...
import React from "react"; import Logo from "../components/Logo/Logo"; const cssNotes = () => { return Logo(); }; const introductionToCSS = () => { let c1 = ` # Css Anatomy - Selector - The beginning of the ruleset used to target the element that will be styled. - Declaration block - The...
'use strict'; $(document).ready(function () { $("#go").on("click", function (event) { var city = $("#input").val(); var url = "/search"; var term = "pubs"; if ($(".special").prop("checked")) { var category = $("#choice").html().toLowerCase(); if (category === "gluten-free...
import { CHANGE } from "./event_names"; /** * 默认配置 * @property {number} total 数据总数 * @property {number} visiblePages 可见页码数量,最小为3,小于3的时候不显示 * @property {number} pageSize 每页显示的数据数量 * @property {number} current 当前页码 * @property {string} position 页码的位置 left/center/right * @property {string} prevText 上一页按钮显示的文本 ...
// doorboto_test.mjs Copyright 2020 <NAME> MIT Licence const { authorize, cronUpdate, checkStanding } = require('./doorboto.js'); const { createCardArray, createCards, rejectedCard, acceptedCard, } = require('./storage/on_site_cache_test.js'); const { cacheSetup, updateCard } = require('./storage/on_site_cache....
"use strict"; let fs = require("fs"); let path = require("path"); let infoHelper = require("../utils/infoHelper"); let ejsHelper = require("../utils/ejsHelper"); let staticHelper = require("../utils/staticHelper"); let postManager = require("./postManager"); let markedHelper = require("../utils/markedHelper"); module...
var server = module.exports; var options = server._options = {}; var spawn = require('child_process').spawn; var util = require('./util.js'); var _ = fis.util; var qrcode = require('qrcode-terminal'); server.options = function(opts) { if (arguments.length) { _.assign(options, opts); } else { return options...
"use strict"; const _ = require('lodash'), http = require('http'), express = require('express'), addRequestId = require('express-request-id')(), bodyParser = require('body-parser'), session = require('express-session'), mongoose = require('mongoose...
const { createCanvas, loadImage } = require('canvas'); const GIFEncoder = require('gifencoder'); const fs = require('fs'); const axios = require('axios'); const js_helper = require('../helpers/js.js'); const UPCOLOR = '#16c784'; const DOWNCOLOR = '#ea3943'; const NOCHANGECOLOR = '#000000'; exports.create = async fun...
var host = window.location.origin; var connection; var token = ""; var loginPage = document.querySelector('#login-page'), msisdnInput = document.querySelector('#msisdn'), codeInput = document.querySelector('#code'), loginButton = document.querySelector('#login'), callPage = document.querySelector('#ca...
/* * @author Saidqb (<NAME>) * @link https://saidqb.com * @since Version 1.0.0 */ class sqjs { mnav_top(){ let getlist = $('.dnav-list-group').html() let list = $('.mnav-list-group').html(getlist) $('.mnav-list-group li').map(function(){ $(this).removeClass('nav-item') }) } getWi...
/* eslint-disable linebreak-style */ /* eslint-disable array-bracket-newline */ /* eslint-disable array-element-newline */ /* eslint-disable func-style */ /* eslint-disable max-statements-per-line */ /* eslint-disable no-extra-parens */ /* eslint-disable no-magic-numbers */ /* eslint-disable no-prototype-builtins */ /...
//Author: <NAME>, 8683623 //declaring regular expressions var passwordRegex = /^[0-9A-Za-z]{8,12}$/; var phoneRegex = /^[0-9]{3}[\s\-]?[0-9]{3}[\s\-]?[0-9]{4}$/; var creditRegex = /^[0-9]{4}[\-][0-9]{4}[\-][0-9]{4}[\-][0-9]{4}$/; var emailRegex = /^[A-Za-z0-9]{1,30}[\@][A-Za-z]{1,30}[\.][A-Za-z]{1,30}$/; function sub...
// Basic functions required by the entire html page function togglePopup(elemID,turn_on){ if (turn_on) { document.getElementById(elemID).style.visibility = "visible"; }else{ document.getElementById(elemID).style.visibility = "hidden"; } } function toggleLoadingScreen(turn_on){ togglePopup('loading'...
var qjfiledata = []; function QJUpload(t) { if (!(t.usercode && t.uploadButtton && t.secret)) throw new TypeError("缺少参数!"); this.options = { usercode: t.usercode, secret: t.secret, upinfo: t.upinfo || "", webupconfig: JSON.stringify(t.webupconfig || {}), filecomp...
/* MIT License Copyright (c) 2018 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
import React, { Component } from "react"; import {findDOMNode} from "react-dom" import CartScrollBar from "./CartScrollBar"; import EmptyCart from "../empty-states/EmptyCart"; import CSSTransitionGroup from "react-transition-group/CSSTransitionGroup"; import Search from "@material-ui/icons/Search"; import Input from '@...
import React, { useState, useRef } from 'react'; import MapView from './map/MapView'; import Meta from './editor/Meta'; import Editor from './editor/Editor'; import Convert from '../convert'; import * as MapStyles from '../constants/mapstyles'; import * as Defaults from '../constants/defaults'; import { owmBuild } from...
// Add the following into your HEAD section var timer = 0; var hasError=false; function set_interval() { // the interval 'timer' is set as soon as the page loads timer = setInterval("auto_logout()", 30 * 60 * 1000); // the figure '10000' above indicates how many milliseconds the timer be set to. // Eg: to set it to...
#!/usr/bin/env node /* // Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 */ var readline = require('readline'); var aws = require('aws-sdk'); var https = require('https'); var async = require('async'); // configure API retries aws.config.update({ maxRetri...
/* * dependency: * main.js * utils.js */ async function loadShaderFile(gl, url, type) { const source = await loadFileText(url); const shader = createShader(gl, type, source); return shader; } function createShader(gl, type, source) { const shader = gl.createShader(type); gl.shaderSour...
import moment from 'moment'; import React, { useState, useMemo, useCallback } from 'react'; import { max as d3Max } from 'd3-array'; import { connect } from 'react-redux'; import { forEach } from 'lodash'; import formatting from '../helpers/formatting'; import { getCo2Scale } from '../helpers/scales'; import { modeOrd...
const files = { hashlist: path.join(dirs.storedir, "scanning", "hashlist.lzstring.json"), // Hashlist file lastmodified: path.join(dirs.storedir, "scanning", "lastmodified.txt"), // Last modified file hashesparams: path.join(dirs.storedir, "scanning", "hashesparams.txt"), // Hashlist parameters file has...
/* * Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) * * 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 requ...
import axios from 'axios'; import geolib from 'geolib'; const RESOURCE_ID = process.env.REACT_APP_API_RESOURCE_ID; const API_PATH = process.env.REACT_APP_API_PATH; const GLOBAL_FILTER = 'community services card'; let filters = category => category ? `&filters={"LEVEL_1_CATEGORY":"${category}"}` : ''; const STATICFIEL...
import HighchartsWrapper from './wrappers/highchartsWrapper'; import AmChartsWrapper from './wrappers/amChartsWrapper'; import ChartJsWrapper from './wrappers/chartJsWrapper'; import FusionChartsWrapper from './wrappers/fusionChartsWrapper'; const SELECTED_CLASS = 'selected'; const START = 'Start'; const PAUSE = 'Paus...
var loading = $("#loading"); $(document).on({ ajaxStart: function () { loading.show(); }, ajaxStop: function () { loading.hide(); } }); function JsonDate(jsonDate) { if (!jsonDate) { return jsonDate; } // var yojsonDate = (new Date()).toJSON(); var date = new...
/** * ZooBC Copyright (C) 2020 Quasisoft Limited - <NAME> * This file is part of ZooBC <https://github.com/zoobc/zoobc-explorer-ui> * ZooBC is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version ...
let elementId = { 'newNumber': '#new-number-', 'newNumberList': '#new-number-list-', 'oldNumber': '#old-number-', 'package': '#package-', 'voucher': '#voucher-' }; let dataCount = 0; let template = '<div class="form-group"><label for="@new-number-key">@new-number-text</label><input id="@new-number-key" list="@new-...
import React from 'react' import { connect } from 'react-redux' import { routerActions } from 'react-router-redux' import { editResource, removeResource, requestResource, applyResourceChanges } from '../state/actions/resources' import { invalidateSession } from '../state/actions/session' import { tryGoBack } from '../s...
// 3rd Party const gulp = require('gulp'); const del = require('del'); const ProgressBar = require('progress'); const mergeStream = require('merge-stream'); const batch = require('gulp-batch'); const watch = require('gulp-watch'); // Custom Imports const { createImageScaledStream, createImageColorsStream } = require...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// Files of Exports // DreamScript Programming Language Projects const fs = require('fs') const childProcess = require('child_process') const path = require('path') const ncp = require('ncp').ncp const beautify = require('js-beautify').js_beautify const ds_handler = require('./ds_handler') const ds_tokens =...
var numberOfClusters; var isLoading; var isFinished = false; var timeOutTime = 100; var uID = Math.random() * new Date().getTime(); var videoAddress = []; var videoAddressReady = []; function waitTimeInSeconds(time) { var oldTime = new Date().getTime(); var t = 0; do { var dt = (new Date().getTime(...
import React from 'react'; import { TouchableOpacity, TouchableWithoutFeedback, StyleSheet, Text, SafeAreaView, StatusBar, KeyboardAvoidingView, Keyboard, View, Alert, Animated, ScrollView } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { Item, Input } from 'native-...
import './header.less'; import { Popconfirm, Radio } from 'antd'; import React, { Component } from 'react'; import { bindSelf, util } from '../../utils'; import { inject, observer } from 'mobx-react'; import LayerMenu from '../layer-menu'; import Publish from '../publish'; import { transaction } from 'mobx'; @inject...
function setCookie(cname, cvalue, exdays) { let d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); let expires = "expires=" + d.toGMTString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { let name = cname + "="; let decod...
import styled from "styled-components/macro"; export const MothAbdomen = styled.div` width: 20px; height: 50px; border-radius: 50%; margin: auto; ${props=>props.type==="alt7" ? `margin-top: 20px` : '' } `; export const MothUpper = styled.div` height: 30px; border-radius: 50%; position: absolute; wi...
var syntax = require('./syntax'); var Error = require('../error').LexicalError; function Lexer(expression) { //Lets erase the spaces to become less complicated to parse later this.expression = expression.replace(/ /g, ""); } /** * Retrieves the left side of the expression */ Lexer.prototype.getLeftSide = fu...
// jCom.js // need myChat1.js var JCom_obj ; var JCom_t = ""; var JCom_History = []; var JCom_i = 0; ortcClient = RealtimeMessaging.createClient(); ortcClient.setClusterUrl('https://ortc-developers.realtime.co/server/ssl/2.1/'); ortcClient.connect('SkzSPG', 'testToken');//connect 'SkzSPG' 'MfeioN' var incMsg...
import * as u from './units.js'; class TimeXt { constructor(v, ut) { this.v = v; this.ut = ut; } inCenturies() { return (this.v * this.ut) / u.CE; } inDecades() { return (this.v * this.ut) / u.DC; } inYears() { return (this.v * this.ut) / u.Y; } inWeeks() { return (this.v *...
const DEBUG = false; const ALLCARDS = false; StrangerCards.main = { init : function () { StrangerCards.storageUser.init(); StrangerCards.layout.init(); StrangerCards.cards.init(); } }; StrangerCards.storageUser = { init : function() { this.initStorage('ST_userCards', ''); this.initStorage('ST_spoilerD...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose, bindActionCreators } from 'redux'; import { Table, Modal } from 'antd'; import EditableCell from 'components/tablecells/EditableCell'; import ExpandedRow from 'components/tablecells/ExpandedRow'; impo...
import React from 'react'; import Button from '@material-ui/core/Button'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import {withStyles} from '@material-ui/core/styles'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {Component} from 'react'; import {...
#!/usr/bin/env node "use strict"; // Hit F5 in VS Code to run the program (see `.vscode/launch.json`) var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const child_proc...
'use strict' const { fromValues: fromVals, create, normalize, add, length, multiply, dot, scale, set, negate, scaleAndAdd } = require('gl-vec3') const raySphereInt = require('ray-sphere-intersection') const RYLH_SCATTERING = fromVals(5.5e-6, 13e-6, 22.4e-6) // Rayleigh scat. coefficient const RY...
import R from 'ramda'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { Typography } from 'material-ui'; import { withStyles } from 'material-ui/styles'; import { browserHistory as history, withRouter } ...
'use strict'; const { extractDecorator } = require('metaschema'); const transformations = require('./transformations'); const escapeString = value => { let backslash = false; let escaped = "'"; for (const character of value) { if (character === "'") { escaped += "''"; } else if (character === '\...
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, Select, Popconfirm, List, message, Modal, Row, Col, Button } from 'antd' import { DeleteOutlined, PlusOutlined } from '@ant-design/icons' import { AuthUser } from '@/common/util' import axios from '@/component/axios' const formItemLayou...
import React from 'react'; import { View, PanResponder, Modal, Animated, TouchableWithoutFeedback, I18nManager } from 'react-native'; import { connect } from 'react-redux'; import { addToBasket } from '../../../actions'; import PropTypes from 'prop-types'; import { hasValue } from '../../../Helpers'; cons...
import React, { Component } from 'react'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import { Layout, Menu, Icon } from 'antd'; import UpgradeNote from './upgradenote/upgradeNote'; import RateList from './ratelist/rateList'; import AsyncComponent from '../common/asyncComponent'; import { fe...
//select all $(".input-select-all").change(function () { var target = $(this).attr("data-target"); // alert(target) var checked = $(this).is(":checked"); $(target + " input[type=checkbox]").attr("checked", checked); }); $(function () { //////////////check group checkboxes///////// $("body ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderVueMixins = exports.renderVueComponents = exports.renderHtmlUtil = exports.layoutUtil = exports.renderUtil = undefined; var _models = require('../models'); var _string = require('./string'); var _string2 = _interopRequire...
var _jsxFileName = 'src/server/static/jsx_src/form.jsx'; 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) des...
import React, { Component } from 'react'; import { Actions } from 'react-native-router-flux'; import Ionicons from 'react-native-vector-icons/Ionicons'; import { connect } from 'react-redux'; import {Button, Spinner} from '../components/general' import { goToEditOtherProfileForm } from '../actions'; import { Text, ...
/* * This file is part of the conga-twig module. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ // third party modules const TwigJS = require('twig'); const async = require('async'); // local modules con...
function clearMap(){ if( AskForReset() == DONT_RESET ) return; ResetMap(); if(gridMap != null){ document.getElementById("GridGraphics").removeChild(gridMap); gridMap = null; } //console.log("clearMap"); } function map(x, y){ clearMap(); gridSize.x = Math.max(1, x); gridSize.y = Math.max(...
/** @format */ import { getHosts, getHost, getHostCrons, getHostCron, getHostJobs, getHostJob, getAgents, getAgent, deleteHost, deleteHostCron, deleteHostJob, deleteAgent, createHostCron, updateHostCron, updateHostJob, } from "@/common/host.api"; const state = () => ({ getHostsResult: {}, getHostResu...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var index = require('./routes/index'); var users = require('./routes/users'); var net = require('ne...
import request from 'superagent' import Pbf from 'pbf' import geobuf from 'geobuf' import L from 'leaflet' import VectorField from './VectorField' import ValueField from './ValueField' const DOT_SIZE = 20 const DOT_DENSITY = 5 /** * A canvas tile layer which renders data from a gfs-weather-server instance. * Requi...
import React, { useState, useEffect } from "react"; import { Link } from "@reach/router"; import Button from "react-bootstrap/Button"; import { Helmet } from "react-helmet"; import * as THREE from "three"; import "../../utilities.css"; import "./Home.css"; const Home = () => { useEffect(() => { // Initialize Sc...
var sequence = 0; var user = { like: (e) => { // console.log(`liked: ${e.firstChild.src}`); if (e.firstChild.src == `${hostURL}public/icons/liked.png`) { like_button = "/public/icons/like.png" e.firstChild.src = like_button; } else { like_button = "/public/icons/liked.png" e.fir...
function identify_plugins(){ // in Mozilla and in fact most non-IE browsers, this is easy if (navigator.plugins) { var np = navigator.plugins; var plist = new Array(); // sorting navigator.plugins is a right royal pain // but it seems to be necessary because their order // is non-constant in som...
/** * converts spoken numbers into integers <br> * e.g. 'fifty seven point eight' -> 57.8 <br><br> * * Spoken numbers take the following format <br> * [sixty five] (thousand) [sixty five] (hundred) [sixty five] <br> * aka: [one/teen/ten] (multiple) [one/teen/ten] (multiple) ... <br> * combine the [one/teen/ten]s...
/** * @file batch.js * @brief * @author <NAME> (INRA UMR1095) * @date 2017-06-27 * @copyright Copyright (c) 2016 INRA/CIRAD * @license MIT (see LICENSE file) * @details */ let Marionette = require('backbone.marionette'); let BatchModel = require('../models/batch'); let DefaultLayout = require('../../main/vie...
import assert from '/src/base/assert.js'; import * as entry_utils from './entry-utils.js'; export function query_entries(session, query = {}) { assert(session); assert(session.conn); assert(typeof query === 'object'); assert(is_valid_feed_id(query.feed_id)); assert(is_valid_read_state(query.read_state)); a...
'use strict'; const cip = require('../services/cip'); const Q = require('q'); const config = require('../collections-online/lib/config'); const ds = require('../collections-online/lib/services/documents'); function Categories(tree) { this.getPath = function(x) { function traverse(tree, path) { path.push(t...
/* * 說明:右側頁籤功能 * Layout頁的 * <div id='head-tabs'> * <div id='right-tab'> */ let unreadCount = 0; //未讀訊息統計 //右上隱藏右側頁籤按鈕 function headTabsButtonOnClick() { $('.side-container').toggleClass('hide'); if ($('.side-title').hasClass('active')) { $('.side-title.active').removeClass('active'); $('...
const Discord = require('discord.js'); const fs = require('fs'); const timing = require("./commands/mytime.js") function getNowAsString() { var current_date = new Date(); return current_date.getHours() + ":" + current_date.getMinutes() + ":" + current_date.getSeconds() + " " ...
import React, { Component, PropTypes } from 'react'; import Relay from 'react-relay'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import DatePicker from 'material-ui/DatePicker'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; import Ci...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.wrapPageElement = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babe...
import React from 'react' import axios from 'axios'; import { Container } from 'semantic-ui-react'; import { Table } from 'semantic-ui-react'; import io from 'socket.io-client'; import Header from '../Header/Header'; import ModalActivity from '../Activity/ModalActivity'; import ModalClient from './ModalClient'; impor...
export default class Clock { constructor(milliseconds = false, twentyfour = false) { this.twentyfour = twentyfour; this.milliseconds = milliseconds; this.setSystemTime(); // Canvas Personilizer this.name = 'QUARTZ'; this.fgColor = 'black'; this...
/** * @file webpack 生产环境配置文件 * @date 2019/03/19 * @author <EMAIL> */ const path = require('path'); const glob = require('glob'); const webpackBaseConfig = require('./webpack.config.base'); // const PrerenderSPAPlugin = require('prerender-spa-plugin'); // const Renderer = PrerenderSPAPlugin.PuppeteerRenderer; const...
#!/usr/bin/env node 'use strict' // module dependencies const childProcess = require('child_process') const async = require('asyncc') const commander = require('commander') const Tasks = require('../').Tasks const Report = require('../').Report const timerange = require('../').timerange const file = require('../lib/f...
/* ----------UNDERSTANDING THE PROBLEM---------- - Objective: Find the smallest positive number that is evenly divisible by all of the numbers from 1 to 20. - Expected Input(s): - Number of Expected Inputs: 2 - Names of Expected Inputs: 'startNum', 'endNum' (both represent a range of numbers that the output...
var express = require('express'); var glob = require('glob'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var compress = require('compression'); var methodOverride = require('method-override'); var exphbs ...
// MXFlutterFramework // Copyright 2019 The MXFlutter Authors. All rights reserved. // // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. const dart_sdk = require("dart_sdk"); const packages__dio__src__entry__dio_for_browser = require("packages/dio/src/entry/dio...
import Vue from 'vue'; import {i18n} from 'src/boot/i18n'; import Store from 'src/store'; import Mods from 'src/lib/factory/mods.js' function bestdori(content) { let timepoint = []; let notes = []; let slides = []; let posA = -1; let posB = -1; let long = {}; let time = (beat, timepoint) => { let ti...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChartBulletGroupTitle = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var React = _interopRequireWildcard(require("react")); var _victoryCore = require("victory-core"); var _ChartContainer = require(".....
var gulp = require('gulp'), source = require('vinyl-source-stream'), // Used to stream bundle for further handling browserify = require('browserify'), watchify = require('watchify'), reactify = require('reactify'), babelify = require('babelify'), ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { selectDataSource } from "./redux/actions"; import { connect } from "react-redux"; import VOWLRenderer from "../Implementation/Renderes/gizmoRenderer/vowlGraph"; import OrkgGraph from "../Implementation/Renderes/gizmoRenderer/orkgGra...
const fs = require("fs"); const path = require("path"); const gitignoreParser = require("gitignore-parser"); const os = require('os'); const breakLine = "\n"; const notEmptyString = "..."; const asciiChars = { verticalDiv: "|", horizontalDiv: "-", expand: "+", final: "\\" }; const noAsciiChars = { verticalD...
/* In dit bestand staan de TCP en Socket.IO server. Deze twee servers regelen de communicatie tussen het webportaal, de smartphone app en de domoticamodules . */ var net = require('net') var socketio = require('socket.io'); var modules = {}; var mysql = require('mysql'); var async = require('async'); var ...
'use strict'; /* * Þessi javascript skrá er fyrir myndbandaspilarann fyrir * player.html */ /* * empty tæmir öll börn el. */ function empty(el) { while (el.firstChild) { el.removeChild(el.firstChild); } } /* * loadJSON tekur við falli callback sem tekur response * og vinnur með það */ function loadJSON(callb...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; import { translate } from 'react-i18next'; import { push } from 'connected-react-router'; import { Box, Flex, Text } from 'rebass/styled-components'; import baseTheme from '../...
/* ps图片算法之灰度 ps通过对红、黄、绿、青、蓝和洋红等6种颜色的比例来灰度化图片: gray= (max - mid) * ratio_max + (mid - min) * ratio_max_mid + min gray :像素的灰度值,不是真的灰色哈。 max : 像素点R、G、B三色中的最大者 mid:像素点R、G、B三色中的中间者 min:像素点R、G、B三色中的最小者 ratio_max:最大的颜色所占比率 ratio_max_mid:最大的颜色和中间颜色 合成颜色所占的比率 这六种颜色在ps中默认比例为: y = r + g q = g + b z = r ...
'use strict' var http = require('http'); var crypto = require('crypto'); // var fs = require("fs"); var qs = require('querystring'); // require('buffer') var toBuffer = require('blob-to-buffer') var secret = require('../secret') // A queue of attention bar ID's. Used to send messages straight to them. var ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import fetchData from '../../lib/fetchData'; import Loader from '../../components/loader'; import { connect } from 'react-redux'; import { setError, setMessage } from '../../actions/metaActions'; import { setAllele } from '../../actions/allel...
import React, {useState} from 'react'; import { SafeAreaView, View, Text, TouchableOpacity, Image, ScrollView, } from 'react-native'; import {ChevronLeft, Message, Call} from 'react-native-iconly'; import Background from '../../../components/static/backgound'; import styles from './index.styles'; import Thr...
import React from 'react'; import {connect} from 'react-redux'; import Solution from '../../components/Solution'; import TooltipsBoard from '../../components/TooltipsBoard'; import SampleTests from '../../components/SampleTests'; import TaskDetails from '../../components/TaskDetails'; import Output from '../../compone...
import React, { useRef, useState } from 'react'; import { Tabs, Dialog, Button, Icon, Checkbox, Pagination, } from '@atomic-reactor/reactium-ui'; import op from 'object-path'; import uuid from 'uuid/v4'; import _ from 'underscore'; import Reactium, { __, useAsyncEffect } from 'reactium-core/sdk'...
// Imports: const { ethers } = require('ethers'); const { minABI, quickswap } = require('../../static/ABIs.js'); const { query, addToken, addLPToken } = require('../../static/functions.js'); // Initializations: const chain = 'poly'; const project = 'quickswap'; const registry = '0x8aAA5e259F74c8114e0a471d9f2...
/* * MIT License * * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
const maxKeyCounts = { 1: 80, // badges 2: 50, // recipes 3: 64, // quizmo 4: 96, // star pieces 5: 10 // rip cheato }; var currentKeyCounts = { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0 }; var rowf_coins = 1650; const quizmoAnswers = [ 3, 2, 2, 3, 3, 1, 3, 1, 3, 2, ...
import Vector2 from "./Vector2.js"; function Canvas( scene, width, height, scale){ this.scene = scene; this.width = width; this.height = height; this.app = new PIXI.Application(width, height, { antialias: true }); console.log(this.app); this.app.renderer.backgroundColor = 0x101010; this.domElement = t...
'use strict' const axios = require('axios'); const likeTest = require('./likeTesting'); module.exports = (app, mongoose) => { const stockSchema = new mongoose.Schema({ symbol: String, likes: Number, likeLog: [String] }); const Stock = mongoose.model('Stock', stockSchema); app.get('/api/stock...
import React from 'react'; import PropTypes from 'prop-types'; import { orderBy } from 'lodash'; import { getLink as getTeamLink, getAvatarUrl as getTeamAvatarUrl } from 'Models/team'; import { getAvatarThumbnailUrl as getUserAvatarUrl } from 'Models/user'; import Image from 'Components/images/image'; import { UserAva...