text
stringlengths
5.97k
41.2k
// fexpress.js // Copyright (c) 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, m...
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed u...
import ipfsClient from 'ipfs-http-client'; import CryptoManager from "./CryptoManager"; import KeyManager from "./KeyManager"; import {Client, Buckets, UserAuth, PrivateKey, Identity} from "@textile/hub"; import { Context } from '@textile/context' // import { providers, utils } from 'ethers' import cryptoManager from ...
/** * Copyright (c) 2014 Virtue Studios * * 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, pub...
'use strict' var ObjectId = require("mongodb").ObjectId; require("mongodb-toolkit"); var DLModels = require('dl-models'); var map = DLModels.map; var SpinningSalesContract = DLModels.sales.SpinningSalesContract; var BuyerManager = require('../master/buyer-manager'); var UomManager = require('../master/uom-manager'); ...
// <NAME> - By <NAME> // A 3D racing game in 2 Kilobytes! // // Click = Start // Mouse = Turn // Double Click = Jump // // The road ends at 1000... // draw settings const context = c.getContext `2d`; // canvas context const drawDistance = 800; // how far ahead to draw const cameraDepth = 1; // FOV of camera cons...
var lowerComment = ""; var main = function () { $('form').submit(function (event) { var $input = $(event.target).find('input'); var comment = $input.val(); lowerComment = comment.toLowerCase(); var allwords = ""; // Note the \ at the end of the first line var words =...
/** * file with functionality * connected to generating * objects */ import { heatMapCol, particleColorFromSonar } from './utils'; import { initPackedBuffer, initParticleBuffer } from './gl/buffer'; import { createWallAssets, createBuildingParticles, } from './building-assets'; import * as SceneGraph from '...
import Shader from './shader.js' const PI_90 = Math.PI / 2; const PI_270 = Math.PI * 1.5; const PI_360 = Math.PI * 2; const PI = Math.PI; export default { inRanges, inRange, showRange, showBox, showCollision, xywh2range, xywd2range, xywhBindRange, bindWindow, createDrawOrder, debug, // 格式...
var snake; var pixel_size = 20; var foods = []; var movement = []; var score = 0; var mode = "" var gameState = 'init'; var timer_set = 60 var button_arrow = [ [300, 450], [350, 500], [300, 550], [250, 500] ] var diameter = 50 var name = "" var input var img_slow, img_med, img_fast, img_bg_init, img_bg_run_top,...
import $ from 'jquery'; 'use strict'; import { User, Player } from '../class/UserData'; import { userData, bagData } from './ScenePreload'; import { sleep, createBackpack, createShopMenu } from '../class/Util'; import { Zombie, Ugly } from '../class/Enemy'; import { Food } from '../class/Item'; /* * * */ ...
const S3Buffer=require('s3buffer'); const fs = require('fs'); const crypto=require('crypto'); const makeYellow="\x1b[33m"; const makeNormal="\x1b[0m"; const deltreeFs = require("deltree"); const sleep=require('sleep-promise'); async function checkFileExists(file) { return fs.promises.access(file, fs.const...
/* eslint-disable react/no-unused-state */ import isEmpty from 'lodash/isEmpty' import getProp from 'lodash/get' import pickProps from 'lodash/pick' import React, { Component } from 'react' import PropTypes from 'prop-types' import Geocode from 'react-geocode' import { Fab, Divider } from '@material-ui/core' import Can...
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] =...
/* This is a library file to support the tests in the test-generator.js file. It's purpose is to help compare two XML documents by returning the results from comparing their nodes (tagNames), then their attribute/value pairs (if any) and then their text contents (if any). It then proceeds to strip out any comment and w...
// <!-- // <copyright file="tableau-wdc.js" company="Oxford Economics"> // Copyright (c) 2017 Oxford Economics Ltd. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project // root for full license information. // </copyright> // --> var view = (function view() {/* <html> <head> <title...
/* Copyright (C) 2019 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ import { isSnapshot, isSnapshotModel, isSnapshotRelated, isSnapshotScope, toObject, transformQuery, } from './snapshot-utils'; import { related, initMappedInstances, isObjectContextPag...
/*######################################################################################### ROOM -- This file is where any functionality that occurs on the room level should be defined ###########################################################################################*/ /////TEST ENTITY -- added t...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * Copyright (c) 2014-2016 Doubango Telecom. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ var RTCPeerConnection = null; ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/// <reference types="./sloth" /> // @ts-check /** * @typedef {{ name: string, incoming: Record<string, Vertex>, incomingNames: string[], value: string }} Vertex * @typedef {{ fragment: DocumentFragment, element?: string; style?: HTMLStyleElement, script?: HTMLScriptElement, attributes?: NamedNodeMap }} ElementTempl...
var dirConvert = { //Normal letters '\u0023' : '\u002a', '\u0023' : '\u002a', '\u0024' : '\u0024', '\u0025' : '\uAA68', '\u0060' : '\u109e', '\u004e' : '\uaa70', '\u0026' : '\u101b', '\u003F' : '\u104A', '\u0048' : '\u1036', '\u0040' : '\u108A', '\u006a' : '\u1088', '\u003b' : '\u1038', '\u...
import React, { PureComponent, Fragment } from 'react'; import { Col, Row, Form, Input, Switch, message, Select, Button, Card, Table, Tag, Divider, Popconfirm, Upload, Icon, Modal, Spin, Steps } from 'antd'; import { connect } from 'dva'; import { routerRedux } from 'dva/router';...
#!/usr/bin/env node var _ = require("underscore"); var Promise = require("bluebird"); var fs = Promise.promisifyAll(require("fs")); var conf = require("./conf.json"); var regions = require("us-regions"); var nicheScores = require(__dirname + "/data/niche.json"); var linkedInData = require(__dirname + "/data/linkedin.js...
/** * Created by <NAME> on 2016/2/17. */ var navBtn = getElement("#nav-btn"), headers = getElement(".header"), switchBtn = getElement(".header-switch"), wrap = getElement("#wrap"), nav = getElement("#nav"), slideToSec = getElement("#slideToSection a"), sections = getElement("section")...
import setShowElement from "../util/setShowElement"; import scrollParentToElement from "../util/scrollParentToElement"; import addClass from "../util/addClass"; import scrollTo from "../util/scrollTo"; import exitIntro from "./exitIntro"; import forEach from "../util/forEach"; import setAnchorAsButton from "../util/set...
// pause let pkt_paused = false; $('#pkt-pause-tracking').click(function() { if (pkt_paused) { pikontroll("resume"); pkt_paused = false; $('#pkt-pause-tracking').text("Pause tracking"); } else { pikontroll("pause"); pkt_paused = true; $('#pkt-pause-tracking').text...
'use strict'; EXTERNAL.scope.states = { initState: { /*select:{ current: 1, page_jumped: false, variants: [ [1, 'один'], [2, 'два'], [3, 'три'] ] }, bn:{ toggled: false, }*/ /*cur_chapter:{ id: 1 },*/ show...
Components.utils.import( "resource://kancolletimermodules/httpobserve.jsm" ); const TYPE_ITEM = 1; const TYPE_FOLDER = 2; var gEquipmentTreeData = [ // new EquipmentListItem( "all", TYPE_FOLDER, "全て", "root", false, true ) ]; function EquipmentListItem( aId, aType, aName, aParent, aOpened, aLocked, aSp...
/* eslint-disable no-console */ import _ from 'lodash'; import * as StellarSdk from 'stellar-sdk'; import directory from 'stellarterm-directory'; import TransportWebUSB from '@ledgerhq/hw-transport-webusb'; import AppStellar from '@ledgerhq/hw-app-str'; import BigNumber from 'bignumber.js'; import TrezorConnect from 't...
"use strict"; const events = require("events") , ul = require("ul") , clp = require("clp") , iterateObject = require("iterate-object") , isUndefined = require("is-undefined") , deffy = require("deffy") , arrsToObj = require("arrs-to-obj") , errors = require("./errors") , Err = require("...
/* eslint-disable camelcase */ import logger from './helpers/logger'; import { get } from 'object-path'; import { runCommand } from './helpers/command-runner'; import { upload, getS3Object } from './helpers/helper-content-s3'; const fs = require('fs'); const { execSync } = require('child_process'); const https = requ...
'use strict'; import Chart from 'chart.js'; import moment from 'moment'; import helpers from '../core/core.helpers'; var scaleService = Chart.scaleService; var TimeScale = scaleService.getScaleConstructor('time'); scaleService.getScaleConstructor = function(type) { // For backwards compatibility if (type === 'time...
import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { v4 as uuidv4 } from "uuid"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import { isEmpty, startCase } from "lodash"; import { Col, Row, Button, Card, Result, Table, Input, Alert } from "antd"; i...
/* eslint-disable no-nested-ternary */ /* eslint-disable react/jsx-wrap-multilines */ import React, { PureComponent } from 'react'; import { Button, Drawer, Divider } from 'hzero-ui'; import { isEmpty, pullAllBy, uniqBy, filter, isUndefined } from 'lodash'; import { getCurrentOrganizationId, getResponse } from 'utils/u...
/* DATERANGEPICKER */ function init_daterangepicker() { if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } console.log('init_daterangepicker'); var cb = function(start, end, label) { console.log(start.toISOString(), end.toISOString(), label); $('#reportrange span').html(start.fo...
const User = require('../models/user'); const Feed = require('../models/contestaFeed'); const Solicitud = require('../models/solicitud'); const Historial = require('../models/historico'); const res = require('express/lib/response'); exports.solicitudesFeedback = async (request, response, next) => { const pd = await...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import MediaHandler from '../MediaHandler'; import customControls from '../ControlsHandler'; import * as utils from '../VideoUtils'; import Pusher from 'pusher-js'; import Peer from 'simple-peer'; import queryString from 'query-string'; const ...
'use strict'; /** * Month-Picker * * Properties: * @value: Default selected option value * @options: Options of the picker * @onChange: callback on changing selected option * @onShow: callback on calling show method * @onDismiss: callback on calling dismiss method * @onClickAway: callback on clicking area outs...
/* * @moleculer/channels * Copyright (c) 2021 MoleculerJS (https://github.com/moleculerjs/channels) * MIT Licensed */ "use strict"; const _ = require("lodash"); const BaseAdapter = require("./base"); const { ServiceSchemaError } = require("moleculer").Errors; const { HEADER_ORIGINAL_CHANNEL, HEADER_ORIGINAL_GROUP...
"use strict"; 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 (Object.protot...
//This file will be re-written later - <NAME>. //global url variable var urlGlobal = ''; // namescape-routes object var pagesStruct = ''; $.ajax({ url: '/config/metaData/pages.json', method: 'GET', dataType: 'json', async: false, success: function( data ){ pagesStruct = data; } }) c...
const { expectThrow } = require('./utils'); const KDOTicket = artifacts.require('KDOTicket'); let HST; let contractOwner; let businessOwner; const tickets = { bronze: { amount: 99, value: 0, }, silver: { amount: 149, value: 0, }, gold: { amount: 349, value: 0, }, }; const baseTic...
// GPG4Browsers - An OpenPGP implementation in javascript // Copyright (C) 2011 Recurity Labs GmbH // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the Lice...
window.AntsAdmin = window.AntsAdmin || {}; Array.prototype.destroy = function (value) { for (i = this.length - 1; i >= 0; i--) { if (this[i] == value) { this.splice(i, 1); } } return this; } window.AntsAdmin.selectBoxDefaults = { color : '#41b7f1' , secondaryColor : '#aaa' , jack...
var path = require('path'); var fs = require('fs'); var temp = require('temp'); var url = require('url'); var async = require("async"); var util = require("./util/util"); var http = require('http'); var https = require('https'); var cluster = require("cluster"); var logFactory = require("./util/logger"); // syste...
class ObjMeta { constructor() { this.name = ""; } } class test_3d { constructor() { } } /* static JavaSript main routine at the end of the JS file */ function __js_main() { const canvas = document.getElementById("renderCanvas"); const engine = new BABYLON.Engine(canvas, true, {stencil: true}); const...
function escapeHtml(unsafe) { return unsafe .replace(/&/g, "&amp;") .replace(/</g, "&lt;") .replace(/>/g, "&gt;") .replace(/"/g, "&quot;") .replace(/'/g, "&#039;"); } var editor = null; var schemaEditor = null; var schemaSelectList = ''; var currentTableMetadata; var c...
/* © 2018 NauStud.io * @author <NAME> */ import SimpleSchema from 'simpl-schema'; import { URL } from 'url'; import { vnPayDateFormat, createMd5Hash, toUpperCase } from '../utils'; /** * VNPay payment gateway helper * <br> * _Hàm hỗ trợ thanh toán qua VNPay_ * * @example * import { VNPay } from 'vn-payments';...
/** * Menu.js * Menu component * @author <NAME> aka JK, https://github.com/the-AjK */ // @flow import React from "react"; import { observer, inject } from "mobx-react"; import { extendObservable, action } from "mobx"; import { withStyles } from "@material-ui/core/styles"; import TextField from "@material-ui/core/Te...
const utils = require('./utils.js'); class Interpreter { constructor(chordsNumber, mainSpacing) { this.CHORD_FRET_SEPARATOR = '-'; this.TAB_FILLER = '-'; this.SEC_SYMBOL = '|'; this.DEFAULT_CHORDS_NUMBER = 6; this.DEFAULT_SPACING = 2; this.DEFAULT_SEC_SPACE = 4; this.mainSpacing = mainS...
'use strict'; /* eslint-disable no-console */ const BbPromise = require('bluebird'); const path = require('path'); const uuid = require('uuid'); const _ = require('lodash'); const fs = require('fs'); const fsExtra = require('../../utils/fs/fse'); const crypto = require('crypto'); const platform = require('@serverless...
var config = require('./config'); const { calculateQueue } = require('./util'); var amqp = require('./amqp'); var util = require('util'); var node = require('./nodeManager').Manager; var redisManager = require('./redisManager').RedisManager; var logger = require("@dojot/dojot-module-logger").logger; var auth = require(...
import {useState} from "react"; import isequal from 'lodash.isequal'; import _ from 'lodash'; import { doSanityCheck, filterBibleList, findBookId, findItemDefault, getBookChapterVerse, getBibleList, getChapterList, getNextItem, getPrevItem, getVerseList, USE_FIRST, USE_LAST, } from "../../common...
var contextName = getContextName(); //return page context such as ACS var week = new Array('یك شنبه', 'دوشنبه', 'سه شنبه', 'چهار شنبه', 'پنج شنبه', 'جمعه', 'شنبه'); function getContextName() { var i = location.href.indexOf('/', 8); var j = location.href.indexOf('/', i + 1); return location.href.subst...
$(document).ready(function () { window.step = parseInt($(".next_step").attr('step')); //记录当前步数 //window.step = 4 if (typeof(data.step5) !== "undefined") { var has_yunying_init = 0; $.each(data.step5, function (index, v) { if ($.isEmptyObject(v)) { return true; } if (v.id * 1 === 28 && has_yunying_...
// validBench(['cp3d','cp4d','cp5d','cp6d','if_ovc', 'cp1q', 'cp3q', 'cp4q'], ['AYES','AYES','AYES','AYES','AYES','AYES','AYES','AYES'], 'cp1b'); // validBench(['if_ovc', 'cp1q', 'cp3q', 'cp4q'], ['AYES','AYES','AYES','AYES'], 'cp1b'); validBench(['cp1q', 'cp3q', 'cp4q'], ['AYES','AYES','AYES'], 'cp1b'); // vali...
/*-----------------------------------------------*\ GLOBAL VARIABLES \*-----------------------------------------------*/ // URLS var url_grid = window.location.origin + "/api/inventario/" var url_excel = window.location.origin + "/api/inventarioexcel/" var url_nuevo = window.location.origin + "/entradas/co...
// TODO remove dead players from display let colorMap = { brazil: { shirt: "yellow", stripe: "#060", label: "black" }, argentina: { shirt: "#75AADB", stripe: "white", label: "white" } } let Player = class { constructor(model, config) { this.config = config; this.clear = true; // do I have enoug...
/* following right below is the Espruino code */ /* Original code ( USBKeyboard.js ) Copyright (c) 2015 <NAME>, Pur3 Ltd. See the file LICENSE for copying permission. Below code ( modified* version of USBKeyboard.js ) Copyright (c) 2018 <NAME>, SeedsDesign. MIT license. ( or whatever is the best in regards...
/* Should be const instead of var but Safari does not allow it */ var DEFAULT_SIZE = 50; var GRID_SIZE = 50; var DEFAULT_FILL_COLOR = "#ffffff"; var DEFAULT_BORDER_COLOR = "#000000"; var DEFAULT_ON_COLOR = "#3cacf2"; var IO_PORT_LENGTH = 60; var IO_PORT_RADIUS = 7; var IO_PORT_BORDER_WIDTH = 1; var IO_PORT_LINE_WI...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
document.addEventListener('DOMContentLoaded', function(event) { getTestData(); setInterval(checkIfStreamSelected, 5000); initialiseUserInfoModal(); }); // TODO OVERVIEW Größe verändern bei kleinerem Fenster/Skalierung von Fenster // TODO Werte umrechnen modal // TODO Format im stream overview anzeigen ...
 // Write by Wuling // 最后更新: 2014-07-17 var GmapHelp = function () { var InfoArr = [], legend, setInfo, Ploygons = [], colorLg = []; var TrHtml = [], Centers = []; var Colors = ["#1e530d", "#2f800d", "#73b114", "#b7d31b", "#ffff00", "#ff8800", "#ff0000", "#cc0000"]; //内部颜色数组 var addr, latitu...
var matrixId=null; var imagePath; var emptyIndicator = '\u2610'+' '; var selectIndicator = '\u2611'+' ';//'\u2022 '; var characterOrders = Array( ['alphabet','Alphabet'], ['separationCoefficient','Separation coefficient'], ['characterType','Character type'], ['numberOfStates','Number of states'], ['entryOrde...
const { updateConfigurableSideEffects, createSelectOfMatchingChoicesOption, selectorGlobFrom, restrictorPathFrom, simpleRestrictorFrom, } = require("valma"); module.exports = { draftSelectToolsetCommand, draftSelectToolCommand, draftConfigureToolsetCommand, createConfigureToolCommand, draftStatusToolsetC...
import cloneDeep from 'lodash/cloneDeep'; import isArray from 'lodash/isArray'; import isNumber from 'lodash/isNumber'; import isPlainObject from 'lodash/isPlainObject'; /* eslint-disable no-use-before-define, no-param-reassign */ /* @ngInject */ function taxData($http, $q, $filter, TAX_API, TAX_YEAR, taxService) { ...
/* * CSVFile.js - plugin to extract resources from a CSV source code file * * Copyright © 2020 JEDLSoft * * 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/...
const hash = require('object-hash'); const colors = require('colors/safe'); const { exit, config } = require('process'); const Diff = require('diff'); const util = require('util'); const puppeteer = require("puppeteer-core"); const injectContentScript = require("./injectscript"); const loadCase = require("./loadcase")...
import { CAUGHT_BY, COMPLETE, IN_PROGRESS, NOT_OUT_ON_NON_STRIKE, NOT_OUT_ON_STRIKE, NO_BALL, RUN_OUT, STUMPED, WICKET, WIDE, YET_TO_BAT, LEG_BYES, BYES, PENALTY_RUNS, NO_BALL_OFF_BAT, BOWLED, LBW, HIT_WICKET, OUT, YET_TO_START } from "../c...
// Resources: // https://dev.w3.org/html5/pf-summary/obsolete.html // https://www.powermapper.com/products/sortsite/rules/w3cdepr/ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features // https://developer.apple.com/documentation/webkit/deprecated_symbols/document_object_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractionLayer2 = void 0; const d3 = require("d3"); const hyperbolic_math_1 = require("../../models/transformation/hyperbolic-math"); const hyperbolic_math_2 = require("../../models/transformation/hyperbolic-math"); const hyperbolic_...
var assert = require ('assert'); const {Box3D} = require("../../source/geometry/box3d"); const {Octree} = require("../../source/geometry/octree"); const {TweenCoord3D} = require("../../source/geometry/tween"); const {ParabolicTweenFunction} = require("../../source/geometry/tween"); const {BezierTweenFunction} = require...
class MedianController { constructor() { 'ngInject'; // } } export function MedianDirective($window, $timeout) { return { controller: MedianController, scope: { data: '=', options: '=' }, require: 'ngModel', link: function(sc...
// Gulpfile for Gulp v.4 /* * 1. Requires * 2. Config * 3. Tasks * 4. Calls * 5. Utilites */ // 1. Requires const gulp = require('gulp'); const uglify = require('gulp-uglify'); // Подключаем Uglify const sass = require('gulp-sass'); // Подключаем Sass пакет // const browserSync = require('...
import React from 'react'; import {Dimensions, Platform, View} from 'react-native'; import PropTypes from "prop-types"; import CJDateUtil from "./CJDateUtil"; import CJPickerWheelView from '../PickerView/CJPickerWheelView'; import {CJDatePickerUtil, CJDatePickShowType} from './CJDatePickerUtil'; import CJBottomToolb...
var json_file = "web_summary.json"; var alldata = {}; var detailsVisible = false; google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(function() {console.log("google loaded!");}); function getEscapedTaskID(dsname, tag) { return dsname.replace(/\//g,"_")+"_"+tag.replace(/\ /g...
var modalArray = new Array(); let codeStmt = "لطفا کد مورد نظر را انتخاب کنید", nameStmt = "لطفا نام مورد نظر را انتخاب کنید"; let messageTop = '<div name="top" class="row">\n' + ' <div class="col-sm-4">\n' + '\n' + ' </div>\n' + ' <div class="col-sm-4">\n' + ' <br/>\n' + ' ...
function Vertex(x, y) { this.x = x; this.y = y; this.isEqual = function(v) { return (this.x == v.x && this.y == v.y); } this.toString = function() { return this.x.toString() + "," + this.y.toString(); } } function Edge(v1, v2) { this.v1 = v1; this.v2 = v2; this.isEqual = function(e) { return (this.v1...
"use strict"; // base Disney World park objects 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 ("value" in descriptor) descriptor....
/* global PATH_BITMAP, PATH_MEDIA, PATH_PROGRAM, PATH_BOARD, PATH_CHARACTER, PATH_ITEM, jailed, rpgcode, PATH_TILESET */ var rpgtoolkit = new RPGToolkit(); function RPGToolkit() { this.dt = 0; // Craftyjs time step since last frame; this.screen = {}; // Game project file. this.project = null; //...
/** * UTILS */ var openFile = function( filenameURL, callback ) { var xhr = new XMLHttpRequest(); xhr.open( 'GET', filenameURL ); xhr.responseType = 'arraybuffer'; xhr.onload = function( e ) { var data = this.response; if( !data ) { console.error( 'fail to open file', filenameURL ); callback( null ); } ...
/* * LiskHQ/lisk-service * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, ...
import React, { Component } from 'react'; import { SafeAreaView, View, Image, ScrollView, SectionList, RefreshControl, Text, TouchableOpacity, StyleSheet } from 'react-native'; import { ScreenName, keyAdress, subTotalPrice } from '../../helpers' import Header from '../../components/c...
/** * Common routines. */ const file_system = require('fs'); const path_system = require('path'); const http_status_codes = require('http-status-codes'); /** * This function returns true if the browser user agent property indicates the user is running * the mobile Safari browser. * * @return {Boolean} */ func...
import React, { useEffect, useState } from 'react' import photo1 from 'src/assets/images/Software-development.jpg' import { getFormations, getformationbycategorie } from 'src/services/FormationService' import { Link, useLocation, useNavigate } from 'react-router-dom' import { uploadfile, getfile } from 'src/services/fi...
// sweet alerts config swal.setDefaults({ customClass: 'star-wars-alert', }); var OpeningKey = null; var defaultOpening = null; // to check if user not edited the default opening // make audio load on mobile devices var audio = document.getElementsByTagName('audio')[0]; var audioIsLoaded = false; var loadData = ...
'use strict'; const { // eslint-disable-next-line no-unused-vars Constants: { ApplicationCommandOptionTypes: Types }, CommandInteraction, TextChannel, MessageEmbed, Permissions, } = require('discord.js'); const { games, embedDefaults, constructItemEmbeds, constructTypeEmbeds, checkAndMergeEmbeds, ...
require('angular'); require('ng-notie'); const swap = function (theArray, indexA, indexB) { var temp = theArray[indexA]; theArray[indexA] = theArray[indexB]; theArray[indexB] = temp; } const showModal = function (html) { let modal = window.open('', 'modal'); modal.document.write('<head><link rel="s...
const fs = require('fs'); // const cheerio = require('cheerio'); //通过类似jquery的形式解释html源码 const { pipeline } = require('stream'); const { isMainThread, parentPort, workerData, threadId, MessageChannel, MessagePort, Worker } = require('worker_threads'); const { Cache } = require("./cache"); cons...
var ICR = ICR || {}; ICR.Calendar = ICR.Calendar || {}; ICR.Calendar.Fields = ICR.Calendar.Fields || {}; ICR.Calendar.Fields.StartDateFieldName = "Start Time"; ICR.Calendar.Fields.EndDateFieldName = "End Time"; ICR.Calendar.Fields.EquipmentFieldName = ""; ICR.Calendar.Overlaps = []; ICR.Calendar.OverlappingTr =...
/* * hook.js: Core hook object responsible for managing dnode-based IPC. * * (C) 2011 Nodejitsu Inc. * MIT LICENCE * */ var async = require('async'), dnode = require('dnode'), util = require('util'), colors = require('colors'), nconf = require('nconf'), path = require('path'), Eve...
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); } //去除字符串头尾空格或指定字符 String.prototype.Trim = function (c) { if (c == null || c == "") { var str = this.replace(/^\s*/, ''); var rg = /\s/; var i = str.length; while (rg.test(str.charAt(--i))); ...
var primitives = require('../lib/primitives'); var expect = require('expect.js'); var helper = require('./helper'); var crypto = require('crypto'); var stats = require('simple-statistics'); describe('primitive crypto functions', function() { describe('nonce()', function() { it('should return 16 random bytes', ...
var PagesApp = (function () { var App = { stores : {}, views : {} // u: { path: function(splitText){return window.location.pathname.split(splitText);} } }; /*** ioSliderPage Page Functionality */ var ioSliderPage = Backbone.View.extend({ el : 'body', currentPageId : function () { return ($.mobile.activ...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Art Compiler LLC * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
//aliais -> wikiAutoIndex const { response } = require('express'); const { WriteStream } = require('fs'); const puppeteer = require('puppeteer'); const fs = require('fs'); const { max } = require('moment'); const { SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG } = require('constants'); const { measureMemory } = require('vm');...
const IntersectionOptimizer = function() { const optimizer = {}; let orders; /** * Calculate an order in which a minimum of intersection exists between links on the same level. * @param {object} adjacency the adjacency matrix { a: {x: {}, y: {}}, b: {z: {}}, ... } * @return {object} dicti...
 // 数据 let date = new Date(); var preDate = new Date(date.getTime() - 24*60*60*1000); var nextDate = new Date(date.getTime() + 24*60*60*1000); let time = { year1 : function(){ return preDate.getFullYear()+'-'+(preDate.getMonth()+1)+'-'+ preDate.getDate() }, year2 : functio...
let lya = require("../../../src/txfm.js"); let lyaConfig = { SAVE_RESULTS: require("path").join(__dirname, "dynamic.json"), analysis: lya.preset.RWX, }; require = lya.configRequire(require, lyaConfig); const fs = require('fs'); const moment = require('moment'); moment.suppressDeprecationWarnings = true; moment.pa...