text
stringlengths
3.07k
16k
/* * Copyright (c) 2012 <NAME> * Copyright (c) 2012 "Cowboy" <NAME> * Licensed under the MIT license. * http://benalman.com/about/license/ */ /*jshint node:true, curly:false*/ "use strict"; var fs = require('fs'), path = require('path'), URL = require('url'), sysopen = require('open'), grunt = r...
import React from 'react'; import PropTypes from 'prop-types'; import * as assets from '../utils/assets'; import { useCurrentUser } from './current-user'; import useErrorHandlers from './error-handlers'; import useUploader from './includes/uploader'; class UserEditor extends React.Component { constructor(props) { ...
const SimpleDownloadSession = require("./SimpleDownloadSession") const PartialDownloadSession = require("./PartialDownloadSession") const DownloadSession = require("./DownloadSession") const EventEmitter = require("events") const fjs = require("functional.js") const http = require("http") const https ...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _defineProperty2 = _interopReq...
function _typeof(obj) { 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 !== Symbol.prototype ? "symbol" : typeof o...
if (typeof _ld_ === 'undefined') { throw new Error('Lichess Enhancements: buttons.js aborted (_ld_ is undefined).'); } var _chess; // Creates a clone of the Lichess board and adds it to the DOM. // @todo? Don't add clone to DOM until we have finished calling updateBoard(). // Performing manipulations while our clone...
import React from 'react'; import styled from 'styled-components'; import { RedButton } from './Buttons'; import useRole from '../hooks/useRole'; import makeLocaleLink from '../utils/makeLocaleLink'; import isSpanishPath from '../utils/isSpanishPath'; import getCopy from '../utils/getCopy'; import getConfig from '../ut...
import React, { useState, useRef } from "react"; import { Link, useHistory } from "react-router-dom"; import Avatar from "@material-ui/core/Avatar"; import Button from "@material-ui/core/Button"; import CssBaseline from "@material-ui/core/CssBaseline"; import TextField from "@material-ui/core/TextField"; import Grid fr...
/* eslint-disable */ const _ = require('lodash'); const mongoose = require('mongoose'); module.exports = function(schema, options) { options = _.defaults(options || {}, DEFAULT_OPTIONS); const private_paths = getPaths(schema, options); const refs = getRefs(schema); const toJSON = schema.methods.toJSON; sc...
import React, { useState, useEffect } from 'react'; import TextField from '@material-ui/core/TextField'; import FormControl from '@material-ui/core/FormControl'; import Button from '@material-ui/core/Button'; import * as api from '../../api/serviceApi'; import { makeStyles } from '@material-ui/core/styles'; import Form...
var express = require('express'); var fs = require('fs'); var http = require('http'); var https = require('https'); var mongoose = require('mongoose'); mongoose.connect('mongodb://127.0.0.1/Pensieve'); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error.')); db.once('open', funct...
const Profile = require('../util/mongo/profile.js'); const Discord = require('discord.js-light'); const parse = require('parse-color'); const util = require('../util/util.js'); const validSettings = ['info', 'description', 'color', 'lvlup']; module.exports = { name: 'profile', aliases: ['level', 'lvl'], ex...
/* eslint-disable */ var merkleUtils = require('../util/merkletree'); var SimplifiedMNListDiff = require('./SimplifiedMNListDiff'); var constants = require('../constants'); var Transaction = require('../transaction'); var getMerkleTree = merkleUtils.getMerkleTree; var getMerkleRoot = merkleUtils.getMerkleRoot; funct...
import config from './../config.js'; import Base_tools_class from './../core/base-tools.js'; import Base_layers_class from './../core/base-layers.js'; import Helper_class from './../libs/helpers.js'; import Dialog_class from './../libs/popup.js'; class Text_class extends Base_tools_class { constructor(ctx) { super...
var chart = $("#chart"), aspect = chart.width() / chart.height(), container = chart.parent(); //damit Visualisierung sich an die Fenstergröße anpasst $(window).on("resize", function() { var targetWidth = container.width(); chart.attr("width", targetWidth); chart.attr("height", Math.round(targetWidth...
import React, { useEffect, useRef, useState } from "react"; import PropTypes from "prop-types"; import styles from "./styles.module.css"; import { findNearestCaretStart, hasSelection, getCaretLine, getCaretRect, isEqualCaretRect, getDomSelection, getLineHeight, getLineCount, getText, insertTextAtSel...
import React, { useState} from "react"; import axios from 'axios'; import { Spinner } from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; function Producer(props){ const [currentctx, setcurrentctx] = useState('none'); const [orderId, setorderId] = useState(); const [productId, setprod...
import React from 'react'; import cx from 'classnames'; import { findDOMNode } from 'react-dom'; import PropTypes from 'prop-types'; function capitalize(str) { return str.charAt(0).toUpperCase() + str.substr(1); } function maxmin(pos, min, max) { if (pos < min) { return min; } if (pos > max) { return max;...
import { omit } from 'lodash'; import { createAsyncActionType } from '../../common/helpers/stateHelpers'; import { getQueryString } from '../reducers'; import * as ApiClient from '../../waivioApi/ApiClient'; import { createFilterBody } from '../../client/discoverObjects/helper'; import { getAuthenticatedUserName } from...
// Const const range = 550; const numOfSection = 3; const sleepTime = 10; // Doesnt go below 10. let speedFactor = 10; // Global variables. let bubble = []; let merge = []; let quick = []; let bubbleCounter = 0; let mergeCounter = 0; let quickCounter = 0; function preload() { font = loadFont('assets/Montserrat-Reg...
import * as React from 'react'; import { usePacientContext } from './../../context/PacientContext' import { useApp } from './../../context/AppContext' import axios from 'axios'; import Button from '@mui/material/Button'; import TextField from '@mui/material/TextField'; import Box from '@mui/material/Box'; import Dialog...
/** * View notes view * This allows users to browse the notes * within a hive of their choosing. */ var win = Ti.UI.currentWindow; var header = Ti.UI.createView({ width: '100%', height: '33%', top: 0 }); // Hive selection menu and buttons var navigation = Ti.UI.createView({ width: '100%', backgroundImage: '...
import React from 'react'; import ReactDOM from 'react-dom'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import...
/* Stateful React Component that controls the marketplace view. Displays a list * of all moonlets currently on sale, divided by subcategories - unique class, * sale, and featured. Also includes click event handlers for narrowing the view * by category. Passes down all handlers and state to stateless child components...
import React from "react"; import { Card, CardTitle, CardBody, CardImg, CardImgOverlay, CardText, CardLink, ListGroup, ListGroupItem, Row, Col, Button, Table } from "reactstrap"; import { Line } from "react-chartjs-2"; import { overlayCards, bgCards, gradientCards } from "demos/cardPage"; ...
/** * Created by Administrator on 2017/3/20. */ /* 表单提交 start */ function ajax_form(form_id,act,op,url){ /* form_id 表单ID act 控制器 op 方法 url 成功后返回地址 './goods_list.html' */ // 整理数据 var form = new FormData(document.getElementById(form_id)); // var req ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {'default': obj}; } var _Accordion = require('./Accordion'); var _Accordion2 = _interopRequireDefault(_Accordion); var _Affix = require('./Affix'); var _...
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : for_each.js * Created at : 2017-07-25 * Updated at : 2020-11-15 * Author : jeefo * Purpose : * Description : * Reference : .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/ // ignor...
var styles = require('./mapstyle'); var initMap; var map; var markers = []; var largeInfowindow, autocomplete, geocoder, bounds; initMap = function() { //locate center of the map in Hong Kong var latlng = new google.maps.LatLng(22.3964, 114.1095); // Constructor creates a new map - only center and zoom are ...
//------------------------------------------------------------------------------- // Copyright IBM Corp. 2015 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/l...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Ethdebugger_1 = require("../Ethdebugger"); const eventManager_1 = require("../eventManager"); const traceHelper_1 = require("../trace/traceHelper"); const breakpointManager_1 = require("../code/breakpoin...
// var galleryThumbs = new Swiper('.gallery-thumbs', { // direction: 'vertical', // spaceBetween: 0, // slidesPerView: 4, // mousewheel: true, // }); var galleryTop = new Swiper('.gallery-top', { direction:'horizontal', // autoHeight: true, //enable auto height touchMoveStopPropagation:false, spaceBetween: 0,...
// pages/user/address/update/index.js import {$wuxSelect} from "../../../../packages/@wuxui/index" const { fly, dotProp, setAddress, globalData } = getApp() const { findIndex, find, get } = getApp().lodash Page({ /** * 页面的初始数据 */ data: { defaultFieldNames: { label: 'name', value: 'code', ...
const BaseEntity = require("./BaseEntity.js"); const randomInt = require("./../LevelMVC/Utils.js").randomInt; module.exports = class Ghast extends BaseEntity { constructor(controller, type, identifier, x, y, facing) { super(controller, type, identifier, x, y, facing); this.offset = [-50, -84]; ...
'use strict'; const fs = require('fs'); const path = require('path'); const log = require('util').log; const fse = require('fs-extra'); const async = require('async'); const utils = require('../../utils'); let sites = { /** * Function that reads a custom repository's config.json and loads a json file that ...
/** * mqtt-node-benchmark * * @author <NAME> <<EMAIL>> * @license MIT * @copyright 2019 <NAME> */ const mqtt = require("mqtt"); /** * Publish message (Promise wrapper) * * @param {*} client * @param {string} topic * @param {Buffer} message * @param {number} qos */ async function publish(client, topic...
/* Component Scaffolding Script This is a script that enables scaffolding a new JSS component using `jss scaffold <componentname>`. Edit this script if you wish to use your own conventions for component storage in your JSS app. */ /* eslint-disable no-throw-literal,no-console */ const fs = require('fs')...
const fs = require('fs'); const MongoClient = require('mongodb').MongoClient; const excludedCollections = require('./excludedCollectionList.js').getCollectionList(); // Connection URLs const sourceUrl = process.env.SOURCE_MONGO_URL; let targetUrl = process.env.TARGET_MONGO_URL; if(!sourceUrl){ // Failed to load Fil...
import * as Blockly from 'blockly/core'; import { getColour } from '../helpers/colour'; import store from '../../../store'; var boxes = store.getState().auth.user ? store.getState().auth.user.boxes : null; store.subscribe(() => { boxes = store.getState().auth.user ? store.getState().auth.user.boxes : null; }); va...
const { formatDate } = require("../utilities/formatting"); const { parseAsInt } = require("../utilities/parsing"); const dairyTank = require("./dairyTank"); function convertToLogicalModel(input) { const coordinates = input.gps_coordinates ? input.gps_coordinates.split(",") : null; const name = input.contac...
var remoteMap = null; var addedLayers = {}; $.each(remote_projects_list, function (index, value) { addProject(' ', value) }); setTimeout(function () { remoteMap = L.map('remote-map', { center: [0, 0], zoom: 2 }); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { ...
// Judge the card is V1 or V2. function isV1(wlansd) { if (wlansd.length == undefined || wlansd.length == 0) { // List is empty so the card version is not detectable. Assumes as V2. return false; } else if (wlansd[0].length != undefined) { // Each row in the list is array. V1. re...
var csTimerUrlPatterns = [ "*://*.cstimer.net/timer.php", "*://*.cstimer.net/timer.php?*", "*://cstimer.net/*", ]; var numberOfcsTimerSessions; // Chrome stopped complaining at 7400, but I figured having a 100 byte headroom isn't bad var itemStorageLimit = 7300; var dataKeys = ["cts-props", "cts-save-time", "se...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.FederatedButtons = undefined; var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createCla...
const { expectRevert, expectEvent } = require('@openzeppelin/test-helpers'); const _ = require('lodash'); const BigNumber = require('bignumber.js'); function toBN(n) { return new BigNumber(n); } const SkillToken = artifacts.require('SkillToken'); SkillToken.numberFormat = 'String'; const Characters = artifacts.requ...
//File: SeqProfiling.js // Provide various sequence related services. //MenuLabels ToDyad GcDensity Peaks Peaks2 Log1Trans var cs = New.CsObject("\ const byte cA = 0;\ const byte cC = 1;\ const byte cG = 2;\ const byte cT = 3;\ public void ToDyad(byte[] s, int idx0, int idx1) {\ idx0 = Math.Min(s.Length-1, Mat...
'use strict'; /** * Database Mock - wrapper for database.js, makes system use separate test db, instead of production * ATTENTION: testing db is flushed before every use! */ var async = require('async'); var winston = require('winston'); var path = require('path'); var nconf = require('nconf'); var url = require('...
// DOM Ready ============================================================= $(document).ready(function() { sliders.forEach(function (sliderData) { makeAttributeContainer(sliderData) }); showExampleSongs() $('#button_attributes').click(function () { addInteraction('button_attributes', 'click', 'click'); win...
#!/usr/bin/env node /*! ** pptx-surgeon -- PowerPoint OpenXML File Surgeon ** Copyright (c) 2020-2021 Dr. <NAME> <<EMAIL>> ** ** 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 r...
import React, { useState, useEffect } from 'react'; import { formatRelative } from 'date-fns' import { ptBR } from 'date-fns/locale' import api from '../../services/api'; import { fastLoad2 } from './fastLoad'; import { ButtonPrimary } from '../../components/Buttons'; import { InputIconWeak } from '../.....
const _ = require('lodash'); const Promise = require('bluebird'); const request = require('request-promise'); const cache = require('./cache'); const re = require('./requestEmitter'); const jwt = require('./jwtDecodeObject'); // TODO: get from options const REFRESH_TOKEN_CLIENT_ID = process.env.DEFAULT_TARGET_ID || 'Q...
//const Listener = require('./Listener') const WebSocket = require('ws') const Channels = require('../routing/Channels') const Message = require('../routing/Message') const sleep = require('./sleep') const fs = require('fs') /* #define CHRONICLE_MSGTYPE_FORK 1001 #define CHRONICLE_MSGTYPE_BLOCK 1002 #...
/** * */ const NodeHelper = require("node_helper"); const request = require("request"); module.exports = NodeHelper.create({ callCounter: 0, retreivedCrypto: { crypto: [/*"BTC": 15000*/] }, retreivedStocks: { stocks: [/*"BTC": 15000*/] }, assetsProcessed: ...
// I don't recall where I saw this idea on how to check for a win // but this is what it looks like visually: // // 273 84 // \ / // 1 | 2 | 4 = 7 // -----+-----+----- // 8 | 16 | 32 = 56 // -----+-----+----- // 64 | 128 | 256 = 448 // ================= // ...
import React, { Component } from 'react' import { connect } from 'react-redux' import Colors from 'constants/Colors' import { Dimensions, Keyboard, LayoutAnimation, Platform, StyleSheet, TextInput, TouchableOpacity, View, } from 'react-native' import { Button, Icon } from 'react-native-elements' impor...
/** * Name: Common Core * Desc: 辅助工具 * Author: LostAbaddon * Version: 0.0.1 * Date: 2017.08.19 * * 热更新require库 * 字符串拓展、随机穿 * 日志工具 * 文件夹生成 * 辅助工具 */ const FS = require('fs'); const Path = require('path'); global.Utils = global.Utils || {}; global.reload = path => { path = require.resolve(path); var m...
//error text //client request errors var text400 = "BAD REQUEST";//Bad request var text401 = "AUTHORIZATION REQUIRED";//Authorization required var text403 = "FORBIDDEN";//Forbidden var text404 = "PAGE NOT FOUND";//Not found var text405 = "METHOD NOT ALLOWED";//Method not allowed var text406 = "NOT ACCEPTABLE (ENCODING...
/** * @author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog * * A general perpose camera, for setting FOV, Lens Focal Length, * and switching between perspective and orthographic views easily. * Use this only if you do not wish to manage * both a Orthographic...
"use strict"; // 与坐标相关的 var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBorderWidthBySin = exports.getBorderWidthByCos = exports.twoBezier = exports.getRot...
import { initializeApp } from 'firebase/app'; import { getAuth, signInWithEmailAndPassword, onAuthStateChanged, createUserWithEmailAndPassword, signOut, updateProfile, } from 'firebase/auth'; import { getDatabase, ref, set, get, child, update, remove, } from 'firebase/database'; import { swetc...
/** * Using a package.json, generates output about the dependencies of * a module */ "use strict"; // built-in modules var fs = require("fs"); // npm-installed modules var out = require("cli-output"); var program = require("commander"); // own modules var pkg = require("./package.json"); var Tables = require("....
import Phaser from 'phaser' import * as Math from 'mathjs' /* The boat class has a hull and a boom. The hull gives the desired direction while the boom gives the amgle of attack. The hull also defines the boat speed and collides with the checkpoints */ class Hull extends Phaser.Physics.Arcade.Sprite{ constructor (...
import * as types from './types'; function action(type, payload = {}) { // Order matters. `type` should be at the end, // so it will override any type in payload. return {...payload, type} } export const setErrorPage = (code) => action(types.SET_ERROR_PAGE, { code }); export const clearErrorPage = () => action...
import React,{Component} from 'react'; class Postview extends Component { state = { isOpen: false }; toggleOpen = () => this.setState({ isOpen: !this.state.isOpen }); toggleActive = () => this.setState({ isActive: !this.state.isActive }); render() { const {user ,time...
import moment from 'moment' import React from 'react' import domain from 'utils/domain' import fetch from 'utils/fetch' import { inputTypes as types } from 'modules/inputs' // ------------------------------------ // Constants // ------------------------------------ const META_DATA = { PWID: { label: 'PWID' }, ...
import React, { useRef, useEffect } from "react"; import { css } from "@emotion/core"; import Image from "gatsby-image"; import { bp } from "../../utils/styleUtils"; import LinkIcon from "../../../assets/link.svg"; import Tag from "../Tag"; import { ButtonLink } from "../Button"; function SingleProject({ project, numb...
var fs = require('fs'); var rmdir = require('rmdir'); var mkdirp = require('mkdirp'); var slug = require('slug'); var diff = require('deep-diff').diff; var Installer = require('./installer'); var Tarball = require('./tarball'); var token = require('./token'); var Project = require('./project'); var Build = require('./b...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _obje...
var sonos = require('./device'); var async = require('async'); var util = require('util'); /** * Simple NodeSonos Wrapper * @param {String} volume [Default volume at which the voice should be played] * @param {Number} searchInterval [Default searchinterval at which we want to search for new devices] */ function Ai...
import { fetchUrl } from "../toolbar/util/fetching.js" import { createPreference } from "../toolbar/util/preferences.js" import { startJavaScriptAnimation } from "../toolbar/util/animation.js" import { fetchExploringJson } from "./fetchExploringJson.js" const fetchJSON = async (url, options) => { const response = aw...
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Input, Button, ButtonGroup, ButtonToolbar, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, CardDeck, CardText, CardBody, CardTitle, CardSubtitle, CardHeader, CardColumns, CardFooter, Card,...
const app = getApp() var util = require('../../utils/util.js'); Page({ data: { tip: '', courseurl: 'courseinfo/courseinfo', recommendurl:'recommendedcourse/recommendedcourse', examurl: 'examinfo/examinfo', scoreurl: 'scoreinfo/scoreinfo', ecardurl: 'ecardinfo/ecardinfo', reservationurl: 'r...
//Chapter 07 //Temp 05 //监听键盘事件对盒状可视范围的变化 //vertex shader var VSHADER_SOURCE = ` attribute vec4 a_Position; attribute vec4 a_Color; uniform mat4 u_ViewMatrix; //视图矩阵 uniform mat4 u_ProjMatrix; //盒状可视范围 varying vec4 v_Color; void main() { gl_Position = u_ProjMatrix * u_ViewMatrix * a_Po...
function checkForNans(data){ for (var keys in data){ var ts = data[keys] var filtered = ts.filter(function(data_pts){ return data_pts <= -999; }) } if (filtered.length > 1){ return true } else{ return false }; }; function queryTimeseries(e){ var lngSym = 'E', latSym = 'N', lat, lng, decimLat, whol...
import React from 'react' import styled from 'styled-components' import {useStaticQuery, graphql} from 'gatsby' import Img from 'gatsby-image' import {GiSpotedFlower} from 'react-icons/gi' import { RecipeDialog } from './RecipeDialog' const Recipes = ({ heading }) => { const data = useStaticQuery(query) const recipe...
/* Preload*/ $(window).on('load', function () { // makes sure the whole site is loaded $('[data-loader="circle-side"]').fadeOut(); // will first fade out the loading animation $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. $('body').delay(350).css({ 'overflow': ...
import React from 'react'; import OnContextMenu from './onContextMenuWindow.js' import moveArrow from './../../public/img/move-arrow.png' let contentMenuStyle = { display: location ? 'block' : 'none', position: 'absolute', left: location ? location.x : 0, top: location ? location.y : 0 }; class UserBt...
const vscode = require('vscode') const ui = require('./ui'); const { extensionUri, uflash, ufs, getCurrentWorkspace, getFilesInDir, getVisibleFoldersInDir, assertFileIsIncluded, listFilesOnMicrobit, removeFilesFromMicrobit, getFileFromMicrobit, deleteFileFromDir, cloneRepository, checkFileExis...
const msgerForm = document.querySelector(".msger-inputarea"); const msgerInput = document.querySelector(".msger-input"); const msgerChat = document.querySelector(".msger-chat"); msgerForm.addEventListener("submit", event => { event.preventDefault(); const msgText = msgerInput.value; if (!msgText) return; ...
const prog_id = 'yahoo'; const site_name = 'Yahoo!'; const rate = 1; require('dotenv').config(); const yargs = require('yargs') .usage('Usage: $0 [options]') .boolean('debug') .describe('debug', 'Force headful') .help() .version('0.0.1') .locale('en'); const argv = yargs.argv; let l...
function startGame() { if (document.querySelector('.getName').value !== "") { document.querySelector('.name_box').style.display = 'none'; newGame(); } else { alert("Enter your Name"); } } /* * Create a list that holds all of your cards */ let cards = ["diamond","paper-plane-o","anchor","bolt","cube","ancho...
/*jshint sub:true*/ /*jshint -W078*/ 'use strict'; import Utils from '../utils/Utils'; import Action from '../actions/Action'; import MouseAction from '../actions/MouseAction'; import KeyboardAction from '../actions/KeyboardAction'; import FormAction from '../actions/FormAction'; imp...
import { BSplineCuad } from '../../curves/bspline.js'; import { BezierCuad } from '../../curves/bezier.js'; import { SweepSurface } from '../../surfaces/sweeping.js'; import { RevolutionSurface } from '../../surfaces/revolution.js'; import { Color } from '../../3d/color.js'; import { Container3D } from '../../3d/conta...
/* eslint-disable jsx-a11y/anchor-is-valid */ import "./css/styles.css" import 'bootstrap/dist/css/bootstrap.min.css'; import {connect, useDispatch, useSelector} from "react-redux"; import {Navigate, Link} from "react-router-dom"; import {Dropdown} from "react-bootstrap"; import styled from "styled-components"; import ...
'use babel' const os = require('os') const glob = require('glob') const path = require('path') const findUp = require('find-up') const shell = require('shelljs') import _ from 'lodash' export default { wordAtCursor(text, cursorIndex, wordSeparator, noStripBefore) { const beforeCursor = text.slice(0, cursorIndex...
import dataStore from '../../popup/dataStore'; import * as browser from 'webextension-polyfill'; const PlexAPI = require('plex-api'); const parseString = require('xml2js').parseString; // plex client used in requests, it uses tokens function PlexClient() { return new Promise((resolve, reject) => { const storageI...
import { Form as FormikForm } from "formik"; import React, { useState, useRef } from "react"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import * as Yup from "yup"; import placeholder from "./assets/placeholder.jpg"; import { TextIcon } from "../../components/Icon"; import { ItemIm...
var mapa=[ "******************", "*_________*______*", "*_*****_____******", "*______***__*__*_*", "***_*____*____**_*", "*___*____**__*___*", "*_********__**_*_*", "*____*______*__*_*", "*_**_*__*****_**_*", "*o*__*________**W*", "******************"]; var tablero = document.getElementById('tablero'); var x; var y; ...
const raspi = require('raspi'); const pwm = require('raspi-soft-pwm'); // This file is run from ./node_modules/tiny-worker/lib/worker.js const colors = require('../../../components/colors'); const ledMessages = require('../../../components/ledMessages'); const Debug = require('../../../components/debug'); con...
import * as THREE from "three"; const random = base => { if (Array.isArray(base)) return Math.random() * (base[1] - base[0]) + base[0]; return Math.random() * base; }; const pickRandom = arr => { if (Array.isArray(arr)) return arr[Math.floor(Math.random() * arr.length)]; return arr; }; export class CarLights ...
'use strict'; // gitElement from HTML and assign it to a variables. let container = document.getElementById('one'); let leftElement = document.getElementById('left'); let middleElement = document.getElementById('middle'); let rightElement = document.getElementById('right'); // declare variable for images that side b...
import React, { Component } from 'react'; import { View, StyleSheet, Text, Image, Dimensions, TouchableHighlight } from 'react-native'; export default class FeedItem extends Component { constructor(props) { super(props); let rawDate = this.props.data.date_posted.split(' '); let date = raw...
/* */ const crypto = require('crypto'); const string = require('./string'); const faker = require('faker'); const Faker = {}; Faker.text = (minCountWords = 3, maxCountWords = 50) => { let countWords = Faker.integer(minCountWords, maxCountWords); let text = []; let word; do { word = Faker...
const db = require('../../app/db'); const Promise = require('bluebird'); const CommConns = require('../models/commConns'); const Communications = require('../models/communications'); const Conversations = require('../models/conversations'); const Messages = require('../models/messages'); class CaptureBoard { // ...
/* Copyright (C) 2005-2008 <NAME> <<EMAIL>>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright not...
import React, { Component, Fragment } from 'react' import { Mutation } from 'react-apollo' import withMUI from '../../hocs/withMUI' import { SEND_RESET_PASSWORD_MUTATION } from '../../lib/graphql/mutations' import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import RaisedBu...
"use strict"; import * as core from "./core.js"; import * as option from "./option.js"; import div from "./div.js"; import ul from "./ul.js"; import li from "./li.js"; import a from "./a.js"; import label from "./label.js"; const defaultOption = { type: "tab", //null|tab|pill headAlign: null, //tab align size: null...
import { findsMiniGame, findsPlayable, findsWinOrDeny, findsLine2Continue, findsNewLine, randomNum} from './getInfo' export const mediumAi = (arr, ai, player) => { let mini = findsMiniGame(arr, []) let count = mini.length let coOrds = thoughtProcess(arr, ai, player, mini, count) return {mini: coOrd...
/** @jsx jsx */ import React from "react"; import { css, jsx, keyframes } from "@emotion/core"; import { useFormik } from "formik"; import * as Yup from "yup"; import { AiOutlineCheckCircle, AiOutlineCloseCircle } from "react-icons/ai"; import { FaSpinner } from "react-icons/fa"; const styles = { label: css` mar...
var gulp = require('gulp'), /* Appending header */ header = require('gulp-header'), package = require('./package.json'), /* CSS */ sass = require('gulp-sass'), sassGlob = require('gulp-sass-glob'), sourcemaps = require('gulp-sourcemaps'), autoprefixer = require('autoprefixe...