text stringlengths 8.5k 48.7k |
|---|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RxCollectionBase = void 0;
exports.createRxCollection = createRxCollection;
exports.isRxCollection = isRxCollection;
var _createClass2 = _intero... |
import cornerstoneTools from 'cornerstone-tools';
import cornerstone from 'cornerstone-core';
import log from '../../log';
import getLabel from '../lib/getLabel';
import getDescription from '../lib/getDescription';
import getImageIdForImagePath from '../lib/getImageIdForImagePath';
import guid from '../../utils/guid';
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSimplify = void 0;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _is = require("../../utils/is.js"... |
//REQUERINDO MODULOS
const menu = require('../lib/menu')
const moment = require("moment-timezone")
const { version } = require('../package.json');
const msgs_texto = require('../lib/msgs')
const {criarTexto,erroComandoMsg, removerNegritoComando, timestampParaData} = require('../lib/util')
const {desbloquearComandosGlob... |
import { Controller } from '@hotwired/stimulus'
import { isEmpty } from 'lodash-es'
import dompurify from 'dompurify'
import { getDefault } from '../helpers/module_helper'
import { padPoints, sizedBarPlotter } from '../helpers/chart_helper'
import Zoom from '../helpers/zoom_helper'
import globalEventBus from '../servic... |
/**
* 运行时可编辑地图的扩展,By fux2(黄鸡)
*/
"use strict";
function dynamicMapEditor() {
// 所有显示的ID
this.displayIds = [
'none', 'yellowWall', 'blueWall', 'whiteWall', 'yellowDoor', 'blueDoor', 'redDoor', 'star', 'lava', 'lavaNet',
'yellowKey', 'blueKey', 'redKey', 'redJewel', 'blueJewel', 'greenJewel', 'yellowJewel',
'... |
import React from 'react'
//import CoreCombos from 'parser/core/modules/Combos'
import {ActionLink, StatusLink} from 'components/ui/DbLink'
import {getDataBy} from 'data'
import STATUSES from 'data/STATUSES'
import ACTIONS from 'data/ACTIONS'
import Module from 'parser/core/Module'
import {SEVERITY, TieredSuggestion} ... |
function getTypeName(widgets, type) {
if (type == "datetime" || type == "time") type = "date";
return widgets.find( "[data-type='"+type+"']" ).find("span").first().text();
}
function getTypeItem(widgets, type) {
if (type == "datetime" || type == "time") type = "date";
return widgets.find( "[data-type... |
var sample_training_instance = function() {
// find an unloaded batch
var bi = Math.floor(Math.random()*loaded_train_batches.length);
var b = loaded_train_batches[bi];
var k = Math.floor(Math.random()*num_samples_per_batch); // sample within the batch
var n = b*num_samples_per_batch+k;
// load more batches... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _crypto = _interopRequireDefault(require("crypto"));
var _fs = _interopRequireDefault(require("fs"));
var _chalk = _interopRequireDefault(require("next/dist/compiled/chalk"));
var _jestWorker = require("jest-w... |
/*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
/* global
showMessage
showOverlay
userConfirm
*/
window.cvat = window.cvat || {};
const AutoAnnotationServer = {
start(modelId, taskId, data, success, error, progress, check) {
$.ajax({
url: `/auto_an... |
// Copyright (c) 2006-2008 by <NAME> <<EMAIL>>
// Copyright (c) 2007-2011 by <NAME> <<EMAIL>>
// Copyright (c) 2008-2015 <NAME> <maglione.k at Gmail>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
"use strict";
/** @scope modules */
/*... |
/* eslint-disable no-underscore-dangle */
/* eslint-disable no-use-before-define */
/*!
* 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 licens... |
var lastTag = "";
var lastFolder = "";
const panelId = '1';
const otherId = '2';
var urlParser = document.createElement('a');
var searchTimeout = null;
const searchDelay = 200; //ms
var delaySearch = true;
const modeBookmark = 1;
const modeTags = 2;
const modeSearchTags = 3;
const modeDuplicates = 4;
var currentComp... |
/*!
* psd2fgui
* @license [MIT]
* @copyright http://www.fairygui.com/
*/
"use strict";
const PSD = require('psd');
const fs = require('fs-extra');
const path = require('path');
const crypto = require('crypto');
const archiver = require('archiver');
const xmlbuilder = require('xmlbuilder');
//The group name prefi... |
/**
* @typedef {import('hast').Element} Element
*
* @typedef {{name?: string, alpha2: string, alpha3: string, numeric: string}} Reserved
*
* @typedef {{name: string, alpha2: string, alpha3: string, numeric: string}} Assigned
*
* @typedef {{state: string, alpha2: string, alpha3: string, numeric: string, name?: st... |
const Discord = require('discord.js');
const Canvas = require('canvas');
const { Data } = require('../data.js');
const { DataHandler } = require('../database.js');
module.exports = {
name: 'weight',
aliases: ['w'],
description: 'Calculate a players farming weight',
usage: '[username] (profile name)',
guildOnly: f... |
var Book = require('../models/book');
var Author = require('../models/author');
var Genre = require('../models/genre');
var BookInstance = require('../models/bookinstance');
var Activity = require('../models/activity');
var User = require('../models/user');
var debug = require('debug')('activity');
var moment = requir... |
/**
*
*/
var EffectChart = []; //存放有动画效果的图实例对象,父页面获取
$(function(){
var $parentIframe = $(window.parent.document.getElementById("contentFrame"));
$("body").css("height", $parentIframe.height());
drawChart1();
drawChart2();
drawChart3();
drawChart4();
//时间轴选择
var $time1_li = $("#time1 li");
$time1_li.on("... |
import React, { useContext } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import {
Avatar,
Button,
Chip,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Divider,
FormControl,
Grid,
InputLabel, MenuItem, Select,
TextField
} from '@mat... |
MeshVisualizer = Cesium.MeshVisualizer;
Mesh = Cesium.Mesh;
MeshMaterial = Cesium.MeshMaterial;
FramebufferTexture = Cesium.FramebufferTexture;
GeometryUtils = Cesium.GeometryUtils;
LOD = Cesium.LOD;
homePosition[2] = 200000;
init();
var gl = viewer.scene.frameState.context._gl;
//initGL(viewer.scene.canvas,gl);
va... |
const mouseRepeat = (action) => {
action();
let interval = 0;
const timeout = setTimeout(() => interval = setInterval(() => action(), 50), 600);
const mouseUp = () => {
window.removeEventListener("mouseup", mouseUp);
clearTimeout(timeout);
if (interval)
clearInterval(... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _invariant = _interopRequireDefault(require("invariant"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _reactDom = require("react-dom");
var _reactLifecyclesCompat ... |
var
kind = require('enyo/kind'),
Select = require('enyo/Select');
var
ilib = require('enyo-ilib');
module.exports = kind({
name: 'ilib.sample.ChooseLocale',
tag: 'span',
published: {
'value': 'en-US'
},
locales: [
{locale: 'sq-AL', label: 'Albanian - Albania', label_o... |
/*
* MIT License
*
* Copyright (c) 2021 <NAME> e <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, ... |
//consts (for glitch)
// GEREKLİ YERLER
const express = require('express');
const app = express();
const http = require('http');
app.get("/", (request, response) => {
console.log(` az önce pinglenmedi. Sonra ponglanmadı... ya da başka bir şeyler olmadı.`);
response.sendStatus(200);
});
app.listen(pr... |
//General information for sending request to WordPress
const apiUrl = "http://lykkebergstein.dk/wp-json";
const apiUrlGET = "http://lykkebergstein.dk/wp-json/wp/v2";
const apiUserInformation = {
"username": "api.user",
"password": "<PASSWORD>#!"
} ;
let wordPressData;
let kogebog_billede_nummer = 1;
... |
var cerrar = false;
$(document).ready(function() {
var options = {
beforeSubmit: showRequest,
success: showResponse,
url: '_subirArchivo.action?CVE_CONTRATO='+$('#CVE_CONTRATO').attr('value'),
type: 'post',
dataType: 'json'
};
$('#forma').submit(fu... |
function SpecImg(blob, duration = dur) {
this.blob = blob;
this.blob
.slice(0, 8)
.arrayBuffer()
.then((buffer) => {
let offset = Number(new Float64Array(buffer)[0]);
this.start = offset;
this.end = offset + duration;
});
this.duration = duration;
this.img = new Image();
thi... |
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, Form, Button, Input } from 'antd';
import style from '../../components/CreateEntity/style.less';
import BaseInformation from '../CreateWmEntity/baseInformation';
import Avatar from '../../components/CreateEntity/avatar';
import Details f... |
var Deque = require("collections/deque");
var convexHull = require("quick-hull-2d");
var _visibility = require("vishull2d");
var lineIntersection = require("segseg");
var ClipperLib = require("js-clipper");
var explanations = require("./explanation");
// Prototype extensions and helper functions - interesting code sta... |
function basicVar ( name )
{
this.name = name;
this.val = 0;
}
function lBasicRuntime( lang, visu, lbp )
{
this.running = false;
this.visu = visu;
this.lang = lang;
this.lBP = lbp;
var parent = this; // nice trick
this.varTable = []; // name: basicVar
/* run-time functions */
... |
//Hide blue navbar on scroll
//activate the scroll event
$(window).scroll(function () {
// removeSideMenu();
var scrollBottom = $(window).scrollTop() + $(window).height();
// console.log(scrollBottom);
// console.log($(window).height());
if ($(this).scrollTop() >= 100) {
$(".header-blue")... |
'use strict';
/////////////////////////////////////////////////
/////////////////////////////////////////////////
// BANKIST APP
/////////////////////////////////////////////////
// Data
// DIFFERENT DATA! Contains movement dates, currency and locale
const account1 = {
owner: '<NAME>',
movements: [200, 455.23, ... |
var that = this;
function __skpm_run (key, context) {
that.context = context;
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/****... |
let _ = require('lodash');
let $ = require('jquery');
require('vtk.js');
let controls = require('@jupyter-widgets/controls');
let guiUtils = require('./gui_utils');
let widgets = require('@jupyter-widgets/base');
let rsUtils = require('./rs_utils');
let vtkUtils = require('./vtk_utils');
const LINEAR_SCALE_ARRAY = 'li... |
import {
RepeatWrapping,
BufferAttribute,
Clock,
Color,
CylinderBufferGeometry,
// DoubleSide,
HalfFloatType,
IcosahedronBufferGeometry,
InstancedBufferAttribute,
InstancedBufferGeometry,
Mesh,
MeshStandardMaterial,
Object3D,
Vector2,
Vector3,
DynamicDrawUsage,
// FrontSide,
DoubleSi... |
/*
* Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
var OpaInterviewController = require('./OpaInterviewController.js')
var OpaInterviewScreen = require('./OpaInterviewScreen.js')
// var Mem... |
import {
API_DISK_URL, SEARCH_API_URL, API_TAOKE_COUPON_URL, ACTIVE_LINK_REG, JUMP_LINK_REG,
PARSE_PWD_REG, BUTTON_TEXT_VIP_VIDEO, BUTTON_TEXT_PARSE_BAIDU,
KEY_LINKS_DIALOG, NOTICE_TEXT_CLOSE_LINK_DIALOG, BUTTON_TEXT_FIND_COUPON,
URL_REG, API_PARSE_BAIDU_URL, VIP_VIDEO_API_URL, BUTTON_TEXT_SETTING, BUTT... |
import { ConsoleLog, Log } from '../../Shared/ConsoleLog.js';
import ButtonCreator from './ButtonCreator.js';
import { $, $$, buildNode, appendChildren, jsonRequest, errorMessage, clearEle } from './Common.js';
import Overlay from './inc/Overlay.js';
import Tooltip from './inc/Tooltip.js';
import { PlexUI } from './P... |
Ext.BLANK_IMAGE_URL = '../com_exp_cemk_css/images/default/s.gif';
Ext.ns('Example');
Example.version = '1.0';
Ext.override(Ext.ux.form.LovCombo, {
beforeBlur: Ext.emptyFn
});
var userRes = '[{ }]';
var userResData = Ext.util.JSON.decode(userRes);
var userResReader= new Ext.data.JsonReader(
{
},[ ... |
'use strict';
exports.__esModule = true;
exports.COMPAT_CONFIGS = exports.loaderConfigName = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[... |
import React, { Component } from "react";
import { Link, Redirect, useParams, useLocation } from 'react-router-dom'
import axios from "axios";
import { connect } from 'react-redux';
import youtubeSquare from "@iconify-icons/fa-brands/youtube-square";
import {Icon} from "@iconify/react";
import { toast } from 'react-toa... |
const puppeteer = require("puppeteer-core");
const SmartBuffer = require("smart-buffer").SmartBuffer;
const getPixels = require("get-pixels");
const findChrome = require("chrome-finder");
const awaitifyStream = require("awaitify-stream");
const { getElements } = require("./getElements");
const uuid = require("uuid").v1... |
// 初始化webuploader
function initializeUploader(frontUploaderId,backUploaderId,personUploaderId){
let fileMap={frontFile:null,backFile:null,personFile:null};
let uploader = WebUploader.create({
auto:false,
swf: "js/webUploader/Uploader.swf",
method :"POST",
server: "asxuexi/org/uploadIdentityPho... |
//=============================== LINEAR ALGEBRA =================================
function matMultiply(vec, mat) {
return [
vec[0] * mat[0] + vec[1] * mat[3] + vec[2] * mat[6],
vec[0] * mat[1] + vec[1] * mat[4] + vec[2] * mat[7],
vec[0] * mat[2] + vec[1] * mat[5] + vec[2] * mat[8]
];
}... |
let match13 = { l: 1, r: 3 };
let formats = {
line: {
default:{ multiline: true },
h1: { pattern: /^(\s{0,3}#(\s|$))(.*$)/, match: match13, classes: ['heading'] },
h2: { pattern: /^(\s{0,3}##(\s|$))(.*$)/, match: match13, classes: ['heading'] },
h3: { pattern: /^(\s{0,3}#... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
import _extends from '@babel/runtime/helpers/esm/extends';
import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
import memoizeOne from 'memoize-one';
import { createElement, PureComponent } from 'react';
import sche... |
import _ from "lodash";
import parser from "jhipster-core/lib/dsl/api";
import skanaar from "./shannar.custom.js";
import dagre from "dagre";
var nomnoml = nomnoml || {};
//layout
nomnoml.Classifier = function(type, name, compartments) {
if (type === "ENUM") {
var enumLabel = _.cloneDeep(compartments[0]),
... |
view_cr_trx();
function cek(control){
var html_barcode = $('.barcode').html();
var x = $('.barcode').find('.i').html();
var sudah_dibayar = $(control).closest('tr').find('.sudah_dibayar').html();
var piutang = $(control).closest('tr').find('.piutang').html();
sudah_dibayar = cl... |
// Use this to create the Tableau dataset for use in the DTMO Hotel Dashboard.
//
/* eslint-disable no-console */
//
import csv from 'csvtojson';
import AddressReader from './address_reader';
import CreateMasMap from './create_mas_map';
import axios from 'axios';
import { readOneCSV, readOneXlsx, writeCSV, writeOneXlsx... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
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;
}
... |
import React, { Component } from 'react';
import ReactEcharts from 'echarts-for-react';
import { Router, Route, hashHistory, IndexRoute, Redirect, IndexLink } from 'react-router';
import $ from 'jquery';
import { Row, Col, Card, Breadcrumb, Button, Form, Select, Checkbox, Input, Icon, Modal,Collapse,Alert } from 'antd'... |
var buildTableOnWorker = function (allowedMoves, targetState, coordIndex) {
let tableContainer = {ready: false, table: {}};
let thisWorker = new Worker('basicpruningworker.js');
thisWorker.onmessage = function (result) {
console.log("Message recieved from worker", coordIndex);
ta... |
/**
* JavaScript functionality for the media management popup
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
var dw_mediamanager = {
keepopen: false,
hide: false,
popup: false,
display: false,
ext: false,
$popup: null,
// Image insertion opts
align: false,
link: fa... |
//#include include/npc_quests.js, include/npc_conversation.js, include/npc_ai.js, include/events.js
var label = "Crafty Tasker";
var version = "1344982233";
var name_single = "<NAME>";
var name_plural = "<NAME>";
var article = "a";
var description = "Will craft for you.";
var is_hidden = false;
var has_info = true;
va... |
var soda_machine_fsm = {
//constants
NUM_STATES: 9,
//numeric variables
state: 0,
inputs: 0,
nexts: null,
output: null,
//object pointers
paper: null,
fsm_circles: null,
fsm_arrows: null,
outputText: null,
stateText: null,
inputsText: null,
nextText: null,
waitText: null,... |
"use strict";
import { extend, isDate, isHidden, inBetween, addEvent, removeEvent, addClass, removeClass, hasClass, getDaysInMonth, setToStartOfDay, compareDates } from './utility.js';
import './styles/day-range-picker.css';
const sto = window.setTimeout;
const defaults = {
// bind the picker to a form field
chec... |
/*
* Copyright 2011 eBay Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/* Proof Of Concept code, please don't judge me :( */
var pl = planck, Vec2 = pl.Vec2, Math = pl.Math;
pl.internal.Settings.velocityThreshold = 0;
const width = 10.0 * 1.7
const height = width;
const digit_scale = 1.75
const simplification_slack = 0.08
const ACTIVE_WALLS = true
const mouseForce = width * 30
/* const ... |
var xs_bind = {
jQuery : $,
__me: null,
__init: false,
// Default options
options: {
},
// Settings (visual construct of the widget)
settings: {
},
// Properties of all sorts (serializable)
properties: {
},
... |
import {
put,
takeEvery,
select,
call,
take,
takeLatest,
all,
} from 'redux-saga/effects';
import {
editMetadata,
pause,
play,
setCurrentTime,
} from '../actions/viewState';
import {
getNextBubbleStartTime,
getPreviousBubbleStartTime,
getRangeList,
getRangesAtPoint,
getRangesBetweenTimes... |
/* eslint no-undef: 0 */
// Required for opening dialogs and context menus
const remote = require("electron").remote;
const { dialog, Menu, MenuItem } = remote;
const window = remote.getCurrentWindow();
const fs = require("fs");
const fse = require("fs-extra");
const os = require("os");
const path = require("path");
c... |
import React, {
useState,
useReducer,
useEffect,
useRef,
useMemo,
useCallback,
useContext
} from 'react';
import {
attachHandlerProps,
batchedUpdates,
cloneChildren,
defineName,
floatEqual,
getScrollAncestor,
safeCall,
bem,
flatStyles,
isProd,
pars... |
// Configuration
const spotify_api_client_id = "1107a25b98c041bb90c9063553e5f1a8";
const spotify_api_scopes = ["user-library-read", "playlist-read-private", "playlist-read-collaborative", "user-top-read", "user-read-recently-played"];
/*
Helpers
*/
const escapeHTMLPolicy = trustedTypes.createPolicy('myEscapePolicy... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 <NAME>
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/g... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _... |
var current_exchange = null
var current_base_id = null
var current_quote_id = null
var current_end = null
var current_start = null
// Chart time periods
var periods = null
// Mapping of time period to data interval
var periodIntervalMap = null
// Mapping of time period to number of intervals in each period
// e.g.:... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as homePage from './components/HomePage'
import * as scorerModal from './components/ScorerModal'
import * as trainDialogsGrid from './components/TrainDialogsGrid'
import * as helpers from './Helpers'
let... |
/**
* Lib for CoinID Wallets
*/
import Big from 'big.js';
import { EventEmitter } from 'events';
import {
getAddressTypeInfo,
getTypeFromDerivation,
getAddInputFunctionFromDerivation,
} from 'coinid-address-types';
import feeHelper from '../../utils/feeHelper';
import noteHelper from '../../utils/noteHelper'... |
var container, stats;
var camera, controls, scene, renderer, composer;
var persistence = 'high', resolution = 'dk1';
var mesh, skymap;
var rtt_params;
var worldWidth = 100, worldDepth = 100,
worldHalfWidth = worldWidth / 2, worldHalfDepth = worldDepth / 2,
data = generateHeight( worldWidth, worldDepth );
var cloc... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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.proto... |
// Copyright (c) 2016 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, merge... |
/*
Shanka HSK Flashcards - algorithm.js
You are free to copy, distribute, and modify this code, under a similar license
to this one. You must give the original author (me) credit in any derived work.
You may not use any part of this code for commercial purposes without obtaining
my permissio... |
// ****************************************************************
// Copyright <NAME> & <NAME>, 1984, 2010–2020
// Licensed under the MIT license.
// ****************************************************************
// Fourier processing procedures to be used in the SSP package
// i.t. young
// Wednesday, 21 September... |
'use strict';
const os = require('os');
const Log = require('log');
const path = require('path');
const EventEmitter = require('events');
const URL = require('./url');
const Codec = require('../codec');
const Utils = require('../utils');
const Client = require('../httpclient');
const MessageAgent = require('./message... |
//removes style,labelres, and surface from a copy of the selection object and returns it
var augmentSelection = function(selection){
var copiedObject = jQuery.extend(true,{}, selection);//deep copy
if(copiedObject.style!=undefined){
delete copiedObject.style;
}if(copiedObject.labelres!=und... |
/* globals -- list all the symbols we use here so Glitch doesn't complain!
p5, frameRate, colorMode, HSB, noLoop, loop, redraw,
cos, sin, atan2, TAU, sqrt, min, max, shuffle, floor, ceil, round, log, abs,
createCanvas, resizeCanvas, windowWidth, windowHeight, textWidth,
clear, line, width, height, point, mouseX, mouse... |
/* FormField class acts similar to an abstract class
in Java, it has to be subclassed in order to invoke
the constructGrid function.
Each subclass requires the following fields to be
initialized:
- num_rows (int)
- num_cols (int)
- margin_top (int)
- margin_bottom (int)
- margin_left (int)
- margin_... |
var infiniteScrollLimit = '';
var eventObj;
var idsDisplayed = [];
var anonymousState = 0;
function _t (key, args) {
var value = i18n[key];
if (typeof (args) !== 'undefined') {
for (var i = 0; i < args.length; i++) {
value = value.replace('$' + (i + 1), args[i]);
}
}
return ... |
// Constants
const HOURS_PER_DAY = 24
const DAYS_PER_YEAR = 365
const HOURS_PER_YEAR = DAYS_PER_YEAR * HOURS_PER_DAY
const MILLION = 1e6
const KW_TO_MW = 1000
const KG_TO_MT = 1000
const LB_TO_KG = 0.453592
const LB_TO_METRIC_TON = LB_TO_KG / KG_TO_MT
const GJ_TO_MMBTU = 0.94709
const GJ_PER_TNG = 53.4
const MWH_TO_MWH... |
//var expressMongoRest = require('express-mongo-rest')
var expressMongoRest = require('./external_libs/express-mongo-rest');
console.log(expressMongoRest);
var express = require('express');
var passport = require('passport');
var cors = require('cors');
var assert = require('assert');
var fs = require('fs');
var url =... |
/**
* # 分布图
* # distribution
*/
import {Chart} from "./Chart";
import {beautifyDatetime, fun_scale, fun_time_level} from "../util/utils";
import {Correlation} from "./Correlation";
//let parseTime = d3.timeParse("%Y-%m-%dT%H:%M:%S");
let parseTime = d3.timeParse("%Y-%m-%d %H:%M:%S");
let formatTime = d3.timeFormat(... |
const router = require('express').Router();
const co = require('co');
const toMongodb = require('jsonpatch-to-mongodb');
const ObjectID = require('mongodb').ObjectID;
const coForEach = require('co-foreach');
const strContains = require('../../utils').strContains;
const getLastSundays = require('../../utils/last-sunday... |
const API_URL = 'https://api.tracker.gg/api'
const CORS_PROXY_URL = 'https://whats-my-kd-cors-proxy.herokuapp.com'
const FULL_STATS_URL_PREFIXES = {
modernWarfare: 'https://cod.tracker.gg/modern-warfare/profile',
coldWar: 'https://cod.tracker.gg/cold-war/profile',
vanguard: 'https://cod.tracker.gg/vanguard/profil... |
/*
Lightbox++ v1.0.1 (Initial Release)
Modification by <NAME> - http://www.codefidelity.com
Wednesday, July 4th, 2007 (Happy 4th!)
For installation instructions and script updates, please visit:
http://www.codefidelity.com/blog/?page_id=7
Original Lightbox Script by <NAME>
http://www.huddletogether.com/proje... |
var log = function (val, base) {
return Math.log(val) / Math.log(base);
};
var strToClass = function (str) {
var className = "";
str = str.toLowerCase();
var validChars = "abcdefghijklmnopqrstuvwxyz";
var newWord = false;
for (var i = 0; i < str.length; i++) {
... |
var arrMMAS4Score = [];
var arrMMAS8Score = [];
function Init_UC_Session1_Controls(response) {
debugger;
window.scrollTo(0, 0);
$('input[type="checkbox"]').on('switchChange.bootstrapSwitch', function (event, state) {
DisableAdherenceBarriersDiv(this);
});
$("#chkCaseManager").bootstrapSw... |
"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... |
/**
* Created by Steven on 2018-03-13 <EMAIL>
* Tools that converts database data into json format
*/
const pwt = require('../../tools/protocolWritingToolsJson');
// jsonObject describing data fields relations.
// Should add as a config file or something
let jsonMaps = {
location: ['name', 'areaNumber', 'descr... |
"use strict";
var infoModal = document.getElementById("infoModal");
var helpButton = document.getElementById("help");
var shareButton = document.getElementById("share");
var spanHelp = document.getElementsByClassName("close-help")[0];
var keyboardDiv = document.getElementById("keyboard");
var answerDiv = document.getEl... |
import React from 'react'
import createReactClass from 'create-react-class'
import axios from 'axios'
import { fromJS } from 'immutable';
import { connect } from 'react-redux'
import ReactDOM, { findDOMNode } from 'react-dom'
import punycode from 'punycode'
import onClickOutside from ... |
var config = function () {
return{
dataTableObj:false,
standardQueues : JSON.parse('[{"id":"99999","text":"All Clients - Affiliated Physicians"}]') ,
init:function(client_id,report_id,encoded_filter){
},
// Validate Report configuraiton filter
loadPage:function(){
$(".industry-list").select2('va... |
"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... |
//------------------------------------------------------------------------
// Copyright 2009 Applied Research in Patacriticism and the University of Virginia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
var $ = require('jquery');
var jQuery = $;
var exports = {};
var models = require('@bungalow/models');
var views = require('@bungalow/views');
var BUNGALOW_THEME = 'bungalow';
var settings = bungalow_load_settings();
BUNGALOW_THEME = settings.theme;
var Music = function () {
};
Music.prototype.play = function (... |
function WMCC_Events () {
const self = this;
this.timers = [];
this.tableIds = [];
this.tableListeners = [];
this.sharesTime = [];
/**
* SERVER SIDE EVENTS
*/
this.s_pool_stats = function(data) {
self.setDataEvent(data, 'pool_stats');
}
this.s_network_stats = function(data) {
self.set... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Tooltip = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
var _getIterator3 = _interopReq... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.