text
stringlengths
3.07k
16k
import React from 'react' import { graphql, Link } from 'gatsby' import styled from 'styled-components' import tw from 'twin.macro' import { BLOCKS, MARKS, INLINES } from '@contentful/rich-text-types' import { documentToReactComponents } from '@contentful/rich-text-react-renderer' import Img from 'gatsby-image' import ...
import './Business.scss' import React, { useState, useEffect, useRef } from 'react' import Timer from 'components/Timer' const Business = ({ initStats, timestap, sumValue, addSumValue }) => { const { id, name, managerCost, businessCost, upgradeCostMultiplier, levelUpMultiplier } = initSta...
/* -*- mode: js; indent-tabs-mode: nil -*- Copyright 2013 <NAME>, Opera Software ASA 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 req...
// Copyright (c) 2015 <NAME> <<EMAIL>> (https://gluxon.com) // node-driverstation: Node.js API for the client-side FRC Driver Station // // 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 wit...
import React, { useState } from "react"; import { TextField, Button, Grid, ThemeProvider, createTheme, } from "@material-ui/core"; import Alert from "@material-ui/lab/Alert"; import { makeStyles } from "@material-ui/core/styles"; import InputLabel from "@material-ui/core/InputLabel"; import MenuItem from "@materia...
import React, { Component } from 'react'; import { compose } from 'redux'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from 'react-redux'; import { reduxForm, Field } from 'redux-form'; import { Link } from 'react-router-dom'; import { Row, Col, Card, Form, Button } from 'react-...
import React, { useEffect, useState } from "react"; import { Button, Card, CardHeader, CardBody, Form, FormGroup, Container, Badge, Row, Col, } from "reactstrap"; import { SERVER_URL } from "../utils/constants"; import JsonViewer from "../components/Common/JsonViewer"; import { Input, ControlLab...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var tinycolor = require('@ctrl/tinycolor'); var index$4 = require('../../icon/index.js'); require('../../../hooks/index.js'); require('../../../tokens/index.js'); var button = require('./button.js'); var button$1 = ...
"use strict"; function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = f...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Copyright <2019> Am...
import React, { useRef } from 'react'; import Layout from '../../components/dev-hub/layout'; import { Helmet } from 'react-helmet'; import { useSiteMetadata } from '../../hooks/use-site-metadata'; import { fontSize, screenSize, size, lineHeight, } from '../../components/dev-hub/theme'; import { H3, Arti...
import React, {Component} from 'react' import {connect} from 'react-redux' import { getOrdersFromServer, addToCartServer, deleteProdFromOrderServer, updateProductInventoryToServer, updateOrderQuantityToServer } from '../../reducer/order/order' import GuestOrder from '../GuestOrder/guestOrder' import OrdersUI ...
global.twemoji = require('twemoji').default const prodDir = require('../../package').corifeus["prod-dir"]; global.twemoji.base = `${prodDir}/twemoji/`; global.htmlEncode = require('js-htmlencode') const hljs = require('highlight.js/lib/core'); hljs.registerLanguage('conf', require('highlight.js/lib/languages/nginx'))...
/** * * ......................我佛慈悲...................... * _oo0oo_ * o8888888o * 88" . "88 * (| -_- |) * 0\ = /0 * ___/`---'\___ * .' \\| |// '. * ...
import React from "react"; import { connect } from "react-redux"; import Product from "./Product"; import { fetchProducts, filterByAll, filterByCategory, orderByName, orderByPriceAsc, orderByPriceDesc, incrementCartItem, decrementCartItem, } from "../store"; class ProductsList extends React.Component {...
const Loader = function (Viewer, theme) { return { alpines: [], open: false, observer: null, windowRef: null, viewerScript: Viewer, viewer: null, theme: theme, iframe: null, type: 'Iframe', sessionId : Date.now() + Math.floor(Math.rando...
// Global Variables var savedCities = []; renderCityButtons() // Once Search button is clicked, New Button with City name appears and summons Weather Info $('.searchBtn').click(function(){ var city = $('input').val().trim() // Adds City Button addCityButton(city) // Saves Cities to Local Stora...
import React, {useState} from 'react'; import './App.css'; import { getFormData, saveFormData, singleFileUpload, multipleFilesUpload} from './data/api'; import { ToastContainer,toast} from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; function App() { const [filled, setFilled] = useState(false); ...
// Convert Celsius to Fahrenheit function convertToF(celsius) { let fahrenheit = celsius * (9 / 5) + 32; return fahrenheit; } // Reverse a String function reverseString(str) { return str .split("") .reverse() .join(""); } // Factorialize a Number function factorialize(num) { if (num === 0) return ...
function sumFibs(num) { var sum = 0; var num1 = 0; var num2 = 0; var fib = 1 while (fib<=num) { if (fib % 2 !== 0){ sum += fib; num1 = num2; num2 = fib; fib = num1 + num2; } else { num1 = num2; num2 = fib; fib = num1 + num2; ...
import React from 'react'; import styled from 'styled-components'; import is, { isNot } from 'styled-is'; import tt from 'counterpart'; import Icon from 'components/golos-ui/Icon'; import VotePanelAbstract, { SLIDER_OFFSET } from './VotePanelAbstract'; const OFFSET = -36; const VERT_OFFSET_UP = -44; const VERT_OFFSE...
var colors = Object.values(allColors()) var defaultDNA = { "bodyColor" : 26, "mouthColor" : 37, "eyesColor" : 86, "earsColor" : 14, //Cattributes "eyesShape" : 1, "decorationPattern" : 1, "decorationMidcolor" : 14, "decorationSidescolor" : 20, "animation" : 1, ...
import React, { Component } from "react"; import { View, Text, FlatList } from "react-native"; import { connect } from "react-redux"; import { translate } from "../../../../features/base/i18n"; import styles from "./styles"; import FontAwesome fro...
const t = require('../test-utils') const copydir = require('copy-dir') describe('HostProject', () => { let HostProject, BjsConfiguration, Directory, log, stats beforeEach(() => { HostProject = t.requireModule('filesystem/HostProject').HostProject BjsConfiguration = t.requireModule('filesystem...
'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]; } } }...
/* * Fragment Brush CraftScript for WorldEdit * Copyright (C) 2012 inHaze <http://bit.ly/inHaze> * * This program 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 3 of the License, or * (a...
import PropTypes from 'prop-types' import { observable, action } from 'mobx' import { inject, observer, PropTypes as MobxPropTypes } from 'mobx-react' import styled from 'styled-components' import Dialog from '@material-ui/core/Dialog' import DialogContent from '@material-ui/core/DialogContent' import FormControl from ...
$(document).ready(function() { $("#tcp").hide(); $("#icmp").hide(); $("#other").hide(); $("#tcpflag").hide(); $("#chkdstadress").hide(); $("#protocol").change(function () { var value = $(this).find('option:selected').attr("id"); if (value == "6"){ $("#tcp").show();...
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import ImageFigure from './ImageFigure'; //获取图片相关信息 const imageDatas = require("../data/imageData.json"); class AppComponent extends React.Component { constructor(){ super(); this.state={ centerPos : { ...
import React from "react"; import { Link } from "react-router-dom"; import Classic from "Components/Widgets/d27154EFDbCa05654074E41a8d542b53/Card"; import Trending from "Components/Widgets/Ee0Dff7436cD4009676a908cEfD6cd5C/Card"; import Random from "Components/Widgets/1d9fE1cfbEE45b15edba3fBd5b528F7B/Card"; import Navb...
/* * Translation to JavaScript * * Requiring this module adds a gen() method to each of the AST classes. * Nothing is actually exported from this module. * * Each gen() method returns a fragment of JavaScript. The gen() method on * the program class pretty-prints the complete JavaScript code. * * require('./...
import * as d3 from 'd3'; import { scalepoint, scaleLinear } from 'd3-scale'; import { axisBottom, axisLeft } from 'd3-axis'; import { zoom } from 'd3-zoom'; import "../style.css" var margin={top:40, right:30, bottom:50, left:70} var width = $("#stock-step-after").width()-margin.left-margin.right; var height = 680-mar...
/* Copyright (c) Lightstreamer Srl 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 writ...
/* Constants */ var gameSpeed = 100; // the game state is updated every this value ms var snakeInitLength = 5; // initial size of the snake var cellSize = 25; // the size of the cells is fixed. We adapt the size of the board /* Global variables */ var canvas; var context; var score; var best_score = 0; var game_over;...
"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]; })...
import storeUtil from '../storeUtil.js'; import moment from 'moment'; import {TeamFrenoyModel} from './TeamFrenoyModel.js'; export const teamPlayerType = { standard: 'Standard', captain: 'Captain', reserve: 'Reserve', }; export default class TeamModel { constructor(json) { this.competition = json.competi...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
const MongoClient = require('mongodb').MongoClient; const url = 'mongodb://localhost:27017'; const dbName = 'questions'; var db; const client = new MongoClient(url, { useNewUrlParser: true }); var questions = [ { id: 1, name: 'Geography', questions: [ { questionText: 'What country is also known as Pers...
var express = require("express"); var router = express.Router({mergeParams:true}); var passport = require("passport"); var User = require("../models/user"); var Accelerometer = require("../models/accelerometer"); var Gyro = require("../models/gyro"); var Subscription = require("../models/subscription"); var Blac...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VInput = void 0; require("../../../src/components/VInput/VInput.scss"); var _vue = require("vue"); var _VLabel = require("../VLabel"); var _VIcon = require("../VIcon"); var _useTransition = require("../../effects/use-transition...
// GPG4Browsers - An OpenPGP implementation in javascript // Copyright (C) 2011 Recurity Labs GmbH // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 3.0 of the Licen...
var fs = require('fs'); var crypto = require('crypto'); var _ = require('underscore'); var through = require('through2'); var gutil = require('gulp-util'); var PluginError = gutil.PluginError; const PLUGIN_NAME = 'gulp-repath'; var defaults = { verMode: 'param', hashName: '{origin}-{hash}', baseMap: {}, eleme...
'use strict'; require('../test_helper'); var _ = require('lodash'), apiUmbrellaConfig = require('api-umbrella-config'), async = require('async'), execFile = require('child_process').execFile, Factory = require('factory-lady'), fs = require('fs'), path = require('path'), processEnv = requir...
'use strict' /** * Dependencies */ const child_process = require('child_process'); const chalk = require('chalk'); const meow = require('meow'); const showHelp = require('../helpers/showHelp'); const which = require('../helpers/which'); const git = require('../helpers/git'); /** * Constants */ const hasPacker =...
const { now } = Date; /** * Captures a promise that will only resolve once a given condition * has been met. The condition will be tested once every 10ms and is * considered to be met when it does not error or return false. * * When `always` is false, the promise will resolve as soon as the * condition has been ...
const config = require('config') const express = require('express') const mbgl = require('@mapbox/mapbox-gl-native') // const tilebelt = require('@mapbox/tilebelt') const vtpbf = require('vt-pbf') // const request = require('request') const sharp = require('sharp') const fs = require('fs') const Queue = require('better...
import React, { useRef, useEffect, useState } from 'react'; import mapboxgl from 'mapbox-gl'; import './Map.css'; mapboxgl.accessToken = '<KEY>' const Map = () => { const mapContainerRef = useRef(null); const [lng, setLng] = useState(-71.0799); const [lat, setLat] = useState(42.3083) const [zoom, setZoom...
$(function () { var $toast = $('#toast'); var $list = $('#list'); var $confirm = $('#confirm_btn'); var $cancel = $('#cancel_btn'); var $pickerPanel = $('#picker_panel'); var $year = $('#year_month_day'); var $hours = $('#hours'); var $minites = $('#minites'); var $seconds = $('#seconds'); var $toast_success ...
// import colors from 'vuetify/es5/util/colors'; import minifyTheme from 'minify-css-string'; import { primary, accent, secondary, info, warning, error, success, backgroundColor, } from './assets/scss/colors'; import { MY_ICONS } from './assets/js/icons'; require('dotenv').config(); let modern = false;...
'use strict'; var request = require('request'); var crypto = require('crypto'); var querystring = require('querystring'); var async = require('async'); var bigdecimal = require('bigdecimal'); var winston = require('winston'); var Bitstamp = function (config) { // use a reference to the config, so updates propaga...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import fetchDataBuilder from '../../../../foundation/redux/Factories/FetchData'; import { dNc } from '../../../../content/scripts/custom/utilities'; // import * as fetchActions from '../../../../foundation/redux/glob...
/** * ComponentProp.js * @author WY * @date 2018-10-03 * @email <EMAIL> */ import React from 'react'; import { Form, Input, InputNumber, Divider, Button, Checkbox, Select } from 'hzero-ui'; import { forEach, isFunction } from 'lodash'; import intl from 'utils/intl'; import ValueList from 'components/ValueList'; ...
/** * Created by mike on 10/16/16. */ import React from 'react'; import { connect } from 'react-redux'; import { reset, blur, Field, reduxForm } from 'redux-form'; import { createStructuredSelector } from 'reselect'; import moment from 'moment-timezone'; import Button from 'react-bootstrap/lib/Button'; import Form ...
const fs = require('fs') const ipcRenderer = require('electron').ipcRenderer; var fileloc = ""; var numd = 0; var nums = 0; function checkProg(event){ var p = "" if(fs.existsSync("metadata.txt")){ contents = fs.readFileSync('metadata.txt').toString().split(","); numd = contents[0]; nums = contents[1]; fileloc ...
import React, { useState, useEffect } from 'react'; import { StyleSheet, View } from 'react-native'; import { connect } from 'react-redux'; import Dialog from 'react-native-dialog'; import { useNavigation } from '@react-navigation/native'; import { func, shape, string, arrayOf, } from 'prop-types'; import { creat...
import { evalPointsPerThesisPerParty, getPartiesWithScores, getTotalMaxPoints, } from '@/app/euromat/scoring' const positionDef = ['positive', 'neutral', 'negative', 'skipped'] // See official Rechenmodell of bpb from 2019 const rechenmodellGrid = [ [0, 0, 0, 0, 0, false], [0, 0, 2, 0, 1, false], [0, 2, 2,...
const Joi = require('joi'); const Communication = require('../models/communication.model'); const Member = require('../models/member.model'); const User = require('../models/user.model'); import email from '../helpers/email'; import whatsapp from '../helpers/whatsapp'; import pushalerts from '../helpers/pushalert'; imp...
// Author: <NAME> // Version: 1.0 | 2019-25-01 // License: none (public domain) // Happy Number Generator // https://en.wikipedia.org/wiki/Happy_number // A happy number is defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits in base-ten, and...
//carousell1 const track =document.querySelector('.s-carousel-track'); if(document.contains(track)){ const carouselSlide=Array.from(track.children) || undefined; const prevBtn =document.querySelector('.left'); const nextBtn =document.querySelector('.right'); const dotBtns =document.querySelector('...
/** DEPENDENCY */ const { create, Client } = require('@open-wa/wa-automate') const { color } = require('./utils/color') const { options } = require('./lib/options') const msgHandler = require('./message/handler') const figlet = require('figlet') const fs = require('fs-extra') const canvas = require('discord-canvas') ...
/* eslint-disable global-require */ /* eslint-disable import/no-extraneous-dependencies */ import { dirname } from 'path'; import webpack from 'webpack'; import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import { ESBuildMinifyPlugin } from 'esbuild-loader'; import ExtractCssPlugin from 'mini-css-extract-plugin...
import { loginByUsername, logout } from '@/api/login' import { getToken, setToken, removeToken } from '@/utils/auth' import { getUserCommunity } from '@/api/communityManage' // import { // getBuildingList, // getRoomList // } from '@/api/property' const user = { state: { user: '', status: '', code: '...
import React, { useRef, useState, useEffect } from "react"; import useForm from "../useForm"; import { Grid, TextField, withStyles, Button } from "@material-ui/core"; import Card from "components/Card/Card.js"; import Radio from "@material-ui/core/Radio"; import RadioGroup from "@material-ui/core/RadioGroup"; import Fo...
/** * * Sidebar * */ import { Divider, List, ListItem, ListItemIcon, ListItemText, } from '@material-ui/core'; import { Dashboard as DashboardIcon, ModeComment as CommentIcon, MovieOutlined, PieChart as ChartIcon, PowerSettingsNew as LoguotIcon, Settings as SettingIcon, Subscriptions as Fol...
//help syntaxes - needs to be rewritten as per command handler update const Discord = require('discord.js'); const config = require('../config.json'); const prefix = config.prefix; exports.run = (client, message, args) => { let postfix = args[0]; let poihammer = client.emojis.get("393085640046018561"); em = n...
//发票登记列表页面 表格配置 export const listIndexConfig=[ { label:'收票单号',prop:'registerCode',fixed:true,width:120,linkTo:'/invoice/entryInvoice/registrationDetail',query:[{key:'finaPurchaseInvoiceId',value:'finaPurchaseInvoiceId'}]}, { label:'供应商',prop:'providerName',width:120}, { label:'货主',prop:'ownerName',minWidth:120},...
import React,{useState, useRef} from "react" import { CCard, CCardBody, CCardFooter, CCardHeader, CFormGroup, } from '@coreui/react' import CIcon from '@coreui/icons-react'; // import axios from 'axios'; import baseUrl from '../../../config/config' import * as XLSX from 'xlsx' import {ToastConta...
var app = require('express')(); var server = require('http').createServer(app); var io = require('socket.io')(server); var port = 3000; var sessionIds = []; var models = []; var zoomFactors = []; var explodeFactors = []; var isolateIds = []; var hideIds = []; var showIds = []; var sectionPlanes = []; var defZoom = nu...
import { css } from '@emotion/core' import styled from '@emotion/styled' import Link from 'next/link' import withAttrs from '../src/with-attrs' import { Row, Label } from '@dougrich/uxlib' export { Row, Label } const typography = { title: css` font-family: 'Oswald', sans-serif; text-align: center; `, ...
import React from 'react' import { Link, navigate } from 'gatsby' import get from 'lodash/get' import { graphql } from 'gatsby' import { handleLogin, isLoggedIn, getUser } from "../utils/auth" import { addVisit } from "../utils/visit_recorder" import HelmetLocale from '../components/HelmetLocale' import Layout from '....
import * as THREE from 'three'; import GeometryLayer from 'Layer/GeometryLayer'; import { init3dTilesLayer, pre3dTilesUpdate, process3dTilesNode } from 'Process/3dTilesProcessing'; import C3DTileset from 'Core/3DTiles/C3DTileset'; import C3DTExtensions from 'Core/3DTiles/C3DTExtensions'; const update = process3dTilesN...
const badWeather = d => { const colorScale = d3 .scaleLinear() .domain(d3.extent(data, d => d.weatherLevel)) .range([0, 1]); const colorMap = d3.interpolateRgb(d3.rgb('#4099ff'), d3.rgb('#ff0000')); return colorMap(colorScale(d.weatherLevel)); }; const addXAxis = ( xScale, bandwidth, innerRadiu...
process.env.DEBUG = 'electron-windows-installer:main'; const path = require('path'); const pkg = require(path.join(__dirname, 'package.json')); const fs = require('fs'); const child_process = require('child_process'); const distDir = path.join(__dirname, 'dist'); const isBeta = pkg.version.indexOf('beta') !== -1; cons...
import React from 'react'; import * as Yup from 'yup'; import { useFormik, getIn } from 'formik'; import { Link as RouterLink, useNavigate } from 'react-router-dom'; // material import { Card, Stack, Button, Container, Typography, TextField, Box, InputLabel, Select, MenuItem, FormControl, IconBu...
const fs = require('fs'); const path = require('canonical-path'); const _ = require('lodash'); const JasmineReporters = require('jasmine-reporters'); const Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); exports.config = { directConnect: true, // Set to false if using Selenium Grid chromeDriv...
const channelg = require("discord.js"); const client = new channelg.Client(); const config = require("../Config.json"); //--------------------------------------- Channel Guard ---------------------------------------\\ client.on('channelCreate',async channel => { let guild = client.guilds.cache.get(config....
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhWind = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" ...
const WebSocket = require('ws') const helpers = require("./helpers.js") // Builds websocket instance with passed url and returns in to calling function function buildWebSocket(url) { const webSocketInstance = new WebSocket(url); return webSocketInstance } // Exchange specific websocket builds - these will inc...
import * as React from 'react' import ReactPaginate from "react-paginate"; import ContenedorFiltro from "../../pregrado/components/ContenedorFiltro"; import Buscador from "../../pregrado/components/Buscador"; import OpcionesPageSize from "../../pregrado/components/OpcionesPageSize"; import {getReportePagos, getReporteP...
import React, { Component } from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import styled, { ThemeProvider } from 'styled-components' import { Route, Switch } from 'react-router-dom' import { ConnectedRouter } from 'connected-react-router' import { withLocalize } from 'react-local...
let currentDirectory,baseRead,baseWrite,baseWriteSass; module.exports = { getAllModules:getAllModules, getModuleAddress:getModuleAddress }; async function getAllModules(){ if(!currentDirectory){currentDirectory = await io.dir.cwd();} if(!baseRead){baseRead = currentDirectory + "/app"} if(!baseWrite){baseWr...
// Storing functions as a variable let sayHello = function (name) { console.log(`Hello ${name}`) }; let hello = name => console.log(`Hello ${name}`); hello("Ivo"); sayHello("Martin"); //Storing functions in an array and using them let numberStatsFunctions = [ (num) => num > 0 ? "Positive" : "Negative", (nu...
#!/usr/bin/env node const os = require('os'); const path = require('path'); const fs = require('fs') const Bottleneck = require('bottleneck') const csv = require('csv-parser') const yargs = require('yargs/yargs'); const EdgeGrid = require('edgegrid'); //console.log( "Hello!" ); function sendEdgeGrid...
/** * Cool little lambda based aniamtion engine * @author <NAME> * * @API animate(); * * @usage * Use this API to animate DOM elements * * @params * Required: * - ele: {HTMLElement} A DOM element * - animation: {Function} A lambda function which takes in the instance of the animation and the progress value based off ...
import { __extends } from "tslib"; import { NodeMaterialBlock } from '../../nodeMaterialBlock'; import { NodeMaterialBlockConnectionPointTypes } from '../../Enums/nodeMaterialBlockConnectionPointTypes'; import { NodeMaterialConnectionPointDirection } from '../../nodeMaterialBlockConnectionPoint'; import { NodeMater...
// JSON array for projects info var projects = [ { "imgsrc" : "img/books.jpg", "previewurl" : "http://book-catalog-app.herokuapp.com", "githuburl" : "https://github.com/zlateff/item-catalog-application", "description" : "Content management system developed using the Flask framework a...
/* Copyright 2016 <NAME> (<EMAIL>) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
"use strict"; var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property"); var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default; _Object$defineProperty(exports, "__esModule", { value: true }); exports.handler = exports.builder = exp...
import React, { Component } from 'react'; //import logo from './logo.svg'; import './App.css'; import Logo from './img/logo.png'; import English from './img/eng.png'; import Svenska from './img/sve.png'; import User from './img/user.png'; import Work from './img/sweep.png'; import {Link} from "react-router-dom"; impor...
"use strict"; /* global describe,it,before*/ require("requirish")._(module); var should = require("should"); var _ = require("underscore"); var assert = require("better-assert"); var path = require("path"); var Method = require("lib/address_space/ua_method").Method; var StatusCodes = require("lib/datamodel/opcua_stat...
import React, { useRef } from "react"; import replace from "lodash/replace"; import Link from "next/link"; import Sharepic from "./Sharepic"; import htmlToImage from "html-to-image"; import { BASE_URL } from "../constants/urls"; const SnackListElement = ({ snack, isOverview, clipboardStatus, isMinimalView, c...
import { useCallback, useEffect, useRef, useState } from 'react'; import { useLocation } from 'react-router-dom'; import _ from 'lodash'; import { FACETS } from '../constants'; const useFacets = ( segmentAccordions, segmentOptions, selectedFacetFilters, getNewRecords, data, ) => { const { query: { que...
var system = require("system"); var webserver = require("webserver"); var webpage = require("webpage"); var defaultTimeout = 2000; // get arguments var portStr; if (system.args.length > 1) portStr = system.args[1]; else if (system.env.PORT) portStr = system.env.PORT; else { console.error("Server port is not specif...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Toggle from 'react-toggle'; import { fromJS } from 'immutable'; import { Link } from 'react-router-dom'; import OutsideClick from 'components/OutsideClick'; import { ShareIcon } from 'components/ic...
const defaultSettings = { 'url': 'https://source.unsplash.com/random/1920x1080/', 'interval': 60, 'intervals': [1, 5, 15, 30, 60, 120, 360, 720, 1440] }; chrome.storage.local.get(storage => { if (Object.keys(storage).length === 0) { chrome.storage.local.set(defaultSettings); } }); /* chrome.storage.sync.clear();...
import { Regulator, Vector3 } from 'yuka'; import { CONFIG, TEAM } from '../core/Constants.js'; const _target = new Vector3(); /** * Helper class to determine the best spots for a supporting soccer player to * move to. * * @author {@link https://github.com/Mugen87|Mugen87} */ class SupportSpotCalculator { /** * C...
import React from 'react'; import clsx from 'clsx'; import { Button } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import Drawer from '@material-ui/core/Drawer'; import Box from '@material-ui/core/Box'; import AppBar from '@mat...
//对齐方式 z.DC["dataurl_ct_colalign"] = { data: [ { value: 1, text: "居左" }, { value: 2, text: "居中" }, { value: 3, text: "居右" } ] } //显示/隐藏 z.DC["dataurl_ct_colhide"] = { data: [ { value: 0, text: "显示" }, { value: 1, text: "隐藏" } ] }; //冻结 z.DC["dataurl_ct_colfrozen"...
import { createAction, handleActions } from 'redux-actions'; import { createSelector } from 'reselect'; import memoize from 'lodash/memoize'; import { bulkMerge, del, merge, setMap } from '../utils'; /* Types */ const FETCH_ITEM = 'Publishers/FETCH_ITEM'; const FETCH_ITEM_SUCCESS = 'Publishers/FETCH_ITEM_SUC...
import axios from 'axios'; import Chart from 'chart.js'; import concat from 'unique-concat'; import type from 'type-detect'; import swal from 'sweetalert2'; import * as moment from 'moment'; import 'moment/locale/vi'; moment.locale('vi'); /** * SETUP */ const _axios = axios.create({ baseURL: `${window.location...