text
stringlengths
5.97k
41.2k
process.setuid && process.setuid(501); const path = require('path'); const querystring = require('querystring'); const chalk = require('chalk'); const concat = require('concat-stream'); const mime = require('mime-types'); const moment = require('moment'); const fs = require('fs'); const SwitcherUIServer = require('./...
import resized from '@area17/a17-helpers/src/utility/resized'; import getCurrentMediaQuery from '@area17/a17-helpers/src/utility/getCurrentMediaQuery'; import isBreakpoint from '@area17/a17-helpers/src/utility/isBreakpoint'; import createBehavior from './createBehavior'; let options = { dataAttr: 'behavior', lazyA...
import { app, BrowserWindow, Menu, shell, dialog } from "electron"; import { initGlobalCfg, validateGlobalCfgFile, setMustOpenForm } from "./config"; import { initWalletCfg, getWalletCfg, newWalletConfigCreation, readcdrConfig, createTempcdrConf } from "./config"; import fs from "fs-extra"; import path from "path"; imp...
// Object for scene parameters var sceneParams = { wallColor: 0x9ce9f0, ceilingColor: 0x9ce9f0, floorColor: 0xffffff, ambLightColor: 0x838383, directionalLightColor: 0xffffff, directionalLightIntensity: 1, directionalLightX: 0.1, directionalLightY: 0.2, directionalLightZ: 0.5, spotlightColor: 0xf...
import React from 'react'; import ReactDOM from 'react-dom'; import './App.css'; import ROT from 'rot-js'; class App extends React.Component { constructor(props) { super(props); this.onKeyPressed = this.onKeyPressed.bind(this); this.mapSetup = this.mapSetup.bind(this); this._map; this._entities...
"use strict"; var handleError = function handleError(message) { $("#errorMessage").text(message); $("#messageBox").animate({ width: 'toggle' }, 350); }; var redirect = function redirect(res) { $("#messageBox").animate({ width: 'hide' }, 350); window.location = res.redirect; }; var sendAjaxFile = ...
/* eslint-disable consistent-return, func-names, import/no-unresolved, max-len, no-cond-assign, no-console, no-multi-assign, no-param-reassign, no-plusplus, no-restricted-syntax, no-return-assign, no-undef, no-underscore-dangle, no-unused-vars, no-use-before-d...
const { app, nativeTheme, BrowserWindow, protocol } = require('electron'); const path = require('path'); const cProcess = require('child_process'); const process = require('process'); const portscanner = require('portscanner'); const signalR = require('@microsoft/signalr'); const os = require('os'); const { imageSize ...
//////////////////////////////////////////////////////////// /////////////////////////TELECATION///////////////////////// //////////////////////////////////////////////////////////// //ADDING NEW VOICEMAILS ===== FOLLOW ++++++++ SYMBOL ++++++++++ //++++++++ 6-STEP PROCESS ++++++++++// ////////////////////////////////...
import {select, selectAll} from "d3-selection"; import {timeFormat, timeParse} from "d3-time-format"; import {format} from "d3-format"; import {scaleLinear, scaleSequential} from "d3-scale"; import {axisRight} from "d3-axis"; import {interpolateBlues} from "d3-scale-chromatic"; import {timeDay, timeWeek, timeMonth, tim...
import { DateTime, Duration } from '/static/third-party/luxon-2.2.0/luxon.min.js'; import { ArrayUtils } from '/static/vesper/util/array-utils.js'; const _PLOT_LIMIT_PADDING = 1; // hours const _RUG_HEIGHT = 25; // client pixels, also appears in CSS const _CLIP_LINE_MARGIN = 6; // clie...
import React from 'react'; import "./components.css" import CanvasDetails from "./canvasDetails.js" import ColorPicker from "./colorPicker.js" import Controls from "./controls" import LoadingScreen from "./loadingScreen" const URL = "http://localhost:3001" const colorRegex = /rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/; //...
'use strict'; var utils = require(`${__dirname}/../../utils/utils.js`); //Pokemon databases var abilities = require(`${__dirname}/../../data/abilities.js`)['BattleAbilities']; var items = require(`${__dirname}/../../data/items.js`)['BattleItems']; var learnsets = require(`${__dirname}/../../data/learnsets.js`)...
// UIButton.js // Version: 0.1.0 // Event: Initialized Event // Description: Trigger events and behaviors by press. // // ----- USAGE ----- // Attach this script to a Scene Object with a Screen Transform Component. // Assign a Screen Image Object to the "Background Object" parameter // // ----- LOCAL API USAGE ----- /...
import React, { Component } from 'react' import { connect } from 'react-redux' import * as PIXI from 'pixi.js' import { addPart } from '../store/user' import { getInv } from '../store/user' class Battle extends Component { constructor () { super() } componentDidMount () { const mech = this.props.mech ...
"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 (b.hasOwnPrope...
var https = require('https'); var http = require('http'); function League(k) { this.key = k; this.makeCall = function(urlString, cb) { var data = ""; console.log(urlString); https.get(urlString, function(res) { res.on('data', function(chunk){ data += chunk.toString(); }); res.on('end', function(){...
import grapesjs from 'grapesjs'; import $ from 'jquery'; //Инициализация редактора const editor = grapesjs.init({ // Indicate where to init the editor. You can also pass an HTMLElement container: '#gjs', i18n: { locale: 'ru', }, fromElement: true, // Size of the editor height: '500px', width: 'auto...
import React, { useState, useEffect, useCallback, useMemo } from 'react' import { useTranslation } from 'react-i18next' import ReactGA from 'react-ga' import { ethers } from 'ethers' import styled from 'styled-components' import { transparentize } from 'polished' import { Button } from '../../theme' import CurrencyInp...
//library dependency import React, {Component} from 'react'; import {withStyles} from '@material-ui/core/styles'; import Breadcrumbs from '@material-ui/lab/Breadcrumbs'; import Link from '@material-ui/core/Link'; import NavigateNextIcon from '@material-ui/icons/NavigateNext'; import TablePagination from "@material-ui/c...
/* Copyright 2011 Google Inc. 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 applicable law o...
const PC1 = [ 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4, ], PC2 = [ 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 2...
/*********************************************************************** Copyright 2018 Google Inc. 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 Unles...
var arrMMAS4Score4 = []; var arrMMAS8Score4 = []; function Init_UC_Session4_Controls(response) { debugger; window.scrollTo(0, 0); $('input[type="checkbox"]').on('switchChange.bootstrapSwitch', function (event, state) { DisableAdherenceBarriersDiv(this); }); $("#chkCaseManager4").bootstra...
test("TinyColor initialization", function() { ok(typeof tinycolor != "undefined", "tinycolor is initialized on the page"); ok(typeof tinycolor("red") == "object", "tinycolor is able to be instantiated"); var r = tinycolor("red"); ok(tinycolor(r) === r, "when given a tinycolor instance, tinycolor() r...
const fs = require("fs"); const http = require("http"); const express = require("express"); const { logExpression, setLogLevel } = require("@cisl/zepto-logger"); const { quantize } = require("@humaine/utils/math"); const argv = require("minimist")(process.argv.slice(2)); let logLevel = 1; if (argv.level) { logLeve...
/** * Textures in Freelancer are either uncompressed Targa (16/24/32, as well as * indexed palettes) and DirectDraw Surface (compressed DXT1/3/5 as well as * RGB-565 and few other uncompressed variants). * * WebGL does not support swizzle masks to swap color channels so Targa images * have their buffers rebuilt. ...
// Script to synchronize a calendar to a spreadsheet and vice versa. // // See https://github.com/Davepar/gcalendarsync for instructions on setting this up. // // Set this value to match your calendar!!! // Calendar ID can be found in the "Calendar Address" section of the Calendar Settings. const calendarId = '<EMAIL>...
first('.panelclick').addEventListener("click", function () { first('panel').classList.toggle('hdn-i'); first('.panelclick').classList.toggle('cwgray'); }); first('.helperclick').addEventListener("click", function () { first('helper').classList.toggle('hdn-i'); first('.helperclick').classList.toggle('c...
var editor_source = ace.edit("editor_source"); editor_source.setTheme("ace/theme/monokai"); editor_source.session.setMode("ace/mode/python"); editor_source.getSession().selection.on( 'changeSelection', function (e) { editor_source.getSession().selection.clearSelection(); } ); var editor_configs = ace.edit("ed...
/* * @author <NAME> * @digest 消息监听 * @time 2022-01-11 */ const bot = require("../bot.js"); // let i=0 // console.log(`消息测试数据${++i}`); const request = require("../request"); const { UrlLink } = require("wechaty"); const { FileBox } = require("file-box"); const fs = require("fs"); const path = require("path"); con...
/** * Copyright (c) 2006-2018, JGraph Ltd * Copyright (c) 2006-2018, <NAME> * Updated to ES9 syntax by <NAME> 2021 * Type definitions from the typed-mxgraph project */ import GraphLayout from '../GraphLayout'; import { DIRECTION_NORTH } from '../../../../util/Constants'; import HierarchicalEdgeStyle from './Hierar...
const React = require('react') const PropTypes = require('prop-types') const { findDOMNode } = require('react-dom') const scrollIntoView = require('dom-scroll-into-view') const IMPERATIVE_API = [ 'blur', 'checkValidity', 'click', 'focus', 'select', 'setCustomValidity', 'setSelectionRange', 'setRangeTex...
import $ from '../../core/renderer'; import eventsEngine from '../../events/core/events_engine'; import Config from '../../core/config'; import registerComponentCallbacks from '../../core/component_registrator_callbacks'; import Class from '../../core/class'; import Callbacks from '../../core/utils/callbacks'; import t...
const os = require("os"); const EventEmitter = require("events"); const child_process = require("child_process"); const ConsoleGrid = require("console-grid"); //'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white' const CGS = ConsoleGrid.Style; const consoleGrid = new ConsoleGrid(); const output = (o...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v15.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c ...
import { Compression, getAddress, require, arch, fs, path as pathModule, lmdbxError, EventEmitter, MsgpackrEncoder, Env } from './external.js'; import { CachingStore, setGetLastVersion } from './caching.js'; import { addReadMethods, makeReusableBuffer } from './read.js'; import { addWriteMethods } from './write.js'; im...
/* scatterplotThree.js * A set of example Javascript functions that support a threejs-based 3d * scatterplot in R, geared for use with the htmlwidgets and shiny packages. */ HTMLWidgets.widget( { name: "scatterplotThree", type: "output", initialize: function(el, width, height) { var r = render_init(el,...
/* * Copyright 2018 The CodeWorld Authors. 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...
import { ArrayUtils } from '/static/vesper/util/array-utils.js'; class _Layout { constructor(div, clipViews, settings) { this._div = div; this._clipViews = clipViews; this.settings = settings; } get div() { return this._div; } get clipViews() { return this._clipViews; } get settin...
import * as React from 'react'; import PropTypes from 'prop-types'; import NextLink from 'next/link'; import { useRouter } from 'next/router'; import Button from '@mui/material/Button'; import Divider from '@mui/material/Divider'; import { styled, alpha } from '@mui/material/styles'; import List from '@mui/material/Lis...
import React, { Component } from "react"; import gql from "graphql-tag"; import { compose, graphql } from "react-apollo"; import { message } from "antd"; import * as short from "short-uuid"; import _ from "lodash"; import Sidebar, {SidebarArea, SidebarItem, SidebarMessage} from "../../components/Sidebar/Sidebar"; impor...
var i=0, iLen, j, jLen, k, kLen; var sId = this.getAttribute( 'id' ); var bInitHandedOff = false; var bUsePassedData = false; var oInitEmpty = oInit === undefined ? true : false; /* Sanity check */ if ( this.nodeName.toLowerCase() != 'table' ) { _fnLog( null, 0, "Attempted to initialise DataTables on a node which is...
/*code for facilities.jade*/ "use strict"; // Debugging: all loggers log to both the server and the console // See: https://github.com/Effizjens/Aufgabe_7/blob/master/public/javascripts/map.js var ajaxAppender=JL.createAjaxAppender('ajaxAppender'); var consoleAppender=JL.createConsoleAppender('consoleAppender'); JL("...
$("#SalesItems .item").on("contextmenu", function (e) { e.preventDefault(); const el = $(this); const defaultMenu = el.find(".info.block, .number.block"); const contextMenu = el.find(".context.menu"); defaultMenu.toggle(); contextMenu.toggle(); }); var itemTemplate = `<div class="item" id...
/*cart*/ $('body').on('click', '.add-to-cart', function(e) { e.preventDefault(); var id = $(this).data('id'), size = $(this).closest('.item__cont').find('.radio:checked').val(); if (size) { $.ajax({ url: '/cart/add', data: { id: id, s...
export { default as Activity } from './icons/activity'; export { default as Airplay } from './icons/airplay'; export { default as AlertCircle } from './icons/alert-circle'; export { default as AlertOctagon } from './icons/alert-octagon'; export { default as AlertTriangle } from './icons/alert-triangle'; export { d...
'use strict'; const notepack = require('../'); const expect = require('chai').expect; const ObjectId = require('mongodb').ObjectId; function array(length) { const arr = new Array(length); for (let i = 0; i < arr.length; i++) { arr[i] = 0; } return arr; } function map(length) { const result = {}; for ...
var Db var Info var rpc var filter var processor var working = false // Const const BITCOIN_CONFIG = { rpc: { protocol: 'http', user: process.env.BITCOIN_USER, pass: process.env.BITCOIN_PASSWORD, host: (process.env.HOST ? process.env.HOST : ip.address()), port: process.env.BITCOIN_PORT, limit:...
//UI Variables var bgColor = '#eeeeee'; var elementColor = '#fafafa'; var textColor = 'black'; var scuareColor = localStorage.getItem('scuareColorSave') || '#fafafa'; var clickedColor = 'lightgray'; var theme = 'light'; var currentScreen = 'game'; var wikiLink; //Screen Menu Variables var screen1Color; var screen2Color...
const {webFrame, remote} = require('electron'); //const remote = electron.remote; const Store = require('electron-store'); const settings = new Store({name: 'Settings'}); const abook = new Store({name: 'AddressBook', encryptionKey: ['79009fb00ca1b7130832a42d','e45142cf6c4b7f33','3fe6fba5'].join('')}); const gutils = ...
const fs = require('fs'); const {ipcMain, webContents} = require('electron'); const path = require('path'); const util = require('util'); const {Client} = require('../dist/rpc.bundle.js'); const matched = require('../data/matched.json'); if (!String.prototype.padStart) { String.prototype.padStart = function padStart(...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React from 'react' import { Link } from 'gatsby' import { Accordion, Tab, Row, Col, Nav, Container } from 'react-bootstrap' import styled from 'styled-components' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCaretDown, faNewspaper } from '@fortawesome/free-solid-svg-icons' import {...
// by kezunlin // date 2015-9-16 /* // http://www.cnblogs.com/lyqf365/p/3287293.html // http://blog.csdn.net/zhizhu8256/article/details/8822675 // http://t0.tianditu.com/cva_w/wmts?request=GetCapabilities&service=wmts // http://www.cnblogs.com/sailheart/archive/2011/03/11/1981536.html // http://blog.csdn.net/zhizhu825...
import _ from "lodash" import { BaseService } from "medusa-interfaces" import { MedusaError } from "medusa-core-utils" /** * Handles Returns * @implements BaseService */ class ReturnService extends BaseService { constructor({ manager, totalsService, lineItemService, returnRepository, returnIte...
//@SequenceName: Alt Daily Intro // vim: foldmethod=marker // Stuff copy pasted from the intro sequence for main char //@SequenceCode //{{{1 Utilities function dbg(...msg) { console.log(...msg); } function DocRegex(re, idx) { dbg('Regexing: ' + re); var result = re.exec(document.body.innerText); db...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
import _ from "lodash"; import { config } from "../../config"; import { r } from "../models"; import { eventBus, EventType } from "../event-bus"; import { addWhereClauseForContactsFilterMessageStatusIrrespectiveOfPastDue } from "./assignment"; import { buildCampaignQuery } from "./campaign"; import { UNASSIGNED_TEXTER ...
import { DEFAULT_SETTINGS, CUSTOM_CSS_VARS } from '../../addon/defaults' const PNG_RE = /(\.png)([?#].*)?$/i const JPG_RE = /(\.jpe?g)([?#].*)?$/i const PDF_RE = /(\.pdf)([?#].*)?$/i const GROUP_BASE = browser.runtime.getURL('group/group.html') const PIN_SCREENSHOT_QUALITY = 90 const SCREENSHOT_QUALITY = 25 const tab...
// Import parts of electron to use const path = require('path'); const fs = require('fs').promises; const superagent = require('superagent'); const options = { client_id: 'd7d18bb70f2cf302fe85', client_secret: 'd3158d51f0b1d0631854faef2948d7e8b81a4d08', scopes: ['public_repo'], // Scopes limit access for OAuth t...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl } from 'react-intl'; import { message, Modal } from 'antd'; import { findKey, find, get, isEmpty, map, includes, filter, size, isEqual } from 'lodash'; import Slider from '../../co...
/* +------------------------------------------------------------------------+ | Interchained | Web3 + 0x + Altcoin | Wallet Utility | Web3 Account Wrapper for ERC20 & BEP20 | Inspired by Viloid ( github.com/vsec7 ) | Developed by Interchained ( github.com/shopglobal ) ...
/* globals $ dd d3 */ // Initialize Module async function module_streamgraph() { $("#home").removeClass("active"); $("#streamgraph").addClass("active"); $("#keywordgraph").removeClass("active"); $("#simpap").removeClass("active"); $("#simauthor").removeClass("active"); $("#authormap").removeClass("active"); $(...
const combat = require("./combat"); const version_info = require("./version_info"); const logic = require("./logic"); const fs = require('fs'); exports.run = function (result_file_prefix, p_target, equipset_aa, equipset_ws,end_time,e_target,byBatch,debug_file) { var player = require("./player"); var enemy =...
'use strict'; var transMessage = self.webkitPostMessage || self.postMessage; var CITY = {}; var timer; //var timestep = 1000/30; var Game; var pcount = 0; var power; //var ab = new ArrayBuffer( 1 ); //transMessage( ab, [ab] ); var trans = false;// ( ab.byteLength === 0 ); self.onmessage = function (e) ...
// testing user = "<EMAIL>"; // Firebase var firebaseConfig = { apiKey: "AIzaSyB8zIm4HC6LeLgLbU5qlYgNNe0aEPHes8Y", authDomain: "calen-dard.firebaseapp.com", projectId: "calen-dard", storageBucket: "calen-dard.appspot.com", messagingSenderId: "555896146781", appId: "1:555896146781:web:9aa4f28c38...
import * as React from 'react'; import { createPortal } from 'react-dom'; import { pathnameToLanguage } from 'docs/src/modules/utils/helpers'; import ReactDOMServer from 'react-dom/server'; import PropTypes from 'prop-types'; import NextLink from 'next/link'; import { DocSearchModal, useDocSearchKeyboardEvents } from '...
/** * Provides attack and damage-related helpers under the Attacking umbrella (to avoid name ambiguity with the component). */ function Attacking() {} const DirectEffectsSchema = "<element name='Damage'>" + "<oneOrMore>" + "<element a:help='One or more elements describing damage types'>" + "<anyName/>" + ...
'use strict'; // Constants // Use set DEBUG_ENABLED to true to enable verbose logging (alpha builds) const DEBUG_ENABLED = true; const FILE_SYSTEM_ID = 'onedrivefs'; const FILE_SYSTEM_NAME = 'OneDrive'; class OneDriveFS { // Constructor constructor() { this.onedrive_client_map_ = {}; this.m...
/** * Copyright 2015 The AMP HTML Authors. 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 require...
var main = { checkAuth: function(response) { if (response.relogin != null) { $('#modal_login').modal('show'); } }, alertMessage: function(message, type, options) { if (type == 'success') { swal({ title: message, // text: 'I w...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* * Minio Browser (C) 2016 Minio, Inc. * * 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 law or ag...
var api = require('./neo4jApi'); $(function() { search() $("#search").submit(e => { e.preventDefault(); search(); }); }); function showTransaction(pubKey) { api .getTransactionLosses(pubKey) .then(res => { if (!res) return; document.getElementById("public-key").innerHTML = "Transac...
window.addEventListener("scroll", async () => { // End of the document reached? if ($(document).height() - $(this).height() - 350 < $(this).scrollTop()) { const bulletinBoardNews = document.getElementById("newsBulletin"); if (loadedContent == true) { loadedContent = false; ...
/* eslint-disable react/no-did-update-set-state, react/no-did-mount-set-state */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import RenderIf from '../RenderIf'; import RightElement from './rightElement'; import SelectedValue from './selectedValue'; import Options from './options'; impo...
const { Game, GameNode, Colors, Shapes, ShapeUtils } = require('squish-0754'); const dictionary = require('../../common/util/dictionary'); const COLORS = Colors.COLORS; class WordMatch extends Game { static metadata() { return { aspectRatio: {x: 16, y: 9}, squishVersion: '0754', ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getIterator2 = require('babel-runtime/core-js/get-iterator'); var _getIterator3 = _interopRequireDefault(_getIterator2); var _keys = require('babel-runtime/core-js/object/keys'); var _keys2 = _interopRequireDefault(_keys); var _str...
/* * This js file included in add_new_course form */ $(document).ready(function () { var cnt = $('#sales_exec_tbl tr').size(); cnt_array = [0]; selected_exec_array = new Array(); $("#sales_exec_addmore").click(function () { retVal = true; $("#sales_exec_tbl_err").text("").removeClass(...
console.log('Minesweeper'); // TODO // renderCell // expandShown var gBoard; var gGameInterval; var gMinesCells; var MINE = '💣' var EMPTY = ' '; var FLAG = '🚩'; var gHintMode = false; var gUniqueLocations; var gLevel = { SIZE: 4, MINES: 2 }; // var gGame = { // isOn: false, // shownCount: 0, // ...
/****************************** An interactive game in the BACKGROUND of the Slideshow... (if fullscreen, origin is top-left of slideshow) (if not, allow MULTIPLE canvasses & games.) ******************************/ function Simulations(){ var self = this; self.dom = $("#simulations"); self.sims = [...
import React from "react"; import * as Yup from "yup"; import { Formik, Form, Field } from "formik"; import { Grid } from "@mui/material"; import { IoIosAdd } from "react-icons/io"; import { firebaseStorageServices } from "../../../../../../services"; import { productActions } from "../../../../../../actions/product.ac...
// Copyright 2006 The Closure Library Authors. 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 requ...
/* Copyright (C) 2014 Newcastle University * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ /** * AuthController * * @module :: Controller * @description :: Contains logic for handling requests. */ const fs = require("fs-extra"); con...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import MenuItem from "@material-ui/core/MenuItem"; import FormControl from "@material-ui/core/FormControl"; import Select from "@material-ui/core/Select"; import { scaleOrdinal, scaleLinear, sc...
/* cfb.js (C) 2013-present SheetJS -- http://sheetjs.com */ /* vim: set ts=2: */ /*jshint mocha:true */ /* eslint-env mocha */ /*global process, require */ /*:: declare type EmptyFunc = (() => void) | null; declare type DescribeIt = { (desc:string, test:EmptyFunc):void; skip(desc:string, test:EmptyFunc):void; }; declar...
import {combineReducers} from 'redux'; import {REQUEST, SUCCESS, FAILURE, CONTRACT_COMPILE, FILES, LOGOUT, AUTHENTICATE, FETCH_CREDENTIALS, UPDATE_BASE_ETHER, CHANGE_THEME, FETCH_THEME, EXPLORER_SEARCH, DEBUGGER_INFO, SIGN_MESSAGE, VERIFY_MESSAGE, TOGGLE_BREAKPOINT, UPDATE_PREVIEW_URL, UPDATE_DE...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
/*! Made With Love | Classiebit Softwares */ /*! timeSince - calculate time in sec, min, hours, days */ function timeSince(date) { var seconds = Math.floor((new Date() - date) / 1000); var interval = Math.floor(seconds / 31536000); if (interval > 1) return interval + " years"; interval = Math.floor(sec...
/* * PIXI.JS GAME */ PIXI.settings.RESOLUTION = window.devicePixelRatio; PIXI.settings.SORTABLE_CHILDREN = true; var balloons = []; var flyingObjects = []; var balloonImages = [ "./images/animations/balloon/frame_0_delay-0.1s.png", "./images/animations/balloon/frame_1_delay-0.1s.png", "./images/animations/bal...
import { Engine } from "../Engines/engine"; import { Vector2, Vector3 } from "../Maths/math.vector"; import { Texture } from "../Materials/Textures/texture"; import { RawTexture } from "../Materials/Textures/rawTexture"; import { ShaderMaterial } from "../Materials/shaderMaterial"; import { Mesh } from "../Meshes/...
/* * A screen to view and edit plot details * * expected args: plotID, title, siteID, plotName */ var args = arguments[0]; var plotID = args.plotID; var plotTitle = args.title; var siteID = args.siteID; var plotName = args.plotName; //initialize variables var photo; //Set the title of the modal to the plot na...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
/** * @fileOverview UiModalWinCW * @author Epam * @version 1.0.0 */ // ******************************************************** // Imports // ******************************************************** // special css for NoUiSlioder import 'nouislider/distribute/nouislider.css'; import React from 'react'; import {...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.IDBIndex = exports.executeFetchIndexData = exports.fetchIndexData = undefined; var _DOMException = require('./DOMException.js'); var _IDBCursor = require('./IDBCursor.js'); var _util = require('./util.js'); v...
import * as tslib_1 from "tslib"; import * as React from 'react'; import './ThemeGeneratorPage.scss'; import { BaseComponent, autobind } from 'office-ui-fabric-react/lib/Utilities'; import { loadTheme } from 'office-ui-fabric-react/lib/Styling'; import { getContrastRatio, updateA, isDark, getColorFromString } from 'off...
// *************************************************************************** // Copyright (c) 2014, AssureNote project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistribut...
/*-----------------------------------------------------* * Globally accessible variables * *-----------------------------------------------------*/ var globals = { initialTraceCount: 2, // How many event.traces to display baseTimelineWidth: 2500, // Base width of timeline width, ...
/** @format */ const bodyParser = require("body-parser"); const express = require("express"); const logger = require("morgan"); const easystarjs = require("easystarjs"); const app = express(); const { fallbackHandler, notFoundHandler, genericErrorHandler, poweredByHandler } = require("./handlers.js"); // For ...