text stringlengths 8.5k 48.7k |
|---|
/* eslint-disable jsx-a11y/no-static-element-interactions */
import React, { Component } from 'react';
import { array, arrayOf, bool, func, shape, string, oneOf } from 'prop-types';
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
import { compose } from 'redux';
import { connect } from '... |
//#region Dependências
import React, { useState, useEffect, Fragment } from "react";
import axios from 'axios';
import { Avatar, Button, Box, Card, CardContent, CardHeader, CardMedia,
Grid, Drawer, Divider, InputAdornment, Typography, TextField } from '@material-ui/core';
import { MdArrowBack, MdRemoveCircleO... |
/***********************************
*@ Copyright 2015, kugou.com
*@ Project shop.kugou
*@ Creator: WRG
*@ update by: blairwu
*@ Modify: 2015/04/07|16:26:37
*@ CreateTime: 2015年2月1日17:14:57
***********************************/
// document.domain = "kugou.com";
var domain = "http://www.kugou.com/shop/";
var tempG... |
// ************ Number formatting ************
function exponentialFormat(num, precision) {
let e = num.log10().floor()
let m = num.div(Decimal.pow(10, e))
if(m.toStringWithDecimalPlaces(precision) == 10) {
m = new Decimal(1)
e = e.add(1)
}
return m.toStringWithDecimalPlaces(precision)+"e"+e.toStringWithDecim... |
/**
* @file Contains all the {key: english} translations that are used to compile the English JavaScript code bundle.
* All the HTML translations are contained in ../components/htmlText.js
* Each object variable name and key must also appear in langFrench.js
* The translation functionality is split into English and... |
/* ============================================================
*
* dpmbox-ui.js v0.6.0
* https://github.com/calvellido/DPMbox
* Copyright (c) 2014 <NAME> (<EMAIL>)
*
* ============================================================
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not... |
const moment = require('moment');
const he = require('he');
const dataConfig = require('./data/resume');
const FormData = require('form-data');
const axios = require('axios');
const CONVERTER_URL = process.env.CONVERTER_URL;
function unique(array) {
return array.filter( (item, index) => array.indexOf(item) === in... |
import * as THREE from "three"
import { VRButton } from 'three/examples/jsm/webxr/VRButton.js'
import WebXRPolyfill from 'webxr-polyfill'
new WebXRPolyfill()
let playerLocation = 41*64+12
let oldPlayerLocation = 0
let lastTime
const worldDirection = new THREE.Vector3()
const PI_8 = Math.PI/8
const PI_2 = Math.PI/2
c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var os = require("os");
var fs = require("fs");
var path = require("path");
var util = require("util");
var assert = require("assert");
var glob = require("glob");
var mkdirp = require("mkdirp");
var detectIndent = require("detect-indent");
va... |
// ================
// Math Stuff
// ================
// Function that takes an average value in that then spits out a dice combination or the closest 2 dice combos to the input average value
function damageToDice(AV, CR){
let output
if (AV == 16) {
output = [
"blah",
`4d6 + 2... |
function renderSpiralgram(element) {
var staffElement = "#staffElement";
var data = window.variantData;
var nVariants = data.length;
var width = $(element).width();
var height = $(element).height();
var center = [width / 2, height / 2];
var end = Math.min(center[0], center[1]);
var apothem = Math.min(wi... |
/* @todo
supprimer ou réduire les variables globales
animer le morcellemnt de l'image puis le mélange des pièces
m
occuper tout l'espace de l'écran
piece border
pas terrible :
déplacement rapide perd la piece => acceleration ou positionner/rapprocher centre piece sous la souris
cookies setting : Same... |
$(document).ready(function () {
website.extAPIs.Leaflet.initMap();
website.extAPIs.BRouter.initProfile();
// wait until profile is loaded
$(document).on('BRouterProfileChanged', function () {
console.log('profile ' + website.extAPIs.BRouter.profileId + ' is loaded');
website.checkUrl();... |
$(document).ready(function () {
// VALIDACION FORMULARIO
initialize_validate_form();
// ACTIVAR TITULOS
$("body").tooltip({ selector: '[data-toggle="tooltip"]' });
// SOLO NÚMEROS
$('body').on('input', ".input-number", function(e){
this.value = this.value.replace(/[^0-9]/g,'');
});... |
var Node = require('../core/document/Node'),
Group = require('./Group'),
ScrollBar = require('../core/layout/ScrollBar');
var CSS = require('../core/document/CSS');
var LayoutMode = require('../core/layout/LayoutMode');
var History = require('../core/History');
var EventDispatcher = require... |
import { FieldType, FilteringMode, DimensionSubtype, MeasureSubtype, DataFormat } from './enums';
import fieldStore from './field-store';
import Value from './value';
import {
rowDiffsetIterator
} from './operator';
import { DM_DERIVATIVES, LOGICAL_OPERATORS, ROW_ID } from './constants';
import { createFields, crea... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.startOver = exports.nextSteps = exports.getPrompts = exports.getIgnorePrompts = exports.getPatchPrompts = exports.getUpdatePrompts = void 0;
const constants_1 = require("../constants");
const cloneDeep = require('lodash.clonedeep');
co... |
/*jslint bitwise: true, node: true */
'use strict';
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var SAT = require('sat');
// Import game settings
var c = require('../../config.json');
// Import utilities
var util = require('./lib... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// 物理攻击时无视目标的部分护甲,来自其他单位的物理伤害不会享受来自你的物理穿透效果。
// 护甲穿透分为比例穿透和定值穿透:
// 1.比例穿透:你的物理攻击在计算伤害时默认降低被攻击者一定百分比护甲;
// 2.定值穿透:你的物理攻击在计算伤害时默认降低被攻击者一定值的护甲,在其护甲低于你的护甲穿透时护甲减免伤害为0。
// 当你同时拥有固定和比例两种穿透时,先计算比例穿透,再计算固定穿透。
// 例:目标护甲为100,你有50%的比例护甲穿透和60定值穿透,当你攻击该目标时,目标护甲值先减少50%,剩余50,再受到60点护甲穿透,为0,你对他造成的伤害不会减少。
// 护甲的减少伤害公式:100/(100+护甲值)
impo... |
// Debug Constants
/** @define {boolean} */
var DEBUG_SERVER_SETTINGS = false;
/** @define {boolean} */
var DEBUG_VM_SETTINGS = false;
/** @define {boolean} */
var DEBUG_LOGIN = false;
/** @define {boolean} */
var DEBUG_LOADING = false;
var tunnel = new Guacamole.WebSocketTunnel((location.protocol == "https:" ? "wss:/... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var debounce = function debounce(fn, delay) {
var timer = null;
return function () {
for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
var aaa = func... |
// Roman Numerals Utilities
// Author: HoldOffHunger
// License: BSD 3-Clause
// Globals
// ---------------------------------------------------------
// ---------------------------------------------------------
// ---------------------------------------------------------
/* getTimeOutDela... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... |
/******************************************************************************/
/* wiseService.js -- Server requests between moloch and various intel services
* and files
*
* Copyright 2012-2016 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... |
// glasgow.js
// (c) <NAME>
// MIT license
const EMPTY_CHILDREN = [];
const EMPTY_ATTRS = {};
const EMPTY_NODE = {attrs: EMPTY_ATTRS, children: EMPTY_CHILDREN};
for(let obj of [EMPTY_CHILDREN, EMPTY_ATTRS, EMPTY_NODE])
Object.freeze(obj);
const NOT_HANDLED = {}; // constant that can be returned by event handlers
le... |
/*************** COLORS TO BE ERASED WHEN INSTALLING THE THEME ***********/
$(document).ready(function() {
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "js/plugins/jquery-cookie/jquery.cookie.js";
$("body").append(s);
if($.cookie("css")) {
$("#color... |
'use strict';
const EventEmitter = require('events');
const Status = require('./status');
const Semaphore = require('./semaphore');
const STATE = Symbol('state');
const OPEN = Symbol('open');
const CLOSED = Symbol('closed');
const HALF_OPEN = Symbol('half-open');
const PENDING_CLOSE = Symbol('pending-close');
const S... |
// MODULES //
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import logger from 'debug';
import Select, { components } from 'react-select';
import innerText from 'react-innertext';
import stringify from 'csv-stringify';
import Container from 'react-bootstrap/Container';
import ... |
console.log(actionData);
console.log(actionData.length);
// The action data is injected by the python library
// it is an array with these elements:
// [0-rotation:int, 1-positionX:int, 2-positionY:int
// 3-speed:1-10, 4-rotspeed:1-10,
// 5-penDown:1/0, 6-penColor:string, 7-penWidth:int,
// 8-turtleMainColor:strin... |
const path = require("path");
const fs = require("fs");
const NodeWrapper = require("./NodeWrapper");
var cheerio = require("cheerio");
const fse = require("fs-extra");
class ReactCodeMapper {
/**
* Class to convert tags and props from HTML to React
Call getReactMap method for converting tags fed for HTML an... |
/**
* Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
/*
* This code has been modified from https://github.com/toji/gl-matrix/,
* copyright (c) 2015, <NAME>, <NAME> IV.
*
* Permission is hereby g... |
const { Gio, GObject, St, Clutter, GLib } = imports.gi;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const BoxPointer = imports.ui.boxpointer;
const { Slider } = imports.ui.slider;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();... |
const AV = require('./leancloud-storage.js');
var app = getApp();
const nt = ['-1','-2','-6'];
const mdt = ['-2', '-3', '-4', '-6']
const mdtn = ['pic','thumb','vidio','file']
const vdSet=function(sname,sVal){
let reqset = {};
reqset['vData.'+sname] = sVal;
return reqset;
};
const rdSet=function(n,rdg,rdn){
let... |
/**
* Visual domain analysis.
*
* @author DesCrip
* @date 2020/08/28
* @level 0
* @alias RadarShedStage
* @constructor
* @param {Cesium.Viewer} viewer Cesium three-dimensional viewport.
* @param {Object} options options.
* @param {Cesium.Cartesian3} options.viewPosition The position of the observation point.
... |
let gameData = {};
const ApiSwgohHelp = require('api-swgoh-help');
const fetch = require('node-fetch');
const fs = require('fs');
let swapi, dataPath, apiVer, updated;
module.exports = {
fromPrefs: (swapiPrefs) => {
swapi = new ApiSwgohHelp(swapiPrefs);
return {
loadData: loadData,
getData: ... |
/* global loadFont constrain strokeWeight loadSound noCursor min max random mouseX mouseY noLoop PI arc dist atan2 noFill stroke loadImage image abs noStroke atan2 triangle CENTER rotate scale translate width height textAlign textSize textFont imageMode rectMode resetMatrix push pop rect fill createCanvas textFont back... |
var Delaunay;
(function() {
"use strict";
var EPSILON = 1.0 / 1048576.0;
function supertriangle(vertices) {
var xmin = Number.POSITIVE_INFINITY,
ymin = Number.POSITIVE_INFINITY,
xmax = Number.NEGATIVE_INFINITY,
ymax = Number.NEGATIVE_INFINITY,
i, dx, dy, dmax, xmid, ymid;
... |
import React, { useEffect, useState } from "react";
import Layout from "../components/layout";
import Accordion from 'react-bootstrap/Accordion';
import Button from 'react-bootstrap/Button';
import Tabs from 'react-bootstrap/Tabs';
import Tab from 'react-bootstrap/Tab'
import { navigate } from "gatsby";
import Modal fr... |
/*jslint node: true, vars:true */
"use strict";
var ctx ;
var ctximagedata;
// 8x8 Tiles: 0..149,
// Regular shapes: 150..1000, excluding: 153,158,159,160,161,168,186,187,194 and several others
var U7MAP='U7/STATIC/U7MAP';
var U7CHUNKS='U7/STATIC/U7CHUNKS';
var SHAPES_VGA='U7/STATIC/SHAPES.VGA';
var FACES_VGA='U7/STA... |
import _regeneratorRuntime from "babel-runtime/regenerator";
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]; } } } return target; };
... |
"use strict";
exports.__esModule = true;
var os = require("os");
var _codes_base = {
reset: "\u001B[0m",
bold: "\u001B[1m",
dim: "\u001B[2m",
italic: "\u001B[3m",
underline: "\u001B[4m",
inverse: "\u001B[7m",
hidden: "\u001B[8m",
strikethrough: "\u001B[9m",
black: "\u001B[30m",
r... |
/*global $, gon, Highcharts, params, console, queryStringToJSON, TableTools, time_series_chart_height, build_time_series_chart, build_page_title */
/*eslint no-undef: 0, no-console: 0 */
var datatables, i, j, tmp;
function build_time_series_charts (json){ // build time series line chart for each chart item in json
... |
//var p = require('bluebird');
var req = require('superagent');
var redux = require('redux');
var _filter = require('lodash/collection/filter');
var _uniq = require('lodash/array/uniq');
var _sort = require('lodash/collection/sortBy');
var createStore = require('react-redux').createStore;
var merge = Object.assign;
va... |
import SyncPromise from 'sync-promise';
import {createDOMException} from './DOMException';
import {IDBCursor, IDBCursorWithValue} from './IDBCursor';
import * as util from './util';
import * as Key from './Key';
import {setSQLForKeyRange, IDBKeyRange, convertValueToKeyRange} from './IDBKeyRange';
import IDBTransaction ... |
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// When running the script with `npx hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
con... |
"use strict";
import * as lib from './lib/lib.js';
import * as glMaths from './lib/webgl/webgl-maths.js';
import {Colour} from './lib/colour.js';
import {Mesh} from './lib/webgl/mesh.js'
import {Shader} from './lib/webgl/shader.js'
import {Vector3} from './lib/webgl/vector3.js'
//Scale down for ... |
// Copyright 2016 <NAME>. 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 la... |
/*
*页面Js交互:
* author:xc
* date: 2016
* contain: audio canvas css3 mousewheel 预加载等等;
*
*/
var oHeader = $('header');
var oContent = $('content');
var oNav = $('nav');
var aNavLi = oNav.getElementsByTagName('li');
var oArrow = $('arrow');
var oList = $('list');
var aListItem = getByClass(oList, 'listItem');
var oCo... |
/*global require, process, console */
"use strict";
var fs = require( 'fs' );
var isId = /^[A-Z0-9_]+$/;
// DB Tools
var parseDB = function ( text ) {
var lines = text.split( '\n' ),
db = [],
obj, id;
lines.forEach( function ( line ) {
line = line.trim();
// ID
if (... |
/*
* Bones Scripts File
* Author: <NAME>
*
* This file should contain any js scripts you want to add to the site.
* Instead of calling it in the header or throwing it inside wp_head()
* this file will be called automatically in the footer so as not to
* slow the page load.
*
* There are a lot of example functi... |
//----------------------------------------WINDOW/ELEMENT CONFIGURATION FUNCTIONS----------------------------------------
// get initial viewport width for element arrangement
let initWinWidth = (function() {
const maxWidth = 0.95*(window.innerWidth);
document.getElementById("parent").style.width = maxWidth + "px";
... |
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 Utility from './helper/utility.class.js';
import Attribute from './handlers/attribute.class.js';
import Model from './helper/model.class.js';
import Modal from './helper/modal.class.js';
import Object from './object.class.js';
import Assist from './helper/assist.class.js';
import ActionBox from './helper/actionb... |
/*
Notes on commenting:
- place comments before the function definition
- write the comment from the perspective of a programmer intending to use
the function, e.g. "set the current page for the given user_id",
"returns the current period"
*/
// temporary fix to get rid of Jquery throwing warning messages... |
/**
* Copyright (C) <NAME>
*
* Licensed under Apache 2.0
*
* USBTMC on WebUSB API
*/
'use strict';
class Webusbtmc {
#bcdUSBTMC;
#usbtmcInterfaceCapabilities;
#usbtmcDeviceCapabilities;
#bcdUSB488;
#usb488InterfaceCapabilities;
#usb488DeviceCapabilities;
#lastbulkoutbTag;
#bulkoutbTag;
#rtbbTa... |
/**
Javascript to download and render a map of a factorio world from an instance using websockets and canvas
It is its responsibility to handle:
* Display settings
* Ordering of canvases
* Querying slaves through master for map info
* Drawing of sprites defined in external files to canvas
* Handling input for ... |
// Copyright 2017 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 law... |
const {createHash} = require('crypto');
const {randomBytes} = require('crypto');
const asyncAuto = require('async/auto');
const asyncMap = require('async/map');
const asyncRace = require('async/race');
const asyncReflect = require('async/reflect');
const {bech32m} = require('bech32');
const {broadcastChainTransaction}... |
var isclicked = false;
// A geographic point of interest
class Point {
// latLon: a string of the form '42.887775, -73.810880'
// name: a short unique name
// desc: a longer descriptive name for the point
constructor(latLon, name, desc, waypoint) {
let x = latLon.split(/\,\s?/);
if (!x || x.length != 2... |
#!/usr/bin/env node
"use strict";
/**
* Read information model specification file in JSON format and generate an XML schema document (XSD).
*
* @author <NAME>
**/
const fs = require('fs');
const yargs = require('yargs');
const path = require('path');
const lineByLine = require('n-readlines');
const html... |
/*
Copyright (c) 2011 <NAME> (http://www.5p.dk/)
Copyright (c) 2011 <NAME> (http://paradoxxxzero.tk/)
Copyright (c) 2012 <NAME> (http://thomas.jossystem.se)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... |
$(document).ready(function(){
document.onkeydown = checkKey;
var substringMatcher = function(strs) {
return function findMatches(q, cb) {
// if(q=='') q = '/./';
// console.log(q);
var matches, substringRegex;
// an array that will be populated with substring matches
matches... |
var gdbVisitor = require('./gdbVisitor').gdbVisitor;
var gdbParser = require('./gdbParser').gdbParser;
var antlr4 = require('antlr4/index');
var debugController = require('./cpp/debugController').debugController;
var gdbVisitorImpl = function() {
gdbVisitor.call(this); // inherit default Visitor
this.gdbControll... |
import queryString from 'query-string'
import util from './plugin/util'
import {
getBattery,
getNetworkType,
} from './plugin/webApi'
import {
fetch
} from './plugin/fetch'
import {
SDK_VERSION,
SDK_VERSION_CODE,
WS_URI,
REGISTER_URI,
CONN,
BIND,
SECMSG,
PING,
KICK,
NOTIFY,
NOTITY,
U... |
"use strict"
const BLOCK_TYPE = 5
var makeSymbol = typeof Symbol !== 'undefined' ? Symbol : function(name) {
return 'symbol-' + name
}
/*
Two types of blocks, frozen and copy-on-write
Frozen - originating from JS objects
Object.freeze() js objects and use symbol for serialized representation
Frozen - originating fro... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = exports.dataMapping = exports.tokenize = exports.resolveVariableAndFilter = exports.isPureVariable = exports.resolveVariable = exports.pickValues = exports.getFilters = exports.registerFilter = exports.filters = exports.pars... |
// Copyright 2017 ODK Central Developers
// See the NOTICE file at the top-level directory of this distribution and at
// https://github.com/getodk/central-backend/blob/master/NOTICE.
// This file is part of ODK Central. It is subject to the license terms in
// the LICENSE file found in the top-level directory of this ... |
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var api = require("./lib/xbee-api.js");
var serialport = require("serialport");
var async = require('async');
var os = require('os');
var C = exports.C = api.Constants;
var Tools = exports.Tools = api.tools;
function XBee(options) {
Eve... |
const FROM_WORLD = 1,
FROM_CONTINENT = 2,
FROM_REGION = 3,
FROM_COUNTRY = 4,
FROM_OCEANIA = 5,
TO_CANADA = 1,
TO_PT = 2,
TO_CMA = 3;
var sgcI18nRoot = "lib/statcan_sgc/i18n/sgc/",
countryI18nRoot = "lib/statcan_countries/i18n/",
rootI18nRoot = "src/i18n/",
sgcDataUrl = "lib/statcan_sgc/sgc.json",
... |
// Paste "Renderer 1.1.1" code HERE ( https://github.com/d-cook/Render/releases/tag/1.1.1 )
// ----------------------
// ---- Console Info ----
// ----------------------
console.log(" ");
console.log(" .---------------------------------... |
var pontuacao = 0;
var vidaAtual = 3;
function fase() {
var cenario;
var camada;
var boneco;
// Movimentação do boneco
var setas;
var teclaPuloApertada = false;
var jaPulouNoAr = false;
// Gumbertos
var gravidadeGumberto = 250;
var velocidadeGumberto = 75;
var gumbertos;
// Nuvens
var nuvensVert... |
let thcPrice = 0;
let bnbPrice = 0;
let provider;
let signer;
let myAddress = '';
const WBNBAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
const WBNBAbi = [
"function balanceOf(address) public view returns (uint256)",
"function deposit() public payable",
"function withdraw(uint) public",
... |
import icon from "el/editor/icon/icon";
import {
LOAD,
CLICK,
POINTERSTART,
DRAGOVER,
PREVENT,
DROP,
DRAGSTART,
SUBSCRIBE,
SUBSCRIBE_SELF
} from "el/sapa/Event";
import { SVGFilter, SVGFilterSpecList } from "el/editor/property-parser/SVGFilter";
import { Length } from "el/editor/unit/Length";
import ... |
var domains = {
'cu': 'Cuba',
'it': 'Italia',
'be': 'Bélgica',
'us': 'USA',
'fr': 'Francia',
'ca': 'Canadá',
'es': 'España',
'cn': 'China',
'ru': 'Rusia',
'uy': 'Uruguay',
'do': 'R.Dominicana',
'hr': 'Croacia',
'co': 'Colombia'
};
var contagio = {
'importado': 0,
'introducido': 0,
'autoct... |
/***
* 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 React from "react";
import SatzEditListe from "./SatzEditListe";
import SatzEditOpt from "./SatzEditOpt";
import SatzZellListe from "./../common/SatzZellListe"; // Überschriften + Satze
// import SatzVorschau from "./SatzVorschau";
// import SatzTable from "./../SatzTable/SatzTable"; // Überschriften ... |
"use strict";
/**
* Shared functions and variables for both Map and Crown Solvers
*/
var columnLimit = 0,
rowLimit = 0,
attractionBonus = 0,
numLineBreaks = 0,
timeDelay,
remainingMice = 0;
var user = "map";
var EMPTY_SELECTION = "-";
var NULL_URL_PARAM = null;
var POPULATION_JSON_URL = "data/json/populat... |
'use strict';
var videojs = window.videojs = require('video.js');
require('./css/videojs.css'); // auto injected
var mime = require('./mime.js');
var util = require('./util.js');
var id3 = require('./id3.js');
var hlsjs_source_handler = require('@hola.org/hap.js/lib/hola_videojs_hls.js');
var flashls_source_handler = r... |
var helpers = {
id : function(id){
return document.getElementById(id);
},
show : function(e){
e.style.display="block";
},
hide : function(e){
e.style.display = "none";
//use apply with this
},
hideM : function(e){
var length = e.length;
var i = 0;
for(i;i<length;i++){
e[i].styl... |
import { nanoid } from 'nanoid';
import deepClone from 'clone';
function stringContains(str, text) {
return str.indexOf(text) > -1;
}
export const isObject = a =>
stringContains(Object.prototype.toString.call(a), 'Object');
// 克隆对象
export function clone(data) {
try {
return JSON.parse(JSON.stringify(data))... |
var Json;
var Sessione;
init();
function init(){
/*nascondo la sezione Preferiti all'inizio */
if (document.querySelectorAll('#sectionPref div').length==0) {
let p = document.getElementById("sezionePreferiti");
p.classList.add('hidden');
}
//Bottone informazioni Covid
const btnInfocovid = do... |
var _Translations = {};
//console.log("Declare", _Translations);
function t(key) {
return _Translations && _Translations[key] ? _Translations[key] : key;
}
function provideTranslations(translations) {
// console.log("provideTranslations() - provide", translations);
$.extend(_Translations, translations);
// consol... |
// Copyright 2015-2021, University of Colorado Boulder
/**
* Control for changing a Property of type {number}.
* Consists of a labeled value, slider and arrow buttons.
*
* Number Control provides accessible content exclusively through the slider, please pass accessibility related
* customizations through options ... |
import { createSelector } from 'reselect'
import throttle from 'lodash.throttle'
import { send } from 'redux-electron-ipc'
import { requestSuggestedNodes } from '@zap/utils/api'
import { updateNotification, showWarning, showError } from './notification'
import { fetchBalance } from './balance'
import { walletSelectors ... |
var BULK_ITERATION_TYPE = "bulk_iteration";
var WORKSET_ITERATION_TYPE = "workset_iteration";
/*
* Global variable that stores the pact plan as a map
*/
var idToObjectMap; // map that maps IDs to the objects
function getIterBoxHeight() {
var $inspector = $("<div>").css('display', 'none').addClass('it... |
/** Copyright 2018 Cisco and/or its affiliates
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 wri... |
import scrollIntoView from 'scroll-into-view';
import Delegator from './delegator';
import { Adder } from './adder';
import * as htmlAnchoring from './anchoring/html';
import { TextRange } from './anchoring/text-range';
import {
getHighlightsContainingNode,
highlightRange,
removeAllHighlights,
removeHighlight... |
/*
Copyright 2020 <NAME> at York Structural Biology Laboratory
*/
const COLORS = { 'L_GREY' : 'rgb(150, 150, 150)',
'VL_GREY' : 'rgb(200, 200, 200)',
'WHITE' : 'rgb(255, 255, 255)',
'BAR_GREEN' : 'rgb(90, 237, 141)',
'BAR_ORANGE' : 'rgb(2... |
/**
* Copyright (c) 2010, <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 ... |
var FilterOrderEnum = {
None: 1,
First: 2,
Second: 3,
Third: 4,
};
var Presets = {}
var precision = 0.00000000001
var nearZero = precision
var equation_decimals = 3
Presets['Slow'] = [[1.0, 0.0, 1, 1.0], [40.0, 10.0, 10.0, 100.0], FilterOrderEnum.First]
Presets['Fast Smooth'] = [[0.93, 0.92, 1, 0.398], [65.... |
//this contains all functions needed to draw the different views. Ideally this will be defined from an input file.
function drawAtoms(){
//used for the default view, hard sphere view, and sparse view
var radius = params.size*Math.sqrt(3)/4;
//draw the full spheres (this should be from an input file)
//corners
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("./error");
exports.DEFAULT_RESOURCES_DIRECTORY = 'resources';
exports.RESOURCE_TYPES = [
"adaptive-icon" /* ADAPTIVE_ICON */,
"icon" /* ICON */,
"splash" /* SPLASH */,
];
exports.RESOURCE_FORMATS = ["jpeg" ... |
var MM_PER_PIX = 4961 / 420 //* (window.devicePixelRatio || 1),
var lmd = {
POS_LEFT: 1,
POS_RIGHT: 2,
POS_MIDDLE: 3,
POS_BOTH: 4,
POS_MIDDLE_LEFT: 5, //中分左
POS_MIDDLE_RIGHT: 6, //中分右
MIN_VALID_TWO_SUBS: 10,
DEFAULT_ROAD_LINE: 0.5 * MM_PER_PIX,
DEFAULT_ROAD_COLOR: '#00EEEE',
DEFAULT_FACILITY_LINE: ... |
import { Meteor } from 'meteor/meteor';
import { Promise } from 'meteor/promise';
import { matchesCollection } from '../imports/collections.js';
var properties = [];
var propertyType = [];
var originDiffThreshold = 0;
var floatOffset = 1;
var searchThreshold = 10;
var timeout = 6000;
var matchmaking_start;
var nodeThr... |
import React, { useState, useEffect, useRef, useLayoutEffect } from 'react';
import { Howl } from 'howler'; // Howler manages sound effects
import chroma from 'chroma-js'; // Color are all generated and mixed using chroma.js
import Confetti from 'react-confetti';
import axios from 'axios';
import LeftSidebar from './co... |
import pathMatcher from '@skypager/runtime/lib/utils/path-matcher'
import { applyRoute } from '@skypager/runtime/lib/utils/router'
import md5File from 'md5-file'
import * as computedProperties from './file-manager/computed'
import * as actions from './file-manager/actions'
import Promise from 'bluebird'
import Memory f... |
'use strict';
const versions = [
'FICHIER GUITAR PRO v5.00',
'FICHIER GUITAR PRO v5.10'
];
const QUARTER_TIME = 960;
const QUARTER = 4;
module.exports = buf => {
let version;
let versionIndex;
const readVersion = () => {
version = readStringByte(30);
};
const readColor = () => {
let color = {... |
if (typeof window !== "undefined") {
var TA = require("./game/TaelinArena.fm");
var heroes_info = require('./assets/char-info.json');
// Loads all models
var models = require("./models/models.js");
var model_parse = require("./models/parser.js");
var model_packs = require("./models/packs.js");
function g... |
/*jshint bitwise: false, camelcase: false, quotmark: false, unused: vars */
/*global cordova, console */
"use strict";
function handleNfcFromIntentFilter() {
// This was historically done in cordova.addConstructor but broke with PhoneGap-2.2.0.
// We need to handle NFC from an Intent that launched the applic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.