text
stringlengths
5.97k
41.2k
'use strict'; Physijs.scripts.worker = '../libs/physijs_worker.js'; Physijs.scripts.ammo = '../libs/ammo.js'; var scale = chroma.scale(['white', 'blue', 'red', 'yellow']); var initScene, render, applyForce, setMousePosition, mouse_position, ground_material, box...
import process from 'node:process'; import {Buffer} from 'node:buffer'; import path from 'node:path'; import {fileURLToPath} from 'node:url'; import fs from 'node:fs'; import stream from 'node:stream'; import test from 'ava'; import {readableNoopStream} from 'noop-stream'; import { fileTypeFromBuffer, fileTypeFromStr...
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Location = require("./ast/location"); const Position = require("./ast/position"); /** * ## Class hierarchy * * - [Location](#location) * - [P...
import * as fs from 'fs-extra' import * as path from 'path' import * as vm2 from 'vm2' import { ipcRenderer } from 'electron' import { camelCase, isBoolean, isEmpty, isObject, isString, partition, uniq, upperFirst } from 'lodash' import { PLUGINS } from '@config' let rootPath = path.resolve(__dirname, '../../../') if ...
///////////////////////////////////////////////////// //*-----------------------------------------------*// //| Part of Throw Out (https://www.maus-games.at) |// //*-----------------------------------------------*// //| Released under the zlib License |// //| More information available in the readme file ...
/********************************************************************************* Copyright © 2016, Alliance for Sustainable Energy, LLC 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. Redistributi...
var fs = require('fs'); var falafel = require('falafel'); var typedacorn = require('typedast'); var input = fs.readFileSync(process.argv[2], 'utf-8'); // Replace "export" statements. input = input.replace(/^\s*export /mg, '') + '\nvar _dummy = null; export = _dummy;'; // Remove checkLVal lines. input = input.replac...
class Mat4 { static identity(out = []) { return Object.assign(out, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) } static translate(a, v, out = []) { let x = v[0], y = v[1], z = v[2]; let a00, a01, a02, a03; let a10, a11, a12, a13; let a20, a21, ...
function removePopovers(viewId) { var selector = ".popover,.kyrixtooltip"; if (viewId != null) selector += ".view_" + viewId; d3.selectAll(selector).remove(); } function removePopoversSmooth(viewId) { var selector = ".popover,.kyrixtooltip"; if (viewId != null) selector += ".view_" + viewId; d3...
/** * Copyright (c) 2009-2011 <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge,...
const WIDTH_DEFAULT = 10; const WIDTH_MIN = 4; const WIDTH_MAX = 32; const HEIGHT_DEFAULT = 16; const HEIGHT_MIN = 4; const HEIGHT_MAX = 64; const COLORS_DEFAULT = 4; const COLORS_MIN = 2; const COLORS_MAX = 6; const COLORS = new Float32Array([ 0.27, 0.27, 0.27, 1.00, 0.35, 0.35, 0.35, 1.00, 0.35, 0.35,...
var os = require('os'); var snmp_net = require('net-snmp'); var snmp = require('snmpjs'); var http = require('http'); var util = require('util'); var colors = require('colors'); var constants = require('../var_constants'); var emoji = require('node-emoji'); var node = require('../models/nodes'); var mongoCon = require(...
// Initialize your app var myApp = new Framework7({modalTitle:'HailStore'}); var mySwiper = myApp.swiper('.swiper-container', { pagination: '.swiper-pagination', paginationHide: false, paginationClickable: true, nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', }); // 1 Slide Per View,...
"use strict"; /// <reference path='../typings/node/node.d.ts' /> /// <reference path='../typings/lodash/index.d.ts' /> /// <reference path='../typings/MetadataClasses.d.ts' /> var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceo...
let modInfo = { name: "The Prestreestuck", id: "treestuck", author: "ducdat0507", pointsName: "points", discordName: "The Prestreestuck Server", discordLink: "https://discord.gg/fHcWmmprGm", initialStartPoints: new Decimal(act.startsWith("0") ? 10 : 0), // Used for hard resets and new players offlineLimit: (...
import React, { useState, useEffect, useRef } from 'react'; import { Animated, Image, ImageBackground, Platform, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, TouchableWithoutFeedback, KeyboardAvoidingView, View, Dimensions, } from 'react-native'; const { width, height } = Dimens...
"use strict" const http = require('http'); const uuid = require('node-uuid'); const url = require('url'); const WebSocket = require('ws'); const querystring = require('querystring'); var rpcApiHelper = class { constructor(serverBaseUri) { //super(); // This is for when we're making requests as a client to a...
import React, { useEffect, useState, useImperativeHandle, forwardRef } from 'react'; var callThread = null; var currentChannel = "main"; function randomString(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.lengt...
const { select,dispatch,withSelect, withDispatch } = wp.data; const { registerPlugin } = wp.plugins; const { PluginDocumentSettingPanel } = wp.editPost; const { CheckboxControl,FormTokenField,TextControl,SelectControl } = wp.components; const { useState } = wp.element; const { withState } = wp.compose; //aditional c...
import React, { Component } from 'react'; import Bootstrap, { Navbar, Nav, Form, Carousel, Button, Container, Row, Col, Jumbotron, Display4, Lead, Card, List, BHeader, BA, BSvg, BDiv, BStrong, BH2, BH3, BH4, BP, BSpan, BImg } from 'bootstrap-4-react'; const style = { h...
let tableProductos; let rowTable = ""; document.write(`<script src="${base_url}/Assets/js/plugins/JsBarcode.all.min.js"></script>`); $(document).on('focusin', function(e) { if ($(e.target).closest(".tox-tinymce, .tox-tinymce-aux, .moxman-window, .tam-assetmanager-root").length) { e.stopImmediatePropagation(...
 $.extend({ groupTopic: function (param) { var body = $('body'); var sumary_info = $('.sumary-info'); var global_nav = $('.global-nav'); var addListener = function () { $('#classic_topic').click(function () { var cookieParam = $.cookie('topic'); ...
/** * Copyright 2015 Semteul * * 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 ...
import { localize, localizeWith } from '../js/l10n.js' import { showClub, getClubByName } from '../js/lists.js' import { savedClubs } from '../js/saved-clubs.js' import { currentTime, escapeHTML, now } from '../js/utils.js' export let days, months export function setDaysMonths (newDays, newMonths) { days = newDays ...
const _jsxFileName = "/Users/jose/Dropbox/urbit/toe/src/tile/tile.js";import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; import { sigil, reactRenderer } from 'urbit-sigil-js' const Sigil = props => { return ( React.createElement('div', {__self: this, __source: {f...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isString2 = require('lodash/isString'); var _isString3 = _interopRequireDefault(_isString2); var _isFunction2 = require('lodash/isFunction'); var _isFunction3 = _interopRequireDefault(_isFunction2); var _isNumber2 = require('lodas...
/* 应用通用功能 */ // 判断地址栏是否有lang参数,没有则跳转到带lang参数的地址 if(MET['url']['basepath']){ var str=window.parent.document.URL, s=str.indexOf("lang="+M['lang']), z=str.indexOf("lang"); if (s=='-1' && z!='-1') { var s1=str.indexOf('#'); if (s1=='-1') { str=str.replace(/(lang=[^#]*)/g...
import { registerBidder } from '../src/adapters/bidderFactory.js'; import { config } from '../src/config.js'; import { deepAccess, uniques, isArray, getWindowTop, isGptPubadsDefined, isSlotMatchingAdUnitCode, logInfo, logWarn, getWindowSelf, mergeDeep, } from '../src/utils.js'; import { BANNER, VIDE...
import _extends from "@babel/runtime/helpers/extends"; import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/cre...
function Figure(SVG, option) { var defs = { $box: null, draw: null, nodes: [], links: [], //是否可以缩放 isDrag: false, //节点点击事件 nodeClick: null, celNodeClick: null, //根节点name rootName: "", //左边图片路径 leftImgPath: "", ...
// slide function bxslider(){ $('.bxslider_01').bxSlider({ auto:true, controls:false, speed:500, touchEnabled:false, }); var bxc = $('.bx-controls').outerWidth()/2; $('.bx-controls').css({'margin-left' : -bxc}); $('.bxslider_03').bxSlider({ auto:true, controls:false, speed:500, touchEnabled:false,...
var util = require('util'); var events = require('events'); var SdkError = require('./sdk-error').SdkError; var uuid = require('uuid'); var async = require('async'); var errorCode = require('./cham-error-code'); // API // the central role manages the communication among plugin manager, // app callback server modul...
const gulp = require('gulp'); const gulpStep = require('gulp-step'); const data = require('gulp-data'); const less = require('gulp-less'); const mocha = require('gulp-mocha-simple'); const mustache ...
/** * Crossword puzzle filler. */ const UNFILLED_CHAR = '.'; const BLOCK_CHAR = '#'; const DIR_ACROSS = 0; const DIR_DOWN = 1; /* * Bitmap helpers. We store viable characters as a bit-per-letter; since * we have 26 possible letters we can fit it all in a u32. */ const ALL_CHARS = "abcdefghijklmnopqrstuvwxyz"; c...
var oTableCliente, tblEstablecimiento; var folderimage; const objFormulario = { }; $(function() { /** * Muestra la lista ocultando el formulario */ objFormulario.mostrarBusqueda = function () { const boton = $('#btnAccionContenedorLista'); const icon = boton.find('i'); if...
var Ally; (function (Ally) { var WelcomeTip = /** @class */ (function () { function WelcomeTip() { } return WelcomeTip; }()); /** * The controller for the page that shows useful info on a map */ var ChtnMapController = /** @class */ (function () { /** *...
var i2c = require('i2c'); var font0 = require('oled-font-5x7'); // default font var Oled = function(opts) { this.HEIGHT = opts.height || 64; this.WIDTH = opts.width || 128; this.ADDRESS = opts.address || 0x3c; this.PROTOCOL = 'I2C'; // create command buffers this.DISPLAY_OFF = 0xAE; this.DISPLAY_ON = ...
// converter.js // data convert library for Terra Eyes // (c) 2019 <NAME> // Copyright © 1998 - 2019 Tencent. All Rights Reserved. let ADDRESS_POINT; function addressToLatLng(address) { geocoder = new qq.maps.Geocoder(); geocoder.getLocation(address); geocoder.setComplete(function (result) { ADDRES...
// testing parameters, uncomment to use in script test ///* aa.env.setValue("showDebug","Y"); aa.env.setValue("fromDate","01/01/2000"); aa.env.setValue("toDate","12/31/2014"); aa.env.setValue("appGroup","Licenses"); aa.env.setValue("appTypeType","*"); aa.env.setValue("appSubtype","*"); aa.env.setValue("appCateg...
var pull = require('pull-stream') var Reduce = require('flumeview-reduce') var I = require('./valid') var deepEquals = require('deep-equals') var types = require('./types') var paramap = require('pull-paramap') var ssbClient = require('ssb-client') var crypto = require('crypto') var ssbK...
import Processor from 'engine/processor/processor'; import Rectangle from './geometry/shapes/rectangle'; import Color from './color/color'; import textureHandlers from './textureHandlers'; import ShaderBuilder from './shaderBuilder/shaderBuilder'; import MatrixTransformer from './matrixTransformer/matrixTransformer'; ...
/* eslint-disable max-len */ const got = require('got'); const SECOND = 1000; const MINUTE = 60 * SECOND; function makeTimeoutManager() { const lastResponseTimes = new Map(); // Map<string, number> function timeoutSet(identifier) { const currentTimeout = lastResponseTimes.get(identifier); return currentTimeout...
const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); const renderer = new THREE.WebGLRenderer({ canvas: document.querySelector("#cv") }); renderer.setPixelRatio(window.devicePixelRatio); renderer.setSize( window.innerWidth, window.in...
"use strict"; var blessed = require('blessed') , Node = blessed.Node , Canvas = require('./canvas') function LCD(options) { if (!(this instanceof Node)) { return new LCD(options); } var self = this options = options || {}; self.options = options //these options need to be modified epending on the...
let modal = new bootstrap.Modal(document.getElementById('main-modal')); function deleteCoachFromSquad(user, squad) { let url = document.getElementById('coach-squad-assign').dataset.ajaxUrl; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 2...
/** * This module adds GDPR consentManagement support to prebid.js. It interacts with * supported CMPs (Consent Management Platforms) to grab the user's consent information * and make it available for any GDPR supported adapters to read/pass this information to * their system. */ import {getAdUnitSizes, isFn, isN...
// Following this idea: https://hacks.mozilla.org/2011/12/faster-canvas-pixel-manipulation-with-typed-arrays/ function ImageItem(src) { this.image = new Image(); this.image.src = src; } function formatDate(d) { var month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear(...
/* eslint-disable */ 'use strict'; // Node Modules Object.defineProperty(exports, "__esModule", { value: true }); exports.g$ = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "fun...
import React, { memo, useEffect, useState } from 'react' import PropTypes from 'prop-types' import clsx from 'clsx' import { useTranslation } from 'react-i18next' import { makeStyles, useTheme } from '@material-ui/styles' import useMediaQuery from '@material-ui/core/useMediaQuery' import Box from '@material-ui/core/Box...
// Licensed to Pioneers in Engineering under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Pioneers in Engineering licenses // this file to you under the Apache License, Version 2.0 (the // "License"); you ...
console.log('Ready!!') function validaForm(){ //campo select if($("#cartera").val() == ""){ alert("Seleccionar Cartera."); $("#cartera").focus(); return false; } if($("#gestor").val() == ""){ alert("Seleccionar Gestor."); $("#gestor").focus(); return fal...
import React, { useMemo, useState, useCallback } from 'react'; import { Row, Col, Modal, OverlayTrigger, Popover } from 'react-bootstrap'; import '../Search/MultiToggle.css'; import LinesEllipsis from 'react-lines-ellipsis'; import responsiveHOC from 'react-lines-ellipsis/lib/responsiveHOC'; import { IoIosArrowDown } f...
import { Button, Select } from 'antd' import CodeBlock from 'components/Home/CodeBlock' import Layout from 'components/Layout' import { SEO } from 'components/seo' import 'core-js/features/array/at' import 'core-js/features/string/replace-all' import { graphql } from 'gatsby' import { getCookie, setCookie } from 'lib/u...
/* * == 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 ...
/** * @fileoverview * Functions used to format the test result output. * * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
"use strict"; 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)...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
/* Copyright (c) 2014, <NAME>, NCSU OSGeoREL 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 conditions and th...
function AsmFunctionsWrapper() {} AsmFunctionsWrapper.prototype.initAsm = function(heapSize) { var roundedHeapSize = getNextValidFloat32HeapLength(heapSize); // asm.js requires all data in/out of function to // be done through heap object // we don't want to allocate a new heap on every call, // so we reuse...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
"use strict"; exports.__esModule = true; var data_1 = require("./data"); var fA_e3 = require("./fA_0.001.json")["result"] var fA_e2 = require("./fA_0.01.json")["result"] var fA_e1 = require("./fA_0.1.json")["result"] var fA_e0 = require("./fA_1.json")["result"] const mA = [[[-9.51319315, -3.70999657], [ 5.3464759...
// $(function ($) { // // // // })(jQuery); $('.main-header2').eq(2).removeClass('main-header2') let categoryTreeToggler = document.getElementsByClassName("caret"); let i; for (i = 0; i < categoryTreeToggler.length; i++) { categoryTreeToggler[i].addEventListener("click", function() { this.parentElement.que...
/** * AUTO TRACKER LIKE JS * * @objectives * - Track forms * - Use Session storage * - Send data * * * * @type {{init: Function}} */ var ClickxTracker = { init: function(options){ var default_options = { visitExpire: 4*60*60*1000, visitorExpire: 365*24*60*60*1000 }; /* Set defaul...
/** * * AW.DateScroller (require AW.Scroller) * ) * @namespace AW * @author 望断 <<EMAIL>> * @version 1.0.0 * * */ 'use strict'; var DateScroller = function (opts) { /* * @desc opts 配置参数 * * @param container - 容器 * @param defaultDate - 默认初始时间(可选) { * @param year - 初始年 * @param month - 初始...
var choice = ''; var choiceurl = ''; var chosen = ''; var io_hist = new Object(); var svgloader = '<div class="text-center" style="padding:50px 0"><?xml version="1.0" encoding="utf-8"?><svg width="120px" height="120px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-ri...
"use strict"; 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) { t...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _createReactClass = require('create-react-class'); var _cre...
const {Fragment} = require("./fragment") const {Mark} = require("./mark") function parseDOM(schema, dom, options) { let topNode = options.topNode let top = new NodeBuilder(topNode ? topNode.type : schema.nodes.doc, topNode ? topNode.attrs : null, true) let state = new DOMParseState(sc...
import React, { PureComponent } from 'react'; import moment from 'moment'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import { List, Card, Row, Col, Radio, Input, Progress, Button, Icon, Dropdown, Menu, Avatar, Modal, Alert, Tag, message } from 'antd'; impo...
// Owner: <NAME> (mandula8) // Summary: Class representing game room in game state const width = 800; const height = 600; const MASS_TO_V = 1.3; const radiusRandFactor = 4; const radiusRandStart = -2; const tiltBarrier = Math.PI * 0.5; const PLAYER_TILT_RADIUS = width / 8.0; const BULLET_DISP = 4; const MAX_HEALTH = ...
// Copyright 2016-2020, University of Colorado Boulder /** * a Scenery Node that represents a biker in the view * * @author <NAME> * @author <NAME> * @author <NAME> (PhET Interactive Simulations) */ import Dimension2 from '../../../../dot/js/Dimension2.js'; import Range from '../../../../dot/js/Range.js'; impor...
/* © 2020 <NAME> */ import { strict as assert } from 'assert'; /* eslint-disable no-control-regex */ const COMMA = ','.charCodeAt(0); const DQUOTE = '"'.charCodeAt(0); const SEMICOLON = ';'.charCodeAt(0); const ESCAPED_CHAR = /\\(.)/gu; const TO_BE_ESCAPED = /["\\]/gu; const INSPECT = Symbol.for('nodejs.util.inspect...
/** * @file Stage * @author <NAME> <<EMAIL>> * @private */ import { Vector3 } from "../../lib/three.es6.js"; import Signal from "../../lib/signals.es6.js"; import { Debug, Log, Mobile, ComponentRegistry } from "../globals.js"; import { defaults, getFileInfo, deepCopy } from "../utils.js"; import Counter from ".....
// =========================================================================== // Asshat-Gaming Roleplay // https://github.com/VortrexFTW/gtac_asshat_rp // Copyright (c) 2020 Asshat-Gaming (https://asshatgaming.com) // --------------------------------------------------------------------------- // FILE: mouse-camera.js...
import {AnimatableEntity} from "./animatableEntity"; import Game from "./game"; import EventType from "/public/scripts/common/constants/eventType.js"; import CardBuilder from "/public/scripts/view-components/cards/cardBuilder.js"; import {EntityType} from "./baseEntity"; import {GameScene} from "./scene"; import {Card,...
import SolidApi from './SolidApi' import apiUtils from './utils/apiUtils' import errorUtils from './utils/errorUtils' import JSZip from 'jszip' import * as mime from 'mime' // import { Blob } from 'cross-fetch' const { getRootUrl, getParentUrl, getItemName } = apiUtils const { FetchError, assertResponseOk, composedFet...
// MODULES // import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import markdownit from 'markdown-it'; import pdfMake from 'pdfmake/build/pdfmake'; import { withTranslation } from 'react-i18next'; import Loadable from 'components/internal/loadable'; import VoiceInput from 'componen...
/* 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/. */ /* Portions Copyright <NAME> 2011-2012. */ /** * NumberFormat internal properties. * * Spec: ECMAScript Intern...
'use strict'; class RoadLine { constructor(position) { this.position = position; this.length = 2.0 + this.position / 100.0 * 16; this.color = 'rgba(255, 255, 0, 0.4)'; } advance(alpha) { this.position += alpha * (0.1 + this.position * 1.005 - this.position); this.length = 2.0 + this.position ...
/* * 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. */ var model ={ nivel : 0, a : 0, n : 0, m : 0, str_a : "", b : 0, str_b : "", c : 0, cc : 0, p...
/* eslint-env node */ console.info(`Running ${__filename}`) // Inbuilt const path = require('path') const fs = require('fs') const { promisify } = require('util') const { spawn } = require('child_process') const readFile = promisify(fs.readFile) // 3rd-party const del = require('del') import webpack from './node_modu...
/* global module, wx, window: false, document: false */ 'use strict'; import mixins from 'es6-mixins'; import {extend, is, splineCurve, shadeBlendConvert} from '../util/helper'; import randomColor from '../util/randomColor'; import WxCanvas from '../util/wxCanvas'; import WxChart from './wxChart'; import WxTitle from...
//actual simbolo que se esta comparando var current_selected_value = ""; //Este modulo es dependiente de, D3,C3,Polyglot var StockTools = function (raiz, periodos) { 'use strict'; var ids = []; var self = this; function init() { var header = d3.select(raiz).append("div") .attr("...
var hexcase = 0 , b64pad = ""; function hex_md5(d) { return rstr2hex(rstr_md5(str2rstr_utf8(d))) } function b64_md5(d) { return rstr2b64(rstr_md5(str2rstr_utf8(d))) } function any_md5(d, a) { return rstr2any(rstr_md5(str2rstr_utf8(d)), a) } function hex_hmac_md5(d, a) { return rstr2hex(rstr_hmac_md5(s...
import express from "express"; import path from "path"; import fs from "fs"; import cookieParser from "cookie-parser"; import crypto from "crypto"; import cors from "cors"; import dotenv from "dotenv"; const generateUUID = (pattern = "xxxx-xxxx-xxxx-xxxx-xxxx", charset = "abcdefghijklmnopqrstuvwxyz0123456789") => patte...
import React, { useState, useEffect } from 'react'; import Web3 from 'web3'; import { Button, Col, Form, Container, Row } from "react-bootstrap"; import './App.css'; import AcademyClassList from "./contracts/AcademyClassList.json"; import AcademyClass from "./contracts/AcademyClass.json"; import AcademyStudents from "....
(function ($) { (function(){ $.blockUI.defaults.message = null $.blockUI.defaults.overlayCSS.opacity = 0.8 $.blockUI.defaults.overlayCSS.backgroundColor = '#fff' let _do_apologize = $_DO.apologize $_DO.apologize = function (o, fail) { $('.blockUI'...
/* LIBRARIES */ const { v4: uuidv4 } = require('uuid'); /* MODELS */ const GLOBAL_STATE = require('../global'); /* FUNCTIONS */ const createRoomEvent = (socket, isRoomPrivate, user) => { const roomCode = uuidv4(); const sockets = {}; sockets[socket.id] = roomCode; GLOBAL_STATE._gameRooms[roomCode] = { is...
import Shader from './shader' 'use strict' class ShaderFader extends Shader { /** * -------------------------------------------------------------------- * VERTEX SHADER 0 * Prims with varying alpha values during creation and deletion. * * When the final alpha is reached, the Shader swap...
(function() { // var originalAdsTop=0,originalAdsBottom=0,adsWidth=0;; // window.onscroll=function(){ // // if (window.pageYOffset > document.getElementById("adsbar").getBoundingClientRect().top) { // // alert("got it"); // // } // console.log("pageYOFFSET "+ window.pageYOffset); // console.log...
'use strict'; var gm = require('../game.js'); var mbl = require('../mobile_check.js'); var collision = require('../collision.js'); var mtx = require('../mtx.js'); var aud = require('../audio.js'); function boxContains(box, touch) { return box[0] <= touch.x && touch.x < box[2] && box[1] <= touch.y && touch.y < box[3...
const request = require('request'); const controllers = require('./controllers/base.controller') const dynamicModels = require('./models/geojson.model') const HTMLParser = require('node-html-parser'); const rp = require('request-promise-native') const Cookie = require('tough-cookie').Cookie const logger = require('hero...
var clm = window.clm; var pModel = window.pModel; var createRegl = require('regl') var glslify = require('glslify') var glMatrix = require('gl-matrix') var vec2 = glMatrix.vec2 var mat4 = glMatrix.mat4 var oui = require('ouioui') var quad = require('./utils/quad') var blendModes = require('./constants/blend-modes') v...
var HVC = (function(){ // HVC const TAG = "HVC-C BLE"; /* Command number */ const HVC_COM_GET_VERSION = 0x00; const HVC_COM_SET_CAMERA_ANGLE = 0x01; const HVC_COM_GET_CAMERA_ANGLE = 0x02; const HVC_COM_EXECUTE = 0x03; const HVC_COM_SET_THRESHOLD = 0x05; const HVC_COM_GET_THRESHO...
var benchMemberNum = new Array(); var startMemberNum = new Array(9); function setHanded(nameList){ var number = nameList.parentNode.value; // alert(number); // テーブル取得 var table = document.getElementById("myOrder"); // alert(nameList.parentNode.parentNode.parentNode.innerHTML); var orderNum...
// Copyright (c) Microsoft. All rights reserved. import React from 'react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import Config from 'app.config'; import { svgs, LinkedComponent, Validator, int } from 'utilities'; import { Btn, BtnToolbar, ErrorMsg, FormActions, FormControl, ...
import React, { Component } from 'react'; import { Text, View, Image, TouchableOpacity, KeyboardAvoidingView, StatusBar, Alert, TextInput, Modal ,ActivityIndicator,RefreshControl,BackHandler} from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import CheckBox from 'react-native-check-box'; ...
// // Example task // /* task_title: Task 1 task_id: 1 uplink_data_cap: 29491200 downlink_data_cap: 943718400 latency: 500 local_start: 2013-06-14 8:00:00.0 local_stop: 2013-06-14 18:00:00.0 timeout: 1800 task_num: 1 task_tag: Drive ros_package: atlas_utils ros_launch: vrc_task_1.launch bash_src: /home/ubuntu/cloudsim...
'use strict'; /** * This is the class Robot, which defines all functionalities and moves that a robot performs. */ class Robot { /* * info: id and name for the robot and its creator. * path: the path for its image * code: its logic for the functionality * battleGround: contains all battle data which helps t...
"use strict"; const EMPTY_CELL = 0 const START_CELL = 1 const WALL_CELL = 2 const TARGET_CELL = 3 const PATH_CELL = 8 const SUB_TARGET_CELL = 9 const POSSIBLE_DIRECTIONS = [{dx:-1,dy:0}, {dx:1,dy:0}, {dx:0,dy:-1}, {dx:0,dy:1}] function isSameDir(dir1,dir2) { return hasValue(dir1) && hasValue(dir2) && (dir1.dx == ...