text
stringlengths
3.22k
29.5k
/** * Stateful Moonlet React Controller for the main Moonlet route. Displays info * on the current moonlet and similar moonlets (weighted towards similar moonlet type) * component. */ 'use strict'; import LoadingOverlay from './components/LoadingOverlay'; import PageFooter from './components/PageFooter'; import S...
import { cellTypes, objectTypes, directionTypes, } from '../types' import helpers from '../logic/helpers' import { sendError } from './errors' import { attack } from './attack' import { teleportObject, findObject } from './objects' import { setJumpMode } from './creatures' export const move = (creatureId, direct...
import _ from 'lodash'; import Base from './base'; // Private data store for raw data. const store = new WeakMap(); /** * Represents a two-dimensional grid of binary cells (ones and zeros). * * By default, it is populated with a 1x1 grid containing a single zero. * * @class Model */ export default class Model e...
#!/usr/bin/env node const express = require('express'); const path = require('path'); const basicAuth = require('express-basic-auth'); const cookieParser = require('cookie-parser'); const sqlite3 = require('sqlite3'); const uuidv4 = require('uuid/v4'); const bodyParser = require("body-parser"); const multer = require('...
var canvas, ctx; var width, height; var NUM_X_BLOCKS = 10; var NUM_Y_BLOCKS = 20; var BLOCK_SIZE = 30; var keys = []; var tetrominoes = { i: { blocks: [0x0F00, 0x2222, 0x00F0, 0x4444], color: 'cyan' }, j: { blocks: [0x44C0, 0x8E00, 0x6440, 0x0E20], color: 'blue' }, l: { blocks: [0x4460, 0x0E80, 0xC440, 0x2E0...
var THREE = require('three'); var colorEarth = new THREE.Color(0.7, 0.4, 0.2); var shininessEarth = 10; var colorGrass = new THREE.Color(0.5, 0.9, 0.3); var shininessGrass = 100; function WorldGrid(cols=256, rows=256, layers=32, unitScale = 0.025) { var boundsMax = new THREE.Vector3( cols * unitScale, ...
// Title: Tigra Calendar // URL: http://www.softcomplex.com/products/tigra_calendar/ // Version: 3.2 (American date format) // Date: 10/14/2002 (mm/dd/yyyy) // Note: Permission given to use this script in ANY kind of applications if // header lines are left unchanged. // Note: Script consists of two files: calendar?...
module("glsl.js"); function Circle (x, y, radius) { this.center = { x: x, y: y }; this.radius = radius; } function Player (circle, visible) { this.circle = circle; this.visible = visible; } function getFirstPixelColor (canvas) { var canvas2d = document.createElement("canvas"); var c2d = canvas2d.getConte...
import '../assets/css/reset.css'; import '../assets/less/index.less'; import testMp4 from '../assets/video/test.mp4'; import testOgv from '../assets/video/test.ogv'; import testPoster from '../assets/img/test.jpg'; const ogv = require('ogv'); import enableInlineVideo from 'iphone-inline-video'; // import videojs from '...
let init = function(){ $.ajax({ url: '/offlinedev/api/action/list/', cache: false, method: 'POST', data: {}, success: function( response ) { renderList(response.result) } }); } let filter_timer; let initEvents = function(){ $('#pathfilterinput').on('keyup', function...
import { Ajax } from '../../common/helpers'; import { getDataSet, getDataSetDetails, updateDataSet, createDataSet, } from '../../api/dataSet'; import reportError from '../reportError'; import DataSetManager from './DataSetManager'; import { getDataSetId } from './reducer'; import { push, replace } from '../rout...
let table; // Data counting variables let listLength; let date; let today; let JoCount, StefCount; y = 0; let movement = 0; // Variables for images, graphics, customising elements let spin = 0; let beeAngle = 0; let petals = 8; let daisy, leafL, leafR, lemon, lemonStef, cherry, sun, cloud, bee, croissant; function ...
import React from 'react'; import axios from 'axios'; import { FlatList, Image, View, TouchableOpacity, ImageBackground, Dimensions, StyleSheet, ScrollView, Modal, Linking } from 'react-native'; import { RkText, RkButton, RkCard, RkStyleSheet, RkTabView } from 'react-native-ui-kitten'; import {S...
"use strict"; /** * Copyright © 2021 <NAME>, All Rights Reserved. * * This code base (ts-toolbox) is under the MIT license. See the file at the * project root "LICENSE" for more information. * ----------------------------------------------------------------------------- * * Provides utilities for objects, their ...
const objtools = require('objtools'); const XError = require('xerror'); const zstreams = require('zstreams'); const GcodeProcessor = require('../../lib/gcode-processor'); const fs = require('fs'); const path = require('path'); const JobState = require('./job-state'); class JobManager { constructor(tightcnc) { this...
/* this file was created to suit our needs for gene graphics. since the db only serves us with raw data. this file calculates and decides what to forward to the website and the graphic works. this can be thought as an controller or as an adapter. only 'runGenesCreation' function will be used but it will call the other ...
import * as d3 from 'd3'; async function fetchDBInfo() { const resp = await fetch('/api/db/info', { method: 'POST', }); return resp.json(); } function convertDbInfoData(data) { const firstScheme = data.schemes[0]; // todo: handle other schemes const groups = firstScheme.tables.map(({name, columns}) =>...
/** * @author <NAME> * @email <EMAIL> */ var projections = {}; var selections = {}; var types = {}; var dataset = new Vue({ el: '#dataset', data: { dataSetSelectedAtt: {}, CheckedAtt: [], QueryType: [], Conditions: null, types: null, s_projections: "", s_selections: "", s...
// const { default: Swal } = require("sweetalert2"); function reservation() { return { // view: "main", loading: false, // show: false, modalForm: null, modalMap: null, modalOptionsTable: null, name: "", email: "", dni: "", phone: "",...
'use strict' const log = require('kth-node-log') const redis = require('kth-node-redis') const connections = require('kth-node-api-call').Connections const { server: config } = require('./configuration') const koppsOpts = { log, https: true, redis, cache: config.cache, timeout: 5000, defaultTimeout: confi...
// Node modules import { mean, merge, rollups } from "d3-array"; import { format } from "d3-format"; // Helpers import config from "~/helpers/api-config"; import { handleXHR, fetchData, transformResponse } from "~/helpers/utilities"; import { ENSEMBLES, OBSERVED, OBSERVED_FILTER_YEAR, PRIORITY_10_MODELS, } fro...
// # Palette factory // Scrawl-canvas uses Palette objects to handle color management for its [Gradient](./gradient.html) and [RadialGradient](./radialGradient.html) styles. // + Every gradient-type object gets a Palette object as part of its construction, stored in its `palette` attribute. // + While Palette objects h...
/* eslint consistent-return:0 */ const express = require('express'); const path = require('path'); const logger = require('./logger'); const argv = require('./argv'); const port = require('./port'); const setup = require('./middlewares/frontendMiddleware'); const isDev = process.env.NODE_ENV !== 'production'; const ...
var path = require('path'); var URL = require('url'); var querystring = require('querystring'); var Router = require('tinyrouter'); var meta = require('./meta.js'); var connector = require('./connector/'); var initiators = []; function abs(curl, url) { if( !url ) return '/'; if( url[0] === '/' ) return url; if( ...
"use strict"; const WebSocket = require("ws"); const express = require("express"); let moment = require("moment"); const app = express(); const config = require("../config/keys"); const fs = require("fs"); let secure = config.HTTPS; let server; /* Create HTTP server. */ if (secure === "off") { server = require("htt...
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as actions from '../../actions' import * as selectors from '../../selectors' import { Tabs, TabPanel } from 'react-tabs' import FilterListPanel from './FilterListPanel' import CategoriesListPanel from '....
import React from 'react'; import { View, SectionList, Text, TouchableOpacity, StyleSheet, Platform, Switch, Alert, ActionSheetIOS } from 'react-native'; import DialogAndroid from 'react-native-dialogs'; import PropTypes from 'prop-types'; export const PREF_TYPE = { TEXTINPUT: 1...
const fs = require("fs"); const Koa = require("koa"); const Router = require("koa-router"); const https = require("https"); const jwt = require("jsonwebtoken"); // KOA Specific General Middleware const serve = require("koa-static"); const helmet = require("koa-helmet"); const bodyParser = require("koa-bodyparser"); co...
'use strict'; const path = require('path'); const fileExists = require('file-exists'); class ConfigurationProcessor { process(configuration) { const processedConfiguration = {}; processedConfiguration.eol = this._processEOL(configuration.eol); processedConfiguration.file = this._processFile(configurati...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.CheckBoxItemBase = undefined; 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...
/** * Created by <NAME> on 2015-12-21. */ function showManageVenueModal() { var obj; showLoadingOverlay(); if (window.XMLHttpRequest) { obj = new XMLHttpRequest(); } else if (window.ActiveXObject) { obj = new ActiveXObject("Microsoft.XMLHTTP"); } else { alert("Browser Doe...
import { __decorate } from "tslib"; import * as React from "react"; import { Route, BrowserRouter, Switch, Redirect } from "react-router-dom"; import { observer, Observer } from "mobx-react"; import { SidebarMobileStore } from "../SidebarMobileStore"; import { PageWrapper } from "./PageWrapper"; import { LiveData } fro...
"use strict"; /* clapEngine.js unpublishedScripts/marketplace/clap/clapApp.js Created by <NAME> on 9/11/2017 Copyright 2017 High Fidelity, Inc. Distributed under the Apache License, Version 2.0. See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html Main Heart of the clap scri...
/** * VARS */ /**The current Ninja loaded on popup display*/ var currentNinja; var checkMailIntervalId; /** * Get the current URL. * * @param {function(string)} callback - called when the URL of the current tab * is found. */ var _currentTab; function getCurrentTab() { var promise = new Promise((resolve, reject) =...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {compose} from 'redux'; import {FormattedMessage, injectIntl, intlShape} from '../../util/reactIntl'; import {Form as FinalForm} from 'react-final-form'; import isEqual from 'lodash/isEqual'; import classNames from 'classnames'; i...
/* Copyright (C) 2015 <NAME>. All Rights Reserved. <EMAIL> The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : interpreter.js * Created at : 2019-06-30 * Updated at : 2021-03-07 * Author : jeefo * Purpose : * Description : * Reference : .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/ // ig...
"use strict"; exports.__esModule = true; var input_1 = require("./input"); console.log("day four"); var randomOrder = "67,3,19,4,64,39,85,14,84,93,79,26,61,24,65,63,15,69,48,8,82,75,36,96,16,49,28,40,97,38,76,91,83,7,62,94,21,95,6,10,43,17,31,34,81,23,52,60,54,29,70,12,35,0,57,45,20,71,78,44,90,2,33,68,53,92,50,73,88,4...
// WebGL2 - 2D Rectangles // from https://webgl2fundamentals.org/webgl/webgl-2d-rectangles.html "use strict"; const vertexShaderSource = /*glsl*/`#version 300 es // an attribute is an input (in) to a vertex shader. // It will receive data from a buffer in vec2 a_position; // Used to pass in the resolution of ...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { Row, Col, Card, Form, Input, Select, Button, message, Badge, Divider, Upload } from 'antd'; import StandardTable from 'components/StandardTable'; import PageHeaderLayout from '../../layouts/PageH...
import G6 from '@antv/g6'; // G6.Util.processParallelEdges processes the edges with same source node and target node, // on this basis, processParallelEdgesOnAnchorPoint consider the end nodes and anchor points in the same time. const processParallelEdgesOnAnchorPoint = ( edges, offsetDiff = 15, multiEdgeType = ...
"use strict"; var Config = (function () { function Config(elem) { this.elem = elem; this.ring = false; } Config.prototype.setData = function (data) { if (data) { this.width = data.width || '100%'; this.height = data.height || '100%'; this.img = thi...
const wallpaper = require('wallpaper'); const readline = require('readline'); const { time } = require('console'); const { exec } = require('child_process'); const childProcess = require('child_process'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); const fs = require("...
// Little 2d vector library const vec = (x, y) => (!x && !y ? { x: 0, y: 0 } : (typeof x == 'object' ? { x: x.x || 0, y: x.y || 0 } : (y === null || y === undefined ? { x: x, y: x } : { x: x, y: y }) ) ); vec.components = a => [a.x, a.y]; vec.ux = () => vec(1, 0); vec.uy = () => vec(0, 1); v...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
const { EventEmitter } = require('events'); // const uuid = require('uuid/v4'); const { MqttWsClient, Sensors } = require('./oneos-web-common.js'); /** This is a browser-side runtime, restricted to running stateless and idempotent agents. * It wraps a Worker object to provide a similar interface as the back-end Run...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var vault = null, qrtext = null; self.port.on('set-options-gdata', function(gdata) { vault = new ...
const { expect } = require('chai'); const errorFormatter = require('./validation-error-formatter'); describe('Validation error formatter', () => { describe('at the document level', () => { it('produces allowAttachments violation messages', () => { expect(errorFormatter.allowAttachmentsViolation()).to.equal...
var Emitter = require('emitter'); var resize = require('resize'); var classes = require('classes'); var events = require('events'); var publish = require('publishui'); // var element = require('el.js'); var flexstatic = require('flexstatic'); var flexparents = require('flexparents'); // var dimensions = require('di...
const DURATION = 500; const EASING = 'cubic-bezier(0.36,0.66,0.04,1)'; const OPACITY = 'opacity'; const TRANSFORM = 'transform'; const TRANSLATEX = 'translateX'; const CENTER = '0%'; const OFF_OPACITY = 0.8; export function shadow(el) { return el.shadowRoot || el; } export function iosTransitionAnimation(AnimationC...
var jsonPatch = require('fast-json-patch') var hoek = require('hoek') var moment = require('moment') class JSONPatchRecombobulator { /* * params: options.orderIndependentCollections * orderIndependentCollections: Used for flattening/unflattening. (Required) * Initializes class with orderIndependentCollections...
// data source https://www.kaggle.com/sanjeetsinghnaik/top-1000-highest-grossing-movies/version/1 const apiKey = 'f7f9fe195f863c63a5e2f42428f3c16b'; // set margins, width/height const margin = { left: 80, right: 100, top: 70, bottom: 50 }; const width = 900 - margin.left - margin.right; const height = 600 - margin.top...
var cart = ($.jStorage.get('cart') == null) ? {products:[], calculation:{}} : $.jStorage.get('cart'); function cart_display_on_pageload() { if($('.no-cart').length > 0) { cart.products = []; cart.calculation = {}; } var products = _.filter(cart.products, function(v){ return (v != null) ? v : fals...
// @flow import { defineMessages } from 'react-intl'; const messages = defineMessages({ securityControlsLabel: { defaultMessage: 'Restrictions', description: 'Label displayed above the security restrictions on the file due to the classification label and associated policies.', i...
import * as types from '../types' import router from '../../router' import RouterMap from '../../utils/RouterMap' import ViewSyncing from '../../utils/ViewSyncing' import MQL from '@/plugins/mql.js' import SystemDialog from '../../utils/SystemDialog' import { LOGOUT_PROCESS_STATUS } from '../../utils/Constants' impor...
const assert = require("assert").strict; const expect = require("expect.js"); const { JSDOM } = require("jsdom"); const readFileSync = require("fs").readFileSync; const existsSync = require("fs").existsSync; const metadata = require("../_data/metadata.json"); const GA_ID = require("../_data/googleanalytics.js")(); /**...
/*\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ App/Filename : rratfr-manager/app.js Description : Initializes nodejs Author : RAk3rman \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/ //===================================================// // --- Initialize Packages and Routers --- // ...
import './App.css'; import Editor from "@monaco-editor/react"; import { useRef, useState } from 'react'; import { assemble } from './assembler'; import { step } from './emulator'; import { languageDef, configuration } from './editor-config' import { examples } from './examples'; import Description from './Description'...
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. 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 = P...
'use strict'; var DatasetController = require('../core/core.datasetController'); var defaults = require('../core/core.defaults'); var elements = require('../elements/index'); var helpers = require('../helpers/index'); var resolve = helpers.options.resolve; defaults._set('bar', { hover: { mode: 'label' }, scale...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { Link } from 'react-router'; import { defineMessages, intlShape } from 'react-intl'; import normalizeUrl from 'normalize-url'; import Form from '../../../lib/Form'; import User from '../../../mo...
import { useState, useRef } from "react"; import { Container, makeStyles, Grid, Box, Button, Avatar, TextField, Typography, Divider, Backdrop, CircularProgress } from "@material-ui/core"; import { Link } from 'react-router-dom'; import ConnectWallet from "../components/ConnectWallet"; import { us...
/** * @name jsondir * @description Convert JSON objects to directories and back again. * * @author <NAME> */ 'use strict'; var PATH = require('path'); var FS = require('graceful-fs'); var xtend = require('xtend'); var rimraf = require('rimraf'); var File = require('./File').File; var knownAttributes = Object.f...
'use strict'; var arg = require('./util').arg; var oneDHeightmapFactory = require('./1d-heightmap'); var rng = require('./rng'); var random = rng.float; var randomRange = rng.range; var randomRangeInt = rng.rangeInt; var randomSpacedIndexes = rng.spacedIn...
/** * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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/licens...
/** * DevExtreme (esm/viz/gauges/linear_gauge.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { each as _each } from "../../core/utils/...
/** * Copyright 2019 AXA Group Operations S.A. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
"use strict"; /** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
import {rest} from 'msw' import {match} from 'node-match-path' import * as booksDB from 'mocks/data/books' import * as usersDB from 'mocks/data/users' import * as listItemsDB from 'mocks/data/list-items' let sleep if (process.env.CI) { sleep = () => Promise.resolve() } else if (process.env.NODE_ENV === 'test') { s...
'use strict'; const moment = require('moment'); const Promise = require('bluebird'); const { join, extname } = require('path'); const assignIn = require('lodash/assignIn'); const clone = require('lodash/clone'); const chalk = require('chalk'); const yaml = require('js-yaml'); const { slugize, escapeRegExp } = require(...
var MapGeodataProcessor = function(surface, listener) { this.layer = surface; this.map = surface.map; this.renderer = this.map.renderer; this.killed = false; this.listener = listener; this.busy = false; this.ready = true; this.waitingForStylesheet = false; this.stylesheet = null; ...
import React from "react"; import { Formik, Field, Form, ErrorMessage } from "formik"; import * as Yup from "yup"; import toast from "react-hot-toast"; const Login = () => { return ( <div className="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"> <div className="sm:mx-auto sm:w-full sm:max-...
'use strict'; const got = require('got'); const moment = require('moment'); const ghIssuesStats = require('gh-issues-stats'); const tokenDealer = require('token-dealer'); const deepCompact = require('deep-compact'); const promiseRetry = require('promise-retry'); const uniqBy = require('lodash/uniqBy'); const pick = r...
var fs = require('fs'), path = require('path'), colors = require('colors'), TU = require('../lib/testUtils'), CONST = require('../../Alloy/common/constants'), _ = require('../../Alloy/lib/alloy/underscore')._, jsp = require("../../Alloy/uglify-js/uglify-js").parser, pro = require("../../Alloy/uglify-js/uglify-js...
"use strict"; /* eslint-env mocha*/ /* eslint-disable max-nested-callbacks*/ /** * Functional tests. * * ## Builds * * Build webpack1-4 to actual files, read those in, and then assert against * "expected" fixtures in `test/expected`. * * ## Failures * * Use `builder` to do multi-process executions and asser...
let player; let map; let shipWallLayer; const stations = []; const threats = []; let hullText; let HUDGROUP; let commandSwitch; let bgm; const INTER_SCENE_DATA = { bones: 0, hull: 1, }; const TWEENS = { FINISH_DURATION: 500, START_DELAY: 250, PLAYER_DEATH_ANIM: 1500, HURT_DELAY: 100, }...
function rollDiceP() { var dice1 = document.querySelector("p#dado1"); document.getElementById("OSNF").style.opacity = "0%"; document.getElementById("OSNF").style.height = "1px"; document.getElementById("slider").style.opacity = "0%"; document.getElementById("slider").style.height = "1px"; document.getElemen...
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 !== Symbol.prot...
/** * */ // Last time updated at Fri Jan 08 2016 14:06 // gumadapter.js // https://cdn.webrtc-experiment.com/gumadapter.js // getUserMedia hacks from git/webrtc/adapter; // removed redundant codes // A-to-Zee, all copyrights goes to: // https://github.com/webrtc/adapter/blob/master/LICENSE.md var getUserMedia = ...
const Boom = require('@hapi/boom') const Hoek = require('@hapi/hoek') const { logger } = require('defra-logging-facade') const yaml = require('js-yaml') const fs = require('fs') const journeyRouteTag = 'hapi-journey-map-route' const queryData = {} // Initialised and will be built up later let routeMap = {} const Jo...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
'use strict' var characterEntities = require('character-entities') var legacy = require('character-entities-legacy') var invalid = require('character-reference-invalid') var decimal = require('is-decimal') var hexadecimal = require('is-hexadecimal') var alphanumerical = require('is-alphanumerical') module.exports = p...
/** * Module dependencies. */ var url = require('url') , util = require('util') , Strategy = require('passport-strategy') , CAS = require('cas'); /** * Creates an instance of `CasStrategy`. * * CAS stands for Central Authentication Service, and is a single sign-on * solution for the web. * * Authenticat...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _babelHelperVueJsxMergeProps = require('babel-helper-vue-jsx-merge-props'); var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); var _defineProperty2 = require('babel-runtime/helpers/definePropert...
// @ts-check import React, { useState, useRef, useEffect } from "react"; import { withStyles, MuiThemeProvider } from "@material-ui/core/styles"; import { createTheme } from '@material-ui/core/styles'; import { NoSsr, TableCell, IconButton, TableRow, Typography } from "@material-ui/core"; import { connect } f...
import React, { memo, useCallback, useState, useEffect, Fragment } from "react"; import PropTypes from "prop-types"; import classNames from "classnames"; import withStyles from '@mui/styles/withStyles'; import Routing from "./Routing"; import NavBar from "./navigation/NavBar"; import ConsecutiveSnackbarMessages from "....
var process = require("process"); var util = require("./util.js"); var fs = require("fs"); const child_process = require("child_process"); process.chdir(__dirname + "/.."); var variables_list = [ "_nir_debug_", "nir_debug", "Math_floor", "Math_round", "Math_random", "Math_max", "Math_min", "Math_abs", "get_ra...
import React, { Component, Fragment } from 'react'; import ReactDOM from 'react-dom'; import { Button, Card, CardBody, CardFooter, CardHeader, CardTitle, Col, FormGroup, Input, Label, Row, UncontrolledAlert, UncontrolledCollapse } from 'reactstrap'; import { csrfFetch } from './util/CSRF'; import CSRFForm from './co...
/******************************* * Build Task *******************************/ const gulp = require('gulp'), // node dependencies console = require('better-console'), // gulp dependencies autoprefixer = require('gulp-autoprefixer'), chmod = require('gulp-chmod'), concatCS...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var fromPromise_1 = require("rxjs/observable/fromPromise"); var align_service_1 = require("./services/align.service"); var dom_service_1 = require("./services/dom.service"); var position_service_1 = requi...
// settings var useFileSaver = (typeof(FileSaver.saveAs) != 'undefined'); var useSweetAlert = (typeof(swal) != 'undefined'); Blockly.JavaScript.addReservedWords('code'); Blockly.JavaScript.addReservedWords('highlightBlock'); // general functions function safeString(x) { return ((x == null) ? '' : x.toString()); }...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const {Joi, URISchema} = require('@docusaurus/utils-validation'); const DEFAULT_DOCS_CONFIG = { versionPersistence: 'localStora...
'use strict'; const fs = require('fs'); const path = require('path'); const Web3 = require('web3'); const { toWei, isAddress } = require('web3-utils'); const assert = require('assert'); require('dotenv').config(); const { loadConnections } = require('../../publish/src/util'); const { toBytes32, wrap, networks } = r...
/* global THREE, SimplexNoise, Stats, Events, dat, window, document, Power2, requestAnimationFrame, Stars , Confetti , Ribbon , ATUtil , TweenMax , RIBBON_LEN */ /* Procedural Ribbons (c) @felixturner / www.airtight.cc */ var seed = Math.random()* 10000; //some nice seeds //seed = 6702.011744602003; //seed = ...
const BaseCard = require('./basecard.js'); const CardMatcher = require('./CardMatcher.js'); const ReferenceCountedSetProperty = require('./PropertyTypes/ReferenceCountedSetProperty'); const StandardPlayActions = require('./PlayActions/StandardActions'); const Icons = ['military', 'intrigue', 'power']; class DrawCard ...
import limax from 'limax'; import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; import { SyncedCron } from 'meteor/littledata:synced-cron'; import _ from 'underscore'; import LDAP from './ldap'; import { RocketChatFile } from '../../file'; import { settings } from '../../settings'; ...
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
'use strict'; const Long = require('long'); const hexArray = '0123456789ABCDEF'.split(''); const Errors = require('../misc/errors'); const CommonText = require('../cmd/common-text-cmd'); const Iconv = require('iconv-lite'); /** * Write bytes/hexadecimal value of a byte array to a string. * String output example : *...
function createPour() { var pour = { apiKey: '<KEY>', // trackID: 'TRLXIRU12E5AD67A71', // trackURL: 'Spanish Flea.mp3', // trackID: 'TRIMDDN12E5AB73EF1', // trackURL: '16 We Will Rock You.mp3', // trackID: 'TRCYWPQ139279B3308', // trackURL: '1451_-_D.mp3', // trackID2: 'TRBIBEW13936EB37C9', ...
'use strict'; const assert = require('assert'); const Linter = require('../index'); const { processRules } = require('../get-config'); function parseMeta(item) { let meta = item !== undefined && typeof item === 'object' && item.meta ? item.meta : {}; meta.filePath = meta.filePath || 'layout.hbs'; meta.moduleId ...