text stringlengths 5.97k 41.2k |
|---|
'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 ("va... |
var t = TrelloPowerUp.iframe();
var cardInfoKey = 'pappira.cardInfo';
var listId = '5af49a20dea307f1e6dcd31b';
var selectedWorkTypeId;
var selectedWorkId;
var selectedOptions = {};
var estimate;
t.render(function(){
return t.get('card', 'shared', cardInfoKey)
.then(function(cardInfo){
estimate = deTranslateEs... |
require('./index.scss');
var datePrice = require('COMMON/date.js');
function urlKey(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
function setCookie(name, value, time) {
var oDat... |
import React, { useState, useEffect, useRef } from "react";
import { Redirect, Link, matchPath } from "react-router-dom";
import Swal from "sweetalert2";
//@material-ui/core
import { makeStyles } from "@material-ui/core";
import Checkbox from "@material-ui/core/Checkbox";
import Typography from "@material-ui/core/Typog... |
/*
RegExr: Learn, Build, & Test RegEx
Copyright (C) 2017 gskinner.com, inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... |
//<![CDATA[
var CurrentLangId = aspxValues.CurretLangId;
var LoadingId = "Loading";
var LoadingTag = $("<img id='"+LoadingId+"' class='loading' src='"+aspxValues.ImgLoading+"' />");
LoadingId = "#" + LoadingId;
var txtSearchGame = aspxControlIds.txtSearchGame;
... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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... |
/**
* ITCAST WEB
* Created by zhousg on 2016/4/27.
*/
/*页面加载完成之后执行*/
window.onload = function(){
/*解析*/
payJson();
setName();
};
function payJson(){
}
function setName(){
// console.log(window.pay + '');
// var pay = window.pay;
var fmt = "yyyy-MM-dd";
var userName... |
obstacleEnum = {
CUBE : 0,
CYLINDER : 1,
HEXAGONAL : 2
}
environmentEnum = {
WATER : 0,
GELATIN : 1,
AGAR : 2
}
var wormScale = 115;
var loader = new THREE.ColladaLoader();
var container, stats;
var camera, controls, scene, renderer;
var cubes = [], objects = [], plane, cylinders = [], hexagonals = [];
var runSof... |
/**
* @desc 身份证脱敏显示
* @param {String} code
* @returns {String} 格式化后的身份证
*/
function formatCode(code) {
return `${code.substr(0,1)}*************${code.substr(17,18)}`;
}
/**
* @desc 身份证检验
* @param {String} sId 身份证
* @returns {Boolean}
*/
function isCardID (sId) {
sId = sId.toString();
let iSum = 0;
if (... |
/*
* ISC License (ISC)
* Copyright (c) 2018 aeternity developers
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVI... |
import Eth from 'web3-eth';
import EthUtils from 'web3-utils';
import BN from 'bn.js';
import { at, fetchContract, getContractEvent } from './contract.js';
import {
reverseObject,
debug,
isUserCancel,
providerType,
PROVIDER_TYPE_COINBASE_WALLET,
PROVIDER_TYPE_IM_TOKEN,
} from './utils.js';
import { Ledger ... |
"use strict";
/**
* runif: random number within a range
*
* @param lo low end of range
* @param hi high end of range
* @return number between lo and hi
*/
function runif(lo, hi) {
return lo + Math.random() * (hi - lo);
}
/**
* rnorm - (kinky) random vector generation
*
* This routine is meant to be call... |
import * as lib from './lib.js';
import {LOG_VERYSPAM, LOG_SPAM, LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR} from './lib.js';
import {LOG_LEVELS} from './lib.js';
// Work around some issues related to caching and error reporting
// by forcing this to load up top, before we try to 'addModule' it.
import './audio-wor... |
'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]; } } }... |
var app = getApp();
var api = require('../../utils/api.js');
var vsionimgfilterurl = api.getVsionimgfilterurl();
var ptuimgfilterurl = api.getPtuimgfilterurl();
Page({
data: {
motto: '腾讯优图',
images: {},
img: '',
remark: "",
model: 0,
tempFilePaths: '',
userInfo: {},
currentTab: 0,
... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EuiContextMenu = void 0;
var _extends2 = _interopRequir... |
"use strict";
/*jslint vars: true, plusplus: true*/
/*globals Script, Overlays, Controller, Reticle, HMD, Camera, Entities, MyAvatar, Settings, Menu, ScriptDiscoveryService, Window, Vec3, Quat, print */
//
// handControllerPointer.js
// examples/controllers
//
// Created by <NAME> on 2016/04/22
// Copyright 2016 H... |
import choc, {set_content} from "https://rosuav.github.io/shed/chocfactory.js";
import "https://cdn.jsdelivr.net/npm/comfy.js/dist/comfy.min.js"; const ComfyJS = window.ComfyJS;
const {A, IMG, INPUT, LABEL, LI, OPTION, OPTGROUP, SPAN} = choc;
const params = new URLSearchParams(window.location.search);
const hosts_onl... |
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function interpolatePoint(a, b, frac) {
var nx = a.x+(b.x-a.x)*frac;
var ny = a.y+(b.y-a.y)*frac;
return {x:nx, y:ny};
}
var Map = function(settings) {
var self = this;
self.settings = settings;
self.random ... |
let localVideo = document.getElementById('local_video');
let localStream = null;
// ---- for multi party -----
let peerConnections = [];
//let remoteStreams = [];
let remoteVideos = [];
const MAX_CONNECTION_COUNT = 3;
// --- multi video ---
let container = document.getElementById('container');
_ass... |
import * as BABYLON from '@babylonjs/core';
import * as GUI from '@babylonjs/gui/2D'
import { getXZpos, getAngleOriented, getGroundRange} from './utils'
import { MORTAR_VELOCITY, ROUND_PHASES,
GUN_POSITION, GUN_RANGE, ROUND_TYPES, GUN_VELOCITY,
BLAST_ALPHA, MORTAR_BLAST_RADIUS_START, MORTAR_BLAST_LI... |
'use strict';
const request = require('request');
const _ = require('lodash');
const { flow, get, getOr, slice, orderBy, concat, uniqWith, isEqual } = require('lodash/fp');
const Bottleneck = require('bottleneck');
const config = require('./config/config');
const async = require('async');
const fs = require('fs');
le... |
import $ from 'jquery';
import i18next from 'i18next-client';
import pcapi from 'pcapi';
import _ from "underscore";
import generalTemplate from './templates/general-fieldset.jst!';
import textTemplate from './templates/text-fieldset.jst!';
import textareaTemplate from './templates/textarea-fieldset.jst!';
import range... |
import { localeCountry, localeString } from './localeUtils.js';
import { regions } from '../data/regions.js';
let myMap;
let leafletContinentLayer;
let continentGeoJSON;
let selectedContinent;
let overallCountriesToQuery;
let countryNumbersArray;
let correctAnswers = 0;
let timer;
let timePlayed = 0;
//Add the base m... |
var dateModule = require('./date.js')
/**
* CS Kalendář jmen
* https://www.naplanuj-to.cz/kalendar-jmen
*/
const nameDays = {
1: {
1: ['<NAME>'],
2: ['Karina', 'Vasil'],
3: ['Radmila', 'Radomil'],
4: ['Diana'],
5: ['Dalimil'],
6: ['Tř<NAME>lové'],
7: ['Vil... |
'use strict';
/* --------------------------------------------------------------------------
PRE-handling relies on the following 5-state FSM.
------
States
------
SOL -- start-of-line
(white-space, comments, meta-tags are all SOL transparent)
PRE -- we might need a pre-bloc... |
//https://threejs.org/examples/webgl_physics_convex_break.html
import Expo from 'expo';
import React from 'react';
import ExpoTHREE from 'expo-three';
import Touches from '../window/Touches';
import Files from '../Files';
import { Dimensions } from 'react-native';
import { ThreeView } from './index';
import THREE fro... |
const { color, brick: brickUtils } = require('../util/');
class Player {
#omegga = null;
/**
* players are not to be constructed
* @constructor
* @param {Omegga} - Omegga Instance
* @param {String} - Player Name
* @param {String} - Player Id
* @param {String} - Player Controller
* @param ... |
/*
* Google Pixel3 Motion Jpeg file viewer ECMAScript implementation.
*
* Copyright (c) 2019 DigiSapo(http://www.plaza14.biz/sitio_digisapo/)
* This software is released under the MIT License:
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docu... |
//jshint esnext: true, node: true
var path = require('path');
var fs = require('fs');
var assert = require('chai').assert
var Enumerable = require('linq');
var Emojis = require('../index.js').Emojis
var EmojiSearchResult = require('../index.js').EmojiSearchResult
var testData = [
{
code: "U+0030 U+20E3",
... |
/**
* Set a mat4 to the identity matrix
*
* @param {mat4} out the receiving matrix
* @returns {mat4} out
*/
export function identity(out) {
out[0] = 1;
out[1] = 0;
out[2] = 0;
out[3] = 0;
out[4] = 0;
out[5] = 1;
out[6] = 0;
out[7] = 0;
out[8] = 0;
out[9] = 0;
out[10] = 1;
out[11] = 0;
out... |
// variables to be set by the API
var UrlTeamName = "";
var UrlTeamID = "";
var teamName = "";
var teamNameQuery = "";
var teamID = "";
var videoURL = "";
var futureGameTitle = "";
var futureGameTitleAPI = "";
var teamsSearched = [];
// variables for HTML elements
var videoContainer = $("#video-container .appended-... |
const RBM_complete_XOR = "#CD_figure1_id" // This defines in which div we write into
var IDENTIFIERXOR = '_XOR'
circle_offset = 50
dictionary["h_units"+IDENTIFIERXOR] = 1
dictionary["v_units"+IDENTIFIERXOR] = 2
dictionary["total_spins"+IDENTIFIERXOR] = 3
dictionary["histogram_data"+IDENTIFIERXOR] = [0.125,0.125,0.12... |
import * as utils from "base/utils";
import Component from "base/component";
import ColorPicker from "helpers/d3.colorPicker";
import axisSmart from "helpers/d3.axisWithLabelPicker";
import { close as iconClose } from "base/iconset";
/*!
* VIZABI BUBBLE COLOR LEGEND COMPONENT
*/
const ColorLegend = Component.extend... |
/*jslint vars: true, browser: true, devel: true, plusplus: true, unparam: true*/
/*global $, jQuery, alert, db_name, test_suite_name, init, changes */
/*global update_graph*/
// Keep the graph data we download.
// Each element is a list of graph data points.
var data_cache = [];
var is_checked = []; // The current lis... |
/***
* Copyright 2016 IBM Corp. 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 applic... |
import {utility} from './util.js'
const socket = io();
const standardRoles = ["Villager", "Werewolf", "Seer", "Shadow", "Hunter", "Mason", "Minion", "Sorcerer", "Dream Wolf"];
let clock;
let currentGame = null;
let lastGameState = null;
let cardFlippedOver = false;
let cardRendered = false;
let lastKilled = null;
//... |
const initial_camera_ratio = 6/7;
const bulding_height_ratio = 0.6;
function THREE_init(polygons, data, Rwindow){
var container = Rwindow.find('.raiz-window-body');
var scene = new THREE.Scene();
scene.background = new THREE.Color( 0xffffff );
var camera = new THREE.PerspectiveCamera( 90, 1, 1, 2000 )... |
$(window).on('load', () => {
setTimeout(()=>{
$(".orbit-spinner").css({visibility:"hidden",opacity:"0"}).fadeOut(100)
}, 2000);
setTimeout(()=>{
$("#main").removeAttr("hidden").fadeIn(200)
}, 2400);
});
$(window).ready(() =>{
$('#body').bootstrapMaterialDesign();
const date = n... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const moment = require('moment');
const numberList = require('number-list');
const argv = require('yargs')
.options({
office: {
type: 'string',
describe: 'include only offices that match string',
default: '',
... |
//Page Initialization
// Init Sound Synthesizer
var context = new AudioContext();
var o = context.createOscillator();
var g = context.createGain();
g.connect(context.destination);
g.gain.setValueAtTime(0, context.currentTime);
o.connect(g);
o.start(0);
context.resume();
// global constants
const cluePauseTime = 333; /... |
const assert = require('assert');
const fs = require('fs');
const uuid = require('uuid');
const httph = require('./http_helper.js');
const apps = require('./apps.js');
const addons = require('./addons.js');
const addon_attachments = require('./addon-attachments.js');
const builds = require('./builds.js');
const config_... |
// ALLOWS LINE BREAKS WITH RETURN BUTTON
marked.setOptions({
breaks: true,
});
// INSERTS target="_blank" INTO HREF TAGS (required for codepen links)
const renderer = new marked.Renderer();
renderer.link = function (href, title, text) {
return `<a target="_blank" href="${href}">${text}` + '</a>';
}
const markdownT... |
"use strict";
const config = require("../config/config.js");
const utils = require("../util/utils.js");
const fs = require("fs");
const qm = require("qminer");
const {
EventRegistry, QueryEvents, QueryArticlesIter, GetCounts, RequestEventsTimeAggr, RequestEventsDateMentionAggr,
QueryArticles, RequestArticlesD... |
/**
* Copyright 2018 Aarhus University
*
* 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 agr... |
/**
##**************************************************************
##
## Copyright (C) 2018-2020, OneDataShare Team,
## Department of Computer Science and Engineering,
## University at Buffalo, Buffalo, NY, 14260.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this ... |
// global consts/settings
const tyspeed = 80;
let mute = false;
const audiobtn = document.getElementById('audiobtn');
audiobtn.setAttribute("onclick", 'audioonoff()');
const settings = document.getElementById('settings');
const settingsbtn = document.getElementById('settingsbtn');
settingsbtn.setAttribute("onclick", 's... |
// export default connect(mapStateToProps)(Header);
import React, { useState, useRef, useEffect, useLayoutEffect } from 'react';
// import { withRouter } from 'react-router-dom';
import './header.scss';
import './headermobile.css';
import { Link, navigate } from 'gatsby';
import Cart from '../cart/cart';
import store ... |
document.addEventListener("DOMContentLoaded", () => {
if (window.innerWidth >= window.innerHeight) {
//horizontal
} else if (window.innerWidth < window.innerHeight) {
//vertical
}
//setting starting index
currentIndex = 3;
atTutorial = true;
});
window.addEventListener("load", function () {
sta... |
/**
* Developed by <NAME>
*/
// NOTES FOR DEVELOPERS.
// -How this script logs keystroke data?
// Keystroke data are logged when user is pressing down a key (keyDown) or releasing a key (keyUp).
// For each event a timestamp is posted along with the key that is being pressed and the type of event.
// -When this sc... |
function translateCron() {
if (typeof systemDictionary !== 'undefined' && !systemDictionary['CRON Every %s seconds']) {
for (var w in jQueryCronWords) {
if (jQueryCronWords.hasOwnProperty(w)) {
systemDictionary[w] = jQueryCronWords[w];
}
}
//translateA... |
const should = require('chai')
.use(require('bn-chai')(web3.utils.BN))
.use(require('chai-as-promised'))
.should();
const deployer = require('../scripts/deploy');
const DragonGeneticsMock = artifacts.require("DragonGeneticsMock.sol");
const DragonUtilsMock = artifacts.require("DragonUtilsMock.sol");
const CoreMock... |
function addStyle() {
var styleElement = document.createElement("style", { type: "text/css" });
styleElement.appendChild(
document.createTextNode(`
.gchat-xtra-copy {
margin-left: 4px;
border: 1px solid #dadce0;
background-color: transparent;
border-radius... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~... |
import React, { Component } from "react";
import { hot } from "react-hot-loader";
import * as THREE from "three/build/three.module.js";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
import { OrbitControls } from "three/exam... |
import { fileURLToPath } from 'url'
import path from 'path'
import lunr from 'lunr'
import lunrStemmerSupport from 'lunr-languages/lunr.stemmer.support.js'
import tinyseg from 'lunr-languages/tinyseg.js'
import lunrJa from 'lunr-languages/lunr.ja.js'
import lunrEs from 'lunr-languages/lunr.es.js'
import lunrPt from 'lu... |
const { MessageEmbed } = require('discord.js');
let database = require("../database/models/coin.js");
const moment = require('moment');
require('moment-duration-format');
module.exports = {
run: async (client, message, args) => {
const maps = [
{
"settings": {
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var path = _interopRequireWildcard(require("path"));
var os = _interopRequireWildcard(require("os"));
var _sourceMap = require("source-map");
var _schemaUtils = require("schema-utils");
var _serializeJavascrip... |
import { Color, DoubleSide, Matrix4, MeshBasicMaterial } from 'three'
/**
* https://github.com/gkjohnson/collada-exporter-js
*
* Usage:
* var exporter = new ColladaExporter();
*
* var data = exporter.parse(mesh);
*
* Format Definition:
* https://www.khronos.org/collada/
*/
const ColladaExporter = () => {... |
/* eslint-disable */
import BigNumber from 'bignumber.js'
import { keyBy, orderBy, take, reverse, sortBy, chunk } from 'lodash'
import * as reducers from './cosmos-reducers'
import { encodeB32, decodeB32 } from '~/common/address'
import { urlSafeEncode } from '~/common/b64'
import { setDecimalLength } from '~/common/n... |
var ge; //this is the hugly but very friendly global var for the gantt editor
$(document).ready(function () {
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', initAppGantt);
});
function initAppGantt() {
if(spPageInEditMode()){
return;
}
//load templates
$("#ganttemplates").loadTempl... |
pdata = undefined;
abbreviate = false;
function getData() {
var name = document.getElementById('username').value.toLowerCase().replace(/ /g, '_');
pdata = new PlayerData(name, document.getElementById('player_data'));
}
function refreshData() {
pdata = new PlayerData(pdata.player, document.getElem... |
import defaultValue from '../Core/defaultValue.js';
import defined from '../Core/defined.js';
import DeveloperError from '../Core/DeveloperError.js';
import Event from '../Core/Event.js';
import createPropertyDescriptor from './createPropertyDescriptor.js';
import NodeTransformationProperty from './NodeTransformationPr... |
'use strict';
var CallHandler = (function callHandler() {
var COMMS_APP_ORIGIN = document.location.protocol + '//' +
document.location.host;
var callScreenWindow = null;
var callScreenWindowReady = false;
var btCommandsToForward = [];
var currentActivity = null;
var FB_SYNC_ERROR_PARAM = 'isSyncError';... |
/**
* @module 'winston-mongodb'
* @fileoverview Winston transport for logging into MongoDB
* @license MIT
* @author <EMAIL> (<NAME>)
* @author <EMAIL> (<NAME>)
* @author <EMAIL> (<NAME>)
*/
const util = require('util');
const os = require('os');
const mongodb = require('mongodb');
const _ = require('lodash');
co... |
'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const pubsub = require('pubsub-js');
const os = require('os');
var moment = require('moment-timezone'); // eslint-disable-line no-var
Promise.promisifyAll([
require('agenda/lib/agenda'),
require('agenda/lib/job')
]);
const Agenda = requ... |
import { absNumber, acoshNumber, acosNumber, acothNumber, acotNumber, acschNumber, acscNumber, addNumber, andNumber, asechNumber, asecNumber, asinhNumber, asinNumber, atan2Number, atanhNumber, atanNumber, bitAndNumber, bitNotNumber, bitOrNumber, bitXorNumber, cbrtNumber, ceilNumber, combinationsNumber, coshNumber, cosN... |
/**
* window.root.ProjectsExplore component
* A root component to show projects according to user defined filters
*
* Example:
* To mount this component just create a DOM element like:
* <div data-mithril="ProjectsExplore">
*/
import m from 'mithril';
import prop from 'mithril/stream';
import {
catarse,
... |
const REGEXP_HTML_CLASS = /(\s)class=".*?"/g;
const REGEXP_HTML_ATTR = /(\s)data-cms-id="[a-z0-9]+"|data-cms-widget="[a-z0-9]+"/g;
const REGEXP_HTML_DIV = /<div\s>/g;
const REGEXP_GLOBAL = /\$[0-9a-z-_]+/gi;
const Fs = require('fs');
var GLOBALS = {};
var loaded = false;
NEWSCHEMA('Page').make(function(schema) {
sch... |
#!/usr/bin/env node
const fs = require('fs-extra');
const ldposClient = require('ldpos-client');
const { REPLClient } = require('@maartennnn/cli-builder');
const actions = require('../lib/actions');
const {
FULL_CONFIG_PATH,
FULL_DIRECTORY_CONFIG,
KEY_INDEX_DIRECTORY,
CONFIG_PATH,
} = require('../lib/constants... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.themeable = themeable;
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _hoistNonReactStatics = _interopRequireDefault(requir... |
const RIBBON_CLOSE_CODES = {
'1000': 'ribbon closed normally',
'1001': 'client closed ribbon',
'1002': 'protocol error',
'1003': 'protocol violation',
'1006': 'ribbon lost',
'1007': 'payload data corrupted',
'1008': 'protocol violation',
'1009': 'too much data',
'1010': 'negotiation error',
'1011': 'server er... |
class NormalMode extends KeyHandlerMode {
init(options) {
if (options == null)
options = {};
const defaults = {
name: "normal",
indicator: false, // There is normally no mode indicator in normal mode.
commandHandler: this.commandHandler.bind(this)
};
super.init(Object.assign(... |
/* A Telnet Protocol Listener.
* By Chengjiabao.
* Copyright (c) 2011 Chengjiabao, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* ... |
const EPSILON = Math.pow(2, -52);
const EDGE_STACK = new Uint32Array(512);
export default class Delaunator {
static from(points, getX = defaultGetX, getY = defaultGetY) {
const n = points.length;
const coords = new Float64Array(n * 2);
for (let i = 0; i < n; i++) {
const p = ... |
require("dotenv").config();
const express = require("express");
const Tokens = require("csrf");
const cors = require("cors");
const fs = require("fs");
const formidable = require("formidable");
const decompress = require("decompress");
const path = require("path");
const empty = require("empty-folder");
const dirTree ... |
import {
DebugTilesRenderer as TilesRenderer,
NONE,
SCREEN_ERROR,
GEOMETRIC_ERROR,
DISTANCE,
DEPTH,
RELATIVE_DEPTH,
IS_LEAF,
RANDOM_COLOR,
RANDOM_NODE_COLOR,
CUSTOM_COLOR
} from '../src/index.js';
import {
Scene,
DirectionalLight,
AmbientLight,
WebGLRenderer,
PerspectiveCamera,
CameraHelper,
Box3,
Ra... |
'use strict';
const bind = require('../misc/bind');
const Tool = require('./tool');
// const addBorderingIfNeeded = require('./bordering');
const $ = require('jquery');
const _ = require('lodash');
const THREE = require('three');
module.exports = (function() {
function VoxelTool(renderer, voxelGrid) {
... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { View, PanResponder, Image, ViewPropTypes } from 'react-native';
import ReactNativeComponentTree from
'react-native/Libraries/Renderer/shims/ReactNativeComponentTree';
// import ReactNativeComponentTree from 'react/lib/ReactNativeCo... |
BB = function (t) {
function t(e, o) {
this.userSettings = o;
this.userbbkey = e;
v.call(this)
}
function v() {
var e = this.userSettings.host + "/assets/css/nps_widget_style.css";
var a = document.getElementsByTagName("head")[0];
l = document.createElement("... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* eslint-disable no-use-before-define */
/* global getParameterByName */
function build_qq() {
function htmlDecode(value) {
const parser = new DOMParser();
return parser.parseFromString(value, 'text/html').body.textContent;
}
function qq_show_toplist(offset) {
if (offset !== undefined && offset > 0)... |
const BaseCoin = require('../baseCoin');
const Wallet = require('../wallet');
const common = require('../../common');
const BigNumber = require('bignumber.js');
const Util = require('../../util');
const _ = require('lodash');
const Promise = require('bluebird');
const request = require('superagent');
const crypto = req... |
//**************************************************************************************************
// CASS UI Framework Explorer D3 Utility Functions
//**************************************************************************************************
//****************************************************************... |
/*
* Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, nomen:true, node:true*/
'use strict';
// --------------------------------------------------------------------------... |
/* globals JSZip */
var OpenXmlBuilder = {};
OpenXmlBuilder.version = "<%= version %>";
var ox = {};
ox.xmlns = "http://www.w3.org/2000/xmlns/";
ox.rel = "http://schemas.openxmlformats.org/package/2006/relationships";
ox.a = "http://schemas.openxmlformats.org/drawingml/2006/main";
ox.p = "http://schemas.openxmlformats... |
/*
* Copyright 2015 Red Hat 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... |
/* global $ */
// Initial interface setup using jQuery (since it's around from bootstrap anyway).
$.when($.ready).then(() => {
// Get the current application preferences.
window.api.send('get_preferences');
// Hide the places for handling responses until we have some.
$('#org-status').hide();
$('#results-tab... |
//--------------------------------------------------------------------------//
// //
// J S - B V - C O M M O N //
// //
// ... |
var models = require('../models/models.js');
var splitSeparator = appGlobals.config.splitSeparator;
//console text colors for test/error check purposes
var consoleTextColorRed = '\033[31m';
var consoleTextColorBlack = '\033[0m';
//Autoload
exports.load = function(req, res, next, dishId){
models.Dish.findById(Number(d... |
import { arr, chain, num, tree, fun, obj } from "lively.lang";
import { BaseVisitor, ScopeVisitor } from "./mozilla-ast-visitors.js";
import { FindToplevelFuncDeclVisitor } from "./visitors.js";
import { withMozillaAstDo } from "./mozilla-ast-visitor-interface.js";
import { parse } from "./parser.js";
import { acorn } ... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { incrementExerciseCounter } from "../../store/actions/increment_counter";
import { addNewExercise, editExercise } from "../../store/actions/exercises";
import { FormattedMessage } from 'react-intl';
import {
QUESTION,
FINISH_EXER... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArra... |
function Left()
{
this.theme = new Theme();
this.controller = new Controller();
this.dictionary = new Dict();
this.operator = new Operator();
this.navi = new Navi();
this.project = new Project();
this.options = new Options();
this.reader = new Reader();
this.insert = new Insert();
this.textarea_el ... |
//This function removes the lazy-loading attributes from all img and iframe tags
//Useful for print view for example (https://bugs.chromium.org/p/chromium/issues/detail?id=875403)
function removeLazyLoading() {
//If no Array.from then pretty sure there will be no native lazy-loading support to remove!
if (Arr... |
const fs = require('fs-extra')
const path = require('path')
const Node = require('./Node')
const {config, Entry, Crypto, ConfigUtils} = require('@secrez/core')
class Tree {
constructor(secrez, datasetIndex = 0) {
this.alerts = []
if (secrez.constructor.name === 'Secrez') {
let dataPath = secrez.conf... |
//
// miniglob is a port of golang path/filepath
//
// Original Go source code Copyright (c) 2009 The Go Authors.
// All rights reserved. See LICENSE-go for complete license.
//
// This code licensed under MIT, Copyright (c) 2018 <NAME>.
// See LICENSE for complete license.
//
const { readdirSync, statSync } = require(... |
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];
}
r... |
/*
* OPTIONS DEFINED FROM CONFIGURATION FILE
*/
var _CONF_FORCE_HTTPS = _CONF_FORCE_HTTPS || false;
var _CONF_DISPLAY_EDIT_ICON = _CONF_DISPLAY_EDIT_ICON || "single";
var _CONF_LISTENER_TYPE_VALUE = _CONF_LISTENER_TYPE_VALUE || "click";
var _CONF_LISTENER_TYPE_ICON = _CONF_LISTENER_TYPE_ICON || "none";
var _CONF_LIST... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.