text
stringlengths
5.97k
41.2k
// Onload functions var apiWorker = new Worker('worker.js'); // Declare Variables var array = {}; // Load Stored Variables $('#ucp-account').val(localStorage.getItem('account')); $('#ucp-dataset').val(localStorage.getItem('dataset')); $('#ucp-api-key').val(localStorage.getItem('apiKey')); $('#ucp-api-secret').val(local...
// Ingredients API Request function searchIngredients(ingredient) { // Used a proxy to get rid of CORS error var proxy = "https://api.allorigins.win/get?url="; var ingredientsURL = proxy + encodeURIComponent("https://www.wholefoodsmarket.com/api/search?text=" + ingredient + "&store=10713&limit=60&offset=0...
import '../styles/index.scss'; import { addEventListenerList, calculate_age, dateIsHigher, subtractYearsToDate, dateIsOnRange, isNumberKey, limitChars, cmToMeter, toDateString } from "./helpers" import { calcAlcohol } from "./alcohol_calc"; import { calcCholesterol } from './cholesterol_ca...
'use strict'; const debugDrawPlacement = require('debug')('sc2:DrawPlacementMap'); const debugDrawMap = require('debug')('sc2:DrawDebugMap'); const debugDrawWalls = require('debug')('sc2:DrawDebugWalls'); const debugDebug = require('debug')('sc2:debug:MapSystem'); const silly = require('debug')('sc2:silly:MapSystem');...
import _ from 'lodash'; import h from 'react-hyperscript'; import React from 'react'; import { Link } from 'react-router-dom'; import { format, formatDistanceToNow, isThisMonth } from 'date-fns'; import queryString from 'query-string'; import Document from '../../model/document'; import { tryPromise } from '../../util...
// TODO: Create a function that returns a license badge based on which license is passed in // If there is no license, return an empty string function renderLicenseBadge(license) { switch (license) { case "Creative Commons": return ` [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC_BY--N...
let creep_farMule = { run: function(creep, doExcessWork) { if ((creep.ticksToLive <= creep.memory.deathWarn || creep.getActiveBodyparts(CARRY) <= 2) && creep.memory.priority != 'farMuleNearDeath') { creep.memory.priority = 'farMuleNearDeath'; } if (creep.memory.storing == null) ...
var selectedCoin = -1; var coins = []; var linkSelectedCoin = -1; var nemusProyect = function( p ) { var Color; var year = document.getElementById('yearIn'); var diameterMin = document.getElementById('diameterMinIn'); var diameterMax = document.getElementById('diameterMaxIn'); var weightMin = document.getElem...
/// <reference path="index.js" /> let blockdata = ""; let deleteid = ""; let editid = ""; let previouseditid = ""; let weeks = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; let currentrecurrsion = {}; $(document).ready(function () { let show = $("#backButton").val(); $('.float...
/*! @file main.js * * @brief entry point * */ // import 'core-js'; import './ide.scss' import backend from 'backend.js' import editor from './editor.js' import getString from './get_string.js' import iopanel from './iopanel.js' import logger from './logger.js' import statusbar from './statusbar.js' import watcher...
function world_addSafeSpace(x, y, z) { const startX = x - SAFE_SPACE_SIZE; const endX = x + SAFE_SPACE_SIZE; const startY = y - SAFE_SPACE_SIZE; const endY = y + SAFE_SPACE_SIZE; const startZ = z - SAFE_SPACE_SIZE; const endZ = z + SAFE_SPACE_SIZE; const texture = TEXTURES_NINE_BOLT_METAL; world_addB...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { alpha } from "@mui/material/styles"; import { Avatar, Box, Button, ButtonGroup } from "@mui/material"; import { UserCircle as UserCircleIcon } from "../../icons/user-circle"; import Table from "@mui/material/Table"; import ...
/* * Copyright (c) 2014-2015 <NAME> * * This file is part of node-rdpjs. * * node-rdpjs is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ...
phina.globalize(); var SCREEN_WIDTH = 800; var SCREEN_HEIGHT = 490; var SCREEN_CENTER_X = SCREEN_WIDTH/2; var SCREEN_CENTER_Y = SCREEN_HEIGHT/2; var gravity = new b2Vec2(0, 9.8); var WORLD = new b2World(gravity, true); var WORLD_SCALE = 20; var WORLD_WIDTH = 40; var WORLD_HEIGHT = 25; //グループ作成 var PINGROUP; va...
var c = document.getElementById("system-canvas"); c.width = parseInt(getComputedStyle(document.getElementById("viewer")).getPropertyValue('width')); c.height = c.width/2; c.addEventListener("mousemove", doDrag, false); c.addEventListener("touchmove", doTouchDrag, false); c.addEventListener("mousedown", enableDrag, fals...
var gl; const {mat2, mat3, mat4, vec2, vec3, vec4} = glMatrix; // Now we can use function without glMatrix.~~~ function testGLError(functionLastCalled) { /* gl.getError returns the last error that occurred using WebGL for debugging */ var lastError = gl.getError(); if (lastError != gl.NO_ERROR) { ...
/* JS file for the express backend server that will handle routing; Serve the static public files (images, css); receive post or get request and send responses appropriately */ /* Some resources: https://expressjs.com/en/starter/static-files.html https://www.codementor.io/codeforgeek/build-website-from-scratch...
/* * @Author: tackchen * @Date: 2021-04-20 11:04:54 * @LastEditors: tackchen * @LastEditTime: 2021-04-20 11:59:50 * @FilePath: \jetterjs\src\util.js * @Description: Coding something */ import J from './index'; export function _scrollTo (y, a, b) { document.body.scrollTo(y, null, b); document.documentEle...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
var answers = []; var userid = Date.now().toString(36) + Math.random().toString(36).substr(3,12); var text_unsure = ["Sorry, I don\'t get it.|Sorry, what do you mean?|Sorry, I don\'t understand."]; var text_more = ["OK. Can you tell me more?|Uh huh, and?|Good, go ahead.|Well... it will be better if you can tell me mor...
"use strict"; 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]; ...
var $ = require('jquery'); var UNDEFINED = {}; var _msg = {}; var _commonMsg = {}; var _validators = {}; function _getEmptyValue(emptyValue) { return typeof emptyValue == 'undefined' ? null : emptyValue == UNDEFINED ? undefined : emptyValue; } function _getGroup(item) { var group = $(item).closest('.form-group, ....
/* eslint no-mixed-operators: "off" */ const _ = require('lodash'); // const P2pServer = require('./server'); const url = require('url'); const Websocket = require('ws'); const semver = require('semver'); const logger = require('../logger')('P2P_CLIENT'); const { ConsensusStatus } = require('../consensus/constants'); c...
/* Copyright (c) 2013, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
import React, { Component } from 'react'; import { connect } from 'dva'; import { Form, Tabs, Button, Icon, Input, Steps, Avatar, Upload, Modal, message, Badge, } from 'antd'; import { map, orderBy } from 'lodash'; import {FormattedMessage as FM ,defineMessages} from 'react-intl'; import {injectIn...
import generateDeck from "../Functions/generateDeck"; import playersLeft from "../Functions/playersleft"; import shuffleDeck from "../Functions/shuffleDeck"; import finalCountCheck from "../Functions/finalCountCheck"; import linkedList from "./LinkedList"; import { nextPlayersTurnHelper } from "../Functions/nextPl...
import assert from 'assert' import padEnd from 'lodash/padend' import { emptyA } from 'utils' import { memoize, makeSet } from 'memo' function memoizeOld(f) { const memCache = {} let retrieved = 0 let computed = 0 const memoF = (...fArgs) => { if (fArgs.length === 0) { return { cacheKeys: Object.ke...
'use babel'; import { CompositeDisposable } from 'atom'; // eslint-disable-next-line import/no-unresolved import { shell } from 'electron'; import Path from 'path'; import console from './console'; import Config from './config'; import NodePathTester from './node-path-tester'; import JobManager from './job-manager'; ...
/* Created by <NAME> [<EMAIL>] This javascript code is provided as is with no warranty implied. Akshay Srinivasan is not liable or responsible for any consequence of using this code in your applications. You are free to use it and/or change it for both commercial and non-commercial applications...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { hashHistory, Link } from 'react-router'; import { Modal, Button, Row, Col } from 'react-bootstrap'; import Linkify from 'react-linkify'; import VersionInfo from '../VersionInfo'; import PublisherLookUp from "../shared_show/Publisher...
class Localizations { constructor() { const textArray = $('[datatype=i18n]'), textArrayLength = textArray.length for (let i = 0; i < textArrayLength; i++) { var id = textArray[i].id $(textArray[i]).html(Methods.getLocalizedText(id)) } } static infoText() { const powerIcon = $('#...
/*! * jGoBoard v1.0 * http://www.jgoboard.com/ * * This software is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License: * http://creativecommons.org/licenses/by-nc/3.0/ * If you want to negotiate on a commercial license, please contact the author. * * Date: 2011-02-17 */ 'use stri...
class VirtualSynth { /*bgSource = ""; bgWidth = ""; bgHeight = ""; //controls = [];*/ constructor() { Part = 0; } SetupPerformance() { //Select Init Performance Synth.PerformanceChange(64, 31, 124); Synth.PerformanceName("GenX Test") } SetupPart(partId) { Part = partId; Syn...
// ********************************************************** // // WEB4DV // rhodonite.js plug-in for 4Dviews volumetric video sequences // with referenced to THREE.js plug-in for 4Dviews volumetric video sequences // // // // THREE.js plug-in for 4Dviews volumetric video sequences // // Version: 3.0.0 // Release date...
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o...
import DOM from './dom'; import Contract from './contract'; import './flightsurety.css'; // Read local storage var airlineList; var flightList = []; (async() => { let result = null; let contract = new Contract('localhost', () => { // Check if contract is operational contract.isOperational((...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BlockParser = exports.BlocksParser = void 0; var _orderedObject = _interopRequireDefault(require("../ordered-object")); var _common = _interopRequireDefault(require("./common")); var _index = require("./index"); var _helpers = r...
import React, { Component } from 'react'; import blocnetsLogo from '../../../blocknetwhite-1.png'; import FormControl from '@material-ui/core/FormControl'; import InputLabel from '@material-ui/core/InputLabel'; import Input from '@material-ui/core/Input'; import InputAdornment from '@material-ui/core/InputAdornment'; i...
import React from 'react' import {withRouter} from 'react-router-dom' import QueryString from 'query-string' import FileSaver from 'file-saver' import {MDCTextField} from '@material/textfield' import {MDCSelect} from '@material/select' import {MDCDialog} from '@material/dialog' import {MDCRadio} from '@material/radio' ...
var varint = require('varint') var STRING = 0 // 000 var BUFFER = 1 // 001 var INT = 2 // 010 // 32bit int var DOUBLE = 3 // 011 // use next 8 bytes to encode 64bit float var ARRAY = 4 // 100 var OBJECT = 5 // 101 var BOOLNULL = 6 // 110 // and use the rest of the byte as true/false/null var RESERVED = 7 // 111 va...
/** * Initialize the statistics domelement * * @param {Number} type 0: fps, 1: ms, 2: mb, 3+: custom * @returns stats javascript object */ import { THREE} from "../../../../dist/THREEAddPhysics.module.js"; import Stats from "./stats.module.js"; import TrackballControls from '../extras/controls/TrackballControls....
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; const Events = Matter.Events; let engine; let world; const exaustClouds = 20; var car; var computerCar; var balls = []; var walls = []; var bumpers = []; var pockets = []; var visibleWallOffset; var b...
const pageContent = document.querySelector('#page-content'); const boardTiles = document.querySelectorAll('.board-tile'); const mainBoard = document.querySelector('#main-board'); const victoryDialog = document.querySelector('#victory-dialog'); const victoryText = document.querySelector('#victory-text'); const victorySc...
import ColorWheelWidget from '../drawing/ColorWheelWidget.js'; const boldIcon = ` <svg id="text-bold" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bold" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="roun...
'use strict'; const _ = require('lodash'); const utils = require('./utils'); const scripts = require('./scripts'); const debuglog = require('debuglog')('bull'); const errors = require('./errors'); const backoffs = require('./backoffs'); const FINISHED_WATCHDOG = 5000; const DEFAULT_JOB_NAME = '__default__'; /** inte...
(function ( $ ) { /** * Set same width in a group of elements * by <NAME> 2015 * $.fn.getSameWidth = function (){ var w=[]; var selector = this; $(selector).children().each(function(){ var val = $(this).outerWidth(); w.push(val); }); var maxw = Math.max.apply(Math, w); if($(selector).childr...
import React, { useState, useEffect, useRef } from "react"; import { withStyles, makeStyles, MuiThemeProvider } from "@material-ui/core/styles"; import { createTheme } from '@material-ui/core/styles'; import { NoSsr, TableCell, IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Divider, T...
import boot from '../boot'; import Utils from '../utils'; import Stream from '../stream'; const NUMBER_HONE = 49; // header 1 const NUMBER_HTWO = 50; // header 2 const NUMBER_HTHREE = 51; // header 3 const NUMBER_QUOTE = 52; // quote const NUMBER_CODE_BLOCK = 53; // code block const CHAR_CENTER = 69; // E with Ctrl, ...
/** * 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. * * @polyfill * @nolint * @format */ /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */ /...
// ==UserScript== // @name 0chan webm // @namespace https://0chan.hk/webm // @description Add WebM support to 0chan. // @downloadURL https://raw.githubusercontent.com/Kagami/video-tools/master/0chan-webm.user.js // @updateURL https://raw.githubusercontent.com/Kagami/video-tools/master/0chan-webm.user.js // @...
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
const express = require('express'); const morgan = require('morgan'); const winston = require('winston'); const compression = require('compression'); const puppeteer = require('puppeteer'); const zlib = require('zlib'); const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); const cr...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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...
var nodes = [ {id: "rtp-debtor-payment-service", shape: {from: {col: 2, row: 1}, to: {col: 2, row: 1}}, name: "ODFI Payment Service"}, {id: "rtp-debtor-send-payment", shape: {from: {col: 3, row: 1}, to: {col: 3, row: 1}}, name: "ODFI Send Payment"}, {id: "rtp-mock", ...
// Strider Simple Worker // <NAME> 2012 // // A simple, in-process worker implementation for Strider. // var async = require('async') var exec = require('child_process').exec var EventEmitter = require('events').EventEmitter var gitane = require('gitane') var gumshoe = require('gumshoe') var path = require('path') var...
function SourceRect (id, x, y, w, h) { this.m_id = id; this.m_x = x; this.m_y = y; this.m_w = w; this.m_h = h; } function Particle(context) { this.m_context = context; this.Reset = function () { // Life this.m_start = false; this.m_lifeTime = 0; this.m_time = 0; // Moving this...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { backupSingleDocument: true, RxBackupState: true, backup: true, RxDBBackupPlugin: true }; exports.RxDBBackupPlugin = exports....
/* import Web3 from 'web3'; */ import JSBI from 'jsbi'; import abiTlb from '../config/TLBStaking.json'; import abiErc20 from '../config/erc20.json'; import config from '../config/v1.json'; const TEN = JSBI.BigInt(10); const blockExplorer = process.env.REACT_APP_BLOCK_EXPLORER; const blockTime = (Number(process.env.R...
var means = [ "Alcohol", "Amoeba", "Arsenic", "Arson", "Axe", "Bamboo Tip", "Bat", "Belt", "Bite And Tear", "Blender", "Blood Release", "Box Cutter", "Brick", "Bury", "Candlestick", "Chainsaw", "Chemicals", "Cleaver", "Crutch", "Dagger", "Dirty Water", "Dismember", "Drill", "Drown", "Dumbbell",...
// For more documentation visit https://github.com/happydata/nomie-docs/blob/master/cloud-apps.md 'use strict'; var http = require('http'); // Use Dynamo for a light user store. // This is used to remember the last time we tracked the weather for this user. const doc = require('dynamodb-doc'); const dynamo = new doc.D...
/* @licstart The following is the entire license notice for the JavaScript code in this file. Copyright (C) 1997-2019 by <NAME> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation This pro...
import latestTime from './helpers/latestTime'; import { duration, ensureException, promisifyLogWatch, latestBlock } from './helpers/utils'; import { takeSnapshot, increaseTime, revertToSnapshot } from './helpers/time'; const PolymathRegistry = artifacts.require('./PolymathRegistry.sol') const PreSaleSTOFactory = artifa...
import React, { useRef, useState, useEffect, useContext } from "react"; import { View, StatusBar, Linking, SafeAreaView, Alert, ActivityIndicator, TouchableOpacity, BackHandler, Platform, Image, TextInput, } from "react-native"; import { ScrollView } from "react-native-gesture-handler"; import { A...
import React, {useEffect, useState} from "react"; import {connect, useDispatch} from 'react-redux'; import styled from "styled-components"; import { Box as MuiBox, Button as MuiButton, Card, CardContent, Checkbox, Dialog, DialogActions, DialogContent, DialogContentText, DialogTit...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.URIUnescaped = exports.URIMark = exports.DecimalDigit = exports.URIAlpha = exports.URIReserved = undefined; exports.SplitMatch = SplitMatch; exports.RequireObjectCoercible = RequireObjectCoercible; exports.AbstractRelationalComparis...
/* //------------------------------------------------------------------------------ // 时间: 2018-01-10 // 作者: 蔡捷 // 用户管理 // 文件: admin_user.cshtml 页面文件 // 文件: admin_user.js JS文件 //------------------------------------------------------------------------------ 路径:~/Areas//dev/ViewJS/admin_...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
/* --- FILE-BUFFER-OPERATIONS --- */ /** * creates one buffer out of an array of arraybuffers * needs the exact amount of bytes used by the array of arraybuffers * * @param channelBuffer {Array<Uint8Array>} * @param recordingLength {Number} byte-length for target/returned Uint8Array * @returns {...
import React from 'react'; import './css/editor.css' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faVolumeMute, faVolumeUp, faPause, faPlay, faGripLinesVertical, faSync, faStepBackward, faStepForward, faCamera, faDownload, faEraser } from '@fortawesome/free-solid-svg-icons' class Editor e...
/** * */ var _l = Debug._l; var _i = Debug._i; var getMsg = require("../i18n").get, getProp = require("../AppProperties").get, PluginHelper = require('../PluginHelper'); //var v = require('../Validator').getInstance(); var Constants = require("./Constants"), ValidationMsgs = Constants.ValidationMsgs; var viewLib...
/*! * @websanova/vue-upload v2.1.0 * https://websanova.com/docs/vue-upload * Released under the MIT License. */ var __upload = null; var __defaultOptions = { url: null, preFetchUrl: false, name: 'file', accept: null, body: {}, dropzoneId: null, onSelect: null, onStart: null, onQueue: null, onPr...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // defines window.requirejs import './require_2_3_3'; import * as LZString from 'lz-string'; import {INITIAL, Registry, parseRa...
import React, { useState, useEffect } from "react" import { useStaticQuery, graphql } from "gatsby" import Autosuggest from "react-autosuggest" import AutosuggestHighlightMatch from "autosuggest-highlight/match" import AutosuggestHighlightParse from "autosuggest-highlight/parse" import VoteLogLegend from "../voteLogLeg...
/** * @typedef {Object} CookieConfig * @property {Boolean} analytics * @property {Boolean} marketing */ /** * Get cookie value by cookie name * @param {String} cookiename cookie name to return the value of * @returns {String} */ function getCookie(cookiename) { var cookiestring = RegExp(cookiename + "=[^;]+"...
import WebSocket from "ws"; import config from "../../config"; import fs from "fs"; import signale from "signale"; import { search } from "fast-fuzzy"; import fetch from "node-fetch"; import format from "string-template"; signale.config({ displayTimestamp: true, displayDate: true }); const log = signale.scope...
var ArtistCount = 1; function Categories() { var dynamic_form = $('#dynamic_form'); ajax.get('ajax.php?action=upload_section&categoryid=' + $('#categories').raw().value, function (response) { dynamic_form.raw().innerHTML = response; initMultiButtons(); // Evaluate the code that generates preview...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.IDBCursorWithValue = exports.IDBCursor = undefined; var _IDBRequest = require('./IDBRequest.js'); var _DOMException = require('./DOMException.js'); var _IDBKeyRange = require('./IDBKeyRange.js'); var _IDBFactory = require('./I...
import {Map, List, Seq, Record, fromJS} from 'immutable'; import {Observable} from 'rx'; import {insertGame, insertRound, insertSession, updateGameEnd} from './db.js'; console.log('cognito runs'); const PlayerRecord = Record({ firstName: '', surname: '' }); let currentSession = Map({ isActive: false }); let ...
var wd_hl_settings = null; var wd_hover_settings = null; var wd_online_dicts = null; var wd_enable_tts = false; var wc_rb_ids = ['wc1', 'wc2', 'wc3', 'wc4', 'wc5']; var ic_rb_ids = ['ic1', 'ic2', 'ic3', 'ic4', 'ic5']; var wb_rb_ids = ['wb1', 'wb2', 'wb3', 'wb4', 'wb5']; var ib_rb_ids = ['ib1', 'ib2', 'ib3', 'ib4', 'ib...
import Draw from 'ol/interaction/Draw'; import Select from 'ol/interaction/Select'; import Modify from 'ol/interaction/Modify'; import Snap from 'ol/interaction/Snap'; import Collection from 'ol/Collection'; import Feature from 'ol/Feature'; import $ from 'jquery'; import { Modal } from '../../ui'; import store from '....
export const rayMarchingVertexShaderSrc = [ // switch on high precision floats "#ifdef GL_ES", "precision highp float;", "#endif", "varying vec3 pObj;", "void main()", "{", " pObj = position;", " gl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0);", "}" ].joi...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; module.metadata = { "stability": "experimental" }; // Disclamer: // In this module we'll have so...
// DATA // var deck = [ ["clubs_2", "clubs_3", "clubs_4", "clubs_5", "clubs_6", "clubs_7", "clubs_8", "clubs_9", "clubs_10", "clubs_J", "clubs_Q", "clubs_K", "clubs_A"], ["diamonds_2", "diamonds_3", "diamonds_4", "diamonds_5", "diamonds_6", "diamonds_7", "diamonds_8", "diamonds_9", "diamonds_10", "diamonds_J",...
var resources = require('jest'), models = require('../../models'), common = require('../common.js'), async = require('async'), og_action = require('../../og/og.js').doAction, _ = require('underscore'), notifications = require('../notifications.js'); //Authorization var Authorization = common.To...
/* * Directive v-b-scrollspy * * Usage: * Assume body is the scroll element, and use default offset of 10 pixels * <ul v-b-scrollspy> * <li><a href="#bar">Foo</a></li> * <li><a href="#baz">Bar</a></li> * </el> * * Assume body is the scroll element, and use offset of 20 pixels * <ul v-b-sc...
const { Request, Response } = require('minipass-fetch') const Minipass = require('minipass') const MinipassCollect = require('minipass-collect') const MinipassFlush = require('minipass-flush') const MinipassPipeline = require('minipass-pipeline') const cacache = require('cacache') const url = require('url') const Cach...
'use strict'; var PouchDB = require('../../packages/node_modules/pouchdb-for-coverage'); var should = require('chai').should(); var pouchCollate = PouchDB.collate; var collate = pouchCollate.collate; var normalizeKey = pouchCollate.normalizeKey; var toIndexableString = pouchCollate.toIndexableString; var parseIndexabl...
// // Author: <NAME> <EMAIL> // backendjs 2018 // const cluster = require('cluster'); const domain = require('domain'); const path = require('path'); const fs = require('fs'); const spawn = require('child_process').spawn; const core = require(__dirname + '/core'); const lib = require(__dirname + '/lib'); const logge...
const swup = new Swup(); content = "" console.log("testing2") if (document.getElementById("file")) { var file = document.getElementById("file"); file.addEventListener("change", getFile); } function getFile() { var fr = new FileReader(); fr.onload = function () { content = this.result; ...
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...
//get cord end div var cord_end_div = $("#cord_end"); // initialize a plug object function plug_object(plug_offset_x, plug_offset_y, plug_element, cord_svg_id, cord_element_id, cord_shadow_id, play_area_floor, play_area_ceil, play_area_wall_left, play_area_wall_right, click_sound_name) { this.is_plugged_in = false; ...
/** * Client Side Feed Reader * @authors <NAME> * @date 2018-06-28 06:10:40 * @version 1.0 */ 'use strict'; //array of rss objects from local storage or blank array is no feeds saved yet let allFeeds = JSON.parse(localStorage.getItem('allFeeds') || '[]'); const formElement = document.getElementById('feedData')...
$(function() { // Добавление категории $('#product_categories .add').click(function() { $("#product_categories ul li:last").clone(false).appendTo('#product_categories ul').fadeIn('slow').find("select[name*=categories]:last").focus(); $("#product_categories ul li:last span.add").hide(); $("#product_categories ...
 var ImageResizer = {}; var ir = ImageResizer; ir.Instructions = function (url) { if (url == null) return; var isString = (typeof url == 'string' || url instanceof String); if (!isString) { //If it's an object, shallow clone it. this.mergeWith(url, false); //normalize ...
const $ = require('jquery'); const _ = require('lodash'); const Backbone = require('backbone'); const Colormap = require('colormap'); const THREE = require('three'); const {MeshLine, MeshLineMaterial} = require( 'three.meshline' ); const yo = require('yo-yo'); const MicropedeAsync = require('@micropede/client/...
// var running; //控制是否开始 // var POPULATION_SIZE; //总群大小 // var CROSSOVER_PROBABILITY; //交叉率 // var MUTATION_PROBABILITY; //变异率 // var UNCHANGED_GENS; //已有几代没有发生变化 // var mutationTimes; //变异次数 // var dis; //计算每两个点之间的距离 // var bestValue, best; //最佳评价值 最佳路径(best) // var currentGeneration;//当前是第几代 // var currentBest; //...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefaul...
var scene, camera, renderer; var beacon_list = {}; var beacon_models = []; var mybeacon_list = {}; var current_beacon = null; function location2meter(x){ return x * (40000000/360); } function m2km(x){ if(x < 1000){ return Math.round(x) + "m"; }else if(x < 10000){ return Math.round(x/100)/10 + "km"; }else{ r...
function DonutChart(chartId) { var chart = d3.select('#' + chartId); var allDonut; var chart_m, chart_r, color = d3.scale.category20(); var getCatNames = function(dataset) { var catNames = new Array(); for (var i = 0; i < dataset[0].data.length; i++) { ca...
import React, { Children, createElement } from "react"; function f() { return (f = Object.assign || function(a) { for (var b = 1; b < arguments.length; b++) { var c, d = arguments[b]; for (c in d) { Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]); } } return a; })....