text
stringlengths
5.97k
41.2k
var SVG_TYPE_PATH = 1; var SVG_TYPE_TEXT = 2; var SVG_TYPE_GROUP = 3; var SVG_TYPE_USE = 4; var TEXT_ALIGN_LEFT = 0; var TEXT_ALIGN_CENTER = 1; var TEXT_ALIGN_RIGHT = 2; var textAlines = {"left": TEXT_ALIGN_LEFT, "center": TEXT_ALIGN_CENTER, "right": TEXT_ALIGN_RIGHT}; var regexpSVGID = /\(\#(.*)\)/; var rege...
import { showDialog, hideDialog } from "./dialog.js"; import { sendMessage } from "./ws.js" const leaveButton = document.getElementById("poker_leave"); const remainingTimeDiv = document.getElementById("poker_remaining_time"); const openChatButton = document.getElementById("poker_open_chat"); const chatDiv = document.g...
/* eslint-disable no-restricted-syntax */ import { useContext, useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import { create } from 'ipfs-http-client'; // material import { Container, Typography, Button, Stack, Card, CardContent, CardActions, Box, Link, ...
/* * * GORILLAS.JS - A Javascript version of the classic GORILLAS.BAS game. * * Based on GORILLAS.BAS - Copyright(C) 1981 IBM Corp. * * Author: <NAME> (https://zefonseca.com/) * * This software is released under the MIT license. See the accompanying COPYING or LICENSE file. * */ var canvas; var can...
var timeStep = 1 / 10 / 60; var height = 500; var width = 800; var sigWidth = 350; var Timescale = 40; var focus1; var myCanvas; var prevXposition = 0; var x0,y0; var sigNum = 0; var soFar = 0; var pieColor = ["#F15854", "#5DA5DA", "#FAA43A", "#60BD68"]; var legend...
"use strict"; /* Copyright 2020-2021. Huawei Technologies Co., Ltd. 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/LICEN...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
$(document).ready(function(){ // $('.tools').draggable({ // axis:'y', // containment:"parent" // }); // $('.content_wrap').draggable({ // axis:'y', // containment:"parent" // }); var left = $('.content_wrap').width() * (-1) + 27; // $('.content_wrap').css({ // 'left' : left // }); var tm...
'use strict'; const http = require('http'); const _ = require('lodash'); const debug = require('debug')('blockbrain:service:openhab2'); const edebug = require('debug')('blockbrain:service:openhab2:event'); var host = null; var updateThingsDelay = 30; var metadataNamespace = "blockbrain"; var onThingStatusChanged = n...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("@angular/core"); var ng2_file_upload_1 = require("ng2-file-upload"); var ngx_1 = require("@ionic-native/camera/ngx"); var WarehouseProduct_1 = tslib_1.__importDefault(require("@modules/serv...
///////////scene////////////// var scene = new THREE.Scene(); { var near = 45; var far = 75; scene.fog = new THREE.Fog('lightskyblue', near, far) } scene.background = new THREE.Color('lightskyblue') var camera = new THREE.PerspectiveCamera(75, window.innerWidth / innerHeight, 0.1, 1000); var renderer = new ...
import React from "react"; import styled from "styled-components"; import { Link, useHistory, useLocation } from "react-router-dom"; import moment from "moment"; import UserContext from "contexts/user/user.provider"; import ModalContext from "contexts/modal/modal.provider"; import UserImage from "image/user.jpg"; fun...
var renderer, camera, scene, materials, cubeSize; renderer = new THREE.WebGLRenderer({antialias:true}); renderer.setSize(window.innerWidth*0.8, window.innerHeight*0.9); renderer.setClearColorHex(0xccbbaa, 1); camera = new THREE.PerspectiveCamera(50, window.innerWidth*0.8 / (window.innerHeight*0.9), 1, 10000); camera....
/** * Command parser * Pokemon Showdown - http://pokemonshowdown.com/ * * This is the command parser. Call it with CommandParser.parse * (scroll down to its definition for details) * * Individual commands are put in: * commands.js - "core" commands that shouldn't be modified * chat-plugins/ - other command...
var info = null; var codropsEvents = {}; var transEndEventNames = {}; var app = { // Application Constructor initialize: function() { this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offli...
"use strict"; var _ = require('lodash'); var util = require('./util'); var outFns = { string: util.convertToString, boolean: util.convertToBoolean, number: util.convertToNumber, object: util.convertToObject }; function templateHasKey(template) { return function (key) { return template.has...
/** * ------------------------------------------------ * AUTHOR: <NAME> (mikecj184) * Copyright 2020 - 2021 Timeblur * This code is licensed under MIT license (see LICENSE file for more details) * ------------------------------------------------ */ let paperHeight, paperWidth; let scrollMousePos, scrollPosition...
import { ANALYZE_FOR_ENTRY_COMPONENTS, APP_INITIALIZER, Inject, NgModule, NgZone, Optional } from '@angular/core'; import { APP_BASE_HREF, Location, LocationStrategy, HashLocationStrategy, PathLocationStrategy, PlatformLocation } from '@angular/common'; import { DOCUMENT, BrowserModule, HAMMER_GESTURE_CONFIG } from '@a...
import adapter from '../src/AnalyticsAdapter.js'; import adapterManager from '../src/adapterManager.js'; import CONSTANTS from '../src/constants.json'; import * as utils from '../src/utils.js'; import { ajax } from '../src/ajax.js'; import { getRefererInfo } from '../src/refererDetection.js'; import { getPriceGranulari...
function mouseWheelHandler(n) { var e = n || window.event, t = e.originalEvent || e, f = [].slice.call(arguments, 1), i = 0, u = 0, r = 0; return n = $.event.fix(t), n.type = "mousewheel", t.wheelDelta && (i = t.wheelDelta / 120), t.detail && (i = -t.detail / 3), r = i, t...
data = undefined; links = undefined; nodes = undefined; function loadGraph(json) { data = json; links = data.links.map(d => Object.create(d)); nodes = data.nodes.map(d => Object.create(d)); const simulation = d3.forceSimulation(nodes) .force("link", d3.forceLink(links).strength(0.001).id(d => d.id)) //...
'use strict'; var path$3 = require('path'); var resolve$2 = require('resolve'); var fs$1 = require('fs'); var index$1 = require('./dep-ac1b4bf9.js'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; } function _mergeNamespaces(n, m) { for (var i = 0; i < ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ var path = require("path"); var assign = require("object-assign"); var Tapable = require("tapable"); var Compilation = require("./Compilation"); var Resolver = require("enhanced-resolve/lib/Resolver"); var NormalModuleFactory ...
"use strict"; // Should all be language neutral const NPC = function(isFemale) { // A whole bunch of defaults are the same as the player const res = Object.assign({}, CHARACTER(), CONSULTABLE(), AGENDA_FOLLOWER()); res.npc = true; res.isFemale = isFemale; res.pronouns = isFemale ? lang.pronouns.female ...
const {MessageEmbed} = require('discord.js'); const logging = require('../../util/logging.js'); const {timeoptions} = require('../../util/default.json'); const {got, toFormatting, toPlaintext, escapeFormatting} = require('../../util/functions.js'); /** * Sends a Gamepedia wiki overview. * @param {import('../../util/...
// Antaroth's Abyss (Hard) // // made by Yuyuko // updated by HSDN const {HIGHLIGHT_ITEM, SpawnMarker, SpawnVector, SpawnCircle} = require("../lib"); let player, entity, library, effect; let counter = 0; // count for back attacks let timer; // reset time let print = true; // 2 boss Health // 2 boss Health tips func...
import React, { Component } from 'react'; import { Button, StyleSheet, Text, View, Image, Dimensions, State, TouchableOpacity, Alert, ScrollView, Platform, TouchableHighlight, ActivityIndicator, NetInfo, StatusBar, LayoutAnimation } from 'react-native'; import * as firebase from 'firebas...
/* eslint-disable node/no-deprecated-api */ 'use strict'; const fs = require('fs'); const path = require('path'); const crypto = require('crypto'); const assert = require('assert'); const EventEmitter = require('events'); const dotProp = require('dot-prop'); const makeDir = require('make-dir'); const pkgUp = require('p...
var convert = require("encoding").convert, addressparser = require("addressparser"); /** * Folds a long line according to the RFC 5322 http://tools.ietf.org/html/rfc5322#section-2.1.1 * * @param {String} str Mime string that might need folding * @param {Number} [maxLength=76] max length for a line * @param {B...
import tippy, { sticky } from 'tippy.js'; import 'tippy.js/dist/tippy.css'; import { computeTable, sortStateParse } from './table.js'; /* components */ /* In this module, the signature of a component is component({...}) => dom node which deliberately mimics React functional components. */ const componentCheckbo...
/*! * Tencent is pleased to support the open source community by making Tencent Server Web available. * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
/* * Copyright 2019-2020 Exactpro (Exactpro Systems Limited) * * 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...
// TeXworksScript // Title: Errors, warnings, badboxes // Description: Looks for errors, warnings or badboxes in the LaTeX terminal output // Author: <NAME>, <NAME>, <NAME>, <NAME> // Version: 0.8.6 // Date: 2013-07-05 // Script-Type: hook // Hook: AfterTypeset /* * This program is free software; you can redistribute...
// Licensed under the MIT License // https://github.com/craigahobbs/schema-markdown-js/blob/main/LICENSE /** @module lib/parser */ import {validateTypeModelTypesErrors} from './schemaUtil.js'; /* eslint-disable prefer-template */ // Schema Markdown regex const RE_PART_ID = '(?:[A-Za-z]\\w*)'; const RE_PART_ATTR_GR...
class Game extends Phaser.Game { constructor() { super(Config.WIDTH, Config.HEIGHT, Phaser.CANVAS, 'game-container', null, false, Config.ANTIALIAS) this.state.add('Play', PlayState, false) this.state.add('GameOver', GameOver, false) this.state.add('YouWin', YouWin, f...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import { generateAllCasePermutations } from './string_case_permutations'; import { padLeft, arrayToRegex } from './utils'; const DATE_FORMAT_REGEX = /d{1,4}|M{1,4}|yy(?:yy)?|([HhmsTt])\1?|[LloSZq]|f{1,7}|F{1,7}|UTC|('[^'\\]*(?:\\.[^'\\]*)*')|("[^"\\]*(?:\\.[^"\\]*)*")|(\[[^\]\\]*(?:\\.[^\]\\]*)*])/g; const DATE_TIMEZO...
var atwho_config; $(function () { $('.open-popup-link').magnificPopup({ type: 'inline', midClick: true, closeOnBgClick: false });//绑定发微博弹窗 ucard();//绑定用户小名片 bindTool();//回到顶部 $('input,area').placeholder();//修复ieplace holder if (is_login()) { bindMessageChecker();...
'use strict'; var crypto = require('crypto'); var AVERAGE_MIN = 256; var AVERAGE_MAX = 268435456; var MINIMUM_MIN = 64; var MINIMUM_MAX = 67108864; var MAXIMUM_MIN = 1024; var MAXIMUM_MAX = 1073741824; var INTEGER_MAX = 2147483648 - 1; var TABLE = new Uint32Array([ 1553318008, 574654857, 759734804, 310648967, 1...
/* * Javascript FITS Reader 0.2 * Copyright (c) 2010 <NAME> http://lcogt.net/ * * Licensed under the MPL http://www.mozilla.org/MPL/MPL-1.1.txt * * Requires Jacob Seidelin's binaryajax.js from http://www.nihilogic.dk/labs/exif/ */ function FITS(input){ this.src = (typeof input=="string") ? input : ""; this.im...
// 0x07012F78 - 0x07012F90 import { gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex, gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometry...
// Essayer sans dessiner le jeu // Afficher le nombre de morts/initial // jeu asteroids, plusieurs decisions // !! w1 > 1 trouvé.. // Faire un meilleur, et un second meilleur.. window.addEventListener('load', init); var ctx, canvas var width, height function init(){ canvas = document.getElementById('mon_canvas') ct...
import _ from 'lodash'; import BigInt from 'big-integer'; import SHA256 from 'crypto-js/sha256'; import Elliptic from 'elliptic'; import moment from 'moment'; import { set, toggle } from 'cerebral/operators'; import { state,props } from 'cerebral/tags'; import { sequence } from 'cerebral'; import randomLabel from '.....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LaunchApp = exports.locationCall = exports.iframeCall = exports.supportLink = exports.inBaidu = exports.inWeibo = exports.inQQ = exports.inWeixin = exports.enableApplink = exports.enableULink = exports.isAndroid = exports.isIos = expor...
const { EXIT_CODE_INSTRUMENT_NOT_READY, INSTRUMENT_STATUS_READY_TO_TRADE, ORDER_STATUS_NEW, ORDER_STATUS_PARTIALLY_FILLED, ORDER_STATUS_FILLED, ORDER_STATUS_CANCELLED, ORDER_SIDE_SELL, ORDER_SIDE_BUY, RPC_CHANNEL_ORDERBOOK, RPC_CHANNEL_INSTRUMENTS, RPC_CHANNEL_POSITIONS, ...
const router = require('express').Router(); const Leap = require('leapjs'); const frame = require('leapjs/lib/frame'); const hand = require('leapjs/lib/hand'); let clientServerWS = 'undefined'; let controller = 'undefined'; // control values let appWidth = 600; let appHeight = 300; let stageWidth = 300; let stageHe...
const Discord = require("discord.js"); const bot = new Discord.Client(); const sql = require("sqlite"); sql.open("./assets/guildsettings.sqlite"); var maincommands = [ "help - Bot will dm you a link with all of the commands.\n", "ping - Bot will respond with pong and time it took.\n", "embed [text] - Will s...
Ti.include("model/api.js"); var win = Titanium.UI.currentWindow; var bar = Ti.UI.createView({ backgroundColor:'#46a546', width:Titanium.Platform.displayCaps.platformWidth, height: 44, left:0, top:0, }); var border = Ti.UI.createView({ backgroundColor:"black", height:1, bottom:0, ...
// Copyright 2011 <NAME>, University of San Francisco. All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of...
const fs = require('fs') function main() { let src, dest let watch = false { let i=2 const argv = process.argv if (argv[i] === '-w') { watch = true i++ } if (argv.length < i + 2) { console.log(`node convert.js [-w] <chart-file.txt> <convert-to.mer>`) console.log('\t-w ...
"use strict"; /** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * * This code has been modified from https://github.com/mrdoob/three.js/, * copyright (c) 2010-2018 three.js authors. MIT License */...
DomUtils = {}; var qsaFindAllBySelector = function (selector, contextNode) { // If IE7 users report the following error message, you // can fix it with "meteor add jquery". if (! document.querySelectorAll) throw new Error("This browser doesn't support querySelectorAll."); // the search is constrained to d...
/*jshint multistr: true */ $(document).ready(init); // from https://gist.github.com/wteuber/6241786 Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }; var TWO_PI = 2 * Math.PI; var TEARDROP_M_VALUE = 0; var TEARDROP_ANGLE = 0; var TEARDROP_ANGLE_BASE_STEP = TWO_PI / 5; var M...
import React, { PropTypes } from 'react'; export var wizard = function(id) { var self = this, modal, tabs, tabCount, tabLast, currentGroup, currentTab, contents; self.id = id; $(self.id).click(function() { self.init(this) }); this.init = function(button){ // get id of open modal ...
var basePlaneDimension = 65024; var mercator = new sm({size: basePlaneDimension}); var elevationCache = {}; var demCache = []; for (var i=0; i<22; i++){ demCache.push([]) } function getCenter(){ var pt = controls.target; var lngLat = mercator.ll([pt.x+basePlaneDimension/2, pt.z+basePlaneDimension/2],0);...
'use strict' var isObject = function(obj){ return Object.prototype.toString.call(obj) !== '[object Object]' ? false : true; } var isArray = Array.isArray /** * PopulationService is a addon that allows for variable population. It may be used to aggregrate information * about an association of a quried response * ...
const Chessboard = require('../lib/chessboard'); const {Loader} = require('semantic-chess'); const auth = require('solid-auth-client'); const DataSync = require('../lib/datasync'); const namespaces = require('../lib/namespaces'); const { default: data } = require('@solid/query-ldflex'); const Core = require('../lib/cor...
/*global net*/ var EVENTSOURCE_CONSTANTS_DESCRIPTION, EventTarget, Event, RECONNECTION_TIME, // http://www.w3.org/TR/eventsource/#concept-event-stream-reconnection-time DIGITS_REGEX, CRLF, LF, CR, connections, potentiallyCORSEnabledFetch; /** * @class MessageEvent * @extend...
jQuery(document).ready(function () { //Configuramos el diagrama var options = new primitives.orgdiagram.Config(); //Deshabilitamos un checkbox que viene por defecto en la plantilla options.hasSelectorCheckbox = primitives.common.Enabled.False; //Deshabilitamos los botones options.hasButtons = p...
import "./grid-view.scss"; import {Component} from "../component"; import {GridColumnHeader, GridCornerHeader, GridRowHeader} from "./grid-header"; import {GridTile} from "./grid-tile"; import {isEqual} from "../../utils/operators"; import {Coordinate, Size, Rect} from "../../utils/coordinate"; import {Minimap} from "....
import React, { Component } from 'react'; import { GoogleApiWrapper } from 'google-maps-react'; import 'bootstrap/dist/css/bootstrap.min.css'; // import MapWithStreetView from './MapWithStreetView.js' import MapWithStreetView from './Map2.js' import Container from 'react-bootstrap/Container'; // import Jumbotron from...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var PropTypes = _interopDefault(require('prop-types')); var legends = require('@nivo/legends'); var d3Scale = require('d3-sca...
const test = require('assert'); const sut = require('../build/estrangela-code-util'); describe('Estrangela', () => { describe('Endify', () => { it('Standalone non-vocalized non-final', () => { test.strictEqual(sut.endify('0'), '0', '0 endify'); test.strictEqual(sut.endify('w'), 'w', 'w endify'); ...
import Main from '../environment/Main.js' import htmlContent from '../environment/htmlContent.js' import invoker from '../environment/invoker.js' export default class Component extends Main { constructor(){ super(); } dataArray(){ this.profileData = [{ proImage:...
//var output; var websocket; function init() { //output = document.getElementById("output"); } // end init function connect() { //open socket var mypath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/")); var wsUrl = "ws://" + window.location.host + mypath + "/game"; if (...
var test = require("tape") module.exports = testDocument function testDocument(document) { var cleanup = require('./cleanup')(document) var Event = require('../event'); test("document is a Document", function (assert) { assert.equal(typeof document.createTextNode, "function") assert.equal...
"use strict"; // make it work, make is fast, make it clean const fs = require('fs'); const path = require('path').posix; const fuse = require('./lib/fuse'); //errors code only const guid = require('mout/random/guid'); const update = require('mout/object/mixIn'); const ProgressBar = process.env.CI ? class mock { tic...
/** * FILENAME: InstructionalHierarchy.js * * DESCRIPTION: These are piecemeal controls for the fold state. */ // React + Redux import React, { useState, useRef, useMemo, useEffect, createRef } from 'react'; import { connect } from 'react-redux'; import { useUpdate, useSpring, useSprings, animated, config } from ...
import eonfoxObject from '@/components/eonfox/eonfox.js'; var eonfox = new eonfoxObject(); var websocket_app = false; //#ifdef APP-PLUS websocket_app = true; //#endif var websocket = function(config){}; websocket.prototype = { // url :'wss://developer.eapie.eonfox.com:9997',//测试版 url :'wss://eapie.eonfox.com:9999'...
// Utility for computing constants function xy(x, y) { /* * Convert image-space pixel coords into map-space pseudo-lat-lng coords. */ return new L.LatLng(-y * COORDINATE_MULTIPLIER, x * COORDINATE_MULTIPLIER); } // Constants var WIDTH = 7933; var HEIGHT = 4550; var MIN_ZOOM = 0; var MAX_ZOOM = 4; var...
const net = require('net'); const pearlsync_tools = require('./pearlsync_tools'); const fs = require('fs'); var clientBuffer = []; function sendShareFilesPartsToPartners(counter, numbOfFiles, now, hash, filename, len, origin_address) { var init = counter*global.transaction_syze; var end = (counter+1)*global....
const tulind = require('tulind'); const talib = require('talib'); const percent = require('percent'); /** * ZigZag indicator * * @see https://github.com/andresilvasantos/bitprophet/blob/master/indicators.js * * @param ticks * @param deviation * @param arraySize * @returns {Array} */ function zigzag (ticks, de...
var util = require('util'), crypto = require('crypto'), fs = require('fs'), child_process = require('child_process'), config = require('./config').load() mkdirp = require('mkdirp'), path = require('path'), notifyHandler = require('./notify-ha...
const { remote, app, BrowserWindow, ipcMain, screen, dialog, } = require("electron"); const isDev = require("electron-is-dev"); const path = require("path"); const detect = require("detect-port"); let mainWin; let splash; app.disableHardwareAcceleration(); const port = 3366; const configDir = (app || remote...
/** * 图片广告的图片上传 */ var imageAdsCarouselHtml = '<div class="layui-carousel" v-bind:id="id" :class="{\'ns-carousel-ind-line\': data.carouselChangeStyle == \'line\'}">'; imageAdsCarouselHtml += '<div carousel-item>'; imageAdsCarouselHtml += '<div class="image-ads-item carousel-posters" v-for="(item,index) in list">...
const BaseModule = require('basemodule.js'); const bis_genericio = require('bis_genericio'); const BisWebTextObject = require('bisweb_textobject.js'); const path=bis_genericio.getpathmodule(); const fs=bis_genericio.getfsmodule(); const parser = require("jsonlint").parser; const baseutils=require("baseutils")...
/*图片缩放*/ function initBannerTouch(details) { var leftFn=details.leftFn; var rightFn=details.rightFn; //需要加监听的元素 var moveEle = document.getElementsByClassName("jd_banner_touch"); for(var i=0;i<moveEle.length;i++){ moveEle[i].addEventListener('touchstart', imgTouchStart, false); ...
function limpiar_dl_memo_desc(tip) { $("#sector_cat").val(""); $("#mzna_cat").val(""); $("#lote_cat").val(""); $("#id_men_desc").val(""); $('#hab_urb').val(""); $('#mzna').val(""); $('#lote').val(""); $('#zona').val(""); $("#insc_si").prop("checked",false); $("#insc_no").prop('c...
var url = "/api"; var handler; var mdlComp; //library/imported stuff var options = { valueNames: ['sort-1', 'sort-2', 'sort-3', 'sort-4', 'sort-5', 'sort-6', 'sort-7', 'sort-8', 'sort-9', 'sort-10', 'sort-11', 'sort-12'] } , documentTable //, documentTable = new List('mdl-table', options) ; $($('th....
'use strict'; const https = require('https'); const chalk = require('chalk'); const dns = require('dns'); const execSync = require('child_process').execSync; const fs = require('fs-extra'); const hyperquest = require('hyperquest'); const path = require('path'); const semver = require('semver'); const spawn = require('...
// Copyright 2016 <NAME>. 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 required by applicable la...
import Cell from "./Cell.js" export default class Network { static SERVER_TO_CLIENT = { UPDATE_NODES: 0x10, SPECTATE_CAMERA: 0x11, CLEAR_ALL: 0x12, CLEAR_OWNED_CELLS: 0x14, ON_NEW_OWNED_CELL: 0x20, LEADERBOARD_UPDATE: 0x31, BORDER: 0x40, CHAT_MESSAGE:...
/** * Source: http://www.webreference.com/programming/javascript/definitive3/index.html * Slightly modified for >=IE9 */ var XML = new Object(); /** * Create a new Document object. If no arguments are specified, * the document will be empty. If a root tag is specified, the document * will contain that sin...
'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...
var fileSystem, requestFileSystem; var ProjectManager = [], files_added = []; var BASIC_WIDTH = 200; var time; if(!window){ requestFileSystem = requestFileSystem || webkitRequestFileSystem; requestFileSystem(TEMPORARY, 50*1024*1024, onInitFs, errorHandler); localStorage = ''; } else if(!fileSystem){ wi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isFunction2 = require('lodash/isFunction'); var _isFunction3 = _interopRequireDefault(_isFunction2); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (va...
{ "translatorID": "8efcb7cb-4180-4555-969a-08e8b34066c4", "label": "Trove", "creator": "<NAME>", "target": "^https?://trove\\.nla\\.gov\\.au/(?:newspaper|gazette|work|book|article|picture|music|map|collection)/", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4,...
/* * Copyright 2017-present varchar.io * * 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 agree...
const path = require('path'); const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const HardSourceWebpackPlugin = require('hard-source-webpack-plugin-patch'); const TerserPlugin = require('terser-webpack-plugin'); const OptimizeCssAssetsPlugin = require('optimize-css-ass...
/** * Problem 84 - Monopoly odds * * @see {@link https://projecteuler.net/problem=84} * * In the game, Monopoly, [...] * * A player starts on the GO square and adds the scores on two 6-sided dice to * determine the number of squares they advance in a clockwise direction. * * Without any further rules we would...
import React, {useEffect, useRef, useState} from 'react'; import {useHistory, useLocation} from 'react-router-dom'; import OpenSeaDragon from 'openseadragon'; import '@openseadragon-imaging/openseadragon-imaginghelper'; import {getScalebarSizeAndTextForMetric} from './utils'; import Draggable from 'react-draggable'; ...
const translate = require('../ops-transformations/translate') const Polygon3 = require('../../core/math/Polygon3') const Vector3 = require('../../core/math/Vector3') const Vertex3 = require('../../core/math/Vertex3') const {parseOptionAs3DVector, parseOptionAs2DVector, parseOptionAsFloat, parseOptionAsInt} = require('...
function createMap(trendLocMarker) { console.log("entering CreateMap") //Create the base layers that will be the background of our map // var lightmap = L.tileLayer("https://api.mapbox.com/styles/v1/mapbox/light-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}", { // attribution: "Map data &co...
/////////////////////////////////////////////////////////////////////// // // CSE 5542 AU 2019 LAB 2 // <NAME> (clark.2816) // Assigned: September 17, 2019 // Due: October 1, 2019 11:59 PM // Lab overview: Enhance your 2D drawing program from lab1 with transformations // ///////////////////////////...
import { AmbientLight } from 'three/src/lights/AmbientLight'; import { BoxGeometry } from 'three/src/geometries/BoxGeometry'; import { CameraHelper } from 'three/src/extras/helpers/CameraHelper'; import { CubeCamera } from 'three/src/cameras/CubeCamera'; import { DirectionalLight } from 'three/src/lights/DirectionalLig...
// Copyright 2014 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. /** * Plot a line graph of data versus time on a HTML canvas element. * * @param {HTMLCanvasElement} canvas The canvas on which the line graph is * ...
var getNextToCall = function (arrayFlow) { console.log('nextCall'); for (var i = 0; (i < arrayFlow.length); i++) { if (arrayFlow[i].called === false) { return arrayFlow[i]; } } } TwilioManager = { createHierarchyNumber: function (hierId) { // Get hierarchy if (!Meteor.user().hierarchie...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _CrearFuenteDatos = _interopRequireDefault(require("./CrearFuenteDatos.js")); var _InstruccionVariable = _interopRequireDefault(require("../../../Ins...
import { Meteor } from 'meteor/meteor'; import { check, Match } from 'meteor/check'; import { v4 as uuidv4 } from 'uuid'; import shortid from 'shortid'; import axios from 'axios'; import { checkIfCan } from '../../lib/scopes'; import { createAxiosForRasa, auditLogIfOnServer, formatError } from '../../lib/utils'; impor...
// The MIT License (MIT) // Copyright (c) 2013 <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, modi...