text
stringlengths
3.22k
29.5k
import yamljs from 'yamljs'; import jsyaml from 'js-yaml'; export const defaultDetectionYaml = `# Below is a sample template. You may refer the documentation for more examples and update the fields accordingly. # Give a name for this anomaly detection pipeline (should be unique). detectionName: name_of_the_detection #...
"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...
/************************************************************************************ * @AUTHOR <NAME> * * This script contains custom JavaScript methods for the StreamOnDemand application* ************************************************************************************/ var SWF_PATH = 'o...
/* Simple image display example mouse + space bar will invert Also, display a random bit of text */ var regularImg; // Declare variable 'img'. var inverseImg; var bRegular = true; var imageList = []; var img; var polka; //y-axis and x-axis of lines let x; let y; let num = 21; var startMillis; var state; var s...
/* * Display picker UI for Timepicker. */ import React from 'react'; import PropTypes from 'prop-types'; import Moment from 'moment'; import classNames from 'classnames'; import { extendMoment } from 'moment-range'; import Button from '../Button'; import IconButton from '../IconButton'; import Layout from '../Layout';...
function CALCULATE_ALL_MOVES_GSC(p1, p2, field) { p1.stats[AT] = Math.min(999, Math.max(1, getModifiedStat(p1.rawStats[AT], p1.boosts[AT]))); p1.stats[DF] = Math.min(999, Math.max(1, getModifiedStat(p1.rawStats[DF], p1.boosts[DF]))); p1.stats[SA] = Math.min(999, Math.max(1, getModifiedStat(p1.rawStats[SA],...
/* * Copyright 2017-2020 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 requ...
$('.nav-toggle').click(function(e){ $('.main-content').toggleClass('collapsed'); $('.sidemenu').toggleClass('active'); }) $('.sidemenu .menu li a').click(function(e){ $('.sidemenu .menu li').removeClass('active'); $(this).parent().addClass('active'); }) $('a[data-toggle="submenu"]').click(function(e){ e.currentT...
#!/usr/bin/env k8 var getopt = function(args, ostr) { var oli; // option letter list index if (typeof(getopt.place) == 'undefined') getopt.ind = 0, getopt.arg = null, getopt.place = -1; if (getopt.place == -1) { // update scanning pointer if (getopt.ind >= args.length || args[getopt.ind].charAt(getopt.place = 0...
function buildServiceStatus(service) { var serviceStatus = {}; for (var key in service['instances']) { var instance = service['instances'][key]; var state = nodeState(instance.checks); serviceStatus[state] = (serviceStatus[state] || 0) + 1; serviceStatus['total'] = (serviceStatu...
import React from 'react'; import PropTypes from 'prop-types'; import { gql, useQuery } from '@apollo/client'; import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; import { groupBy, uniq } from 'lodash'; import { FormattedDate, FormattedMessage } from 'react-intl'; import styled from 'styled-components'; imp...
import { createActions, handleActions } from 'redux-actions' import { createSelector } from 'reselect' import { getLatestRelease as getLatestBootstrapRelease } from './bootstrap' import git from '../_data/git' import api from '../api' const githubApi = api('https://api.github.com/') // Actions export const { fetchC...
export const quotes = [ "Great leaders inspire greatness in others.", "Belief is not a matter of choice, but of conviction.", "Easy is the path to wisdom for those not blinded by ego.", "A plan is only as good as those who see it through.", "The best confidence builder is experience.", "Trust in your friend...
// var init_time; var activate_tab = "TAB1"; // var hitID = ''; // var assignmentID = ''; // var workerID = ''; var useranswer_names = {}; var XY_names = {}; var QA_names={}; var ele = document.getElementsByTagName('input'); var Step3Flag=false; var searchParams = new URLSearchParams(window.location.search...
let years = {}; let demos = {}; let currentTournament = null; let fps = 20; let prevLarge = true; const init = () => { displayNextTournament(); setupOnclicks(); resetAllPredictions(); loop(); } const loop = () => { // If the window was large and is now 425px or smaller if (prevLarge && window.innerWidth ...
const path = require('path') const createRenderer = require('../') const createContext = require('pex-context') const createGUI = require('pex-gui') const vec3 = require('pex-math/vec3') const quat = require('pex-math/quat') const random = require('pex-random') const io = require('pex-io') const createSphere = require(...
import React, { PureComponent } from 'react'; // dva 连接组件 import { connect } from 'dva'; import { Row, Col, Card, Form, Input, Select, Button, Modal, message,Upload,Icon} from 'antd'; import QRCode from 'qrcode.react'; // 面包屑头 import PageHeaderLayout from '../../../layouts/PageHeaderLayout'; import TableList from '../....
var canvas = document.getElementsByTagName('canvas')[0]; canvas.width = window.innerWidth; canvas.height = window.innerHeight; canvas.style.display = "none"; var overlay = document.getElementById('overlay'); overlay.style.display = ""; var gkhead = new Image; var gkheatmap = new Image; var points = []; var removedPo...
var sql = require('mssql'); import * as PORTACTION from "../../../actions/production/port/PORTActionConst.js" import * as PORTSTATE from "../../../actions/production/port/PORTState.js" import * as PORTCHK from "../../../const/ChkConst.js" import * as CONNECT from "../../../const/SQLConst.js" import * as MISC from ".....
/** * Does the main routing function for protected and unprotected routes. (Routes that require a * client SSL cert are 'protected'.) * * Longer routes are matched first: * * /proj/[x]api/vXX/service1/... * * The above is the longest route that will be matched and routed. This form allows * ...
const toggle_wrap = document.getElementById('toggle-wrap'), toggle = document.getElementById('toggle'), winner_indicator = document.getElementsByClassName('winner-indicator')[0], main = document.getElementsByTagName('main')[0], main_title = document.getElementsByTagName('h1')[0], play_btn ...
/* global Localize */ const { ipcRenderer } = require('electron'); const { dialog, app } = require('electron').remote; const fs = require('fs-extra-promise'); const path = require('path'); const { RouterView } = require('../../modules/router'); const route = require('../constants/routes'); const configurationTypes = r...
const helper = require('./helper'); const log = helper.logger('APP'); const params = require('./params.js'); /** * Check if the new config file is correct * * @param {Object} oldConfig old config * @param {Object} newConfig new config * @return {Object} return null if new config is broken */ funct...
import extend from "../utils/extend.js"; import * as rectUtils from "../utils/rect.js"; function start({ interaction, phase }, pageCoords, prevCoords, prevRect) { const { interactable, element, edges } = interaction; const modifierList = getModifierList(interaction); const states = prepareState...
const Model = Backbone.Model.extend(); let model = new Model(); const Profile = Backbone.View.extend({ el: "#profile", sendUrl : "http://www.facebook.com/dialog/send?app_id=1778142652491392&link={href}&redirect_uri={href}", fbShareUrl : "https://www.facebook.com/dialog/share?app_id=1778142652491392&display=page&hre...
// bestsignals.js /* * Copyright (c) 2017-2019 <NAME>, Some 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 notice, * thi...
//// new code function imgError(image) { image.onerror = ""; image.src = "https://pesmaster.fra1.cdn.digitaloceanspaces.com/players/pes-2021/player_0.png"; return true; } function getBaseUrl() { // Nome do host var hostName = location.hostname; if (hostName === "localhost") { // Endereço após o dom...
import React from 'react'; import { connect } from 'react-redux'; import { Link, navigate } from '@reach/router'; import Popup from 'reactjs-popup'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import { ORG_URL, ORG_NAME, API_URL } from '../../config'; import logo from '../../asset...
var db = require('../storage/storage.js') var hexDump = require('hexy').hexy var misc = require('./misc.js') var Packet = require('./packet.js').Packet var log = require('tinylogger') var lowIdClients = require('./lowidclients.js').lowIdClients var conf = require('../enode.config.js').config require('./buffer.js') var...
const { table } = require('table'); const ExchangeRates = artifacts.require('ExchangeRates'); const FeePool = artifacts.require('FeePool'); const FeePoolState = artifacts.require('FeePoolState'); const FeePoolEternalStorage = artifacts.require('FeePoolEternalStorage'); const DelegateApprovals = artifacts.require('Dele...
import React, { useEffect, useState, useRef } from 'react'; import styles from '@/pages/mylayout.less'; import { Button, Form, Input, Radio, Row, Col, message, Tag, Tooltip,Modal } from 'antd'; import { addW, mr0, searchBtn, w300 } from '@/utils/cssStyle'; import searchForm from '@/pages/searchForm.less'; import { requ...
import React, { Component } from "react"; import { observer } from "mobx-react"; import { withStyles, Typography } from "@material-ui/core"; import Grid from "@material-ui/core/Grid"; import Button from "../../elements/Button"; import { validEmail, validPhone } from "../../../validators"; import user from "../../../sto...
var Top_Texto_Soy_Frase = document.getElementById("Soy_Frase_Top"); var Top_Texto_Mi_Nombre = document.getElementById("Mi_Nombre_Top"); var Footer_Texto_Soy = document.getElementById("Soy_Footer"); var li_color = document.getElementById("li_activa"); var incColor = 0; function Color(hsv){ va...
/* * @author: zhangleyi * @date : 2016年8月13日 21:44:46 * @note : 没有做成package,饿哦。 */ function heredoc(fn) { return fn.toString().replace(/^[^\/]+\/\*!?\s?/, ''). replace(/\*\/[^\/]+$/, '').trim().replace(/>\s*</g, '><') } //对象克隆 function myclone(myObj) { if(typeof(myObj) != 'object' || myObj == nu...
import { __decorate, __extends } from "tslib"; import { serialize, serializeAsMatrix, SerializationHelper } from "../../Misc/decorators"; import { Tools } from "../../Misc/tools"; import { Matrix, Vector3 } from "../../Maths/math.vector"; import { BaseTexture } from "../../Materials/Textures/baseTexture"; import {...
$(document).ready(function () { cargarsucursal(); }); $('#sucursal').on('change', function () { var selectVal = $("#sucursal option:selected").val(); $('#tablacategoria').DataTable().destroy(); Cargar(selectVal); }); function cargarsucursal() { var route = "/sucursales/"; var pordefecto, porde...
/* * 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 may ...
//Manage the connection between a User Interface and the backend database //Copyright WyattERP.org; See license in root of this package // ----------------------------------------------------------------------------- //TODO: //X- Works with dbclient //X- Allow separate db connection per ws connection //X- Allow separat...
var config = require("../config"); var viewModel = require("../models/view-model.js"); var htmlModel = require("../models/html-model.js"); var Promise = require('promise'); var dblogger = require("../utils/dblogger.js"); var _ = require('underscore'); var utils = require("../utils/utils"); var fsmModel = require('../mo...
const { app, BrowserWindow, Menu, dialog, ipcMain } = require('electron'); const libpath = require('path'); const nodeUrl = require('url'); const Store = require('electron-store'); const { env: { NODE_ENV, platform } } = process; /** @type {Electron.BrowserWindow} */ let browserWindow = null; /** @type {Electron....
// node-tyrant.js // // A node.js network inerface for Tokyo Tyrant // Version 0.2 // Requires node 0.1.30 or later // <NAME>, Acknack Ltd 2010 // // Copyright 2009, Acknack Ltd. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docum...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // Parses a Coyote xml-trace file into a simple Javascript object model. class Event { name = null; sender = null; senderState = null; receiver = null; receiverState = null; } class Actor { name = null; type = null;...
import React, {Component} from 'react'; import {Text,WebView,View,Image,StyleSheet,Platform,Dimensions,TouchableWithoutFeedback} from 'react-native'; import dismissKeyboard from 'dismissKeyboard'; import {Input, Button2,LabelInput,RowButton,Select} from '../Form'; import {Grid,Row,Col} from 'react-native-easy-grid'; im...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import { createStructuredSelector, createSelector } from 'reselect'; import { getTranslate } from 'selectors/translation-selectors'; import { format } from 'd3-format'; import uniq from 'lodash/uniq'; import camelCase from 'lodash/camelCase'; import upperFirst from 'lodash/upperFirst'; import sortBy from 'lodash/sortBy...
const utils = require( '../../app/lib/utils' ); const chai = require( 'chai' ); const expect = chai.expect; const chaiAsPromised = require( 'chai-as-promised' ); chai.use( chaiAsPromised ); describe( 'Utilities', () => { describe( 'helper to clean openRosaServer URLs', () => { [ 'https://ona....
import Button from '@material-ui/core/Button'; import Rating from '@material-ui/lab/Rating'; import Card from '@material-ui/core/Card'; import CardActionArea from '@material-ui/core/CardActionArea'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import ...
import * as d3 from 'd3' const DEFAULT_HEIGHT = 200 const MARGIN_BOTTOM = 40 const MARGIN_BOTTOM_GROUPS = 55 const MARGIN_TOP = 25 const MAX_EXTENT_LINE_Y = 20 const extentPercent = 0.05 const extentMarginOfError = 0.10 const stackedBarChart = { barOffsetX: 0, groups: undefined, height: DEFAULT_HEIGHT, keys:...
import m from 'mithril'; import prop from 'mithril/stream'; import _ from 'underscore'; import { catarse, commonProject } from '../api'; import models from '../models'; import h from '../h'; import projectDataTable from './project-data-table'; import projectDataChart from './project-data-chart'; import projectContribut...
var ICON_LOVED = '/images/icon_loved.png'; var ICON_UNLOVED = '/images/icon_unloved.png'; var ICON_STATUS_COMMENT = '/images/icon_status_comment.png'; var ICON_STATUS_OFFLINE = '/images/icon_status_offline.png'; var ICON_STATUS_ONLINE = '/images/icon_status_online.png'; var COLOR_PURPLE = '#9857a7'; var COLOR_GREY = '...
// https://www.khanacademy.org/computer-programming/perspective-3d/4549548250759168 /** * 3D * From <NAME>'s tutorial at * http://www.petercollingridge.appspot.com/3D-tutorial * * use up/down arrow keys to move in and out, mouse to look around * * Added: perspective projection, faces, move forward/back with ...
const { DEBUG, } = process.env; // eslint-disable-next-line no-unused-vars const path = require('path'); const axios = require('axios'); const { from, interval, Subject } = require('rxjs'); const moment = require('moment'); const chalk = require('chalk'); const { switchMap, distinctUntilChanged, map, multicas...
/* global location:false */ import global from '../always-global/global.js' import { Process } from '../iso-process/process.js' global.process = Process.getProcess() export let os export class Os { constructor (options) { options = options || {} if (options.endianness) process.env.ENDIAN = options.endiannes...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ajv_1 = require("ajv"); const codegen_1 = require("ajv/dist/compile/codegen"); const code_1 = require("ajv/dist/compile/codegen/code"); const context_1 = require("ajv/dist/compile/context"); const errors_1 = require("ajv/dist/compile/err...
/* ------------------------------------------------------------------ * node-onvif - node-onvif.js * * Copyright (c) 2016 - 2017, <NAME>, All rights reserved. * Released under the MIT license * Date: 2017-09-30 * ---------------------------------------------------------------- */ 'use strict'; const dgram = require('dg...
import React, { useEffect, useRef } from 'react'; import styled from 'styled-components'; import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import hoverEffect from 'hover-effect'; import emptySpace from '../../assets/images/commercial-before.jpg'; import storeFront from '../../assets/imag...
'use strict'; const fs = require('fs') const path = require('path') /** * Raptor.js - v2 * * @Route("/raptor/extjs/designer") */ class ExtjsDesigner extends R.Controller { configure() { } /** * @Route("") */ indexAction(req, res, next) { res.render("extjs-designer:extjs.html.ejs"); } /**...
'use strict'; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _regeneratorRuntime = require('babel-runtime/regenerator')['default']; var _getIterator = require('babel-runtime/core-js/get-iterator')['...
var model = require('component-model') var moment = require('moment') var analytics = require('../analytics') const auth0 = require('../auth0') var store = require('../browser-store') var Commuter = require('../commuter') var log = require('../log')('session') var defaults = require('../components/segmentio/model-defa...
// // MoonWarriors // // Handles the Game Logic // STATE_PLAYING = 0; STATE_GAMEOVER = 1; MAX_CONTAINT_WIDTH = 40; MAX_CONTAINT_HEIGHT = 40; var g_sharedGameLayer; var GameLayer = cc.Layer.extend({ _time:null, _ship:null, _backSky:null, _backSkyHeight:0, _backSkyRe:null, _levelManager:null, ...
const SYS_INFO = wx.getSystemInfoSync() // console.log({ SYS_INFO }) class WxCanvas2d { constructor () { this.query = null // canvas 的查询条件 this.bgColor = null // canvas 背景色 this.radius = null // canvas 背景色 this.component = null // 如果是在自定义组件中,需要获取到自定义组件的内部 this 变量 (即,传入 this) ...
import React, { Component } from 'react' import { Button, Modal, TreeSelect, Table, message, Select } from 'antd' import styles from '../index.less' import utils from '@src/utils' import axios from '@src/utils/axios' import urls from '@src/config' import AddMemberModal from './addMemberModal/index.js' import AddBentchM...
import {vec3, vec4, quat, mat4, util, device} from "../../global"; import {Tw2VertexDeclaration, Tw2RenderBatch} from "../../core"; import {EveObjectSet, EveObjectSetItem} from "./EveObjectSet"; import {assignIfExists, get} from "../../global/util"; import {Tw2Effect} from "../../core/mesh"; /** * Plane set render ba...
/* * This file is part of the OdinMS Maple Story Server Copyright (C) 2008 <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License ver...
import { ATTRIBUTE, BINDING_FLAG, DECORATOR, EVENT, TRANSITION } from '../../config/types'; import runloop from '../../global/runloop'; import Item from './shared/Item'; import Fragment from '../Fragment'; import ConditionalAttribute from './element/ConditionalAttribute'; import updateLiveQueries from './element/update...
const path = require('path'); const { LANGUAGES } = require('../../shared/languages'); const { InvalidDependentPanelError, NotAnArrayOfObjectsError, } = require('../../shared/errors'); const { getProjectResultsFile } = require('../store'); const fs = require('fs'); const { LiteralPanelInfo, ProgramPanelInfo } = req...
/** * @fileOverview G2's plugin for datazoom. * @author sima.zhang */ const Range = require('./component/range'); const G2 = window && window.G2; const { Chart, Util, G, Global } = G2; const { Canvas } = G; const { DomUtil } = Util; const isNumber = val => typeof val === 'number'; class Slider { _initProps() { ...
/* jshint camelcase:false */ var gulp = require('gulp'); var browserSync = require('browser-sync'); var del = require('del'); var glob = require('glob'); var karma = require('karma').server; var merge = require('merge-stream'); var paths = require('./gulp.config.json'); //var plato = require('plato'); var plug = requir...
chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if( request.message === "clicked_browser_action" ) { var firstHref = $("a[href^='http']").eq(0).attr("href"); console.log(firstHref); } } ); var weekdays = { "Sun": 0, "Mon": 1, "Tue": 2, "Wed": 3, "Thu":...
const puppeteer = require('puppeteer') var request = require('request') const fs = require('fs') // import { launch } from 'puppeteer'; // import request, { head } from 'request'; // import { createWriteStream } from 'fs'; // const url='https://www.youtube.com/user/TheXmelro89/videos'; // const url='https://www.youtube...
import { createParser } from "@heavyai/data-layer" import { formatDataValue, maybeFormatInfinity } from "./formatting-helpers" import { DAYS, HOURS, MONTHS, QUARTERS } from "../constants/dates-and-times" import deepEqual from "fast-deep-equal" import moment from "moment" import d3 from "d3" import { constants } from...
/* * Bonobos.js - Bonobos API Class * Author: <NAME> * Date: July 31, 2014 * License: MIT License */ var request = require("request"), fs = require('fs'); var Bonobos = function() { this.baseURL = 'http://www.bonobos.com/b/'; this.categoryList = ['mens-pants', //Couldn't find API endpoint with a cate...
// 修改这里的ws连接!!! 修改为服务器的地址 var wsUri = "ws://127.0.0.1:8282"; var websocket = null; var gender = null; var heart_beat_id = null; var limit = 0; var timer_id = null; var headshot_me = ""; var headshot_TA = ""; // 是否正在聊天 var isChatting = 0; var more_time = 0; function start_chat() { if(gender == null){ la...
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo...
// eslint-disable-next-line no-undef const { Figure, tools } = Fig; const figure = new Figure({ scene: { left: -4.5, bottom: -4.5, right: 4.5, top: 4.5, }, color: [1, 0, 0, 1], lineWidth: 0.01, font: { size: 0.1 }, }); figure.add([ { name: 'origin', make: 'polygon', options: { radius...
// Under MIT License // Use, Modify, Distribute under MIT License. // MIT License 2019 var outT,inT,curid; var leftPos,widthPos, moveBoth; function slide(id, c, left, width, right){ widthPos = -(parseInt(width)); var sliderRightOut = top.frames[0].document.getElementById("sliderRightOut").value; if(id =...
// imports // react import React, { useEffect, useState } from 'react' // libraries import AceEditor from 'react-ace' import axios from 'axios' import openSocket from 'socket.io-client' import { AiFillGithub } from 'react-icons/ai' import { FiClock, FiFileText, FiRotateCcw, FiAlignJustify, } from 'react-icons/f...
import {node_ssh, fs, tmp, path, ping} from "./environment"; import {caCertFile, serverCertFile, serverPrivateKeyFile, dhPemFile} from './environment'; import { generateFireWallConfigForEdgeRouter, generateVPNServerConfigForEdgeRouter, getFirmwareVersionCommand, getOpenVPNInterfaceCommand, getOpenVPNInterface...
const express = require('express'); const axios = require('axios'); const path = require('path'); const dotenv = require('dotenv'); const app = express(); const expressWs = require('express-ws')(app); const bodyParser = require('body-parser'); const cors = require('cors'); const url = require('url'); var ip = require('...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseStartTime = parseStartTime; exports.parseEndTime = parseEndTime; exports.randomString = randomString; exports.queryString = queryString; exports.getSDK = getSDK; exports.getConfig = getConfig; exports.omit = omit; exports.callP...
import React, {useState, useEffect} from 'react'; import {View, Text, ScrollView, TouchableOpacity} from 'react-native'; import T from 'react-native-i18n'; import styles from './index.styles'; import Background from '../../../../components/static/backgound'; import Margin from '../../../../components/utils/margin'; imp...
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { Link, withRouter, } from 'react-router-dom'; import { FormattedMessage, injectIntl, } from 'react-intl'; import { CollapseFilterPaneButton, ExpandFilterPaneButton, SearchAndSortQuery, } from '@folio/stripes/sm...
import React, { Component, useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { usersSelector, getUsers,setUserData } from "../../slices/users"; import Ajax from "../../components/Ajax"; import { Link } from "react-router-dom"; import Alert from "../../components/Alert"; ...
/** * build.js - compile playcanvas engine from source into single javascript library * This uses the Closure Compiler which requires java to be installed * Example usage: * * // regular release build * node build.js -l 0 -o output/playcanvas-latest.js * // production minified build * node build.js -l 1 -o output/playc...
var fs = require('fs'); var SEVEN_SEGMENT_CHARACTERS = { ' ': 0x00, '0': 0x3f, '1': 0x06, '2': 0x5b, '3': 0x4f, '4': 0x66, '5': 0x6d, '6': 0x7d, '7': 0x07, '8': 0x7f, '9': 0x6f, 'A': 0x77, 'a': 0x5f, 'b': 0x7c, 'E': 0x79, 'L': 0x38, 'N': 0x37, 'n': 0x54, 'o': 0x5c, 'P': 0x73, ...
import { atom, selector } from 'recoil'; import { configureCalcAlign } from 'utils/utilFns'; import { CHAR_DETAIL_KEYS, defaultStats, tenQuest, fiveThreeQuest, hpQuest, maQuest, threeAllQuest, spiritQuest } from 'data/constants'; export const charactersState = atom({ key: 'charactersState', default: [], });...
/* global PATH_BITMAP, PATH_MEDIA, PATH_PROGRAM, PATH_BOARD, PATH_CHARACTER, PATH_ITEM, jailed, rpgcode */ var rpgtoolkit = new RPGToolkit(); function RPGToolkit() { this.dt = 0; // Craftyjs time step since last frame; this.screen = {}; this.craftyBoard = {}; this.craftyPlayer = {}; this.tilesets = {}; th...
import React, { Component } from 'react'; import { connect } from "react-redux"; import { Redirect } from 'react-router'; const mapStateToProps = state => { return { current_user: state.current_user, models: state.models }; }; class BulkResultsComponent extends Component { constructor(props) { super(pro...
class Square { constructor(root, isBlue, positionX, positionY) { this.width = 10; this.height = 10; var width = 10; var height = 10; this.position = new THREE.Vector2(positionX, positionY); var slide = new Slide(width, height, isBlue ? 'out' : 'in'); var l1 = new THREE.ImageLoader(); ...
$(document).ready(function () { $("#quote2").mouseenter(function () { $("#quote2content").fadeIn(); }).mouseleave(function () { $("#quote2content").fadeOut(); }) $("#quote3").mouseenter(function () { $("#quote3content").fadeIn(); }).mouseleave(function () { $("#quote3...
import PixiMgr from './pixiMgr'; import './scss/index.scss'; import 'pixi-sound'; import key from 'keymaster'; import { Box, Border, Door, Bug, Wall } from './js/entity'; import { inside, outside, hitLaser, overlap } from './js/physic'; import { rnGen } from './js/utils'; import * as config from './js/config'; if (pro...
const { Cu } = require("chrome"); const { TextDecoder, TextEncoder, OS } = Cu.import("resource://gre/modules/osfile.jsm", {}); //var tabs = require("sdk/tabs"); var self = require("sdk/self"); var ui = require("sdk/ui"); var { setTimeout } = require("sdk/timers"); var urlBase = "http://maw.dev/interface"; var defaultE...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Route, Switch, Link } from 'react-router-dom' import { Columns, Column, Title, Box, Button, Subtitle } from 'bloomer' import isNil from 'lodash/isNil' import { eventActions } from '../../../act...
const express = require('express') const app = express(); const fs = require('fs') const path = require('path') const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser') const user_modules = require('./user_modules'); const auth_modules = require('./auth_modules'); const admin_modules = r...
var twitch = 0; var step = 1; var frame = 0; var motes = new Array(); var light = new Array(); for (var i = 0; i < 100; i++) { motes[i] = [0,0] } // Todo: Standardize on width/100 or something more granular // for all math so we can actually resize the screen. function setup() { createCanvas(window.innerHeight*.7...
var webpack = require("webpack"); var path = require("path"); var fs = require("fs"); var HtmlWebpackPlugin = require("html-webpack-plugin"); var CopyWebpackPlugin = require("copy-webpack-plugin"); // var ExtractTextPlugin = require("extract-text-webpack-plugin"); var ManifestPlugin = require("webpack-manifest-plugin"...
var hiscore = 0; var score = 0; var raccoon1; var raccoon2; var questions = []; var result_score = 0; var result_select = 0; var result_frame = 0; var TITLE = 0; var GAME = 1; var step = TITLE; var Q = 0; var A = 1; var games = Q; var tanuki_maxtime; var tanuki_time; var tanuki_wait; var tanuki = []; var item = [...
/** * @component_name jj input number * @component_desc Input numerical values with a customizable range. * @attribute value / v-model ,binding value, number, / ,0 * @attribute min,the minimum allowed value, number, /,-Infinity * @attribute max,the maximum allowed value, number, /,Infinity * @attribute step...
import { BufferAttribute, BufferGeometry, Vector3, Vector4, Matrix4, Matrix3 } from 'three'; const _positionVector = /*@__PURE__*/ new Vector3(); const _normalVector = /*@__PURE__*/ new Vector3(); const _tangentVector = /*@__PURE__*/ new Vector3(); const _tangentVector4 = /*@__PURE__*/ new Vector4(); const _morphVect...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Global = exports.registerShape = exports.registerAnimation = exports.default = void 0; var viser = _interopRequireWildcard(require("viser")); var _typed = _interopRequireDefault(require("./typed")); function _interopRequireDefaul...