text
stringlengths
8.5k
48.7k
/** * @author zz85 / http://www.lab4games.net/zz85/blog * * Creates extruded geometry from a path shape. * * parameters = { * * curveSegments: <int>, // number of points on the curves * steps: <int>, // number of points for z-side extrusions / used for subdividing segments of extrude spline too * amount: <i...
/* global L, XMLHttpRequest */ 'use strict'; var dateFormat = require('helper-dateformat'); var handlebars = require('handlebars'); var reqwest = require('reqwest'); handlebars.registerHelper('dateFormat', dateFormat); handlebars.registerHelper('ifCond', function (v1, operator, v2, options) { switch (operator) { ...
const db = require("../models"); // const Jimp = require("jimp"); const fs = require("fs"); const exportexcel = db.exportexcel; const Op = db.Sequelize.Op; const Survey = db.survey; const SurveyForm = db.surveyForm; const SurveyDetails = db.surveyDetails; const SurveyImages = db.surveyImages; const { convert } = requir...
import log, { warn } from './utility/debug' export default class Layout { constructor({ bypass, estimatedItemHeight, measureItemsBatchSize, getPrerenderMargin, getVerticalSpacing, getVerticalSpacingBeforeResize, getColumnsCount, getColumnsCountBeforeResize, getItemHeight, getItemHeightBeforeResize...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFileModifiedMap = getFileModifiedMap; exports.createContext = createContext; exports.getContext = getContext; var _fs = _interopRequireDefault(require("fs")); var _url = _interopRequireDefault(require("url")); var _postcss = _in...
/*------------------------------------------------------ --------------------------------------------------------- */ function create_new_div( div ){ let content = "<div class = 'row new-container' >"; for(let d of div){ if(d.type == 'text'){ let readonly = d.readonly?' readonly ' :''; content += "<div cla...
import React from 'react' import { Link, Redirect } from 'react-router-dom' import boneService from '../../services/bones' import imageService from '../../services/images' import Message from '../../games/Message' import { Image, Transformation, CloudinaryContext } from 'cloudinary-react' import { Grid, Row, Col, FormG...
const playerController = require("../controllers/playerController") const gameHandler = require("./gameManagement") const handleGame = gameHandler.handleGame let endOfGame = gameHandler.endOfGame function rngWhole(z) { let x = Math.floor(Math.random() * z) return x } function rng(z) { let x = ((Math.ran...
/* eslint no-console: 0 */ // Node imports const fs = require('fs'); const path = require('path'); const { createServer } = require('http'); // package.json for version number and such const packageJSON = require('../package.json'); // npm module imports const WebSocket = require('ws'); const zeroconf = require('bon...
/** * Copyright 2016, 2017, 2018, 2019 <NAME> * * This file is part of AkashaRender (http://akashacms.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.a...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * * @returns {voids} * Created: <NAME>(<EMAIL>) * Updated: <NAME> (<EMAIL>) * date: Oct/23/18 */ function habilitarSecciones...
// set up the html elements // Lap var laps_element = document.getElementById('lap_number'); // position var race_position_element = document.getElementById('race_position'); // last lap shit var last_lap_time_element = document.getElementById('last_lap_time'); // pit shit var pit_status_element = document.getElementB...
//Global variables var width_dip = parseFloat(d3.select("#divHemi_dip").node().parentElement.clientWidth); var height_dip = width_dip * 0.5208333333333333; var radius_dip = width_dip / 2 - 16; //Math.min(width, height)/2; var svg_dip = d3.select("#divHemi_dip") .append("svg") .attr("width", width_dip) .at...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, Image, ListView, ScrollView, AppRegistry, Dimensions, ActivityIndicatorIOS, RefreshControl, AsyncStorage, TouchableOpacity, AlertIOS, TextInput, } from 'react-native'; import apis from '../../api...
//Create By JFUI Engine ver 3.0.1 2018-04-02 14:11:40 function BarrettMu(A) { this.modulus = biCopy(A); this.k = biHighIndex(this.modulus) + 1; var B = new BigInt(); B.digits[2 * this.k] = 1; this.mu = biDivide(B, this.modulus); this.bkplus1 = new BigInt(); this.bkplus1.digits[this.k + 1] = ...
const MACRONAME = "Cruel_Puppetry.0.3.js" /***************************************************************************************** * Create a temporary attack item to use against the victim of Cruel Puppetry * * 01/15/22 0.1 Creation of Macro * 01/16/22 0.2 Finishing up. Still has issue with multiple targets * ...
// The MIT License (MIT) // Copyright (c) 2017 <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...
// JavaScript Document function DateThan(prevStr,nextStr,flag){//flag 1 重置后面的日期 0 重置前面的日期 var str = '', prevD = new Date(Date.parse(prevStr.replace(/-/g,"/"))), prevTime = prevD.getTime(), nextD = new Date(Date.parse(nextStr.replace(/-/g,"/"))); nextTime = nextD.getTime(); if(prevTime > nextTime){ if(flag > 0...
const puppeteer = require('puppeteer'); const fs = require('fs'); const levenshtein = require('fast-levenshtein'); const lev = levenshtein.get; const urls = [ "https://www.google.com/search?psb=1&tbm=shop&q=laptop&ved=0CAQQr4sDKAJqFwoTCOfAsvPfleUCFXMNCgMdxs0M5BAB", "https://www.google.com/search?tbm=shop&sxsrf=ACYBGNT6...
/** * Declaring global variables and arrays */ var nodeDataArray = []; var linkDataArray = []; var tableArray = []; var flag = 0; var entities = {}; var count_attr = 0; var current_table; var Aselect_value = 0; var Bselect_value = 0; var global_table_sel; var global_option_sel; var for_length = 0; var save_data; va...
/** * Created by SamMFFL on 17/3/19. */ "use strict"; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; ...
/** <h1>Tree, automatic table of contents and other tools for clickable trees</h1> LGPL http://www.gnu.org/licenses/lgpl.html © 2005 <EMAIL> et École nationale des chartes © 2012 <EMAIL> © 2013 <EMAIL> et LABEX OBVIL <p> Manage show/hide trees. No dependancies to a javascript library. The HTML structure handled is ...
'use strict'; var mappingColour = 360; var tripleMapColour = 200; var mapColour = 48; var valueColour = 62; var parenttripleColour = 380; var tableColour = 85; var subjectColour = 122; var predicateColour = 215; var objectColour = 170; var graphColour = 320; var vocabs = [ ['rdf: <http://www.w3.org/1999/02/22-...
//Trying to break these into separate file isn't working class Player{ constructor(sprite){ this.starting_health = 100 this.cooldown = 100 this.health = this.starting_health this.sprite = sprite this.x = 0 this.y = 0 } setPosition(x,y){ this.x = x ...
// Copyright (C) 2012 <NAME>, Inc. <http://rakumo.gigei.jp/> // Licensed under the terms of the MIT License var Config = function() { this.DOMAIN = ScriptProperties.getProperty('DOMAIN'); this.MAX_DATE = ScriptProperties.getProperty('MAX_DATE'); this.ALERT_MAIL_ADDRESS = ScriptProperties.getProperty('ALERT_MAIL_AD...
/* * js-orgChart - 1.06 * Copyright (c) 2013 rchockxm (<EMAIL>) * Copyright (c) 2009 Surnfu composition * * Licensed - under the terms of the MIT License * http://www.opensource.org/licenses/mit-license.php * * Based on: Surnfu - Email:<EMAIL> - QQ:31333716 * 2009 Surnfu composition http://www.on-cn....
var app = angular.module("agtab", ['angular-md5']); var date = ""; var url = "http://101.200.156.97/CAIEX-GAME/"; //var url = "https://private-14388b-cxsidemo1.apiary-mock.com/"; var urls = "http://www.caiex.com:12317/CaiexOpenNewsApi/"; var payout_type = "1"; //默认1 新赛事 var player_id = ''; //用户id var headPicUrl = '';...
export const getMaths = async imports => { const { require: { hashMini, captureError, attempt, documentLie, lieProps, phantomDarkness, logTestResult } } = imports try { const start = performance.now() // detect failed math equality lie const check = [ 'acos', 'acosh', ...
import React from 'react' import '../../assets/stylesheets/application.css' import { deployContract, getNetworkVersion, registerCrowdsaleAddress } from '../../utils/blockchainHelpers' import { addWhiteListRecursive, download, getDownloadName, handleConstantForFile, handleContractsForFile, handlerForFi...
/* Javascript Space Game By <NAME> 2021 */ 'use strict'; const aiEnable = 1; const debugAI = 0; const maxCharacterSpeed = .2; class Character extends GameObject { constructor(pos, sizeScale = 1) { super(pos, vec2(.6,.95).scale(sizeScale), 32); this.health = this.healthMax = this....
const ETC = artifacts.require("Enlistment"); const config = require('../../config/ethereum'); const util = require('util'); const web3utils = require('web3-utils'); const BigNumber = require('bignumber.js'); const fs = require('fs'); const path = require('path'); /* Measure efficiency of the on-chain service implement...
import React, { useContext } from 'react' import { Input, Menu, Segment, Checkbox, Grid, Header, Icon, Image, Sidebar, Transition, List, Button, Table, Tab, Modal, Form,Popup, Dimmer, Loader, } from 'semantic-ui-react'; import * as moment from 'moment'; import logo from '../../assets/img/gi...
jQuery.support.cors = true; // 设置cookie function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires; } // 获取Cookie function getCookie(cname) { var name = cname ...
////////////////////////////////////////////////////////////////////////////////////////// // COMMON GEOMETRIES ////////////////////////////////////////////////////////////////////////////////////////// let geometry = new THREE.BoxBufferGeometry(0.2, 0.2, 0.2); let geometry2 = new THREE.BoxBufferGeometry(0.1, 0.1, 0....
let addressOfOffers = []; let reqs = 0; let total = 0; let killOffer; let searchSetting = 'item'; const matchHtmlRegExp = /["'&<>]/; let post; window.onload = () => { const base = `${window.location.origin}/v1/`; if (true) { let offerList; killOffer = (id) => { postData(`${base}offer/remove`, { ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // If directory files changes too often, don't rescan directory more than once // per specified interval const SIMULTANEOUS_RESCAN_INTERVAL = 1000; /...
"use strict"; /////////////////////////////////////////////////////////////////////////////// // \author (c) <NAME> (<EMAIL>) // 2015-2018, PALANDesign Hannover, Germany // // \license The MIT License (MIT) // // This file is part of the mipher crypto library. // Permission is hereby granted, free of charge...
import defined from 'defined'; import assign from 'object-assign'; import rightNow from 'right-now'; import isPromise from 'is-promise'; import { isBrowser, isWebGLContext, isCanvas, getClientAPI } from '../util'; import deepEqual from 'deep-equal'; import { saveFile, saveDataURL, getFileName, exportCanvas } from '../s...
/** * * Material Design Lite * Copyright 2015 Google Inc. 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.getMaxAccess = exports.API_NAME = void 0; var _trimStart2 = _interopRequireDefault(require("lodash/trimStart")); var _result2 = _interopRequireDefault(require("lodash/result")); var _partial2 = _interopRequireDe...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, InsufficientFunds, InvalidOrder } = require ('./base/errors'); const Precise = require ('./base/Precise'); // -------------------------------------------...
var crypto = require('crypto'); var through2 = require('through2'); var pipeline = require('stream-combiner'); var concatStream = require('concat-stream'); var checkSyntax = require('syntax-error'); var parents = require('parents'); var deepEqual = require('deep-equal'); var defined = require('defined'); var builtins =...
var margin = {top: 50, right: 200, bottom: 100, left: 50}, margin2 = { top: 430, right: 20, bottom: 20, left: 40 }, width = 1160 - margin.left - margin.right, height = 500 - margin.top - margin.bottom, height2 = 500 - margin2.top - margin2.bottom; function resize() { /* Find the new window dimensions */...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the Licens...
"use strict"; function parse(str) { let args = str.split('&'); let argMap = {}; for (let arg of args) { let split = arg.split('='); argMap[split[0]] = decodeURIComponent(split[1]); } return argMap; } const ARGS = parse(window.location.search.substr(1)); // Custom puzzles from before other languages w...
var $P = PATHBUBBLES; // Creates a list from an object's values. function object_to_list(object) { var key, list = []; for (key in object) { if (object.hasOwnProperty(key)) { list.push(object[key]);}} return list;}; $P.D3Force = $P.defineClass( $P.HtmlObject, function D3Force(config) { var dimensions; $...
(function (window, $, undefined) { var game = function () { $.extend(Array.prototype, { indexOf: function (val) { for (var i = 0; i < this.length; i++) { if (this[i] == val) { return i; } } return -1; }, contains: function (val) { return this.indexOf(val) != 1; }, put: fu...
// 最初に表示するページ // var default_paper = "C02-1045"; index.php で指定する var keyprefix = "pdfanalyzer.line_checker.linedata"; // 表示中の論文とページ var current_paper = null; var current_page = 0; // 最初のページが 1 なので注意 var npages = 0; // 表示中の論文のページ数 var current_layout = 0; // レイアウト var papers; var base = location.href.replace(/\/[^/]*$/...
//Ext.Loader.setConfig({enabled: true}); Ext.define('acesure.emergency.controller.EmergencyController', { extend : 'Ext.app.Controller', alias : "widget.EmergencyController", views : [ 'VirtualMachView', 'CalNodeView', 'Emergency', 'TakeOver', '...
var POPULATION = 400; var WIDTH = 20, HEIGHT = 20; var COINFITNESS = 10; var TOFITNESS = 1, AWAYFITNESS = -1.5; var canvases = []; var snakes = []; var stop = false; var DELAY = 20; var generation = 0; var LEN = 4; var time = 0; var prevAverage = 0; var interval = null; function Start() { document.getElementsByClas...
function addPlugins(){ $("textarea").on('load',this,_loadxheditor); function _loadxheditor(a){ alert("loaded"); } //对ajax请求返回进行默认处理 $.ajaxSetup({ complete : function(XMLHttpRequest, textStatus) { var response = XMLHttpRequest.responseText; if(response && response.indexOf('{') == 0){ ...
/* * Copyright 2016 Mirantis, 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 ...
class Vec3 extends Float32Array{ constructor(ini){ super(3); if(ini instanceof Vec3 || (ini && ini.length == 3)){ this[0] = ini[0]; this[1] = ini[1]; this[2] = ini[2]; }else if(arguments.length == 3){ this[0] = arguments[0]; this[1] = arguments[1]; this[2] = arguments[2]; }else{ this[0] = this[1] = ...
import React from 'react' import FontIcon from 'material-ui/FontIcon' import FlatButton from 'material-ui/FlatButton' import FloatingActionButton from 'material-ui/FloatingActionButton' import fetch from './fetch' import config from '../../config' const colorRange = ["#990000", "#eeeeee", "#ffffff", "#eeeeee", "#0000...
const PATH = require("path"); const FS = require("fs-extra"); const Q = require("q"); const FSWALKER = require("fswalker"); const CRYPTO = require("crypto"); const SPAWN = require("child_process").spawn; const JSON_STABLE_STRINGIFY = require("json-stable-stringify"); const GLOB = require("glob"); const PACKAGE_INSIGHT...
function imageScalarFunction(texture, i) { texture.wrapS = texture.wrapT = THREE.RepeatWrapping // texture.repeat.set(blockSize, blockSize); } function loadImageMaterial(_url, _scaleFunc) { return new THREE.MeshLambertMaterial({ color: 0xffffff, side: THREE.DoubleSide, map: new THREE.TextureLoader().load(_u...
// Composite Chart // ================================================================================ let reportCountList = [152, 222, 199, 287, 534, 709, 1179, 1256, 1632, 1856, 1850]; let lineCompositeData = { labels: ["2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017"], yM...
const { app, BrowserWindow, dialog, Menu, Notification, shell } = require("electron"); const { ipcMain: ipc } = require("electron-better-ipc"); import { autoUpdater } from "electron-updater"; const fs = require("fs-extra"); const path = require("path"); const sha1 = require("sha1"); const machineIdSync = require("node-...
const fs = require('fs-extra'), path = require('path'); const glob = require('./glob'); const basePath = './data/'; let ctlibs, currentProject, writeDir; const parseKeys = function(data, str, lib) { var str2 = str; if (data.fields) { for (const field in data.fields) { const val = cur...
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, createTextVNode, createBlock, withCtx, withDirectives, vShow } from "vue"; var _sfc_main = { name: "power-tree", emits: ...
"use strict"; // TODO: computed columns in tables i.e. now()-datecol as age? var _ = require('lodash'); var pg = require('postgres-gen'); var norm = pg.normalizeQueryArguments; var log; try { log = require('blue-ox')('dao'); } catch (e) { log = (function() { var fn = function() {}; return { fatal: fn, er...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /*CREATE TABLE `cab_listapedidos_temp` ( `ids_clis` bigint(20) NOT NULL AUTO_INCREMENT, `cli_id` bigint(20) NOT NULL, `cod_cli`...
// ------------------------------------------------------------------------------------- // GLSL ES sources for WebGL 1 and 2 // // See GLSL ES and corresponding WebGL versions here: // https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions) // // Modularized srcs, see 'gman' answer to <NAME> question: // htt...
// INITIALIZATION // List of mappings to determine what data should be sought for each item type const funcmap_default = { DEFAULT: "getItemMetadata" } // List of mappings to format the name of item types // Forked from melat0nin/zotero-roam-export const typemap_default = { artwork: "Illustration", audioR...
import { EventHandler, detach, formatUnit, Browser, closest } from '@syncfusion/ej2-base'; import { Column } from '../models/column'; import { ColumnWidthService } from '../services/width-controller'; import * as events from '../base/constant'; import { getScrollBarWidth, parentsUntil } from '../base/util'; import { is...
/* setup */ document.addEventListener('DOMContentLoaded', () => { document.addEventListener('spacesloaded', () => { renderList(); lazyLoadSpaceImages(); updateDistances(); checkOpeningHours(); activateSort(true, 'alpha'); sortSpaces( 'sortalpha', true ); activ...
/* eslint-disable @typescript-eslint/no-var-requires */ const mainWebComponentsSpec = require('@ui5/webcomponents/dist/api.json'); const fioriWebComponentsSpec = require('@ui5/webcomponents-fiori/dist/api.json'); const dedent = require('dedent'); const prettier = require('prettier'); const prettierConfig = require('../...
import React, { Component } from "react"; import { Collapse, Container, TabContent, TabPane, Nav, NavItem, NavLink, Card, CardBody, CardImg, Input, InputGroup, InputGroupText, InputGroupAddon, InputGroupButtonDropdown, Button, CardTitle, CardText, Row, Col, CustomInput, Label, Table, Dropdown, DropdownTogg...
/* This script goes through the input text (actually it is triggered each time a markdown cell is rendered. The imput text is the content of the cell. It replaces the latex structures by html tags, typically with a <div class="latex_environment_name> ... </div>. Then the html rendering can be customized using a devot...
// Nonogramの生成ファイル // 選択色 let g_selectcolor = 0; // 描画したマトリクス let g_drawmatrix = []; // キャンバスの拡大倍率 // canvas scale size let g_css = 10; window.onload = function () { document.getElementById("file").addEventListener("change", function (e) { const file = e.target.files; const reader = new FileRea...
import React from 'react' import moment from "moment"; import { Button, Card, Col, Form, Icon, Input, InputNumber, message, Popconfirm, Radio, Row, Select, Slider, Checkbox, Upload } from "antd"; import {connect} from "react-redux"; import { getStaffList, getTaskHistory, getTestSuites, pushDocument, ...
/* globals Croquet */ let elements = {}; let audioFeedback = null; let audioSelection = { prev: {deviceId: undefined, label: undefined}, current: {deviceId: undefined, label: undefined} }; // begins with undefined for deviceId let videoSelection = { prev: {deviceId: undefined, label: undefined}, cur...
// Copyright 2017 <NAME>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
'use strict'; const COLORS_PALETTE = Object.freeze({ SEQUENTIAL: Object.freeze(['#FEE391', '#FEC44F', '#FE9929', '#EC7014', '#CC4C02', '#993404', '#662506']), SEQUENTIAL_REVERSE: Object.freeze(['#662506', '#993404', '#CC4C02', '#EC7014', '#FE9929', '#FEC44F', '#FEE391']), DIVERGING_RDYLBU: Object.freeze(['...
let fs = require('fs'); let c = require('./backCore.js'); let crypto = require('crypto'); let sh = require('./shared.js'); let { glob } = require('./web/be/main_global.js'); let { rmBackPath } = require('./configUtil.js'); const { RebuildMAP_ForDevices } = require('./web/be/main_buildObj.js'); let regenBuildObjEmpty = ...
var generalUtils = require('./general-utils.js'); var polyominoPacking = require('./polyomino-packing'); const { Point, Polyomino } = require('./polyomino-packing'); const { getCenter } = require('./general-utils.js'); const pose = require('../pose/pose.js'); var layoutUtilities = function (cy, options) { const ...
/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */ "use strict"; loadRelativeToScript('utility.js'); loadRelativeToScript('annotations.js'); loadRelativeToScript('CFG.js'); var sourceRoot = (os.getenv('SOURCE') || '') + '/' var functionName; var functionBodies; if (typeof scriptArgs[0] != 'string...
require("./lib/prototype"); const DEFAULT_SEARCH_INDEX = { airports: "iata", airlines: "icao", stations: "code", default: "name", } function _getAxiosInstance() { return global.axiosInstance || require("./utils").CreateAxiosInstance(); } function _cleanInvalidJsonString(text) { if (text.charCo...
// include the angular modules we need var app = angular.module('libronuments', ['ngResource', 'chart.js', 'ui.grid', 'ui.grid.edit', 'ui.grid.selection', 'ui.grid.validate']); // create the service factories app.factory('Library', [ '$resource', function($resource) { return $resource('library/:id', {id : '...
const contract = require("./contract.js"); var axios = require("axios"); const WeightedList = require("js-weighted-list"); const { saveLog, setTransaction, getAllTransaction, updateTransaction, updateorSetPendingTransaction, updateOrsetTransaction, storeUpdateXp, getactiveAvatar, sendNotificationToUse...
//javascript // set width and height of svg element var width = 1140; var height = 506; // create projection for map var projection = d3.geoAlbersUsa() .translate([width / 2, height / 2]) .scale([1100]); // create path generator; converts geojson to svg path's ("M 100 100 L 300 100 L 200 300 z") var path = d3.geoPa...
function noop() { } function add_location(element, file, line, column, char) { element.__svelte_meta = { loc: { file, line, column, char } }; } function run(fn) { return fn(); } function blank_object() { return Object.create(null); } function run_all(fns) { fns.forEach(run); } function is_fu...
"use strict"; import * as THREE from "three"; var CVThreeLoader = (function() { var threeShapeVisitor; var threeStructureVisitor; var m_modelClass; var m_session; return { Init: function(thingload_dir, done_cb) { ThingLoad.init(thingload_dir, function () { ...
const userGuess = document.getElementById("user-guess"); const submitBtn = document.getElementById("submit"); const usersWord = document.getElementById("scrambled-word"); const info = document.getElementById("info"); const levelOutput = document.getElementById("level"); const scoreOutput = document.getElementById("scor...
/* Client-side sort plugin */ var localSort = { "cFeature" : "O", "sFeature" : "LocalSort", "fnInit" : function(oSettings){ var sClass = 'sorting'; //$(colHeaders).unbind('click'); $('div.dataTables_scrollHead thead th').live('click', function() { var colHeaders = $('div.dataTables_scrollHead thead th'); ...
const cheerio = require('cheerio') const request = require('request') module.exports = async function (wikiLink) { return new Promise((resolve, reject) => { try { var link = wikiLink request(link, (err, res, html) => { const $ = cheerio.load(html) v...
/** * @author Mugen87 / https://github.com/Mugen87 * * Ported from: https://github.com/maurizzzio/quickhull3d/ by <NAME> (https://github.com/maurizzzio) * */ import { Line3, Plane, Triangle, Vector3 } from "../three.module.js"; var ConvexHull = ( function () { var Visible = 0; var Deleted = 1; var v1 = ...
'use strict'; var b64ToBluffer = require('../deps/binary/base64StringToBlobOrBuffer'); var pouchCollate = require('pouchdb-collate'); var TaskQueue = require('./taskqueue'); var collate = pouchCollate.collate; var toIndexableString = pouchCollate.toIndexableString; var normalizeKey = pouchCollate.normalizeKey; var par...
const puppeteer = require('puppeteer'); const config = require("./config"); const fs = require("fs").promises; const httpProxy = require("./comm/httpProxy"); const account = require("./api").account; var FileStore = require('fs-store').FileStore; const tools = require("./comm/kits"); const baidu = require("./api/map");...
/* eslint-disable enforce-react-hooks/enforce-react-hooks */ const React = require('react'); const { AppState, Keyboard, NativeModules, BackHandler, Platform, Animated } = require('react-native'); const { SafeAreaView } = require('react-navigation'); const { connect, Provider } = require('react-redux'); const { BackBu...
/* * Copyright 1998-2005 Helma Project * Copyright 2010 <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 req...
/////////////////////////////////////////// /// CONSTANTS /////////////////////////////////////////// //GLOBAL SETTINGS var bagHandleLocations = [[380, 280, 80], [420, 220, 80]]; var bagHandleLength = 40; var bagHandleAngle = Math.PI / 6; var animatedModeTickRate = 100; //ms per frame var worldHeight = 200; var robotH...
/** * 交易核心方法和处理逻辑 * wangxm 2018-12-28 */ const Assets = require('../../assets/assets'); const ByteBuffer = require("bytebuffer"); const crypto = require('crypto'); const ed = require('ed25519'); const extend = require('util-extend'); const bignum = require('@ddn/bignum-utils'); //bignum update const { Utils } =...
let actions = []; let newtaburl = ""; // Clear actions and append default ones const clearActions = () => { getCurrentTab().then((response) => { actions = []; const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0; let muteaction = {title:"Mute tab", desc:"Mute the current tab", type:"action", actio...
function BxDolPageBuilder( options ) { this.options = options; this.loadAreas(); } BxDolPageBuilder.prototype.resetPage = function() { if( !confirm( _t('_adm_pbuilder_Reset_page_warning') ) ) return false; $.post( this.options.parser, { action: 'resetPage', Page: this.options.page }, function(...
var query_info var annotate_info $(function(){ /* For query results, add selected candidate id onto the graph */ function add_candidate_id_to_cy(type, node){ $("#candidate").on('change', function(e){ info = {'id': this.value, 'type': type, 'parent': node.data()['id'], 'relation': 'is_related_to'};...
////////////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014-present, Egret Technology. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // /...
var i_emotionResponseHandler = null; var i_sr_etctApi = null; function emotionResponseHandler() { this.m_lastCar = null; this.m_originalPlaceholderImage = ''; this.m_DarkArea = null; this.init = function() { this.m_originalPlaceholderImage = document.getElementById('etct_VehicleModelImageUrl').getAttr...
require('colors'); var http = require('http'), qs = require('querystring'), fs = require('fs'), nonDomainDir = (a=>{a.pop();a.pop();a.pop();return a.join('/')})(process.mainModule.filename.split('/')), hosts = require(nonDomainDir + '/.hosts.js'), mkdirp = require('mkdirp'), dateTime = require('...