text stringlengths 8.5k 48.7k |
|---|
/* global d3 */
import enterView from "enter-view";
import loadData from "./load-data";
import Constants from "./constants";
import {
currentStorySelector,
nodesSelector,
linksSelector,
currentStoryStepYearLookupSelector,
legendDataSelector
} from "./selectors";
import immutableAddRemove from "./utils/immutab... |
import $ from 'jquery';
import QB from 'quickblox';
import QBNotification from 'web-notifications';
import QMCONFIG from 'config';
import Entities from '../entities';
import Helpers from '../helpers';
import QMHtml from '../qmhtml';
/*
* Q-municate chat application
*
* VideoChat View Module
*
*/
let self;
let Use... |
/* global Split, jsonTree, escapeHtml, alert, CodeMirror */
const Store = require('electron-store');
const axios = require('axios')
const Clusterize = require('clusterize.js')
const filteringLogic = require('./js/filteringLogic.js')
// const escapeHtml = require('escape-html'); Already defined in my customised vers... |
const electron = require('electron');
const path = require('path');
const { app, Menu, MenuItem, Tray, ipcMain, BrowserWindow, dialog, clipboard, nativeImage, shell } = require('electron');
const ElctronConfig = require('electron-store');
let mainWindow;
let updateWindow;
let notificationWindow;
let updateDetialWindo... |
/*---------------------------------------------------;
█░░█ █▀▀█ █░░█ ▀▀█▀▀ █░░█ █▀▀▄ █▀▀
█▄▄█ █░░█ █░░█ ░░█░░ █░░█ █▀▀▄ █▀▀
▄▄▄█ ▀▀▀▀ ░▀▀▀ ░░▀░░ ░▀▀▀ ▀▀▀░ ▀▀▀
█▀▄▀█ ░▀░ █░█ █▀▀ █▀▀█
█░▀░█ ▀█▀ ▄▀▄ █▀▀ █▄▄▀
▀░░░▀ ▀▀▀ ▀░▀ ▀▀▀ ▀░▀▀
-----------------------------------------------------;
- Version 0.11
-------------------... |
import AddProgram from "../src/glop/pairwise/AddProgram";
import Learn4js, {Logger, println, Tensor} from '../src/index';
import WebGL from "../src/webgl/WebGLContext";
import WebGLTensor from "../src/webgl/WebGLTensor";
function testWebgl() {
let a = 2.0;
let x = new Float32Array([1, -2, 3, -4, 5, -6, 7, -8, 9, ... |
// convert the result from Wikidata to objects
import * as d3 from 'd3'
import { getColorScaleFromValues, getColors, colorSchemes } from './scales'
import { getCommonsFileName } from './commons'
import moment from 'moment'
import toposort from 'toposort'
const numbers = [
'double',
'float',
'decimal',
'integer... |
import { createMuiTheme, MuiThemeProvider } from "@material-ui/core/styles";
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core... |
const API_HOST = 'http://ws.audioscrobbler.com'
const API_KEY = 'get-a-last-dot-fm-api-key'
const ENDPOINT_PREFIX = API_HOST + '/2.0/?method='
const ENDPOINT_SUFFIX = '&api_key=' + API_KEY + '&format=json'
var ANIMATE_DURATION = 500;
var RADIUS_ARTIST = 24;
var RADIUS_ALBUM = 16;
var RADIUS_SONG = 4;
var LINK_DISTAN... |
'use strict';
/* ------------------------------------------------------------------------ */
const [processPath, , exchangeId = null, exchangeSymbol = null] = process.argv.filter (x => !x.startsWith ('--'))
const verbose = process.argv.includes ('--verbose') || false
const debug = process.argv.includes ('--debug') |... |
/*
* Copyright 2016 Google Inc. 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 by applicable... |
//
// 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 requi... |
const DEBUG = false;
// var MODE = "color-vision"
// var MODE = "train"
var MODE = "test"
// var MODE = "experiment"
var ANIM_ANSWERS = "sliders"
// var ANIM_ANSWERS = "buttons"
const SCENE = {w: 800, h: 500};
PROPS = {'blocks': {'w':40, 'h': 80},
'walls': {'w': 200, 'h': 20},
'balls': {'radius': 20... |
'use strict';
const op = {};
module.exports.op = op;
const reprs = require('./reprs.js');
const sixmodel = require('./sixmodel.js');
const SerializationContext = require('./serialization-context');
const Hash = require('./hash.js');
const CodeRef = require('./code-ref.js');
const constants = require('./constants.js');... |
/* eslint-disable indent,max-len */
const createPlugin = require('./lm.plugin.js');
require('../node_modules/semantic-ui-transition/transition.min');
require('../node_modules/semantic-ui-dropdown/dropdown.min');
require('./lib/semantic-ui-range/range');
function capitalize(s) {
return s && s[0].toUpperCase() + ... |
import Utils from '../misc/Utils';
var Reversion = {};
var detectExtraordinaryVertices = function (mesh) {
var nbVertices = mesh.getNbVertices();
var fAr = mesh.getFaces();
var onEdge = mesh.getVerticesOnEdge();
var vrvStartCount = mesh.getVerticesRingVertStartCount();
var vrf = mesh.getVerticesRingFace();
... |
'use strict';
const http = require('http'),
https = require('https'),
net = require('net'),
url = require('url'),
zlib = require('zlib'),
color = require('colorful'),
Buffer = require('buffer').Buffer,
util = require('./util'),
Stream = require('stream'),
logUtil = require('./log'),
co = require('c... |
import {Selection, NodeSelection, TextSelection} from "prosemirror-state"
import {dropPoint} from "prosemirror-transform"
import {Slice} from "prosemirror-model"
import browser from "./browser"
import {captureKeyDown} from "./capturekeys"
import {readDOMChange} from "./domchange"
import {parseFromClipboard, serializeF... |
var floor = Math.floor;
var rain;
var QUALITY = 4;
var canvas, ctx, width, height, size, buffer0, buffer1, aux, i, texture;
var fishQueue = [];
var fishesInformation = [];
var fishCanvas;
var fishMoveCtx;
var fishMoveCanvas;
var fishImages = [];
var flowerCanvas;
var flowerImage;
var flowerCtx;
var flowerZones = [];
va... |
/* Pulled out of https://github.com/dchest/tweetnacl-js/blob/8626b70/nacl-fast.js */
var crypto_hash_BYTES = 64;
var K = [
0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,... |
#!/usr/bin/env node
// Copyright 2011 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
//
// Optimizer tool. This is meant to be run ... |
'use strict'
var isAllBlank = require('is-string-blank')
var createBuffer = require('gl-buffer')
var createVAO = require('gl-vao')
var pool = require('typedarray-pool')
var mat4mult = require('gl-mat4/multiply')
var shaders = require('./lib/shaders')
var getGlyph = requir... |
//
// TransactionBuilder
// A utility for building and signing transactions
//
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//
var Q = require('q');
var bitcoin = require('./bitcoin');
var common = require('./common');
var Util = require('./util');
var _ = require('lodash');
//
// TransactionBuilder
// @param... |
const IPFS = require('ipfs')
const multiaddr = require('multiaddr')
const { createLink, validateLink } = require('3id-blockchain-utils')
const ThreeId = require('./3id')
const Replicator = require('./replicator')
const PublicStore = require('./publicStore')
const PrivateStore = require('./privateStore')
const Verified... |
/*!
* EWIN
* v3.06.21 - 2018
* (c) Assawin.Thkch; MIT License
*/
var form = '#itemreclassjournal-';
var formid = '#form-vendors';
$(document).ready(function () {
loadFindBox('.render-search-item');
setTimeout(function () {
route('warehousemoving/reclass-journal/ajax-line&id=' + $(form + 'documentno'... |
function CodeDefine() {
this.def = new Array();
this.def["ChLKACtrlSts"] = {file: "app_c.html",line:57,type:"var"};
this.def["ChLKARespToq"] = {file: "app_c.html",line:58,type:"var"};
this.def["DrvrStrgDlvrdToq"] = {file: "app_c.html",line:59,type:"var"};
this.def["StrgCustSetngDspCmd"] = {file: "app_c.html",line:60,t... |
const cons = require('../lib/constants.js');
const utils = require('../lib/utils.js');
const i18n = require('../modules/i18n.js');
let savedObs = require('../' + cons.OBJECTS_FILENAME);
let scram = {};
let scramWordLists = {
"278588293321326594": cons.ESO_SCRAMWORDS,
"402126095056633859": cons.PLANET_SCRAMWORDS,
"6... |
import React, {Component} from 'react';
const Jaxcore = require('jaxcore');
const jaxcore = new Jaxcore();
jaxcore.addPlugin(require('jaxcore-websocket-plugin/websocket-client'));
jaxcore.addPlugin(require('jaxcore-websocket-plugin/browser-service'));
const keys = {
'escape': {
words: 'escape',
display: 'esc'
}... |
/* global module, wx, window: false, document: false */
'use strict';
import mixins from 'es6-mixins';
import {extend, is, splineCurve, shadeBlendConvert} from '../util/helper';
import randomColor from '../util/randomColor';
import WxCanvas from '../util/wxCanvas';
import WxChart from './wxChart';
import WxTitle from... |
class ApiConnect {
constructor(apiUrl, method, contentType, ...postData) {
this.apiUrl = apiUrl;
this.method = method;
this.contentType = contentType;
this.postData = postData[0];
};
connectGet() {
return new Promise((resolve, reject) => {
fetch(this.... |
import React, { Component } from "react";
import { getConnextClient } from "connext/dist/Connext.js";
import "./App.css";
import ProviderOptions from "./utils/ProviderOptions.ts";
import clientProvider from "./utils/web3/clientProvider.ts";
import { setWallet } from "./utils/actions.js";
import {
createWallet,
crea... |
//================================================================
// RS_HUD_4m_InBattle.js
// ---------------------------------------------------------------
// The MIT License
// Copyright (c) 2015 biud436
// ---------------------------------------------------------------
// Free for commercial and non commercial use... |
import { h } from "virtual-dom";
import attributeHook from "discourse-common/lib/attribute-hook";
import deprecated from "discourse-common/lib/deprecated";
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
let _renderers = [];
const REPLACEMENTS = {
"d-tracking": "bell",
"d-muted": "discourse-bell-slash",
"d-... |
// Shortcodes init
function initShortcodes(container) {
// Toggles
if (container.find('.sc_toggles .sc_toggles_title:not(.inited)').length > 0) {
container.find('.sc_toggles .sc_toggles_title:not(.inited)')
.addClass('inited')
.on('click',(function () {
jQuery(this).parent().toggleClass('sc_active');
... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import uuid from 'uuid/v4';
import _ from 'underscore';
import cn from 'classnames';
import op from 'object-path';
import Region from './Region';
import PropTypes from 'prop-types';
import ContentEvent from '../_utils/ContentEvent';
import DEFAULT_ENUMS from 'components/Admin/Content/enums';
import useProperCase from '... |
function CSVImportExportPlugin() {
var plugin = this;
/* ----- Upload CSV ----- */
// Create and register CSV upload button
this.btn_csv_up = $('<button class="btn btn-outline-light" id="btn-upload-csv" type="button" data-toggle="modal" data-target="#csv-file-upload-modal">\
... |
'use strict';
var ko = require('knockout');
var $ = require('jquery');
require('jquery-blockui');
var Raven = require('raven-js');
var moment = require('moment');
var URI = require('URIjs');
var bootbox = require('bootbox');
var iconmap = require('js/iconmap');
// TODO: For some reason, this require is necessary for c... |
function Console(parent){
var printing=false,printStr,printIndex=0,currentElem;
Node.prototype.gec0=function(cl){
return this.getElementsByClassName(cl)[0];
};
var inputElem=parent.gec0("input"),outputElem=parent.gec0("input_output"),inpBox=parent.gec0("inputbox");
var caret=parent.gec0("caret"),front... |
'use strict';
var cheerio = require('cheerio');
var _ = require('lodash');
var esprima = require('esprima');
var escodegen = require('escodegen');
var reactDOMSupport = require('./reactDOMSupport');
var reactNativeSupport = require('./reactNativeSupport');
var reactPropTemplates = require('./reactPropTemplates');
var s... |
/*! xlsxspread.js (C) SheetJS LLC -- https://sheetjs.com/ */
/* eslint-env browser */
/* global XLSX */
/* exported stox, xtos */
// import * as XLSX from 'xlsx';
/**
* Converts data from SheetJS to x-spreadsheet
*
* @param {Object} wb SheetJS workbook object
*
* @returns {Object[]} An x-spreadsheet data
*/
ex... |
/*
Credits:
Thanks to Phrogz for https://stackoverflow.com/a/5223921/23582
(and http://phrogz.net/svg/drag_under_transformation.xhtml),
explaining how to drag under transformation.
Thanks to <NAME> for
http://www.petercollingridge.co.uk/tutorials/svg/interactive/dragging/,
explaining how to drag with sv... |
//Creating a plot for query_ts
function call_query_ts_plot(data, flag) {
//This is the patient-under-study
//Getting his time series.
d_obj = JSON.parse(data);
console.log(d_obj.pTList.length);
var query_data = d_obj.pTList[0].data;
var pid = d_obj.pTList[0].pid;
console.log(JSON.stringify(... |
'use strict';
var binary = require('binary');
var stream = require('stream');
var util = require('util');
var zlib = require('zlib');
var MatcherStream = require('./matcher-stream');
var Entry = require('./entry');
const states = {
STREAM_START: 0,
START: ... |
const SemanticSDP = require("semantic-sdp");
const SDPInfo = SemanticSDP.SDPInfo;
const StreamInfo = SemanticSDP.StreamInfo;
const TrackInfo = SemanticSDP.TrackInfo;
const Direction = SemanticSDP.Direction;
class PeerConnectionClient
{
constructor(params)
{
//Store peer connection
this.id = params.id;
this.... |
//We import these only to get deleteSentinel without importing from firebase.js.
import firebase from '@firebase/app';
import '@firebase/firestore';
const deleteSentinel = firebase.firestore.FieldValue.delete;
import {
REFERENCES_INFO_CARD_PROPERTY,
REFERENCES_INFO_INBOUND_CARD_PROPERTY,
REFERENCE_TYPE_LINK,
REFER... |
//Handles functionality of Statistical Inference
// load visualizations
$( window ).load(function() {
estimation();
confidence();
bootstrapping();
});
//*******************************************************************************//
//Estimator
//***************************************************************... |
/*
Copyright 2010, Google Inc.
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 discla... |
// -------------------------------------------------------------------------------------------------
// ref : http://stackoverflow.com/questions/15935365/convert-float-to-bytes-in-javascript-without-float32array
function toFloat32(value) {
var bytes = 0;
switch (value) {
case Number.POSITIVE_INFINITY: ... |
const { PrivateModifier, ProtecModifier } = require("../Parser/AccessModifier");
const { BooleanExp, Exp, ExpMethodExp, IntegerExp, NewClassExp, OpExp, StringExp, ThisExp, VariableExp } = require("../Parser/Expressions");
const { DivideOp, DotOp, EqualOp, GreaterThanEqualOp, GreaterThanOp, LessThanEqualOp, LessThanOp, ... |
'use strict';
var dom = {};
var ids = ['player', 'thumbnails', 'overlay', 'overlay-title',
'overlay-text', 'videoControls', 'videoFrame', 'videoBar',
'close', 'play', 'playHead', 'timeSlider', 'elapsedTime',
'video-title', 'duration-text', 'elapsed-text', 'bufferedTime',
's... |
var canvas1 = document.getElementById("backgroundCanvas");
var backgroundContext = canvas1.getContext("2d");
var mainWidth = document.body.clientWidth;
var mainHeight = document.body.clientHeight;
canvas1.width = mainWidth;
canvas1.height = mainHeight;
var canvas2 = document.getElementById("foregroundCanva... |
/**
* @file Matrix Utils
* @private
* @author <NAME> <<EMAIL>>
*
* svd methods from Eugene Zatepyakin / http://inspirit.github.io/jsfeat/
*/
import { Vector3 } from "../../lib/three.es6.js";
import { v3new, v3cross } from "./vector-utils.js";
function Matrix( columns, rows ){
this.cols = columns;
thi... |
///////////////////////////////////////////////////////////////////////////////
// This is a set of Data structures for RPG Mod Pack of VN-CANVAS //
// Used by vnmod-rpg-0.8+. //
// //
... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
import React from 'react';
import Grid from '@material-ui/core/Grid';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button'... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
const EventEmitter = require('events');
const moment = require('moment');
module.exports = class GameTickService extends EventEmitter {
constructor(distanceService, starService, carrierService,
researchService, playerService, historyService, waypointService, combatService, leaderboardService, userSer... |
/**
* Recalculate.
* @module recalculate
* @license MIT
*/
import { NS } from '../common/namespaces.js';
import { convertToNum } from '../common/units.js';
import { isWebkit } from '../common/browser.js';
import { getTransformList } from './svgtransformlist.js';
import { getRotationAngle, getHref, getBBox, getRefE... |
// Simple Zip implementation, no compression, that opens on the iPhone.
//
// var zip = new Zip(output);
// var file = zip.addFile(filename);
// file.write(buffer);
// file.end();
// zip.close();
//
// See http://www.pkware.com/documents/casestudies/APPNOTE.TXT
var EventEmitter = require("events").EventEmitter;
var ... |
var settings = require('./settings/mysql');
var connector = require('./helpers/connector');
var querySequence = require('./helpers/querySequence');
var expectEvents = require('./helpers/expectEvents');
var strRepeat = require('./helpers/strRepeat');
var conn = process.testZongJi || {};
module.exports = {
setUp: fu... |
import transactionDB from '../db/transactionDB';
import blockDB from '../db/blockDB';
import mosaicDB from '../db/mosaicDB';
import mosaicTransactionDB from '../db/mosaicTransactionDB';
import namespaceDB from '../db/namespaceDB';
import accountDB from '../db/accountDB';
import supernodePayoutDB from '../db/supernodePa... |
var $nombre_mesa = '';
function imprime(objet) {
var idcomanda = objet['id_comanda'];
}
///////////////// ******** ---- cerrar_comanda ------ ************ //////////////////
//////// Imprime la comanda en una nueva ventana
// Como parametros puede recibir:
// id_comanda -> ID de la comanda
// id_mesa -> ID de... |
"use strict";
//// @ts-nocheck
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;
... |
import React from "react";
import {LinkContainer} from "react-router-bootstrap" ;
import { Container, Row, Col, ButtonToolbar, Button, ListGroup, Tab, Modal, InputGroup, FormControl, Card, CardColumns, ProgressBar, Dropdown } from "react-bootstrap";
import CircularProgressBar from "../CircularProgressBar/CircularProgr... |
class Menu {
constructor(settings = {}) {
const typeEnum = ['contextmenu', 'menubar'];
let items = [];
let type = isValidType(settings.type) ? settings.type : 'contextmenu';
let beforeShow = settings.beforeShow;
Object.defineProperty(this, 'items', {
get: () => {
return items;
}
});
Object.def... |
const constants = require('ocore/constants');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const validationUtils = require('ocore/validation_utils');
const texts = require('./modules/texts');
const bitcointalkAttestation = require('./modules/bitcointal... |
import Phaser from "phaser";
import tilesImg from "./assets/yiikes_tiles.png"
import level_7_JSON from "./assets/level7.json";
import { Player } from "./player";
import { gameState } from ".";
import homeImg from "./assets/home_black_48x48.png";
import squareImg from "./assets/square.png"
import playImg from "./assets/... |
'use strict'
var cluster = require('cluster');
var EventEmitter = require('events').EventEmitter;
var cpuCount = require('os').cpus().length;
const cache = require('microgateway-plugins').memored;
const writeConsoleLog = require('microgateway-core').Logging.writeConsoleLog;
const CONSOLE_LOG_TAG_COMP = 'microgateway ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useSession = useSession;
exports.session = exports.getSession = getSession;
exports.csrf... |
const DocumentWorker = require('../html/DocumentWorker');
const thumbnail = require('../thumbnail');
const NodeType = require('../nodeType');
const domUtil = require('../domUtil');
const pagelib = require('../../pagelib/build/wikimedia-page-library-transform');
const Edit = pagelib.EditTransform;
const WidenImage = pag... |
var rarePersonae = ["Regent", "Queen's Necklace", "Stone of Scone", "Koh-i-Noor", "Orlov", "Emperor's Amulet", "Hope Diamond", "水晶骷髏"];
var rareCombos = {
"愚者": [-1, +1, -1, +1, -1, -1, +1, +2],
"魔術師": [+1, -1, +2, -1, +1, +1, +1, +1],
"女教皇": [-1, +1, -1, +2, +1, -1, +1, +1],
"女皇": [-1, +2, -1, +1, +1, ... |
import {Component, useState} from "react";
import React from "react";
import {
Button,
Container,
Grid,
Header,
Icon,
Step,
List, Label, Segment, Comment, Loader, Modal, Form, Message, Card, Confirm
} from "semantic-ui-react";
import {API, graphqlOperation, Storage, Auth, I18n} from 'aws-amp... |
/* eslint-disable import/no-cycle */
/* eslint-disable brace-style */
import {
createEl,
createSVG,
fetchCatalog,
fetchFormFields,
getHoursOfOperation,
getOpenStatus,
loadCSS,
toClassName,
} from '../../scripts/scripts.js';
import {
formatMoney, setupCart,
} from '../square/square.js';
import {
po... |
/*
* Copyright (c) 2020, Livio, Inc.
* 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 fo... |
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _slicedToArray = function () {... |
// Collection Types
export const CT_DAILY_LESSON = 'DAILY_LESSON';
export const CT_SPECIAL_LESSON = 'SPECIAL_LESSON';
export const CT_FRIENDS_GATHERINGS = 'FRIENDS_GATHERINGS';
export const CT_VIDEO_PROGRAM = 'VIDEO_PROGRAM';
export const CT_LECTURE_SERIES = 'LECTURE_SERIES';
export const CT_CHILDREN... |
import { InjectionToken, forwardRef, Optional, Inject, ElementRef, KeyValueDiffers, Directive, Input, HostListener, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
var CurrencyMaskInputMode;
(function (CurrencyMaskInputMo... |
var utils = {
angles: require('./angleUtils'),
matrix: require('./matrixUtils'),
transp: require('./cssTransformStringUtils'),
funcs: {
// Given a function `fn`, return a function which calls `fn` with only 1
// argument, no matter how many are given.
// Most useful where you o... |
'use strict'
/** @typedef {import("node-red").Red} Red */
//#region --------- "global" variables for the panel --------- //
/** Module name must match this nodes html file @constant {string} moduleName */
var moduleName = 'uibuilder'
/** Node's label @constant {string} paletteCategory */
... |
'use strict';
var Camera = require('osg/Camera');
var CullVisitor = require('osg/CullVisitor');
var BlendFunc = require('osg/BlendFunc');
var Depth = require('osg/Depth');
var FrameBufferObject = require('osg/FrameBufferObject');
var mat4 = require('osg/glMatrix').mat4;
var MatrixTransform = require('osg/MatrixTransfor... |
/*
* decaffeinate suggestions:
* DS001: Remove Babel/TypeScript constructor workaround
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS103: Rewrite code to no longer use __guard__
* DS104: Avoid inline assignments
* DS206: Consider reworking ... |
'use strict';
//Global variables
//GraphQl API call queries
const latestNmrPrice = () => `query{latestNmrPrice {
lastUpdated
priceUsd
}}`;
const userProfile = username => `query{v2UserProfile(username: "${username}") {
latestRoundPerformances {
correlation
correlationWithMetamodel
date
mmc
... |
let xpath = require('./xpath'),
{ W_NS } = require('../constants/ns'),
{ boolean, string, number, enums } = require('./attribute-parsers'),
borders = require('../constants/borders'),
themeColors = require('../constants/theme-colors'),
textEffects = require('../constants/text-effects'),
emphasisTypes = requi... |
var $window = $(window),
$html = $('html'),
$body = $('body'),
$pageWrapper = $('#page'),
$pageHeader = $('#page-header'),
$headerInner = $('#page-header-inner'),
$pageContent = $('#page-content'),
headerStickyEnable = $insight.header_sticky_enable,
headerStickyHeight = parseInt($insight... |
/*
Extension: Bookmark Buttons Startpage
Author: <NAME>
Mailto: <EMAIL>
Version: 1.2.1
All rights reserved.
*/
// Controller
var bbsExtension = Class.extend({
// constructor
init: function() {
this.top = {
'x': 8,
'y': -1,
'n': 0,
'rows': 10,
'cols': 10,
'offsetX': 18,
'offsetY': 32,
... |
/**
* Tasks: retrieving stored cubes, their dimensions and easily navigating over them
*/
/*-------------------------GLOBALS-------------------------*/
var currentRecord = 0;
var pagingSize = 5;
var recordCount;
var previousPage;
var currentPage;
var nextPage;
var records;
var nbDim=0;
var selectedDimensi... |
function compareObjs(a, b) {
if (a == b) { return true }
for (var p in a) { if (a[p] !== b[p]) { return false } }
for (var p$1 in b) { if (!(p$1 in a)) { return false } }
return true
}
var WidgetType = function(widget, options) {
if (widget.nodeType != 1) {
var wrap = document.createElement("span")
w... |
$.ajaxSetup({async: false});
var map, points, info, bounds, data, codes = {}, meta, currentDate, loadedData = {};
var dateBegin = new Date('2015-11-16'), dateEnd, firstCsv = true, selectedPoint = false;
var standards = {}, markers = {}, markerClicked = false;
$.getJSON('http://ks-opendata-community.github.io/chimney/... |
var configSaved = false;
var selectedBothBiosVMM = false;
var registerHost = false;
var configurationSaved = [];
function autoPopulateTlsPolicy(hostname) {
// first clear the existing selection
$("#tls_policy_select").val('');
$("#tls_policy_data_certificate").val('');
$("#tls_policy_data_certificate_d... |
"use strict";
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.call(s, p))
t[p] = s[p];
... |
'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 audioCtx = new (window.AudioContext || window.webkitAudioContext)();
const freqs = [450, 400, 375, 333.33333, 300];
var svg;
var rowArr = [[1,2,3],[1,2,3],[2,1,3],[2,3,1],[3,2,1],[3,1,2],[1,3,2],[1,2,3]]; //
var rownum = 0;
var place = -1;
var viewy = -940;
var numbells = 3;
var gutter = 120;
var leftstart = 365;... |
"use strict";
import { DropdownStepView, InfoStepView, StepFlow, StepFlowManager, CheckStepView, StepViewContainer, InputStepView, PromiseCompletionSource, TelemetryService } from 'diagnostic-data';
import { CommonWordings } from './commonWordings.js'
import { VnetDnsConfigChecker } from './vnetDnsConfigChecker.js';
im... |
var agro;
var killedall = false;
var oldsen;
var tookweed = false;
var sht = false;
var canattack;
var geometry1NPC = new THREE.PlaneGeometry( 33, 55, 1, 1 );
var geometry2NPC = new THREE.PlaneGeometry( 33, 55, 1, 1 );
var geometry1NPCg = new THREE.PlaneGeometry( 33, 65, 1, 1 );
var geometry2NPCg = new THREE.Pla... |
var numOfPlayersCh1 = 0,
numOfPlayersCh2 = 0,
numOfPlayersCh3 = 0;
var dataScale = [
"0 - 50",
"50 - 100",
"100 - 200",
"200 - 300",
"300 - 400",
"400 - 450",
"450 - 500",
"500 - 550",
"550 - 600",
"600 - 700",
"700 - 800",
"800 - 900",... |
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
const Ci = Components.interfaces;
const Cc = Components.classes;
const Cr = Components.results;
const SERVICE_CTRID = "@torproject.org/torbirdy;1";
const SERVICE_ID = Components.ID(... |
const path = require('path') //eslint-disable-line
const np = require(path.resolve(__dirname, './numpy.js'))
const static_data = require(path.resolve(__dirname, './static_data.js'))
const pythonUtils = require(path.resolve(__dirname, './pythonUtils.js'))
const { assert, int, namedtuple, zip } = pythonUtils
/*eslint-di... |
const { performance } = require('perf_hooks')
const { fullPath, mkdir } = require('./utilities')
const program = require('commander')
const svgFont = require('@shigma/svg-font')
const readline = require('readline')
const path = require('path')
const fs = require('fs')
program
.option('-d, --dev')
.option('-p, ... |
import { Midi, Scale, Note, Chord} from '@tonaljs/tonal';
// let Midi;
var modulePrototype = {
name: 'module A',
moduleName: 'module A',
desc: '',
author: '',
authorId: '',
dataType: 'module',
pool: '',
data: {
chordData: {
chordName: 'Dm',
name: 'Dm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.