text
stringlengths
3.22k
29.5k
function showSummaryTable(graph){ if(graph.editorMode == "Shape Editor Mode") { tempGraph = graph; var alltable = loadAllTable(graph); if(alltable == null){ mxUtils.alert("Unable to display the semantic table summary because no semantic table has been defined for any stencil and ...
'use strict'; var _ = require('lodash'); var $ = require('preconditions').singleton(); var Uuid = require('uuid'); var log = require('npmlog'); log.debug = log.verbose; log.disableColor(); var Bitcore = require('bitcore-lib'); var ObjectHash = require('ocore/object_hash'); var EcdsaSig = require('ocore/signature'); ...
/** * Selenium api for javascript * Ref: https://seleniumhq.github.io/selenium/docs/api/javascript/ * * SheetJS js-xlsx (npm i xlsx --save) * Ref: https://www.npmjs.com/package/xlsx * * Selenium Dev * Ref: https://selenium.dev/documentation/en/ * * */ // const util = require('util'); const fs = require('...
import 'drag-drop-touch'; const addedLayers = []; const zIndexStart = 0.1; const dropZone = '<li title="drop" id="dropSlot" class="dropzone"></li>'; let draggedElement; let zIndexCounter = zIndexStart; const contentFromChildEl = function contentFromChildEl(element) { if (element.childElementCount < 1) return ''; ...
var express = require('express'); var router = express.Router(); var PostModel = require('../models/posts'); var CommentModel = require('../models/comments'); var checkLogin = require('../middlewares/check').checkLogin; var fs = require('fs'); var url = require('url'); var path = require('path'); var form...
/* global grecaptcha */ import './sass/frontend.scss'; import md5 from 'crypto-js/md5'; import Main from './compoments/index.eft'; import Bar from './compoments/bar/bar.eft'; import Form from './compoments/form/main'; import UIStrings from './strings/content'; import Comment from './compoments/comment/comment.eft'; im...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Animated from 'animated/lib/targets/react-dom'; import Modal from 'react-modal'; import { changePageStatus } from '../../constants/common'; import { changeSelectedToken } from '../../constants/tokens'; import { getCurrentWalletBala...
'use strict' let fs = require('fs'), secJson = require('./security.json'), logLocation = secJson.loggingPolicy.logCollection.storage, label = 'SECURITY EVENT', timestamp = require('time-stamp'), id = require('shortid'), createCsvWriter = require('csv-writer').createObjectCsvWriter, csvWriter...
const buttons = require('sdk/ui/button/action'); const tabs = require('sdk/tabs'); const pageMod = require('sdk/page-mod'); const self = require('sdk/self'); const ss = require('sdk/simple-storage'); const system = require('sdk/system'); const sp = require('sdk/simple-prefs'); const nowPlayingIO = require('./lib/nowPla...
import * as THREE from '../three.module.js'; import {float3, plane, quaternion, sphere} from "../spacialMaths.js"; class RotationHandle { static nameToColor = { "axis_xz": new THREE.Color(0xa9fd00), "axis_yz": new THREE.Color(0xfd003b), "axis_xy": new THREE.Color(0x00b1fd) } static downColor = new THREE.Color...
class Exception extends Error { constructor(message) { super(message); this.name = this.constructor.name; } getName() { return this.constructor.name; } } class IllegalArgumentException extends Exception { constructor(message) { super(message); } } class InvalidDestinationException extends Ex...
/* * ES2015 simple and accessible hide-show system (collapsible regions), using ARIA * Website: https://van11y.net/accessible-hide-show/ * License MIT: https://github.com/nico3333fr/van11y-accessible-hide-show-aria/blob/master/LICENSE */ const loadConfig = () => { const CACHE = {}; const set = (id, config...
// Command list const COMMAND_TYPE = { UNKNOWN: "", EXIT: "exit", HELP: "help", CD: "cd", CAT: "cat", LS: "ls", LAUNCH: "./", MV: "mv", TREE: "tree", GREP: "grep", JOBS: "jobs", CLEAR: "clear", MAN: "man", YES: "yes", CHMOD: "chmod", TOUCH: "touch", WR...
import { RenderAfterNavermapsLoaded, NaverMap, Marker, // Circle, // GroundOverlay, // Ellipse, Polyline, } from "react-naver-maps"; import { HEADER_HEIGHT, SCREEN_HEIGHT } from "./../style"; import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil"; import { BottomModalState, ChatRo...
/* global chrome */ /* global $ */ Array.prototype.removeConditional = function (comparator) { var result = []; this.forEach(function (arg) { if (!comparator(arg)) result.push(arg) }); return result; }; String.prototype.getHash = function () { var arr = this.split(''); var hash = 0; ...
/** * Created by penn on 2016/12/21. */ import React, {Component} from "react"; import {StyleSheet, Text, Image, View, TextInput, TouchableOpacity, Platform, ListView, ActivityIndicator, DeviceEventEmitter } from "react-native"; import Toast, {DURATION} from "react-native-easy-toa...
/** * Chart组件 * * @author eric */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ART } from 'react-native'; import flattendeep from 'lodash.flattendeep'; import { calculateYScale } from '../../../scale'; import { getCurrentItem, CalculateUtil } from '../../../util'; c...
import { steamImages } from './steam_images.js'; import { sstTemplate } from './sst_template.js'; import { EXTENSION_INFO, PLATFORMS_INFO, MAX_CATEGORIES, MAX_SCREENSHOTS, MAX_TAGS, fetchAllSettings } from './default_settings.js'; import { backgroundQueries } from './background.js'; import '../sass/steamstoretooltip.s...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Document = void 0; const fs_1 = require("fs"); const path_1 = require("path"); const constant_1 ...
const fs = require('fs'); const path = require('path'); const walkSync = require('walk-sync'); const stew = require('broccoli-stew'); const funnel = require('broccoli-funnel'); const mergeTrees = require('broccoli-merge-trees'); const EmberApp = require('ember-cli/lib/broccoli/ember-app'); const defaultsDeep = require(...
import Table from '../../libs/table'; import Upload from '../../libs/upload'; import ValidationForm from '../../libs/validation_form'; import DentistService from '../../services/admin/dentist_service'; import Dentist from '../../models/dentist'; import Image from '../../models/image'; import SpecialismCollection from '...
/* ---------------------------------------------------------- GeneralMIDI ---------------------------------------------------------- */ const GM_fixer = in_dict => { const asId = name => name.replace(/[^a-z0-9 ]/gi, '').replace(/[ ]/g, '_').toLowerCase(); const res = { byName: { }, byId: { }, ...
/** * Gets the alphabet of characters used in a given string. * @param str The input string. * @returns The input string's alphabet as a character array. */ function get_alphabet(str) { const Sigma = new Set(); for (let i = 0; i < str.length; ++i) Sigma.add(str[i]); return Array.from(Sigma).sort...
// VuePoint.js LoopBack customizations 'use strict'; // console.log('\x1b[33m%s\x1b[0m', `>>> >>> BOOT: ${__filename}`); const SQL_BATCH_DELIMITER = 'GO;'; /** * LoopBack 3.x supports modeling FK relationships and will honor those relationships * when performing API methods. However, the SQL Server data source for...
const Market = artifacts.require("Market.sol"); const EthCrypto = require('eth-crypto'); contract("Market", accounts => { // Test case 1 it("should demonstrate successfully enlisting items and displaying active enlistments", async () => { const marketPlace = await Market.deployed(); // Creating instance of contra...
'use strict'; var logger = require('winston'); /** * * The following documents the bytes received from the Mind Mirror 3 during * EKG measurements. * Byte Index - Description 0 - sync byte 1 - packet size 2 - checksum 3 - value of 0x04 4 - frame # 5 - status 6 - attenuation settings - no value 7 - timest...
/* * issues_integration_jira_service.js * copyright NHN China Co.,LTD */ /** * issues integration jira service * * @author <a href="mailto:<EMAIL>">Carter</a> */ var _ = require('underscore'), async = require("async"), btsConfig = require('../utils/config_util.js').bts_integration, configserv...
import React, { useState, useEffect } from 'react'; import { isFuture, isPast, formatDistanceToNowStrict } from 'date-fns'; import { Container, Card, Row, Col, Image, Carousel } from 'react-bootstrap'; //import { useGoogleReCaptcha } from 'react-google-recaptcha-v3'; //import fetch from 'node-fetch'; import Iframe from...
$(function(){ $(".zt_listitem .cover a").click(function(){ var _this = $(this); var ewmurl = _this.parents(".zt_listitem").attr("qrcode_url"); var zturl = _this.parents(".zt_listitem").attr("redirect_url"); showEwm(ewmurl,zturl); }); $(".ztmb_listitem .cover a").click(function(){ var _this = $(this); ...
var n = 15, // number of layers m = 8; // number of sample per layer var margin = {top:30, right:40, bottom:30, left:60}, height = 600 - margin.top - margin.bottom, width = 680 - margin.left - margin.right; var xScale = d3.scale.ordinal() .domain(d3.range(2007, 2015)) .rangeRoundBands([0, width-100], 0.08); ...
import React from 'react'; import FetchingStatus from './constants'; import { connect } from 'react-redux'; // import algoliasearch from 'algoliasearch'; import api from '../api'; import { FETCH_STARRRED_STATUS, } from './actionTypes'; // testing // api.queryToServer('react', 'grimmer0125', 0, (resp) => { // cons...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
const Interpreter = require('./Interpreter'); const AST = require('./Ast'); const Token = require('./Token'); console.log(Interpreter); const operatorLevels = [ ['(', ')', '=>'], ['='], ['+', '-'], ['*', '/', '%'], ]; const rightAssociativeOperators = ['=']; const stopOperators = ['(', ')']; const operators = '*...
/*The MIT License (MIT) Copyright (c) 2016 <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...
import React, { Component } from 'react'; import { Grid, Row, Col, Image } from 'react-bootstrap'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import { BrowserRouter as Router, Route, Switch, Redirect, Link } from 'react-router-dom'; import logo from './img/logo.png'; import logo_mobile from...
"use strict"; // Shown when there are no more events today in a room. const FINISHED_FOR_DAY_TITLE = 'Finished for the day!'; const FINISHED_FOR_DAY_MESSAGE = 'Proceedings in {room} have finished.'; // Shown when there are no days of the conference that are today. // Query parameter ?lt=(ISO8601 DateTime) can activat...
'use strict'; import {setImmediate, clearImmediate} from '../../polyfill/set-immediate'; import {assign} from '../utils'; const ROOT_PATH = "@@ROOT_PATH@@"; const BOOT_ACTION = "@@BOOT_ACTION@@"; const listeners = Object.create(null); //noinspection JSUnresolvedVariable const DEBUG = typeof process !== 'undefined' &&...
const crypto = require('crypto'); const DHT = require('./DHT'); const uuid = require('uuid'); const currentNodeUrl = process.argv[3] || 'https://scab-blockchain.herokuapp.com'; const _ = require('lodash'); const IpfsClient = require('./IPFS_Test'); function blk(){ this.hashTable = {}; this.chain = []; this...
import {mkEntityLinkGridCell} from "../../../common/grid-utils"; import _ from "lodash"; import {rgb} from "d3-color"; import {determineForegroundColor} from "../../../common/colors"; import {scaleLinear} from "d3-scale"; import extent from "d3-array/src/extent"; export const reportGridMember = { OWNER: { ...
var xdebug = window.myDebug('COIN:ShopCenter'); import React, { Component, PropTypes } from 'react' import { IndexLink, Link } from 'react-router' import _ from 'lodash'; import moment from 'moment'; import styles2 from './styles.scss'; import styles from 'components/widgets/Widgets.scss'; import classNames from 'class...
var Nightmare = require('nightmare'); var Promise = require("bluebird"); let cheerio = require("cheerio"); let moment = require("moment"); var config = require('config'); var proxM = require('./getProxyIps') let baseurl = 'http://rightic.cn/search#/part='; // http://rightic.cn/search#/part=2222 module.exports.craw...
// app.js file before refactor // note: sensitive api keys and secrets deleted const express = require('express') const app = express() var Twitter = require('twitter'); var config = require('./config.js'); var T = new Twitter(config); // const tweet = require('./tweet.js'); var exphbs = require('express-handlebars'...
// ==UserScript== // @name MusicBrainz Magic Tagger Button // @description Automatically enable the green tagger button on MusicBrainz.org depending on whether Picard is running. // @version 0.7.3 // @author <NAME> // @namespace https://uploadedlobster.com // @license MIT // @icon ...
import { Component, PropTypes, createElement } from 'react' import hoistStatics from 'hoist-non-react-statics' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { mapValues } from 'lodash' import isPromise from 'is-promise' import getDisplayName from './util/getDisplayName' import ...
import React from 'react'; import { StyleSheet, Text, View, ScrollView } from 'react-native'; import { fontSizeResponsive } from '../utils/Metric.js'; import { Feather } from '@expo/vector-icons'; import ReadMore from 'react-native-read-more-text'; import { Alert } from '../components/common/Alert.js'; import { Share }...
// var data = [ // { "dep": "First Top", "name": "First child", "model": "value1", "size": "320" }, // { "dep": "First Top", "name": "First child", "model": "value2", "size": "320" }, // { "dep": "First Top", "name": "SECOND CHILD", "model": "value1", "size": "320" }, // { "dep": "Second Top", "name": "...
// MIT License // // Copyright 2019-2020 Electric Imp // // SPDX-License-Identifier: 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 limitatio...
'use strict'; var Conversation = require('watson-developer-cloud/conversation/v1'); var _ = require('lodash'); let cs; let workspace_id; let cont = 0; let threshold; let runningTest = false; module.exports = { init: (user, password, workspace, version_date, paramthreshold) => { let newService = { ...
import React, { Component } from 'react' import '../css/project.css'; import avatar from '../img/avatar.jpg'; import '../css/loading.css'; import { NavLink } from 'react-router-dom'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { viewSingleProject, archiveProject, delete...
import * as Dat from "dat.gui"; import { Scene, Color, Fog, Vector3, MeshLambertMaterial } from "three"; import { Flower, Land, Bear, Deer, Stork, Fox, PineTree, OakTree, ElmTree, Grass, Mushroom, Trees, Music, } from "objects"; import { BasicLights } from "lights"; import * as THREE from "thr...
/* * @Descripttion: * @version: * @Author: tina.cai * @Date: 2021-02-23 16:21:29 * @LastEditors: tina.cai * @LastEditTime: 2021-02-25 15:36:29 */ import * as tool from '../lib/tool.js'; class VFeedbackNetwork { constructor() { this.reqList = {}; // URL as key, request item as value this.mockAjax()...
import React from "react"; import ReactDOM from "react-dom"; import ReactTestUtils from "react-dom/test-utils"; import {renderHtml, hydrateHtml, Html} from "../../"; // TODO: add karma non-deterministic tests const appContainerId = "app"; const appContainerSelector = `#${appContainerId}`; const APP_COMPONENT = <div ...
let historyPlayer = {win: 0, lose: 0}; let historyDealer = {win: 0, lose: 0}; let hiddenCard; let playerBalance = 0; const bet = 100; // Player Model class Person { // Constructor constructor() { this._hand = []; this._hiddenCard = []; this._active = true; } get hand() { ...
// Változók beállítása var movePaddle = 0; var moveBullet = 0; var bullettX = paddlePos + 40; var bullettPosY = 30; var paddlePos, ghostPosX, spectrePosX, bombPosX, bombPosY, bomb2PosX, bomb2PosY, life; var score = 0; var game = true; var paused = false; var sound = true; // configuring DOM...
/* * Classe de interface para listagem de produtos * Desenvolvido por <NAME> * https://github.com/mathmed * Última atualização no arquivo: 22/05/2019 * Projeto utilizando o framework React Native * Software desenvolvido para disciplina de Engenharia de Software II / UFRN */ /* importações necessárias */...
var endpoint = 'http://127.0.0.1:8000/api/v1/'; window.endpoint = endpoint; var myApp = angular.module('myApp', [ 'ng-admin', 'ng-admin.jwt-auth', 'ngDialog', 'util' ]); // custom API flavor var apiFlavor = require('./api_flavor'); myApp.config(['RestangularProvider', apiFlavor.requestInterceptor]); /...
const appc = require('node-appc'); const { IncrementalFileTask } = require('appc-tasks'); const crypto = require('crypto'); const fs = require('fs-extra'); const jsanalyze = require('node-titanium-sdk/lib/jsanalyze'); const nodeify = require('nodeify'); const path = require('path'); const pLimit = require('p-limit'); c...
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
// functions: strictMode(), initialize(), start(), beginInterval(), lightenUp(), beepIn(), darkDown(), stopLight() // buttonClicked(), buttonUp(), compare(), gameOver() var computerArr = void 0; var playerArr = void 0; var myLightFunc = null; // lights up button upon click var myDarkFunc = null; // re-darkens button ...
/** * Created by hocgin on 2017/1/31. */ const VERSION = '0.0.7'; /** * _ _ * __| | ___| |__ _ _ __ _ * / _` |/ _ \ '_ \| | | |/ _` | * | (_| | __/ |_) | |_| | (_| | * \__,_|\___|_.__/ \__,_|\__, | * |___/ **/ var iDEBUG = false; if (iDEBUG) { browser.storage.local....
import React, { useContext, useMemo } from 'react' import { Descriptions, Skeleton, Card } from 'antd' import PropTypes from 'prop-types' import { abi as _gtcr } from '@kleros/tcr/build/contracts/GeneralizedTCR.json' import ItemStatusBadge from '../../components/item-status-badge' import styled from 'styled-components/...
/** * @license * Copyright 2021 Google LLC. 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
/* artifact generator: C:\My\wizzi\v5\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\kernel\wizzi\src\ittf\lib\production\_old_wfjob.js.ittf */ 'use strict'; // generated by wizzi.codegen.js4.es2015.module function _inherits(subClass, superClass) { if (type...
import { useEffect, useLayoutEffect, useState } from 'react' import { ExternalLinkIcon } from '@heroicons/react/solid' import Link from 'next/link' import SourceCode from './SourceCode' import axios from 'axios' import { blockExplorers } from '../lib/utils' import { example } from '../lib/example' const InputForm = (...
'use strict'; // Native const EventEmitter = require('events').EventEmitter; const fs = require('fs.extra'); const path = require('path'); // Packages const chokidar = require('chokidar'); const debounce = require('lodash.debounce'); const semver = require('semver'); // Ours const parseBundle = require('./bundle-par...
const inquirer = require('inquirer'); const path = require('path'); const fs = require('fs-extra'); const category = 'storage'; const parametersFileName = 'parameters.json'; const serviceName = 'DynamoDB'; const templateFileName = 'dynamoDb-cloudformation-template.json.ejs'; async function addWalkthrough(context, def...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const lodash_1 = tslib_1.__importDefault(require("lodash")); const typescript_1 = tslib_1.__importDefault(require("typescript")); const util = tslib_1.__importStar(require("../util")); const SyntaxKind = types...
var _ = require('underscore'); var BaseAnalysisFormModel = require('./base-analysis-form-model'); var template = require('./georeference-form.tpl'); var ColumnOptions = require('builder/editor/layers/layer-content-views/analyses/column-options'); var GEOREFERENCE_TYPES = require('./georeference-types'); var TYPE_TO_ME...
/** * 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...
/// <reference path="../../js/knockout.d.ts" /> /// <reference path="../../js/jquery.d.ts" /> /// <reference path="../../js/jqueryui.d.ts" /> /// <reference path="../../js/lodash-3.10.d.ts" /> /// <reference path="../../modules/actor-selector/actor-selector.ts" /> /// <reference path="../../ajax-wrapper/ajax-actio...
const ermu = {}; document.addEventListener('DOMContentLoaded',(evt) =>{ ermu.wss = new ErmuWss(); }); const iConstOnePageResult = 16; const LocalStorageHistory = 'wator/ermu/history'; class ErmuWss { constructor() { this.createWss_(); } static getHistory() { const historyStr = localStorage.getItem(Lo...
ApiClient.performEpisodeOrganization = function (id, options) { const url = this.getUrl('Library/FileOrganizations/' + id + '/Episode/Organize'); return this.ajax({ type: 'POST', url: url, data: JSON.stringify(options), contentType: 'application/json' }); }; ApiClient.perfo...
"use strict"; exports.__esModule = true; exports.default = void 0; var React = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")); var _event = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@react-hook/event")); var _throttle = /*#__PURE__*/require("@react-hook/throttle"); function _...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
/** * Lgtv2 - Simple Node.js module to remote control LG WebOS smart TVs * * MIT (c) <NAME> <<EMAIL>> (https://github.com/hobbyquaker) * this is a fork of https://github.com/msloth/lgtv.js, heavily modified and rewritten to suite my needs. * */ var fs = require('fs') var EventEmitter = require('ev...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var core = require('primereact/core'); var reactTransitionGroup = require('react-transition-group'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e...
import React, { Component, useState } from 'react' import './style.css' import { withStyles, makeStyles } from '@material-ui/core/styles'; import {Button, Menu} from '@material-ui/core'; import MenuItem from '@material-ui/core/MenuItem'; import Fade from '@material-ui/core/Fade'; import Typography from '@material-ui/c...
import React, { Component } from 'react'; import { View, ActivityIndicator, Text, TouchableOpacity, StyleSheet, StatusBar } from 'react-native'; import { BlueButton, SafeBlueArea, BlueTransactionOutgoingIcon, BlueTransactionPendingIcon, BlueTransactionIncomingIcon, BlueCard, BlueText, BlueLoading, Blu...
/* * * 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 * "Licen...
'use strict'; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createReactClass = require('create-react-class'); var _createReactClass2 = _interopRequireDefault(_createReactClass); var _valueMixin = require('./mixins/valueMixin'); var _valueMixin2 = _interopRequireDefault(_valueMi...
/** * Copyright 2013 the PM2 project authors. All rights reserved. * Use of this source code is governed by a license that * can be found in the LICENSE file. */ 'use strict'; /** * @file Fork execution related functions * @author <NAME> <<EMAIL>> * @project PM2 */ var log = require('debug')('pm2:for...
#!/usr/bin/env node const HELP_MSG = `vuextcg [store-definition.js] [output] Read the input Vuex definition file to output a ES2015 module file which exports three properties: * getters: contains upper case properties with the getters types * mutations: contains upper case properties with the mutations types *...
import * as Hammer from 'hammerjs' import Utils from '../../stuff/utils.js' import math from '../../stuff/math.js' var PANHEIGHT; export default class Sidebar { constructor(canvas, comp, side = 'right') { PANHEIGHT = comp.config.PANHEIGHT this.canvas = canvas this.ctx = canvas.getContext('2d') this...
/** * @desc amWiki 工作端·主模块 * @author 耀轩之 * @copyright 在Tevin的原基础上修改所得 * @see {@link https://github.com/YaoXuanZhi/amWiki} * @license MIT - Released under the MIT license. */ var vscode = require('vscode'); var fs = require("fs"); //VSCode的editor对象的二次封装 var editorForVSCode = require('./editorForVSCode') //手动刷新工具...
import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css'; import React from 'react' import _ from 'lodash' import AlertMessage from './AlertMessage' import NetworkSelect from './NetworkSelect' import Wallet from './Wallet' import Coins from './Coins' import About from './About' import { MsgGrant, MsgRevoke } ...
/** * CountsWeightsNewBasketSM.js: a state machine for handling entry of new basket weights and counts. * A little data on editing existing baskets (status messages) is placed here as well. */ // Note: no .pragma library, thus making variables of CountsWeightsScreen visible. // Messages for editing existing basket...
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 _typeof = typeof Symbol === "function" && typeof Symbol.i...
var Scroll = { positions: {}, history: [], historyIndex: 0, }; const NON_SCROLLABLE = 0, SCROLLABLE_Y_DOWN = 1, SCROLLABLE_Y_UP = 2, SCROLLABLE_X_RIGHT = 4, SCROLLABLE_X_LEFT = 8, SCROLLABLE = SCROLLABLE_X_LEFT | SCROLLABLE_X_RIGHT | SCROLLABLE_Y_UP | SCR...
//////////////////////////////////////////////////////////////////// ///////////////// helper functions ///////////////////////////////// //////////////////////////////////////////////////////////////////// class Node { constructor(value, next = null) { this.value = value; this.next = next; } } ...
/**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
const typeUtils = require('../../core/utils/type'); const STRING = 'string'; const NUMERIC = 'numeric'; const DATETIME = 'datetime'; const DISCRETE = 'discrete'; const SEMIDISCRETE = 'semidiscrete'; const CONTINUOUS = 'continuous'; const LOGARITHMIC = 'logarithmic'; const VALUE_TYPE = 'valueType'; const ARGUMENT_TYPE ...
/* eslint-disable camelcase */ const { Command } = require('discord-akairo'); const { Message } = require('discord.js'); const moment = require('moment'); class LookupCommand extends Command { constructor () { super('lookup', { aliases: ['lookup', 'user', 'userinfo'], description: { content: ...
import queue from 'async/queue'; import { interop, telemetry } from './messages'; import logger from './common/logger'; import MavlinkSocket from './mavlink-socket'; import { receiveMission, sendMission, sendMissionCurrent } from './mission'; import { degrees, modDegrees360, modDegrees180 } from './util'; const Conne...
'use strict'; const Hoek = require('@hapi/hoek'); const internals = {}; module.exports = class Toys { constructor(server) { this.server = server; } static withRouteDefaults(defaults) { return (options) => { if (Array.isArray(options)) { return options.map(...
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
THREE.VolumetericLightShader = { uniforms: { tDiffuse: {value:null}, lightPosition: {value: new THREE.Vector2(0.5, 0.5)}, exposure: {value: 1}, decay: {value: 1}, density: {value: 6}, weight: {value: 0.57}, samples: {value: 30} }, vertexShader: [ "varying vec2 vUv;", "void mai...
const Discord = require('discord.js'); const disbut = require("discord-buttons"); const { MessageMenuOption, MessageMenu } = require("discord-buttons"); exports.run = async (bot, message, args) => { //--------------------------------------S T A R T--------------------------------------- const color = "RA...
function alertShow(meg, but_num, but_left, but_right, left_fn, right_fn) { if (!$("#alert_bg").length) { var alertHtml = "<div id='alert_bg' style=\" width: 100%; position: absolute; top:0px; left: 0px; z-index: 1000; background: rgba(0, 0, 0, 0.1)\"></div>" + '<div id="alert_box">' + '<div id="show_mes">信息...
/** * @fileoverview Util for raphael rendering. * @author NHN. * FE Development Lab <<EMAIL>> */ import snippet from 'tui-code-snippet'; import renderUtil from '../helpers/renderUtil'; import raphael from 'raphael'; const LINE_HEIGHT_FOR_CALCULATE = 1.11; const storeForGetTextDimension = { cacheFontIn...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); const Template = require("../Template"); const { parseVersionRuntimeCode, versionLtRuntimeCode, rangeToSt...