text
stringlengths
5.97k
41.2k
import buildfire from "buildfire"; import React from "react"; import debounce from "./lib/debounce"; import uuidv4 from "./lib/uuidv4"; import Deeplink from "../../widget/js/shared/Deeplink"; import LocationsActionBar from "./components/LocationsActionBar"; import LocationList from "./components/LocationList"; import C...
var request = require("request"); var cheerio = require("cheerio"); // this is my r6 request note, not have affect var url = `https://r6.tracker.network/profile/pc/waifu_-.`; // https://r6.tracker.network/profile/<pc/xbox/psn>/<PLAYER_NAME> let tracker = [] let newTracker = [] // trn-defstat__value p...
import React, { Component } from 'react'; import ReactDOM from 'react-dom' const defaultR = 3; // default point radius const permissibleQstampGap = 4; // only connect dynamics points not further apart than this export default class DynamicsVis extends Component { constructor(props) { super(props); this.sta...
let config = window.$locale || {translations: {}}; /** * Copyright (c) <NAME> <<EMAIL>> (https://github.com/willdurand/BazingaJsTranslationBundle) */ const Translator = (function (document, undefined) { "use strict"; var _messages = {}, _domains = [], _sPluralRegex = new RegExp(/^...
import AuroraUsb from './AuroraUsb'; import AuroraBluetooth from './AuroraBluetooth'; import DriveList from 'drivelist'; import ejectMedia from 'eject-media'; import AuroraConstants from './AuroraConstants'; import EventEmitter from 'events'; import Stream from 'stream'; import {sleep, promisify, versionToString, strin...
import React from "react"; import famous from "famous"; import _ from "lodash"; import logger from "/client/imports/utils/logger"; const FamousEngine = famous.core.Engine; const { Surface } = famous.core; const { ContainerSurface } = famous.surfaces; const { Modifier } = famous.core; const { RenderController } = famo...
const EventEmitter = require('events').EventEmitter const Schedule = require('./db/Schedule.js') const FailRecord = require('./db/FailRecord.js') const Feed = require('./db/Feed.js') const Guild = require('./Guild.js') const Supporter = require('./db/Supporter.js') const ScheduleStats = require('./db/ScheduleStats.js')...
const path = require('path'); const Max = require('max-api'); const fs = require('fs') const glob = require('glob'); const tf = require('@tensorflow/tfjs-node'); const { Midi } = require('@tonejs/midi'); // https://github.com/Tonejs/Midi // Constants const MIDI_DRUM_MAP = require('./src/constants.js').MIDI_DRUM_MAP; ...
/** * @createdOn 13/05/2018, 1:35:12 PM * @author <NAME> * @version 1.0.201807160144 */ var remoteURL = 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/'; // Google Maps related variables. var defaultMapZoom = 2; var defaultMapCenter = { lat: -28.024, lng: 140.887 }; var currentInfoWindow = null; var...
"use strict"; /** * Copyright 2018 Novage 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
import React, { Component } from 'react' import selectn from 'selectn' import { connect } from 'react-redux' import StringHelpers from 'common/StringHelpers' import NavigationHelpers from 'common/NavigationHelpers' import ProviderHelpers from 'common/ProviderHelpers' import AppBar from '@material-ui/core/AppBar' impor...
window.MODE = -1; window.onload = function(){ // Get Mode window.MODE = parseInt( _getQueryVariable("mode") ); // Init labels $("#y_axis").innerHTML = _getLabel("ebbinghaus_y_axis"); $("#x_axis").innerHTML = _getLabel("ebbinghaus_x_axis"); // Initialize all the things! switch(MODE){ // Just decay case 0: ...
/** cfg for inputs - name - view - model - getValue - getInterval - massage - isValid **/ /** cfg for graph x: { scale : some scaling function padding: amount to add padding // TODO format: value formatting function }, normalizeX: boolean if make all the x values align between views y: { scale : som...
$(function () { var categoryText; var subCategoryText; interrupted = false; $("#nav_wrapper nav ul li ul").hide(); //slider nav $("#nav_wrapper > nav > ul > li").click(function(){ if(!$(this).find('ul').is(":visible")) { $("#nav_wrapper ul ul").slideUp("slow"); $(this).find('ul').slideDown("slow"); ...
import MyBuilderCaption from './builderCaption.js'; import MyBuilderQuery from './builderQuery.js'; import {getFlexBasis} from '../shared/form.js'; import {getRandomInt} from '../shared/generic.js'; import { getIndexAttributeId, getIndexAttributeIdsByJoins, isAttributeFiles, isAttributeInteger, isAttributeRe...
import {mountain_09003800, } from "../../../../../textures/mountain.js" import {mountain_09004000, } from "../../../../../textures/mountain.js" import * as Gbi from "../../../../../include/gbi" const ttm_seg7_lights_0700D250 = Gbi.gdSPDefLights1( 0x7f, 0x7f, 0x7f, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ) const t...
var API = {}; var logger = require('./logger').logger; var config = require('./../ackuaria_config'); var log = logger.getLogger("Ackuaria"); var db = require('./mdb/dataBase').db; var eventsRegistry = require('./mdb/eventsRegistry'); var statsRegistry = require('./mdb/statsRegistry'); var sessionsRegistry = require('....
import angular from '../lib/angular'; import '../lib/Math.round10'; Number.isNaN = require('is-nan'); /* eslint-disable no-use-before-define, no-param-reassign */ /* @ngInject */ function graph(d3, screenService, settings) { const service = {}; const { graphDefaults, xAxisScales, axisFormats } = settings; func...
'use strict'; const fs = require("fs"); const crypto = require("crypto"); const koaStatic = require("koa-static"); const mount = require("koa-mount"); const path = require('path'); const nunjucks = require('nunjucks'); const formidable = require("formidable"); const route = require('./route'); const tool = require('./...
/* jscurry.js: a JavaScript module for functional programming; requires ECMAScript 3. These definitions are based on Haskell's, but allow side effects, and do not use automatic lazy evaluation, compile-time type checking, or automatic Currying. We believe that "member functions" are the wrong technique in gener...
// $Id: common.js,v 1.12.2.25 2008/05/29 12:29:39 max Exp $ // // Enviroment identificator // var localIsDOM = document.getElementById?true:false; var localIsJava = navigator.javaEnabled(); var localIsStrict = document.compatMode=='CSS1Compat'; var localPlatform = navigator.platform; var localVersion = "0"; var localB...
'use strict' const Jira = require('./Jira') const { ISSUE_LINK_TYPE_NAME, VERIFY_STATUS, REASON } = require('./constants') const RFDWOKFLOW = require('./JiraRfdWorkflowV1.2.2') const RFCWORKFLOW = require('./JiraRfcWorkflowV2.0.0') module.exports = class { constructor(settings) { this.settings = settings ...
//Mini Jquery replacement //get more functionality from http://youmightnotneedjquery.com/ //Siblings, Prev, Prepend, Position Relative To Viewport, Position, Parent, Outer Width With Margin, Outer Width, Outer Height With Margin, Outer Height, Offset Parent, Offset, Next, Matches Selector, matches, Find Children, Filte...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
var dealplyMainImageSelector; var blackTtl = false; var wlcmBroughtAB = -1; var dealplyNumOfProducts; var removeBr; var langTwoChars; var dpGetDealText; var dealplyToastWidth; var hasDiscount = function(deals) { for ( var i = 0; i < deals.length; i++) { if (deals[i].discountPercentage > 0) { return true; } } ...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _marked = regeneratorRuntime.mark(_fixAndC...
/* global commandOptions */ 'use strict'; const getNGCLIManifest = require('../../lib/CLUtils').getNGCLIManifest; const getNGCLIPath = require('../../lib/CLUtils').getNGCLIPath; const ngCLIPKG = getNGCLIManifest(); const path = require('path'); const ngCLIPKGName = ngCLIPKG.name; const ngCLIPath = getNGCLIPath(ngCLIP...
/** * CountlyBulk odule providing object to manage the internal queue and send bulk requests to Countly server. * @name CountlyBulk * @module lib/countly-bulk * @example * var CountlyBulk = require('countly-sdk-nodejs').Bulk; * * var server = new CountlyBulk({ * app_key: "{YOUR-APP-KEY}", * url: "https://A...
'use strict' const Config = require('./config') const fetcher = require('./fetcher') const util = require('./util') const uri = require('./uri') const storage = require('./storage') // const { OIDCWebClient } = require('@trust/oidc-web') module.exports = { afterSignIn, enableDisableButton, getAgentImage, get...
"use strict"; // server sends numbers as strings on requests // assume moment.js is loaded // assume socket.io is loaded // constants const USER_PREFIX = "user-"; const CHAT_PREFIX = "chat-"; const CURRENT_SELECTED = "selected-current-chat"; const SELECTED_ELEMENT = "selected-element"; const USER_WINDOW_CLASS = "....
/************* Custom setting names. Used to hook into RH settings mechanism. ************/ var lastVisitedTopic = "cust_last_visited_topic"; var sidebarCSHRunCheck = "cust_sidebar_csh_run_check"; /************* Global variables ************/ var showSidebarInCSHMode = false; var desktopSidebar = null; /******...
import React, { Component } from 'react'; import { is } from 'immutable'; import { View, StyleSheet, Image, TouchableOpacity, Dimensions, AppState, Alert, Platform, NativeModules, NativeEventEmitter, Text, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import...
import React, { useState, useRef } from 'react' import { ThemeProvider, theme, BaseStyles, Box, Heading, SideNav, Text, CounterLabel, Label, Link, Button, ButtonPrimary, TextInput, Flash, PointerBox, FormGroup, DropdownMenu, DropdownButton } from '@primer/components' /* import { Chec...
/* Author: <NAME> * Date: 3 Mar 2016 * Notes: * */ var screenname = 'PM'; function debugMode(){ //debug mode only $("#newWorkOrder").click(); //$("#aUnits").click(); $("#frm_workorders #unitId").val(5); $("#frm_workorders #unitRefNo").val("GIS-PM-0005"); $("#frm_wo...
/*! **| PonkBot add **@ */ 'use strict'; const ProviderList = require('./add_provider.js') const fs = require('fs') const path = require('path') const crypto = require('crypto') const validUrl = require('valid-url') const date = require('date-and-time') const forwarded = require('forwarded') const EventEmitter = r...
/** * Performs the REST API calls the ArrowDB Objects. * * @module rest * * @copyright * Copyright (c) 2012-2014 by Appcelerator, Inc. All Rights Reserved. * * @license * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ const Arr...
/* (c) Copyright 2018 <NAME> */ import tip from '@grr/typical'; import harness from './harness.js'; import { isArray } from 'util'; const { assign, getOwnPropertySymbols, getPrototypeOf, is } = Object; const { iterator, toStringTag } = Symbol; const { MAX_SAFE_INTEGER } = Number; export default harness(__filename, t...
import React from 'react'; import { connect } from 'react-redux'; import Head from 'next/head'; import Link from 'next/link'; import Router, { withRouter } from 'next/router'; import classnames from 'classnames'; import BottomScrollListener from 'react-bottom-scroll-listener'; import Img from 'react-image'; import Lay...
/* GLOW COOKIES CREATED BY <NAME> WWW.GLOWMEDIA.ES 2020 - v 3.0.1 */ class GlowCookies { constructor() { // Cookies banner this.banner = undefined // Config this.config = undefined this.tracking = undefined // DOM ELEMENTS this.PreBanner = und...
const assert = require("node-opcua-assert").assert; const async = require("async"); const EventEmitter = require("events").EventEmitter; const util = require("util"); const _ = require("underscore"); const discovery_service = require("node-opcua-service-discovery"); const RegisterServerRequest = discovery_service.Regi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Container = void 0; var _react = _interopRequireDefault(require("react")); var _reactNative = require("react-native"); var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated")); var _Context = requ...
var currentDate = new Date(); var dd = currentDate.getDate(); var mm = currentDate.getMonth()+1; var yy = currentDate.getFullYear(); if(dd<10) {dd = '0'+dd} if(mm<10) {mm = '0'+mm} currentDate = (mm)+ "/"+ dd + "/" + yy; chrome.runtime.onInstalled.addListener(function(details){ var defaultSettings = { censorChar...
var first = "FIRST! "; //var canvas = Raphael(document.getElementById("canvas"), 700, 700) var canvas = "" Raphael.easing_formulas["wiggle"] = function(n) { return Math.random() * 5 }; //TODO: Figure out timing //TODO: Figure out positioning //TODO: Animations! //TODO: Scoring! //TODO: TODO function VilleType(conf...
/*global, require, Worker, URL, webkitURL, Blob, BlobBuilder, process, require,self,global,remoteWorker,postMessage,XMLHttpRequest,__FUNCTIONDECLARATIONS__,initBrowserGlobals,loadDependenciesBrowser,initOnMessageHandler,initWorkerInterface,initWorkerMessenger,loadDependenciesNodejs,importScripts*/ /* * A platform-in...
require('events').EventEmitter.defaultMaxListeners = 30; const discord = require('discord.js'); const client = new discord.Client(); const fs = require('fs'); const yt = require('ytdl-core'); const http = require('http'); const url = require('url'); const config = require('./config.json'); const ssrData = require('./...
/** * External dependencies */ import classNames from 'classnames'; import emailValidator from 'email-validator'; import { __, _n, sprintf } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; import { compose, withInstanceId } from '@wordpress/compose'; import { dispatch, withSelect } from '@word...
"use strict"; var __extends = (this && this.__extends) || (function () { var 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] = b[p]; }; return function (d, b)...
const extrapolate = require('./utilities.js').extrapolate; const zeros = require('./utilities.js').zeros; const exists = require('./utilities.js').exists; const swof = require('./pvt.js').swof; const pvt = require('./pvt.js').pvt; const gauss = require('./gaussian-elimination-master/gauss.js'); //some constants const ...
import {loadModel} from '../../utils/loader.js' import {Character} from '../baseObject.js' import {StateMachine, State} from '../../utils/states.js' import * as IslandMath from '../../utils/math.js' import * as Paths from '../../utils/path.js' var CHICKEN_MODEL; var ANIMATION_SCALE = 1.2; var WALK_SPEED = 0.6; var RU...
import { renderShadedPolyList } from "../lib/svg-3d.js"; import { fireEvent } from "../lib/utilities.js"; import { parseColor } from "../lib/color.js"; import { getProjectionMatrix, getRotationXMatrix, getRotationYMatrix, getRotationZMatrix, multiplyMatrixVector, addVector, subtractVector, crossVector, normalizeVector,...
function addWhouseDiv(whouseObj){ var btnName="启用"; if(whouseObj.state==1){ btnName="停用"; } var whouseObjStr='<li id="whouseObj_'+whouseObj.whouseId+'" ><div onclick="showWhouseDetail('+whouseObj.whouseId+')"><a href="javascript:void(0);">'+whouseObj.whouseName+'</a></div><button class="blue_btn" id="toggleWh...
function is_big_number ( a ) { return ( a instanceof BigNumber ); } /////////////////////////////////////////////////////////////////////////////// var _bigint_heap = new Uint32Array(0x100000), _bigint_asm = bigint_asm( global, null, _bigint_heap.buffer ); ////////////////////////////////////////////////////...
import chai from 'chai'; import opCode from '../../lib/op_code'; const Mappingname = require('../../model/mappingname'); const { rpc } = require('../../lib/cron'); const { expect } = chai; const buildTx = (prefix, version, txType, namespaceId, mappingId, str) => ({ prefix, version, txType, namespaceId, mapp...
$(document).ready(function() { // update view changeView() $(window).resize(function() { changeView() }); // menu functions of expense category tables editTable(); // --hide panel $(document).on("click", '#data-table-list [data-toggle="panel-collapse"]', function() { v...
var map = [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1,], // 0 [1, 0, 0, 2, 0, 0, 0, 0, 0, 1,], // 1 [1, 0, 0, 2, 0, 0, 0, 0, 0, 1,], // 2 [1, 0, 0, 2, 0, 0, 2, 2, 0, 1,], // 3 [1, 0, 0, 0, 0, 0, 0, 0, 0, 1,], // 4 [1, 0, 0, 0, 0, 0, 0, 0, 0, 1,], // 5 [...
// Returns the lowest available cell. If column is full, returns -1 export function findLowestCell (col, boardState) { for (let row = 0; row < boardState.length; row++) { if (boardState[row][col] !== 0) { return row - 1 } if (row === 5) { return 5 } } } // adds a token to the lowest ava...
// Copyright (c) 2020 <NAME> // // This software is released under the MIT License. // https://opensource.org/licenses/MIT import { failReply, fatalReply, parser } from './core' import { compound, expected, nested } from './error' /** @typedef {import('./core').Context} Context */ /** @typedef {import('./core').Resul...
/* * The main JavaScript file for Theme Miracles * * @Author: Eltrac * @License: MIT */ /** * Use cookies */ //add cookie function addCookie(name, value, expireHours) { var cookieString = name + "=" + escape(value); if (expireHours > 0) { var date = new Date(); date.s...
/* * 后台响应数据节点名称 */ XML_MAIN_TREE = "RoleGroupTree"; XML_ROLE_INFO = "RoleInfo"; XML_ROLE_TO_GROUP_TREE = "Role2GroupTree"; XML_ROLE_TO_GROUP_EXIST_TREE = "Role2GroupExistTree"; XML_ROLE_TO_USER_TREE = "Role2UserTree"; XML_ROLE_TO_USER_EXIST_TREE = "Role2UserExistTree"; XML_ROLE_TO...
var diffArray = require('./helper/diff').diffArray; var combine = require('./helper/combine'); var animate = require("./helper/animate"); var Parser = require('./parser/Parser'); var node = require("./parser/node"); var Group = require('./group'); var dom = require("./dom"); var _ = require('./util'); var consts = requ...
const { RichEmbed } = require('discord.js') class shortcut { constructor(bot, log) { this.bot = bot this.log = log this.COLORS = { abk: 0x7f8c8d, err: 0xe74c3c } this.aliases = { //UNITS //HUMANS //infantry 'infantr...
/* Copyright (c) 2009-2011 <NAME> <<EMAIL>> 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, publish, distr...
//Weapon choosing function | used in weapons function chooseWeapon(name) { player.weapon = WeaponData[name]; player.weaponDuration = player.weapon.duration; if (player.weapon.name == "INVINCIBLEDRILL") { player.speed = 20; player.animationFPS = 60; player.width = 150 * screenratio; player.height =...
import http from '@/utils/request' import port from '@/utils/api' import { param2Obj } from '@/utils/utils' import layout from './layout' /* { questionInfo存储结构 "run": { "tag": { "shape": 0, "allSteps": [], "curMin": 0, "curMax": 0, "sample": [] // 记录index "sample_t...
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /* Code to support the visualisation of the information in an infographic for persons of concern (refugees, asylum seekers, stateless etc) ...
/// <reference path="C:/Users/Ted/Documents/GitHub/openrct2/distribution/openrct2.d.ts" /> /// <reference types="C:/Users/Ted/Documents/GitHub/openrct2/distribution/openrct2.d.ts" /> // written by Spacek 2020-4-16 /* Reference values */ var MOM_ACTUATE = "spacek.mom_actuate"; var terrainSurfaces = []; var terrainEd...
// Copyright (C) 2020 <NAME>, distributed under the MIT license. // A basic FFT operation scales the overall magnitude of elements by the // square root of the length of the array, √N. Performing a forward FFT and // then an inverse FFT results in the original array, but multiplied by N. // This helper function can be ...
/** * @author <NAME> * @copyright 2016 <NAME>. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict" //------------------------------------------------------------------------------ // Requirements //-----------------------------------------------------------------------------...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof3 = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.inputNumberProps = exports.default = void 0; var _vue = require("vue"); var _objectSp...
// id de user global var IdEG = 0; var IdCD = 0; var Accion_Editar_Eliminar = "noAccion"; $(function(){ // funcionalidad del botón Actualizar $('#goCancelar').on('click',function(){ $("#goCABuscar").prop("disabled",false); $("#lstannlectivo").prop("disabled",false); $("#lstCodigoP...
var TerrainGeometryData = (function () { function TerrainGeometryData(geometry, width, height, widthSamples, heightSamples) { this.geometry = geometry; this.width = width; this.height = height; this.widthSamples = widthSamples; this.heightSamples = heightSamples; } Te...
let wordlist = [ "acid", "acorn", "acre", "acts", "afar", "affix", "aged", "agent", "agile", "aging", "agony", "ahead", "aide", "aids", "aim", "ajar", "alarm", "alias", "alibi", "alien", "alike", "alive", "aloe", "aloft", "aloha", "alone", "amend", "amino", "ample", "amuse", "angel", "anger", "angle", "ankle", "apple",...
// discord.js // Home of the Discord bot class /* global Dex, Users, LeagueSetup */ const { Bot } = require('./bot.js'); const discord = require('discord.js'); function reportError(err){ console.error("DISCORD PROMISE ERROR: ", err); } class DiscordBot extends Bot { constructor(opts) { if (!opts.token) throw new...
const functions = require('firebase-functions'); const rp = require('request-promise'); const crypto = require('crypto'); const showdown = require('showdown'); const fillTemplate = require('es6-dynamic-template'); const fs = require('fs'); const util = require('util'); const readFile = util.promisify(fs.readFile); //...
function iOSVersion() { var match = (navigator.appVersion).split('OS '); if (match.length > 1) { return match[1].split(' ')[0].split('_').join('.'); } return false; } var theme = localStorage.Theme; if (!theme) { theme = "ios7.min"; localStorage.setItem('Theme', theme); } $('head').append('<link rel="stylesheet...
import React from 'react'; import * as ReactDOM from 'react-dom'; import { Button, Container, Dropdown, Menu, Header, Icon, TextArea, Card, Grid, Popup, List, Accordion, Label, Modal, Dimmer, Loader, Segment } from 'semantic-ui-react'; import CodeMirror from 'react-codemirror'; import { model } from './datalayer'; impo...
$(function(){ froalaEditor(); titleBook(); chapterBook(); isFree(); backLink(); toChaptList(); saveDraft(); saveEditChapter(); addChapter(); publishChapter(); publishBook(); uploadCoverMr(); $("#publish_book_epub").click(function() { event.preventDefault(); ...
import { useAlert } from '@/components/AlertContext' import Autocomplete from '@/components/Autocomplete' import BackButton from '@/components/BackButton' import Button from '@/components/Button' import ImageInput from '@/components/ImageInput' import Label from '@/components/Label' import Select from 'react-select' im...
/** * Created by tao on 2018/2/2. */ var host = window.location.href; var _city = CookiesInfo.get("ZXAPPLY_IP"); var city_py, area_cn, city_cn; var fuJian = ["fuzhou", "quanzhou", "zhangzhou", "nanping", "sanming", "longyan", "putian", "ningde", "xiamen", "luoyuan"]; var userId = CookiesInfo.get('www_jia_user_id'); J...
import { Math as TMath, Quaternion, Euler, Matrix4, Group, Vector2, Vector3, BasicShadowMap, PCFShadowMap, PCFSoftShadowMap } from 'three'; import Game from 'Game'; import Loader from 'Loader'; import Rounds from 'config/Rounds'; import Text from 'config/Text'; import S...
/// Dependencies var express = require('express'); var app = express(); // Create Express App var https = require('https'); var databox = require('node-databox'); var moment = require('moment'); var morgan = require('morgan'); // Logger var bodyParser = require('body-parser'); // HTML Post Parsing var methodOverride = ...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Drawer, Form, Input, Button, Table, Transfer, Select, Pagination, InputNumber, Tabs, Modal, } from 'antd'; import moment from 'moment'; import styles from './MiddlewareResourceGroupList.les...
const mongoose = require('mongoose'); const Codetype = require('../codetype'); const ProjectMember = require('./member'); const RequestParticipation = require('./requestParticipation'); const PeerReview = require('./peerReview'); const { filterNullInObject, cloneObject } = require('../../utils/utils'); // Define Sch...
#!/usr/bin/env node "use strict" ; const physic = require( '../lib/physic.js' ) ; const term = require( 'terminal-kit' ).terminal ; const math = require( 'math-kit' ) ; // Parameters/starting conditions var timeStep = 0.05 , maxTime = 4 , mass = 10 , springElasticity = 20000 , springRestLength = 1 , dampingFa...
import TouchPan from '../../directives/TouchPan.js' import DarkMixin from '../../mixins/dark.js' import FormMixin from '../../mixins/form.js' import { between } from '../../utils/format.js' import { position } from '../../utils/event.js' import { isNumber } from '../../utils/is.js' const markerPrefixClass = 'q-slide...
function Sheep(sheepParas, world) { //store this sheep's name this.name = sheepParas.name; //width & height of sheep image this.w = sheepParas.w; this.h = sheepParas.h; // ear length of the sheep's image // store this to adjust left&right sensors' position - to correctly reflect sheep's position this....
const express = require('express'); const http = require('http'); const Memcached = require('memcached'); const fireStoreAdmin = require('firebase-admin'); let serviceAccount = require('./keys/firestore-key.json'); const bodyParser = require('body-parser'); const dateFormat = require('date-format'); const app = express...
var renderer = null, scene = null, camera = null, planetGroup = null, sun = null, mercury = null, mercury_orbit = null, venus = null, venus_orbit = null, earthGroup = null, earth = null, earth_orbit = null, earth_moon = null, marsGroup = null, mars = null, mars_orbit = null, mars_moon1 = null, mars_moon2 = null, jupite...
var heritageId; var annotations; var myAnnotator = { "onSubmit": function(annotation) { var $element = $(annotation.highlights[0]) var selected_motivation = $('#add-annotation-on-description-modal-select-motivation').val(); var given_textual_body = $("#add-annotation-on-descri...
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, StatusBar, NetInfo, Alert, Modal, ScrollView } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import RNSecureStorage from 'rn-secure-storage'; import * as Imagem from '../../imgs/imageCon...
import Vue from 'vue' import Router from 'vue-router' const Home = () => import ('./views/Admin/Home.vue') const Login = () => import('./views/Admin/login.vue') const Index = () => import('./views/Admin/index.vue') const Default = () => import('./views/Admin/default2.vue') const System = () => import('./views/A...
"use strict"; var vec3 = require('gl-vec3'); var vec4 = require('gl-vec4'); var streamToTube = function(stream, maxDivergence, minDistance, maxNorm) { var points = stream.points; var velocities = stream.velocities; var divergences = stream.divergences; var p, fwd, r, u, v, up; up = vec3.set(vec3.create(), 0, 1,...
"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 ("val...
"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...
import Request from './http.js' let coordtransform = require('coordtransform') let defaultFontInfo = { fontFile: 'fangzhengqingkebenyuesongjianti', fontColor: '0,0,0', textType: 'cn', fontSize: 160, direction: 'hor', wrapLine: 0, xAlgin: 'left', yAlgin: 'top', word: '', v: 1, cacheV: 1 } const Ut...
/* ============================================================== Include required packages =============================================================== */ var express = require('express'), formidable = require('formidable'), fs = require('fs'), crypto = require('crypto'), Client = requ...
var uie = require('lib/IndicatorWindow'); var indicator = uie.createIndicatorWindow({ top : 200, text : Alloy.Globals.PHRASES.loadingTxt }); var argsIn = arguments[0] || {}; var profileView = null; profileView = argsIn.profile; var fontawesome = require('lib/IconicFont').IconicFont({ font : 'lib/FontAwesom...
var debug = require('util').debug, inspect = require('util').inspect, path = require('path'), fs = require('fs'), exec = require('child_process').exec, spawn = require('child_process').spawn, Connection = require('../../lib/mongodb').Connection, Db = require('../../lib/mongodb').Db, Server = require('.....
// return an array with any duplicate, whitespace or values removed function array_unique_noempty(a) { var out = []; jQuery.each( a, function(key, val) { val = jQuery.trim(val); if ( val && jQuery.inArray(val, out) == -1 ) out.push(val); } ); return out; } function new_tag_remove_tag() { var id = jQuery( ...
// Copyright (c) 2016 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. import * as Common from '../../core/common/common.js'; import * as i18n from '../../core/i18n/i18n.js'; import * as Platform from '../../core/platform/...