text
stringlengths
3.07k
16k
import { BaseGLGlyph } from "./base"; import { Float32Buffer, NormalizedUint8Buffer, Uint8Buffer } from "./buffer"; // Avoiding use of nan or inf to represent missing data in webgl as shaders may // have reduced floating point precision. So here using a large-ish negative // value instead. const missing_point = -10000...
$(document).ready(function() { if($('#inputCPF').val().length > 0){ $('#inputCPF').mask('000.000.000-00'); } //Exibição de usuário if(userConfig === 'show'){ $('#passwordContainer').css('display', 'none'); $('input').prop('readonly', true); $("#cbAdm").on("click", false); $("#deleteB...
import React from 'react'; import { List, fromJS } from 'immutable'; import FlatButton from 'material-ui/FlatButton'; import { EditorState, RichUtils, CompositeDecorator, convertToRaw, convertFromRaw } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import editorStyles from './editorStyles.css'; requir...
// Copyright IBM Corp. 2016. All Rights Reserved. // Node module: microgateway // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. 'use strict'; var echo = require('../support/echo-server'); var apimServer = require('../support/mock-apim-...
/*jslint white: true */ /*global Future, log, finishAssistant_global, logSubscription, startAssistant, logToApp, PalmCall, DB, fs */ var doExportAssitant = function (future) { "use strict"; }; doExportAssitant.prototype.createHeadingLine = function () { "use strict"; var line = "Timestamp\tDateTime\tServiceName\t...
const connection = new signalR.HubConnectionBuilder() .withUrl("https://localhost:5001/gamehub") .configureLogging(signalR.LogLevel.Information) .build(); let ID = function () { // Math.random should be unique because of its seeding algorithm. // Convert it to base 36 (numbers + letters), and grab ...
//The point of this script is to create a scene that lets users play an arithmetic game class mathmicrofirst extends Phaser.Scene { constructor() { super({key:"mathmicrofirst"}); } preload() { //sets background to very light gray this.cameras.main.setBackgroundColor('#E0DBD1') ...
Number.prototype.formatNumber = function(places, symbol, thousand, decimal) { places = !isNaN(places = Math.abs(places)) ? places : 2; symbol = symbol !== undefined ? symbol : "$"; thousand = thousand || ","; decimal = decimal || "."; var number = this, negative = number < 0 ? "-" : "", i = parseInt(number =...
'use strict'; const _ = require('lodash'); const cheerio = require('cheerio'); const async = require('async'); const util = require('util'); const debuglog = util.debuglog('ans'); const bulk = require('bulk-require'); const lib_i = bulk(__dirname + '/lib', ['inflators/**/*.js', '**/*.js']); const inflators = lib_i.inf...
function compareFootprints(entitiesA, entitiesB, keyPhrasesA, keyPhrasesB) { // compare entities let entitiesAlength = entitiesA.length; let entitiesBlength = entitiesB.length; // we store these because we may splice one of the arrays if (entitiesAlength > entitiesBlength) { let entitiesC = [...entitiesB]...
import React, { Suspense, useEffect, useRef, useState } from 'react' import ThreeCanvas from 'three/ThreeCanvas' import { useFrame, useLoader } from '@react-three/fiber' import { CanvasContainer } from 'common/styles' import { OrbitControls } from '@react-three/drei' import { BoxBufferGeometry, CameraHelper, Cone...
/** Klassi Automated Testing Tool Created by <NAME> */ /** Copyright © klassitech 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/LI...
import React, { useState, Suspense } from "react"; import clsx from "clsx"; import { makeStyles } from "@material-ui/core/styles"; import CssBaseline from "@material-ui/core/CssBaseline"; import Drawer from "@material-ui/core/Drawer"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core...
import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { getActivities, deleteActivity, getUserProfile } from '../../actions/activities' export class GitView extends Component { static propTypes = { user: PropTypes.object.isReq...
/* Copyright (c) 2019 <NAME> <<EMAIL>>. See the LICENSE and NOTICE files for details. 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...
import React, { Component } from "react"; import { Button, Dialog, DialogContent, DialogTitle, DialogActions, CircularProgress } from "@material-ui/core"; import Delete from "@material-ui/icons/Delete"; import LazyLoad from "react-lazy-load"; import axios from "axios"; import Edit from "@material-ui/icons/E...
const VertexModel = require('./models/vertex-model'); const EdgeModel = require('./models/edge-model'); const DataTypes = require('./data-types'); const consoleLogger = (msg) => console.log(msg); class Gorm { constructor(dialect, connectionPool, logger) { // Constants this.DIALECTS = { AZURE: 'azure' }; ...
/* eslint-disable react/no-array-index-key */ import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableRow from '@material-ui/core/T...
init(); render(); var scene, camera, renderer; var container, stats; var params; var mesh; var clock; var sky; var ground; function init() { container = document.getElementById("container"); scene = new THREE.Scene(); params = { curveFactor: 1, spreadFactor: 1, newWind: false, spread: 60, ...
// var web_header_prefix = "http://10.0.88.46:86/piflow"; var web_base_origin = window.location.origin; var web_drawingBoard = "/drawingBoard"; var sever_base_origin = "http://10.0.85.80:6002/piflow-web"; // var basePath = window.sessionStorage.getItem("basePath") var basePath = null; // var token = top.window.sessionS...
var Sequelize = require("sequelize"); const express = require("express"); const router = express.Router(); var db = require("../models"); const qs = require('qs') const axios = require('axios'); let { each } = require("bluebird"); const dotenv = require("dotenv"); const config = require("../config/config.json") dotenv....
// This is a helper class for Google Login, intended to be replaced by application code /* eslint-disable camelcase */ /* global gapi */ import {loadGapi, loadGapiClient, initGapiClient, auth2Initialize} from './google-api'; const isBrowser = typeof document !== 'undefined'; const defaultProps = { // gapi.client ...
/* global d3, topojson, sszvis, config */ // Configuration // ----------------------------------------------- var queryProps = sszvis .responsiveProps() .prop("bounds", { _: function (width) { var innerHeight = sszvis.aspectRatioSquare(width); return { top: 30, bottom: 90, ...
'use strict'; // Imports const _ = require('underscore'), cheerio = require('cheerio'), moment = require('moment'); class BMTools { constructor () { this.lastCsrfToken = null; return this; } /** * Determines if a process is logged in order not. * {Usage} - request a business manager page via ...
var storyline = storyline || {}; storyline.access = (path) => { path = path.split('.'); let obj = storyline; for (const sub of path) { obj = obj[sub]; } return obj; } let widthDummy = null; function fitToText(element) { let elementStyle = window.getComputedStyle(element); widthDummy.style.fontSize = element...
// implementation of the Biham-Middleton-Levine traffic model. // author : Cédric "tuzepoito" Chartron // fallback for requestAnimationFrame var requestAnimation = window.requestAnimationFrame || function (callback, el) { setTimeout(callback, 1000/60.0); }; var BML = function (ctx, width, height) { var COLOR_WHIT...
// Static defines var DOMAIN = "https://api.hypixel.net"; // INSERT YOUR KEY HERE - OBTAIN BY RUNNING THE /api COMMAND ON HYPIXEL var KEY = "<KEY>"; var REJECTED_ITEMS = ["BLOCK", "COMPACTOR", "SILK", "TOOTH", "REVENANT", "FRAGMENT"]; var lastRefresh = new Date(0); // Globals var prices = {}; var actionTime = 10; var ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _propTypes = _interopRequireDefault(require("prop-types")); var _reactSwipeableViews =...
/* eslint-disable react/no-unescaped-entities */ /* eslint-disable max-len */ /* eslint-disable newline-per-chained-call */ import React from 'react'; import { useNavigate } from 'react-router-dom'; import * as Yup from 'yup'; import { Formik } from 'formik'; import { Box, Button, Container, TextField, Typogr...
/* by <NAME> ** Script for the quiz of the "Programmeerproject" */ var quiztitle = "(Pseu)do you know...."; var quiz = [{ "question": "Q1:...what the ailments are chiropractors claim they can help with?", "choices": ["Back problems", "Headaches and migraines originating from the neck", "ADHD and Autism", "All of th...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
// keep infinite to later clear var intervals = []; // elements to hide on recomputed var waitress_to_hide = []; function position_to_coords(position){ var pos = {}; var base_y = 0; var current_notifications = document.getElementsByClassName("waitress-notification"); for(var n of current_notifications){ b...
/* eslint-env mocha */ /* eslint max-nested-callbacks: ["error", 6] */ 'use strict' const chai = require('chai') chai.use(require('dirty-chai')) chai.use(require('chai-checkmark')) const expect = chai.expect const sinon = require('sinon') const each = require('async/each') const PeerBook = require('peer-book') const p...
/*----------------------------------------------*/ var Gpio = require('rpio'); const OUTPUT = Gpio.OUTPUT; const INPUT = Gpio.INPUT; const HIGH = Gpio.HIGH; const LOW = Gpio.LOW; //Gpio.init({mapping: 'gpio'}); var pinMode = (pin, mode) => { Gpio.open(pin, mode, LOW); } var digitalWrite = (pin, value) => { Gpio.write(p...
import React, { useState, useEffect } from "react"; import "./SignUp.css"; import image from "../../img/cyf.png"; import { useForm } from "react-hook-form"; import { useHistory } from "react-router"; import { yupResolver } from "@hookform/resolvers/yup"; import * as yup from "yup"; import { toast } from "react-toastify...
// ==UserScript== // @name AtCoderStandingsAnalysis // @namespace https://github.com/RTnF/AtCoderStandingsAnalysis // @version 0.1.3 // @description 順位表のjsonを集計し、上部にテーブルを追加します。 // @author RTnF // @match https://atcoder.jp/*standings* // @exclude https://atcoder.jp/*standings/json // @...
$(document).ready(function() { $('.confirm-btn').on("click", function(e) { p = $(this).data('confirm'); if (p) p += "\n\n"; p += '\n\nAre you sure?'; return confirm(p); }); $('#singleuploadformfile').on('change', function(e) { $('#singleuploadform').submit(); }); ...
'use strict'; const os = require('os'); const fs = require('fs/promises'); const fsSync = require('fs'); const path = require('path'); const yaml = require('js-yaml'); const degit = require('tiged'); const dotProp = require('dot-prop'); const {outdent} = require('outdent'); const {promisify} = require('util'); const sp...
/** * @license Copyright (c) 2003-2017, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md. */ /* globals document */ import IconView from '../../../src/icon/iconview'; import '@ckeditor/ckeditor5-theme-lark/theme/theme.scss'; const wrapper = document.querySelector( '#inline-svg' ); const i...
// external dependencies const prompts = require('prompts'); const program = require('commander'); const didYouMean = require('didyoumean'); // internal modules const path = require('path'); const fs = require('fs'); const util = require('util'); const exec = util.promisify(require('child_process').exec); const os = r...
/* * This file belongs to Hoist, an application development toolkit * developed by Extremely Heavy Industries (www.xh.io | <EMAIL>) * * Copyright © 2021 Extremely Heavy Industries Inc. */ import {box, vbox, vframe} from '@xh/hoist/cmp/layout'; import { hoistCmp, ModelPublishMode, refreshContextView, ...
/* @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
const express = require('express'); const configJSON = require('../config/config-json'); // setup the split example app module.exports = function splitExample(app, options) { const moduleDirectory = `${options.rootDirectory}/modules/discount-redemption-split`; // setup static resources app.use('/modules/d...
/** * Copyright 2021 Google 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
import React, { useState, useEffect, useContext } from 'react'; import axios from 'axios'; import { fade } from '@material-ui/core/styles/colorManipulator'; import { withStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import IconButton from '@material-ui/core/IconButton'; import R...
/** * * <pre> * Title: 【报表处理】-【报表审核】 * Description: 报表处理-报表审核:单条审核页面 * 此页面提供了报表审核:单条审核的操作,可以允许用户审核通过或退回报表的填报任务 * 若审核通过,则此任务的状态变更为完成,并将数据回灌到全量层和_M表。若审核不通过,则退回子任务,继续填报 * </pre> * @author liangzy5 * @version 1.00.00 @date 2020年8月18日 */ var data = ""; var tabName = ""; var tabNameEn = ""; var taskId = ""; v...
/** * Streaming class which handles the Streaming-Page * @author <NAME> <robinbuerkli at bluewin dot ch> */ // Properties var self; /** * Constructor of the streaming class * * @constructor */ function Streaming() { self = this; // Init datatable this.initTable(); // Register/Bind Events ...
/** * CustomerNode Class */ function CustomerNode(id, serviceTime){ this.id = id||undefined; this.serviceTime = serviceTime||undefined; } /** * Queue Class */ function Queue(){ this.nodes = []; } Queue.prototype.dequeue = function (node){ return this.nodes.splice(0,1)[0]; }; Queue.prototype.queue =...
const viewCount = { 3000: 7, // 0: 3 seconds 10000: 8, // 1: 10 seconds 15000: 9, // 2: 15 seconds 20000: 8, // 3: 20 seconds 40000: 7, // 4: 40 seconds 60000: 6, // 5: 60 seconds 75000: 7, // 6: 75 seconds 80000: 5, // 7: 80 seconds 83000: 6, // 8: 83 seconds 90000: 7, // 9: 90 ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
/** * Pool Manager module. Keeps all pools in, handles reconnect(s), enable/disable etc. * Must not do anything outside of its scope!! * * @module mining/pool/manager */ const loghelper = require('../../core/log/helper') const {Stratum} = require('stratum-client'); const uuid = require('../../utils/uuid'); const...
/* Copyright (c) 2019 <NAME> <bhop.me> 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, distribute...
// Board.test.js const truffleAssert = require("truffle-assertions"); const { assert } = require("chai"); const { ethers } = require("ethers"); const { BN } = require("@openzeppelin/test-helpers"); const { web3 } = require("@openzeppelin/test-helpers/src/setup"); const Board = artifacts.require("BoardContract"); const...
const limitNumber = 3; const _database = { database: null, user: {}, product: {}, init: function() { this.database = firebase.database(); }, // 유저 데이터를 가져옵니다. getUserData: function(callBack) { var dbTestRef = this.database.ref("user/"); dbTestRef.once("value").then(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileUpload = exports.HiddenSingleFileInput = exports.FileType = void 0; var _react = _interopRequireWildcard(require("react")); var _styledComponents = _interopRequireDefault(require("styled-components")); var A = _interopRequire...
export const inputCorrection = (value) => { let result = []; let v = value.replace(/[^A-Za-z0-9,]/g,''); v = v.split(','); v.forEach(i=>{ let field ; !isNaN(i.trim())|| i.trim().toLowerCase() === "true" || i.trim().toLowerCase() === "false" ? field =`${i.trim().toLowerCase()}`: field = ...
const ApiBuilder = require('claudia-api-builder'); const api = new ApiBuilder(); const AWS = require('aws-sdk'); const fetch = require('isomorphic-fetch'); const forgeSDK = require('forge-apis'); const getForgeSecrets = async () => { 'use strict'; let AWS = require('aws-sdk'), endpoint = "https://secretsmanager...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.settings = undefined; 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)) { ta...
const mysql = require('mysql'); const inquirer = require('inquirer'); // Connection var con = mysql.createConnection({ host: "localhost", user: "root", port: 3306, password: "<PASSWORD>", database: "business" }); con.connect(function(err) { if (err) throw err; console.log("Connected!...
const orientjs = require("orientjs"); const DB_NAME = "FIM"; const CLASS_USER = "User"; const CLASS_REALM = "Realm"; const CLASS_ALIAS_FOR = "AliasFor"; const CLASS_BELONGS_TO = "BelongsTo"; const CLASS_FEDERATES = "Federates"; const server = orientjs({ host: (process.env.ORIENT_HOST || "192.168.30.231"), po...
'use strict'; //var user = require('../user.json'); var user = ""; var avatar = ""; // Call this function when the page loads (the "ready" event) $(document).ready(function() { // console.log("hi"); initializePage(); }) /* * Function that is called when the document is ready. */ function initializePage() { $("....
let {fetch, Headers, Request, Response} = require('../runtime') let {http_date} = require('./util') let parse_options = (req, options) => { if(!(req instanceof Request)) req = new Request(req) if(!req.url.startsWith('http:') && !req.url.startsWith('https:')) throw new TypeError('request URL i...
/* Copyright IBM Corporation 2017 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
/* * //****************************************************************** * // * // Copyright 2017 Samsung Electronics All Rights Reserved. * // * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * // * // Licensed under the Apache License, Version 2.0 (the "License"); * // you may not use thi...
var server = require('http').createServer(); var io = require('socket.io')(server); var users = {}; var rooms = {} io.on('connection', function(socket){ socket.join("public"); socket.on("user.online",function( user ){ user.room = "public"; users[user.id] = user; socket.emit("room.change",getRo...
/* 路由懒加载 */ /* 首屏 */ const Layout = () => import( /* webpackChunkName: "group-home" */ '../views/Layout.vue') const HomePage = () => import( /* webpackChunkName: "group-home" */ '../views/home/HomePage.vue') const PersonalRecom = () => import( /* webpackChunkName: "group-home" */ '../views/home/homepageview/Persona...
import React, { useContext, useState } from 'react' import { useMutation, useQuery } from 'react-query'; import { Modal, Form as BootstrapForm } from 'react-bootstrap'; import { Formik, Form as FormikForm, Field, useFormikContext, } from 'formik'; import * as Yup from 'yup'; import { CheckoutContext } from '.....
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import Layout from "../components/layout" import Heading from "../components/text/Heading" import Paragraph from "../components/text/Paragraph" import WorkSubHeading from "../components/text/WorkSubHeading" import CallToAction fr...
const APP_TEMPLATE = ` <q-layout view="hHh Lpr lFf" style="height: 100%"> <q-header elevated> <q-toolbar> <q-btn flat @click="drawer = !drawer" round dense :icon="drawer ? 'menu_open' : 'menu'"></q-btn> <q-toolbar-title class="text-center"><router-link :to="'annotation'" style="color: inherit;">IMV Ul...
//same-site cookies secured document.cookie = "tagname = test"; //cart model class Cart { product; total = 0; quantity = 0; updateQuantity(quantity) { this.quantity = quantity; this.updateTotal(); } updateTotal() { this.total = this.product.unitPrice * this.quantity; ...
import * as d3 from 'd3' export function lesson03BarCharts () { let data = [ { country: 'United States', value: 12394 }, { country: 'Russia', value: 6148 }, { country: 'Germany (FRG)', value: 1653 }, { country: 'France', value: 2162 }, { country: 'United Kingdom', value: 121...
const path = require('path'); const _ = require("lodash"); const fetch = require("node-fetch"); const FeedParser = require("feedparser"); exports.createSchemaCustomization = ({ actions }) => { const { createTypes } = actions createTypes(` type googleSheetListRow implements Node { localImageUrl: File @lin...
#!/usr/bin/env node const { argv } = require("yargs") .usage("Usage: $0 [options] [JSON-files]") .nargs("gallery", 1) .describe("gallery", "Set to gallery, repeat for multiple") .group(["title", "description", "country"], "Properties") .nargs("title", 1) .describe("title", "Title") .nargs("description", 1...
var usrnamelist = []; var usridlist = []; var viewmylist = []; var viewname = []; var viewemail = []; var username = document.getElementById("db1username").innerText; var logurl1 = '/Login/ForgotPw'; var url1 = '/Home/mylist'; var url2 = '/Home/mystatus'; var ousersgetlist = []; var mylistidlist = []; var olistl = [];...
import React, {useState, memo, useEffect, useMemo} from "react"; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import { ExportService } from 'containers/Wijmo/export'; import { addOrganizationToRoles, getOrgById, getRoleById, searchBy, sortB...
/* ----- TrainingMenu - Opponent ----- */ function TrainingMenuOpponent(){ TrainingMenu.apply(this, arguments); } Object.assign( TrainingMenuOpponent, { prototype: Object.assign( Object.create(TrainingMenu.prototype), { constructor: TrainingMenuOpponent, ini...
// vim: set ts=2 sw=2 et const ERROR_BACKGROUND_COLOR = '#ffbbbb'; const FADE_DELAY = 2000; function getBrowserName() { if (typeof browser !== 'undefined') { return 'Mozilla'; } else { return 'Chrome'; } } function save_options() { if (!validate_options()) return; localStorage.click_page = $('#clic...
// Copyright 2016-2020, University of Colorado Boulder /** * a Scenery Node representing the beaker heater in the view * * @author <NAME> * @author <NAME> * @author <NAME> (PhET Interactive Simulations) */ import Vector2 from '../../../../dot/js/Vector2.js'; import ModelViewTransform2 from '../../../../phetcomm...
import React, { useState, useEffect, useRef, useContext } from "react"; import { aCanvas, sPlaceCursorPixel, sSetDragResizeStart, sDragResize, aMode, sSetCursorMoveStart, sCursorMoveDrag, aZoom, sAdjustZoom, aPadding, aImage, aFlows, } from "./State.js"; import { useRecoilState, useRecoilValue, ...
$(document).ready(function(){ jQuery('#datepicker-autoclose').datepicker({ autoclose: true, todayHighlight: true, format: 'yyyy-mm-dd' }); // var numberer = 1; // dataTable = $('#dataTable').on('preXhr.dt', function ( e, settings, data ){ // numberer = data.start + 1...
const config = require('./config.json'); const nodeMailer = require('nodemailer'); const transporter = nodeMailer.createTransport(config.office365Config); const BodyParser = require('koa-bodyparser'); const Koa = require('koa'); const Router = require('koa-router'); const log4js = require('koa-log4'); const serve = req...
"use strict"; var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/* * Copyright (C) 2019 Google Inc. 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 conditio...
/* eslint-disable complexity */ import React, {Component} from 'react' import {connect} from 'react-redux' import { getShopsThunk, addLogThunk, getSingleShopThunk, getObservationsThunk, getSingleLogThunk } from '../store/index' import {SingleLogTable, ObservationSearch} from './index' import LogForm from './L...
const openModmails = require('../main.js').openModmails; const insertmodmailblacklisted_user = require('../db.js').insertmodmailblacklisted_user; async function modmailReactions(cli, cfg){ cli.channels.cache.find(chan => chan.id == cfg.fungalcavern.modmail).messages.fetch({ limit: 100 }) .then(async messages => {...
/** * @name 数据表操作对象 * @author 艾欢欢 * @version 1.0 * @requires BaseService */ const express = require("express"), AdminService = require("../services/AdminService"), MessageBox = require("../utils/MessageBox"), PageJson = require("../model/PageJson"), RegisterList = require("../model/RegisterList"),...
import {observable, action, computed, toJS} from "mobx"; import _ from "lodash"; import * as dc from "../constants/dataConstants"; import {getDrLayout, getDrDatasetPlotData} from "../constants/plotting"; import { datasetTypesByModelType, getDefaultDataset, getExampleData, columns, } from "../constants/...
function GetId(id){ return document.getElementById(id); } //封装一个闭包,来获取Json function GetJson(){ var oJson=[] for(var i=0;i<300;i++){ var q={'img':'img/111.png', 'business':'上海好日子集团'+i, 'businesslogo':'img/222.png', 'logo':'img/333.png', 'ProductIntroduction':'九日柑橘味蜂蜜黄油薯片九日柑橘味蜂蜜黄油薯片九日柑橘味蜂蜜...
import React, { useEffect, useState, useCallback } from 'react' import styled from 'styled-components' import { blockExplorerUrl, Button, GU, IconCheck, IconConnect, IconCross, Info, Link, RADIUS, textStyle, useTheme, } from '@aragon/ui' import { useAppState, useConnectedAccount, useNetwork } from...
/** * Copyright (c) 2021 Institute of Architecture of Application Systems - * University of Stuttgart * * This program and the accompanying materials are made available under the * terms the Apache Software License 2.0 * which is available at https://www.apache.org/licenses/LICENSE-2.0. * * SPDX-License-Identif...
import React, { useEffect, useState } from "react"; import '../styles/landingpage.css' import bg from "../styles/pictures/newbg.png" import akashLogo from "../styles/pictures/akash.svg" import skynetLogo from "../styles/pictures/built-with-skynet.png" import SignUp from "../components/signup"; import SignIn from "../co...
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var async = require('async'); var touch = require('touch'); var validator = require('validator'); var promptly = require('promptly'); var jsonfile = require('jsonfile'); var languages = [ 'c', 'python', 'javascript', 'php' ];...
var N = $("input#N") var TABLE = $("table#input > tbody") var CANVAS = $("#result_img") var canvas = CANVAS.get()[0]; var list = [], ranked var xborder, yborder N.on("input", evt => { if (parseInt(N.val()) > TABLE.children().length) { for (var i = TABLE.children().length; i < parseInt(N.val()); i++) TABLE.append...
import { css, createGlobalStyle } from "styled-components"; // ALL GLOBAL STYLE export const GlobalStyles = createGlobalStyle` @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); /* font-family: 'Archivo Narrow', sans-serif; */ @import url('https://fonts.googleapis.com/cs...
/*eslint no-console: ["error", { allow: ["warn", "error", "info"] }] */ const fs = require("fs"); const {net} = require('electron'); const EventEmitter = require("events").EventEmitter; const util = require("util"); const downloadFileUtil = require("./download-file-util"); /** * * @param {string} url - remote url *...
'use strict'; // use strict is almost always the first line of our js files console.log('It is working!'); var user=""; function firstQuestion() { user = prompt("What is your name?"); alert(user + " , thank you for taking the time to visit my page!"); var ready = prompt('Are you ready to start the quiz? \n\nAnswer...
import React from 'react'; import './App.css'; import AppNav from "./AppNav"; import { getWeb3, getInstance} from "./Web3Util"; /** * @App Build Decentralized Art Market using ERC-721 * @Util Publish artwork * @Book Learn Ethereum * @author <NAME> */ class PublishArt extends React.Component { constructor(pro...
import html, { render, useState } from '../html.js'; import { Checkbox } from '../components/Checkbox.js'; import { isNotStrictEqual } from '../utils.js'; import { SupportList } from './Support.js'; const initialOptions = Object.keys(localStorage) .filter((key) => !key.endsWith('_default')) .reduce((options, key...
#!/usr/bin/env node var Crawler = require('crawler'); var http = require('http'); var https = require('https'); var fs = require('fs'); var ProgressBar = require('progress'); var yargs = require('yargs') .usage('Usage $0 ') .alias('u', 'url') .string('u') .describe('u', 'link to vod.tvp.pl') .alias...
$(document).ready(function(){ $('#re-password').keyup(function(){ if($("#password").val()!=$("#re-password").val()){ $("#password").addClass("error"); $("#re-password").addClass("error"); condition = true; }else{ condition = false; $("#password").removeClass("error"); $("#re-pas...