text
stringlengths
8.5k
48.7k
const apiURL = 'https://afternoon-falls-25894.herokuapp.com/'; let pageNumber = 1; // 1..30, 20 words per page const path = 'https://raw.githubusercontent.com/splastiq/rslang-data/master/'; const main = document.createElement('div'); const ol = document.createElement('ol'); const app = document.querySelector('.app'); ...
/* * @Author: <NAME> * @Date: 2021-08-02 09:02:29 * @LastEditTime: 2021-10-20 16:36:13 * @LastEditors: <NAME> * @Description: * @FilePath: \miniprogram-to-uniapp\src\utils\utils.js * */ const chalk = require('chalk') // const fastGlob = require('fast-glob') const { fdir } = require("fdir") const path = requir...
var fs = require('fs'), os = require('os'), request = require('request'), ncp = require('ncp').ncp, path = require('path'), parseUrl = require('url').parse, shelljs = require('shelljs/global'), argv = require('optimist').argv, prompt = require('prompt'), colors = require('colors'), ...
window.qunit = window.qunit || {}; window.qunit.chat = {}; window.qunit.chat.namesList = []; var upgrades = upgrades || {}; function createUserInfo(nickNameElement, blankTail) { "use strict"; window.soiDetails = identifySoi(); function cleanupName(name) { // Because of how funky the HTML can com...
/* Lightweight Websocket <-> Telnet Proxy v1.3 - 2/27/2014 Author: plamzi - <EMAIL> MIT license Requires https://github.com/Worlize/WebSocket-Node In your project root: npm install websocket Supports client setting any host and port prior to connect. Example (client-side JS): if (W...
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a...
var ArrayType = require("ref-array"); var StructType = require("ref-struct"); var UnionType = require("ref-union"); /** * ARM register IDs. * * ```javascript * var cs = new capstone.Cs(capstone.ARCH_ARM, capstone.MODE_ARM); * * console.log(capstone.arm.REG_SP); //> 12 * console.log(cs.reg_name(capstone.arm.REG...
const { SubmitAndEvaluateError } = require('../../api/rewards') const { decodeHashId } = require('../../utils/utils') // `BaseRewardsReporter` is intended to be subclassed, and provides // "reporting" functionality to RewardsAttester (i.e. posts to Slack if something notable happens) class BaseRewardsReporter { asyn...
/* * (C) Copyright 2016 Kurento (http://kurento.org/) * * 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...
let bridgeData; //Represents probability of bridge repair over time let coordData; //The coordinates in localspace for each space let centerData; //the centerData json that sorts color in center of hex let maxValue = 0; let minMax = 1; let sortType = "map"; let centerType = "none"; let viewMap = true; let currentThresh...
var canvas = document.getElementsByTagName('canvas')[0]; var gl = canvas.getContext('webgl2', {antialias: true}); //Initialize canvas canvas.width = window.innerWidth; canvas.height = window.innerHeight; const GLSL_VERTEX = `#version 300 es precision highp float; //vec4(posx, posy, scale, aspectRatio) un...
 const USER_SIGNED_OUT_MESSAGE = 'user signed out or failed to sign in...' const USER_SIGNED_IN_MESSAGE = ' user signed in...' const MAX_FRIEND_FEED_COUNT = 200 let user = {}; const TABLE_LOG_ENTRIES = "log_entries" let DEBUG = true let LOG = function (x) { if (DEBUG) { if (console) { console....
/* eslint-disable no-param-reassign */ import React, { Component } from 'react'; import { is } from 'immutable'; import { View, StyleSheet, Alert, AppState, Platform, NativeModules, // DeviceEventEmitter, } from 'react-native'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; imp...
// INIT ITEMS // init if first run if(!localStorage.getItem('active-items')){ var firstVisit = true; localStorage.setItem('active-items',''); localStorage.setItem('max-id','0'); localStorage.setItem('amount-daily','0'); localStorage.setItem('amount-weekly','0'); localStorage.setItem('amount-monthly','0'); localS...
/* eslint-disable consistent-return, no-undef, no-underscore-dangle, camelcase, no-console */ import React, { createRef } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import is from 'styled-is'; import throttle from 'lodash.throttle'; import Turndown from 'turndown'; import ...
var signedin = false; var highlightswrapper = document.querySelector('#yawas_highlightswrapper'); var forecolor = "#000000"; var currentColor = "yellow"; var hoverColor = 'lightgray';//'pink' var hoverElement = null; var lastHighlight = null; var leftMark = '<<';//'&ldquo;' var rightMark = '>>';//'&rdquo;' var...
var canvas = document.getElementsByTagName('canvas')[0]; var ctx = null; var body = document.getElementsByTagName('body')[0]; var keysDown = new Array(); var SCREENWIDTH = 640; var SCREENHEIGHT = 480; var MODE_LOADING = -1; var MODE_TITLE = 0; var MODE_PLAY = 1; var MODE_WIN = 2; function getImage(name, resourceno...
// Copyright (c) Microsoft Corporation // All rights reserved. // BSD License // // 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...
//cambio de numero en el input var max; var min; function changeNumberResta(classContent){ $('.content-contenido-active .modulo-1 .input .btn-input').on('click', function(){ var num = $(this).parent().children('span').text(); var modo = $(this).data('modo'); var index = $(this).parent().index(); var max2 = $('...
import constants from "./constants"; const utils = { /** * split a name text into a first name and a last name * text is either "firstname lastname" or "lastname, firstname" */ getNameParts(name) { let firstname, lastname; if (name.includes(",")) { lastname = name.sub...
import { createGlobalStyle } from "styled-components"; export const GlobalStyles = createGlobalStyle` #particle-canvas { background-color: ${({ theme }) => theme.backgroundParticlesBackgroundColor }; } /*NAVBAR*/ a { color: ${(...
/* jQuery.contentEditable Plugin Copyright © 2011 FreshCode http://www.freshcode.co.za/ DHTML text editor jQuery plugin that uses contentEditable attribute in modern browsers for in-place editing. Dependencies ------------ - jQuery core - shortcut.js for keyboard hotkeys Issues ------ - no <code> or <blockquote> ...
// SVG templates var vrc_template = `<svg width="100%" viewBox="0 0 1350 900" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-...
'use strict' var events = require('events') var inherits = require('inherits') var mqtt = require('mqtt') var CallbackManager = require('./callback-manager') var decodeMessage = require('./decode-message') var DxlError = require('./dxl-error') var message = require('./message') var RequestManager = require('./request...
/* __/\\\________/\\\____/\\\\\\\\\______/\\\\\\\\\\\\\_________/\\\\\\\\\_ __\/\\\_______\/\\\__/\\\///////\\\___\/\\\/////////\\\____/\\\////////__ __\//\\\______/\\\__\/\\\_____\/\\\___\/\\\_______\/\\\__/\\\/___________ ___\//\\\____/\\\___\/\\\\\\\\\\\/____\/\\\\\\\\\\\\\/__/\\\_____________ ____\//\\\__/\\\...
if(webUatUrl=="" || webUatUrl==null || webUatUrl=="null"){ var webUatUrl = "http://consumer.huawei.com/"; } var scoresService = webUatUrl + "support/services/service/score/" ; var commentService = webUatUrl + "support/services/service/evaluate/"; var productService = webUatUrl + "support/services/service/evaluate/pro...
/* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ var __extends = (this && t...
var queryPollingTag = null; Date.prototype.format = function(format) { var o = { "M+" : this.getMonth() + 1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+" : this.getSeconds(), //second ...
// The world size in tiles let WORLD_WIDTH = 88; let WORLD_HEIGHT = 88; // The main menu state let GameplayState = function(game) { // Create a playerMap property this.playerMap = {}; // Make a reference to the local player this.player = null; // Create a 2D array for solid objects this.objec...
/* eslint-disable no-console */ "use strict"; /* global Decimal*/ let game; let keke; let upgrade; let me; game = { cash: new Decimal(0), highestCash: new Decimal(0), upgradesPurchased: [], charactersHired: [], cashPerSecond: new Decimal(0), tab: "game", version: 2, keke: { ...
var CILJS = require("../CilJs.Runtime/Runtime"); var asm1 = {}; var asm = asm1; var asm0 = CILJS.findAssembly("mscorlib"); asm.FullName = "ReferenceEquals.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* A..ctor()*/ asm.x6000001 = function _ctor(arg0) { /* IL_00: ldarg.0 */ /* IL_01: call...
import { __dirname, __privateAdd, __privateGet, __privateSet, __publicField, isMovable, isTaskQueue, isTransferable, kFieldCount, kQueueOptions, kRequestCountField, kResponseCountField, kTransferable, kValue, markMovable } from "./chunk-MHWOF4OL.js"; // src/index.ts import { Worker, M...
import React, { Component } from 'react'; import {Card,CardHeader,CardBody,Button,Alert} from 'reactstrap'; import Globales from '../../../Utils/Globales'; import RenglonArtVenta from '../RenglonArtVenta/RenglonArtVenta'; import SeccionPagosMesos from '../VistaPagosMeses/VistaPagosMeses'; import { Typeahead } from 'rea...
import Ember from "ember-metal/core"; import { defineProperty as o_defineProperty, canDefineNonEnumerableProperties, hasPropertyAccessors, create as o_create } from "ember-metal/platform"; import { forEach } from "ember-metal/array"; /** @module ember-metal */ /** Previously we used `Ember.$.uuid`, howev...
/** * Taken from https://github.com/jfriend00/docReady/blob/master/docready.js * * Copies jQuery's 'ready' function without the entire library breathing down * the website's neck as the loading icon is working. */ (function (func, obj) { 'use strict'; func = func || 'domReady'; obj = obj || window; ...
/** * @category saltcorn-data * @module base-plugin/viewtemplates/viewable_fields * @subcategory base-plugin */ const { post_btn, link } = require("@saltcorn/markup"); const { text, a, i } = require("@saltcorn/markup/tags"); const { getState } = require("../../db/state"); const { contract, is } = require("contracti...
/** * # Overview * This module addresses several challenges for studying user engagement with web content. * * __Syncing Measurements and Interventions.__ A study that uses `WebScience` will * often involve multiple measurements or interventions on a webpage. The * `pageManager` module enables studies to...
$(function() { getLocalMaterialData(); checkAllCheckboxesInTable('.group-checkable','.checkboxes'); $('#btn_save').on('click', function(e) { if ($('#invoicedate').val() == '' || $('#receivingdate').val() == '') { msg('Please fill out all the dates.','failed'); } if ($('#invoice_no').val() == '') { msg(...
var myProductName = "publicFolder", myVersion = "0.5.7"; /* The MIT License (MIT) Copyright (c) 2014-2020 <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, in...
require('dotenv').config(); import Web3 from "web3"; import chai from 'chai'; import { mochaAsync } from '../utils'; import moment, { isDate } from 'moment'; import Application from '../../src/models'; import { ierc20, idostaking } from "../../src/interfaces"; import Numbers from "../../src/utils/Numbers"; import Cont...
/* * TypedArray.prototype.set() * * This is a very tricky method to implement: * * - Source may be a generic array or a TypedArray. * * - Source may be a view pointing to the same underlying buffer. * * - The operation is not a byte copy but conceptually values are * read from the source array...
/* * Copyright (c) Facebook, Inc. and its affiliates. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from "react"; import AtomicImage from "../../../../src/containers/AtomicImage.js"; import ErrorAlert from "../../../../sr...
const moment = require('moment-timezone'); const {truncateOrders, insertOrder, getOrder, deleteOrder} = require('./database'); const {postMessage} = require('./discord.js'); require('dotenv').config(); const binance = require( './node-binance-api' ); const usePairs = [ 'NEOUSDT','ALGOUSDT','ZRXUSDT','HOTUSDT', ...
/* //------------------------------------------------------------------------------ // 时间: 2018-03-22 // 作者: fdsaf // 区域维护用于维护区域, 控制器 // 文件: area_admin.cshtml 页面文件 // 文件: area_admin.js JS文件 //------------------------------------------------------------------------------ 路径:~/Areas/sys/...
/* Module by flyink13 Modified by oblaqoo */ var https = require('https'), http = require('http'), url = require('url'), querystring = require('querystring'), stream = require('stream'), Message = require('./vk_msg'); function VK(access_token, options) { var global_request_id = 0; optio...
/** * voronoi-js JavaScript Weighted Lloyd's Method * https://github.com/elrnv/voronoi-js * * 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://...
(function () { // function construct if (action == '' || action == null || typeof action == 'undefined') { window.history.back();s } // edit action if (action == 'edit') { FetchWithTimeout(base_url + Modules + '/' + Controller + '/getData2Edit/json/' + id, null, 'GET', 5000) .then((data) => { if (data.res...
// Grid & dataView need to be globals so they can be accessed from formatters // etc., var grid; var undoControl; if(!Array.prototype.indexOf) { Array.prototype.indexOf = function(obj, start){ for( var i = (start || 0), j = this.length; i < j; i++) { if(this[i] === obj) { return i; } } ...
/* * Copyright 2014 MarkLogic * * 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...
const fs = require('fs'); const cli_parser = require('../rbql-js/cli_parser.js'); const test_common = require('./test_common.js'); var rbql = null; let num_json_tests_executed = 0; function test_test_common() { test_common.assert(test_common.assert_arrays_are_equal([100, '20'], [100, '20'], false, true) == true);...
var desc_img = window.location.protocol + "//" + window.location.hostname + "/wp-content/plugins/wp_mega/img/desc.gif"; var asc_img = window.location.protocol + "//" + window.location.hostname + "/wp-content/plugins/wp_mega/img/asc.gif"; var current_url = window.location.pathname; Element.prototype.remove = function()...
/* eslint-disable */ import * as d3 from "d3"; import { NewickTools } from "newick"; export class GeneFlowTree { nodes = []; links = []; constructor(element) { this.container = element; this.props = { width: this.container.clientWidth, height: 1200 }; this.treeview = document.createE...
// author: <NAME> //launches the loading var elem = document.getElementById("loading-output"); // locks loading when reached 100 var lock = false; var AutoF = true; var mesh; var loading_pc = 0; var objects = []; init(); // once everything is loaded, we run our Three.js stuff. function init() { //whether mob...
var screenWidth = $(window).width(); function getUrlParams(dParam) { var dPageURL = window.location.search.substring(1), dURLVariables = dPageURL.split("&"), dParameterName, i; for (i = 0; i < dURLVariables.length; i++) { dParameterName = dURLVariables[i].split("="); if...
// This script runs the preferences wizard for dial-a-cluster. // It is heavily modified from the CCA wizard code. // // <NAME> // 6/7/2018 import api_root from "js/slycat-api-root"; import client from "js/slycat-web-client"; import ko from "knockout"; import mapping from "knockout-mapping"; import d3 from "d3"; impor...
var big_image; var cur_url = window.location.href, home_url = document.getElementsByTagName('base')[0].getAttribute('href'), bounds = null, infowindow = null, map = null, markers = [], circles = [], marker_icon = home_url+'assets/img/map_marker.png'; // Toastr setting up toastr.options = {...
/** * author: yenche123 * createdAt: 2020/02/07 */ const functions = require("firebase-functions") const admin = require('firebase-admin') admin.initializeApp() const req = require("request") // LINE的持久 TOKEN const LINE_TOKEN = "你的LINE CHANNEL ACCESS TOKEN" //請至 LINE CONSOLE 開發者平台獲取 exports.addTemplate = funct...
/* global MyAMS, tinyMCE */ /** * MyAMS forms support */ const $ = MyAMS.$; if (!$.templates) { const jsrender = require('jsrender'); $.templates = jsrender.templates; } let _initialized = false; /** * MyAMS "form" module */ export const form = { init: () => { if (_initialized) { return; } _init...
'use strict'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA...
import React, {Component} from 'react' import PropTypes from 'prop-types' import {Grid, Row, Col} from 'react-bootstrap' import Paper from '@material-ui/core/Paper'; import {withStyles} from '@material-ui/core/styles'; import {FormattedMessage} from 'react-intl'; import Skeleton, {SkeletonTheme} from 'react-loading-ske...
/**************************************************************************************************** * RDF Element Expression Preview * * The following code relies on the following OpenRefine code: * DataTableView * from OpenRefine/main/webapp/modules/core/scripts/views/data-table/data-table-view.js * ...
var bgPage = chrome.extension.getBackgroundPage(); var dragCurrent = null; function init(){ var savedata = JSON.parse(localStorage.getItem("savedata")); if(savedata == null){ savedata = {options:{}, blockList:[]}; } savedata["options"]["flag"] &= ~bgPage.FLAG_ALL.TRASH; var blockList = save...
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) { try { step(gene...
/* * Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) * * 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 requ...
const terms = []; let fieldz = []; const selections = { "location": [], "cancer_type": [], "image_types": [], "supporting_data": [], "status": [], "access": [] } // treemaps.js // inference ingestion const stacked_data = []; function createFlexBox(tagName, direction = 'row') { const elt = document.cr...
const terminalVelocity = 0.530 * 2; const maxVelocity = 1 * 2; const acceleration = 0.200 * 2; const gravity = 0.098 * 2; let scale = 2; const minScale = 1; let arrowKeys = null; class Level { constructor(plan) { this.width = (window.innerWidth - 1); this.height = (window.innerHeight - 4); this.star...
const fs = require("fs"); const log = require("./log.js"); const err = require("./errors.js"); const util = require("util"); const Discord = require("discord.js"); const { prefix } = require("./config.json"); const wait = require("util").promisify(setTimeout); //async wait /**** CLASSES ****/ class Database { constr...
var CharacterDict = []; // Stores all Character objects, with key equal to Character.charId (which is the same as the index of the character name in CharacterNamesArr). function InitializeCharacterDict() { // Populates CharacterDict with Character objects for each name in CharacterNamesArr. for (var char of Character...
if (typeof String.prototype.startsWith !== 'function') { String.prototype.startsWith = function (str){ 'use strict'; return (this.slice(0, str.length) === str); }; } if (typeof String.prototype.endsWith !== 'function') { String.prototype.endsWith = function(suffix) { 'use strict'; return this.index...
var mvEmptyCaption = " [empty]";// for optimised columns (for js operations) var ColsSpeed = ""; var mvSkip = 0; //Number of skipped row (miss first row on purpose) var mvTake = -2; // -2 = not set yet, value = number to take next time, -1 = finished (no rows left to load) var mvData; // the pagination data store ...
var apiRoot = "https://api.github.com/"; var asyncResults = -1; var asyncResultsTotal = 0; var ratelimit_limit = -1; var ratelimit_remaining = -1; var latestReleases = ''; var singleRelease = ''; var api_token = ''; var api_token_valid = true; var link_header = ''; var lastPos = 0; var asyncFail = false; //Initialize...
/** * This is an object containing fields that can be categorized as * Personal Identifiable Information and need removal before insertion. * @type {object} */ export const piiFields = { crash: [], charges: [], unit: [ "ownr_last_name", "ownr_first_name", "ownr_street_nbr", "ownr_street_pfx", ...
// special thanks to https://arh.antoinevastel.com/reports/stats/menu.html for stats export const getNavigator = async (imports, workerScope) => { const { require: { queueEvent, createTimer, getOS, captureError, attempt, caniuse, gibberish, sendToTrash, trustInteger, documentLie, li...
#!/usr/bin/env node function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var fs = _interopDefault(require('fs')); var path = require('path'); var kleur = require('kleur'); var asyncro = require('asyncro'); var glob = _interopDefault(require('tiny-glob/sync'...
import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import IconButt...
/* eslint-disable */ // @flow const React = require('react'), { Component } = React; const { Animated, Image, Dimensions, PanResponder, StyleSheet, TouchableWithoutFeedback, View, Text, } = require('react-native'); const Elevations = require('react-native-elevation'); const srcSliderRotated = req...
//Convert pose to L2 Norm > done //Next1: create VP tree with L2 data > done //Next2: create imageCollection > done //Next3: match VP tree with imageCollection > done //Next4: show result: video.onloadmetadata error, use localstorage > not enough memory import * as posenet from '@tensorflow-models/posenet'; impor...
import * as m from 'ml-matrix'; import * as gauss from '../utils/gaussian'; import { getEllipse } from '../utils/gaussian'; import * as r from "random"; const seedrandom = require('seedrandom'); r.use(seedrandom('foobar')); function print(m) { console.log("mat", m.rows, m.columns) if (m.columns == 1) { let r...
/* Schema and constraint checking for native SpecIF data in JSON format. Requires: ajv 4.8 or higher. License: Apache 2.0 (http://www.apache.org/licenses/) Author: <EMAIL>, enso managers gmbh, Berlin (http://www.enso-managers.de) We appreciate any correction, comment or contribution here on GitHub or via e-mail to...
import { WhiteSpace } from "antd-mobile"; import { Menu } from "antd"; import axios from "axios"; import React, { useContext, useEffect, useReducer, useState, useCallback, useRef, } from "react"; import { Link } from "react-router-dom"; import { useSelector, useDispatch } from "react-redux"; import { useTra...
'use strict'; import colors from 'colors'; import assign from 'object-assign'; import invariant from 'invariant'; import readKongApi from './readKongApi'; import {getSchema as getConsumerCredentialSchema} from './consumerCredentials'; import {normalize as normalizeAttributes, sameArray, subsetArray} from './utils'; im...
/*eslint-disable block-scoped-var, no-redeclare, no-control-regex, no-prototype-builtins*/ "use strict"; var $protobuf = require("../../minimal"); // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Lazily resolved type references var $lazyTypes = []; // Expo...
"use strict"; FW_version["zwave_neighborlist.js"] = "$Id: zwave_neighborlist.js 13579 2017-03-02 12:39:59Z rudolfkoenig $"; var zw_visible; var svgns = 'xmlns="http://www.w3.org/2000/svg"'; function zw_nl(fhemFn) { log("ZWNL called with "+fhemFn); zw_visible = !zw_visible; var txt = (zw_visible ? 'Hide' : 'Show...
// export interface VNode { // _isVNode: true, // 始终为 true 代表虚拟Node // el: Element | null, // 记录生成的真实 DOM // flags: VNodeFlags, // 节点类型 // tag: string | FunctionalComponent | ComponentClass | null, // 节点 Tag // data: VNodeData | null, // 属性信息 // children: VNodeChildren, // 子节点 // childFlags: ChildrenFlags...
'use strict' const express = require('express'); const argv = require('minimist')(process.argv); const cookieParser = require('cookie-parser') const uuid = require('uuid') const _ = require('lodash') const port = argv.port || 3000; const COOKIE_NAME = 'splendor-server' const app = express() app.use(express.json()) ap...
// Morten's JavaScript Tree Menu // written by <NAME> <<EMAIL>> (c) 1998-2000 // This is version 2.2.6, dated 2000-03-30 // The script is freely distributable // It may be used (and modified) as you wish, but retain this message // For more information about the menu visit its home page // http://www.treemenu.com/ /*...
"use strict"; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; var _createClass = (function () { function defineProperties(target, props) { for (var key in props) { var prop = props[key]; prop.configurable = true; if (prop.value) prop.writable = true; } Object.definePrope...
const Discord = require('discord.js'); const client = global.client = new Discord.Client(); const config = require('./config.json') const roller = require('./roller.json') const kanallar = require('./kanallar.json') const db = require('quick.db') const moment = require('moment'); var Jimp = require('jimp'); con...
///////////////////////////////////////////////////////////////////// // // // This file contains the main function that are used for the // // clusters. It defines the base clusters as well as the // // functions to update them. ...
// Import the page's CSS. Webpack will know what to do with it. import "./stylesheets/app.css"; // Import libraries we need. import { default as Web3} from 'web3'; import { default as contract } from 'truffle-contract' // Import our contract artifacts and turn them into usable abstractions. import dataDirectory_artif...
/********************************************* * * * Gotta Light? * * * * -> click to control the animation * * -> click again for automatic animation. * * ...
// // Garlicoin Discord Bot // A bot written for NodeJS to compliment a Garlicoin cryptocurrency Discord server // https://github.com/Beguiled/GarlicoinDiscordBot // // Created by <NAME> (beguil3d#2285) // Version 1.0 // Changelog // 2018/04/23 Version 1.0 - Initial Release let BOT_VERSION = "1.0"; // Define Disco...
// Copyright 2014-2021, University of Colorado Boulder /** * A static object that contains methods for redistributing a set of energy chunks within a shape in order to make them * spread out fairly evenly in a way that looks dynamic and realistic. The basic approach is to simulate a set of * small spheres embedded...
"use strict"; const G = 6.67408e-11; // gravitational constant let TOL = 1e-8; // Tolerance for ODE solver. Overriden by user input later. let canvas = document.getElementById("myCanvas"); let ctx = canvas.getContext("2d"); let ZOOMPAD = 0.985; let windowSize = () => [window.innerHeight, window.innerWidth-200]; [can...
//When DOM loaded we attach click event to button $(function() { //===================================== CONSTANTS & variables ===================================== var UPDATE_INTERVAL = 5000, // update live results every 5 secs IDLE_TIMEOUT = 1200000, // idle check after 20 minutes RESULTS_PER_PAGE = 2...
/*global chrome Html*/ // TOP PAGE let prefs, handlers, msgHandlers, isFacebook, originalHeight, header; let menu, loadCompleted, styleLoaded; let lastFullWindow = false; let isOk = false; function getUnixTime() { return Math.floor(Date.now() / 1000); } function getFullWindow() { return prefs.fullWindow && loadComple...
// wink-bm25-text-search // // Copyright (C) GRAYPE Systems Private Limited // // This file is part of “wink-bm25-text-search”. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal i...
var compressor = new LZMA( "./js/lzma_worker.js" ); var TO_RADIANS = Math.PI / 180; var SCREEN_WIDTH = window.innerWidth; var SCREEN_HEIGHT = window.innerHeight; var SHADOW_MAP_WIDTH = 1024; var SHADOW_MAP_HEIGHT = 1024; var MARKER_HEIGHT = 20; var viewportWidth = 1080; var viewportHeight = 800; var container; var pr...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import {Checkbox, Switch, DatePicker, Input, Button, Col, Row, Select, Tooltip, ConfigProvider, Spin, Typography, Tabs} from 'antd'; import {InputsContainer} from "../../../../lib/styled"; import 'react-dual-listbox/li...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. Object.defineProperty(exports, "__esModule", { value: true }); const glob = require("glob"); const colors = require("colors"); const os = require("os"); ...