text stringlengths 5.97k 41.2k |
|---|
var _neutralColorStates, _primaryColorStates, _accentColorStates, _positiveColorStates, _warningColorStates, _negativeColorStates, _orangeColorStates, _purpleColorStates, _brownColorStates, _customColorStates, _colorMap;
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnProper... |
"use strict";
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.string.iterator.js");
requi... |
import SeekPointType from './seek-point-type';
const mandarinServices = [
{ youtubeVideoID: "6uXyL-06who", message: "", pastor: "<NAME>", date: "2020-12-27T18:10:00Z", duration: "00:00:00", seekPoints: [] },
{ youtubeVideoID: "6Jn40sNKqgo", message: "Christmas Eve Candlelight Service", pastor: "", date: "2020-... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.traverse = exports.getAncestorShadowRoot = exports.hasShadowDomV1 = exports.hasShadowDomV0 = exports.getShadowRootVersion = exports.observeChildren = exports.makeAccessorsEnumerable = exports.makeLowercaseSetterAliases = exports.a... |
require('dotenv').config();
const mysql = require('./Mysql');
const fs = require('fs');
const NodeCache = require("node-cache");
const Cache = new NodeCache({stdTTL : 360, checkperiod: 60});
const Discord = require('discord.js');
const bot = new Discord.Client();
const fetch = require('node-fetch');
const PremiumVerif ... |
import ode45 from 'ode45-cash-karp';
import integral from 'integrate-adaptive-simpson';
import fmin from 'fmin';
import moment from 'moment';
// %ODEFUN SIR model
function getODE(par) {
var beta = par[0];
var gamma = par[1];
var N = par[2];
var I0 = par[3];
return function (dCdt, C, t) {
const c0 = I0 / ... |
import React, {Component} from 'react';
import codemirror from 'codemirror';
import "codemirror/mode/clike/clike.js";
import "codemirror/lib/codemirror.css";
var app_test = {
'Nextcloud': ['Randomly exercise interesting user interactions',
'Express the user interactions necessary to succesfully logi... |
var hitOptions = {
handles: true,
segments: true,
stroke: true,
fill: true,
pixel: true,
tolerance: 5,
match: function(hit) {
return hit.item.layer === project.layers[0]
}
};
var handleIn;
var handleOut;
var keyframe;
var initialCenter = view.center
var defaultHandles = 50;
var verticalGrid
var hor... |
'use strict';
import * as Utils from './helpers/utils.js';
export class Axis {
static create(tayberry, options, index, axisType, xYSwapped) {
const isHorizontal =
(axisType === 'x' && !xYSwapped) || (axisType === 'y' && xYSwapped);
if (options.type === 'linear')
return new LinearAxis(tayberry, in... |
/*
HTTP Requester
Copyright (c) 2015 - 2020 <NAME>
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 rights
to us... |
// APIs
const Discord = require('discord.js');
const ytdl = require('ytdl-core');
const search = require('youtube-search');
const axios = require('axios');
const SpotifyWebApi = require('spotify-web-api-node');
const lyricsFinder = require('lyrics-finder');
// project imports
const Utils = require('./Utils');
const b... |
// const { pool } = require("mssql");
console.log("inventory.js");
var products = {};
poolConnect.then((pool) => {
pool.request().execute("anbar.products_return", (err, res) => {
let data = [];
for (let i of res.recordset) {
data.push(i);
}
console.log(res);
for (let result of data) {
$("#productList"... |
/*
* @Author: hxl
* @Date: 2020-04-22 14:07:56
* @LastEditTime: 2020-07-23 14:56:48
* @LastEditors: hxl
* @Description: 解析tin几何数据
* @FilePath: \CreatarWebGlobe\src\js\cesiumEx\Tin.js
*/
class Tin {
/**
* @description: 解析tin几何数据
* @para {Object} 数据
* @return:{Primitive} Tin
*/
constructor(options)... |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import Loader from '../LoaderComponent/LoaderComponent';
import {
policyAction,
policyScheduleChangeAction,
policyDescriptionChangeAction,
policyWorkChangeAction
} from "../../actions/PolicyActions";
import {FETCH_POLICY, ... |
/**
Author: <NAME>.
Email: <EMAIL>,<EMAIL>
The general js file for the framework
*/
// stores the reference to the XMLHttpRequest object
var xmlHttp = createXmlHttpRequestObject();
// retrieves the XMLHttpRequest object
function createXmlHttpRequestObject()
{
// will store the reference to the... |
"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var botframework_directlinejs_1 = require("botframework-directlinejs");
var Strings_1 = require("./Strings");
var SpeechModule_1 = require("./SpeechModule");
var adaptivecards_1 = require("adap... |
/*
* Function generate Geneview table and it shows once data is returned from function search keyword ajax calls
*
*/
function createGenesTable(text, keyword, rows)
{
var table = "";
var candidateGenes = text.split("\n");
var results = candidateGenes.length - 2;
if (candidateGenes.length > 2)
{
// Gene Vie... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @return {number} Width of a scrollbar in pixels
*/
function getScrollbarWidth() {
var div = document.createElement('div');
div.... |
import React from 'react';
import { Select } from '@material-ui/core';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import Input from '@material-ui/core/Input';
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/Gri... |
const fs = require("fs");
const path = require("path");
const BulkReadOperations = require("@zohocrm/nodejs-sdk-2.1/core/com/zoho/crm/api/bulk_read/bulk_read_operations").BulkReadOperations;
const RequestWrapper = require("@zohocrm/nodejs-sdk-2.1/core/com/zoho/crm/api/bulk_read/request_wrapper").RequestWrapper;
const A... |
"use strict";
var fs = require('fs');
var xml2js = require('xml2js');
var ig = require('imagemagick');
var colors = require('colors');
var _ = require('underscore');
var Q = require('q');
var constants = require('./util').constants;
var settings = require('./util').settings;
var display = require('./util').display;
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _defineProperty2 = _interopR... |
/* -------------- POINT.JS ------------*/
var Point = function (x, y) {
this.x = x;
this.y = y;
};
Point.prototype = {
x: 0,
y: 0,
subtract: function (p) {
return new Point(this.x - p.x, this.y - p.y);
},
add: function (p) {
return new Point(this.x + p.x, this.y + p.y);
},
clone: function (... |
/**
* Swing.svg : Component
*
* @author <NAME>, PhD. <<EMAIL>>
* @copyright 2004-2016 Web Semantics, Inc. (http://websemantics.io)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @since 30th January 2005 -> 15th July 2005
* @package websemantics/oea/swing.svg
*/
/**
*... |
// MODULES //
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';
import Alert from 'react-bootstrap/Alert';
import Button from 'react-bootstrap/Button';
import Table from '@isle-project/components/table';
import Tooltip from '@isle-project/com... |
import { o as YAMLReferenceError, T as Type, g as YAMLSemanticError, _ as _createForOfIteratorHelper, e as _defineProperty, j as _inherits, k as _createSuper, c as _classCallCheck, p as _assertThisInitialized, b as _createClass, a as _typeof, l as _get, m as _getPrototypeOf } from './PlainValue-b8036b75.js';
import { j... |
import randomToken from 'random-token';
import IdleQueue from 'custom-idle-queue';
import PouchDB from './pouch-db';
import * as util from './util';
import RxError from './rx-error';
import RxCollection from './rx-collection';
import RxSchema from './rx-schema';
import RxChangeEvent from './rx-change-event';
import So... |
"use strict";
//Données
var ugo_nom_projet = ["HUSO", "Kalelithos Invest", "Canibal", "Novolyse", "Flashgap", "Ween", "Poietis", "Numa", "<NAME>", "Capelli"];
var ugo_plateforme = ["Wiseed", "Anaxago", "SmartAngels", "Anaxago", "Anaxago", "SmartAngels", "Wiseed", "SmartAngels", "Bulb In Town", "Wiseed"];
var ugo_fon... |
/*
* grunt
* https://github.com/cowboy/grunt
*
* Copyright (c) 2012 "Cowboy" <NAME>
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
var fs = require('fs');
var path = require('path');
var semver = require('semver');
var prompt = require('prompt');
prompt.message = '[' + '?'.green + '... |
// factory for creating players
const playerFactory = (name, mark) => {
return { name, mark, isAI: false };
};
// factory for creating AI
const AIFactory = (name, mark, difficulty, opponentMark) => {
// make a move based on difficulty
const makeMove = () => {
switch (difficulty) {
case ... |
'use strict'
/* jshint esversion: 6 */
/* jshint -W033 */
/* jshint -W097 */
/* global console, vec3, lookAt, perspective, mat4, flatten, loadMeshData, mult, rotateX, rotateY, rotateZ,
getLightPosition, getRotation, translate, scalem, window, document, WebGLUtils, initShaders,
cross, normalize, subtract, initS... |
import * as hp from "helper-js";
import draggableHelper from "@adityapurwa/draggable-helper";
import doDraggableDecision from "./draggable-decision-part.js";
// in follow code, options belongs to makeTreeDraggable, opt belongs to draggableHelper
export default function makeTreeDraggable(treeEl, options = {}) {
optio... |
import React, { Component } from 'react';
import axios from 'axios';
import Cookies from 'js-cookie';
//import {Link, Redirect} from 'react-router-dom';
import RentCalculator0 from './RentCalculator0'
import RentCalculator1 from './RentCalculator1'
import RentCalculator2 from './RentCalculator2'
import RentCalcu... |
//@EyelidsAnalyser
//global scripts can have any kind of code.
//They are used to define new classes (like materials and components) that are used in the scene.
EyelidsAnalyser.EYELID_CLOSE_L = "Left closed";
EyelidsAnalyser.EYELID_CLOSE_R = "Right closed";
EyelidsAnalyser.EYELID_OPEN_L = "Left open";
EyelidsAnalyser.E... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
/*
* Tactile-JS
* Copyright 2018 <NAME>, <EMAIL>
*
* Distributed under the terms of the 3-clause BSD license. See the
* file "LICENSE" for more information.
*/
// A port of the Tactile C++ demo program to P5.js.
let QS = null;
let the_type = null;
let params = null;
let tiling = null;
let edges = null;
let ti... |
load("0d8683db8b3792521a65ad1edba9cf82.js");
load("dada5190587903f93a3604016a6099ce.js");
load("e61db04c7f35aa37aeeb2dfa021f4d7c.js");
load("73e024016f9f4f488167536a56b4db14.js");
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2... |
/********************************************************
파일명 : scheduler-modal-setData.js
처리내용 : scheduler-modal관련 data setting
- 이벤트 시작일자가 기준월의 말일보다는 작거나 같고
- 이벤트 종료일자가 기준월의 1일보다는 크거나 같은 경우
*********************************************************/
function schedule_repeat (baseDate,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _net = _interopRequireDefault(require("net"));
var _crypto = _interopRequireDefault(require("crypto"));
var _ip = _interopRequireDefault(require("ip"));
var _defs = require("./defs");
var _utils = require(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.didTeamWinThatRound = exports.getHalfFromRound = exports.parseTeam = exports.mapSteamIDToPlayer = exports.CSGOGSI = void 0;
const utils_js_1 = require("./utils.js");
Object.defineProperty(exports, "mapSteamIDToPlayer", { enumerable: tr... |
/****************************************************************
FileName: Map.js
<NAME>
Pokemon Hope
Description:
This class is used to draw and initilize the map where the
main character will adventure.
A townMap is a small section of the WORLD that the player
will navigate through. My hope is that each townMap wi... |
var CANVAS_HEIGHT = 480
var CANVAS_GROUND = 35
var CANVAS_BASELINE = CANVAS_HEIGHT - CANVAS_GROUND
var SEGMENT_Y_NORMAL = 265
var SEGMENT_Y_PALETTE = 20
var STATUS_MESSAGE_HIDE_DELAY = 15000
var DRAGGING_MOVE_HOLE_WIDTH = 40
var SEGMENT_SWITCHING_TIME = 250
function _drawSegmentImage (tileset, ctx, sx, sy, sw, sh,... |
/**
* RELATED TOAST MESSAGE SECTION
*/
export const TOAST_LOGIN_SUCCESS_MSG = "Đăng nhập thành công";
export const TOAST_NON_EXISTED_INVALID_PHONE_MSG =
"Số điện thoại không hợp lệ hoặc đã tồn tại";
export const TOAST_REGISTER_INFORMATION_SUCCESS_MSG = "Đăng ký thành công";
export const TOAST_CHANGE_PASSWORD_SUCCES... |
const event_deaths = {"911": 2977,
"Afghanistan & Iraq Wars": 2216 + 4497,
"Korean War": 36516,
"Vietnam War": 58209,
"World War I": 116516,
"World War II": 405399,
"COVID-19": 0,
... |
var id = 'profileImage1';
var minCropBoxWidth = "150";
var minCropBoxHeight = "100";
var profileImage = "profileImage1";
var fillId = "imagepicker2";
var disabledId = "next";
var imageMe = "imageMe";
var uploadpath = "uploadpath";
var running = 0;
var inp = 0;
//update in main.js for resizable
var checkResizable = fals... |
var Node = function() {
this.children = [];
this.localMatrix = m4.identity();
this.worldMatrix = m4.identity();
};
Node.prototype.setParent = function(parent) {
// remove us from our parent
if (this.parent) {
var ndx = this.parent.children.indexOf(this);
if (ndx >= 0) {
... |
class Player {
constructor(url) {
this.irBlockUid = baboon.getIrBlock(url);
// TODO: figure out how to kill the interval when a player is no longer active
if (this.irBlockUid) window.setInterval(() => this.recordTime(), 5000);
}
recordTime() {
if (!this.getTime() || this.las... |
'use strict';
const Promisie = require('promisie');
const qr = require('qr-image');
const merge = require('utils-merge');
const base32 = require('thirty-two');
const TotpStrategy = require('passport-totp').Strategy;
const capitalize = require('capitalize');
var periodic;
var passport;
var loginExtSettings;
var appSett... |
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { Keys } from 'const';
import { isMobileDevice, sortPoints } from 'helpers';
import { addNewTag, getUID } from 'services/firebase';
import * as selectors from 'selectors'
import { refreshEx... |
/***********************************************************************************************************************
*
* names
* a simple list of random names to choose from
*
**********************************************************************************************************************/
/*
* ... |
// html elements
var downloadLink = document.getElementById("downloadLink");
var cursorButtons = document.getElementById("tools");
// canvases
var canvas = document.getElementById("paste_canvas");
var ctx = canvas.getContext("2d");
var canvasHidden = document.createElement('canvas'); // hidden canvas for full resoluti... |
"use strict";
const through = require("through2");
const gutil = require("gulp-util");
const eslintSeverityMap = {
"1": "warn",
"2": "error",
};
const postcssSeverityMap = {
"warning": "warn",
};
/**
* 代码错误汇报函数,在浏览器中运行,用于将收集到的js的错误信息在浏览器控制台中弹出
* 注意!!此函数将被toString()后发送到浏览器,并非在node下运行!!
* @param {Array} errors ... |
"use strict";
const request = require('request');
const timeout = 1500;
let _auth_key = null;
let _userrole = null;
var timerCommon = null;
var timerHome = null;
var timerSlow = null;
var timerLogIn = null;
var unload = false;
const stateUrl = {
Common: "/v1/user/essinfo/common",
Home: "/v1/user/essinfo/home",
... |
/**
* @copyright Copyright 2021 <NAME> <<EMAIL>>
* @license MIT
*/
/* eslint-disable max-classes-per-file */
import { format, isDeepStrictEqual } from 'util';
/** Map from JSON Schema validation keyword to function which intersects
* keyword values, or false if the keyword should be ignored.
*
* @private
* @t... |
/* Author: <NAME> */
import _ from 'lodash'
import { Node, Edge, Graph, SimulatedGraph } from '../../smartsexplore/frontend/graph'
const nodeData = {
id: 1,
name: 'xyz',
pattern: 'C',
library: 'test'
};
const nodeData2 = {
...nodeData,
id: 2,
pattern: 'CC'
};
const edgeData = {
id: 1,
... |
//bunch of ugly html tags and text for each topic
function displaySkillsText() {
g.navBtn[g.previousTopic].style.backgroundColor = "#252525";
g.navBtn[0].style.backgroundColor = "#16B8BF";
g.titleText.innerHTML = "<h1>MY SKILLS</h1>";
g.contentText.innerHTML =
"<p><span class='subtitle'>Technical Skills<span></... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
function compare(a, b) {
if (a.value < b.value) return 1;
if (a.value > b.value) return -1;
return 0;
}
function draw_barstacked(){
//var datas = []
//var length = 0
var margin7 = 200;
var width7 = window.innerWidth/1.5;
var height7 = "500";
var svg7 = d3.select("#bar_stack")
.attr("... |
"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... |
'use strict'
let config = {
origin: 'http://example.jp',
session: true,
xfo: true,
xcto: true,
staticFiles: [ '/static' ],
evalTemplate: false,
protectCsrf: true,
defaultHeaders: undefined,
basic: undefined,
sessionIdGenerator: defaultIdGenerator,
httponly: true
}
const http = requ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CLScroll = undefined;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
v... |
'use strict';
var allStores = [];
var tableGrabUniversal = document.getElementById('myTable');
var hours = 14;
// ok i learned a good lesson i think, I was moving around the new instantiations, and the prototype, and even when i moved the new instances before the constructor itself, and the prototype too, it didn'... |
import { aTimeout, expect, fixture, oneEvent } from '@open-wc/testing';
import { getDocumentLocaleSettings } from '@brightspace-ui/intl/lib/common.js';
import { getShiftedEndDateTime } from '../input-date-time-range.js';
import { runConstructor } from '../../../tools/constructor-test-helper.js';
const basicFixture = '... |
const BESTIARY_JSON_URL = "data/bestiary.json";
const BESTIARY_TOB_JSON_URL = "data/bestiary-tob.json";
window.onload = function load() {
tabledefault = $("#stats").html();
loadJSON(BESTIARY_JSON_URL, addToB);
loadJSON(BESTIARY_TOB_JSON_URL, addToB)
};
function addToB(mainData) {
loadJSON(BESTIARY_TOB_JSON_URL, p... |
/* VAriavies globais */
var tamanho = 6;
//Utilizador
var user_;
var pass_;
//Grupo
var group = 337;
var current_tabuleiro;
var game_type = 0;
var piramide = true;
var first_to_play = 0; //0 - jogador 1 , 1 - jogador 2 / maquina
var dificult_level = 100; // 0 - random , 50 - as vezes faz random outras vezes faz a p... |
/* global exports,process,require */
// ---------------------------------------------------------------------------------------------------------------------
// node-opcua
// ---------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2014-2... |
// const fs = require(`fs`); //TESTING
const multer = require(`multer`); //IMG UPLOAD
const sharp = require(`sharp`); //RESIZING IMG
const Tour = require(`./../models/tourModel`);
// const APIFeatures = require(`./../utils/apiFeatures`);
const catchAsync = require(`./../utils/catchAsync`);
const AppError = requir... |
/**
* @file Buffer
* @author <NAME> <<EMAIL>>
* @private
*/
import { Color, Vector3, Matrix4, FrontSide, BackSide, DoubleSide, VertexColors, NoBlending, BufferGeometry, BufferAttribute, UniformsUtils, UniformsLib, Group, LineSegments, Points, Mesh, ShaderMaterial } from 'three';
import { Log } from '../globals';
im... |
import * as d3 from 'd3';
const max = Math.max;
const sin = Math.sin;
const cos = Math.cos;
const HALF_PI = Math.PI / 2;
const wrap = (_text, width) => {
_text.each(function () {
const text = d3.select(this),
words = text.text().split(/\s+/).reverse(),
lineHeight = 1.4, // ems
y = text.attr('y... |
import config from '../config.js';
import lodash from 'lodash';
//获取树中指定id的结点对象
const getNodeOfTree = (tree,id) => {
let node = lodash.find(tree,{menuid:id});
if(!node){
for(let i=0;i<tree.length;i++){
if(tree[i].children && tree[i].children.length>0){
let cnode = g... |
/**
@LICENSE
Copyright 2019 RT Corporation and <NAME>
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... |
function getCorrectOption(answer, options)
{
//console.log("options: "+options+" answer: "+answer);
var option_c = options.indexOf(answer.toLowerCase())+1;
return option_c;
}
function getCorrectOptionMSQ(answer, options)
{
//console.log("options: "+options+" answer: "+answer);
var keys = (""+answer).split... |
var Ajv = require('ajv'),
_ = require('lodash'),
ajvFilter = Ajv({removeAdditional: true}), // options can be passed
ajv = Ajv({removeAdditional: false}), // options can be passed
// Tüm schemalar
/** @type {Schema_Sabitler} */
sema = require('../schemas'),
// defaults ile nesne yaratırke... |
//using localize script to pass in values from options array, access with "bibleGetOptionsFromServer" which has "options"
//console.log("admin.js is successfully loaded");
//console.log(bibleGetOptionsFromServer);
jQuery(document).ready(function ($) {
fval = jQuery("#versionselect").val();
if (fval !== nul... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
const _ = require('underscore');
const Cube = require('cubejs');
require('cubejs/lib/solve.js');
const shuffle = require('shuffle-array');
const config = require('./config');
const constant = require('./constant');
const rp = require('request-promise');
const threeStyleUtils = require('./threeStyleUtils');
const threeS... |
// This is a simple *viewmodel* - JavaScript that defines the data and behavior of the UI.
var Skyguardian;
(function (Skyguardian) {
var AppViewModel = (function () {
function AppViewModel() {
this.unitId = "";
this.userName = ko.observable();
this.unitName = ko.observable();
... |
var state;
var stateStatic = 0;
var stateBlink = 1;
var stateCheek = 2;
var stateEyebrowRaise = 3;
var cheekOne = ['#f54287','#fa8cdd','#ebb5f7','#ffa587','#ff571f'];
var numCheekOne = 5;
var curCheekOne = 0;
var numCheekTwo = 6;
var curCheekTwo = 0;
var cheekTwo = ['#e3a996','#ff4049','#f5c1c4','#eec1f5','#ffa666'];... |
var gui = ( function () {
'use strict';
var current = 'close';
var ui;
var content, mainMenu, menu, timebarre, topText;
var gender, genderIM
var isOpen = false;
var buttons = []
var MENU = [ 'X', 'VIEW','ANIMATION', 'PHYSICS', 'KINEMATICS' ];
//var bone, sx, sy, sz, wx, wy, wz;
//var hb = 14;
//var hc = '#92929... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import {
View, Text, StyleSheet,
LayoutAnimation,
SectionList,
TouchableOpacity,
RefreshControl,
Platform,
TouchableHighlight,
Image,
} from 'react-native'... |
import axios from "axios";
import React from "react";
import WaveSurfer from "wavesurfer.js";
import RegionsPlugin from "wavesurfer.js/dist/plugin/wavesurfer.regions.min.js";
import TimelinePlugin from "wavesurfer.js/dist/plugin/wavesurfer.timeline.min.js";
import { Helmet } from "react-helmet";
import { withRouter } f... |
'use strict';
const { forAllQueries, forEachDefinition } = require('../../model/csnUtils');
const { setProp } = require('../../base/model');
const { getRealName } = require('../../render/utils/common');
/**
* Turn a `exists assoc[filter = 100]` into a `exists (select 1 as dummy from assoc.target where <assoc on cond... |
/*колонки на главной*/
function colsAsideRight(){
var heightThanksPane = 0;
var heightActivityPane = $('.calendar').outerHeight() + $('.activity-pane').outerHeight();
$('.thanks-pane').each(function(){
heightThanksPane += $(this).outerHeight();
});
heightThanksPane += $('.ref-pane').outerHei... |
import React, { useState, useEffect } from 'react';
import { useParams, useHistory } from 'react-router-dom';
import {
Box,
CssBaseline,
TextField,
Breadcrumbs,
Link,
Typography,
Button,
Grid,
CircularProgress,
IconButton,
Icon,
InputAdornment,
Divider,
InputLabel,
Select,
Me... |
'use strict';
const xml2js = require('xml2js');
class Beans {
constructor() {
this.beanFactory = null;
}
init(xmlStr, cb) {
this.beanFactory = null;
cb = cb || ()=> {
};
xml2js.parseString(xmlStr, (err, json)=> {
if (err) {
return cb(err);
}
// ioc
let bean... |
var TableDatatablesEditable = function () {
var brokertable = $('#tblbroker').DataTable();
var agents_table = $('#tblagents').DataTable({searching: false});
var commission_table = $('#tblcommission').DataTable({searching: false, "lengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]] });
var re... |
var arrAllShownRecords = rules = new Array();
var totalRecords = 0;
var formObjects = new Array('id', 'tm_rule_name', 'tm_rcat_id');
function LoadResultSet(p, f, s, so, currLink) {//p=practice code, f=fac code, s=status, so=sort by;
top.show_loading_image('hide');
top.show_loading_image('show', '300', 'Loading... |
/*
* 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 ... |
"use strict";
let operationConfigurations = [] // List of objects each describing the configuration of an operation
let dataToProcess = {} // Object to be sent to AJAX call when the user clicks the PROCESS button
let configuredImages = 0 // Counter for keeping track of number of images configured
let... |
'use strict';
var _underscore = require('underscore');
var _underscore2 = _interopRequireDefault(_underscore);
var _express = require('express');
var _express2 = _interopRequireDefault(_express);
var _board = require('../boards/board');
var _board2 = _interopRequireDefault(_board);
var _captcha = require('../cap... |
/**
* Created by faide on 2015-04-01.
*
*
*
* FUTURE: ES7 introduces SIMD operations. This may improve performance of vector/matrix operations.
* A polyfill exists for SIMD here: https://github.com/johnmccutchan/ecmascript_simd
* During optimization passes we can future-proof the math by SIMD-ing
*/
const {... |
import { EventEmitter } from 'events'
import fs from 'fs'
import path from 'path'
import { URL } from 'url'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import CheapWatch from 'cheap-watch'
import colors from 'kleur'
import vite from 'vite'
import { respond } from '../../runtime/server/index.js'
import { rim... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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 rights
// to use, copy, modify... |
"use strict";
let canvas;
let width;
let height;
let ctx;
let canvasUnsupportedText = "Nope, canvas isn't supported here, you're probably using an ancient browser - you should fix that";
let mouseX = 0;
let mouseY = 0;
let anim;
// this is just here to delay execution
let instructions = () => { return [
new Instru... |
"use strict";
/* global TrelloPowerUp */
// we can access Bluebird Promises as follows
var Promise = TrelloPowerUp.Promise;
var cardInfoKey = 'pappira.cardInfo';
var ID_ICON = './images/fingerprint.svg';
var ERROR_ICON = './images/error.svg';
var OK_ICON = './images/check.svg';
var SNOOZE_ICON = './images/notificati... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var isNumeric = require('fast-isnumeric');
var m4FromQuat = require('gl-mat4/fromQuat');
var Registry = requir... |
'use strict';
const util = require('util');
const dgram = require('dgram');
const EventEmitter = require('eventemitter3');
const {
defaults, isArray, isBoolean, isString, isNil, result, find, bind, forEach, keys, every, includes, filter
} = require('lodash');
const Packet = require('../lifx').packet;
const {Light, c... |
import Logger from '@jitsi/logger';
import * as JitsiConferenceErrors from './JitsiConferenceErrors';
import * as JitsiConferenceEvents from './JitsiConferenceEvents';
import JitsiConnection from './JitsiConnection';
import * as JitsiConnectionErrors from './JitsiConnectionErrors';
import * as JitsiConnectionEvents fr... |
const vscode = require(`vscode`);
const path = require(`path`);
const IBMi = require(`./api/IBMi`);
const IBMiContent = require(`./api/IBMiContent`);
const CompileTools = require(`./api/CompileTools`);
const Configuration = require(`./api/Configuration`);
const Storage = require(`./api/Storage`);
const Tools = requir... |
console.log("trivia!");
var player = {
isPlaying: false,
isWaiting: false,
numberCorrect: 0,
numberIncorrect: 0,
wins: 0,
losses: 0
}
var questionsArray = [];
var currentQuestion;
var gameStatus = [];
// timer variables. timer = variable for javascript timer. time = variables for actual time.
var quest... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.