text
stringlengths
5.97k
41.2k
var pathVariable = SurveyView.base_url + "datamodel"; function Datamodelscrollhidden() { $('body').css('overflow','hidden'); $('body').css('position','fixed'); } function Datamodelscrollshow() { $('body').css('overflow-y','scroll'); $('body').css('position','relative'); } function AddDatamodelPopup(clientId) { ...
import operation from './operation' import SweepEvent from './sweep-event' import { isInBbox, touchesBbox, getBboxOverlap } from './bbox' import { touchPoints } from './flp' import { closestPoint, intersection } from './vector' import rounder from './rounder' // Give segments unique ID's to get consistent sorting of /...
"use strict"; // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; ...
'use strict'; const SEARCH_URL = window.addr + '/search/sdn'; const ROW_FIELDS = [ 'countries', 'nationality_country', 'citizenship_country', 'place_of_birth', 'doc_id_numbers', 'location', 'title', 'sanction_dates', 'aircraft_tags', 'vessel_tags', 'document_countries'...
var listGeocode; var objGeoCode; var group = 0; var list; var mem; var pro = 'X'; var dmem; var datatable; var mctable; var TeamId; function GetTeamId() { $.ajax({ type: 'POST', data: '', contentType: 'application/json', url: "/cms/getTeamId", data: TeamId, success: f...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. const numberPages = 4; const numberProcesses = 3; const runIntervalTime = 1000; var processList = []; for (var i = 0; i < numberProcesses; i++) { v...
if (document.readyState !== 'loading') { onload(); } else { document.addEventListener('DOMContentLoaded', onload); } function onload() { let loginLink = document.getElementById('loginLink'); if (loginLink && window.location.href !== 'http://blog-note3/login') { loginLink.onclick = loginProces...
import * as PIXI from "pixi.js"; import TaggedText from "pixi-tagged-text"; import CARDS from "./lists/cards"; import { capitalizeFirstLetter, degToRad } from "./Utils"; const CARD_WIDTH = 3; // CARD_WIDTH * cellsize = card width px const ENTERING_SPEED = 60; // 50 cellsizes per second const SPEED = 10; // 10 cellsize...
import axios from 'axios'; import { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import Picker from 'emoji-picker-react'; // import {isMobile} from 'react-device-detect' import { URL,getTime,months,datesAreOnSameDay} from "../../utils/allFunctions"; class ChatBox extends Component{...
"use strict"; if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = function (callback, thisArg) { thisArg = thisArg || window; for (var i = 0; i < this.length; i++) { callback.call(thisArg, this[i], i, this); } }; } var sydney = sydney || {}; ...
$(window).load(function(){ 'use strict'; /* == Loader Page ==*/ $("#loading").fadeOut("1000", function() { // Animation complete $('#loading img').css("display","none"); $('#loading').css("display","none"); $('#loading').css("background","none"); $('#loading').css("width","0"); $('#loading').css("heig...
/** * MediaMatcher.js * * Project-Page: https://github.com/andreasBritten/MediaMatcher.js * * Created: 2012-01-04 * Modified: 2013-02-08 * * @version 1.4 * @author <NAME> */ var mediaMatcherObjectCount = 0; function MediaMatcher(matchObject){ this.queryObjects = []; this.nativeQuerySupport = false; t...
// Namespace var pDG = pDG || {}; pDG.fn = { }; 'use strict'; /* Calculate distance between 2D / 3D points Usage: pDG.fn.dist( p1_x, p1_y, p2_x, p2_y ); */ pDG.fn.dist = function () { var dx, dy, dz; if (arguments.length === 4) { dx = arguments[0] - arguments[2]; dy = arguments[1] - arguments[3]; ...
// ==UserScript== // @name PSNprofiles.net enhancements // @author Barokai | www.loigistal.at // @icon http://psnprofiles.com/forums/favicon.ico // @namespace http://www.loigistal.at/userscripts/ // @license https://github.com/Barokai/psnprofiles-enhanced/blob/master/LICENSE // @homepageU...
var headerName = "Security Center"; var dhxLayout2U; var dhxLayout2UcellsB2E; var dhx2U = "2U"; var dhx3E = "3E"; var groupsEvent; var usersEvent; var param = 0; var myDataProcessor; var dhxgroups; var dhxusers; var usersRecordEntity; var size, tabbarGrid, doUserLog1C, doUserLogGrid, userId, visitId, doVisitLog1C, doVi...
var T = require('./ztrace'); // TRACE (before strict) "use strict"; // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // REQUIRES ------------------------------------------------------------------ var fs ...
/* file: gulpfile.js */ /*! * Copyright 2017 ikarus512 * https://github.com/ikarus512/fcc1.git * * DESCRIPTION: gulpfile.js * AUTHOR: ikarus512 * CREATED: 2017/06/01 * * MODIFICATION HISTORY * 2017/06/01, ikarus512. Initial version. * */ /*jshint node: true*/ 'use strict'; var browserSync = require('b...
import $ from 'jquery'; export default { closeMoreInfo(state){ state.moreInfoSeen = false; state.moreInfo = {}; }, showMoreInfo(state){ console.log('------------showMoreInfo-------------'); state.moreInfoSeen = true; if(!state.moreInfo){ if(state.messtype==='p'){ $.get('/getPInfo',{uid:state.m...
/* Pour info, depuis qu'on utilise le nouveau design Tango on utilise aussi le floopDrawerRight.js floopDrawer.js n'est plus utilisé */ //liste des types à afficher avec leurs icons var floopContactTypes = [ { name : "projects", color: "purple" , icon:"lightbulb-o" }, { name : "events", color: "orange" ...
const logUpdate = require('log-update') const cliSpinner = require('cli-spinners').dots10 const logSymbols = require('log-symbols') // const cliTruncate = require('cli-truncate') const chalk = require('chalk') const crypto = require('crypto') const path = require('path') const ut...
import React from "react" import styled from "styled-components" import { graphql, useStaticQuery } from "gatsby" import Img from "gatsby-image" const TableOfContents = () => { const data = useStaticQuery(graphql` query { rina: file(relativePath: { eq: "cookbook.jpg" }) { childImageSharp { ...
var df = []; data.forEach(function (d) { df[0] = d["Air temp"]; df[1] = d["Process temp"]; df[2] = d["Rpm"]; df[3] = d["Torque"]; df[4] = d["Tool wear"]; df[5] = d['time']; }); am4core.ready(function () { // console.log("1") // Themes begin // am4core.useTheme(am4themes_dark); am4core.useTheme(am4...
import * as React from "react"; import * as d3 from "d3"; import { connect } from "react-redux"; import { updateTableData } from "../actions"; import { attributeBar, attributeColor, regularGreyDark } from "../constants/colorScheme"; const mapStateToProps = state => { return { input: state.input...
var args = arguments[0] || {}, http = require("http"), app = require("core"), animation = require("alloy/animation"), dialog = require("dialog"), db = require("db"), lastUrl = "", feedbackColl = db.getCollection(Alloy.CFG.collection.feedback), scrollViews = { columnOne : { position : ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); (function (PRIORITY) { PRIORITY[PRIORITY["CRITICAL"] = 0] = "CRITICAL"; PRIORITY[PRIORITY["HIGH"] = 1] = "HIGH"; PRIORITY[PRIORITY["MEDIUM"] = 2] = "MEDIUM"; PRIORITY[PRIORITY["LOW"] = 3] = "LOW"; })(exports.PRIORITY || (expo...
/** * Copyright 2020 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...
var wizardSpellList = [ 'orc _ fire _ blade _ storm _ night _ lightnight _ fire _ rainbow', 'force _ bolt', 'drain _ life', 'magic _ missile', 'cone _ of _ cold', 'fireball', 'finger _ of _ death', 'protection', 'turn _ undead', 'create _ monster', 'remove _ curse', 'create _ familiar', 'detect _ monster', 'light', 'de...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
//一件分のリスト要素を表すHTML要素を作成 function createListItem(data) { //gazou //金原さんのすごいガードに通す var chat = escape_html(data.chat); //名前の処理 var name = data.userName; //数字を常に二桁にする function getdoubleDigestNumber(number) { return ("0" + number).slice(-2); } //時間の処理 var now = new Date(data.createDate)...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.filter"); require("core-js/modules/es.array.find"); require("core-js/modules/es.array....
//Imports var BR = ee.FeatureCollection("users/JonathanVSV/Brazil4GEE"), L4 = ee.ImageCollection("LANDSAT/LT04/C01/T1_SR"), L5 = ee.ImageCollection("LANDSAT/LT05/C01/T1_SR"), L7 = ee.ImageCollection("LANDSAT/LE07/C01/T1_SR"), L8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR"), geometry = /* color: #d...
#!/usr/bin/env node const fs = require('fs-extra') const path = require('path') const R = require('ramda') const parseCsv = require('csv-parse/lib/sync') const byline = require('byline') const B = require('bufx') const { canonicalName, strings, stringToId, matchRegex } = require('./Helpers') let cfg, inputVarNames, ou...
'use strict'; const TilesGrid = require('./tiles-grid'); const BitStream = require('./bit-stream'); const PSEUDO_RANDOM = 0; const LAYERS_NUM = 2; const TILE_SIZE = O.urlParam('s', 70) | 0; const MAX_DIM = 100; const MAX_DIM1 = MAX_DIM - 1; var w, h; var wh, hh; // O.enhanceRNG(); // O.randSeed(0);...
// lib/scraper.js var urlutil = require('url'); var zlib = require('zlib'); var fs = require('fs'); var request = require('request'); var cheerio = require('cheerio'); var requestWithEncoding = function(options, callback) { var req_err = null; var req = null; try { req = request.get(options); } catch (e...
/* Gratefully copied from https://github.com/brentvatne/react-native-animated-demo-tinder */ import React, { Component } from 'react' import { StyleSheet, Text, View, Animated, PanResponder, Dimensions } from 'react-native' /** * 衰减系数动画注释 */ // import { clamp } from '../../../../utils' /** * 衰减系数动画注释 ...
import React, { Component } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Input, Select, Tooltip, Cascader, Radio, Checkbox, InputNumber, DatePicker } from 'antd'; import { connect } from 'dva'; import moment from 'moment'; import { getFormLayout...
import React, { useState, useEffect } from "react"; import Link from 'next/link'; import Card from "./Card/Card"; import CardBody from "./Card/CardBody"; import ButtonBase from '@material-ui/core/ButtonBase'; import { makeStyles } from "@material-ui/core/styles"; import GridContainer from "components/Grid/GridContainer...
/* global module, wx, window: false, document: false */ 'use strict'; import WxCanvas from '../util/wxCanvas'; import WxChart from './wxChart'; import WxTitle from '../core/title'; import WxLayout, {BoxInstance} from '../core/layout'; import WxLegend from '../core/legend'; import randomColor from '../util/randomColor'...
import { globals as api } from '../globals'; import { Observer } from '@playcanvas/observer'; import { Guid } from '../guid'; const USE_BACKEND_LIMIT = 500; const TIME_WAIT_ENTITIES = 5000; const REGEX_CONTAINS_STAR = /\.\*\./; let ASSET_PATHS; let evtMessenger; /** * Try to find an assetId in this project that * ...
const Errors = require('./errors'); const RoomUtils = require('./rooms'); const Roads = require('./roads'); const Phases = require('./phases'); class CreepsBase { constructor(role) { this.roleName = role; } is(creep) { return creep.name.startsWith(this.roleName); } suicide(creep) { // unable to m...
var app_cardealer_app_front = null; jQuery(document).ready(function () { app_cardealer_app_front = new THEMEMAKERS_APP_CARDEALER_FRONT(); app_cardealer_app_front.init(); jQuery("#add_car_video").life('click', function () { var template = jQuery("ul#cars_videos li:first-child").html(); jQuery("ul#cars_videos").a...
/** * The crawl analyzer takes a crawl report as input and creates a report that * contains, for each spec, a list of potential anomalies, such as: * * 1. specs that do not seem to reference any other spec normatively; * 2. specs that define WebIDL terms but do not normatively reference the WebIDL * spec; * 3. s...
const helper = require('node-red-viseo-helper'); const botmgr = require('node-red-viseo-bot-manager'); const uuidv4 = require('uuid/v4'); const formidable = require('formidable'); const WebSocket = require('ws'); const fs = require('fs'); const LRUMap = require('./lru.js').LRUMap; let contexts = new LRUMap(CONFIG.ser...
const globals = { svgWidth: 300, svgHeight: 160, gridWidth: 300, gridHeight: 160, xAxisLabelsHeight: 0, yAxisLabelsWidth: 0, padHorizontal: 0, translateX: 0, translateY: 0, translateYAxisX: [], translateXAxisY: 0, translateXAxisX: 0, lineHeightRatio: 1.618, labels: ['Jan', 'Feb', 'Mar', 'Apr...
// Parses Ext JS source code and extracts defined classes and dependencies. // // This parser was originally written by <NAME> and <NAME> // for https://github.com/cpak/grunt-extjs-dependencies (commit 775fd22 from 2013-11-15) // // Copyright (c) 2013 <EMAIL> // Copyright (c) 2016 <NAME> 'use strict'; var path = req...
const AppConstants = { api: 'https://app.eattoperform.com/api/clients/', public_api: 'https://app.eattoperform.com/api/public/', appName: 'Eat To Perform', appKey: '35.163.77.181.client', trend_max_data: { carbs: 600, fat: 200, protein: 300 }, fitbit: { client_id: '2287FY', client_secr...
const Flow = require('./libs/flow'); const Node = require('./libs/node'); const Core = require('./modules/core'); const Operation = require('./modules/operation'); const Quiz = require('./modules/quiz'); const HTTP = require('./modules/http'); const LED = require('./modules/led'); const BAR = require('./modules/bar'); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XmlFile = void 0; const path = require("path"); const source_map_1 = require("source-map"); const deferred_1 = require("../deferred"); const DiagnosticMessages_1 = require("../DiagnosticMessages"); const util_1 = require("../util"); co...
import clx from "classnames"; import throttle from "lodash.throttle"; import PropTypes from "prop-types"; import * as React from "react"; import { isFragment } from "react-is"; import { ChevronLeftLarge, ChevronRightLarge } from "../internals/icons"; import { makeStyles, useTheme } from "../styles"; import { clamp, ...
#!/usr/bin/env nodejs 'use strict'; const sparen = require('./sparen.js'); const Log = console.log; /** Exports */ module.exports = { Canvas: Canvas }; /** Canvas @param [in] width - Width of the canvas @param [in] height - Height of the canvas @param [in] charset - Index of active charact...
/* Fast math functions for 2-D matrices stored as flat (1-D) arrays of numbers. Requires: ../flatorize.js Copyright 2017 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the...
/* * gennumfmt.js - ilib tool to generate the number json fragments from * the CLDR data files * * Copyright © 2013-2018, 2020 JEDLSoft * * 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 a...
'use strict'; // Helper const random101 = () => Math.random() * 2 - 1; function getMedianPoint(points) { let medianX = 0, medianY = 0; for (const point of points) { medianX += point.x; medianY += point.y; } medianX /= points.length; medianY /= points.length; return new Vec2(medianX, medianY); } // ccw > 0...
const express = require('express') const path = require('path') const http = require('http') const socketio = require('socket.io') const fs = require('fs'); const { disconnect } = require('process'); const { compileFunction } = require('vm'); const app = express() const server = http.createServer(app) const io = socke...
import * as d3 from 'd3'; import { toElkGraph, elkLayout } from './elk-layout-factory'; const EMPTY_ARRAY = []; const idFn = function (d) { return d.id.replace(/\.|:/gi, '_'); }; const isIconFn = function (n) { return (n && n.model && n.model.tagName === 'mark'); }; // Helper functions const portsFn = function (n)...
if (!Detector.webgl) Detector.addGetWebGLMessage(); var container = document.getElementById('container'); var CONTAINER_WIDTH = $(container).width() / window.innerWidth, CONTAINER_HEIGHT = $(container).height() / window.innerHeight; var ROTATING_OBJ = false; var camera, controls, scene, renderer, ...
/** * * @authors huangyi * @date 2014-09-09 16:51:57 * @version $Id$ */ (function(){ var baiduMapUrl = ["http://api.map.baidu.com/staticimage", "?width=281","&height=160", "&zoom=14", "&markerStyles=m,A,0xff0000"].join(""); var self = { render: function(data, container, showFooter){ self.data = da...
const Policy = () => ( <main className="main-policy"> <div className="wrapper"> <div> <h1>Privacy Policy</h1> <p>Last Updated: January 13, 2020</p> </div> <section> <h1>Introduction</h1> <p> This privacy policy (<strong>“Policy”</strong>) describes how ...
// lorem ipsum -like generator for words, sentences and paragraphs const lorem = { words(num1, num2) { const arr = [], length = (num1 && num2) // determine the length ? rnd(num1, num2) : (num1 || num2 || rnd(3, 16)) while (arr.length < length) { // choose next word...
/* eslint no-template-curly-in-string: "off" */ import escapeLatexLib from 'escape-latex'; import { hasOwnProperty } from './object.js'; export var latexSymbols = { // GREEK LETTERS Alpha: 'A', alpha: '\\alpha', Beta: 'B', beta: '\\beta', Gamma: '\\Gamma', gamma: '\\gamma', Delta: '\\Delta', delta: '\...
// Copyright 2020-2022 the Deno authors. All rights reserved. MIT license. // @generated file from build script, do not edit // deno-lint-ignore-file let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true, }); cachedTextDecoder.decode(); let cachegetUint8Memory0 = null; function getUint8...
import React from 'react'; import PropTypes from 'prop-types'; import stylePropType from 'react-style-proptype'; import { polyfill } from 'react-lifecycles-compat'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function')...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _reactNative = require("react-native"); var _color = _interopRequireDefault(require("color")); var _CardSheet = _interopRequireDefault(require("./CardS...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); ...
'use strict'; let hostrefs = {}; let hostsym = Symbol("hostref"); function hostref(s) { if (! (s in hostrefs)) hostrefs[s] = {[hostsym]: s}; return hostrefs[s]; } function is_hostref(x) { return (x !== null && hostsym in x) ? 1 : 0; } function is_funcref(x) { return typeof x === "function" ? 1 : 0; } function...
/* Tilemap Editor * Main script entry point */ var Tesselate = require('./lib/tesselate.js'); var Tilemap = require('./lib/tilemap.js'); var Tileset = require('./lib/tileset.js'); var Layer = require('./lib/layer.js'); var util = require('./lib/utilities.js'); var Tile = require('./data/tile/index.js'); var kb = re...
/* * Copyright (C) 2018 Intel Corporation * * SPDX-License-Identifier: MIT */ /* exported callAnnotationUI blurAllElements drawBoxSize copyToClipboard */ /* global AAMController:false AAMModel:false AAMView:false AnnotationParser:false Config:false userConfirm:false CoordinateTranslato...
/**************************************************************************** Copyright (c) 2008-2010 <NAME> Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
const esprima = require("esprima"), estraverse = require("estraverse"), codegen = require("escodegen"), fs = require("fs"), regexUtil = require("./RegexUtil"), babel = require("@babel/core"), filePathUtil = require("./FilePathUtil"), findTrueImportPath = filePathUtil.findPathWithExtension; const LOOP_BREAK = "b...
var procUsageView = function(hostid, startTime) { $.blockUI(blockUI_opt_all); var ProcessTableHTML = ''; var INIT_PROCCOUNT = 17; var MAX_PROCCOUNT = 30; var currentProcessName = null; var tableDataObj = new Object(); var tableDataArr = []; var lastProcessData = callApiForProcessTable(...
import IconAbnormal from './icon/IconAbnormal'; import IconAbnormalLowLight from './icon/IconAbnormalLowLight'; import IconAdd from './icon/IconAdd'; import IconAddPerson from './icon/IconAddPerson'; import IconAlert from './icon/IconAlert'; import IconAlertLowLight from './icon/IconAlertLowLight'; import IconAllergy f...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/* * @Description: * @Author: 幺五六 * @Date: 2020-07-29 11:11:10 * @LastEditors: 幺五六 * @LastEditTime: 2020-08-20 16:06:15 */ import * as THREE from 'three'; // import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; import { Effe...
/* globals RTCDataChannel, RTCPeerConnection, RTCSessionDescription */ 'use strict'; var ChromeRTCSessionDescription = require('../rtcsessiondescription/chrome'); var EventTarget = require('../util/eventtarget'); var inherits = require('util').inherits; var Latch = require('../util/latch'); var MediaStream = require('...
const path = require('path'); const chalk = require('chalk'); const fs = require('fs-extra'); const inquirer = require('inquirer'); const paths = require('../config/paths'); const { getArgv } = require('./utils/argv'); const { execa } = require('./utils/execa'); const { execaOptions } = require('./utils/execa'); con...
/** * @license * Copyright 2016 Google Inc. 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 requi...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getExperiment, getParams, getRunInfo, getRunTags } from '../reducers/Reducers'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { injectIntl, FormattedMessage } from 'react-intl'; import './Co...
import { Tygh } from "../.."; import { matchScreenSize } from "../../core_methods"; import $ from "jquery"; var _ = Tygh; var clicked_elm; // last clicked element var zipcode_regexp = {}; // zipcode validation regexps var regexp = {}; // validation regexps - deprecated var validators = []; // registered custom valida...
import React, { useState, memo, useCallback, useRef, useEffect } from 'react'; import { message, Row, Col, Dropdown, Menu, Popover } from 'antd'; import uuid from 'uuid'; import CopyToClipboard from 'react-copy-to-clipboard'; import { connect } from 'dva'; import { Link } from 'umi'; import EpIcon from '@components/EpI...
'use strict' // sources below // https://www.sitepoint.com/simple-javascript-quiz/ // questions taken from canvas 201 quizzes //TODO PREGAME //TODONE generate characters // let totalScore = 13000; // let userName = ''; let userName = ''; getUserName(); function GenerateCharacter(name, health, imgUrl) { this.n...
// The node.js modules used. var fs = require('fs'); var path = require('path'); var child_process = require('child_process'); var builder = require('xmlbuilder'); var crypto = require('crypto'); var uuid = require('uuid'); var readDir = require('readdir'); var ShellJS = require("shelljs"); /** * Creat...
import React, { useEffect, useState, useRef, useMemo, Fragment, useCallback, } from 'react'; import styled from 'styled-components'; import { useTable, useSortBy, useRowSelect } from 'react-table'; import { Terminal as XTerm } from 'xterm'; import { FitAddon } from 'xterm-addon-fit'; import '../lib/xterm.c...
// @ts-nocheck // <NAME> // ISU Data Visualization 5599 // Final Project // Parameters hiddenTilt = 15 hiddenNodeRadius = 20 hiddenVerticalSeparation = 100 hiddenHorizontalSpacing = 90 hiddenDepthSpacing = 50 observedVerticalSeparation = 0 observedVerticalSpacing = 20 observedDepthSpacing = 20 curveControlDistance ...
'use strict' module.exports = download const usage = require('./utils/usage') download.usage = usage( 'download', [ '', ' npm download [<@scope>/]<name>', ' npm download [<@scope>/]<name>@<tag>', ' npm download [<@scope>/]<name>@<version>', ' npm download [<@scope>/]<name>@<v...
// const game = { // addNewAppleListner: (listner) => { // appleListners.add(listner); // }, // getCurrentAppleLocation: () => { // return currentInstance.appleLocation; // }, // getCurrentSnake: () => { // return currentInstance.snake; // }, // reset: () => { // previousTail = { x: gameCe...
/* * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import React, {useState, useEffect} from 'react'; import {Table, Button, Accordion, Icon, Grid, Popup, Input} from 'semantic-ui-react'; import {vtNames, octaveData, octaveNoToName, defaultHeld} from './notationUtils'; import {useSelector, useDispatch} from 'react-redux'; import NotationTableCell from './NotationTableCe...
/** * Jdenticon 1.3.2 * http://jdenticon.com * * Built: 2015-10-10T11:55:57.451Z * * Copyright (c) 2014-2015 <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Perm...
import React from 'react'; import ConnectedWorld from '../components/svgs/connected-world'; import OnlineLearning from '../components/svgs/onlinelearning.jsx'; import SellingPoint from '../components/sellingpoint'; import Reading from '../components/svgs/reading'; import Waves from '../components/svgs/waves'; import dy...
/** * @license Copyright (c) 2003-2022, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module utils/dom/position */ import global from './global'; import Rect from './rect'; import getPositionedAncestor from './getpositionedanc...
import Ember from 'ember'; import Mixin from '@ember/object/mixin'; import PostModel from 'ghost-admin/models/post'; import boundOneWay from 'ghost-admin/utils/bound-one-way'; import ghostPaths from 'ghost-admin/utils/ghost-paths'; import isNumber from 'ghost-admin/utils/isNumber'; import moment from 'moment'; import {...
'use strict'; const fs = require('fs'); const _ = require('lodash'); const path = require('path'); const dfns = require('date-fns'); const config = require('config'); const Redis = require('ioredis'); const readline = require('readline'); const { fetch } = require('undici'); const dns = require('dns').promises; const ...
"use strict"; const utils = require('@iobroker/adapter-core'); let net = require('net'); let adapter, query, recnt, haier, in_msg, out_msg, states = {}, old_states = {}, tabu = false, _connect = false; const polling_time = 2000; const command = { qstn: [10, 0, 0, 0, 0, 0, 1, 1, 77, 1], // Команда опроса p...
"use strict"; var Interpreter_1 = require("../servicecode/Interpreter"); var Sandbox_1 = require("../servicecode/Sandbox"); var Helper_1 = require("../helpers/Helper"); var InitSelfTest_1 = require("../servicecode/InitSelfTest"); var Statistics_1 = require("../statistics/Statistics"); var SERVICE_CODE = { "init": [...
/* Scrolling Code */ /** COPYRIGHT <NAME> 2014 **/ //globals pertaining to scrolling //How far the user has scrolled. Starts neutral at 0. Repurposed between parallax and non-parallax var scrollStep = 0; //Min/Max scrollStep value for parallaxing var maxScrollStep = 0; var minScrollStep = 0; //variable dete...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.execCommand = exports.execFromManifest = exports.executeLifecycleScript = exports.makeEnv = exports.getWrappersFolder = exports.IGNORE_MANIFEST_KEYS = undefined; var _extends2; function _load_extends() { return _extends2 = _inte...
import React, { Component } from "react"; import TinyPic from "../../components/TinyPic"; import Modal from "react-responsive-modal"; import axios from "axios"; import clsx from "clsx"; import { Icon, Popup } from "semantic-ui-react"; import { lighten, makeStyles } from "@material-ui/core/styles"; import { withRouter }...
'use strict'; var url; // Call this function when the page loads (the "ready" event) $(document).ready(function() { console.log("Page ready"); url = document.URL; requestCategories(url); }) function requestCategories (url) { var parsedURL = url.concat("/catData"); $.get(parsedURL, (res, req) => { console.lo...
/* tx.js - Bitcoin transactions for JavaScript (public domain) Obtaining inputs: 1) http://blockchain.info/unspent?address=<address> 2) http://blockexplorer.com/q/mytransactions/<address> Sending transactions: 1) http://bitsend.rowit.co.uk 2) http://www.blockchain.info/pushtx */ ...
const path = require('path') const ip = require('ip') const crypto = require('crypto') const _ = require('lodash') const DHT = require('bittorrent-dht') const request = require('request') const Router = require('../utils/router.js') const sandboxHelper = require('../utils/sandbox.js') const { promisify } = require('uti...