text
stringlengths
3.22k
29.5k
/** * @license * Copyright 2017 Brigham Young University * * 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 * * Un...
const glob = require('glob'); const { dirname, resolve, join, basename } = require('path'); const { parse } = require('css'); const { readFileSync, readdirSync } = require('fs'); const { outputFileSync } = require('fs-extra'); const outDir = resolve(__dirname, '../dist/variables'); const pfStylesDir = dirname(require....
var express = require("express"); var app = express(); var bodyParser = require("body-parser"); var requestPromise = require("request-promise"); var uuidv1 = require("uuid/v1"); const nodeAddress = uuidv1() .split("-") .join(""); const Blockchain = require("./blockchain"); const somecoin = new Blockchain(); // some...
import { //P1 MODIFICA_TURNO, MODIFICA_MICROAREA, MODIFICA_TIPO_IMOVEL, MODIFICA_NUMERO_PRONTUARIO, MODIFICA_CNS, MODIFICA_DATA_NASCIMENTO, MODIFICA_SEXO, MODIFICA_PESO, MODIFICA_ALTURA, MODIFICA_VISITA_COMPARTILHADA, //P2 MODIFICA_CADASTRAMENTO_ATUALIZACAO, MODIF...
const intro_welcome = babeViews.view_generator("intro",{ trials: 1, name: 'intro_welcome', title: 'WELCOME', text: 'Thank you for your interest in this experiment. <br/><br/>Make sure you use a <strong>PC or Laptop</strong>.', buttonText: 'Start' }); const intro_resolution = babeViews.view_generat...
/* * Worker-related tasks * */ // Dependencies const path = require('path'); const fs = require('fs'); const _data = require('./data'); const https = require('https'); const http = require('http'); const helpers = require('./helpers'); const url = require('url'); const _logs = require('./logs'); const util = requ...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } ...
var Promise = require('bluebird'); var _ = require('lodash'); module.exports = { /** * @api {get} /trends/download Trends in download behaviour of last month * @apiName Top 10 downloads per day for last 30 days grouped per package. * @apiGroup Trends * * * @apiSuccess {String} key Pa...
import React, {Component, PropTypes} from 'react'; import { fetchPublicMoments , fetchPublicMemory } from '../actions/actions'; import {connect} from 'react-redux'; import CircularProgress from 'material-ui/CircularProgress'; import MemoryView from './MemoryView'; import {GridList, GridTile} from 'material-ui/GridList'...
'use strict'; var fs = require('fs'); //Fully buffered reads and writes are fairly straightforward: call the function and pass in a String or a Buffer to write, and then check the return value. // (fully buffered) fs.readFile('../../welcome.html', 'utf8', function(err,data){ console.log(err?err:`welcome.html's data...
"use strict"; /** * PopupContainerViewBase.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Common parent of all components rendered into a popup. Calls onShow and onHide * callbacks when the popup is hidden (i.e. "closed" but still rendered as hidden) * an...
"use strict"; const less = require("../thirdparty/less"); const CSSVariablesCollectorPlugin = module.exports = function(config) { this.config = config; // eslint-disable-next-line new-cap this.native = new less.tree.visitor(this); this.vars = {}; this.calcVars = {}; this.ruleStack = []; this.mixinStack = []; ...
// homebridge-lib/lib/AdaptiveLighting.js // // Library for Homebridge plugins. // Copyright © 2020-2021 <NAME>. All rights reserved. 'use strict' /* global BigInt */ const epoch = (new Date('2001-01-01T00:00:00Z')).valueOf() // Types in TLV values for Adaptive Lighting. const types = { 1: { key: 'configuration',...
/** * 트랜지션 순차실행 - IE10이상 사용가능 */ import browser from '../browser'; import $ from '../dom'; import { regexp, numberUnit, } from '../util'; const EVENT_TRANSITION_QUEUE = 'EVENT_TRANSITION_QUEUE'; export default (queue) => { if(typeof queue !== 'object') { return false; }else if(!Array.isArray(queue)) { que...
import React, { useState } from "react"; import SearchBox from "../SearchBox/SearchBox"; import "./ShowProjects.css"; import { useDataLayerValues } from "../../datalayer"; import Project from "../Project/Project"; import styled from "styled-components"; import { makeStyles, useTheme } from "@material-ui/core/styles"; i...
const url2cmid = require('@abcnews/url2cmid'); const Caption = require('./components/Caption'); const HTMLEmbed = require('./components/HTMLEmbed'); const { resize } = require('./components/Image'); const ImageViewer = require('./components/ImageViewer'); const Quote = require('./components/Quote'); const Raw = require...
function GenerateWorldMap() { var mapdata = {}; var palette = ['#009933','#669900','#99cc00','#cccc00','#c7dc09','#edf933','#ffcc00', '#ff9933', '#ff6600','#ff5050']; var width = 960, height = 960; var minDocCount = 0, quantiles = {}; // projection definitions var projection = d3v3.geo.mercator...
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroSceneNavigator, ViroScene, ViroBox, ViroMaterials, ViroNode, ViroOrbitCamera, Vi...
/** @typedef {import("../photoswipe").default} PhotoSwipe */ /** @typedef {import("../photoswipe").Point} Point */ /** * @typedef {_SlideData & Record<string, any>} SlideData * @typedef {Object} _SlideData * @prop {HTMLElement=} element thumbnail element * @prop {string=} src image URL * @prop {string=} srcset im...
const fs = require('fs'); const { commands } = require('../utils/constants'); const { isBroadcasterOrMod, setCharAt } = require('../utils/index'); const { getSavedData, updateSavedData } = require('../data/index'); // HANGMAN VARIABLES /* String list of all the words the Hangman bot can choose from. Words come from d...
import _ from 'lodash'; import manifest from '../manifest'; import * as enums from '../destinyEnums'; import * as utils from './utils'; /** * These are the utilities that deal with Sockets and Plugs on items. Sockets and Plugs * are how perks, mods, and many other things are implemented on items. * * This is cal...
/* * 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. */ $(document).ready(function () { 'use strict'; var lnameError = true, fnameError = true, emailError...
import React, { createContext } from "react"; import io from "socket.io-client"; import { joinRoomSuccess, joinRoomError, leaveAllRoomsSuccess, receivedMessage, getChatLogSuccess, getChatLogError, identifyError, identifySuccess, getRoomsSuccess, getRoomsError, userStatusUpdate, loadMoreSuccess, ...
import { Eosio } from "../services/eosjs"; import { innerJoin } from "../util/index"; import { pgClient } from "../models/index"; import { Graph } from "../util/multilateral"; import { NFTDEX_CONTRACT, GETPOTTRADES_ACTION, TOKEN_SYMBOL, SIMPLEASSET_CONTRACT, SASSETS_TABLE, OFFER_TABBLE, } from "../util/Cont...
"use strict"; /* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ Object.defineProperty(exports, "__esModule", { value: true }); const crypto...
var _ = require('underscore'); var dom = require('./dom'); var gutil = require('app/common/gutil'); var {tsvEncode} = require('app/common/tsvFormat'); const G = require('../lib/browserGlobals').get('document', 'DOMParser'); /** * Returns unique positions given upper and lower posi...
//const { ethers, hre } = require("hardhat"); const {network, ethers} = require("hardhat"); const { expect } = require("chai"); // Shared Migration Config const config = { symbol: "TEST", name: "<NAME>", terms: "test.ch/terms", totalBonds: 40000000, bondPrice: "500000000000000000", timeToMarturity: "432000...
(function() { var w = angular.module("aquarium"); w.directive('focusedWhen', function() { return { scope: { focusedWhen: '=', }, link: function($scope, $element) { $scope.$watch('focusedWhen', function(shouldFocus) { if (shouldFocus) { $element[0].focus()...
//2D point data var data = [ [1, 2], [2, 1], [2, 4], [1, 3], [2, 2], [3, 1], [1, 1], [7, 3], [8, 2], [6, 4], [7, 4], [8, 1], [9, 2], [10, 8], [9, 10], [7, 8], [7, 9], [8, 11], [9, 9], ]; var means = []; var assignments = []; var drawDelay...
import update from 'immutability-helper'; import produce from 'immer'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { connect } from 'react-redux'; import { List } from 'immutable'; ...
import React, { useEffect, useState, useRef } from "react"; import { useDispatch, useSelector } from "react-redux"; import { connect } from "./redux/blockchain/blockchainActions"; import { fetchData } from "./redux/data/dataActions"; import * as s from "./styles/globalStyles"; import styled from "styled-components"; c...
var MINIMUM_ANDROID_VERSION = new Date(2020, 10, 5); var ANDROID_LAST_UPDATE = new Date(2020, 10, 3); var MINIMUM_IOS_VERSION = splitOSVersion("14.2"); var IOS_LAST_UPDATE = new Date(2020, 10, 5); var MINIMUM_CHROMEOS_VERSION = splitOSVersion("87.0.4280.88"); var CHROMEOS_LAST_UPDATE = new Date(2020, 11, 7); var AND...
import config from 'gen/config' import path from 'path' import Util from '../../../api/util' import Cache from '../../../util/cache' import {pubsubDelayed} from '../../../api/subscription' const {UPLOAD_DIR, UPLOAD_URL} = config let websiteProcessingQueue = [] let isQueueProcessing = false const addToWebsiteQueue...
'use strict'; const _ = require('lodash'); const Bacon = require('baconjs'); const autocomplete = require('cliparse').autocomplete; const AppConfiguration = require('./app_configuration.js'); const Interact = require('./interact.js'); const Logger = require('../logger.js'); const Organisation = require('./organisatio...
/** * * AddCommunications * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Table, Row, Col, Button, Modal } ...
import {getProduct, addProduct} from '../get-data'; const productNameToUrl = { 'YouTube Icon Pullover Black': 'YouTube+Icon+Pullover+Black', 'Google Light Pen Yellow': 'Google+Light+Up+Pen+Yellow', 'Google Tee Yellow': 'Google+Tee+Yellow', 'Google Snapback Black Cap': 'Google+Snapback+Black+Cap', 'Google Twi...
import { isWebGlSupported, getWebglCanvas, each } from '../utils' import { NOT_AVAILABLE } from '../constants' const getWebglFp = () => { var gl var fa2s = function (fa) { gl.clearColor(0.0, 0.0, 0.0, 1.0) gl.enable(gl.DEPTH_TEST) gl.depthFunc(gl.LEQUAL) gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFF...
// ulrでクエリが渡されていれば実行 if(location.search) { // 条件作成処理 var checkObj = { pubNinka: false, priNinka: false, ninkagai: false, yhoiku: false, kindergarten: false, jigyosho: false, disability: false }; var typeObj = { pubNinka: '区立認可保育園', priNinka: '私立認可保育園', ninsyou: '認証保育所', ...
const WebSocket = require('ws'); const uuidv4 = require('uuid/v4'); const mysql = require('mysql'); const getJSON = require('get-json') const postJSON = require('simple-post-json') console.log("Attemtping to reach MYSQL") const connection = mysql.createConnection({ host : '192.168.1.67', user : 'npm', ...
const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); const ytdl = require('ytdl-core'); const fs = require('fs'); const { prefix } = require('../../config.json'); module.exports = class MusicTriviaCommand extends Command { constructor(client) { super(client, { ...
/** * Created by volodya on 6/10/2017. */ const fs = require('fs'), async = require('async'), BufferUtil = require('./bufferUtils'), ChunkReader = require('./chunkReader'); class TaskFactory{ constructor(message){ this._message = message; this._byMessageDefinedTasks = new Arr...
//code from https://github.com/Wiebke/TangramGenerator //Copyright (c) 2019 <NAME> /** * Definition of directions for each of the tans, the anchor point for each piece * is at position x, the directions are defined in clockwise order (except for * the flipped parallelogram) and are the vectors to the points a,b,(c),...
/* eslint-disable react/jsx-wrap-multilines */ import React, { Component } from 'react' import { Button, Card, CardBody, CardHeader, Col, Row, Modal, ModalBody, ModalFooter, ModalHeader, Spinner, FormGroup, } from 'reactstrap' import ReactTable from 'react-table' import 'react-table/react-table....
const Logger = require('@hkube/logger'); const { tracer } = require('@hkube/metrics'); const stateManager = require('./states/stateManager'); const jobConsumer = require('./consumer/JobConsumer'); const algoRunnerCommunication = require('./algorithm-communication/workerCommunication'); const discovery = require('./stat...
import "swiper/css" import "swiper/css/pagination" import 'swiper/css/effect-fade'; import "swiper/css/navigation" import { A11y, EffectCreative, EffectFade, Keyboard, Navigation, Pagination, Scrollbar } from "swiper" import { Swiper, SwiperSlide } from "swiper/react" import AniLink from "gatsby-plugin-transition-lin...
// Import the required libs. import moment from 'moment'; import ElectronStore from 'electron-store'; import oddsConverter from '@/utils/oddsConverter'; import addressesRPC from '@/services/api/addresses_rpc'; import blockchainRPC from '@/services/api/blockchain_rpc'; let preferencesStore = null; let addressBookStore ...
import {ctx, canvas} from "../canvas.js"; import {Bullet} from "../objects/bullets.js" // top // down // left // right const Defualt_TankImgSource = [new Image() , new Image() , new Image() , new Image()] ; Defualt_TankImgSource[0].src = "../Graphics/defultTankImgTop.png"; Defualt_Tan...
/* eslint-disable */ var data = null; var filter = ""; var converter = new showdown.Converter(); var releases = ["master"]; var version = "master"; var sepVersion = "@"; var template = '<p class="cmd-title">@@main-cmd@@</p><p class="cmd-description">@@cmd-description@@</p><p>&nbsp;</p><p>Options:</p>@@options@@<p>&n...
/* eslint-disable unicorn/no-process-exit */ const util = require('util') const fs = require('fs') const url = require('url') const chalk = require('chalk') const notifier = require('node-notifier') const co = require('co') const stripAnsi = require('strip-ansi') const tildify = require('tildify') const address = requi...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable no-param-reassign */ import { PropertyFactory, BaseProperty } from "@fluid-experimental/property-properties" import { ComponentMap } from './componentMap'; import { PropertyProxy }...
var myGame; function game() { var myMine, myHowtoPopup, gameState, scoreForm; var gameBtn, size1Btn, size2Btn, size3Btn, size4Btn, easyBtn, normalBtn, hardBtn, extremeBtn, style1Btn, style2Btn, style3Btn, okBtn; var playing = false; // if true, when clicked on smiley, then no settings function init() { ...
class MouseInteraction{ constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //显示性能面板 Laya.Stat.show(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.Private = exports.Route = exports.Route...
/** * Async-Synchro - Library for asynchronous locking and concurrency * * Copyright 2022 <NAME>, MIT licensed. * * See project root for ./LICENSE file. * * NPM: https://npmjs.com/package/async-synchro * GITHUB: https://github.com/chris-pikul/async-synchro */ var __classPrivateFieldSet = (this && this.__classP...
function U2X_ConfiguraInterface() { U2X_ConfigModal(); $('.button-collapse').sideNav(); $('select').material_select(); $('.collapsible').collapsible(); $('ul.tabs').tabs(); $('.button-collapse').sideNav('hide'); $("body").css("overflow", "") $(".dropdown-button").dropdown(); } funct...
'use strict'; function hxlProxyToJSON(input,headers){ var output = []; var keys=[]; input.forEach(function(e,i){ if(i===0){ e.forEach(function(e2,i2){ var parts = e2.split('+'); var key = parts[0]; if(parts.length>1){ v...
var bt = require("bittorrent"); var benc = require("benc"); var config = require("config"); var fs = require("fs"); var logger = require("logger").get("core"); var rss = require("rss"); var session = bt.session; var timer = require("timer"); function saveTorrent(torrent) { var torrents...
import React, { Component } from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { Route, Switch, withRouter } from 'react-router-dom'; // APIs import { getNetwork, createComment, createContact, createEndpoint, createIdentifier, createMachineTag, createTag, deleteComment, d...
import Layout from '@/views/layout/Layout' const _import = require('../_import_' + process.env.NODE_ENV) export default { path: '/dispatch', component: Layout, redirect: '/dispatch/OpenseaRecommend', icon: 'chengyunshang', name: '调度管理', noDropdown: true, hidden:false, meta: { title: '调度管理', code: ...
import React, { useRef, useState, useEffect } from "react"; import ReactDOM from "react-dom"; import { Picker } from "emoji-mart"; import 'antd/dist/antd.css'; import TodoList from "./TodoList"; //import './index.css'; //import {Provider} from 'react-redux'; import { DatePicker, Space } from 'antd'; import { TimePicke...
var urlWithParam = "/sjk-market-admin"; $(document).ready(function() { loadType(1); loadType(2); loadMarkets(); $('#keyword').bind('keydown', function(e) { if(e.which == 13) { SearchEve(); } }); $('#search').click(function() { SearchEve(); }); ...
import Metadata from './metadata' import PhoneNumber from './PhoneNumber' import AsYouTypeState from './AsYouTypeState' import AsYouTypeFormatter, { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter' import AsYouTypeParser, { extractFormattedDigitsAndPlus } from './AsYouTypeParser' import getCountryByCallingCode from...
document.getElementById('video').addEventListener('keydown', function(e) { if (e.keyCode == 32) { e.preventDefault(); } }); $(document).ready(function() { $('.require-count').characterCounter(); }); $(document).ready(function() { $('.collapsible').collapsible(); }); $('.canvas-basic').each(function() { ...
const pool = require('./conn_pool'); const encrypt = require('../models/encrypt.js'); let exported = {}; //问卷属性查询 exported.select_questionaire = async (req, res, callback) => { const conn = await pool.getConnection(); try { let param = []; let user_id = req.session.token.uid; //获取id let sql = "select * from q...
var crypto = require('crypto'); var https = require('https'); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - var travis = { // Travis CI set environment variables // https://docs.travis-ci.com/user/ci-environment/#Environment-variables CURRENT_JOB_ID: parseInt(process.env.TRAV...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
const { ObjectId } = require('mongodb') const mongo = require('./Model') const task = require('./Task') const org = require('./Organization') const user = require('./User') const { get } = require('request-promise-native') class Workspace { constructor() { this.task = 'Task', this.workspace = 'Work...
"use strict"; var __awaiter = (this && this.__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 fulfilled(value) { t...
"use strict"; const { VOID_TAGS, getNodeCssStyleDisplay, getNodeCssStyleWhiteSpace, getPrevNode, isDanglingSpaceSensitiveNode, isLeadingSpaceSensitiveNode, isScriptLikeTag, isTrailingSpaceSensitiveNode, mapNode } = require("./utils"); const LineAndColumn = (m => m.default || m)(require("lines-and-col...
const Discord = require("discord.js"); const package = require('../../package.json'); const si = require('systeminformation'); const fs = require("fs"); const path= require("path"); const wait = require("system-sleep"); const errors = require("../../utils/errors.js"); const config = require("../../config.json"); var co...
// Goal of game is to collect all coins. // If player touches lava, game restarts. let simpleLevelPlan = ` ...................... ..#................#.. ..#..............=.#.. ..#.........o.o....#.. ..#.@......#####...#.. ..#####............#.. ......#++++++++++++#.. ......##############.. ......................`; /...
let dialogs = require("tns-core-modules/ui/dialogs"); let fs = require("tns-core-modules/file-system"); let labelModule = require("tns-core-modules/ui/label"); let StackLayout = require("tns-core-modules/ui/layouts/stack-layout").StackLayout; let Toast = require("nativescript-toast"); let exit = require("nativescript-e...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferServerContext = exports.ReferClientContext = void 0; var tslib_1 = require("tslib"); var ClientContext_1 = require("./ClientContext"); var Constants_1 = require("./Constants"); var core_1 = require("./core"); var Enums_1 = require...
/* * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
import React, { useState } from "react"; import { Container } from "react-bootstrap"; import { Box, Title, Text } from "../Core"; import styled from "styled-components"; import Logo from "../Logo"; import { device } from "../../utils"; const StyledHubspot = styled.form` display: flex; flex-flow: column wrap; jus...
var _ = require('underscore'); var dblogger = require('../utils/dblogger'); var FSMManager = require("../FSM/fsm-manager"); var processModel = require('../models/processmodel'); var config = require("../config"); var ChatDriverInterface = require("./chat-driver-interface"); var PipeManager = require("../pipes/pipemanag...
var _scriptName = 'CH PASSWORD RESET SEND EMAIL'; _log('Starting'); /* ** INPUT DATA * SHARED STATE - 'objectAttributes.mail': the email address entered by the user in the password reset page * TRANSIENT STATE - 'secretKey': key to sing the JWT - 'notifyJWT': JWT to use for the Notify call ...
let camera, container, pointer, scene, rendererVR let clickTime = new Date(), clickTimerVr = null, gamepads = [], isPresenting = false, lastStatusClick = false, lastSelectedObjectVR = null, selectedObjectVR = null const eventPointerDblClick = new CustomEvent('pointerdblclick') const eventPointerDown = new CustomEvent(...
function TreeNode(text, id) { var _children = []; var _formatter = null; // ? this.addChild = function(node) { _children.push(node); }; this.getId = function() { return id; }; this.getChildren = function() { return _children; }; this.getLabel = functio...
import React, { useState, useEffect, useReducer } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import { makeStyles, Container, Typography, Box, Card, CardContent, CardActions, Button, Grid, TextField, FormControl, InputLabel, Select, MenuItem, CircularProgress, ...
// This is the runner that runs from node.js to execute the tests import { getBundle } from './server'; import { extractFunctionNames, formatLine, getElapsedTime, looksTheSame, spaces, PREFIX } from './util'; import { syntaxHighlight } from './highlight'; import Queue from './classes/Queue'; import ProgressBar from 'pr...
require('./cometd-nodejs-client').adapt(); const CometDLib = require('cometd'); const workspace = require('./internal/code-gen/workspace-api'); const EventEmitter = require('events'); const VoiceApi = require('./internal/voice-api'); const TargetsApi = require('./internal/targets-api'); const ReportingApi = requi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _styles = require("@material-ui/core/styles"); var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton")); var _ClickAwayListene...
import React from 'react'; import { useColorModeValue, Button, Box, chakra, Input, Menu, MenuButton, MenuList, MenuOptionGroup, MenuItemOption, HStack, Text } from '@chakra-ui/react'; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var sour...
// The page where you write a new post const {Component, render} = require("inferno"); const h = require("inferno-hyperscript").h; const front = require("./../front.js"); const e = require("cors"); const Code = require("./Code.js"); const Play = require("./Play.js"); const default_post_body = `Your words. +YourName....
// TODO: socketUrl 에 따라 다른 스트림이 전송되어야 한다. let videoContexts = []; const configSocket = (ws, onMessage) => { ws.binaryType = "arraybuffer"; ws.addEventListener("message", event => { onMessage(event.data); }); ws.addEventListener("error", e => { console.error(e); }); ws.addEventListener("close", e =...
'use strict'; exports.__esModule = true; var _extends3 = require('babel-runtime/helpers/extends'); var _extends4 = _interopRequireDefault(_extends3); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper...
'use strict'; const net = require('net'); const dgram = require('dgram'); const util = require('util'); const assert = require('assert'); const EventEmitter = require('events'); class MyEmitter extends EventEmitter {} const HOST = '0.0.0.0'; const PORT = 12345; const BACKLOG = 511; // Default value of node const TIM...
import sass from 'node-sass'; import pathSettings from 'settings/paths'; import { Logger } from 'blocks/utilities/logger'; import { Content } from 'blocks/utilities/content'; import { TextParser } from 'blocks/extractor/textParser'; import { MarkdownParser } from 'blocks/extractor/markdownParser'; import { JSONHandler ...
function squareRoundedRidge(f1,f2,n,options){ options = options || {}; var arr =[]; var ang,newP; if(options.bevelTop){ newP = [f1*0.5*0-(options.bevelTopAsym||0),f1*(0.5-0.5*1)]; newP.flat = true; arr.push( newP ); ang = 0; newP = [f1*0.5*1,f1*(0.5-0.5*0)]; ...
const editorHTML = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <style> html { height: 100%; w...
/** * Main module file * * @name node-sodium * @author bmf * @date 11/9/13 */ /* jslint node: true */ 'use strict'; // Base var binding = require('../build/Release/sodium'); var toBuffer = require('./toBuffer'); // Public Key var Box = require('./box'); var Sign = require('./sign'); // Symmetric Key var Secr...
$(document).ready(iniciar); function iniciar(){ $("#btn_registrar").on("click", guardar_herramienta); $(".editar").off("click").on("click", editar_herramienta); $(".eliminar").off("click").on("click", eliminar_herramienta); } function guardar_herramienta(e) { e.preventDefault(); var cod_act = $("#cod_actL")....
import React from "react"; import PropTypes from "prop-types"; import { withRouter } from "react-router-dom"; import pullAll from "lodash/pullAll"; import firebase from "firebase/app"; import compose from "recompose/compose"; import Button from "@material-ui/core/Button"; import Card from "@material-ui/core/Card"; imp...
// function to generate a random number between a min and max value var randomNumber = function (min, max) { var value = Math.floor(Math.random()*(max-min+1)+min); return value; }; // fight or skip function var fightOrSkip = function() { // ask player if they'd like to fight or run var promptFight = ...
'use strict';Object.defineProperty(exports, "__esModule", { value: true });var _jestUtil; function _load_jestUtil() {return _jestUtil = require('jest-util');}var _istanbulApi; function _load_istanbulApi() {return _istanbulApi = require('istanbul-api');}var _chalk; function _load_chalk() {return _ch...
/* * Powershell Selenium Remote Control Formatter */ load('remoteControl.js'); this.name = 'Powershell (Remote Control)'; function testMethodName(testName) { return 'The' + capitalize(testName) + 'Test'; } NotEquals.prototype.assert = function() { return '[NUnit.Framework.Assert]::AreNotEqual(' + this.e1.toStr...
import objectUtils from './utils/object-utils'; import stringUtils from './utils/string-utils'; import Collection from './models/Collection'; /* eslint-disable class-methods-use-this */ export default class JointNormalizer { constructor(options) { this.logNamespace = options.logNamespace || '[joint-normalizer]';...
"use strict"; //node ids are in order in which nodes come in existence var nodes = []; var links = []; var problems = [ { order: 7, links: [ [0, 1], [0, 2], [1, 3], [2, 3], [3, 4], [3, 5], [0, 4], [0, 5], [1, 6], [2, 6], [4, 6], [5, 6] ...
// cookie names var COOKIE_SHOW_LABEL = "show_label"; var COOKIE_TAXON_PREFIX = "taxon_"; function initializePhyleticView() { PhyleticViewManager.initialize(); }; function Taxon(id) { this.parent = null; this.id = id; this.isLeaf = true; this.index = null; this.name = null; this.common_nam...