text stringlengths 8.5k 48.7k |
|---|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
var dataTableNewsList;
var M6Module =
{
global: function () {
//Ajax Wrapper
$(document).ajaxStart(function () {
$(document).find('body').append('<div class="ajax-wrapper"></div>');
});
$(document).ajaxStop(function () {
$(d... |
"use strict";
var RDFNodeEquals = require('./RDFNode.js').RDFNodeEquals;
var RDFNode = require('./RDFNode.js').RDFNode;
var NamedNode = require('./RDFNode.js').NamedNode;
var BlankNode = require('./RDFNode.js').BlankNode;
var defaults = require('./prefixes.js');
var encodeString = require('./encodeString.js');
var env... |
import path from 'path';
import merge from 'deepmerge';
import {
RENATIVE_CONFIG_NAME,
RENATIVE_CONFIG_PRIVATE_NAME,
RENATIVE_CONFIG_LOCAL_NAME,
RENATIVE_CONFIG_RUNTIME_NAME,
RENATIVE_CONFIG_WORKSPACES_NAME,
RENATIVE_CONFIG_PLUGINS_NAME,
RENATIVE_CONFIG_TEMPLATES_NAME,
RN_CLI_CONFIG_NAM... |
/**
* Creates all the plumbing piece types.
*/
import {DetailedError} from 'src/base/DetailedError.js'
import {seq} from "src/base/Seq.js";
import {PlumbingPiece} from "src/braid/PlumbingPiece.js";
import {
Sockets,
DUAL_FLAT_ENTER_INDEX,
DUAL_FLAT_EXIT_INDEX,
DUAL_FLAT_INTERIOR_INDEX,
PRIMAL_FLA... |
/*
Welcome to the boughtGifts page! This page takes the boughtGiftsArr that is collected on the home page and lists them
here. These gifts and their details are also changed accordingly if these gifts are updated. As always, there is also a
navigation tab at the top of the window that shows the user their options for w... |
import React, { PureComponent } from 'react';
import {
SafeAreaView,
StyleSheet,
Text,
View,
TouchableOpacity,
TextInput,
Alert,
InteractionManager
} from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import PropTypes from 'prop-types';
import { getApproveNavbar } from '../../../UI/... |
var pdfjs_version = '1.8.355',
ViewerJS_version = '0.6.6';
function loadPlugin( pluginFile, callback ) {
"use strict";
var script = document.createElement('script');
script.async = false;
script.onload = callback;
script.src = pluginFile;
script.type = 'text/javascript';
doc... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
// Copyright 2021 Battelle Energy Alliance
/// <reference path="Common.js" />
/// <reference path="../mxGraph/js/util/mxWindow.js" />
/// <reference path="CustomEvent.js" />
/// <reference path="../mxGraph/js/util/mxEventSource.js" />
/// <reference path="../mxGraph/js/util/mxEventObject.js" />
/// <reference path="... |
/// Vue model code for HomebrewCMS
window.onload = function() { if (!window.name) window.name = 'cms'; };
var data = {
active: { // default active element container
child: {}, // active schema element
granparent: null,
heir: '*',
id: '', //... |
import * as geometryEngine from 'esri/geometry/geometryEngine';
import * as Point from 'esri/geometry/Point';
import * as screenUtils from 'esri/core/screenUtils';
import * as symbolUtils from 'esri/symbols/support/symbolUtils';
import * as webMercatorUtils from 'esri/geometry/support/webMercatorUtils';
import { getFon... |
'use strict';
/*
Copyright: <NAME> (C) 2013-2017
Nested Sampling with RadFriends https://arxiv.org/abs/1407.5459
Code recycled from https://github.com/JohannesBuchner/ultranest-js
License: AGPL-3.0
See TODO's at the bottom for open issues
*/
function point(L, coords, phys_coords) {
this.L = L
this.coords = ... |
window.$ = window.jQuery;
console.log($, Date.now());
/**
*
* 主执行方法
*
*/
function exec() {
writeFile();
}
/**
* 下拉框的数据 * *
* @param {any} [$=window.jQuery]
* @returns
*/
function getComboboxData($ = window.jQuery) {
let $target = $(".panel.combo-p");
let targetArray = [];
Array.prototype.map.call($t... |
import React, { Component } from 'react';
import {connect} from 'react-redux';
import { v4 as uuidv4 } from 'uuid';
import axios from 'axios';
import Alert from 'react-bootstrap/Alert';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form'
import Modal from 'react-bootstrap/esm/Modal';
im... |
/*
tosabbreviator
Written by Atenfyr
this code is horrific and I don't understand it, but it works somehow
*/
const fs = require('fs-extra');
const url = require('url');
const path = require('path');
const xml2js = require('xml2js');
const prompt = require('prompt-sync')();
const jf = require('js... |
// npm libraries
import d3 from 'd3';
import * as _ from 'underscore';
import textures from 'textures';
import request from 'superagent';
import countdown from './countdown';
import { classify, getParameterByName, buildDataURL, makeTranslate, formatStyle } from './helpers.js';
// D3 formatters
var fmtComma = d3.format... |
/* jshint esversion: 6 */
var gl;
var currentState;
var lastState;
var frameBuffer;
function ci(state, label) {
return state | (label << 5);
}
const stateColors = [
color(0x00, 0x00, 0x00, ci(0, 0)),
color(0xFF, 0xFF, 0xFF, ci(1, 0)),
];
const LABEL_COLORS = [
[255, 255, 255, ci(0, 0)], // white
... |
'use strict'
import EventEmitter from 'events'
class KyteConnection extends EventEmitter {
constructor (Uri) {
super()
var ThisConnection = this
const REQ_SERVER_INFO_INTERVAL = 10
const REQ_SERVER_FEE_INTERVAL = 2
const MAX_FEE_HISTORY_LENGTH = 35
const RippleAPI = require('ripple-lib').... |
import axios from 'axios'
import { toJS, observable, action, runInAction, computed, makeObservable } from 'mobx'
import * as yup from 'yup'
import { METAX_FAIRDATA_ROOT_URL, ENTITY_TYPE, ROLE } from '../../../utils/constants'
import { touch } from './track'
// ACTOR VALIDATION SCHEMAS
export const actorType = yup
... |
// @flow
"use strict";
const ev = require("./events.js");
const ut = require("./utils.js");
const fn = require("./functions.js");
const ly = require("./layers.js");
const west = 2.0;
const south = 42.0;
const east = 2.1;
const north = 42.2;
let trackDataSource = null;
let trackGeoJSON = null;
let CAPA_ALLAUS = null;
... |
import React from 'react';
import { connect } from 'react-redux'
import "../../less/devices.less"
import Slider from 'react-rangeslider'
import 'react-rangeslider/lib/index.css'
import path from "path"
import Const from "../../const"
import AgoraRtcEngine from '../../agora/AgoraSdk'
import net from "../netwo... |
'use strict';
// @ts-ignore
const utils = require('@iobroker/adapter-core');
// @ts-ignore
const schedule = require('node-schedule');
// @ts-ignore
const SunCalc = require('suncalc2');
// @ts-ignore
const axios = require('axios').default;
const createStates = require('./lib/createObjects.js');
let requestTimer;
let ... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
"use strict";
// require('lazy-some').bindToPrototypeIn(Array);
var changing = require('best-globals').changing;
myOwn.wScreens={}
myOwn.i18n.messages.en=changing(myOwn.i18n.messages.en, {
chpass:'<PASSWORD>',
completed:'completed',
exit:'exit',
networkSignal1:'network $1',
offLine:'off... |
/*********************共享密钥,生成密钥Start***************************/
var ascii = "01234567890123456789012345678901" +
" !\'#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
"[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
var state = new Array(4), count = new Array(0, 0), buffer = new Array(64), transform... |
import { useState, useEffect, useContext, memo } from 'react'
import set from 'lodash/fp/set'
import { ThemeContext } from 'styled-components'
import { jsPDF } from 'jspdf'
import { bg, font } from '../../../utils/useRelatorio'
import MenuIcon from '../../Icons/MenuIcon'
import Select from '../../Inputs/Select'
import... |
const querystring = require('querystring');
var merge = require('merge');
var co = require('co');
var request = require('request');
var log4js = require('log4js');
var mimeType = require('mime-types');
var iconv = require('iconv-lite');
const isHTML = require('is-html');
const config = require('config');
var Wrapper =... |
/*jshint browser:true, jquery:true, quotmark:double, maxlen:80, eqeqeq:true,
strict:true, unused:true, undef:true*/
/*jslint browser:true, this:true*/
/*global $, window, SGE*/
// PointUpText draws text which scrolls upwards and fades out
function PointUpText(text, font, colour, moveSpeed, fadeSpeed, x, y) {
"use ... |
import PathProxy from '../core/PathProxy';
import { cubicSubdivide } from '../core/curve';
import { defaults, assert, noop, clone } from '../core/util';
import { lerp } from '../core/vector';
import Rect from '../graphic/shape/Rect';
import Sector from '../graphic/shape/Sector';
var CMD = PathProxy.CMD;
var PI2 = Math.... |
/* © 2020-2021 <NAME> */
import { constants as k } from 'http2';
import { createReadStream, promises } from 'fs';
import { EOL } from 'os';
import {
escapeText,
parseDateHTTP,
validateRequestPath,
validateRoutePath,
} from './util.js';
import { extname, join } from 'path';
import { finished, Readable } from 's... |
/**
* Copyright (c) 2018, Neap Pty Ltd.
* 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 co = require('co')
const { throttle } = require('core-async')
const { GoogleAuth } = require('google-auth-lib... |
/*
* mdseqpos_out.js - script to control mdseqpos_out.html UI
*
* Copyright (c) 2012 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain th... |
/*
Spellcast
Copyright (c) 2014 - 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 use, co... |
//-- Filename:
//-- vaccination_progress.js
//--
//-- Author:
//-- <NAME>
function VP_InitFig(wrap) {
if (wrap.tag.includes('mini'))
GP_InitFig_Mini(wrap);
else if (wrap.tag.includes('overall'))
GP_InitFig_Overall(wrap);
else
GP_InitFig_Standard(wrap);
}
function VP_ResetText() {
if (LS_lang ... |
'use strict';
var Connect4 = {};
// namespace Connect4.Board //
Connect4.Board = {};
// Public class Display //
Connect4.Board.Display = function(svg, x, y) {
var d = Connect4.Board.Display.DEPTH;
this.x = x;
this.y = y;
this.svg = svg;
this.shapeFond = svg.set();
this.shapeDevant = svg.set();
// bot... |
"use strict";
var crypto = require("crypto"), HTTP = require("http"), HTTPS = require("https"), cluster = require("cluster");
const noop = () => {}, OPCODE_TEXT = 1, OPCODE_PING = 9, OPCODE_BINARY = 2, APP_PONG_CODE = 65, APP_PING_CODE = Buffer.from("9"), PERMESSAGE_DEFLATE = 1, DEFAULT_PAYLOAD_LIMIT = 16777216, nati... |
// 地図表示時の中心座標
var init_center_coords = [139.618728,35.748973];
// Bing APIのキー
var bing_api_key = '<KEY>';
// map
var map;
// 保育施設JSON格納用オブジェクト
var nurseryFacilities = {};
// 中心座標変更セレクトボックス用データ
var moveToList = [];
// マップサーバ一覧
var mapServerList = {
'bing-road': {
label: "標準(Bing)",
source_type: "bing",
sourc... |
function base64encode(str) {
let base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
let base64DecodeChars = new Array(
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1... |
var remaining = 10;
var centerSpace = 70;
var dataStore;
var radii = [centerSpace];
var maximumHeight = 600;
var pointsData = [];
var linesData = [];
var pointRadius = 2;
var highlightedPointRadius = 6;
var highlightedSiblingPointRadius = 6;
var currentNofDays = 100;
var currentStartDate = moment("20-Mar-2017", ['DD-... |
//import initialCaseData from '../../data/case_data.json';
import { getLocationIds } from './location';
import { aggregate } from './transform';
import { metadataFields } from '../constants/metadata';
import _ from 'underscore';
import {
LOW_FREQ_FILTER_TYPES,
appConfig,
GROUP_SNV,
DNA_OR_AA,
COORDINATE_MOD... |
// 设置窗口的下拉背景色
export function setBgColor(color = '#46aef7') {
uni.setBackgroundColor({
backgroundColor: color,
});
}
/**
* 方法说明
* @description: 缓存方法
* @Param: 第一个参数可选值 get set remove
* @Param: 第二个参数为存储的名字key
* @Param: 第三个参数为设置缓存时的参数内容
* @Param: sync参数 标识设置缓存使用同步或异步 0异步 1同步 默认0
* @Author: xwq
* @return: ... |
/**
* Configuration Functions. These are overwritten for each different classifier trainer
*/
function renderConfigurations(){
$("#list").empty();
$("#list").append("<h2>Available configurations:</h2>");
$.getJSON("../configurations",function(json){
if(json.configurations==null){
$("#list").append("<h3>There are ... |
import React from 'react'
import PropTypes from 'prop-types'
import Immutable from 'immutable'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import NavigationPrompt from 'react-router-navigation-prompt'
import Switch from 'react-bootstrap-switch'
import logger from '_/logger'
import {... |
'use strict'
var optimized = require('./optimized')
function BN () {
this.negative = 0
this.words = null
this.length = 0
}
BN.fromNumber = function (n) {
var bn = new BN()
bn.words = [n & 0x03ffffff]
bn.length = 1
return bn
}
BN.fromBuffer = function (b32) {
var bn = new BN()
bn.words = new Array(... |
//
// system.js
//
// the main controller object for creating/modifying graphs
//
// Ported by <NAME> on 2020-01-30.
//
import assignIn from 'lodash/assignIn';
import cloneDeep from 'lodash/cloneDeep';
import forEach from 'lodash/forEach';
import isArray from 'lodash/isArray';
import isEmpty from 'lodash/isEmpty';
... |
var Account = require("ethereumjs-account");
var RuntimeError = require("./utils/runtimeerror");
var FakeTransaction = require("ethereumjs-tx/fake.js");
var utils = require("ethereumjs-util");
var seedrandom = require("seedrandom");
var bip39 = require("bip39");
var wallet = require("ethereumjs-wallet");
var hdkey = re... |
/* Element File */
import {_l,_e,_w,_i} from './console';
import {Prototype} from './prototype';
import {Helper} from './helper';
import {Route} from './route';
import {Module} from './module';
/*
Rules to follow :
1. To call 'dynamic event listner' we need unique element id.
2.
*/
/* Add/Update Window ... |
const { dialog } = require('electron').remote;
const { electron } = require('process');
const { param } = require('jquery');
if (settings['developer_mode']) {
document.querySelector('#version-span').innerHTML = `Версия лаунчера: ${app.getVersion()} [ Режим разработчика ]`;
} else {
document.querySelector('#ver... |
/**
* DevExtreme (ui/collection/ui.collection_widget.edit.js)
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
... |
const express = require('express');
const path = require('path');
const execa = require('execa');
const pfs = require('promise-fs');
const dateFormat = require('dateformat');
const _ = require('underscore');
const isWindows = require('is-windows');
const qrcode = require('qrcode-terminal');
const fs = require('fs');
co... |
/**
*
* funpl.js
* <P>Java Script for FunPL (Functional/Logic Programming).</P>
* <P> requires base64.js, kompari.js, lifya.js, and jxon.js (jxon_wrap.js). </P>
* <P>A numtseng module <A HREF="https://numtseng.com/modules/funpl.js">https://numtseng.com/modules/funpl.js</A>
*
* Copyright (c) 2021 by <NAME>. <br>
* All ... |
// This is a port of Google Android `libphonenumber`'s
// `phonenumberutil.js` of 17th November, 2016.
//
// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js
import { matches_entirely } from './common'
import
{
get_phone_code,
get_national_number_pattern,
... |
import Ember from 'ember';
import State from './state';
import Transition from './transition';
/**
@module ember
@submodule ember-states
*/
const get = Ember.get;
function forEach(array, callback, binding) {
for (let i=0; i<array.length; i++) {
callback.call(binding, array[i], i);
}
}
/**
Sends the event ... |
'use strict';
var paused = false;
var ctx = document.getElementById('game').getContext('2d');
var canvas = document.getElementById('game');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight - 57;
ctx.font = '15px "Press Start 2P"';
var words = [
'<!DOCTYPE>',
'<a>',
'<abbr>',
'<acronym>',
... |
/*
* Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers.
*
* 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
*
... |
setDefaults({
allDaySlot: true,
allDayText: 'all-day',
scrollTime: '06:00:00',
slotDuration: '00:30:00',
axisFormat: generateAgendaAxisFormat,
timeFormat: {
agenda: generateAgendaTimeFormat
},
dragOpacity: {
agenda: .5
},
minTime: '00:00:00',
maxTime: '24:00:00',
slotEventOverlap: true
});
functi... |
var Alloy = require('/alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._;
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
}
return arg;
}
function Controller() {
require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.slice.call(arguments));
... |
// base imports
import React, { useState, useEffect, useContext } from 'react';
import { useHistory, useLocation, useParams } from 'react-router-dom';
import PropTypes from 'prop-types';
import ReactHtmlParser, { convertNodeToElement } from 'react-html-parser';
import clsx from 'clsx';
import isURL from 'validator/lib/... |
/*
* MIT License
* Copyright (c) 2020 <NAME>
*
* 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... |
/*
* WhoisOnline Node Server
* by <NAME>
*/
var debug=1;
var config={};
var fs = require('fs');
var ini = require('ini');
var uid = require('uid-safe');
var express = require('express');
var app = express();
var path = require('path');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-pa... |
/**
* @file Color Maker
* @author <NAME> <<EMAIL>>
* @private
*/
import { Color, Vector3 } from "../../lib/three.es6.js";
import { defaults } from "../utils.js";
import Selection from "../selection.js";
import { generateUUID } from "../math/math-utils.js";
import {
PolymerEntity, NonPolymerEntity, Macrolide... |
var gui = require("nw.gui"); //or global.window.nwDispatcher.requireNwGui() (see https://github.com/rogerwang/node-webkit/issues/707)
// Get the current window
var win = gui. Window.get();
win.show();
// Register dev console to ctrl+d
$("body").on("keypress", function(e) {
if (e.which === 4 && e.ctrlKey === true) {
... |
var utility = {
'articleTitle':'',
'apiUrl':'https://en.wikipedia.org/w/api.php?callback=?',
'revisionUrl' : 'https://en.wikipedia.org/w/index.php?oldid=',
'redirectTitle' : function(title){
var check_redirect_dict = {
'action':'query',
'format':'json',
'titles':title,
'redirects':''
};
var th... |
import {isIdentifierStart, isIdentifierChar} from "./identifier"
import {types as tt, keywords as keywordTypes} from "./tokentype"
import {Parser} from "./state"
import {SourceLocation} from "./location"
import {lineBreak, lineBreakG, isNewLine, nonASCIIwhitespace} from "./whitespace"
// Object type used to represent ... |
'use strict';
const path = require('path');
const util = require('util');
const up = require('url');
const yaml = require('yaml');
const jsonTrunc = require('./jsonTrunc.js');
const uri = require('urijs');
const URITemplate = require('urijs/src/URITemplate');
const dot = require('dot');
dot.templateSettings.strip = f... |
import { useEffect, useState, useReducer } from 'react'
import { useWeb3React } from '@web3-react/core'
import { InjectedConnector } from '@web3-react/injected-connector'
import { NetworkConnector } from '@web3-react/network-connector'
// import { WalletConnectConnector } from '@web3-react/walletconnect-connector'
impo... |
/*
* The API Call are made based on the URI's set here
* Any Changes made here will effect the API call throughout the application
*/
var CC_API_URL;
var CC_API_BUILDER = "?";
var CC_API_PRAM_APPEND = "&api_mode=1";
//API Appends are to be listed here
var CC_PROJECT_SEARCH_APPEND = "browse/searchautocomplete/";
var ... |
var progress = 0, sceneReady = false, scene, area = [], GUI, marker = null, map;
var KINEMATICModeCamera, camera, camerado, sound, cameravr, beginAnimation = false;
var posTarget = new BABYLON.Vector3(-75, 50, -105);
var coords = [29.504324, -98.553890];
var assetsPath = "/assets/portfolio/leafletand3d/";
var... |
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot... |
'use strict';
'require baseclass';
'require dom';
'require ui';
'require uci';
'require form';
'require network';
'require firewall';
'require tools.prng as random';
var protocols = [
'ip', 0, 'IP',
'hopopt', 0, 'HOPOPT',
'icmp', 1, 'ICMP',
'igmp', 2, 'IGMP',
'ggp', 3 , 'GGP',
'ipencap', 4, 'IP-ENCAP',
'st', 5,... |
/* wppa-tinymce-shortcodes.js
* Pachkage: wp-photo-album-plus
*
*
* Version 8.0.05.004
*
*/
// Add the wppa button to the mce editor
tinymce.PluginManager.add('wppagallery', function(editor, url) {
function openWppaShortcodeGenerator() {
var opt = {
modal: true,
resizable: true,
width: 720,... |
var hummus = require('hummus'),
_ = require('lodash');
/**
* toText function. should get this into hummus proper sometimes
*/
function toText(item) {
if(item.getType() === hummus.ePDFObjectLiteralString) {
return item.toPDFLiteralString().toText();
}
else if(item.getType() === hummus.ePDFObje... |
RTMP_url = 'rtmp://broadcast.api.video/s/150a4e6c-153f-4f11-869a-0cf689f450f2';
live_url = 'https://embed.api.video/live/limZa0k7CiqP1JR8SdnWee7';
var watermark_url;
var FE_watermark_url;
var BE_watermark_url;
var watermarkImg;
var onepixel_watermarkUrl = "1x1.png";
var canvasWatermark;
delegated_token = '<PASSWORD>';... |
"use strict";
/*
* Wazuh app - Integrity monitoring table component
* Copyright (C) 2015-2020 Wazuh, Inc.
*
* 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 2 of the License,... |
// Copyright 2008 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... |
// OBJViewer.js (c) 2012 matsuda and itami
// Vertex shader program
var VSHADER_SOURCE =
'attribute vec4 a_Position;\n' +
'attribute vec4 a_Color;\n' +
'attribute vec4 a_Normal;\n' +
'uniform mat4 u_MvpMatrix;\n' +
'uniform mat4 u_NormalMatrix;\n' +
'varying vec4 v_Color;\n' +
'void main() {\n' ... |
L.Control.SimpleMarkers = L.Control.extend({
options: {
position: 'topleft'
},
onAdd: function () {
var marker_container = L.DomUtil.create('div', 'marker_controls');
var add_marker_div = L.DomUtil.create('div', 'add_marker_control', marker_container);
var del_marker_div... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Vec3_1 = require("./Vec3");
var Mat4 = /** @class */ (function () {
function Mat4(m00, m10, m20, m30, // Constructor
m01, m11, m21, m31, m02, m12, m22, m32, m03, m13, m23, m33) {
var _this = this;
this.toArray =... |
import * as array from 'd3-array';
import * as scale from 'd3-scale';
import * as shape from 'd3-shape';
import * as timeFormat from 'd3-time-format';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { View, PanResponder, StyleSheet } from 'react-native';
import Svg from 'react-nativ... |
//
// Copyright (c) Microsoft and contributors. 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... |
'use strict';
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.definePrope... |
const cds = require('../../cds')
const { SELECT, INSERT, DELETE, UPDATE } = cds.ql
const { getOnCond } = require('./generateOnCond')
const { resolveView } = require('./resolveView')
const { ensureNoDraftsSuffix } = require('./draft')
const { flattenStructuredSelect } = require('./structured')
const { foreignKeyPropaga... |
'use strict'
const path = require('path');
const { BDAnimes } = require('./consultas.js');
const { RenderBase } = require('./RenderBase.js');
const { Days, Tipos, Estados } = require('./defaults-config.js');
const settings = require('electron-settings');
const { Anime } = require('./Anime');
const { dialog } = require(... |
"use strict";
var createElementsByHTML = (function () {
var div = document.createElement("div");
return function (html) {
var res = [];
div.innerHTML = html;
while (div.firstChild) {
res[res.length] = div.removeChild(div.firstChild);
}
return res;
};
})()... |
/*
* Copyright (c) 2015-2018 PointSource, LLC.
* MIT Licensed
*/
var _ = require('lodash'),
swaggerUtil = require('../lib/swaggerUtil'),
VError = require('verror'),
multer = require('multer'),
path = require('path'),
util = require('util');
// config Enum for when multer.storage property matches... |
var pc, main; // 视频的DIV
var errorNotice; // 错误提示DIV
var socket; // websocket
var localAudio;//
var localVideo; // 本地视频
var miniVideo; // 本地小窗口
var remoteVideo; // 远程视频
var localStream; // 本地视频流
var remoteStream; // 远程视频流
var localVideoUrl; // 本地视频地址
var initiator = false; // 是否已经有人在等待---默认false--如果医生点击等待连接的话专家进入就需要设置为t... |
var Intersections = require('geo/Intersections');
var Object3DUtil = require('geo/Object3DUtil');
var _ = require('util/util');
/**
* Create architecture consisting of walls with holes cut out for windows and door
* @param params
* @param params.up {THREE.Vector3|string|number[]} Up direction for the architecture
... |
/**
* Module dependencies.
*/
var config = require("config");
//add timestamps to each console function
//https://github.com/mpalmerlee/console-ten
var consoleTEN = require("console-ten");
consoleTEN.init(console, consoleTEN.LEVELS[config.loglevel]);
var WebSocketServer = require("ws").Server;
var express = requir... |
"use strict";
/**
* @file RichText
* @description
* @author fex
*/
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var jquery_1 = tslib_1.__importDefault(require("jquery"));
// Require Editor JS files.
// import ... |
/**
* criação da mudança de estado do agent
*
*/
var app = angular.module("FablePlayer",['simple-sprite']);
//Module Elements
var Elements = (function(){
/**
* Arrays que guardam os objetos do Fables
*/
var animations = new Array();
var agents = new Array();
var sounds = new Array();
... |
var SyncLanePriority = 15;
var SyncBatchedLanePriority = 14;
var InputDiscreteHydrationLanePriority = 13;
var InputDiscreteLanePriority = 12;
var InputContinuousHydrationLanePriority = 11;
var InputContinuousLanePriority = 10;
var DefaultHydrationLanePriority = 9;
var DefaultLanePriority = 8;
var Tran... |
var express = require('express');
var router = express.Router();
var multer = require('multer'),
bodyParser = require('body-parser'),
path = require('path');
var fs = require('fs');
var moment = require("moment");
var momentDurationFormatSetup = require("moment-duration-format");
var numeral = require("numeral");
... |
const Discord = require('discord.js');
const {talent, stream, user, membership, member_channel, guild} = require('../data/models');
const models = require('../data/models');
const mongoose = require('mongoose');
const {Types: {ObjectId}} = mongoose;
/**
* Finds talent with given guild and name.
* @param {String}... |
function multiplyInputValue(n, t, i, r, u, f, e) {
let s = document.getElementById(n).value.split(" ")[0];
s = new Number(s).valueOf();
isNaN(s) && (s = i);
let h = new Number(t).valueOf();
isNaN(h) && (h = 1);
let o = s * h;
f > 0 && o < f && (o = f);
e > 0 && o > e && (o = e);
o = ... |
// https://github.com/parcel-bundler/parcel/issues/3375#issuecomment-599160200
import 'regenerator-runtime/runtime';
const mapboxgl = require('mapbox-gl');
const taxiStandsOnMap = require('../data/taxi-stands.json');
const helpers = require('@turf/helpers');
const pointsWithinPolygon = require('@turf/points-within-p... |
//if we're in a web worker
if (typeof importScripts === "function") {
onmessage = function (event) {
var data = event.data;
var fns = {
astToString: function () {
return postMessage({
nonce: data.nonce,
data: astToString(data.args[... |
const miniban = require('miniban')
const IBAN = require('IBAN')
const ibankit = require('ibankit') //TODO: tsc (typescript)
const fastIban = require('fast-iban')
//const BICFromIBAN = require('bic-from-iban')
const IbanBT = require('banking-toolkit/src/modules/iban')
const Validator = require('validator.js').Validator... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RequestManager = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _toConsumableArray2 = _interopRe... |
const readStreamArray = require('./scripts/lib/readStreamArray').readStreamArray
const tableOrig = require('./scripts/lib/tableOrig').tableOrig
const checkDuplicateKeys = require('./scripts/lib/checkDuplicateKeys').checkDuplicateKeys
const isHanzi = require('./scripts/lib/isHanzi').isHanzi
const mkQueue = require('./sc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.