text
stringlengths
5.97k
41.2k
window.onload = function() { var x; var y; convertTrees(); expandTree("diffRoot"); // Get the element with id="defaultOpen" and click on it // document.getElementById("defaultOpen").click(); // document.getElementById("defaultOpenR").click(); resizeWindows(); var leftHand...
/** * Created by <NAME> * * */ import moment from "moment" // default date format const DATE_FORMAT = "YYYY-MM-DD" // default date/time format const DATE_TIME_FORMAT = "DD/MM/YY hh:mm" // localStorage key uses to store the auth token const LS_AUTH_KEY = "auth_token" const SORT_DIRECTIONS = { ASC: "asc", D...
/** * External dependencies */ import classnames from 'classnames'; /** * WordPress dependencies */ import { useRef, useState, useEffect, useLayoutEffect, } from '@wordpress/element'; import { focus, getRectangleFromRange } from '@wordpress/dom'; import { ESCAPE } from '@wordpress/keycodes'; import deprecated ...
// Algorithms from // http://www.stjarnhimlen.se/comp/ppcomp.html // http://www.stjarnhimlen.se/comp/tutorial.html class Body { // Some of the Sun's variables, ajusted for day number 'd', used by other bodies static d; static xSun; static ySun; static MSun; static LSun; constructor(name,N,i,w,a,e,M) { //...
var jsonPoints = []; var paintPoints = false; var uebergeben = false; var create = false; $.widget("mapbender.mb_hohe", { options: { measurePointDiameter: 6, lineStrokeDefault: "#099", lineStrokeWidthDefault: 3, pointFillDefault: "#CCF", pointStrokeDefault: "#FC3", pointStrokeWidthDefault: 2 }, //measueP...
// <![CDATA[ /** * Creative Commons has made the contents of this file * available under a CC-GNU-GPL license: * * http://creativecommons.org/licenses/GPL/2.0/ * * A copy of the full license can be found as part of this * distribution in the file COPYING. * * You may use this software in accordance with the *...
/* * 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 ...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "jordy-shop.firebaseapp.com", databaseURL: "https://jordy-shop.firebaseio.com", projectId: "jordy-shop", storageBucket: "jordy-shop.appspot.com", messagingSenderId: "275722148119" }; firebase.initializeApp(config); const database...
// Yiddish dictionary bookmarklet // V 1.0 - 2017-01-02 // V 1.1 - 2016-01-07: new transliteration function, minimize function, enlarge input field option // Read more: https://podolak.net/en/bookmarklets/yiddish // Author: <NAME> // Contact: www.podolak.net function loadjscssfile(filename, filetype){ if (filetype=="...
"use strict"; // Impure function that listens to activity editing events including deletion. function addEventListeners() { [].slice.call(document.getElementsByClassName("activityTxt")).forEach((activityTxt) => { activityTxt.addEventListener("change", () => { var activities = JSON.parse(local...
"use strict"; 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 = Refl...
"use strict"; let socket; let painter; //self variables let id; let dataStatic; let dataDynamic; let lastUpdate; let defeatedBy; let scores; let highScore; //input variables let keyW; let keyA; let keyS; let keyD; let mouseDown; let mousePosition; //graphics variables let canvas; let ctx; const init = () => { //...
// export const baseUrl="http://123.206.215.59:7001/wx/"; export const baseUrl="http://192.168.127.12/shop/wx/"; export const api = { "checkUserLogin" : baseUrl + "Admin/check_user_login", // 验证是否已经登录 "login" : baseUrl + "Admin/login", // 登录 "logout" : baseUrl + "Admin/logout", // 退出账号 注销 'getUserL...
const fs = require('fs-extra'); const shim = require('./shim').default; const { GeolocationNode } = require('./geolocation-node.js'); const { FileApiDriverLocal } = require('./file-api-driver-local.js'); const { setLocale, defaultLocale, closestSupportedLocale } = require('./locale'); const FsDriverNode = require('./fs...
var strVarCity = ''; strVarCity += '<div class="aui_state_box"><div class="aui_state_box_bg"></div>'; strVarCity += ' <div class="aui_alert_zn aui_outer">'; strVarCity += ' <table class="aui_border" style="border:2px solid #fff;">'; strVarCity += ' <tbody>'; strVarCity += ' <tr>'; strVarCity += ' ...
var socks = require('sockx'); var url = require('url'); var net = require('net'); var extend = require('extend'); var LRU = require('lru-cache'); var EventEmitter = require('events').EventEmitter; var hparser = require('hparser'); var dispatch = require('./https'); var util = require('./util'); var rules = require('./r...
//Declare the global GameEngine helper var gEngine = new GameEngine(); var gameState; var gameTimer; var messageTimer; // Hierboven zijn algemene timers, niks aan doen. // State 1 variables var searchGameWordTries = 0; //search random word tries om infinite loop te voorkomen. var gameSeconds_State1 = 0; // Hoeveel se...
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { withRouter, Link } from 'react-router-dom' import update from 'react-addons-update' import _ from 'lodash' import TeamManagementContainer from './TeamManagementContainer' import { updateProject, deleteProject } f...
/* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
import React, { Component } from 'react'; import { Link, graphql, StaticQuery, navigate } from 'gatsby' import Lazyload from 'react-lazyload' import { renderHTML } from '../agility/utils' import Hamburger from './Newhamburger.jsx' import Helpers from '../global/javascript/Helpers' export default props => ( <StaticQue...
'use strict'; import fs from 'fs'; import path from 'path'; import EventEmitter from 'events'; import { loadYAML } from './schema/yaml/loader'; import { validateJSONSchema } from './schema/validator'; import { assertFileValidity, loadModule, runModuleFunction, runInlineFunction } from './utils'; import ...
var global = window; // fix bug with tinymce function timeSince(timeStamp) { if (typeof timeStamp === "string") { timeStamp = new Date(timeStamp.replace(/-/g, "/")); } var now = new Date(); var secondsPast = parseInt((now.getTime() - timeStamp.getTime() ) / 1000); if(secondsPa...
// Copyright 2014 Team 254. All Rights Reserved. // Author: <EMAIL> (<NAME>) // Author: <EMAIL> (<NAME>) // // Client-side methods for the audience display. var websocket; var transitionMap; var currentScreen = "blank"; var allianceSelectionTemplate = Handlebars.compile($("#allianceSelectionTemplate").html()); // Han...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
import _ from 'lodash' import { EventEmitter } from 'events' import Promise from 'bluebird' import { action } from 'mobx' import { client, circularParser } from '@packages/socket/lib/browser' import automation from './automation' import logger from './logger' import studioRecorder from '../studio/studio-recorder' imp...
"use strict" const fs = require('fs-extra'); const path = require('path'); const decodeTexture = require('./lib/decode-texture'); /**************************** config ****************************/ const PLANET = 'earth'; const URL_PREFIX = `https://kh.google.com/rt/${PLANET}/`; const DL_DIR = './downloaded_files'; co...
"use strict" //渲染markdown为html function RenderByMarkdown($content) { var testEditormdView = editormd.markdownToHTML("page-content", { markdown: $content,//+ "\r\n" + $("#append-test").text(), //htmlDecode : true, // 开启 HTML 标签解析,为了安全性,默认不开启 htmlDecode: "style,script,iframe", // ...
import { html, unsafeCSS, unsafeHTML, customElement, BoltElement, } from '@bolt/element'; import classNames from 'classnames/bind'; // Import Swiper and modules import { Swiper, Navigation, Pagination, Scrollbar, A11y, Autoplay, } from 'swiper/js/swiper.esm.js'; // Install modules Swiper.use([Nav...
const npmPackage = require('./package.json'); const crypto = require('crypto'); const express = require('express'); const proxy = require('express-http-proxy'); const cors = require('cors'); const bodyParser = require('body-parser'); const urlUtil = require('url'); const chalk = require('chalk'); /** The caching proxy...
class Region { constructor(length) { this.cells = [] this.grid = [] for (var x=0; x<length; x++) { this.grid.push(0) } } getCell(x, y) { return ((this.grid[x] & (1 << y)) !== 0) } setCell(x, y) { if (this.getCell(x, y)) return this.grid[x] |= (1 << y) this.cells.push({'...
"use strict"; var Promise = require('es6-promise').Promise; var spans = require('./spans'); var Range = spans.Range; var union = spans.union; var bin = require('./binutils'); var jszlib = require('jszlib'); var jszlib_inflate_buffer = jszlib.inflateBuffer; var arrayCopy = jszlib.arrayCopy; var M1 = 256; var M2 = 25...
var isNode = 'undefined' === typeof window; var defer = isNode ? setTimeout : window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.setTimeout; var nt = defer; export var hasOwnProperty = Object.prototype.hasOwnProperty; export function noop() { return null; } export function noop_arg(ignore) { }...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the...
/** * Private utility functions used primarily by NbInteract.js */ import { KernelMessage } from "@jupyterlab/services"; /** * Converts a notebook HTTP URL to a WebSocket URL */ export const baseToWsUrl = baseUrl => (baseUrl.startsWith("https:") ? "wss:" : "ws:") + baseUrl .split(":") .slice(1) .j...
import { Helper } from '../helper' import Subject from './subject' import { addClass, getTransform, parseMatrix, getOffset } from '../util/css-util' import { rotatedTopLeft, toPX, fromPX, getUnitDimension, floatToFixed } from './common' const MIN_SIZE = 20; const BRACKETS_START = ...
var BINGO = null; var LARGE_CARD = false; function Random(seed) { this.seed = seed || +new Date(); } Random.prototype.nextFloat = function() { var x = Math.sin(this.seed++) * 10000; return x - Math.floor(x); } // Box-Muller transform, converts uniform distribution to normal distribution // depends on uniformity of n...
var chosedPos = {}; var popMessageDetail = function(message_id, is_modal){ if (is_modal == null) is_modal = true; var this_dialog = $("#nogood_treat"); if (this_dialog.length === 0) { $("body.outer").append("<div id='nogood_treat'/>"); this_dialog = $("#nogood_treat"); } this_dialog.html(""); this_dialog.h...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var data_1 = require("./data"); var utils_1 = require("./utils"); var moment = require("moment"); var StageManager = (function () { function StageManager(teamManager, stateManager) { this.teamManager = teamManager; this.sta...
import _isEmpty from "lodash/isEmpty"; import _defaults from "lodash/defaults"; import _assign from "lodash/assign"; function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySy...
"ui"; storage = storages.create("ABC"); tags_ = storage.get("tags_"); if (!tags_) { tags_ = ""; }; ui.layout( <vertical padding="16"> <text textSize="16sp" textColor="black" text="标签"/> <input id="tags_" hint="请输入标签">{tags_}</input> <button id="ok" text="确定"/> </vertical> ); //指定...
const input = document.getElementById('search__bar'); const inputforMap = document.getElementById('search__bar') const button = document.getElementById('search__btn'); const autocomplete = new google.maps.places.Autocomplete(inputforMap); function reload(){ location.reload(); } button.addEventListener('click', ()...
/* jshint strict: false, sub: true */ /* global print, arango */ 'use strict'; // ///////////////////////////////////////////////////////////////////////////// // DISCLAIMER // // Copyright 2016-2018 ArangoDB GmbH, Cologne, Germany // Copyright 2014 triagens GmbH, Cologne, Germany // // Licensed under the Apache Lic...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIncomingRequestAttributesOnResponse = exports.getIncomingRequestAttributes = exports.getOutgoingRequestAttributesOnResponse = exports.getAttributesFromHttpKind = exports.getOutgoingRequestAttributes = exports.isValidOptionsType = ex...
import EWCButton from './ext-button.component.js'; export { EWCButton }; import EWCCycle from './ext-cycle.component.js'; export { EWCCycle }; import EWCSegmentedbutton from './ext-segmentedbutton.component.js'; export { EWCSegmentedbutton }; import EWCSplitbutton from './ext-splitbutton.component.js'; export { EWCSpli...
var tests = []; test("fromTextArea", function() { var te = document.getElementById("code"); te.value = "CONTENT"; var cm = CodeMirror.fromTextArea(te); is(!te.offsetHeight); eq(cm.getValue(), "CONTENT"); cm.setValue("foo\nbar"); eq(cm.getValue(), "foo\nbar"); cm.save(); is(/^foo\r?\nbar$/.test(te.val...
const data = { 1990: [ {group: 'Very high', pop: 0.512, hdi: 0.839}, {group: 'High', pop: 0.624, hdi: 0.745}, {group: 'Medium', pop: 0.748, hdi: 0.619}, {group: 'Low', pop: 2.751, hdi: 0.460} ], 1995: [ {group: 'Very high', pop: 0.763, hdi: 0.849}, {group: 'High', pop: 0.355, hdi: 0.737}, ...
/* * Websensor Car Game * https://github.com/jessenie-intel/websensor-car * * Copyright (c) 2017 <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.or...
import { stringToBytes, toUint8, bytesMatch, bytesToString, toHexString, padStart, bytesToNumber } from './byte-helpers.js'; import { getAvcCodec, getHvcCodec, getAv1Codec } from './codec-helpers.js'; import { parseOpusHead } from './opus-helpers.js'; var normalizePath = function normalizePath(path) { if (typeof pat...
/******************************************************************************* * Copyright 2018 <NAME> and contributors * * 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 * * h...
/////////////////////////////////////////////////////////////////////////////////////////////// // Eliminate-Duplicate-Functions.js // // This is a Javascript file that is used to post-process an Emscripten transpiled JS file. // It will remove all the duplicate functions from the generated ASM. In its current form, //...
import TextureUI from '@/ui/withtexture'; import waveHtml from '@/ui/template/texture/wavelist'; import templateHtml from '@/ui/template/submenu/wavelistmenu'; import itemHtml from '@/ui/template/texture/mediaitem'; import { cls } from '@/util'; // import { eventNames, selectorNames } from '@/consts'; const minItemWidt...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NativeNumberControlRenderer = exports.NativeTimeControlRenderer = exports.NativeDateControlRenderer = exports.UrlControlRenderer = exports.EmailControlRenderer = exports.PasswordControlRenderer = exports.TextControlRenderer = exports.m...
function ajaxRooms(keyword, sort, services, types, page, freeRooms , showAllRooms) { $.ajax({ url: "/api/rooms", method: "get", data: { keyword: keyword, sort: sort, services: services, types: types, page: page, freeRoom...
"use strict"; const utils = require('@iobroker/adapter-core'); let http = require('http'); let exec = require('child_process').exec; let adapter, foobarPath = null, timerPoll, timeout, muteVol = 100, request, old_states, states = { playlist: [] }; let Commands = { 'play': 'Start', 's...
'use strict'; 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; }; var _createClass = function () { function defi...
"use strict"; /******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
// https://github.com/maxnachlinger/point-in-svg-path import normalize from '../normalize-svg-path'; const clone = (obj) => { if(typeof obj === 'function' || Object(obj) !== obj) { return obj; } const res = new obj.constructor(); /* eslint-disable no-restricted-syntax */ for(const key in obj) { /* e...
import { Box, Button, InputBase } from '@material-ui/core' import React, { Fragment, useEffect, useState } from 'react' import { fade, makeStyles } from '@material-ui/core/styles' import SearchIcon from '@material-ui/icons/Search' // import UtilitiesItem from './UtilitiesItem' import ListFilter from './ListFilter' impo...
/* Requirements for running this: Copy `config.example.js` -> `config.js`, and update the values within. Dependencies from npm: discord.js, twitch-helix-api twit */ const Discord = require('discord.js'); const dustforceDiscord = new Discord.Client(); const config = require('./config')...
/* Spellcast Copyright (c) 2014 - 2020 <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 the rights to use, co...
/** * Navigation Group * RA 2014-02-04 * */ var fn = require('tilib/core/CUtils'); var slideWidth = 150; var pWidth = fn.getDeviceWidth(); var pHeight = fn.getDeviceHeight(); var init = null; var mSelectedIndex = 0; var menuClickCb = null; var tmpIndex = 0; var animateSelect = Ti.UI.createAnimation(...
var should = require('should'); var regionOctree = require('../region-octree.js'); var Bbox = regionOctree.Bbox; var Vec3 = regionOctree.Vec3; var Octree = regionOctree.Octree; var OctreeNode = regionOctree.OctreeNode; describe('Bbox', function () { it('Should correctly return a centerpoint.', function () { var bo...
/* http://www2.ess.ucla.edu/~jewitt/tisserand.html */ // set the dimensions and margins of the graph var margin = {top: 20, right: 20, bottom: 30, left: 50}, width = 800 - margin.left - margin.right, height = 400 - margin.top - margin.bottom, step = 200, deg2rad = Math.PI / 180, // Semimajor axis...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var Point = (function () { function Point(x, y) { ...
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
var topics = ["Elementos", "Colores", "Animales"]; topics[0] = ["Llaves", "Vaso", "Catrina", "Gafas","Elemento"]; topics[1] = ["Rojo", "Morado", "Naranja", "Azul"]; topics[2] = ["Leon", "Elefante", "Ternero", "Cabra"]; var categorias = new Array(); var oculta = []; var src; var errors; var cont; var chosenTopic; var ch...
'use strict'; 'require view'; 'require form'; 'require rpc'; 'require uci'; 'require ui'; 'require fs'; var callUciCommit = rpc.declare({ object: 'uci', method: 'commit', params: [ 'config' ] }); var callLuciSetPassword = rpc.declare({ object: 'luci', method: 'setPassword', params: [ 'username', 'password' ], ...
/** @module cscheid/geometry */ import * as cscheid from '../cscheid.js'; import * as sh from './geometry/sinkhorn.js'; export const sinkhorn = sh; const math = cscheid.math; // //////////////////////////////////////////////////////////////////////// // Vec2 export function Vec2(x, y) { this.x = x; this.y = y;...
var $1ZQrD$lit = require("lit"); var $1ZQrD$litdecoratorsjs = require("lit/decorators.js"); var $1ZQrD$ioniccore = require("@ionic/core"); var $1ZQrD$lodash = require("lodash"); function $parcel$export(e, n, v, s) { Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); } $parcel$expor...
//modelAnimation.js /** * A variable to store a Model Simulation, containing all attributes and methods for moving a model * along a route * @type {ModelSimulator} */ var modelSimulation; /** * A helper object with various methods that help determine various values when * calculating a route and moving a model ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
/* * Venus * Copyright 2013 LinkedIn * * 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 ...
const {app, BrowserWindow, globalShortcut, Menu, ipcMain, dialog} = require('electron'); const fs = require('fs'); const path = require('path'); const os = require('os'); const Configstore = require('configstore'); const conf = new Configstore("NeoBlock"); let mainWindow; var exec = require('child_process').exec; if...
const WDHMS = 7; const YMDHMS = 6; const MDHMS = 5; const DHMS = 4; const HMS = 3; const MS = 2; const S = 1; var intervalTimer = setInterval(function () { updateEverything(); }, UPDATE_TIME); var allEvents = []; var currentFormat = getFormat(); var weeksLeft = 0; var yearsLeft = 0; var monthsLeft = 0; var daysLeft =...
/* jshint -W100 */ /* jshint undef: false, unused: true */ /* globals ymaps, prop, mp, switch_panel, perimeter_calc, update_object_data, bas_path, bas_index_array, field_calc */ 'use strict'; var map, a_objects, e_objects, v_objects, g2, bas_path = [], bas_index_array = prop.coords_aux, saveTyp...
"use strict" var mobx = require("../../src/mobx.ts") var map = mobx.map var autorun = mobx.autorun var iterall = require("iterall") test("map crud", function() { mobx.extras.getGlobalState().mobxGuid = 0 // hmm dangerous reset? var events = [] var m = map({ a: 1 }) m.observe(function(changes) { ...
import React, { Component } from "react"; import { adminUserListApi, deleteAdminUserApi, addAdminUserApi, updateAdminUserApi, aclRoleNameListApi, } from "../../../redux/actions/index"; import { status } from "../../../utility/config"; import { toastr } from "react-redux-toastr"; import { Breadcrumb } from "../....
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { translate } from 'react-i18next'; import { noop, Button, ButtonGroup, Grid, Icon, Radio } from 'patternfly-react'; import { connect, reduxActions } from '../../../redu...
// run script: node lib/sync.js // reach out to zesty's url map // create file structure that maps over the zesty instance // in each file, create the script to load props into the file const rl = require('readline').createInterface({ input: process.stdin, output: process.stdout }) async function ask(question) { ...
"use strict"; // Oma loggeri ja join-funktio var Logger = require('./Logger').Logger , join = require('../src/Utils').join // Pari Noden ydinmoduulia , util = require('util') , http = require('http') , udp = require('dgram') , url = require('url') , dns = require('dns') , fs = require('fs') ...
const path = require('path'); const fs = require('fs'); // const os = require('os'); // const cp = require('child_process'); const test = false; let files = test ? ['data-examples/example.in'] : [ // 'data-examples/kittens.in', 'data-examples/me_at_the_zoo.in', // 'data-examples/trending_today.in', // 'data-e...
let verify = (...values) => { // Retuns first argument that is same type as final argument let final = values[values.length - 1]; if (final === null) return null; else if (typeof final === "number" && isNaN(final)) return NaN; else if (final === undefined) return undefined; else { let correct = typeof fin...
import React from 'react' import * as d3 from 'd3' import { connect } from 'react-redux' import { actions } from 'redux-tooltip' import _ from 'lodash' import { properties } from './default.config' import XYGraph from '../XYGraph' import "./style.css"; import { dataParser, pick, barWidth } from '../../../utils/helpe...
import _chunk from 'lodash-es/chunk'; import _extend from 'lodash-es/extend'; import _forEach from 'lodash-es/forEach'; import _filter from 'lodash-es/filter'; import _find from 'lodash-es/find'; import _groupBy from 'lodash-es/groupBy'; import _isEmpty from 'lodash-es/isEmpty'; import _map from 'lodash-es/map'; import...
/** Allows import of other files e.g. const GitHub=imports.github; = github.js */ imports.searchPath.push(imports.ui.appletManager.appletMeta["<EMAIL>"].path); /** Imports START **/ const Mainloop = imports.mainloop; const Lang = imports.lang; const Gettext = imports.gettext.domain('cinnamon-applets'); const _ = Gette...
var HTIController = (new function() { var self = this; self.Tables = {}; self.createRetries = 10; self.createRetriesTimeout = 100; self.Create = function(ModuleName, TableName, DomPlace, Config, done) { if (!self.Tables[ModuleName]) self.Tables[ModuleName] = {}; if (self.Tables[Module...
/** * Redirect Views Analysis tool * @link https://pageviews.toolforge.org/redirectviews */ const config = require('./config'); const siteMap = require('../shared/site_map'); const siteDomains = Object.keys(siteMap).map(key => siteMap[key]); const Pv = require('../shared/pv'); const ChartHelpers = require('../share...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; function createCommonjsModule(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } var classnames = createCommonjsModule(function (module) { /*! Copyright (c) 2017 <NAME>. Licensed under the ...
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __extends = (this && this.__extends) || (function () { var extendStat...
"use strict"; const async = require("async"); const RecurrenceRule = require("node-schedule").RecurrenceRule; const schedule = require("node-schedule"); const opcua_base = require("../opcua_connect"); const opcua = require("node-opcua"); const LooseParse = require("../utils/utils").LooseParse; const ClientSubscription...
"use strict"; /* GLOBAL VARIABLES*/ var client; var mic; var micLevel; var canvas; var lol; var x = 30; var y = 30; var x2 = 24; var y2 = 24; var points = 100; var powerReloder = 0; var counter = 0; var ewidth; var ehight; var Activated = 0; var textColor = 'black'; var distanceFro...
var network, grafoNetwork; var networkNaoDirecionado, grafoNetworkNaoDirecionado; var criarGrafoDirecionadoQuestao6 = function (id, representacao) { // create an array with nodes var nodes = new vis.DataSet([ {id: 0, label: '0', x: 0, y: 0, physics: false}, {id: 1, label: '1', x: 200, y...
import React from 'react'; class Sidebar extends React.Component{ constructor(props){ super(props); } render() { return ( <div id="DIV_2"> <article id="ARTICLE_3"> <div id="DIV_4"> <form id="FORM_5"> <section id="SECTION_6"> <div id="DIV_...
import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity, Animated, Image, Dimensions, StatusBar, AsyncStorage, Alert, } from 'react-native'; import {Icon, Divider, Button} from 'react-native-elements'; import Modal from "react-native-modal"; import MapView from...
const URL = require('url').URL; const logger = require('logger'); const Dataset = require('models/dataset.model'); const RelationshipsService = require('services/relationships.service'); const ctRegisterMicroservice = require('ct-register-microservice-node'); const SyncService = require('services/sync.service'); const ...
import LocalizedStrings from 'react-localization'; import Cookies from 'universal-cookie'; const common = { fi: { frontpage: 'Etusivu', changelang: 'In English', forbusinesses: 'Yrityksille', timetoregistration: 'Ohjelmantekijöiden ilmoittautuminen alkaa', registrationdate: '5.3. klo 9!', ins...
let __e18 = 1000000000000000000; let Utils = function(web3, _artifacts) { this._web3 = web3; this.E18 = __e18; if(_artifacts != undefined) { artifacts = _artifacts; } } module.exports = Utils; module.exports.createWeb3 = function(network) { let config = require("../truffle.js"); let ...
var LoadingThreshold = 750; var vFirstCount = true; var vArchivedShown = false; var vTextFilterIDX; $(document).ready(FormReady); function ResizeSP() { var Padding = 10; $("#tblMessages").css("padding-right",Padding); // and the scroll area is ok too..! var newMARGIN = $('#filteropts').wid...