text
stringlengths
8.5k
48.7k
import "./budget_measures_panel.scss"; import text1 from "./budget_measures_panel.yaml"; import text2 from "../../../../partition/budget_measures_subapp/BudgetMeasuresRoute.yaml"; import { Fragment } from 'react'; import MediaQuery from 'react-responsive'; import { formats, Subject, businessConstants, util_co...
/* * Copyright 2015 <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 { TexBDGal, TexBDXZ } from './TexBDGal.js'; import { MBPic } from './MBPic.js'; //import { GalleryXZ } from './GalleryXZ.js'; import { BlokGal } from './BlokGal.js'; import { SwitchPage } from '../../component/ui/SwitchPage.js'; export class TextureBD { constructor(menu, fun) { var self=this; ...
const {hash} = require('../../src'); const hexdig = hash('hexdig'); const alpha_1 = hash('alpha_1'); const digit_1 = hash('digit_1'); const regexp = ` ctl1 \\x00|[\\x01-\\x08] ht \\x09 lf \\x0A ctl2 [\\x0B-\\x0C] cr \\x0D ctl3 [\\x0E-\\x1F] sp \\x20 '!' \\x21 '"' \\x22 '#' \\x23 '$' \\x24 '%' ...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert} from 'chrome://resources/js/assert.m.js'; import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; import {$} from 'chrome://resourc...
/* PRESCRIPTION RELATED */ var lens; function clearLens () { lens = { prescription : null, tabledata : null, table : null, points : null, pointsTable : null, raphael : { constructions: [] }, ...
document.addEventListener("DOMContentLoaded", async (event) => { // Snapshot functions serverUpdateJudgeCard() serverUpdateJudge() serverSubmittedCards() serverGameStatus() // deal 5 cards on page load let numOfCards = 5 dealCard(numOfCards) isUserAdmin() }); // gets cards w...
var state = 0; //-1: starting, 0: not yet started, 1: night, 2: day, 3: finished var dayStart = false; //true = เรื่มด้วยกลางวัน, false = เริ่มด้วยกลางคืน var dayDuration = 60; //ระยะเวลากลางวัน(วินาที) var nightDuration = 30; //ระยะเวลากลางคืน(วินาที) var dayCount = 0; //กลางวัน เริ่มครั้งที่ 0 var nightCount = 0; ...
//require all op implementations and reduce them to a single object var ops = [ require('./algorithms'), require('./misc'), require('./pc'), require('./read'), require('./rmw'), require('./write') ].reduce(function(p, c){ for(var k in c) { p[k] = c[k]; } return p; }, {}); /...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var PropTypes = _interopDefault(require('prop-types')); var history = require('history'); var warning = _interopDefault(require('tiny-warning'...
import { basename, extname, sep } from "./safe/path.js" import COMPILER from "./constant/compiler.js" import ENTRY from "./constant/entry.js" import CachingCompiler from "./caching-compiler.js" import OwnProxy from "./own/proxy.js" import Package from "./package.js" import SafeObject from "./safe/object.js" import c...
import THREE from '../three'; import XrScene from './xr-scene'; import { keyboard } from '../controls/keyboard-controls'; import TriggerMesh from '../trigger'; import wallTxUrl from '../../assets/textures/laser-room/wall/wall.jpg'; import floorTxUrl from '../../assets/textures/laser-room/floor/floor_diff.jpg'; import d...
/* Identity management and indexing for RDF * * This file provides IndexedFormula a formula (set of triples) which * indexed by predicate, subject and object. * * It "smushes" (merges into a single node) things which are identical * according to owl:sameAs or an owl:InverseFunctionalProperty * or an owl:Funct...
/** * Owghat script * * @Author: <<NAME>> * @Email: <mb.programmer at yahoo.com> * @Website: <http://www.reckless.ir> * @Github: <https://www.github.com/mb-programmer> */ var MyMath = new function() { this.sind = function(x) { return(Math.sin(Math.PI / 180.0 * x)); }; this.cosd = fun...
/* * DragZoomControl Class * Copyright (c) 2005-2007, <NAME>, <EMAIL> * * Back Button functionality * Copyright (c) 2007, <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 *...
/*jslint node: true */ "use strict"; var async = require('async'); var storage = require('./storage.js'); var archiving = require('./archiving.js'); var objectHash = require("./object_hash.js"); var db = require('./db.js'); var mutex = require('./mutex.js'); var constants = require("./constants.js"); var graph = requir...
/*-------------------------------------------------------------------- Scripts for creating and manipulating custom menus based on standard <ul> markup Version: 3.0, 03.31.2009 By: <NAME> (<EMAIL>) and <NAME> (<EMAIL>) http://www.filamentgroup.com * reference articles: http://www.filamentgroup.com/lab/jquery_ipod_s...
import { Models } from "../base"; import { version as js_version } from "../version"; import { logger } from "../core/logging"; import { LODStart, LODEnd } from "../core/bokeh_events"; import { HasProps } from "../core/has_props"; import { Signal0 } from "../core/signaling"; import { is_ref } from "../core/util/refs"; ...
/* Copyright 2019 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ 'use strict'; import './chart-legend.js'; import './cp-input.js'; import './cp-loading.js'; import './expand-button.js'; import ChartBase from './chart...
/*Copyright 2018 Bang & <NAME> 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, publish, distribute, sublice...
import boxIntersect from 'box-intersect'; import classifyPoint from 'robust-point-in-polygon'; // Configs import { GLOBALS } from './configs'; // Components import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack'; // Services import { tileProxy } from './services'; // Utils import { colorToHex, trackU...
//--------------------------------------------------------------------- // Nano P2PoW - Client in JavaScript // // Copyright (c) 2020 Anarkrypto // // URL: http://github.com/anarkrypto/p2pow // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license.php //---------------------------------...
"use strict"; var Donation = {}; Donation.bInitialized = false; Donation.iCurrentTab = 0; Donation.aCurrentColor = [[-1, -1, -1], [-1, -1, -1], [-1, -1, -1], [-1, -1, -1]] Donation.aCurrentEffect = [-1, -1, -1, -1] Donation.aEyeParticles = [2, 3, 4, 5, 8] Donation.tColorIndex = { '#d03d33': 0, '#d11fa1': 1, '...
// Here begins rollups/hmac-sha1.js /* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by <NAME>. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS = CryptoJS || function (g, l) { var e = {}, d = e.lib = {}, m = function () { }, k = d.Base = { extend: function (a) { m.pro...
chrome.storage.sync.get({ pub_key: null, priv_key: null, when_to_send: null, dollar_tip_amount: null, daily_tip_limit: null, one_per_address: null, beep_on_tip: null, blacklist_or_whitelist: null, domain_list: null, interval_seconds: null, miner_fee: null, giveaway_partic...
$(window).on('load', function(){ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { $('body').addClass('ios'); }; $('body').removeClass('loaded'); }); $(function(){ /* ---------------------------------------------- /* * Fixed footer /* -------------------------------------------...
const { Readable } = require('stream'); const url = require('url'); const http = require('follow-redirects').http; const https = require('follow-redirects').https; const fs = require('fs'); const zlib = require('zlib'); const gtfsrt = require('gtfs-realtime-bindings').transit_realtime; const uri_templates = require('ur...
function State(canvasId, debugDivId, hudBackCanvasId, hudFrontCanvasId, pointsDivId, levelDivId) { this.canvas = document.getElementById(canvasId); this.startTime = 0; this.enemies = []; this.bullets = []; this.explosives = []; this.updateHud = true; this.absoluteMove = true; this.play...
const RESOURCES = { "en-US": { Label: { ProgrammingLanguages: "Programming Languages", RevisionControl: "Revision Control", President: "Vice Director, Director", WalkingaroundTaiwan: "Walking Around Taiwan", MandatoryMilitaryService: "Mandatory Military Service", OutsourcedProgrammer: "Outsourc...
// more docs: https://www.npmjs.com/package/call-of-duty-api // psn, steam, xbl, battle, uno require('dotenv').config(); // discord init const Discord = require("discord.js"); const client = new Discord.Client(); // init cod-api module const API = require('call-of-duty-api')(); // use this function to get the m...
/** * Common functions between client and server * * Copyright 2013-2019 bluefox <<EMAIL>> * * MIT License * */ 'use strict'; const stream = require('stream'); const Writable = stream.Writable; const memStore = {}; const util = require('util'); const path = require('path'...
'use strict'; function navigationStack(currentView) { var transitions = { 'left-right': { from: 'view-left', to: 'view-right'}, 'top-bottom': { from: 'view-bottom', to: 'view-top'}, 'right-left': { from: 'view-right', to: 'view-left'}, 'bottom-top': { from: 'view-top', to: 'view-bottom'}, 'none'...
var current_range = false; var PDFTOOLS = { name: "translatedocx_new" } var skip_simple_viewer = true; var document_type = "pdf"; if(typeof operation_id=='undefined'){ operation_id = guid(); } $(document).on("click", "#download_file", async function(e){ if(document_type=='pdf'){ e.preventDefault(); await cre...
const { EventEmitter } = require('events') const DHT = require('dht-rpc') const sodium = require('sodium-universal') const cenc = require('compact-encoding') const NoiseSecretStream = require('noise-secret-stream') const Timer = require('./lib/timer') const Holepuncher = require('./lib/holepuncher') const messages = re...
/* * Copyright 2018 <NAME>, 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 ...
/* The contents of this file are subject to the Mozilla Public * License Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS * IS" b...
/* Core.js:Front-End Interface logic pieced this crap together while I was still new to both python & js,didn't even know what Promise is... A lot of callbacks are involved,performance will be sucky for sure... XXX : Rewrite & cleanup */ /* Initalizing */ params = urlParams() function initFFTWindow()...
 var _originalX = 0; var _originalY = 0; var _cellXNum = 80; var _cellYNum = 50; var _chartWidth = 1000; var _chartHeight = 630; var _magnetism = 15;//磁力 var circleR = 25;// 圆形半径 var rectWidth = 60;// 矩形长 var rectHeight = 40;// 矩形高 var drawMode = 'move';//模式 move移动 line连线 var _paper = null; var ifMouseDown = f...
"use strict"; const num_agents = 10; const map_scale = Math.sqrt(num_agents); const sensor_range = 85 * 4; const scale = 0.6 / map_scale const canvas = { width: 700 * map_scale, height: 500 * map_scale } const chartcanvas = { width : 400, height : 150 } let spec = `var num_inputs = 36; // 9 eyes...
/* Spellcast's Web Client Extension Copyright (c) 2014 - 2021 <NAME> The MIT License (MIT) 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...
const data = require('./data'); const utils = require('./utils'); const file = process.env.ZIGBEE2MQTT_CONFIG || data.joinPath('configuration.yaml'); const objectAssignDeep = require(`object-assign-deep`); const path = require('path'); const yaml = require('./yaml'); const Ajv = require('ajv'); const ajv = new Ajv({all...
/** * /ui/xhr-common-data controller. For get UI common data via Rest API. * * This JS class file is for admin logged in pages that use common user interface. */ class RdbaUiXhrCommonDataController { /** * Ajax get UI common data. * * @returns {undefined} */ ajaxGetUiCommonData() {...
var intervals = new Object(); var appendedMVPs = []; var timerMap = {}; function clock(deathHour, deathMinute, spawnTimeHour, spawnTimeMinute, div, mvp) { timerMap[mvp] = [deathHour, deathMinute, spawnTimeHour, spawnTimeMinute, div, mvp]; localStorage.timerMap = JSON.stringify(timerMap); var respawn; v...
/** * terrain.js * * @fileoverview Manages buffers, arrays, and other data related to terrain. * @author <NAME> <<EMAIL>> */ /** Identification prefix for terrain shader. */ var TERRAIN_PREFIX = "terrain"; /** GL buffers for terrain. */ var terrainPositionBuffer; var terrainIndexBuffer; var terrainColorBuffer; ...
var micropolar = {version: '0.2.2'}; var µ = micropolar; µ.Axis = function module() { var config = {data: [], layout: {}}, inputConfig = {}, liveConfig = {}; var svg, container, dispatch = d3.dispatch('hover'), radialScale, angularScale; var angularTooltip, radialTooltip, geometryTo...
function passResponse(message, response) { localStorage.setItem("message", message); localStorage.setItem("response", response); talk(); } let parent = document.getElementById("chat-parent"); function talk(message, response) { let msg = document.createElement("div"); let msgContainer = document.createElemen...
function drawmap(regional_mode=false,region=""){ d3.json('data/africa.geo.json').then((geojson) => { d3.select('#map').select("svg").remove(); let container = map.getCanvasContainer() let svg = d3.select(container).append("svg") let transform = d3.geoTransform({point: projectPoint}); // ht...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
var scene = new THREE.Scene(), camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 1000 ), renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); //const axesHelper = new THREE.AxesHelper( 20...
const GeoTools = require('./geotools'); const OverpassRequest = require('./overpass'); const Files = require('./files'); const FeatureParser = require('./featureparser'); const merc = require('mercator-projection'); const simplify = require('simplify-js'); /** * @typedef {object} FeatureCategory feature category obj...
const moment = require('moment'); // For date handling class initiativeCollection { constructor() { this.initiatives = new Map(); }; // Makes sure that the lowest possible id is assigned to a new avenue id_fill(objects){ let Id = 0; let strId; // holds id that is converted to string ...
import { getStepperObject, getCommonHeader, getCommonContainer } from "egov-ui-framework/ui-config/screens/specs/utils"; import { footer } from "./creatematerialindentnoteResource/footer"; import { getstoreTenantId, getStoresSearchResults, getMaterialIndentSearchResults, getMateria...
'use strict'; /*global require*/ /************************************************************************ ## Modules in Scriptcraft ScriptCraft has a simple module loading system. In ScriptCraft, files and modules are in one-to-one correspondence. As an example, foo.js loads the module circle.js in the sa...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- /* © 2018 <NAME> ALL RIGHTS RESERVED */ 'use strict'; const Tp = require('thingpedia'); const querystring = require('querystring'); const USER_URL = 'https://api.spotify.com/v1/me'; //const USER_PLAYER_URL = 'https://api.spotify.com/v1/me/player'; // ...
/* eslint-disable no-unused-vars */ /* eslint-disable react/no-danger */ /* eslint-disable no-nested-ternary */ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable no-await-in-loop */ /* eslint-disable no-plusplus */ /* eslint-disable consistent-return */ /* eslint-disable no-param-reassign *...
import VanillaJoi from 'joi'; import { fkExtension, pkExtension } from 'joi-key-extensions'; const Joi = VanillaJoi .extend(fkExtension.string) .extend(pkExtension.array) .extend(pkExtension.string) .extend(pkExtension.number); /* eslint-disable max-len */ const link = Joi.object({ url: Joi.string().requir...
import React, { Component } from 'react'; import { is } from 'immutable'; import { connect } from 'react-redux'; import { View, StyleSheet, Dimensions, Platform, NativeModules, AppState, TouchableOpacity, Image, } from 'react-native'; import PropTypes from 'prop-types'; import * as timeFor...
/** * * @desc code to build HTML user interface for /{PNAME}/configure endpoint * @author <NAME> <<EMAIL>> * @date 21 Feb. 2020 * */ 'use strict' var toolbar = document.createElement('div'); toolbar.setAttribute('id', 'toolbar'); var pname = document.createElement('div'); pname.setAttribute('class', 'pname'); to...
const EVENTS_API = 'https://www.pgm.gent/data/gentsefeesten/events.json'; const CATEGORIES_API = 'https://www.pgm.gent/data/gentsefeesten/categories.json'; const placeholdersThumb = ['./static/media/placeholder_thumb_1.PNG', './static/media/placeholder_thumb_2.JPEG', './static/media/placeholder_thumb_3.JPEG', './sta...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
"use strict"; class PageFilterClassesRaw extends PageFilterClasses { async _pPopulateBoxOptions (opts) { await super._pPopulateBoxOptions(opts); opts.isCompact = false; } /** * @param cls * @param isExcluded * @param opts Options object. * @param [opts.subclassExclusions] Map of `source:name:bool` indi...
'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)) { ...
import { decode, extend, getfirstTextNode, isChromeAndroidBrowser } from './helpers' var deleteBackspaceTimeout; export function triggerChangeEvent(){ if( this.settings.mixMode.integrated ) return; var inputElm = this.DOM.originalInput, changed = this.state.lastOriginalValueReported !== inputElm.valu...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.generateTrigger = generateTrigger; exports.default = voi...
//抓取页面的锚点 var $main=null; const panel = document.createElement('div'); panel.id = 'extend_panel' panel.innerHTML = ` <div class="left"> <h3 style="color:black;background-color: lightblue;">控制台</h3> <div class="dashboard-edit-box"> <span>打开【推荐牛人】页面,先滚动到页面底部加载简历(快捷键Ctrl+End)</span> <br/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setup = setup; exports.run = run; exports.description = exports.name = void 0; var _node = require("../lib/node.js"); var _fileUtils = require("../lib/fileUtils.js"); var _github = require("../lib/github.js"); var _libDefs = req...
const mongoose = require('mongoose'); const pSettle = require('p-settle'); const { arrayToObject, escapeRegExp, pick, omit, getType, mapKeys, mapKeyNames, identity, mergeWhereClause, resolveAllKeys, versionGreaterOrEqualTo, } = require('@keystonejs/utils'); const { BaseKeystoneAdapter, BaseListA...
//change the Block colors function reColor(block, hue) { var oldInit = block.init; block.init = function() { oldInit.call(this); this.setColour(hue); } } //-------------------------------- let Variables_color = "#AFB42B"; let Loops_color = "#F44336"; let Text_color = "#AD1457"; l...
; /** * @file Custom Google Maps methods * @author <NAME> <<EMAIL>> * @version 0.5 */ var initGoogleMapsObject = function(){ var googleMaps = {}; // Custom namespace to hold all things google maps related var loadedEvent = new CustomEvent("googleMapsLoaded"); var selectedMarker; var markerMenu =...
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { DataGrid, GridColumn, GridColumnGroup, GridHeaderRow } from 'rc-easyui'; import { notification, Cascader, Input, Button, Table, Pagination, Icon, Modal, Select, Popover, Checkbox, Spin, DatePicker...
/* * Copyright 2019 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 applicab...
// this file is responsible for most of the GUI interactions. It also triggers requests // executed by the user /*jshint esversion: 6 */ //source field for the calendar, 'events' are the appointments let source = { events: [], color: "black", textColor: "yellow" }; let currentParticipant = ""; // currently sele...
const fs = require('fs'), path = require('path'), {createCanvas, loadImage} = require('canvas'), { sendImageMsgBuffer } = require('../../cq/sendImage'), { AllRangeData } = require('./arkNightsRange'), { AllBuildingData } = require('./arkNightsBuilding') const aks = require('./arkNightsSkill') const TAB_MARGIN...
'use strict' const _ = require('underscore') var s = require("underscore.string"); const Tournament = use('App/Models/Tournament') const Kelas = use('App/Models/Kelas') const Pertandingan = use('App/Models/Pertandingan') const PertandinganSeni = use('App/Models/PertandinganSeni') const Kualifikasi = use('App/Models/Ku...
var isDebug = false, isLocal = document.location.hostname === "localhost", ctrls = findEverything(), tabs = makeTabSet(ctrls.options), login, prog = new LoadingProgress( "manifest/js/controllers/demo.js", "lib/three/three.js", "lib/three/StereoEffect.js", "lib/three/OculusRiftEff...
/** * @license * Copyright (c) 2014, 2022, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ import oj from 'ojs/ojcore-base'; import Context from 'ojs/ojcontext'; import { warn } from 'ojs/ojlogger'; ...
import * as FormTypes from "../api/FormTypes.js"; import Gender from "../api/Gender.js"; import Mood from "../api/Mood.js"; import Person from "../api/Person.js"; import Plurality from "../api/Plurality.js"; import Voice from "../api/Voice.js"; import Declinator from "./Declinator.js"; import Tense from "../api/Tense.j...
// Importações. import { useEffect, useState } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // Utilidades. import axios from '../helpers/axiosInstance'; import { useSnackbar } from 'notistack'; import { makeStyles } ...
// # DOM management // Core DOM element discovery and management functionality, and the Scrawl-canvas __Display cycle__. // // Scrawl-canvas breaks down the display cycle into three parts: __clear__; __compile__; and __show__. These can be triggered either as a single, combined __render__ operation, or separately as-an...
var $global = {}; $global = {}; $global.clientSource = []; $global.user = {}; $global.misc = {}; $global.const = {}; $global.const.ACTIVITY = 0; $global.const.TOPIC_DELIVERY = 1; $global.const.CLIENT_SERVICE = 2; $global.const.TOPIC_STAT = 3; $global.const.USE_OF_TIME = 4; // api url list $global.api = {}; $global.ap...
/* global $ helper relEditor sidebar */ 'use strict'; // ==UserScript== // @name MusicBrainz edit: Create entity or fill data from wikipedia / wikidata / VIAF / ISNI // @namespace mbz-loujine // @author loujine // @version 2022.1.1 // @downloadURL https://raw.githubusercontent.com/loujine/musicbr...
function createPlot(svg, width=null, height=null, resizing=false, saveSizes=true){ //set up the plot axes, etc. //console.log('creating plot object ...'); params.plotReady = false; if (!width) width = window.innerWidth; if (!height) height = window.innerHeight; var SVGwidth = width - params.SVGmargin.left - pa...
import Bugsnag from '@bugsnag/js' import Bloodhound from 'corejs-typeahead' import loadjQueryPlugin from 'corejs-typeahead' import Pusher from 'pusher-js' import Echo from 'laravel-echo' require('bootstrap') require('timeago') require('image-picker') const axios = require('axios').default const Cookies = require('js-...
import {Element as $3Phvp$Element} from "riza"; import {Template as $3Phvp$Template} from "@rsthn/rin"; //!class xui const $af9ef4ea133e2aee$var$xui = { /** * Registered elements with the `register` method. * !static elements: Array<object>; */ elements: [], /** * Compiles a violet template and retur...
/** Canvas Editor */ class Canvas extends Editor{ /** * Creates a CanvasEditor * @param thing Canvas configuration */ constructor(thing){ super(thing) this.gui = this.vc('-canvas') this.custom_commands(thing.custom) this.commands = thing.commands || {} Konekti.plugins.canvas.render[this.id] = this t...
function loadBarGraphForm() { // Clear the page clearPage(); // Add the title and set the graph type setTitle("Bar"); // Add the axis label fields setTextInElement("x-label", "<label>X axis label: </label><input type='text' name='xAxisInput' style='width: 50%'>"); setTextInElement("y-label", "<label>Y axis lab...
function reloadtrang() { window.location.reload(); } function ChangeToSlug(str) { // Chuyển hết sang chữ thường str = str.toLowerCase(); // xóa dấu str = str.replace(/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/g, 'a'); str = str.replace(/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/g, 'e'); str = str.replace(/(ì|í|ị|...
$(function() { init(); }); function validate(){ } function init() { var grid_selector = "#grid-table"; var pager_selector = "#grid-pager"; jQuery(grid_selector).jqGrid( { url : ctx+'/topTemplate/getTopTemplateList.do', datatype : "json", height : 330, mtype : "post", ...
'use strict'; const periodic = require('periodicjs'); const csv = require('fast-csv'); const numeral = require('numeral'); const logger = periodic.logger; const mongodb = require('mongodb'); const ObjectId = mongodb.ObjectID; const { openDownloadStreamAsync } = require('../mlresource/resourcehelpers'); const { ...
var otblListTramGrid, otblListTramExcel, otblListTramGriddet, otblListTramDocum; var tiporeporte = 'G', tipotramite = 'V', tipofind = 'S'; var varfdesde, varfhasta; var collapsedGroups = {}; $(document).ready(function() { $('#busAvanzada').hide(); $('#txtFDesde,#txtFHasta').datetimepicker({ format: 'D...
const { Borrowable, Collateral, ImpermaxCallee, ReentrantCallee, Recipient, makeFactory, makeUniswapV2Pair, } = require('./Utils/Impermax'); const { expectAlmostEqualMantissa, expectRevert, expectEvent, expectEqual, bnMantissa, uq112, BN, } = require('./Utils/JS'); const { address, encode, } = require('...
import Button from '@material-ui/core/Button'; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; import InputLabel from '@material-ui/core/InputLabel'; import Link from '@material-ui/core/Link'; import MenuItem from '@material-ui/core/MenuItem'; import Paper from '@material...
#!/usr/bin/env node /** * The spec crawler takes a list of spec URLs as input, gathers some knowledge * about these specs (published versions, URL of the Editor's Draft, etc.), * fetches these specs, parses them, extracts relevant information that they * contain (such as the WebIDL they define, the list of specific...
import React from 'react'; import { connect } from 'react-redux'; import Config from '../../../config'; import { translate } from '../../../translate/translate'; import { secondsToString } from '../../../util/time'; import { triggerToaster, sendNativeTx, getSAFEOPID, clearLastSendToResponseState, shepherdElec...
'use strict'; const https = require('https'); const tar = require('tar'); const fs = require('fs'); const walk = require('walkdir'); const LineByLineReader = require('line-by-line'); const hell = new (require(__dirname + '/helper.js'))({ module_name: 'rule' }); module.exports = function (rule) { /** * LOOP RULE...
// CIVIL WAR // // Converted from BASIC to Javascript by <NAME>. (nanochess) // function print(str) { document.getElementById("output").appendChild(document.createTextNode(str)); } function input() { var input_element; var input_str; return new Promise(function (resolve) { inpu...
/* global setTimeout Buffer */ import path from 'path'; import fs from 'fs'; import url from 'url'; import { execFile } from 'child_process'; import { open as tempOpen } from 'temp'; import WebSocket from 'ws'; import anylogger from 'anylogger'; import { makeNotifierKit } from '@agoric/notifier'; import { makePromise...
$(document).ready(function () { document.getElementById('clear').addEventListener('click', function () { document.getElementById('result_div').innerHTML = ''; }); $('#chat-input').on('keyup keypress', function (e) { var keyCode = e.keyCode || e.which; var text = $('#chat-input').val(); ...
/** * Copyright © 2015 - 2018 The Broad Institute, Inc. All rights reserved. * Licensed under the BSD 3-clause license (https://github.com/broadinstitute/gtex-viz/blob/master/LICENSE.md) */ "use strict"; export function getGtexUrls(){ const host = 'https://gtexportal.org/rest/v1/'; // const host = 'local.gte...