text
stringlengths
3.07k
16k
import resources from '../../templates/resources'; import { init, animate, controls, scene, camera, renderer } from '../../templates/three3D'; import Base from './Base'; import Painting from './Painting'; import SpotLight from './SpotLight'; let picked = null; const pickables = []; const spotlights = []; const addSpo...
'use strict'; const _ = require('lodash'); const usersGetAll = require('../graphql/database').usersGetAll; const stampEventsGetAll = require('../graphql/database').stampEventGetAll; const stampEventUpdate = require('../graphql/database').stampEventUpdate; const stampEventCreate = require('../graphql/database').stampEve...
// Copyright 2019 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
let _id = 0; export const key = () => _id++; export const KEY_ENEMY_IS_DEFENCING = key(); export const KEY_ENEMY_IS_UNTOUCHABLE = key(); export const KEY_ENEMY_DEAD_FRAME = key(); export const KEY_ENEMY_IS_DEAD = key(); export const KEY_ENEMY_HEALTH = key(); export const KEY_ENEMY_LAST_DAMAGE_FRAME = key(); export con...
/* * @Author: zhaolin * @Date: 2019-5-30 * socket长连接和公共管理方案 * websocket和 VueX 还有 Redux建立起长连接机制 ,防止在路由切换时候的时候断开连接,需要把socket实例放入公共管理统一处理 * 此方案暴露出一个触发器 api,方便任何组件调用 , 内部有一个订阅器api ,与 VueX 中 mutations 和 Redux 中 reducers实时连接改变数据 */ let socketUrl = '' /** * @param value * @returns {string} 强数据类型校验 */ function i...
// SPDX-FileCopyrightText: 2009 Fermi Research Alliance, LLC // SPDX-License-Identifier: Apache-2.0 /* * Project: * glideinWMS * * File Version: * * Support javascript module for the frontend monitoring * Part of the gldieinWMS package * * Original repository: https://glideinwms.fnal.gov/ * */ // Load Fr...
const http = require('http'); var fs = require('fs'); const rp = require('request-promise') var Sha1 = require('sha1') var Web3 = require('web3'); var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); var piiszg_artifacts = require('./piiSZG.json'); var piiSZG = new web3.eth.Contract(piiszg_ar...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.graphqlLodash = void 0; const graphql_1 = require("graphql"); const apollo_utilities_1 = require("apollo-utilities"); const lodash_1 = require("lodash"); const lodash_2 = require("lodash"); const lodash_3 = require("lodash"); const lod...
import React, { Component } from 'react'; import deepmerge from 'deepmerge'; import logo from '../thanos.png'; import eth from '../tezos.png'; import Scaler from './scaler.js'; import Blockies from 'react-blockies'; import { TezosToolkit } from '@taquito/taquito'; import { TezBridgeWallet } from '@taquito/tezbri...
const User = require('../auth/models/users'); ///////////////////to add like and comments///////////////////////////////////////// // the body should be contain the likerId , comment information ,userId, serivceId or productId // the serivceId or productId should be send in the body under the serivceId // for example...
/* eslint-env mocha */ 'use strict' var expect = require('chai').expect var formats = require('..') describe('formats', function () { describe('parseNumberPattern()', function () { it('handles currency', function () { expect(formats.parseNumberPattern('jpy')).to.eql({ style: 'currency', cu...
import throttle from '../libs/throttle.js' import { inert, getJSON, putJSON, toMin, fromMin } from '../libs/util.js' import ls from 'local-storage' const config = { allowPlugins: false, serviceWorker: false } const fragments = {} function hideSchema (obj) { // Collapse @value if (typeof obj['@value'] !== 'un...
function create_roomjson() { var data = { "server": $('#login-server').val(), "user": $('#login-user').val(), "userpassword": $('#login-userpass').val(), "room": $('#login-room').val(), "roompsk": $('#login-roompsk').val() }; return JSON.stringify(data); } function ...
const DJS = require("discord.js"); const { codeBlock } = require("@discordjs/builders"); /** * Logs error through discord channel * @param {DJS.Client} bot * @param {DJS.DiscordAPIError|DJS.HTTPError|Error } error * @param {"warning" | "error"} type */ async function sendErrorLog(bot, error, type) { try { ...
import Injector from "./Injector"; import Utils from "./Utils"; import Config from "./Config"; import * as glMatrix from "gl-matrix"; class Camera { constructor(options = {}) { this.options = Utils.extend(this.options, options); this.init(); } init() { this.uuid = this.options.uuid || Utils.generat...
import BigNumber from "bignumber.js"; import cx from "classnames"; import React from "react"; import { connect } from "react-redux"; import ledgerWallet from "../../../assets/images/ledger_logo.png"; import ledger_title from "../../../assets/images/ledger_title.png"; import loadingCommon from "../../../assets/images/lo...
import { html, render } from "lit-html"; import { until } from "lit-html/directives/until"; import { loadPlanFromURL, loadPlanFromJSON, navigateTo, savePlanToStorage } from "../routes"; import Button from "../components/Button"; import PlanUploader from "../components/PlanUploader"; import { PlaceMapWithData } from ".....
const { IAPI } = require('../') const STR = [2, 7, 14, 16, 18, 19, 23, 28, 29, 38, 42, 49, 51, 54, 57, 59, 60, 69, 71, 73, 77, 78, 81, 83, 85, 91, 96, 97, 98, 99, 100, 102, 103, 104, 107, 108, 110] const AGI = [1, 4, 6, 8, 9, 10, 11, 12, 15, 20, 32, 35, 40, 41, 44, 46, 47, 48, 56, 61, 62, 63, 67, 70, 72, 80, 82, 88, 8...
var http = require("http"), path = require("path"), express = require("express"), bodyParser = require('body-parser'), multer = require('multer'), async = require('asyncawait/async'), await = require('asyncawait/await'), Promise = require('bluebird'), kblib = require("kb-signin"), constants = require("./consta...
import _Reflect$construct from '@babel/runtime-corejs3/core-js/reflect/construct'; import _classCallCheck from '@babel/runtime-corejs3/helpers/classCallCheck'; import _createClass from '@babel/runtime-corejs3/helpers/createClass'; import _inherits from '@babel/runtime-corejs3/helpers/inherits'; import _possibleConstruc...
import "regenerator-runtime/runtime"; import * as nearAPI from "near-api-js"; import getConfig from "./config"; let nearConfig = getConfig(process.env.NODE_ENV || "development"); window.nearConfig = nearConfig; // Connects to NEAR and provides `near`, `walletAccount` and `contract` objects in `window` scope async fu...
/* * Copyright 2012-present, Polis Technology Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights for non-commercial use can be found in the PATENTS file * in the sam...
/* eslint-disable no-undef */ // 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() const DEFAULT_LIMIT = 10; const DEFAULT_PAGE = 1; const MAX_LIMIT = 100; // 云函数入口函数 exports.main = async (event) => { const wxContext = cloud.getWXContext(); cloud.updateConfig({ env: wxContext.ENV === 'local' ? 're...
// this controls whether the layout is horizontal and the layer bands are vertical, or vice-versa: HORIZONTAL = true; // this constant parameter can only be set here, not dynamically // Perform a TreeLayout where commitLayers is overridden to modify the background Part whose key is "_BANDS". function BandedTreeLayout...
/** * Copyright (C) 2006-2019 Talend Inc. - www.talend.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 required...
// Important modules this config uses const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackPwaManifest = require('webpack-pwa-manifest'); const OfflinePlugin = require('offline-plugin'); const { HashedModuleIdsPlugin } = require('webpac...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const Tapable = require("tapable"); const ConcatSource = require("webpack-sources").ConcatSource; const START_LOWERCASE_ALPHABET_CODE = "a".charCodeAt(0); const START_UPPERCASE_ALPHABET_CODE = "A".charCodeAt(0); ...
/* eslint-disable prefer-destructuring */ import Bottleneck from 'bottleneck'; import Utilities from './utilities'; const utilities = new Utilities(); export default class Distance { constructor(params, venueName, unit, from_lat, from_long) { this.params = []; this.venueName = venueName; ...
/* * * WordPres版微信小程序 * author: jianbo * organization: 守望轩 www.watch-life.net * github: https://github.com/iamxjb/winxin-app-watch-life.net * 技术支持微信号:iamxjb * 开源协议:MIT * * *Copyright (c) 2017 https://www.watch-life.net All rights reserved. */ var Api = require('../../utils/api.js'); var util = require...
var leftMenuView = Ti.UI.createView({ backgroundColor:'white', width: Ti.UI.FILL, height: Ti.UI.FILL }); var centerView = Ti.UI.createView({ backgroundColor:'white', width: Ti.UI.FILL, height: Ti.UI.FILL }); var rightMenuView = Ti.UI.createView({ backgroundColor:'#ddd', width: Ti.UI.FILL, height: Ti.UI.FILL...
const cheerio = require('cheerio'); const axios = require('../../utils/axios'); const iconv = require('iconv-lite'); const url = require('url'); const base = 'http://www.t66y.com'; const axios_ins = axios.create({ headers: { Referer: base, }, responseType: 'arraybuffer', }); function killViidii(or...
import { dirname, join } from 'path'; import { buildExternalHelpers, transform } from 'babel-core'; import { createFilter } from 'rollup-pluginutils'; var INLINE = {}; var RUNTIME = {}; var BUNDLED = {}; var HELPERS = '\0babelHelpers'; function importHelperPlugin (ref) { var t = ref.types; /** * This function i...
'use strict'; const DIR = __dirname + '/../../'; const DIR_TMPL = DIR + 'tmpl/'; const DIR_HTML = DIR + 'html/'; const DIR_COMMON = DIR + 'common/'; const DIR_JSON = DIR + 'json/'; const DIR_SERVER = __dirname + '/'; const DIR_FS = DIR_TMPL + 'fs/'; const fs = require('fs'); const flop = require('flop'); const ponse...
// Gradient based optimization of parameters. 'use strict'; var _ = require('lodash'); var nodeutil = require('util'); var present = require('present'); var util = require('../util'); var optMethods = require('adnn/opt'); var paramStruct = require('../params/struct'); var params = require('../params/params'); var wei...
const commerce = require('./lib/commerce'); const { db, detectIntent } = require('./lib/firebase'); const { WebhookClient } = require('dialogflow-fulfillment'); const { nanoid } = require('nanoid'); // Require the framework and instantiate it // expressjs server const express = require('express'); const pa...
/*Copyright 2015-2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
export const zeroPaddedYear = value => (value ? ('0000' + value).substr(-4) : '*'); import { API_URL } from '../config'; export const CURRENT_ACCOUNT_API = () => ({ apiUrl: 'account', options: { params: { ts: `${new Date().getTime()}` } }, }); export const CURRENT_AUTHOR_API = () => ({ apiUrl: 'fez-authors' })...
"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...
import React from 'react'; import PropTypes from 'prop-types'; import Moment from 'moment'; import Select from 'react-select'; import CoverageChart from '../components/coverageChart'; import Table from '../components/table'; import Error from '../components/error'; import Loading from '../components/loading'; import ...
/** * server * * @author zzxun <<EMAIL>> */ 'use strict'; /** * module dependencies * @private */ const _ = require('lodash'); const thrift = require('thrift'); const Promises = require('bluebird'); const EventEmitter = require('events').EventEmitter; const transport = require('./transport'), utils = ...
#!/usr/bin/env node const jwt = require('jsonwebtoken'); const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({ retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] } }) const zlib = require('zlib'); const AWS = require('aws-sdk'); const SIZE_CHECK_APP_ID = 14028; const SIZE...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import chrome from 'ui/chrome'; import React from 'react'; import { render, u...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.delayGetScrollOffset = exports.delayGetClientRect = exports.handleTouchScroll = exports.pxTransform = exports.isTest = exports.initTestEnv = exports.getEventDetail = exports.uuid = exports.delayQuerySelector = exports.delay = undefi...
var guaranteeTime, selfStatus = true; mui('.mui-scroll-wrapper').scroll({ deceleration: 0.0005, indicators: true }); $('.switchone').parent().nextAll().hide(); $('.name').each(function(){ var length = $(this).text().length; if(length>6){ $(this).css({'word-break': 'break-all','line-height': '1.8'}); ...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use ...
// Create needed constants const list = document.querySelector('ul'); const titleInput = document.querySelector('#title'); const bodyInput = document.querySelector('#body'); const form = document.querySelector('form'); const submitBtn = document.querySelector('form button'); // Create an instance of a db object for us...
const d = new Date(); const days = ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']; const dayOfWeek = d.getDay(); const day = days[dayOfWeek]; export default [ { id: 1, html: 'C’est pas évident.' }, { id: 2, html: 'On a toujours fait comme ça.' }, { id: 3, html: `Ça va? Comme un ${day}....
const Rx = require('rxjs'); const GeoFence = require('../api/geoserver/GeoFence'); const ConfigUtils = require('../utils/ConfigUtils'); const { trim} = require("lodash"); const WMS = require('../api/WMS'); const {getLayerCapabilities, describeLayer} = require("./wms"); const {describeFeatureType} = require("./wfs"); c...
'use strict'; let userName = prompt('What is your name?'); let correctAnswer = 0; // console.log("Hello " +userName +" welcome to this guessing game, I hope you will have fun"); alert( 'Hello ' + userName + ' welcome to this guessing game, I hope you will have fun' ); /////////////Q1 let myAge = ''; let myAge...
'use strict' var hours = [ '6:00AM', '7:00AM', '8:00AM', '9:00AM', '10:00AM', '11:00AM', '12:00PM', '1:00PM', '2:00PM', '3:00PM', '4:00PM', '5:00PM', '6:00PM', '7:00PM', '8:00PM', 'Total' ]; // first tables var shopTable = document.getElementById('shops'); function makeHeaderRow() { ...
'use strict'; const Service = require('egg').Service; const parser = require('cron-parser'); class EmailsService extends Service { /* * 保存用户上报的数据 * * @param {*} pageNos * @param {*} pageSize * @param {*} email * @returns * @memberof EmailsService */ async getList(pageN...
var qs = require('querystring'); var path = require('path') var hyperquest = require('hyperquest'); var xtend = require('xtend'); var concat = require('concat-stream'); var json = require('./lib/json'); var pkg = require('./package.json'); var through = require('through'); var repipe = require('repipe'); var split = r...
import ethUtil from 'ethereumjs-util' import MethodRegistry from 'eth-method-registry' import abi from 'human-standard-token-abi' import abiDecoder from 'abi-decoder' import { TRANSACTION_TYPE_CANCEL, TRANSACTION_STATUS_CONFIRMED, } from '../../../../app/scripts/controllers/transactions/enums' import prefixForNetwo...
/** * @module ol/source/Zoomify */ import {DEFAULT_TILE_SIZE} from '../tilegrid/common.js'; import {inherits} from '../index.js'; import ImageTile from '../ImageTile.js'; import TileState from '../TileState.js'; import {expandUrl, createFromTileUrlFunctions} from '../tileurlfunction.js'; import {assert} from '../asse...
import App from './components/App/App'; import React from 'react'; import { StaticRouter } from 'react-router-dom/server'; import express from 'express'; import { renderToString } from 'react-dom/server'; import { runtimeConfig } from './config'; import serialize from 'serialize-javascript'; // Safer stringify, prevent...
const intermezzo = new Uint8Array([ 0x44, 0x00, 0x9F, 0xE5, 0x01, 0x11, 0xA0, 0xE3, 0x40, 0x20, 0x9F, 0xE5, 0x00, 0x20, 0x42, 0xE0, 0x08, 0x00, 0x00, 0xEB, 0x01, 0x01, 0xA0, 0xE3, 0x10, 0xFF, 0x2F, 0xE1, 0x00, 0x00, 0xA0, 0xE1, 0x2C, 0x00, 0x9F, 0xE5, 0x2C, 0x10, 0x9F, 0xE5, 0x02, 0x28, 0xA0, 0xE3, 0x01, 0x0...
// https://github.com/mrdoob/three.js/blob/master/examples/jsm/objects/Reflector.js // The following reflector was made by <NAME>, and is available at the above link // The code was made available under an MIT Licence import { Color, LinearFilter, MathUtils, Matrix4, Mesh, PerspectiveCamera, Plane, RGB...
"use strict"; require('datejs'); let mongoDB = undefined; //const mongoDB = require('./MongoDB')(); const COLLECTION_NAME = "Shift"; const { CustomError } = require("../../../tools/customError"); const { map, mergeMap, reduce, tap } = require("rxjs/operators"); const { of, Observable, defer, from, range } = require("r...
import Handsontable from 'handsontable'; import columns from '../../data/columns'; import findColumnHeader from '../util/findColumnHeader'; import Chart from 'chart.js'; import BaseTab from './base'; import HandsontableConfig from '../handsontable.config'; class LeagueTab extends BaseTab { constructor(App, tabId) ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParsingResult = exports.ParsingComponents = void 0; const quarterOfYear_1 = __importDefault(requ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("wyvern-js/lib/types"); exports.Network = types_1.Network; exports.HowToCall = types_1.HowToCall; /** * Events emitted by the SDK. There are five types: * 1. Transaction events, which tell you when a new transaction was...
import React from 'react'; import Promise from 'bluebird'; import debug from 'debug'; import { ApolloProvider, getDataFromTree } from 'react-apollo'; import { match, RouterContext, createMemoryHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import ReactDOMServer from 'react-dom...
//事件绑定函数 function bindEvent(obj, ev, fn){ //通过document 判断是否是IE //是IE if(!document.addEventListener){ obj.attachEvent(ev,fn); //鼠标点击时触发此事件 } //非IE浏览器,火狐 else{ obj.addEventListener(ev,fn,false); } }; //事件解绑函数 function delEvent(obj, ev, fn){ //通过document 判断是否是IE //是IE if(!document.removeEventListener){ ...
/*global require, __dirname, console*/ 'use strict'; var express = require('express'), bodyParser = require('body-parser'), errorhandler = require('errorhandler'), morgan = require('morgan'), N = require('./nuve'), fs = require('fs'), https = require('https'), config = require('./../../licod...
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 defineProperties(ta...
import React, { useState, useEffect, useCallback } from 'react'; import { Grid, GridItem, Tabs, Tab, TabTitleText } from '@patternfly/react-core'; import PropTypes from 'prop-types'; import marked from 'marked'; import { sanitize } from 'dompurify'; import './PluginBody.css'; import CopyURLButton from '../../../gener...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _index = require("../../lib/utils/index.js"); var _index2 = _interopRequireDefault(require("../../lib/voiceSearchHelper/index.js")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj ...
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); app.get('/', function(req, res){ res.sendFile(__dirname + '/index.html'); }); var games = []; var Player = function(x, y) { this.socket = undefined; this.x = x; this.y = y; th...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
import { getClientFromPool, clientQuery, releaseClient } from '../../../db/index' import { sessionOptions } from '../../../lib/session' import { withIronSessionApiRoute } from 'iron-session/next' export default withIronSessionApiRoute(async function(req, resp) { if (req.method !== 'GET') { resp.status...
import { useDataQuery, useDataMutation } from '@dhis2/app-runtime' import i18n from '@dhis2/d2-i18n' import { Button, CircularLoader, IconChevronDown24, IconChevronUp24, IconClock16, IconShare16, IconSubscribe24, IconSubscribeOff24, IconUser16, IconView16, colors, } from '@dh...
import React from "react"; //Material UI import { TextField } from '@material-ui/core/'; // reactstrap components import { Container, Alert } from "reactstrap"; // core components import Header from "../components/Headers/Header.js"; import DialogBox from '../components/DialogBox/DialogBox'; import User...
import React, { Component, PropTypes } from 'react'; import { Accordion , Icon } from 'antd-mobile'; import { FormattedMessage } from 'react-intl'; import moment from 'moment'; import styles from './trackingShippingDoc.css'; import { businessEvent } from '../../../../config'; class TrackingShippingDocuments extends C...
const fs = require('fs'); const {ArgumentParser} = require('argparse'); const _ = require('lodash'); const ALL_COMMAND_PARAMETERS = ['--jsonTemplate', '--resolveEnv', '--configFile']; class JsonTemplateHandler { canHandle(args) { return !!args.jsonTemplate; } handle(command) { const argNam...
/* eslint-disable no-console */ //const fs = require('fs'); // const _ = require('underscore') // var data = JSON.parse(fs.readFileSync('300 questions.json','utf-8')) var data; var correctBackground = '#c8e6c9' var correctFont = '#43a047' var wrongBackground = '#ef9a9a' var wrongFont = '#e53935' var jsonCallback = func...
var http = require('http'); var request = require('request'); var express = require('express'); var authenticate = require('../lib/authenticate'); var mongoose = require('mongoose'); var fs = require('fs'); var path = require('path'); var _ = require('underscore'); var config = { db: require('../config/db') }; //imp...
const express = require('express'); const { isEmpty } = require('lodash'); const ParticipantData = require('../models/participantData'); const Log = require('../models/log'); const router = express.Router(); const fs = require('fs'); const { time } = require('console'); const zip = require('express-easy-zip'); const AW...
const path = require('path'); const lex = require('pug-lexer'); const stripComments = require('pug-strip-comments'); const parse = require('pug-parser'); const load = require('pug-load'); const link = require('pug-linker'); const toCamelCase = (text) => text.replace(/-\w/g, clearAndUpper); const toPascalCase = (text) ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isArrayLike = require('./internal/isArrayLike.js'); var _isArrayLike2 = _interopRequireDefault(_isArrayLike); var _breakLoop = require('./internal/breakLoop.js'); var _breakLoop2 = _interopRequireDefault(_breakLoop); var _eachOf...
affixElement.$inject = ['$window']; export default function affixElement($window) { return { restrict: 'A', scope: { scrolloffset: '=affixPosition' }, link: function(scope, element) { var win = angular.element($window); var scrolloffset = (typeof ...
/** * NoobHub node.js server * Opensource multiplayer and network messaging for CoronaSDK, Moai, Gideros & LÖVE * * @usage * $ nodejs node.js * * @authors * <NAME> * <NAME> * * @license WTFPL * * https://github.com/Overtorment/NoobHub * **/ const net = require('net'); const cfg = { ...
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
var baseUrl = "http://localhost:8000/"; function Notification(settings){ this.settings = settings; this.interval; this.init(); } Notification.prototype.init = function(){ this.getTotal(); var caller = this; $(this.settings.target).on('click', function(){ caller.getDetail(); }); } Notification.prototype.star...
import React, {Component} from 'react'; import StepperMaster from './StepperMaster'; import ParcelTableRow from '../ParcelTableRow'; import ParcelStore from '../../stores/ParcelStore'; import ParcelActions from '../../actions/ParcelActions'; import Input from 'muicss/lib/react/input'; import Button from 'muicss/lib/rea...
let canvas let gl async function loadShaderProgram(vertexURL, fragmentURL) { // Fetch shader source code from given URLs let res; res = await fetch(vertexURL); const vertexSource = await res.text(); res = await fetch(fragmentURL); const fragmentSource = await res.text(); // Util fo...
/* * Script for overall piano core functions * * ⓒ 20-700***** *** a.k.a. SDSK */ /* Voice Manager class */ class VoiceManager extends EventTarget { /** Events fire: `lengthupdate` ─ Fired when 'voiceLength' has been updated `playstart` ─ Fired when starting play AudioChunk on voice slot and it's succe...
// Parent class import MeshFactory from './MeshFactory' // Base geometry factories import CubeFactory from './CubeFactory' import CylinderFactory from './CylinderFactory' import ArmFactory from './ArmFactory' /** * A class to build a representation of the UW Stout Bell monument * for use with Three.js. Do not call...
/** * Created by Administrator on 2017/6/28. */ // $('#content-detail').click(function(event){ // if(event.target.type === 'checkbox'){ // // } // }); function plusCount(obj){ updateCart(obj,1); } function minusCount(obj){ updateCart(obj,-1); } function updateCart(obj,num){ var oUl = obj.parentNo...
const Tree = require('./tree'); const util = require("util"); // // The class the simplifies the debts // class DebtFlow { // // Constructor // constructor(){ this.people = []; this.expenses = []; this.debts = []; this.spents = []; } // constructor // ...
'use strict'; const assert = require('assert'); const fs = require('fs'); const babel = require('@babel/core'); const chai = require('chai'); const babelStraits = require('../index.js'); const {expect} = chai; function parse( code ) { return babel.transform( code, { "plugins": [ { parserOverride:babelStraits...
/* * ブラウザに紐付けられたメインのjs */ /*使用する際はこちらを埋めてコメントアウトを解除 var host = { name:"example.com", port:"3000"//初期値は3000 お好きな値をrc-socket.jsで決めてどうぞ。 }; */ var gyro = { status: false, x: 0, y: 0, z: 0 }; var host ={ name:"", port:"" }; $(function () { //host.jsonからサーバーの情報を取得。 $.getJSON("js/ho...
/// <reference path="CommonUtil.js" /> $(document).ready(function () { var _url = window.location.pathname; var REFGRPLIST = 'INDSTY'; viewham.setLabelText(); $('#ddlIndustries').select2({placeholder: "Industries",allowClear: false}); $('#sltInvestorcurrency').select2(); $('#sltInvestorLocati...
"use strict"; 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.defineProperties(target, props); } return function (Constructor, protoProps, staticProps) { if (protoProps)...
import React from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Row, Col, Progress, Tag, Popover } from 'antd'; import moment from 'moment'; import MyIcon from '@components/MyIcon'; import TextOverFlow from '@components/TextOverFlow'; import DefineDot...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); var _slicedToArray2 = _interopRequireDefa...
// Global handle to module var MonteCarloModule = null; // Global status message var statusText = 'NO-STATUS'; var lastClick = null; var nPtsSim = null; var results = new Array(); function pageDidLoad() { var listener = document.getElementById("listener"); listener.addEventListener("load", moduleDidLoad, true ...
'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 ("va...
/*! * Content * Copyright(c) 2017 <NAME> * MIT Licensed */ 'use strict'; const Base = require('./Base'); const layout = require(`./WBLL`); module.exports = class Content extends Base { constructor(name, template, lang = 'en', wbll = false) { super(name, lang); this._cssClass = 'stwContent stw' + this.constru...
// js builtins // seperate file for maintaining purposes // I've included in comments all old versions of the methods for my own interest function define(obj, name, method) { if((method && typeof(method) === "function") && (name && typeof(name) === "string") && (obj && (typeof(obj) === "object" || typeof(obj...
export function simulateExperiment(rawPassengerData,num_passengers,plane_capacity) { // console.log(rawPassengerData); var results = []; var conflicts = 0; var time = 0; var newTime; var currentTime; // console.log("Mutating"); // console.log(rawPassengerData); va...