text stringlengths 5.97k 41.2k |
|---|
/* global L */
/* jshint camelcase: false */
'use strict';
require('leaflet-draw');
var util = require('../util/util');
var MeasureControl = L.Control.extend({
includes: L.Mixin.Events,
options: {
polygon: {
allowIntersection: false,
drawError: {
color: '#f06eaa',
message: 'Polygo... |
// function to load JSON file synchonously before d3 rendering
function loadJsonFileSynch(file){
var ajaxresponse
$.ajax({
url: "data/"+file+".json",
async: false,
dataType: "json",
success: function (response) {
ajaxresponse= response;
}
});
return a... |
import React, { useState } from 'react';
import {Switch, Route, useRouteMatch, useHistory} from '@docusaurus/router'
import styles from './search.module.css';
import clsx from 'clsx';
import { Button, CircularProgress, Icon} from '@material-ui/core';
import { supported_sites, supported_filters, supported_sites_display,... |
const asyncAuto = require('async/auto');
const asyncUntil = require('async/until');
const {findKey} = require('ln-sync');
const {getChainFeeRate} = require('ln-service');
const {getChainTransactions} = require('ln-service');
const {getChannel} = require('ln-service');
const {getChannels} = require('ln-service');
const ... |
import React, { Component } from 'react';
import {Redirect} from 'react-router-dom';
import axios from 'axios';
import { message, TreeSelect, Select } from 'antd';
import 'antd/dist/antd.css';
import { httpRequest, removeAllData, readData, getConfigColor } from '../../../utils/toolsStorage';
import routes from '../..... |
import React , { Component } from 'react';
import Pagex from '../../../components/UI/Pagination/Pagination';
import axios from '../../../axios';
import { withRouter } from "react-router";
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import moment from 'moment';
import SpotExpense... |
var method = 'GET';
var url = '';
var header = {};
var body = '';
var send_type = 'remote';
var send_success = false;
var res_ip = '';
var res_body = '';
var res_header = {};
var res_cookie = '';
var res_code = 0;
var res_status = '';
var allow_origin = false;
var hst_idx = 0;
var hst = localStorage['history'] ? localS... |
/**
* How many last guesses to show in UI
* @type {number}
*/
const VISIBLE_GUESSES_HISTORY_LENGTH = 5;
/**
* How many last guesses to keep internally
* @type {number}
*/
const INTERNAL_GUESSES_HISTORY_LENGTH = 1000;
/**
* How many last previously chosen countries to account for
* when generating the next que... |
/*!
* YieldFarming
* Boilerplate for a Static website using EJS and SASS
* https://yieldfarming.info
* @author <NAME> -- https://yieldfarming.info
* Copyright 2021. MIT Licensed.
*/
$(function () {
consoleInit(main)
});
const loadVSDDAO = async (App, DAO, DOLLAR) => {
let [unstaked, totalSupply, totalCollateral, ... |
//////////////////////////////////////////////////////////////////////////////
// SequenceExtractor
//////////////////////////////////////////////////////////////////////////////
import WorkerFeatureExtraction from './WorkerFeatureExtraction';
import WorkerBaseContent from './WorkerPlotExtraction';
import utils from '... |
// balas
// November 12, 2018
const WebSocket = require('ws');
const SEED_INIT = 1;
const WIDTH = 1600;
const HEIGHT = 900;
const UPDATE_RATE = 1000/60;
const BALL_SPEED = 8;
const BALL_SIZE = 12;
const PLAYER_SPEED = 5;
const PLAYER_SIZE = 32;
const PLAYER_COLOR_L = '#47d147';
const PLAYER_COLOR_R = '#ff00ff';
c... |
/*
----------------------------------------------------------------------------
"THE BEER-WARE LICENSE" (Revision 42):
<<EMAIL>> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in... |
/* Copyright 2019 Romain "Artefact2" <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*jslint node: true */
'use strict';
const constants = require('byteballcore/constants.js');
const conf = require('byteballcore/conf');
const db = require('byteballcore/db');
const eventBus = require('byteballcore/event_bus.js');
const texts = require('./modules/texts.js');
const validationUtils = require('byteballcore... |
function setClick(elem, clb) {
elem.onclick = clb;
HTML.clickable(elem);
}
function getImage(r, s) {
let img = document.createElement("IMG");
img.src = "img/reg/" + r.commonName + ".png";
img.alt = r.name;
img.style = r.position.toString();
img.onmouseout = () => { HTML.hidden(View.get("#new1 f... |
/*
## License
Copyright (c) 2017 Z3 Development https://github.com/z3dev
All code released under MIT license
*/
const { CSG, CAG } = require('@jscad/csg')
const {BYBLOCK, BYLAYER} = require('./autocad')
//
// instantiate the given object (3dface) as a polygon
//
function instantiatePolygon (obj, layers, options) {... |
var Book = require('../models/Book.js');
var BookProp = require('../models/BookProp.js');
var History = require('../models/History.js');
var filter = require('../models/Filter.js');
var database = require("./database_setting.js");
module.exports = function(app) {
app.get('/admin/add/book/:isbn', filter.adminAuthorize... |
//TODO:
//* Logic to update message in channel and create new one if none found
//Events:
//Homeworld assault start
//Assault fail
//assault success
//Defend event start
//Defend event success
//Defend event fail
//
//Region 0 is super earth
var Discord = require('discord.js');
var fs = require('fs')
var request = r... |
import React, {Fragment} from 'react'
import {Trans, Plural} from '@lingui/react'
import {t} from '@lingui/macro'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import STATUSES from 'data/STATUSES'
import Module, {DISPLAY_MODE} from 'parser/core/Module'
import {TieredSuggestion, SEVE... |
var defaultAvatar = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Avatar_Picol_icon.svg/2000px-Avatar_Picol_icon.svg.png"
var ForceArtistDiagram = function (where,static) {
var that = this;
this.usingAvatar=true;
this.artists = [];
this.genres = [];
this.clusters = [];//name: nodes: links: expa... |
import { DEBUG } from '@glimmer/env'; // This is a duplicate utility from @glimmer/util because `@glimmer/validator`
// should not depend on any other @glimmer packages, in order to avoid pulling
// in types and prevent regressions in `@glimmer/tracking` (which has public types).
const symbol = typeof Symbol !== 'unde... |
const TuyaDevice = require("tuyapi");
const packageInfo = require("../package.json");
// ms 10/06, to get clean debug: SET DEBUG = tuya-smart-device (TuyAPI)
const debug = require("debug")("tuya-smart-device");
const CLIENT_STATUS = {
DISCONNECTED: "DISCONNECTED",
CONNECTED: "CONNECTED",
CONNECTING: "CONNECTING"... |
// if true, will not seed the network with any orders
const tokenTxnsOnly = true;
var BZxProxy = artifacts.require("BZxProxy");
var BZxProxySettings = artifacts.require("BZxProxySettings");
var BZxTo0x = artifacts.require("BZxTo0x");
var BZx = artifacts.require("BZx");
var BZxVault = artifacts.require("BZxVault");
va... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// Code by Frameck (https://github.com/Frameck/Scriptable)
// Budgeting widget large, version 1.3
String.prototype.insert = function(index, string) {
if (index > 0)
{
return this.substring(0, index) + string + thi... |
const apiKeyTaste = "406643-ThomasTD-KL55K15Z";
const apiKeyPoster = "5cecfea7";
var pastSearches = [];
var searchHistoryDiv = document.querySelector("#searchHistory")
//-----Allows the 'switch' to happen once the main card has been clicked-----
$('.contBtn').on('click', function() {
$('.landingCard').attr('style',... |
/*
Builder.js
Scans AST and builds internal model
(c) 2013-2018 musictheory.net, LLC
MIT license, http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
const _ = require("lodash");
const esprima = require("../ext/esprima");
const Syntax = esprima.Syntax;
const OJError ... |
/*
* Copyright (c) 2016-present, IBM Research
* Licensed under The MIT License [see LICENSE for details]
*/
"use strict";
const HKLib = require("hklib");
const Node = HKLib.Node;
const Trail = HKLib.Trail;
const Connector = HKLib.Connector;
const Link = HKLib.Link;
const Context = HKLib.Context;
... |
// --- Tabs
var tabslinks = document.querySelectorAll('.tabs-menu-link');
var tabscontents = document.querySelectorAll('.tabs-content-item');
for (index = 0; index < tabslinks.length; index++) {
var link = tabslinks[index];
link.addEventListener('click', function(e) {
e.preventDefault();
var ... |
const fs = require('fs');
const path = require('path');
const readdirp = require('readdirp');
const _ = require('underscore');
const Parser = require('i18next-scanner').Parser;
const customJsHandler = function (key, options) {
currentModule.parser.set(key, options);
};
const customHtmlHandler = function (key, opt... |
const { encodeAddress, decodeAddress } = require('@polkadot/keyring');
const pUtil = require('@polkadot/util');
const Web3 = require('web3');
const { addClassVerified, removeClassVerified, addClassWaiting, removeClassWaiting } = require('./util');
const { createType, TypeRegistry } = require('@polkadot/types');
const... |
/**
* CI Build Script
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
*/
var path = require('path'),
fs = require('fs-extra'),
async = require('async'),
http = require('http'),
request = require('request'),
colors = require('colors'),
temp = require('temp'),
appc = require('node-appc'),
exec ... |
$(document).ready(function () {
$("#layout-cart").remove();
//Set money
$.fn.digits = function () {
return this.each(function () {
$(this).text($(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"));
})
}
updatePrice();
//Change Detail
// var boxid_old = "D004... |
"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... |
/* Ethical ad publisher JavaScript client
*
* Loads placement from Ethical Ad decision API. Searches for elements with
* `ethical-ad` data binding attributes and uses these attributes to query the
* decision API.
*
* This is native JavaScript, no JQuery. It uses the API JSONP interface to get
* around CORS and r... |
/*
Copyright 2016 First People's Cultural Council
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 w... |
// Copyright 2020-2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//TODO: Add a top hackers page, ranked by num of projects.
var spawn = require("child_process").spawn;
const { fork } = require('child_process');
var convert = require('mongoose_schema-json');
var MongoClient = require('mongodb').MongoClient;
const async = require('async');
async function asyncForEach(array, callback)... |
import {grass_09004800, } from "../../../../../textures/grass.js"
import * as Gbi from "../../../../../include/gbi"
const wf_seg7_lights_070092F0 = Gbi.gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
)
const wf_seg7_vertex_07009308 = [
{ pos: [ -255, 282, -1151 ], flag: 0, tc: [ 4822, 0... |
import { Mesh, Scene, PerspectiveCamera, PlaneBufferGeometry, SphereBufferGeometry, AmbientLight, DirectionalLight, WebGLRenderer, sRGBEncoding, PCFSoftShadowMap, AxesHelper, MeshBasicMaterial, PlaneHelper, CanvasTexture, Sprite, SpriteMaterial, Color, Fog } from 'three';
import { EntityManager, Time } from 'yuka';
imp... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _DOMMouseMoveTracker = _interopRequireDefault(require('./DOMMouseMoveTracker'));
var _Keys = _interopRequireDefault(require('./Keys'));
var _react = _interopRequireDefault(require('react'));
var _propTyp... |
// Central registry for messages.
// `centralMessages` contains all details of a message-id except its standard texts
// (`standardTexts` exists for that). Only `severity` is required, all other
// properties are optional.
// The user can specify "severity wishes" via the option `severities`. Errors
// that don't h... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
// Copyright (c) 2019, <NAME> and contributors
// For license information, please see license.txt
cur_frm.add_fetch('customer', 'customer_name', 'customer_name')
cur_frm.add_fetch('customer', 'customer_classification', 'customer_classification')
cur_frm.add_fetch('item_code', 'application_name', 'item_name')
cur_frm.a... |
/*!
=========================================================
* Argon Dashboard React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:/... |
// Incoming/outgoing attacks
var mainTable = $("#overviewtable");
var incomingTable = $("#show_incoming_units table.vis:first");
var outgoingTable = $("#show_outgoing_units");
if (incomingTable.size() == 1 || outgoingTable.size() == 1) {
if (incomingTable.size() == 1) {
// tagger - add header
// inputBoxWidt... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extendNotification = exports.computeNotificationId = exports.setNodeReady = exports.setNodeStatus = exports.removeValue = exports.extendMetadata = exports.extendNotificationValue = exports.extendValue = exports.extendCC = exports.rem... |
let zoom = d3.zoom()
.scaleExtent([1, 9])
.on("zoom", move);
let c = document.getElementById('container');
let width = c.offsetWidth;
let height = width / 2;
//offsets for tooltips
let offsetL = c.offsetLeft + 20;
let offsetT = c.offsetTop + 10;
let topo, projection, path, svg, g;
let tooltip = d3.select("#... |
import { scaleLinear } from 'd3-scale';
import _ from 'lodash/fp';
import { dist, mult, diff, add, normalize, divide } from './vector';
const mld = require('ml-distance');
// lodash/fp random has a fixed arity of 2, without the last (and useful) param
const random = _.random.convert({ fixed: false });
// A basic impl... |
/*
SDK with the server
All communications with server MUST be performed through this SDK
(c) <NAME> 2020
*/
/*
* Websocket layer - internals
*/
var api_ws;
// Flag - is the websocket authenticated
// Note: the websocket MUST authenticate as soon as it connects - that's
// important to receive p... |
import React, { useState, useEffect, useRef } from "react";
import PropTypes from "prop-types";
import * as THREE from "three";
import GLTFLoader from "three-gltf-loader";
import OrbitControls from "three-orbitcontrols";
import { FBXLoader } from "./three.modules/FBXLoader";
import { OBJLoader } from "./three.modules/O... |
window.onerror = function () {
return false;
};
window.defaultStatus = "";
function makeZflag() {
this.NS = document.layers ? 1 : 0;
this.IE = document.all ? 1 : 0;
this.gecko = document.getElementById ? 1 : 0;
this.mac = (navigator.appVersion.indexOf("Mac") > -1) ? 1 : 0;
this.opera = (naviga... |
const apiVersion=2; //if changing interface in this file update /template/js/api.js to match
const config=require('./config');
const mainConfig=config.get("main");
const fs=require('fs');
const fsPromises = fs.promises;
const mime= require('mime-types');
const ipfsList=require('./ipfs_lists');
const ipfs=re... |
import * as THREE from './js/three.module.js';
import { BoxLineGeometry } from './jsm/BoxLineGeometry.js';
import { VRButton } from './jsm/webxr/VRButton.js';
import { XRControllerModelFactory } from './jsm/webxr/XRControllerModelFactory.js';
import { GLTFLoader } from './jsm/loaders/GLTFLoader.js'
import { OBJLoader }... |
import React from 'react';
import { FlatList, Image, View, TouchableOpacity, Dimensions, ActionSheetIOS, RefreshControl, Modal, Geolocation, Linking } from 'react-native';
import { RkText, RkCard, RkStyleSheet, withRkTheme } from 'react-native-ui-kitten';
import {Actions} from 'react-native-router-flux';
import Content... |
const { assert } = require('chai');
const anchor = require('@project-serum/anchor');
const common = require('@project-serum/common');
const nacl = require('tweetnacl');
nacl.util = require('tweetnacl-util');
const {
TOKEN_PROGRAM_ID,
ASSOCIATED_TOKEN_PROGRAM_ID,
Token
} = require("@solana/spl-token");
con... |
/*
Lambda Calculus evaluator supporting:
- unlimited recursion
- call by need
- fast (ish?) evaluation
- shortform syntax
And additional features:
- debugging aids
- predefined encodings
- purity modes
Written by
JohanWiltink - https://github.com/JohanWiltink
Kacarott - https://github.com/Kacarott
*/
/... |
import React, {useEffect} from "react";
import MainMenu from "../../components/main-menu/main-menu";
import Button from "@material-ui/core/Button";
import RatingItem from "../../components/rating-item/rating-item";
import InputItem from "../../components/input-item/input-item";
import DatePicker from "react-datepicker"... |
$(function() {
$('#totalProposta').keyup(function() {
var valor = $('#totalProposta').val();
valor = valor.replace('R$', '');
valor = valor.replace(',00', '');
valor = valor.replace('.', '');
if (valor == '') {
... |
const regExpression = /|([^|]*)|/g
if (window.location.host !== "www.pixcel.ml") {
window.location.href = "https://www.pixcel.ml/home"
}
const urlSearchParams_ = new URLSearchParams(window.location.search);
const params_ = Object.fromEntries(urlSearchParams_.entries());
document.getElementById("nameMod").addEventList... |
"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];
... |
const BOUNDS = {
width: 360,
height: 360,
depth: 1200,
splitX: 6,
splitY: 6,
splitZ: 20
};
const MESH = { color: 0xffaa00, wireframe: true };
const VIEW_ANGLE = 45,
NEAR = 0.1,
FAR = 10000,
CAMERA_Z = 600,
INIT_Z = 15,
BLOCK_SIZE = BOUNDS.width / BOUNDS.splitX;
const CUBE_FRA... |
import {bind, extend, _to_array, copy, clone, isArray, uid, _power_array} from "../webix/helpers";
import {assert} from "../webix/debug";
import DataStore from "../core/datastore";
import DataDriver from "../load/drivers/index";
// #include core/datastore.js
// #include core/bind.js
// #include core/treemove.js
cons... |
import React, { Component } from "react";
import client from "../feathers";
import SecurityConfirmPassword from "./security-confirm-password";
import UsernameChange from "./username-change";
import Cropper from "react-easy-crop";
import Pica from "pica";
import Slider from "@material-ui/core/Slider";
import {
... |
var chr_number="";
var transcript_id="";
var gene_id="";
var type="";
var gene_start="";
var gene_end="";
var transcript_start="";
var transcript_end=""
var strand=""
var seq_array_tmp="";
//Document Ready function
$(document).ready( function() {
$('#tab-container').easytabs({
animationSpeed: "fast",
updateHash: ... |
/*
MIT License
Copyright (c) 2019 <NAME>, <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... |
/* eslint-env browser */
/* eslint-disable no-multi-str */
function cancelDefault (e) {
e.preventDefault()
e.stopPropagation()
}
const warningMsg = () => 'Leaving will interrupt transfer?\n'
const rmMsg = () => !confirm('Remove file?\n')
const ensureMove = () => !confirm('move items?')
const isRo = () => window.r... |
'use strict';
/**
* Protected mode is enabled by adding data-protected as an attribute on the body tag and reloading
* the page. Afterwards, all attributes set and elements inserted will automatically be transient.
* To create an element that's approved to be in the DOM (i.e. not transient), the element should
* be... |
'use strict';
var Steppy = require('twostep').Steppy,
_ = require('underscore'),
createNode = require('./node').createNode,
EventEmitter = require('events').EventEmitter,
inherits = require('util').inherits,
logger = require('./logger')('distributor'),
deepmerge = require('deepmerge');
function Distributor(par... |
inlets = 2
outlets = 6
// get a reference to "thegen"'s embedded gen patcher:
var varnameCount = 0
// store inlet&outlet indexes per node
var inletsTable = new Array();
var outletsTable = new Array();
//store varnames per node
var varnamesTable = new Array();
var object = {};
var nodeName;
var counter = 1;
var fee... |
Object.defineProperty(exports, "__esModule", { value: true });
var dasm = require("./dasm");
// Re-exports
var resolveIncludes_1 = require("./resolveIncludes");
exports.resolveIncludes = resolveIncludes_1.default;
// Configuration constants
var FILENAME_IN = "file.a";
var FILENAME_OUT = "file.out";
var FILENAME_LIST = ... |
import inherit from 'common/inherit';
import detectFontChange from 'common/layout/detect-font-change';
import InteractiveComponent from 'common/controllers/interactive-component';
import SelectBoxView from 'common/views/select-box-view';
import _ from 'underscore';
function disable($el) {
$el.attr('disabled', true... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const child_process = require("child_process");
const vscode = require("vscode");
const path = require("path");
const settings = require("./../common/configSettings");
const logger = require("./../common/logger");
const utils_1 = require("../c... |
'use strict';
const TruffleContract = require('@truffle/contract');
const Promise = require('bluebird');
const chalk = require('chalk');
const merge = require('deepmerge');
const fs = require('fs');
const yaml = require('js-yaml');
const objectMapper = require('object-mapper');
const ora = require('ora');
const path =... |
import {calcMD5} from './md5';
import Popper from 'popper.js';
const TYPES = {
TOAST: 'toast',
DEFAULT: 'pop-up',
TOP: 'top',
BOTTOM: 'bottom'
}
class YodaGuides {
init(getDataFromApp, apiHost) {
this.apiHost = apiHost;
this.sendReady();
return getDataFromApp().then((data... |
export const COUNTRY_LIST = {
AF: { lang: { iso: 'AFGHANISTAN' } },
AL: { lang: { iso: 'ALBANIA' } },
DZ: { lang: { iso: 'ALGERIA' } },
AS: { lang: { iso: 'AMERICAN SAMOA' } },
AD: { lang: { iso: 'ANDORRA' } },
AO: { lang: { iso: 'ANGOLA' } },
AI: { lang: { iso: 'ANGUILLA' } },
AG: { lang: { iso: 'ANTIG... |
class BaseInstrument extends TemplateElement {
constructor() {
super();
this.urlConfig = new URLConfig();
this.frameCount = 0;
this.highlightList = [];
this.backgroundList = [];
this._lastTime = 0;
this._deltaTime = 0;
this._frameLastTime = 0;
... |
// inherit() returns a newly created object that inherits properties from the
// prototype object p. It uses the ECMAScript 5 function Object.create() if
// it is defined, and otherwise falls back to an older technique.
function inherit(p) {
if (p == null) throw TypeError(); // p must be a non-null object
if (Obj... |
var svgContainer = d3.select("#svg-container");
var skyImage = svgContainer;
svgContainer.on("click", function(){
closeColorContainer();
});
function desenhar(imageMetaData) {
var imgSize = imageMetaData.size || {};
svgContainer.selectAll("*").remove();
svgContainer
.attr("width", imgSize.width)
.attr("... |
import rtdaUtil from './rtdaUtil'
import echarts from 'echarts'
/** 历史遗留问题,实时曲线图单独开一个 */
function RtdaLineChart(rtda,chartDiv,rtdaDom)
{
var lastValue = null;//记录下最后一次的有效值
var chartDiv = chartDiv;
//记录下初始div的bounds,当resize的时候,可以通过rtda的canvasToScreen()计算新坐标
var orgBound = {
x:Number(rtdaDom.getAttribute('orgX'))... |
var path = d3.geoPath();
var mapa ;
var padding = 1;
var mapPath;
var readyCb ;
var isSmallDevice = window.innerWidth < 840 ? true : false;
var height = isSmallDevice ? 568 : 800;
var width= isSmallDevice ? window.innerWidth * 1.25 : 800 ;
var distanceLimit = 50;
var colorScale = d3.scaleOrdinal()
.domain(["Toda... |
import React, { useEffect, useState, useRef } from "react";
import PageTitle from "../Layout/PageTitle";
import {
Table,
Divider,
Tag,
Card,
Popconfirm,
Select,
Input,
Button,
Space
// Col,
// Row,
// Avatar,
// Image
} from "antd";
import "./style.css";
import {
getUsersService,
toggleWebsiteSeen,
getR... |
//const idb = require('idb');
const dbName = 'mws_DB';
const version = 2;
const DOMAIN = 'http://localhost:1337';
const RESTAURANT_STORE = 'restaurants'; //for store name
const REVIEWS_STORE = 'reviews'; // for store name'
const POST_HEADERS = {
'Accept': 'application/json',
'Content-Type': 'applicat... |
import React,{useState , useEffect}from "react";
import { useForm , Controller } from "react-hook-form";
import txtC from "../../text-config/common.json";
import { BrowserRouter as Router, useParams } from "react-router-dom";
import FactoryApis from "../../apis/FactoryApi";
import gApis from "../../apis/GlobalApi";
imp... |
import React, { Component, Fragment } from 'react';
import { Modal, Icon, Row, Col, Spin, Button } from 'antd';
import Media from 'react-media';
import { connect } from 'dva';
import AdUpload from '@/components/AdUpload';
import { Document, Page } from 'react-pdf';
import Zmage from 'react-zmage';
import { queryFileLis... |
"use strict";
var _Object$keys2 = require("@babel/runtime-corejs3/core-js-stable/object/keys");
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
var _O... |
// <NAME>
// 11402148
// import source
// http://bl.ocks.org/NPashaP/96447623ef4d342ee09b for bar and piechart
// sums all categories in object
function sum( obj ) {
var sum = 0;
for( var el in obj ) {
if( obj.hasOwnProperty( el ) ) {
sum += parseFloat( obj[el] );
}
}
return sum;
}
// change t... |
var angular = require('angular');
var router = require('angular-ui-router');
require('./components/assessment.html');
require('./components/notices.html');
require('./components/user.html');
require('./components/user_detail.html');
require('./components/role.html');
require('./components/health_ministry.html');
requi... |
// Copyright [2021] [Banana.ch SA - Lugano Switzerland]
//
// 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 ap... |
//Base URL
var url1 = window.location.href; // Returns full URL
var array1 = url1.split('.');
var sundomain1 = array1[0].split('//');
//alert(masterUrl);
var server_baseurl = "http://localhost/mockexam/index.php";
//var server_baseurl = "http://siddhiglobal.net/acceptance/mockexam/index.php";
//****************** ... |
/*
* Copyright 2020 <NAME>
*
* 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 wr... |
import React, { useState, useEffect } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSearch, faVihara } from "@fortawesome/free-solid-svg-icons";
import {
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CFormInput,
CRow,
CCol,
CCard,
CButton,
CCardText,
C... |
var http = require("http");
var axios = require("axios");
var fs = require("fs");
var static = require("./static.js");
var { parse } = require("querystring");
// Funcao auxiliar
function recuperaInfo(request, callback) {
if (request.headers["content-type"] == "application/x-www-form-urlencoded") {
let body = "";... |
//
// Copyright 2021 XiaoJSoft Studio. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.md file.
//
//
// Imports.
//
// Imported modules.
const Lc3Fs =
require("./../common/fs");
const Lc3Nms =
require("./../common/nms");
const Lc3T... |
/**
* Variables
*/
var tourIndex;
var entityType = null;
var searchQuery;
var isEntitySpecific = false;
var contactable;
var searchFields = ['displayName'];
var selectedSort = new ReactiveVar();
selectedSort.set({field: 'dateCreated', value: -1});
var sortFields = [
{field: 'dateCreated', displayName: 'Date'},
... |
#!/usr/bin/env node
// conan2nix
// convert conan requirements to nix expressions
// generate version pins of conan dependencies
// similar to cargo2nix, cabal2nix, etc.
// license: "public domain" or "CC0-1.0"
// author: milahu, date: 2021-04-24
// usage of output file conancache.nix in default.nix:
// conancache =... |
const alarmDatabase = require('../../models/alarm');
const moment = require('moment');
const { MessageActionRow, MessageButton } = require('discord.js');
module.exports.run = async (client, message, args, embed) => {
const row = new MessageActionRow()
.addComponents(
new MessageButton(... |
import React, { memo, useState, useContext, useEffect, useCallback } from 'react';
import Modal from '../../common/Modal';
import { useDispatch, useSelector } from 'react-redux';
import {
DialogTitle,
DialogContent,
DialogActions,
Grid,
makeStyles,
LinearProgress,
FormControlLabel,
Checkbox,
... |
import { useApolloClient, useQuery } from '@apollo/react-hooks';
import { Alert, Button, Cascader, Checkbox, Col, Form, Input, InputNumber, message, Radio, Row, Select } from 'antd';
import React, { useContext, useEffect, useState } from 'react';
import ImageCropper from '../../../../components/ImageCropper';
import Us... |
"use strict";
//--------- Variables form-----------
// PALLETES INPUTS
const inputBlue = document.getElementById("pallete-blue");
const inputRed = document.getElementById("pallete-red");
const inputGrey = document.getElementById("pallete-grey");
const inputGum = document.getElementById("pallete-gum");
const inputPurp... |
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import axios from "../features/utils/api-interceptor";
const initialState = {
textsStatus: "idle",
textsError: null,
annotationMode: "entity",
selectedTokens: {},
relations: null,
entities: null,
selectMode: {
active: false,
tokenI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.