text stringlengths 8.5k 48.7k |
|---|
export function isLeaf(d) { return !d.children || d.children.length === 0; }
const DEFAULT_COLOR_LEAF_NODE = "#6666af";
const DEFAULT_COLOR_DIRECTORY = "#999999";
const COLOR_NODE_HOVERED = 'steelblue';
const COLOR_NODE_descendant = '#dfd89d';
const COLOR_NODE_ancestor = '#efe8ad';
const COLOR_NODE_target = '#d62728'... |
//This logs to the BACKGROUND PAGE view, seperate debugger from the F12 console per page
//May want to convert this to use chrome.alarms
var userId;
var blnPollJira = false;
var blnAdmin = false;
var blnHaveTimecard = false;
var blnTestOverride = false;
var config;
var workgroup;
var user;
var JIRA;
var blnRemoteConfi... |
/*********************************************************************
** App.js **
** Creador: <NAME> <<EMAIL>> **
** Fecha: 14/07/15 **
** Finalidad: Colleccion de funciones utiles, **
** ... |
/**
* @author <NAME>
* Copyright 2017 <NAME>
*/
/**
* Class for the main page view
* @constructor
*/
function MainView(){
const self = this;
this.element = $("#mainview");
this.tabs = [];
/**
* Called when search is submitted
* @return {boolean} false to disable further input form proc... |
var YtStreamType ={
OrdinaryVideo: 0,
Video3D: 1,
AppleLiveStreaming: 2,
DashMP4Video: 3,
DashMP4Audio: 4,
DashWebmVideo: 5,
DashWebmAudio: 6,
};
let ytParser = (function(){
const itagsInfo = {
"5":{"format":"flv","withVideo":true,"withAudio":true, StreamType: YtStreamType.Ord... |
import React, { PureComponent } from 'react';
import { Card, Icon, Tabs, Table, Divider, Select, Input, Button, Spin, Tooltip } from 'antd';
import { formatMessage } from 'umi/locale';
import { connect } from 'dva';
import cs from 'classnames';
import {
studentExerciseStatusLib, // 学生练习任务状态字典库
studentExamsStatusLib... |
var m_flag = 0;
var userData;
var current_test_state;
var question_array = [];
var totalMark = 0;
var answers = [];
var flag = 1;
var test_duration = 0;
var test_index = 0;
var check_flag = 0;
var test = "";
var onProgress = 0;
var marks = "";
var taken_time = "";
var applied_tests = "";
$(document).ready(function(){
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormIntentHandler = void 0;
const ask_sdk_core_1 = require("ask-sdk-core");
const apl_templates_1 = require("./apl-templates");
/*
* This handler is responsible for all the features with respect to the form. This has the logic for the ... |
function updateScrJrefs() {
scrJrefDetail = retrieveSi(srcdoc, "StatShrBrlyLocRec", "scrJrefDetail");
scrJrefMap = retrieveSi(srcdoc, "StatShrBrlyLocRec", "scrJrefMap");
scrJrefBgn1NLeg = retrieveSi(srcdoc, "StatShrBrlyLocRec", "scrJrefBgn1NLeg");
scrJrefEnd1NLeg = retrieveSi(srcdoc, "StatShrBrlyLocRec", "scrJrefEn... |
import {clamp, arrayRemove, lerp, SQRT3, TAU, promiseSleep} from "./one/lib/extra.js";
import * as one from "./one/one.js";
import {act, ease, mouse, vec, camera} from "./one/one.js";
one.description("trap", `
destroy blocks
don't let the eye escape
`);
const L = {
bg: "#68C2D3",
fg: "#402F2E",
ground: "#7E635... |
var graph;
var layoutManager;
mxGraph.prototype.defaultPageVisible = true;
mxGraph.prototype.initialTopSpacing = 0;
mxGraph.prototype.connectionArrowsEnabled = true;
mxGraph.prototype.lightbox = false;
mxGraph.prototype.pageFormat = new mxRectangle(0, 0, 1442, 2040);
mxGraph.prototype.gridSize = 15;
mxGraph.prototype.... |
// Copyright 2014-2015 <NAME> and collaborators.
// Licensed under the MIT license. See LICENSE.md for details.
// Fonts and related things.
var FontMetrics = (function FontMetrics_closure () {
// This base class doubles as a sort of "null" font
// metrics for the null font, returning 0 for everything.
f... |
var NY_district_shapes_URL = 'https://data.cityofnewyork.us/resource/jp9i-3b7y.json';
var NY_district_names_URL = 'https://data.cityofnewyork.us/api/views/xyye-rtrs/rows.json?accessType=DOWNLOAD';
var NY_crimes_URL = 'https://data.cityofnewyork.us/api/views/wuv9-uv8d/rows.json?accessType=DOWNLOAD';
var NY_building_URL ... |
// function() {
const CANVAS_W = 800;
const CANVAS_H = 450;
const UI_WIDTH = 96;
const LEVEL_W = CANVAS_W - UI_WIDTH;
const MAX_SCORE = 99999;
const TAU = 2 * Math.PI;
const UPDATE_RATE = 15;
const RESPAWN_DELAY = 1200 / UPDATE_RATE;
const RECOVER_DELAY = 1800 / UPDATE_RATE;
const MAX_SPEED = 6;
// Render points rel... |
var Clay = require('pebble-clay');
var clayConfig = require('./config');
var clay = new Clay(clayConfig);
var xhrRequest = function (url, type, callback) {
var xhr = new XMLHttpRequest();
xhr.onload = function () {
callback(this.responseText);
};
xhr.open(type, url);
xhr.send();
};
// Request for WU
func... |
/* global window: false */
/* global document: false */
'use strict';
var color = require('chartjs-color');
var defaults = require('./core.defaults');
var helpers = require('../helpers/index');
module.exports = function(Chart) {
// -- Basic js utility methods
helpers.configMerge = function(/* objects ... */) {
... |
/**************************
* The Legend mod Project
* Testing new commands
* for LME
*************************/
/* Script originaly been made by https://twitter.com/tannichi1
Maintained by Jimboy3100
Inject this script on F12 -> Console . Test the ogar. , my. and other commands
Feel free to mod this... |
"use strict";
if (typeof document === 'undefined') {
var document = {};
}
if (typeof require === 'function' && typeof load !== 'function') {
var fs = require("fs");
var http = require("http");
var https = require("https");
// var runAndSend = require("./runAndSend");
var xmldom = require('@xmldom/xmldom')... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.angularMajorCompatGuarantee = void 0;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/licens... |
MAP_PTR = 0xB800 - 5; // Checksum
MAP_NAMES = {
0x0000: "MYSTERY ZONE",
0x0001: "TestMap2",
0x0110: "CENTRAL SQUARE",
0x0210: "NORTHERN PASSAGE",
0x0327: "GLITCHED HOUSE",
0x0364: "GLITCHED HOUSE",
0x043A: "TOO MUCH WATER",
0x0523: "NORTHERN PASSAGE",
0x0565: "GLITCHLAND L... |
var conceptViewerStrings = {
fr: {
viewerTitle: "Aide",
selectLanguage: "Sélectionnez un langage…",
selectTopic: "Sélectionnez une rubrique…",
reloadFromTask: "Merci d'ouvrir cette documentation directement depuis l'exercice. Vous pouvez fermer cette fenêtre.",
concepts: {
"taskplatform": 'R... |
// Phil
// ------------------------------------------------------------------------
// Copyright 2017 <NAME>
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// (https://www.apache.org/licenses/LICENSE-2.0)
// Unless required by app... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
const momentTZ = require("moment-timezone");
require("moment-duration-format");
// const {inspect} = require("util");
const Command = require("../base/Command");
class Event extends Command {
constructor(client) {
super(client, {
guildOnly: true,
name: "event",
category... |
// Sugar Libraries (initialized by require)
var app = null;
var toolbar = null;
var mouse = {position: {x: -1, y: -1}};
var iconLib;
var xoPalette;
var radioButtonsGroup;
var datastore;
var presence;
var l10n;
var preferences;
var util;
var myserver;
var humane;
var tutorial;
var stats;
var autosync;
// Main app cl... |
/**
* Copyright 2012-2016, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var isNumeric = require('fast-isnumeric');
var Plotly = require('../../plotly');
var Lib = require('../../lib'... |
/*
[UCenter Home] (C) 2007-2008 Comsenz Inc.
$Id: script_common.js 13191 2009-08-18 03:14:55Z xupeng $
*/
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('fi... |
$(document).ready(function () {
/* прячем первый блок */
/*$(window).scroll(function() {
if ($(this).scrollTop() > 5) {
$('.main_block').addClass('hidden');
$('body').addClass('scroll');
}
else {
$('.main_block').removeClass('hidden');
$('body').removeClass('scroll');
}
});*/
$('.down').click(f... |
/**
* @Author: <NAME> <dpt>
* @Date: 22-07-2017
* @Email: <EMAIL>
* @Project: Hangboard
* @Last modified by: dpt
* @Last modified time: 08-08-2017
* @License: MIT
* @Copyright: (c) 2017 Aquilon Consulting, Inc.
*/
/*eslint-disable no-unused-vars*/
import {fromJS, Map} from 'immutable';
import {loop, Eff... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
import {read_member_set, read_mapped_table, lookup_mapped, read_tree, read_zero_terminated_array} from './decoder.js';
import {explode_cp, escape_unicode} from './utils.js';
import r from './output/release-1.js';
const FE0F = 0xFE0F;
const ZWJ = 0x200D;
const STOP = 0x2E;
const KEYCAP_END = 0x20E3;
const VAL... |
'use strict';
// cd $GOPATH/src/eaciit/gdrj && cat config/configurations.json
// let plcodes = [
// { plcodes: ["PL1", "PL2", "PL3", "PL4", "PL5", "PL6"], title: 'Gross Sales' },
// // growth
// { plcodes: ["PL7", "PL8"], title: 'Sales Discount' },
// // ATL
// // BTL
// { plcode: "PL74B", title: "COGS" },
// ... |
"use strict";
/*
MIT License
Copyright (c) 2020 <NAME> (https://rogez.games)
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, c... |
import * as events from 'events';
import browser from 'bowser';
var RTCPeerConnection;
var RTCSessionDescription;
var configuration;
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in... |
"use strict";
/* eslint-disable require-atomic-updates */
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.ca... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _popper = _interopRequireDefault(require("popper.js"));
var _lodash = _interopRequireDe... |
/*!
* Chinachu Task Scheduler (chinachu-scheduler)
*
* Copyright (c) 2016 <NAME> and Chinachu Project Contributors
* https://chinachu.moe/
**/
'use strict';
const PID_FILE = __dirname + '/data/scheduler.pid';
const CONFIG_FILE = __dirname + '/config.json';
const RULES_FILE = __dirname + '/rules.json... |
const {
Client,
Intents,
Collection,
MessageEmbed,
MessageActionRow,
Options,
Permissions,
MessageButton
} = require('discord.js'),
client = new Client(
{
// Temporarily disabled due to breaking /watch functionality
// makeCache: Options.cacheWithLimits({
// MessageManager: 20... |
import "../styles/picker.scss";
class XMPicker {
#active_css = "picker-active";
// 控制picker是否显示的css
#picker_list_repair_css = 'repair';
// picker滚动列表修正偏移位置时使用的css
#cancel_btn_css = ".picker-btn[data-type=cancel]";
#confirm_btn_css = ".picker-btn[data-type=confirm]";
#picker_body_css = ".... |
const { ref, raw } = require('objection');
const jsonPath = require.lazy('@kapouer/path');
exports = module.exports = function (opt) {
return {
name: 'page',
service: init
};
};
function init(All) {
All.app.get('/.api/page', (req, res, next) => {
const site = req.site;
const isWebmaster = !All.auth.locked(... |
import * as THREE from '../../lib/three/build/three.module.js';
import {Object3D} from "../../lib/three/build/three.module.js";
import { OrbitControls } from '../../lib/three/examples/jsm/controls/OrbitControls.js';
//Some globals
let renderer;
let scene;
let camera;
let lastTime = 0.0;
let controls;
let SIZE = 200;
... |
function createWebSocket(path) {
var host = window.location.hostname;
var port = window.location.port;
if(host == '') host = 'localhost';
var uri = 'ws://' + host + ":" + port + path;
var Socket = WebSocket // "MozWebSocket" in window ? MozWebSocket : WebSocket;
return new Socket(uri);... |
import { Buf } from "./buf"
import { EventEmitter } from "./EventEmitter"
import { keepalive } from "./keepalive"
import { console, document } from "./env"
import * as protocol from "./protocol"
import * as utf8 from "./utf8"
var gotalk = exports;
export default exports;
var txt = protocol.text
var bin = protocol.bin... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("./utils");
var TokenType;
(function (TokenType) {
TokenType["Literal"] = "Literal";
TokenType["ArrayOrObject"] = "ArrayOrObject";
TokenType["Array"] = "Array";
TokenType["Object"] = "Object";
... |
const dpr = window.devicePixelRatio || 1;
const tableMargin = 40;
const tablePadding = 40;
let tableSize = null;
const playerColor = "#00000033";
const heroColor = "#ffffff33";
let playerRadius = null;
let debugMode = false;
let debugCard = -1;
const cardRatio = 12 / 8;
const cardWidth = 30 * dpr;
cons... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/**
* Created by Lorilla on 30/09/2017.
*/
export var map = null
export var markerClusters = null
export var markers = []
export var userMarker = null
export function onLocationFound(e) {
var radius = e.accuracy / 2;
var userIcon = L.icon({
iconUrl: 'https://cdn0.iconfinder.com/data/icons/small-n-fl... |
import { memo, createElement, forwardRef, createRef, useEffect, PureComponent } from 'react';
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("va... |
var fs = require('fs');
var qs = require('querystring');
var express = require('express');
var app = express();
var myIp = require('ip').address();
var sessionOb = require('node-session');
var session = new sessionOb({secret: "<KEY>"});
var dbutils = new require('./mods/mysqlutils.js').Util(fs);
var vali = require(... |
/**
* physics.js
*
* @fileoverview Manages all physics related features, including forces,
* displacements, and collision detection.
* @author <NAME> <<EMAIL>>
*/
/** Velocity of airplane */
var velocity = vec3.create();
var AIRPLANE_HEIGHT = 0.0000;
/** Current thrust */
var thrust = 0;
/** Whether reverse ... |
import Cycle from '@motorcycle/core';
import {h, p, span, h1, h2, h3, br, div, label, input, hr, makeDOMDriver} from '@motorcycle/dom';
import {just, create, merge, combine, fromEvent, periodic, observe, delay, filter, of} from 'most';
import code from './code.js';
import {subject} from 'most-subject'
var tempStyle = ... |
import API_KEY from "./apikey.js";
const searchTitlesContainer = document.querySelector(".search-titles-container");
const searchBar = document.querySelector(".search-titles");
const starterResult = document.querySelector(".starter-result");
const starterNoResult = document.querySelector(".starter-no-result");
con... |
/*
global messageBox getStyleWithNoCode
filterAndAppend showFiltersStats
checkUpdate handleUpdateInstalled
objectDiff
configDialog
sorter msg prefs API onDOMready $ $$ $create template setupLivePrefs
URLS enforceInputRange t tWordBreak formatDate
getOwnTab getActiveTab openURL animateElement sessionStorag... |
/**
* Created by minghuizhang on 2018/1/29.
*/
$(function(){
$(document).on('focus','.selectVal',function (e) {
$(this).siblings('.selectList').show().siblings('.xl-icon').addClass('sq-icon');
})
$(document).on('blur','.selectVal',function (e) {
$(this).siblings('.selectList').hide().siblings('.xl-icon'... |
var fs = require('fs');
var data = {
// Colors
//
// Grayscale and brand colors for use across Bootstrap.
'gray-dark': '#373a3c',
'gray': '#55595c',
'gray-light': '#818a91',
'gray-lighter': '#eceeef',
'gray-lightest': '#f7f7f9',
'b... |
var positiveDecimalRegex = /^\d*[.]?\d{0,2}$/;
var unitPriceRegex = /^\d*[.]?\d{0,4}$/;
var positiveIntegerRegex = /^\d*$/;
var IVA = 16;
$(document).ready(function () {
// Calendario para seleccionar la fecha de emisión
var picker = new Pikaday({
field: $('#datepicker')[0],
firstDay: 1,
position: 'bottom cente... |
$(document).ready(function() {
/* Global Vars*/
debug_status = false;
$("#div_mesa").hide();
/* ------------------------------------------------------------------
| Função para o Spinner de quantidade
------------------------------------------------------------------*/
spin = $("#qtd_spinner").spinner({
min:1,
... |
/*jshint curly:true, debug:true, eqeqeq:true, undef:true, unused:strict, strict:true */
/*global PIXI:true TWEEN:true*/
'use strict';
var game = {
width: 800,
height: 800,
tilesX: 8,
tilesY: 8,
tileW: this.width / this.tileX,
tileH:... |
var __defineProperty = Object.defineProperty;
var __assign = Object.assign;
var __markAsModule = (target) => {
return __defineProperty(target, "__esModule", {value: true});
};
var __export = (target, all) => {
__markAsModule(target);
for (var name in all)
__defineProperty(target, name, {get: all[name], enumer... |
// The following gradients are shared by various DrawItem shapes and are
// applied to the empty DrawPane as well as the palette tile DrawPanes
var commonGradients = [
{ id: "oval", direction: 90, startColor: "#ffffff", endColor: "#99ccff" },
{ id: "diamond", direction: 90, startColor: "#d3d3d3", endColor: "#6... |
/**
* Main function. Specifies transformations that are needed for creating a JSON out of XML.
* @constructor
* @param {string} divClass - id of element that will contain a tree.
* @param {string} file - Path to XML/JSON file.
* @param {array} impNodes - Important nodes that should be shown on the second leve... |
var SESSION_STATUS = Flashphoner.constants.SESSION_STATUS;
var CALL_STATUS = Flashphoner.constants.CALL_STATUS;
var Phone = function () {
this.flashphonerListener = null;
this.currentCall = null;
this.session = null;
this.holdedCall = null;
this.incomingCall = false;
this.localVideo = document.... |
// # Group factory
// Scrawl-canvas uses Group objects to gather together artefact objects (Block, Canvas, Element, Grid, Loom, Phrase, Picture, Shape, Stack, Wheel) for common functions.
//
// Groups connect artefacts with controller objects - Stack, Cell - through which the Display cycle can cascade. Each controller ... |
google.charts.load('current', {'packages': ['corechart', 'gauge', 'bar']});
var skipLT = ["ST_02_001", "ER_01_001", "ER_01_002", "ER_01_003", "ER_01_004"];
var gaugeOptions = {
redFrom: 0,
redTo: 40,
yellowFrom: 40,
yellowTo: 80,
greenFrom: 80,
greenTo: 100,
minorTicks: 5,
width: 130,
... |
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* 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 cop... |
const util = require("util");
const os = require("os");
const uuid = require("uuid/v4");
const jwt = require("jsonwebtoken");
const stringifySafe = require('json-stringify-safe');
const ENV_DYN_LOG_HEADER = "DYN_LOG_HEADER";
const ENV_DYN_LOG_KEY = "DYN_LOG_LEVEL_KEY";
const DEFAULT_DYN_LOG_LEVEL_HEADER = "SAP-LOG-LEV... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/**
* Russound RNET Plugin
*
* Author: <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
const bip32 = require('bip32');
const bitcoin = require('bitcoinjs-lib');
const crypto = require('crypto');
const expect = require('chai').expect;
const ethutil = require('ethereumjs-util');
const Sdk = require('../../index.js');
const constants = require('../../src/constants');
const SIGHASH_ALL = 0x01;
const HARDENED... |
import {takeEvery} from 'redux-saga';
import {call, put, select} from 'redux-saga/effects';
import {fromJS, Set, Map} from 'immutable'
import {getAccount, getContent} from 'app/redux/SagaShared'
import {findSigningKey} from 'app/redux/AuthSaga'
import g from 'app/redux/GlobalReducer'
import user from 'app/redux/User'
i... |
/**
* sent events:
* - three_list
*
* used events:
* - resize
* - three_param
* - keypress
* - mesh_mouse_down
* - mesh_touch_start
* - mesh_mouse_up
*
*/
import * as THREE from "./../jsm/three/three.module.js";
import { OrbitControls } from "./../jsm/three/OrbitControls.js";
import { GLTFLoader } ... |
var ddatabase = require('ddatabase')
var mutexify = require('mutexify')
var raf = require('random-access-file')
var thunky = require('thunky')
var tree = require('append-tree')
var collect = require('stream-collector')
var sodium = require('sodium-universal')
var inherits = require('inherits')
var events = require('eve... |
var iconObject = L.icon({
iconUrl: './img/marker-icon.png',
shadowSize: [50, 64],
shadowAnchor: [4, 62],
iconAnchor: [12, 40]
});
$(document).ready(function (e) {
jQuery.support.cors = true;
$(".tab-content").css("display", "none");
$(".tabs-menu a").click(function (event) {
// eve... |
/**
* Copyright (c) 2017-present, Parsec Labs (parseclabs.org)
*
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
import EVMRevert from './helpers/EVMRevert';
import { Period, Block, Tx, Input, Output, Outpoint }... |
const codecs = require('codecs')
const { Readable } = require('streamx')
const RangeIterator = require('./iterators/range')
const HistoryIterator = require('./iterators/history')
const DiffIterator = require('./iterators/diff')
const Extension = require('./lib/extension')
const mutexify = require('mutexify/promise')
co... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel... |
export { monitor }
import './lib/third-party/d3.v5.js'
let p = thing => JSON.stringify ( thing, null, 4 )
// D3 visualisation experiment:
function monitor ( graphServer ) {
const
verbosity = 0, // larger is noisier
nodeData = [],
linkData = [],
width = window.in... |
const fs = require('fs');
const os = require('os');
const path = require('path');
const util = require('util');
const rbql = require('./rbql.js');
const csv_utils = require('./csv_utils.js');
const utf_decoding_error = 'Unable to decode input table as UTF-8. Use binary (latin-1) encoding instead';
var debug_mode =... |
/**
* marked-it
*
* Copyright (c) 2021 IBM Corporation
*
* 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, modi... |
/* global _WORKLET */
/**
* Copied from:
* react-native/Libraries/StyleSheet/normalizeColor.js
* react-native/Libraries/StyleSheet/processColor.js
* https://github.com/wcandillon/react-native-redash/blob/master/src/Colors.ts
*/
/* eslint no-bitwise: 0 */
import { Platform } from 'react-native';
import { makeRemo... |
/* Copyright (c) Business Objects 2006. All rights reserved. */
var L_bobj_crv_MainReport = "Informe principal";
// Viewer Toolbar tooltips
var L_bobj_crv_FirstPage = "Ir a primera p\u00E1gina";
var L_bobj_crv_PrevPage = "Ir a p\u00E1gina anterior";
var L_bobj_crv_NextPage = "Ir a p\u00E1gina siguiente";
var L_bobj_cr... |
/* innovative_viz.js */
import { drawHeatMap } from './heatMap.js';
import { drawLineChart } from './lineChart.js'
var scatterPlotMargin = { top: 10, right: 40, bottom: 40, left: 60 }
var scatterPlotWidth = 1000 - scatterPlotMargin.left - scatterPlotMargin.right;
var scatterPlotHeight = 500 - scatterPlotMargin.top - ... |
/**
* App Home.
*
* The crucial bits are:
*
this.state = {
data, <= main data holding param
layers: [], <= mapgl layers object
initialViewState:<= deckgl/mapgl initial state object
legend: false <= map legend to avoid rerender.
}
* and
* DeckSidebarContainer w... |
'use strict';
var interpolate = require('sprintf-js');
var $ = require('jquery');
var moment = window.moment = require('moment');
var stringify = require('json-stringify-safe');
window.fullcalendar = require('fullcalendar');
require('moment-timezone/builds/moment-timezone-with-data-20... |
const N_DIMS = 90;
// The sorted 256 dimensions, from most to least important.
// I got this by sorting the average sigmas for each dimension, after encoding
// a large dataset into MusicVAE. Note that these dimensions only work for these
// models. A different MusicVAE model will have a different ordering.
const MELO... |
var stats;
var container;
var camera, scene, renderer;
var mouseX = 0, mouseY = 0;
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;
var odark = 0x193431;
var dark = '#193431';
//var odark = 0x213D73;
//var dark = '#213D73';
//var odark = 0x2F8A9B;
//var dark = '#2F8A9B';
//var odar... |
// BASEURL and AJAXerrorHandler function defined in inc/js/general/generate.js
// On document load
$(function() {
// If user entering text in general text field, disable URL, and vice versa
$("#generaltext").change(function (){
$("#url").prop('disabled', true);
if ($("#generaltext").val() == "") {... |
// Roughly based on:
// https://bl.ocks.org/kirjavascript/dcafa2b3a53cbcc9c5de19b938b92119
// https://observablehq.com/@zakjan/force-directed-graph-pixi
import Stats from "https://unpkg.com/stats.js@0.17.0/src/Stats.js";
import { GUI } from "https://unpkg.com/dat.gui@0.7.7/build/dat.gui.module.js";
import SmoothFoll... |
var express = require('express');
var router = express.Router();
var moment = require('moment');
var axios = require('axios');
var os = require('os');
var DATE_FORMAT = ("MMMM Do HH:mm");
// Helper functions
function calculateSessionParameters(session) {
// console.log('--processSession(): ');
// console.log(sessio... |
'use strict'
import React, { PureComponent } from 'react'
import {
ActivityIndicator,
Clipboard,
DeviceEventEmitter,
KeyboardAvoidingView,
Linking,
PanResponder,
PermissionsAndroid,
Platform,
StyleSheet,
ScrollView,
Text,
View,
RefreshControl,
Dimensions
} from 'react-native'
import { Andro... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
var _getIterator3 = _interopRequireDefault(_getIterator2);
... |
// Remix.js
// <NAME> & <NAME>, 12/2012
// Based on <NAME>'s Infinite Jukebox and assorted other javascript projects
function createJRemixer(context, jquery, apiKey) {
var $ = jquery;
$.ajaxSetup({ cache: false });
var remixer = {
// If you have an EN TRack ID and the location of the audio.
... |
/* eslint-disable */
import { fabric } from 'fabric-pure-browser';
const W = window;
export const DrawMode = {
SELECT: 'select', // 选择
LINE: 'line', // 画直线
PEN: 'pen', // 画笔,自由绘图
RECT: 'rect', // 画矩形
CIRCLE: 'circle', // 画圆形
TEXT: 'text', // 绘制文字
CUSTOM: 'custom' // ... |
var http = require('http');
var express = require('express');
var mysql = require('mysql');
var bodyParser = require('body-parser')
var validator = require('validator')
var promise = require('promise')
var session = require('express-session')
var fs = require('fs')
var nodemailer = require('nodemailer');
v... |
/*
Copyright (c) 2013-2016, <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 the above copyright notice, this
list of conditions and the following di... |
/*
Debug.js - Debug logging (via special window (AWJSDebugWindow.js))
Also includes debug time form validation
*/
var _AWXMainWindow = null;
var _AWXRefreshMainActionId = null;
ariba.Util.extend(ariba.Debug, function() {
// imports
var Event = ariba.Event;
var Request = ariba.Request;
var D... |
import React from "react";
import Loading from './Loading';
import Countdown from "react-countdown";
import {Button, CardText, CardTitle, Form, FormText, Input, Label,InputGroup, InputGroupAddon} from 'reactstrap'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import 'react-tabs/style/react-tabs.css';
impo... |
import React, {useState, useEffect} from 'react';
import {Link, useLocation} from 'react-router-dom';
import axios from 'axios';
import {useSelector, useDispatch} from 'react-redux';
import {listProducts, randomProductsList, updateFilter} from '../actions/productActions';
import Rating from '../components/Rating';
impo... |
jQuery(document).ready(function($){
$(".dent_send").click(function(){
var currentUser = Parse.User.current();
var category = $('input:radio:checked[name="emotion"]').val();
var color = $('input:radio:checked[name="emotion"]').attr('data-color');
//var category = $('#category').val();
var content = $(... |
console.log(d3.version); // 4.7.4
const svgHeight = 2000;
const svgWidth = 3000;
const margin = {
top: 100,
right: 100,
bottom: 100,
left: 100
};
const width = svgWidth - margin.left - margin.right;
const height = svgHeight - margin.top - margin.bottom;
const padding = 50;
const defaultSickRowHeight = 10;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.