text stringlengths 5.97k 41.2k |
|---|
const Hashids = require('hashids/cjs');
const ObjectId = require('mongoose').Types.ObjectId;
const Product = require('./model/product');
const Case = require('./model/case');
const Ajv = require('ajv');
const Axios = require('axios');
const swagger = require('express-swagger-generator');
const config = require('./conf... |
var margin = {top: 40, right: 40, bottom: 90, left: 280},
width = 600 - margin.left - margin.right,
height = 3960 - margin.top - margin.bottom;
var xscale=d3.scale.linear()
.domain([-0.321438795,1.254075157])
.range([30,width]);
//var yscale = d3.scale.linear()
//.domain([0,283221,5172931,21098099,1377064... |
/**
* Copyright (c) 2011-2012 <NAME><<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... |
var WonkaEngine = artifacts.require("./WonkaEngine.sol");
var OrchTestContract = artifacts.require("./OrchTestContract.sol");
var WonkaRegistry = artifacts.require("./WonkaRegistry.sol");
var WonkaTransactionState = artifacts.require("./WonkaTransactionState.sol");
// create an instance of web3 ... |
const { tunnel } = require('../qcloud')
const { mysql } = require('../qcloud')
const option = {
MAX_SCORE_GAP: 10000,//匹配的玩家最大分差不能超过10000分
MATCH_SPEED: 3000,//匹配的频率:每3秒遍历匹配一次
QUESTION_NUMBER: 5,//答题数5个
SEND_QUESTIONS_DELAY: 3500,//匹配完成后,间隔3.5S后开始向前端发题
SEND_QUESTION_TIME: 16000,//发题的频率:每16秒发送一题
PING_PONG_TI... |
/**
* Created by <NAME> on 2015-09-10.
*/
//START CRONA
SyncedCron.start();
//USTAWIENIA CRONA do sprawdzania głosowanych kwestii - co minute
SyncedCron.add({
name: 'checking dates crone',
schedule: function (parser) {
// parser is a later.parse object
return parser.text('every 30 seconds');... |
var VectorTile = require('vector-tile').VectorTile;
var Protobuf = require('pbf');
var Point = require('point-geometry');
var Util = require('./MVTUtil');
var MVTLayer = require('./MVTLayer');
module.exports = L.TileLayer.MVTSource = L.TileLayer.Canvas.extend({
options: {
debug: false,
url: "", //URL TO Ve... |
var CODE_SUCCESS = 200;
var username = getCookie("username");
var PostBase = {
username: username,
plat: "admin",
version: "10000"
};
//写cookies
function setCookie(name, value) {
var Days = 30;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = n... |
/* eslint-disable no-case-declarations */
'use strict'
const jsx = require('@babel/plugin-syntax-jsx').default
const flags = require('./flags')
const t = require('@babel/types')
const svgAttributes = require('./attrsSVG')
const RvdElementTypes = require('./rvdElementTypes')
const RvdElementFlags = flags.RvdElementFlags... |
const caller = require('callers-path');
const path = require('path');
// Object of modules for use below in default case statement
const modules = {
// DBUS/IBUS/KBUS
ABG,
ASC,
BMBT,
CCM,
CDC,
DIA,
DSP,
DSPC,
EWS,
GM,
GT,
IHKA,
IKE,
LCM,
MFL,
MID,
NAV,
PDC,
RAD,
RDC,
RLS,
TEL,
VID,
// CANB... |
import { rgb2hsl, rgb2hwb, hsl2rgb, hsl2hwb, hwb2rgb, hwb2hsl, rgb2hue } from '@csstools/convert-colors';
export default class Color {
constructor(color) {
this.color = Object(Object(color).color || color);
this.color.colorspace = this.color.colorspace
? this.color.colorspace
: 'red' in color && 'green' in ... |
'use strict';
const logger = require('./gk-logger.js');
const math = require('gl-matrix');
var glw = glw || {};
module.exports = glw;
// const
glw.VERSION = '0.1';
glw.PI2 = 6.28318530717958647692528676655900576;
glw.PI = 3.14159265358979323846264338327950288;
glw.PIH = 1.57079632679489661923132169163975144;
glw.... |
import React, {useState, useEffect} from 'react';
import { Row, Col, Container, Jumbotron } from "react-bootstrap";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPlusCircle, faEdit } from '@fortawesome/free-solid-svg-icons';
import lodashGet from 'lodash/get';
import moment from 'moment';... |
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const { Template } = require('meteor/templating');
const { Notes } = require... |
import { performance } from 'perf_hooks'
import { HttpInspector } from './http_inspector.js'
import { randomInRange } from './tools.js'
const mapHeaders = (headers) => Object.entries(headers).map(([name, value]) => ({ name, value }))
function get_callFrames(exclude) {
return new Error("").stack
.split('\n')
.sli... |
function showNotify(text) {
swal({
title: "Đăng nhập thất bại",
text: text,
icon: "error",
buttons: {
reTry: "Đã rõ",
},
})
}
function isValidDate(dateString) {
var regEx = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
if (!dateString.match(regEx)) retur... |
import fs from "fs";
import path from "path";
import keytar from "keytar";
import { app, dialog, BrowserWindow } from "electron";
import { getWikiInfo } from "./wikiDetect.js";
// TODO hook into node project variable REFERENCE TWICE
const projectName = "MediaWikiAGE";
/// Stores settings for the program.
///
/// Stru... |
/**
* OneDrive
*/
const { URL } = require('url')
const protocol = 'onedrive'
const querystring = require('querystring')
const support_zone = {
GLOBAL: ['https://login.microsoftonline.com', 'https://graph.microsoft.com', '国际版'],
CN: ['https://login.chinacloudapi.cn', 'https://microsoftgraph.chinacloudapi.cn', ... |
/*
Code Copyright (c) 2013 <NAME>, <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program... |
/* globals document */
/**
* Utility functions
* @author patrickkerrypei / https://github.com/patrickkerrypei
*/
import React from 'react';
import blockies from 'blockies';
import {getUserDisplayName} from "./usersUtils";
/**
* Format string so that only first letter is capitalized
* Note: String.prototype.charA... |
/* This file belongs to a CrossBrowdy.com example, made by <NAME>. Creative Commons Attribution 4.0 International License. */
//Path to the graphic rendering engine module:
var CB_GEM_PATH = CB_GEM_PATH || "../simple_game_engine_files/";
//Defines whether to shows debug messages or not:
var CB_GEM_DEBUG_MESSAGES = tr... |
const isHoloJs = typeof navigator.holojs !== 'undefined';
const canvas = document.createElement(isHoloJs ? 'canvasvr' : 'canvas');
// - Global variables -
// Graphics variables
var camera, controls, scene, renderer;
var textureLoader;
var clock = new THREE.Clock();
var mouseCoords = new THREE.Vector2();
var raycast... |
const fsp = require('node:fs/promises');
const path = require('node:path');
const { EOL } = require('os');
const isLocalhost = require('is-localhost-ip');
//DEBUG
const { dir, log, logOk, logWarn, logError } = require('./console')();
/**
* Detect the dominant newline character of a string.
* Extracted from https://... |
const nunjucks = require('nunjucks');
const assert = require('assert');
const clone = require('clone');
const pipeline = require('../regl-pipeline.js');
const GitHub = require('github-api');
const noflo = require('noflo');
const $ = require('jquery');
window.$ = $;
window.jQuery = $;
// require('webcomponents.js');
... |
/**
* 产品工艺流程
*/
var pageCurr;
$(function() {
layui.use([ 'form', 'table' , 'tableSelect' ], function() {
var table = layui.table, form = layui.form, tableSelect = layui.tableSelect;
tableIns = table.render({
elem : '#client_procList',
url : context + '/base/prodproc/getList',
method : 'get' // 默认:get请求... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
'use strict';
require('fabric');
customElements.define('custom-drawer', class CustomDrawer extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'});
this.shadowRoot.innerHTML = this.template;
}
get template() {
return `<style>
:host {
display: flex;
... |
'use strict';
const http = require('http');
const https = require('https');
const debug = require('debug')('server');
const path = require('path');
const crypto = require('crypto');
const extend = require('extend');
const express = require('express');
const favicon = require('serve-favicon');
const cookieParser = requi... |
/* eslint-disable max-len */
/* eslint-disable no-underscore-dangle */
import {
coalesce, exists, isNumeric, isString, missing,
} from './utils';
import { abs, floor, min } from './math';
import { Log } from './logs';
import strings from './strings';
class Duration {
constructor() {
this.milli = 0; // INCLUDE... |
$(function() {
Wow.initialize();
Fansite.initialize();
});
var Wow = {
/**
* Initialize all wow tooltips.
*
* @constructor
*/
initialize: function() {
setTimeout(function() {
Wow.bindTooltips('achievement');
Wow.bindTooltips('spell');
Wow.bindTooltips('quest');
Wow.bindTooltips('currency');
W... |
const XError = require('xerror');
const objtools = require('objtools');
const CrispHooks = require('crisphooks');
/**
* This class is a parser, modification interface, and generator for gcode.
*
* @class GcodeLine
*/
XError.registerErrorCode('gcode_parse_error', { message: 'Error parsing gcode' });
const modalGr... |
document.getElementById('less_details').style.display = "none";
var know = 0;
var data = {};
var teams = ['DD','GL','KKR','KXIP','MI','RCB','RPS','SRH'];
var lower_teams = ['dd','gl','kkr','kxip','mi','rcb','rps','srh'];
var i=0;
// For RCB data
$.getJSON("json/"+teams[0]+".json", function(json) {
... |
/*
*
* EntityList
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { palette } from 'styled-theme';
import { Map, List, fromJS } from 'immutable';
// import { get... |
/* eslint-disable func-names */
const util = require('util');
const fs = require('fs');
const _ = require('lodash');
const R = require('ramda');
const log = require('debug')('loopback:connector:elasticsearch');
const SupportedVersions = [6, 7]; // Supported elasticsearch versions
// 'Client' will be assigned either C... |
/**
* Module dependencies
*/
var util = require('util');
var _ = require('@sailshq/lodash');
var anchor = require('anchor');
var ANCHOR_RULES = require('anchor/accessible/rules');
var flaverr = require('flaverr');
var rttc = require('rttc');
var getIsProductionWithoutDebug = require('./get-is-production-without-deb... |
'use strict';
// Call this function when the page loads (the "ready" event)
var next;
$(document).ready(function() {
initializePage();
});
function removeType(e) {
e.preventDefault();
var typeID = $(this).closest('tr').attr('id');
var data = {};
data["ID"] = typeID;
//console.log(course... |
/*
* Copyright 2017, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const Rx = require('rxjs');
const {CLICK_ON_MAP} = require('../../MapStore2/web/client/actions/map');
const requestBu... |
import Phaser from 'phaser';
import Background from '../prefabs/Background';
import Ref from '../prefabs/Ref';
import Ball from '../prefabs/Ball';
import Bomb from '../prefabs/Bomb';
import Onigiri from '../prefabs/Onigiri';
import Projectile from '../prefabs/Projectile';
import Goal from '../prefabs/Goal';
import I... |
var FirstName = document.getElementById('firstnameinput')
var Email = document.getElementById('emailaddressinput')
var Pass = document.getElementById('passwordinput');
var FirstNameChild = document.querySelector('.firstnamechild');
var LastName = document.getElementById('lastnameinput');
var LastNameChild = docume... |
var _ = require("underscore");
var objectql = require('@steedos/objectql');
var clone = require('clone');
var objectCore = require('./objects.core.js');
const MAX_MASTER_DETAIL_LEAVE = objectql.MAX_MASTER_DETAIL_LEAVE;
function canRemoveNameFileld(doc){
var object = Creator.getCollection("objects").findOne({name: d... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
import { Machine, assign, interpret } from "xstate";
import RJSON from "relaxed-json";
import { build_interactions_sm } from "./interactions.js";
import { applyPriorKnowledge } from "./prior_knowledge.js";
import { evalJSONFunc } from "./eval.js";
import { Random } from "random-js";
var pick = require('object.pick');
... |
import React from 'react';
import { View, Text, StyleSheet, ScrollView, Alert, TextInput, TouchableOpacity, SafeAreaView, Modal} from 'react-native';
import DatePickerModal from '../../../components/DatepickerModal';
import ModalDropdown from '../../../components/ModalDropdown';
import colors from '../../../stylesheet... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { f... |
// Copyright 2017-2019 <NAME> <EMAIL>
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut... |
// Player modules
import ControlBar from './control-bar/control-bar';
import Controls from './control-bar/controls';
import Mobile from './mobile';
import Download from './control-bar/download';
import Fullscreen from './fullscreen';
import Theatre from './control-bar/theatre';
import Preview from './control-bar/previe... |
"use strict";
/**
* Object representing a directed graph of Nodes linked by Edges
*
* It relies on native WeakMap feature
* Use `node --harmony_weakmaps` to make this working.
*
* @exports GDFModel
*/
var csv = require('fast-csv');
var moment = require('moment');
var createNGraph = require('ngraph.graph');
var... |
var width = 720;
var height = 625;
var currentState = 'USA';
//the current year
var currentYear = 2020;
var currentTier = 'Total';
// colors associated with each tier
color_tier = {
"Total": '#FF0000',
"Supporting": "#1f76b4",
"Volunteers": "#f2840f",
"Leading": "green"
}
var statesWeHave = ["Alabama", "Ca... |
/**Vinh's code from here to there.
* Ngan modified module
*/
var scatterplot_settings = {
circle_size: 2,
data_onXaxis: "cpu1temp",
data_onYaxis: "fan1peed",
active_features: {
cpu1temp: {name: "CPU 1 Temp", scale:[0,122]},
cpu2temp: {name: "CPU 2 Temp", scale:[0,122]},
inlett... |
let urid = sessionStorage.getItem('eecid');
let urname = sessionStorage.getItem('eecname');
let eecauth = sessionStorage.getItem('eecauth');
$("#usrname").text(urname);
urid ? null : location.href = "./../../form_register/login/index.html";
if (eecauth !== "admin" && eecauth !== "office") {
location.href = "./../.... |
var arrCount = [];
var oldCountLen = null;
var isLogined = 0;
var t={};//时间,对象
$(document).ready(function () {
quickLinksBar();//加上短侧边栏
$('#mobile').on('mouseenter', function () {
$(this).find('p').stop().fadeIn();
}).on('mouseleave', function () {
$(this).find('p').stop().fadeOut();
}... |
import * as THREE from 'three/build/three.module.js'
import {
CSS2DRenderer,
// CSS2DObject
} from 'three/examples/jsm/renderers/CSS2DRenderer.js'
import Stats from 'three/examples/jsm/libs/stats.module.js';
// import { jsPlumb } from 'jsplumb'
// import { OrbitControls } from 'three/examples/jsm/controls/Orbit... |
/**
* @fileoverview sensors analytic miniprogram sdk
* @author <EMAIL>
*/
var _ = {};
var sa = {};
sa.para = require('./sensorsdata_conf.js');
// 优化配置
/*
if (sa.para.debug_mode) {
sa.para.debug_mode_url = sa.para.server_url.replace(/\/sa$/, '/debug').replace(/(\/sa)(\?[^\/]+)$/, '/debug$2... |
// util
// code snippets from https://github.com/moment/moment
function daysInMonth(year, month) {
return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
}
function checkOverflow(year, month, day, hour, minute, second) {
if (month && (month < 0 || month > 11)) return true;
if (day && (day < 0 ... |
const { MessageAttachment, MessageEmbed } = require('discord.js');
const canvacord = require('canvacord');
const Canvas = require('canvas');
const { abbrev } = require('../../functions/abbrev');
module.exports.run = async (client, message, args) => {
try {
const member = message.mentions.members.first() |... |
var global_dict = ezDictObj.get$();
var objectsMetaDataStack = [];
var objectAttributesMetaDataStack = [];
var objectClassDefinitionsMetDataStack = [];
var stack_addObject_inEdit = [];
var stack_addAttribute_inEdit = [];
function handle_onChangeClassesBrowser(selObj) {
if (!!selObj) {
if (selObj.selectedIn... |
let Game = require('../../Game');
let PlayerView = require('../View/PlayerView');
let PlayerGroupView = require('../View/PlayerGroupView');
let ResultView = require('../View/ResultView');
const bgHeight = 1560;
const moveSpeed = 300;
const stoneSpeed = 600;
const playerSpeed = 300;
cc.Class({
extends: cc.Component,... |
/**
* @file DfinityEarth
* @copyright Copyright (c) 2018-2021 <NAME> and dfinityexplorer contributors
* @license MIT License
*/
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { withTheme } from 'styled-components';
import axios from 'axios';
import Globe from 'react-... |
/* -----------------------------------------------
/* Author : <NAME> - vincentgarreau.com
/* MIT license: http://opensource.org/licenses/MIT
/* Demo / Generator : vincentgarreau.com/particles.js
/* GitHub : github.com/VincentGarreau/particles.js
/* v2.0.0
/* ----------------------------------------------- */
var pJS ... |
// 用于记录当前打开的文件的路径
let current_opened_file_path = ''
// 用于记录当前聚焦的文件/文件夹的路径
let current_focused_file_path = ''
// 当前聚焦的文件类型 1 文件夹 2 文件
let current_focused_file_type = 0
// 当前聚焦的文件的选择器形式元素
let current_element = $('#root')
// 打开文件 elem 是选择器元素
function open_file(elem) {
// 将其他打开的文件样式设为关闭的
$('.fileOpened').attr('... |
const os = require('os');
const { keymap, detectKey, getVisibleCharacters, isCursorPos } = require("./keymap");
const { Term } = require('./term');
const menu = {
full: {
menu: [],
},
filtered: {
menu: [],
poi: 0,
slice: { start: 0, end: 0 }
},
visible: {
men... |
// ---------------------------------------------------------
// siamz.smallworld-magik
// ---------------------------------------------------------
'use strict';
const vscode = require('vscode');
const fs = require("fs");
const os = require("os");
const workbenchConfig = vscode.workspace.getConfiguration('Smal... |
import React from 'react'
import {Card, Popconfirm, Button, Icon, Table, Divider, BackTop, Affix, Anchor, Form, InputNumber, Input} from 'antd'
import axios from 'axios'
import CustomBreadcrumb from '../../../components/CustomBreadcrumb/index'
import TypingCard from '../../../components/TypingCard'
const columns = [
... |
// @flow
const fs = require("fs");
const path = require("path");
const nullthrows = require("nullthrows");
const invariant = require("assert");
const { execSync } = require("child_process");
const { parse } = require("@babel/parser");
const generate = require("@babel/generator").default;
const traverse = require("@bab... |
"use strict";
var bdyNamesUrl = "../get-bdy-names";
var metadataUrl = "../get-metadata";
var dataUrl = "../get-data";
var map;
var info;
// var legend;
var themer;
var geojsonLayer;
var currLayer;
var numClasses = 7; // number of classes (i.e colours) in map theme
var minZoom = 4;
var maxZoom = 16;
var currentZoomL... |
//if (!isIDevice()) {
window.debug = (function() {
that = {};
that.log = function (param) {
console.log(param);
};
return that;
})();
//}
var Radio = function () {
var cache = new LastFMCache();
var metadata = "";
var that = this;
this.done = ... |
//========================================================================
// SciKit-SurgeryFRED front end
//========================================================================
//global variables
var state = "fred"; // fred, plot or game
//store the contour for the intra-opimage
var intraOpContour = [[200,100], ... |
// TODO multiple recipes?
class Helper {
async FetchMarket(query, first_category = 0) {
// div class="list__grade" > span class="name" > 개나리버섯
// div class="list__grade" > span class="count" > [<em>10개 단위</em> 판매] // optional
// div class="list__detail" > table > tbody > tr > td > div class="price" > <em>... |
var ver = "1.1.5";
//var getSliderMax() = 100;
var slider_max = 100;
var str_dir = "right";
var rembrandt_cry = false;
var defaults = {
// Plugin init params
width: 450, //212, // the width of the player
height: 200, //177, // the height of the player
allowFullScreen: "true", // true by default, allow u... |
jQuery.fn.redraw = function() {
return this.hide(0, function() {
$(this).show();
});
};
$(document).on('ready', function() {
initMetaReader();
activateTooltips();
});
var ROOT = document.URL.replace('index.html', '').replace('#', '');
var TEXT_FILES = {};
var TIMEWAIT = 100;
var TEMPLATES = {
... |
/*
Copyright 2017 Esri
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 agreed to in writing, softwar... |
function convertToValueWithCommas(e) {
var t = e.toString().split(".");
return t[0] = t[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), t.join(".")
}
function loadArticleLinkPreview(link, element, link_preview_date, articleTitle) {
if (typeof (link) == 'undefined' || link == null || link == 'null') {
ret... |
'use strict';
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
// 2. Let len be... |
/* global self, Statistics */
self.importScripts('Polyfill.js');
self.importScripts('ConvolutionKernels.js');
self.importScripts('ImageDataPixel.js');
self.importScripts('ImageDataWindow.js');
self.importScripts('Statistics.js');
function ImageProcessing() {
this.imageData = null;
this.grayData = null;
this.ker... |
const DockerBackend = require('./dockerbackend'),
DockerBackendWithPreemption = require('./dockerBackendWithPreemption'),
messages = require('./messages'),
config = require("./config"),
url = require('url'),
activations = require('./activations'),
schedulingStorage = require('./sched... |
"use strict";
/**
* Chip8 Emulator
*/
var
$ = require('jquery'),
Backbone = require('backbone'), // We need its event system
_ = require('underscore'),
/**
* Constructor
* @param Boolean debug.
*/
Chip8 = function(options){
var
Keypad = require('./keypad'),
Display = require('./display'),
... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProp... |
const AMERICA = "https://openapi.tuyaus.com"
const EUROPE = "https://openapi.tuyaeu.com"
const INDIA = "https://openapi.tuyain.com"
const CHINA = "https://openapi.tuyacn.com"
const TUYA_COUNTRIES = [
{"country":"Afghanistan", "countryCode":"93", "endPoint":EUROPE},
{"country":"Albania", "countryCode":"355"... |
var PIECES = { BISHOP : "bishop", KNIGHT : "knight", ROOK : "rook", KING : "king", QUEEN : "queen", PAWN : "pawn" };
var COLUMN_INDEX = "ABCDEFGH";
var BLACK = "black";
var WHITE = "white";
var BLACK_SQUARE_COLOR = "#80681F";
var WHITE_SQUARE_COLOR = "#D6AD33";
/**
* Creates a new Chessboard
*/
function Chessboard(c... |
var fs = require('fs');
var path = require('path');
var logger = require(path.resolve('config/lib/logger'));
var utils = require(path.resolve('engine2/bot/action/common/utils'));
// var mongoose = require('mongoose'),
// BotFile = mongoose.model('BotFile');
//
// function createFile(fileName, user, bot) {
// var... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("../../common");
const application_1 = require("../application");
const manifest_1 = require("./manifest");
const flexibleColumnLayout_1 = require("./flexibleColumnLayout");
const v4_1 = require("../../../v4");
const u... |
/******************************IMPORTS ******************************/
// Libraries
const solid = require("solid-client");
const rdf = require("rdflib");
const ns = require("rdf-ns")(rdf);
const MediumEditor = require("medium-editor");
const rangy = require("rangy");
const rangyClassApplier = require("rangy/lib/rangy-c... |
const config = require('./config');
const Lobby = require('./lobby');
const applyRoutes = require('./routes');
const express = require('express');
const socket = require('socket.io');
const {v1: uuid} = require('uuid');
const fs = require('fs');
const gameDataJSON = JSON.parse(fs.readFileSync('public/data/game_data.jso... |
'use strict';
const MINE_IMG = '💣';
const FLAG_IMG = '🚩'
const START_IMG = '😄';
const LOSE_IMG = '🤯';
const WIN_IMG = '😎';
const LIFE_IMG = '❤'
var g7BoomOn = false;
var gGameHistory = [];
var gBoard;
var gLocalStorage;
var gIntervalTimer;
var gHintTimeout;
var gPositions = [];
var gVictory = false;
var gLevel =... |
import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { compose, pure } from 'recompose';
import { List, fromJS } from 'immutable';
import styled from... |
"use strict";
var socket = io();
var youtubePlayer
var onYouTubeIframeAPIReady;
var onPlayerReady;
var onPlayerStateChange;
var youtubeRecording = false;
var youtubePlaying = false;
var lastParamUpdated = 0;
var currentVideoId = ""
// setting
var youtubeSettings = {};
// output JSON to textarea
var parameters = [];
//... |
$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } });
$("#pbtn-loader").hide();
$("#btn-loader").hide();
var tableHeight="";
var parameters_list_table="";
var packaged = 0; //Initial field counter
function resizeData() {
var winWidt... |
"use strict";
window.Handler = (function () {
const handlers = {}
function _handler(type) {
return e => {
for (let s in handlers[type]) {
const target = e.target.closest(s)
if (target !== null) {
handlers[type][s].apply(target, e)
... |
/*woord.nl*/
jQuery.fn.exists = function(){return this.length>0;}
/*
* POPCORN BASEPLAYER
* http://popcornjs.org/popcorn-docs/players/
*
*
* TODO
* - fix syntaxisfout bla bla
*/
/*******************************************************************
* GLOBAL VARIABLES
****************************************... |
/***********************************************
Resource: math/Point.js
***********************************************/
// @author <NAME>
// declare the parent constructor:
function Point (x, y, z) {
this.set(x, y, z);
this._drawn = false;
this.name = null;
}; //inheritPrototype(Sprite, Element);
Point.p... |
const TAU = Math.PI * 2
const HALF_PI = Math.PI / 2
function mod( a, n ) { return ( a % n + n ) % n }
function calcAngle(ax, ay, bx, by) {
var angle = Math.atan2(by - ay, bx - ax)
if ( angle < 0 ) angle += TAU
return angle
}
function calcAngleDelta( current, target ) {
var a = mod( ( current - target ), TAU... |
/* Customizable Variables */
let Saturation = 100; // Sets the saturation of the rainbow (Max: 100, Default: 100)
let Luminance = 60; // Sets the brightness of the rainbow (Max: 100, Default: 60)
let TickSpeed = 5; // Sets the interval of each tick which affects the rainbow speed (Default: 5)
let ChromaType = 0; //... |
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable no-console */
/* eslint-disable no-restricted-imports */
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import {
Modal,
Button,
Form,
Input,
Upload,
Space,
message,
Radio,
Tooltip,
} from 'antd'... |
/*
* md5.jvs 1.0b 27/06/96
*
* Javascript implementation of the RSA Data Security, Inc. MD5
* Message-Digest Algorithm.
*
* Copyright (c) 1996 <NAME>. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for any purposes and without
* fee is hereby gr... |
/*****************************************************************************
The MIT License (MIT)
Copyright © 2013 <NAME> (kilfu0701), https://github.com/kilfu0701,
http://kilfu0701.blogspot.tw/
Permission is hereby granted, free of charge, to any person obtaining a copy
of thi... |
import * as SweepEvent from "./sweepEvent";
import * as MCGMath from "./math";
import PriorityQueue from "js-priority-queue";
import "bintrees/dist/rbtree";
export const printEvents = false;
export const drawEvents = false;
export function sweep(operation, srcA, srcB) {
if (!srcA) return null;
const ... |
/*
* LengthUnit.js - Unit conversions for Lengths/lengths
*
* Copyright © 2014-2015, JEDLSoft
*
* 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/... |
/* global require, exports */
const events = require('events');
// eslint-disable-next-line import/no-unresolved
const addon = require('./../../../erizoAPI/build/Release/addon');
const logger = require('./../../common/logger').logger;
const SessionDescription = require('./SessionDescription');
const SemanticSdp = req... |
'use strict';
const _ = require('lodash');
const Utils = require('../../utils');
const { AbstractQueryGenerator } = require('../abstract/query-generator');
const util = require('util');
const { Op } = require('../../operators');
const JSON_FUNCTION_REGEX = /^\s*((?:[a-z]+_){0,2}jsonb?(?:_[a-z]+){0,2})\([^)]*\)/i;
con... |
/* jshint quotmark: false */
"use strict";
var FS = require("fs"),
PATH = require("path"),
chalk = require("chalk"),
mkdirp = require("mkdirp"),
promisify = require("util.promisify"),
readdir = promisify(FS.readdir),
readFile = promisify(FS.readFile),
writeFile = promisify(FS.writeFile),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.