text
stringlengths
3.07k
16k
import map from './libconfig'; const helpers = { /* * each library object type has * displayName - for use in the type dropdown * init - method to initialize a new object of the parent type (story and space do not have init functions and will be omitted from the CreateO) * keymap - contains displayName and ...
/** 💾 @file save @summary save/load your game @license MIT @version auto @requires 5.4 @author <NAME> @description Introduces save/load functionality. Includes: - data that may be saved/loaded: - current room/position within room - inventory/items in rooms - dialog variables - dialog position - basic autos...
/** * REST API client for Confluence Cloud * @private */ /* eslint-disable no-console */ const chalk = require("chalk"); const axios = require("axios"); const Qs = require("qs"); const validators = require("../util/validators"); const httpMethods = { get: "get", post: "post", put: "put" }; /*...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Loggers = require('./lib/loggers'); var noop = require('./lib/noop'); var pushUnique = require('./lib/push_...
// npm run channels:parse -- --config=./sites/magentatv.at/magentatv.at.config.js --output=./sites/magentatv.at/magentatv.at_at.channels.xml // npx epg-grabber --config=sites/magentatv.at/magentatv.at.config.js --channels=sites/magentatv.at/magentatv.at_at.channels.xml --output=guide.xml --days=2 const { parser, url }...
angular.module('orderCloud') .config(ProductsConfig) .controller('ProductsCtrl', ProductsController) .controller('ProductEditCtrl', ProductEditController) .controller('ProductCreateCtrl', ProductCreateController) .controller('ProductAssignmentsCtrl', ProductAssignmentsController) .controller('P...
var Module = { noInitialRun: true, onRuntimeInitialized: runtime_initialized, print: handle_stdout, printErr: handle_stderr, }; var runtime_config = undefined; // add a line to the terminal history div function add_terminal_line(msg, type) { // create and append the output line let line = document.crea...
var logging = require("./logging"); var request = require("request"); var config = require("../config"); var skins = require("./skins"); var http = require("http"); require("./object-patch"); var session_url = "https://user.turna.live/api/yggdrasil/sessionserver/session/minecraft/profile/"; var textures_mojang_url = "...
'use strict'; /** * Module dependencies. */ const _ = require('lodash'), fs = require('fs'), defaultAssets = require('./config/assets/default'), testAssets = require('./config/assets/test'), glob = require('glob'), gulp = require('gulp'), gulpLoadPlugins = require('gulp-load-plugins'), plugins = gulpLo...
import axios from "axios"; import React, { useContext, useEffect, useReducer, useState } from "react"; import { useHistory, useParams } from "react-router-dom"; import BannerLeft from "../components/BannerLeft"; import ChannelChat from "../components/ChannelChat"; import ChannelChecklist from "../components/ChannelChec...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import { getRandom, getRandomIntInclusive } from '../../utils/random.js'; import { placeByRandom } from '../../utils/place.js'; // Locomotive scroll settings // const locoScroll = new LocomotiveScroll({ // el: document.querySelector('#scrollContainer'), // smooth: true, // }); // locoScroll.on('scroll', ScrollTri...
const express = require('express'), flash = require('connect-flash'), loggedin = require('connect-ensure-login'), authenticator = require('otplib').authenticator, crypto = require('crypto'), passport = require('passport'), LocalStrategy = require('passport-local').Strategy, OtpStrategy = require('../..')....
var page = require('webpage').create(); var fs = require('fs'); var Resurrect = require('../lib/resurrect'); var compare = require('fast-json-patch').compare; var system = require('system'); var demo, frames = 10, testUrl = 'http://localhost:8000/demo/index.html', refsPath = 'test/browser/refs', diffsP...
var Utils = new Utils(); function Map () { this.dom = $('#maze-container'); this.mX = null; this.mZ = null; this.nodes = null; this.playerId = null; this.players = null; this.directions = ['N', 'E', 'S', 'W']; this.inverseDir = {'N': 'S', 'E': 'W', 'S': 'N', 'W': 'E'}; this.load(); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SafeAreaProvider = SafeAreaProvider; exports.useSafeAreaInsets = useSafeAreaInsets; exports.useSafeAreaFrame = useSafeAreaFrame; exports.withSafeAreaInsets = withSafeAreaInsets; exports.useSafeArea = useSafeArea; exports.SafeAreaCon...
import React, {Component} from 'react' import {withRouter} from 'react-router-dom' import Levels from './levels' import {connect} from 'react-redux' import {resetState} from '../../store/guest.js' const source = 'img/garage_capstone.png' const mapping = { name: 'garage', areas: [ { name: 'toolbox', ...
/** * Hopefully plays TicTacToe * * Written By: <NAME> * Date Written: 29/07/2015 */ var games = []; /** * Maps a coordinate to something a programmer would use */ function mapToCoord(coord) { var rows = { A: 0, B: 1, C: 2 }, columns = { 1: 0, 2: 1, 3: ...
import React, { Component } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Toast from 'react-native-root-toast'; import { Image } from 'react-native'; import { ContentListScroll, ContentListPageTurning } from '..'; const { prefetch } = Image; const ...
import { browser } from 'webextension-polyfill-ts'; var mouseClip = function (cb) { if(window['clipstation']){ return; } var dragwrap = `<div class="dragwrap"><div class="dragleft"></div><div class="dragtop"></div><div class="dragright"></div><div class="dragbottom"></div><div class="eyearea"></div>...
'use strict'; var babelHelpers = require('./util/babelHelpers.js'); exports.__esModule = true; var _react = require('react'); var _react2 = babelHelpers.interopRequireDefault(_react); var _utilDates = require('./util/dates'); var _utilDates2 = babelHelpers.interopRequireDefault(_utilDates); var _List = require('...
import * as widgets from '@jupyter-widgets/base'; import _ from 'underscore'; import $ from 'jquery'; import GoogleMapsLoader from 'google-maps'; import {downloadElementAsPng} from './services/downloadElement'; import {stringToMapType, mapTypeToString} from './services/googleConverters.js'; import {GMapsLayerView, GM...
// globals /* Globals */ const productNames = ['bag','banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass'] // DANGER: DEBUG // const productNames = ['boots', 'dog-duc...
'use strict'; const express = require ('express'); const dotenv = require('dotenv').config(); const cors = require ('cors'); const pg = require ('pg'); const client = new pg.Client({connectionString: process.env.DATABASE_URL,ssl: {rejectUnauthorized: false }}); const superagent = require ('superagent'); const se...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import React, { memo,useState,useEffect, useContext } from 'react'; import PropTypes from 'prop-types'; import { makeStyles, Box, Button, Menu, MenuItem, Grid, Paper, Table, TableBody, TableFooter, TableRow, TableCell, TextField, Toolbar, Typography, Tooltip } from '@material...
var xmldom = require('xmldom'); var xpath = require('xpath'); var qs = require('querystring'); var zlib = require('zlib'); var xtend = require('xtend'); var templates = require('./templates'); var url = require('url'); var xmlenc = require('xml-encryption'); var Samlp = module.exports = function Samlp (options, saml) ...
import React, { Component } from "react"; import { getDialogContainer } from "../utils"; import * as RB from 'react-bootstrap'; import { ReactBridge } from "../ReactBridge"; import FastState from "faststate-react"; import Portal from "./Portal"; import { v4 as uuid } from 'uuid'; import Loading from './Loading'; import...
const { text, route } = require("bottender/router"); const { getClient } = require("bottender"); const line = getClient("line"); const OpencvModel = require("../../model/application/OpencvModel"); const ArenaModel = require("../../model/princess/arena"); const RecordRepo = require("../../repositories/princess/arena/Rec...
$(document).ready(function () { initTabOrder(); $('#divBluefinTextInput label').text("P2PE"); $('.BluefinRawData label').text("P2PE"); //when the style value contains important, the $('#ccrawdata').width not works in IE $('#ccrawdata').attr('style','float: left; clear: both; border: 1px solid #b2aba...
import WebSocket from 'ws'; import {EventEmitter} from 'events'; const CONNECTING = 1; const CONNECTED = 2; const CLOSING = 3; const CLOSED = 4; export default class TeslaStream extends EventEmitter { static DEFAULT_COLUMNS = ['elevation', 'est_heading', 'est_lat', 'est_lng', 'odometer', 'power', 'shift_...
#!/usr/bin/env node 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator')); var _asyncToGenerator = _interopDefault(require('@babel/runtime/helpers/asyncToGenerato...
var fs = require('fs'), path = require('path'), jade = require('jade'), // md = require('node-markdown'), md = require('marked'), Class = require('neko').Class; var format = new require('fomatto').Formatter(); // Garden Generator ------------------------------------------------------------...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/** * @doc 获取格式化的日期 * @param format d:将日显示为不带前导零的数字,如1 dd:将日显示为带前导零的数字,如01 ddd:星期 dddd:星期 q: 季度(q) M:将月份显示为不带前导零的数字,如一月显示为1 MM:将月份显示为带前导零的数字,如01 MMM:将月份显示为缩写形式,如二月|Jan MMMM:将月份显示为完整月份名,如一月|January yy:以两位数字格式显示年份 yyyy:以四位数字格式显示年份 h:使用12小时制将小时显示为不带前导零的数字,注意||的用法 hh:使用12小时制将小时显示为带前导零的数字 H:使用24小时制将小时显示为不带前导...
"use strict"; let keywordClass; let type = "fixed"; function formatDecimals(event) { event.target.value = parseFloat(event.target.value).toFixed(2); if (event.target.value.endsWith(".00")) { event.target.value = parseInt(event.target.value); } } function showKeywordError() { document.getElementById("k...
/* eslint-disable no-param-reassign */ import React from 'react' import PropTypes from 'prop-types' import { NavDropdown, MenuItem, } from 'react-bootstrap' import moment from 'moment' import _ from 'lodash' import { observer, inject } from 'mobx-react' import compose from 'recompose/compose' import exportGeschae...
import { BufferAttribute, BufferGeometry, Color, CylinderBufferGeometry, Matrix4, Mesh, MeshBasicMaterial, MeshLambertMaterial, Object3D, Vector3 } from 'three'; const THREE = window.THREE ? window.THREE // Prefer consumption from global THREE, if exists : { BufferAttribute, BufferGeome...
import { Group } from "three"; import State from "./state"; import Renderer from "./renderer"; class XRInputClass { constructor() { /** @deprecated Use `leftControllerGrip` or `rightControllerGrip` instead */ this.controllerGrips = []; this.inputSources = null; this._leftController = new Group(); ...
/* global cy, Cypress */ import { dashboardUrl } from './constants'; import moment from 'moment'; /* global cy, Cypress */ const appid = Cypress.env('appid'); const toolBarCatSelector = 'div[id="filterable-toolbar-with-chip-groups"] > .pf-c-toolbar__content > .pf-c-toolbar__content-section > div[class="pf-c-toolb...
import React, { Component } from 'react'; import { Alert, Card, CardBody, CardHeader, Col,Form, Row,CardFooter,FormGroup,Button, Input,Label } from 'reactstrap'; import Select from 'react-select'; import swal from 'sweetalert'; class EditProfile extends Component { constructor(props) { super(props); t...
import React from 'react' // nodejs library to set properties for components import PropTypes from 'prop-types' // @material-ui/core components import withStyles from '@material-ui/core/styles/withStyles' import GridContainer from '../../components/shared/Grid/GridContainer.jsx' import GridItem from '../../components/s...
"use strict"; function pong() { const pongStats = { score1: 0, score2: 0, maxScore: 3 }, svg = document.getElementById("canvas"); let divider = new Elem(svg, "line") .attr("x1", svg.getBoundingClientRect().width / 2) .attr("y1", 0) .attr("x2", svg.getBoundingClientRect().width ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { compose, withProps, withHandlers } from 'recompose' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { DESK } from '../../../utils/const' import { addAllMarkers, changeCentre } from '../../../s...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
//main.js /* This module defines the this.tick and this.event callbacks, that allow the API to send data to the mod on-demand. */ var tickTimeLastSecAvg = 0; var tickTimeLastSecMax = 0; var ticksLastSec = 60; var tickTimeLog = [] var perfnow = 0;//performance.now(); var realtimeMSecondsCounter = 0; v...
import { SYNC_BUFFER_BLOCKS } from '../components/Hotspots/utils' import client from './client' export const getActivityForChecklist = async (address) => { const [ challengerTxnList, challengeeTxnList, rewardTxnsList, ] = await Promise.all([ // Get most recent challenger transaction client.hots...
import mongoose from "mongoose"; require("babel-core/register"); require("babel-polyfill"); import fs from "fs"; import path from "path"; import jwt from 'jsonwebtoken'; import express from "express"; import validate from 'express-validation'; import bodyParser from 'body-parser'; import passport from 'passport'; impo...
'use strict'; import { NativeEventEmitter, NativeModules, Platform, PermissionsAndroid, ListView, ScrollView, AppState, Dimensions } from 'react-native'; import BleManager from 'react-native-ble-manager'; import { stringToBytes, bytesToString } from 'convert-string' const BleManagerModule = NativeModules.BleManager; c...
import React, { useState } from 'react' import { FormattedMessage } from 'react-intl' import SearchIcon from '@material-ui/icons/Search' import TextField from '@material-ui/core/TextField' import InputAdornment from '@material-ui/core/InputAdornment' import Button from '@material-ui/core/Button' import { info } from '@...
const express = require('express'); const router = express.Router(); const mysql = require('mysql'); const fs = require('fs'); const jade = require('jade'); const bodyParser = require('body-parser'); router.use(bodyParser.urlencoded({extended: false})); //게시판 페이징 router.get("/pasing/:cur", function (req, res) { ...
var http_host = 'http://'+window.location.host; //RAF 支持~ requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(callback) {return setTimeout(c...
import download from 'downloadjs' Router.route('operationanalysis', { path: '/operationanalysis', template: 'operationanalysis', waitOn: function () { return [ Meteor.subscribe('drills'), Meteor.subscribe('locations'), Meteor.subscribe('bundles') ]; }...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import _extends from "@babel/runtime/helpers/esm/extends"; import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue"; var __rest = this && this.__...
const assert = require("assert"); const dirtreeAsObj = require("dirtree-as-obj"); const fse = require("fs-extra"); const git = require("nodegit"); const gitDeploy = require("../"); const glob = require("../vendor/promisified/glob"); const moment = require("moment"); const path ...
/* eslint-disable camelcase */ import { Dropdown, DropdownItem, KebabToggle, Pagination, ToolbarGroup } from '@patternfly/react-core'; import debounce from 'lodash/debounce'; import propTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { FilterDropdown, Sim...
///// ***************************************************** ////// ///// DYNAMIC CONFIGURATIONS PARAMETERS WITH DEFAULT VALUES ///// ***************************************************** ////// // All veriables are utilized in default.aspx & app.js files. var DefaultFilePath = 'calibre.docx'; var isImageToggle...
const crypto = require('crypto'); const base64url = require('base64url'); const cbor = require('cbor'); const verifyU2FAttestation = require('./u2fAttestation'); const verifyPackedAttestation = require('./packedAttestation'); const verifyAndroidKeyAttestation = require('./androidKeyAttestation'); const verifyAndroidSaf...
import React, { useCallback, useState } from 'react'; import { ActivityIndicator, Alert } from 'react-native'; import Icon from 'react-native-vector-icons/Feather'; import { useMutation, useQueryClient } from 'react-query'; import styled from 'styled-components/native'; import Label from '../../components/Label'; impor...
var count = 1; var pagesize = 10; var wx_AppID = 'wxc034ddcd6d10e418'; var rURL = 'http://localhost:8080/wxPay'; var orderStatus = $('#pullrefresh_orderall').attr('orderStatus'); mui.init({ pullRefresh : { container : '#pullrefresh_orderall', up : { contentrefresh : '正在加载...', contentnomore : '没有更多商品了', c...
import React, { useRef, useEffect, useCallback } from "react"; import styled from "styled-components"; import emailjs from "emailjs-com"; import CancelIcon from "@material-ui/icons/Cancel"; const ModalWrapper = styled.div` position: absolute; left: 0; top: 0; width: 100%; height: 100vh; background: #f2f2f2...
/* © 2014 nau.com * @author <NAME> * This class represent the Map object * It provide functionalities: * +It parse data from map01.json * +provide constant data like which data is Chung object, Disk Object * +provide some method to get the nessary object */ window.chungapp = window.chun...
var modal = document.querySelector("#modal"); App = { init: function () { // Is there an injected web3 instance? if (typeof web3 !== 'undefined') { window.web3 = new Web3(web3.currentProvider); } else { // If no injected web3 instance is detected, fall back to Ganach...
const _ = require('lodash'); const express = require('express'); const mongoose = require('mongoose'); const http = require('http'); const Mong = require('./index'); const { defineTestModels } = require('./test-schema'); const { getAPI, testEqual, testNotEqual } = require('./test-helpers'); const DB_URL = 'mongodb://l...
import React, { useState, useEffect } from 'react' import { InputNumber, Input, Radio, Upload, Select, Progress, Checkbox } from 'antd' import _ from 'lodash' import { uploadFileToS3 } from 'utils/index' import './index.scss' import { Spin } from '../../../node_modules/antd/lib/index' const { Dragger } = Upload const...
'use strict'; var hours = ['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm','4pm','5pm','6pm','7pm','8pm']; //Here is an array to hold all of the stores var allStores = []; //An variable to hold the hour totals var hourTotal = []; //Here is to access the table in the DOM var storeTable = document.getEle...
const { Pool } = require('pg'); const dotenv = require('dotenv'); dotenv.config(); const pool = new Pool({ connectionString: process.env.DATABASE_URL }); pool.on('connect', () => { console.log('connected to the clio_db'); }) const table = (table, query) => { pool.query(query).then(data => { con...
'use strict' var fs = require('fs') var path = require('path') var https = require('https') var sharp = require('sharp') var concat = require('concat-stream') var unified = require('unified') var html = require('rehype-parse') var query = require('hast-util-select') var toString = require('hast-util-to-string') var ca...
var Hack = require('./hack'); var Marker = require('../tokenizer/marker'); var Token = require('../tokenizer/token'); var Match = { ASTERISK: '*', BACKSLASH: '\\', BANG: '!', BANG_SUFFIX_PATTERN: /!\w+$/, IMPORTANT_TOKEN: '!important', IMPORTANT_TOKEN_PATTERN: new RegExp('!important$', 'i'), IMPORTANT_W...
import React from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import InputAdornment from "@material-ui/core/InputAdornment"; // @material-ui/icons import Email from "@material-ui/icons/Email"; // import LockOutline from "@material-ui/icons/LockOutline"; // core com...
import React, { Component } from 'react'; import { Route } from 'react-router-dom'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/index'; import MapResults from './Map/MapResults'; import AddressFinder from './Forms/AddressFinder'; import LazyLoad from 'react-lazyload'; import Filte...
import React, { useEffect, useState } from 'react' import T from 'prop-types' import styled from 'styled-components' import uniqueId from 'lodash.uniqueid' const PaginationContainer = styled.section` z-index: 5; position: sticky; // Extend slightly over to avoid subpixel flashes of content below sticky footer ...
/* See license.txt for terms of usage */ "use strict"; const self = require("sdk/self"); // Add-on SDK const { Cu, Ci } = require("chrome"); const { Trace, TraceError } = require("firebug.sdk/lib/core/trace.js").get(module.id); const { EventTarget } = require("sdk/event/target"); const { Class } = require("sdk/core/...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.renderPageTree = exports.setLogs = exports.activityTick = exports.setActivityTotal = exports.setActivityStatusText = exports.setActivityErrored = exports.updateActivity = exports.endA...
'use strict'; var domEvent = require('min-dom/lib/event'), BendpointUtil = require('./BendpointUtil'); var pointsAligned = require('../../util/Geometry').pointsAligned, getMidPoint = require('../../util/Geometry').getMidPoint; var BENDPOINT_CLS = BendpointUtil.BENDPOINT_CLS, SEGMENT_DRAGGER_CLS = Bendpoi...
//alert("Hola mundito :D"); //alert("jquery" + JSON.stringify(jquery)); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
/** * Created by Aaron on 2018/7/5. */ import React, {Component} from 'react' import PropTypes from 'prop-types' import {Grid, Row, Col, Glyphicon} from 'react-bootstrap' import {FormattedMessage,injectIntl} from 'react-intl'; import {withStyles} from '@material-ui/core/styles'; import {connect} from 'react-redux' im...
//start var currentPosition = [4,4] //blocks var block1 = [0, 1] var block2 = [0, 2] var block3 = [0, 5] var block4 = [2, 1] var block5 = [4, 1] var block6 = [6, 1] var L = [2, 4] var A = [5, 4] var I = [3, 5] var O = [2, 6] var S = [3, 4] // Warn if overriding existing method if(Array.prototype.equals) console...
import React from 'react'; import { useSelector } from 'react-redux'; import { cloneDeep, find, isEmpty } from 'lodash'; import { Checkbox, ListTitle, NoData, Button, } from '../../../components'; import { RoleAccessHead } from '../RoleAccessHead'; import DeleteRole from './DeleteRole'; import { roleAccessListCss } f...
import React, { Component } from 'react'; import Config from '../utils/Trackvia.config' import TrackviaAPI from '../trackvia-api' import Chart from 'react-google-charts'; class TimeLineChart extends Component { constructor(props) { super(props) // Don't call this.setState() here! this.state = { c...
const pointInTriangle = (p1, p2, p3, p) => { const [x1, y1] = p1 const [x2, y2] = p2 const [x3, y3] = p3 const [xp, yp] = p const c1 = ((y2 - y3) * (xp - x3) + (x3 - x2) * (yp - y3)) / ((y2 - y3) * (x1 - x3) + (x3 - x2) * (y1 - y3)) const c2 = ((y3 - y1) * (xp - x3) + (x1 - x3) * (yp - y3)) ...
/*jshint expr: true*/ var chai = require('chai'); var expect = chai.expect; var mock = require('mock-require'); mock('serialport', 'virtual-serialport'); describe('test SerialRequestResponseTransport with D0Protocol with Mode-Overwrite', function() { it('check output of two D0 messages', function(done){ t...
const socket = new WebSocket(`ws://127.0.0.1:80`); socket.onopen = ev => { console.log('open') } socket.onmessage = ({ data }) => { console.log("->", data); location.href = `file:///Users/dpren/code/pitch-extractor/live/routes/${data}/audio.html` } if (!navigator.requestMIDIAccess) { alert("This browser doesn'...
/** * * FilterPopover * */ import React, { useState } from 'react'; import { useIntl } from 'react-intl'; import PropTypes from 'prop-types'; import { Button } from '@strapi/design-system/Button'; import { Box } from '@strapi/design-system/Box'; import { Popover } from '@strapi/design-system/Popover'; import { Sta...
import isString from 'lodash/isString' import { getNounFix, getCaiyunPrefix } from '../store/text-fix' import { replaceWords, log, log2, replaceQuote, fixWrap, transSpeaker, replaceWrap, tagStoryText, sess } from '../utils/index' import { fetchInfo } from './fetch' import getName from '../store/name' import tagText fro...
import React from 'react' import Translate, {translate} from '@docusaurus/Translate'; export const features = [{ title: translate({ message: 'Extendable' }), description: ( <> <Translate values={{ restApi: <strong>REST API</strong>, rbac: <strong...
import React from 'react'; import ActionListModal from './ActionListModal'; import TxidLink from './TxidLink'; import hw from './lib/hw'; import blockchain from './lib/blockchain'; import getAddress from './lib/get-address'; import updateActionState from './lib/update-action-state'; import humanReadableSatoshis from '....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = makeAlgoliaPlacesWidget; var _places = _interopRequireDefault(require("../places")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (...
import * as R from 'ramda' import * as Survey from '@core/survey/survey' import * as NodeDef from '@core/survey/nodeDef' import * as Taxon from '@core/survey/taxon' import * as TaxonVernacularName from '@core/survey/taxonVernacularName' import * as SurveyManager from '@server/modules/survey/manager/surveyManager' imp...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import CategoryList from './CategoryList'; import './InputPage.css'; class InputPage extends Component { constructor () { super(); this.state = { category: '', categories: [], question: '...
marked.setOptions({ breaks: true, highlight: (code, lang) => { if (Prism.languages[lang]) { return Prism.highlight(code, Prism.languages[lang], lang); } else { return code; } }, smartLists: true }); const renderer = new marked.Renderer(); renderer.link = (href, title, text) => { retu...
import {CenteredProgress} from 'widget/progress' import {Form, form} from 'widget/form/form' import {Padding} from 'widget/padding' import {Panel} from 'widget/panel/panel' import {RecipeActions} from 'app/home/body/process/recipe/opticalMosaic/opticalMosaicRecipe' import {Scene} from './scene' import {Scrollable, Scro...
import React from "react"; import PropTypes from "prop-types"; import { FaArrowDown } from "react-icons/fa/"; const Hero = props => { const { scrollToContent, mountains, theme } = props; return ( <React.Fragment> <section className="hero"> <span className="circle" /> <div className="x1"...
'use strict'; const fs = require('fs'); function command(options, log, callback) { let waitTime = 10000; let child_process; if (options.wakeOnLAN === 'true' || options.wakeOnLAN === true) { const wol = require('node-wol'); wol.wake(options.macAd, function (error) { if (erro...
/** * Simulation module */ var vector = require('./vector.js'); var _ = require('underscore'); function NoControl(commands) { } var DefaultParams = { turningSpeed: Math.PI / 1000, thrusterAcceleration: 0.05, gravity: new vector.Vector(0, -0.01), landerRadius: 10, landingOrientationEpsilon: Math....
/* * edit.js * Copyright (c) 2018 <EMAIL> * * This file is part of Firefly III. * * Firefly III is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) a...
// Import Internal Dependencies import { EntityBuilder, Key, progressionParser, nextProgression, AnimatedText, Animations } from "../helpers"; import { Scene, Actor, getCurrentState, Timer, getActor } from "../ECS"; import Room from "../helpers/Room"; import RoomSpawner from "../helpers/RoomSpawner.class"; import Dung...
(function() { IniciarMapa(); 'use strict'; window.addEventListener('load', function() { // Fetch all the forms we want to apply custom Bootstrap validation styles to var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission var ...
var path = require("path"); var fs = require("fs"); var directory = __dirname.split(path.sep); var rootDirectory = directory.slice(0, directory.indexOf("TeamCode")).join(path.sep); var robotFunctionsDirectory = path.join(rootDirectory, "TeamCode/src/main/java/org/firstinspires/ftc/teamcode/auxilary/dsls/autoauto/...
const SUCCESS = 'Success'; const TIMEOUT = 'Timeout'; const NO_SUCH_SESSION = 'NoSuchDriver'; const NO_SUCH_ELEMENT = 'NoSuchElement'; const NO_SUCH_FRAME = 'NoSuchFrame'; const NO_SUCH_WINDOW = 'NoSuchWindow'; const UNKNOWN_COMMAND = 'UnknownCommand'; const UNKNOWN_ERROR = 'UnknownError'; const JAVASCRIPT_ERROR = 'J...