text stringlengths 3.07k 16k |
|---|
/**
** GLOBAL GALLERY FUNCTIONS
*/
var nameMap = new Array();
var requestedNames = new Array();
var userAgent = navigator.userAgent.toLowerCase();
var assetpath = '../';
var urlToGallery = '';
var currentAdIndex = 0;
function getAdvertHTML(asset_path,css,adSlot,w,h,callback){
callback = callback||'';
currentAdIndex... |
const MutationTypes = require("./MutationTypes");
const Individual = require("./Individual");
const GeneTypes = require("./GeneTypes");
require("../AddOns/ArrayAddOns");
class Population {
constructor(
_numberOfIndividuals = 20,
_buildingblocks = [{ type: GeneTypes.int }, { type: GeneTypes.int }],
_fitne... |
import React from "react";
import styled from "styled-components";
import Confetti from "react-confetti";
import SEO from "../components/seo";
const Wrapper = styled.div`
max-width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 20px... |
import React, {useState} from 'react'
import './App.css'
import 'antd/dist/antd.min.css'
import moment from 'moment';
import { CSVLink } from "react-csv";
import {
Button,
Table,
Tag,
Space,
InputNumber,
Input,
Form,
Typography,
Popconfirm,
DatePicker,
Select,
message
} from 'antd'
imp... |
/**
* This file is part of the Ingram Micro Cloud Blue Connect SDK.
*
* @copyright (c) 2020. Ingram Micro. All Rights Reserved.
*/
const { promisify } = require('util');
const { spawn } = require('child_process');
const exec = promisify(require('child_process').exec);
const fs = require('fs');
const jsdoc2md = re... |
import React, { Component } from 'react';
import axios from 'axios';
import Banner from './common/Banner'
import ManageLottery from './ManageLottery'
import ViewPlayers from './ViewPlayers'
import ViewTickets from './ViewTickets'
import { setPanelType, setTicketPrice, setLotteryWinner } from '../redux/reducers/admin'... |
/* Copyright 2016 Novartis Institutes for BioMedical Research Inc. 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 agr... |
// All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP).
//
// Please see license.txt for details.
import React, { useEffect, useState } from "react";
import PropTypes from "prop-types";
import ErrorBoundary from "../errorBoundary/ErrorBoundary";
import {... |
import path from 'path'
import express from 'express'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import config from '../../webpack.client.config.js'
import bodyParser, { raw } from 'body-parser'
import {apiSearchDiagn... |
import React, { Component } from "react";
import { Image, Text, View, StyleSheet, FlatList, SafeAreaView, TouchableOpacity, Dimensions, TextInput, ImageBackground, ScrollView, Platform } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import { firestore } from "../firebase/firebase";
impo... |
let userInputEl = document.querySelector("#user-form");
let birthdateInputEl = document.querySelector("#birthdate-input");
let newsContainerEl = document.querySelector("#news");
let moviesContainerEl = document.querySelector("#movies");
let musicContainerEl = document.querySelector("#albums");
let newsArray = [];
let ... |
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
physics: {
default: 'arcade',
arcade: {
gravity: {y: 300 },
debug: false
}
},
scene: {
preload: preload,
create: create,
update: update
}
};
var socket = io();
var game = new Phaser.Game(config);
function pre... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { scaleLinear } from 'd3-scale';
import { format } from 'd3-format';
import YAxis from '../ui/YAxis';
const Container = styled.div`
border: 1px solid #999;
margin: 0;
padding: 1rem;
`;
const TaxBurdenC... |
function enviarForm() {
$('#loading_gif').show();
$('#charts-div').hide();
$('#qrcode').hide();
$('#loading_gif').show();
//$('#qrcode_label').text(res.tbai_id);
$('#qrcode_label').hide();
$.ajax({
type: "get",
url: "/insertmanyagrupadas?num=" + $('#numFacturas').val(),
... |
const fetch = require('node-fetch')
const { toXML } = require("jstoxml");
'use strict';
/*
// option template
// you can try this
// ===========================================
// https://www.dpriver.com/pp/sqlformat.htm
// ===========================================
let options = {
dbvendor : "oracle", // endor, ac... |
/**
* @version 20201011
* @author moto1101
* @description A NodeJS application which converts video captions from SRT to VTT.
*
MIT License
Copyright 2020 moto1101
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decora... |
/*
Author: <NAME>
Date: 4/27/19
Description: This file holds the routes for the user dashboard. The users can view their
listings and messages here.
*/
const express = require('express');
const multer = require('multer');
const fs = require('fs');
const Jimp = require('jimp');
const db = require('../model/database.js')... |
import React, {Component} from "react";
import {Text, ScrollView, TouchableOpacity, StyleSheet, View, Dimensions, Image, Animated} from "react-native";
import gql from 'graphql-tag';
import { Query } from 'react-apollo';
import {NavigationBar} from "../../../AliceComponents/NavigationBar";
import Modal from '../Compone... |
// Copyright (c) 2012, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of condi... |
/*
视频播放demo
*/
import React from 'react'
import {
View,
Text,
StyleSheet,
TouchableWithoutFeedback,
TouchableOpacity,
Dimensions
} from 'react-native';
import Video from 'react-native-video'
// 导入 Silder组件
import Slider from '@react-native-community/slider'
// 屏幕方向锁定: 他需要改变 原来Android文件代码,... |
const chokidar = require('chokidar');
const compression = require('compression');
const express = require('express');
const app = express().use(compression());
const server = require('http').createServer(app);
const jsonParser = require('body-parser').json();
const path = require('path');
const fs = require('fs');
cons... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var peringatan = '<div role="alert" class="alert alert-danger alert-dismissible fade in">'+
'<button aria-labe... |
var R = require("../lib/algebra");
var p = R.parse, be = R.be;
R.precision = 2
var FF = R.FloatField;
be('FF:2+3=5',FF.add(2,3)===5);
be('FF:2^3=8',FF.power(2,3)===8);
var F7= R.FiniteField.create(7);
var a = 3, b=6;
be('F7:3+6=2', F7.add(a,b)===2);
be('F7:3*6=4', F7.mul(a,b)===4);
/*
be('F7:closabilit... |
import ReactDOM from 'react-dom'
import {render} from 'react-dom';
import FastClick from 'fastclick';
import {match} from 'universal-router';
import routes from './routes';
import history from './core/history';
import {readState, saveState} from 'history/lib/DOMStateStorage';
import App from './components/App';
import ... |
/* CSCN - Created with jsPsychMaker: https://github.com/gorkang/jsPsychMaker */
questions = ( typeof questions != 'undefined' && questions instanceof Array ) ? questions : [];
questions.push( check_fullscreen('Cov19Q') ); //final timeline
Cov19Q = []; //temporal timeline
var instruction_screen_experiment = {
... |
// Originally created by <NAME> https://github.com/MikeCroall/p5-playground
// final
var MAX_SPEED_AT_SPAWN_IN_ONE_DIRECTION = 50;
var INITIAL_BALL_SPAWNS = 40;
// Matter.js aliases
var World = Matter.World,
Engine = Matter.Engine,
Events = Matter.Events,
Bodies = Matter.Bodies;
// Matter.js instances
va... |
var stream = require('stream')
, mime = require('mime')
, util = require('util')
, bl = require('bl')
, caseless = require('caseless')
, bestencoding = require('best-encoding')
, zlib = require('zlib')
;
// This could eventually be its own module.
function mutations (src, dest) {
if (src.headers && des... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React from 'react'
import propTypes from 'prop-types'
import { useSelector, useDispatch } from 'react-redux'
import styled from '@emotion/styled'
import {
selectCustomer,
selectCustomerFavorites,
setOrderServiceType,
setAddress,
reorderPastOrder,
// editOrder,
} from '@open-tender/redux'
import {
m... |
// MATERIALIZE ELEMENT INIT
(function($){
$(function(){
$('.button-collapse').sideNav();
$('.parallax').parallax();
}); // end of document ready
})(jQuery); // end of jQuery name space
$(document).ready(function() {
Materialize.updateTextFields();
});
// HELPER FUNCTIONS
String.prototype.supplant ... |
/* global RTCIceCandidate, RTCPeerConnection */
import Logger from '../utils/Logger';
const log = Logger.module('BaseStack');
const BaseStack = (specInput) => {
const that = {};
const specBase = specInput;
const logs = [];
const logSDP = (...message) => {
logs.push(['Negotiation:', ...message].reduce((a... |
var env = process.env.NODE_ENV;
var request = require('request');
var Promise = require('bluebird');
var shortid = require('shortid');
module.exports = Server;
function Server() {
this.relays = {};
}
Server.prototype.destroyRelay = function($happn, token, callback) {
var componentName = token.name;
var code ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import {
componentProduct,
invert,
mvMultiply,
normalize,
ORIGIN,
... |
import React from 'react';
import SelectAsync from 'react-select/lib/Async';
import graphQLFetch from '../GraphQLFetch.js';
import Login from '../components/Login.js';
import {
Card,
Row,
Col,
CardHeader,
Button,
CardTitle,
CardBody,
CardText,
ListGroup,
ListGroupItem,
Alert,
FormGroup,
Label,... |
/*
vyvy.js
created by <NAME>
copyright 2021
*/
/* create all variable */
var vyAttrInput = 'vy-input',
vyAttrIf = 'vy-if',
vyAttrClick = 'vy-click',
vyAttrText = 'vy-text',
vyAttrHtml = 'vy-html',
vyAttrOn = 'vy-on',
vyAttrFor = 'vy-for',
vyAttrForValue = 'vy-for-val',
vy_el_input = document.querySelectorAll('[' ... |
const webpack = require("webpack");
const HappyPack = require("happypack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
const TerserJSPlugin = require("terser-web... |
/*
For Dragon's Breath spell.
This macro will give the target an at-will Dragon's breath spell to use to roll damage.
The macro will remove the at-will spell from the target when the spell ends.
Add this macro to an effect to be transferred to the target
Requires the spell to already be created.
*/
// To use, assumin... |
module.exports = env;
env.list = list;
env.desc = "Cloud app environment variables";
env.usage = "fhc env create <app-guid> <var_name> [<var_value>] --env=<environment>"
+"\nfhc env update <app-guid> <var_id> [<new_var_name>] [<var_value>] --env=<environment>"
+"\nfhc env read <app-guid> <var_id> ... |
'use strict'
var path = require('path')
var Builder = require('systemjs-builder')
module.exports = function (grunt) {
grunt.registerMultiTask('systemjs', 'SystemJS modules builder', function () {
var done = this.async()
var taskConfig = this.data
// Merge task-specific options with these defaults.
... |
#!/usr/bin/env node
/*
* Append sdf png files to existing mapbox json and png files.
*
*/
/*
Assumes the input files have been downloaded with something like:
wget --output-document=sprite.json https://api.mapbox.com/styles/v1/mapbox/streets-v9/sprite.json?access_token=pk.eyJ1IjoiZGVycmlja29zd2FsZCIsImEiOiJjaWV6... |
import fs from 'fs'
import Koa from 'koa'
import path from 'path'
import send from 'koa-send'
import crypto from 'crypto'
import Router from '@koa/router'
import bodyParser from 'koa-bodyparser'
import serveClient from './client'
import config from '../config.json'
// Create a Koa server.
const app = new Koa()
const r... |
//playing with modularity
/*var log = function(output){
document.getElementById("output").innerHTML = output;
};
export default log;*/
/*
//more examples
var log = function(output){
document.getElementById("output").innerHTML = output;
};
export var appName = "Chapter 10 Code Illustrations";
export var dum... |
$(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
/*swal({
title: 'Success...',
type: 'success',
text: 'Everything is ok!',
timer: 5000,
allowOutsideClick : false,
showConfir... |
const LanguageParser = require("parser.js");
/**
* TypeScript Parser
* @extends LanguageParser
*/
class TypeScriptParser extends LanguageParser {
constructor() {
/**
* Language specific settings
* @type Object
* @property {string} language
* @property {string} varId... |
import React, { Fragment, useEffect, useState } from 'react';
import { Box, Button, InputAdornment, Grid, TextField, Popover } from '@mui/material';
import Header from '../../components/Header/Header';
import { Search, Close, } from "@mui/icons-material";
import DataList from './component/List/List';
import TrendingIco... |
import { connect } from 'react-redux';
import { compose } from 'redux';
import React, { memo, useEffect } from 'react';
import { createStructuredSelector } from 'reselect';
import { useParams } from 'react-router-dom';
import moment from 'moment';
import PaperCard from '../../components/PaperCard';
import { Col, Image,... |
const Tokenizer = require("./Tokenizer");
const is_keyword = require("./Constant").is_keyword;
const begin = require("./AST").begin;
const define = require("./AST").define;
const if_ = require("./AST").if_;
const let_ = require("./AST").let_;
const lambda = require("./AST").lambda;
const apply = require("./AST").apply;... |
import React from 'react'
import styled from 'styled-components';
import {graphql} from 'gatsby';
import Image from 'gatsby-image';
const StyledWrapper = styled.div`
width: 100%;
min-height: 100vh;
background-color: #1EBDE0;
padding: 100px 10px;
display: flex;
justify-content: flex-start;
align-items: center;
f... |
var express = require('express'); // Express web server framework
var router = express.Router();
var request = require('request'); // "Request" library
var querystring = require('querystring');
var serviceYoutube = require('./service/serviceYoutube.js');
var api_key = process.env.API_KEY_YOUTUBE;
var client_secret = pr... |
import _ from 'underscore';
import op from 'object-path';
import React, {
forwardRef,
useCallback,
useImperativeHandle,
useRef,
} from 'react';
import Reactium, {
__,
useAsyncEffect,
useDerivedState,
useEventHandle,
useHookComponent,
useStatus,
} from 'reactium-core/sdk';
cons... |
// Write data in schools.json into our global variable. I use the word "product" as a general term to describe the main object of the app.
var products = [
{id: 1, name: 'Avon Elementary School', county: 'District of Columbia', students: 1973, grades: '1-5'},
{id: 2, name: 'Britten High School', county: 'Distric... |
var exports = module.exports = {};
var cheerio = require('cheerio');
const puppeteer = require('puppeteer');
var parse = require('csv-parse');
var _ = require('lodash');
function NflScraper() {
const PAGE_LOAD_TIMEOUT = 30 * 1000;
var browser = null;
const vm = this;
function precondition(statement, m... |
const request = require("request");
const { default: Neon, api, wallet, u, nep5, sc } = require("@cityofzion/neon-js");
const settings = {
neo: {
testnet: {
whitelist: [
".ngd.network",
".cityofzion.io",
".redpulse.com"
],
node_list_url: "http://monitor.cityofzion.io/assets/testnet.j... |
const Discord = require("discord.js");
const fs = require("fs");
const CommandProcessor = require('./commandProcessor');
const RulesData = require("./rulesData");
const HelpCommand = require('./commands/helpCommand');
const ListCommand = require("./commands/listCommand");
const CleanUpCommand = require("./commands/clea... |
//# sourceURL=/Datafari/admin/ajax/js/autocompleteConfiguration.js
$(document).ready(function() {
//Internationalize content
document.getElementById("topbar1").innerHTML = window.i18n.msgStore['home'];
document.getElementById("topbar2").innerHTML = window.i18n.msgStore['adminUI-SearchEngineAdmin'];
document.getEl... |
const Command = require("../base/Command");
class Charactergear extends Command {
constructor(Bot) {
super(Bot, {
name: "charactergear",
category: "Star Wars",
aliases: ["chargear", "gear"],
permissions: ["EMBED_LINKS"]
});
}
async run(Bot, m... |
function objectSortableOn() {
$('#subcategories_list').sortable({
update: function() {
var values = $('#subcategories_list').sortable('serialize');
values += '&category=' + category;
$.ajax({
url: '/ajaxChangeSubcategoryOrder.php',
type: 'post',
dataType: "text",
data: val... |
import React from "react"
// import "./main.css";
import ReactDOM from "react-dom"
import { graphql, Link } from "gatsby"
/* --------------------- Asset Imports --------------------- */
import squareBreathingUrl from "../assets/images/projects/square-breathing-bg.webp"
import aamImageUrl from "../assets/images/projects... |
/*
* Copyright 2021 Huawei Technologies Co., Ltd.
*
* 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 appl... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*
* @author <NAME>
* @author <NAME>
* @author <NAME>
*
*/
import React from 'react';
import {Button, Text, View, ScrollView, Alert, StyleSheet, RefreshC... |
// rqs.js
// provide timeout notification for callback functions
// © <NAME> 2012 MIT License
var apperror = require('./apperror')
// https://github.com/haraldrudell/haraldutil
var haraldutil = require('haraldutil')
// http://nodejs.org/api/events.html
var events = require('events')
/*
typical code:
var rqs = apprunn... |
import React from "react";
import {
FormControl, InputLabel, MenuItem, Grid,
Select, TextField, withStyles, Box, Typography
} from "@material-ui/core";
import nextId from "react-id-generator";
import {getProducts} from "../../../../backend/product";
import {getMarkets} from "../../../../backend/market";
impor... |
"use strict";
let request = require("request");
let pogobuf = require("pogobuf");
let assets = {};
// asset to use
let current_asset = null;
let session = null;
let loggedIn = false;
let platforms = [
{
name: "android",
platform: 2,
manufacturer: "LGE",
model: "Nexus 5",
locale: "",
versi... |
'use strict';
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 ("va... |
var xlsx = require('xlsx');
var fs = require('fs');
var Excel = require('exceljs');
var workbook1 = new Excel.Workbook();
if (typeof require !== 'undefined') XLSX = require('xlsx');
var workbook = XLSX.readFile('boxxspring.xlsx', {
cellStyles: true
});
var currentCount;
var worksheet = workbook.Sheets['addcollection'... |
const path = require('path');
const utils = require('./lib/utils');
const validate = require('./lib/validate');
const workerFarm = require('worker-farm');
const os = require('os');
const chokidar = require('chokidar');
const uglifyIe8tips = require('./ie8.uglify');
const stylesCompiler = require('./style-compiler/index... |
module.exports = {
getQuoteChar,
dataType,
toCsv,
putData,
allObjsOrArray,
getHeaders,
getLengthyItem,
addDataInSchema,
removeQuote,
arrayToCsv,
objectToCsv,
convertArray,
csvToArray,
};
function getQuoteChar(q) {
if (typeof (q) === 'string') {
return q;
} if (q === true) {
return... |
import {
GraphQLObjectType,
GraphQLString,
GraphQLFloat,
GraphQLNonNull, GraphQLInputObjectType, GraphQLInt, GraphQLList, GraphQLBoolean,
} from 'graphql';
import CommentType from './CommentType';
import TripType from './TripType';
export const PostType = new GraphQLObjectType({
name: 'Post',
description: ... |
import { calcScrollViewHeight, formatShop, formatSign } from '/utils';
import { merchantDetail, visitRecord, getContacaList } from '/api/merchant';
const app = getApp();
const cooperateTypeMap = {
normal: '正常合作',
stop: '停止合作',
silent: '静默',
}
Page({
data: {
contractorId: '', // 客户id
tabList: [{title: ... |
/**
* 额度管理审核
*
*/
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Row, Col, Card, Form, Input, Select, Button, DatePicker, Modal, Divider, Tabs, Table } from 'antd';
import StandardTable from '../../components/StandardTable';
import PageHeaderLayout from '../../layouts/PageHead... |
const trackList = document.getElementById('track-list');
const trackNameSearch = document.getElementById('track-name-search');
const trackNameInput = document.getElementById('track-name-input');
const trackCreatorInput = document.getElementById('track-creator-input');
const errorMessages = document.getElementById('erro... |
const request = require('request')
const fs = require('fs')
const Discord = require('discord.js')
var config = require("./config.json")
var bdd = process.env.BDD || process.argv[2]
var bdd_number = process.env.BDDNUMBER || process.argv[2]
var bdd_id = process.env.BDDID || process.argv[2]
module.exports.run = (client, ... |
#!/usr/bin/env node
"use strict";
/* jshint ignore:start */
const path = require("path");
const fs = require("fs");
const http = require("http");
const puppeteer = require("puppeteer");
const webserverPort = 8000;
if (process.argv.length !== 3) {
console.log("Usage: smokeTest.js csscriticLoadingHtmlPage");
proce... |
// fungsi validasi input user baak
function validate_user()
{
let vd = $('#formUser').validate({
rules : {
username : {
required : true,
minlength : 5,
... |
'use strict';
/**
* Module dependencies.
*/
var express = require('express');
var flash = require('connect-flash');
var helpers = require('view-helpers');
var compression = require('compression');
var favicon = require('serve-favicon');
var logger = require('morgan');
var formidable = require('formidable');
var cook... |
var path = require('path');
var fs = require('fs');
var util = require("../util/util");
var async = require("async");
var request = require("request");
var http = require("http");
var https = require("https");
var logFactory = require("../util/logger");
/**
* WCM Resource Dependency Manager
*
* Tracks page rendit... |
import React from 'react';
import { Table,Pagination,Popup ,Input,Header,Transition,Button,Icon} from 'semantic-ui-react';
import { toast } from "react-toastify";
import {Link } from 'react-router-dom';
import AddCompanyModal from './AddCompanyModal';
import ApiHelper from '../../../helpers/ApiHelper';
import urls fro... |
import { Fragment, useState, useEffect } from 'react'
import Courses from './courses'
import api from '../../api'
import style from '../../styles/package/createpackage'
const CreatePackage = (props) => {
const [alert, setAlert] = useState({
pic: false,
name: false,
category: false,
detail: false,
courses: f... |
const express = require('express');
const router = express.Router();
const passport = require('passport');
const validateEventInput = require('../../validation/event');
const Event = require('../../models/Event');
const Notification = require('../../models/Notification');
// GET /api/events/all
// fetch all events
r... |
import { remove, get, put } from '@/util/localstorage'
import Config from '@/config/config'
const connectReducer = (
state = {
activeKey: "Welcome",
currentDb: 0, // 当前选择的DB
redisActiveData: [], // 打开的tab标签连接信息数据
connected: {}, // 已经在后台生成redis连接对象的连接。格式 {redis_connect$9e28f438... |
import React, { useState } from "react";
import {
StyleSheet,
SafeAreaView,
FlatList,
View,
Text,
TouchableOpacity,
ToastAndroid,
} from "react-native";
import Autocomplete from "react-native-autocomplete-input";
import { AntDesign } from "@expo/vector-icons";
import Constants from "expo-constants";
impor... |
const path = require('path')
const fs = require('fs')
const os = require('os')
const {Command, flags} = require('@oclif/command')
const Listr = require('listr')
const rp = require('request-promise')
const MediumMetadata = require('./scrapers/metadata')
const {getSupportedLanguages} = require('./pipeline/detect-code-blo... |
function FooSet(IP, IPcus, IDENTITY, Flag, SchFlag, ttsh, SS , SSvalue , Signage) {
const iden = IDENTITY;
const serIP = IP;
const serIPcus = IPcus;
const isSerdefault = Flag;
const isSchdefault = SchFlag;
const isttsh = ttsh;
const isScreenShot = SS;
const SSInt = SSvalue;
const is... |
// Array holding potential list of words for each game
var gameWords = ["overwatch","junkrat","reaper","volskaya","tracer","widowmaker","zenyatta","roadhog","dragonblade","dragonstrike","supercharger","earthshatter","nanoboost","transcendence","doomfist","junkertown","numbani","hanamura"];
// Object to store game prop... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
'use strict';
const fs = require('fs');
const jwt = require('jsonwebtoken');
const mqtt = require('mqtt');
const TOKEN_EXP_MINS = 20;
const DEFAULT_TEMP_CELSIUS = 20;
var argv = require(`yargs`)
.options({
projectId: {
description:
'Google Cloud Project ID to use.',
requiresArg: true,
... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import axios from 'axios';
import Header from 'containers/header';
import Layout, { Group } from 'components/layout';
import Hero, { Heading, Copy } from 'components/hero';
import Form, { Field } from '... |
/**
* A bunch of helpers extracted from routes to make it easier to deal with
*/
var util = require('./util'), _u = require('underscore');
"use strict"
function idObj(req) {
var id = req.params && req.params.id || req.body && req.body._id || req;
if (!id)
throw new Error("id not in request or body");
... |
import React, { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import { makeStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
import Grid from "@material-ui/core/Grid";
import Typography from "@material-ui/core/Typography";
import List from "@m... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Koa = _interopDefault(require('koa'));
var fs = require('fs.promised');
var path = _interopDefault(require('path'));
var Router = require('koa-router');
var serve = _interopDefault(requ... |
/**
* Created by Xuan on 07/11/2015.
*/
var index = 0;
var player = jwplayer("media-player");
var next_in_player = true;
var current_caption = 1;
var current_server = '';
var current_time = 0;
var server_gg_default = 9;
var movie_id = $('#media-player').attr('movie-id');
var player_token = $('#media-player').attr('pl... |
const globalData = document.getElementById("global-data")
const dataMapping = JSON.parse(globalData.dataset.mapping)
let searchUrl = globalData.dataset.url
const drawTimeline = () => {
const dataElements = [
document.getElementById("submission-timeline-data"),
document.getElementById("talk-timeline-data"),
... |
import React from 'react';
// eslint-disable-next-line
import Displaygame from './Displaygame';
import { Link } from 'react-router-dom';
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
class Gamelist extends React.Component {
constructor() {
super();
this.state =... |
import React, {
useState,
useRef,
useEffect,
useCallback,
useMemo,
} from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import { FaDownload, FaInfoCircle } from 'react-icons/fa';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { makeStyl... |
/***************************************************************************
Copyright 2015 OSIsoft, LLC.
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/l... |
import request from 'superagent';
import itsSet from 'its-set';
import merge from 'lodash/merge';
import { FRAGMENT_DEFAULTS } from './Fragment';
const RESOURCE_FRAGMENT_DEFAULTS = {
baseUrl: () => '',
list: Object.assign({}, FRAGMENT_DEFAULTS),
create: Object.assign({}, FRAGMENT_DEFAULTS, { method: () => 'POST... |
let searchInput = document.querySelector("#member-search");
let memberSearchList = document.querySelector("#member-search-results");
let memberChosenList = document.querySelector("#member-chosen-list");
let chosenMembers = [];
let buttonSubmit = document.querySelector("#btn-chat-room-create");
searchInput.addEventList... |
var JWT =
{
algorithm: "HS256",
algos: ["HS256","RS256"],
algfun: [
{
sign: function(si,k)
{
hashing.hmac_hash = hashing.sha256;
return encoding.base64_urlencode(
encoding.hstr2astr(hashing.HMAC(k, si))
);
},
verify: function(si,k,h)
{
return this.sign(si,k)==h;
}
}, {
... |
//Rect(x,y,w,h,color) - рисует прямоугольник
// render().draw(5,5,5,5,'green');
// canvas = document.getElementById(canvas);
// var rect = (x,y,w,h) =>{
// render(canv).draw(x,y,w,h,'green');
// }
// this.render = function(Construct){
// var red = new Construct();
// };
// var VECTOR2 = (x,y) => {
// this.x;
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.