text
stringlengths
5.97k
41.2k
import React, { Component, createContext, useState, useEffect, useContext, useCallback, useReducer } from 'react' import { UserSession, AppConfig, Person, lookupProfile } from 'blockstack' import { Atom, swap, useAtom, deref} from "@dbeining/react-atom" import { isNil, isNull, isEqual, isFunction, isUndefined, merge, s...
var graphsCache = {} var divGraphs = document.getElementById('divGraphs') function get(object, key, default_value) { if (typeof object[key] == "undefined") { object[key] = default_value } return object } function queryAndOrganizeInfo() { var Obj = JSON.parse(sessionStorage.getItem('sondeoObje...
/** * Module dependencies. */ var express = require('express'), path = require('path'), util = require('util'), fs = require('fs'), debug = require('debug')('server'), eyes = require('eyes'), glob = require('glob'), //mkdirp = require('mkdirp'), crypto = require('crypto'), Hawk = requ...
/* * Setup */ var isVideo = true; var canvas = document.getElementById('canvas'); var canvasVideo = document.getElementById('canvasVideo'); var ctx = canvas.getContext('2d'); var ctxVideo = canvasVideo.getContext('2d'); var imageLoader = document.getElementById('imageLoader'); var auxImage; var down = false; var ...
import Popup from 'native/popup'; import Crypto from 'native/crypto'; import Store from 'showtime/store'; import {request} from 'showtime/http'; import Service from 'showtime/service'; import Settings from 'showtime/settings'; import {Route, Searcher} from 'showtime/page'; const plugin = JSON.parse(Plugin.manifest); ...
import React, { useState, useEffect } from "react"; import * as am4core from "@amcharts/amcharts4/core"; import * as am4charts from "@amcharts/amcharts4/charts"; import am4themes_animated from "@amcharts/amcharts4/themes/animated"; am4core.useTheme(am4themes_animated); const buildChartConfirmedData = (yConfirmedData...
import * as i0 from '@angular/core'; import { Component, NgModule } from '@angular/core'; import * as i3 from '@angular/forms'; import { FormsModule } from '@angular/forms'; import * as i5 from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button'; import * as i4 from '@angular/material...
var qsocks = require('qsocks'); var fs = require('fs'); var request = require('request'); var js2xmlparser = require('js2xmlparser'); var Promise = require("promise"); var exprFields = require('./expr-fields.js'); var log = require("./logger"); module.exports={ getSheets: function(conn_data, global, cookies, single_...
"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...
$(document).ready(function () { if (wsaitems = localStorage.getItem('wsaitems')) { // Check if items from warehouse stock alert. let items = JSON.parse(wsaitems); $.each(items, function() { add_internal_use_item(this); }); localStorage.removeItem('wsaitems'); } $('body a, body button').attr...
// @ts-check import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js' let ready = false; const paint = () => { if (!ready) return; render(html`<${App} />`, document.body) }; const givens = [ { input: `typeof []`, output: 'object' }, { input: `typeof NaN`, output: 'number' }, ...
/* Copyright (c) 2011-2016, <NAME> Copyright (c) 2018, Orange 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 ...
var load_dateTimePicker; var check_inputs_inside_collapse; var imgs_input_names = []; var imgs_input = {}; var deleted_files_indices = {}; $(function(){ if ($(".load_admin_form_file").length > 0) { return false; } $("body").append("<input type='hidden' class='load_admin_form_file' >"); //ge...
/* * Copyright 2017 Uncharted Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
import * as data from './data/console'; import { Obj } from './data/object'; import UISystem from './data/ui/uisystem'; import * as ui from './data/ui/ui'; import { drawBackground, drawText } from './lib/draw'; import { RGB, calByte } from './lib/util'; let socket; /* TODO : This file is responsible for the entir...
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var path = require('path'); var readline = require('readline'); var fstream = require('fstream'); var fstreamIgnore = require('fstream-ignore'); var tar = require('tar'); var zlib = require('zlib'); var bpm = {}; bpm.util = require('./bpm_util').util; var f...
var crmApp = angular.module('crm', ['DataService']); var crmCtrl = crmApp.controller('userCtrl', function($scope, $window, $http, DataService) { DataService.getProfile().then( function(p) { $scope.initData(p); }, function(e) { console.log(e); $scope.error = true; $scope.errorMsg = e.errorMsg; }); $scope...
import EventEmitter from 'event-emitter'; import Merge from 'deepmerge'; import Parser from './parse'; import Buffer from './fmp4/buffer'; import FMP4 from './fmp4/m4a'; import Task from './media/task'; import util from './util'; import { Util } from 'xgplayer'; import Errors from './error'; class MP4 { /** * [c...
var _ = require('lodash'); var argy = require('argy'); var async = require('async-chainable'); var base64 = require('hi-base64'); var superagent = require('superagent').agent(); var xmlParser = require('xml-js'); function webOfScience(options) { var wos = {}; wos.settings = _.defaults(options, { user: '', pass: ...
jQuery(function () { //one page $allClass = jQuery('.insnavouter-section').attr('class'); if (jQuery.fn.onePageNav) { jQuery('.insnavouter-section ul').onePageNav({ currentClass: 'menu-active-item', scrollThreshold: 0.2, scrollOffset: 0, begin: function() { }, end: function() { ...
import React from "react" import { mixins, NotificationBar, ToggleSection } from "quick-n-dirty-react" import dataTypes from "./DataTypes" import TimeSeriesPreview from "./TimeSeriesPreview" import ImageHandler from "./ImageHandler" import ImagePreview from "./ImagePreview" import DataSetHandler from "./DataSetHandler"...
var legend_width = document.getElementById("sidebar").clientWidth; // Area excluding the legend. var body_width = document.body.clientWidth - legend_width; var body_height = document.body.clientHeight; // Dimensions of sunburst element. var chart_element = document.getElementById("chart"); var chart_width = chart_el...
/** * Copyright 2020 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
var command_queue = []; var player_loaded = false; var initial_seek = 0; window.addEventListener("DOMContentLoaded", function (evt) { loading_overlay(true, "Loading youtube embedded api..."); var tag = document.createElement("script"); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = docum...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /* Copyright (C) <NAME> 2018 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */function a(a, b) { if (1 !== a.nodeType) return [];var c = getComputedStyle(a, null);return b ? c[b] : c; }func...
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o...
/* * MIT License * * Copyright (c) 2017, Pentagonal * * 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...
import Cryptojs from 'crypto-js'; import constants from '../constants'; import dialogs from '../../components/dialogs'; import keyBindings from '../keyBindings'; import fs from '../fileSystem/internalFs'; import tag from 'html-tag-js'; import ajax from '../ajax'; import path from './path'; import Url from './Ur...
import MarkdownIt from "markdown-it"; import mdTasksLists from 'markdown-it-task-lists'; import code from '../services/code'; import {debounce} from "../services/util"; import DrawIO from "../services/drawio"; class MarkdownEditor { constructor(elem) { this.elem = elem; const pageEditor = docume...
// 地図表示時の中心座標 var init_center_coords = [136.343905, 35.890542]; // Bing APIのキー var bing_api_key = '<KEY>'; // map var map; // 保育施設JSON格納用オブジェクト var nurseryFacilities = {}; // 中心座標変更セレクトボックス用データ var moveToList = []; // マップサーバ一覧 var mapServerList = { 'bing-road': { label: "標準(Bing)", source_type: "bing", sour...
import React, { Component } from 'react'; import { View } from 'react-native'; import { Text, Spinner, Button, Icon } from 'native-base'; import { addComponent, removeComponent, setStreaming, watchComponent, setQueryOptions, updateQuery, loadMore, setQueryListener, } from '@appbaseio/reactivecore/lib/actions';...
// // browser.js - client-side engine // /*global less, window, document, XMLHttpRequest, location */ var isFileProtocol = /^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol); less.env = less.env || (location.hostname == '127.0.0.1' || location.hostname == '0.0.0.0' || ...
/* Copyright 2015-2016 Teem2 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 law or agreed to in writing, software di...
import Tool from '../DevTools/Tool' import CssStore from './CssStore' import Highlight from './Highlight' import Select from './Select' import Settings from '../Settings/Settings' import { $, keys, MutationObserver, each, toStr, isEl, isStr, map, escape, startWith, isFn, isBool, safeGet, pxT...
'use strict'; const electron = require('electron'); const elementReady = require('element-ready'); const config = require('./config'); const {ipcRenderer: ipc} = electron; const listSelector = 'div[role="navigation"] > div > ul'; const conversationSelector = '._4u-c._1wfr > ._5f0v.uiScrollableArea'; const selectedCon...
/** * Copyright © INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import setColumnId from '../setColumnId'; import computeFlexWidths from '../utils/flex/computeFlexWidths'; import mapColumns from '../mapColumns'; impor...
var lang_type = 'en' // inital function mergeCell(table1, startRow, endRow, col) { var tb = document.getElementById(table1) if (!tb || !tb.rows || tb.rows.length <= 0) return if (col >= tb.rows[0].cells.length || (startRow >= endRow && endRow != 0)) return if (endRow == 0) endRow = tb.rows.length - 1 for (va...
/* eslint-disable no-bitwise, no-mixed-operators, complexity */ const DECRYPT = 0 const ROUND = 32 const BLOCK = 16 const Sbox = [ 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05, 0x2b, 0x67, 0x9a, 0x76, 0x2a, 0xbe, 0x04, 0xc3, 0xaa, 0x44, 0x13, 0x26, 0x49, 0x86, 0x06...
require('ember-metal/core'); require('ember-metal/accessors'); require('ember-metal/computed'); require('ember-metal/properties'); require('ember-metal/observer'); require('ember-metal/utils'); require('ember-metal/array'); require('ember-metal/binding'); /** @module ember-metal */ var Mixin, REQUIRED, Alias, cla...
import React, { Component } from "react"; import cslx from "clsx"; import { Button, Tooltip, Typography, Grid } from "@material-ui/core"; import { withStyles } from "@material-ui/core/styles"; import IconWarning from "@material-ui/icons/Warning"; import CallMadeIcon from "@material-ui/icons/CallMade"; import InfoIcon f...
//** ENROLLMENT 2170 $('.TermSelectionModal').attr('id','TermSelectionModal').attr('tabindex','-1').attr('aria-labelledby','myModalLabel');//run b/4 bootstrap js ready $('.TierSelectionModal').attr('id','TierSelectionModal').attr('tabindex','-1').attr('aria-labelledby','myModalLabel');//run b/4 bootstrap js ready $('.R...
/* * Copyright 2020 Bitnine Co., Ltd. * * 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 agre...
import _data from './_data'; import _get from './_get'; import _mixins from './_mixins'; import _action from './_action'; import _page from "./common"; import SDK from "./tendenceImSdk"; // #ifdef APP-PLUS let call = uni.requireNativePlugin('Html5App-TencentCall') // #endif export default { closeVoiceRoom(){ uni....
import XEUtils from 'xe-utils/methods/xe-utils' import GlobalConfig from '../../conf' import VXETable from '../../v-x-e-table' import { UtilTools, DomTools } from '../../tools' const cellType = 'body' // 滚动、拖动过程中不需要触发 function isOperateMouse ($xetable) { // 在 v3.0 中废弃 optimization.delayHover return $xetable._isRe...
window.pl = window.pl || {}; $(document).ready(() => { $.panel.warp_disp.append( '<div class="controllers">' + '<button id="start">Partida</button>' + '<button id="obstacle">Obstáculo</button>' + '<button id="erase">Apagar</button>' + '<button id="sttgs">Definições</button>' ...
// Modules to control application life and create native browser window const { app, BrowserWindow, Menu, Tray, screen, shell, dialog, ipcMain } = require('electron') const path = require('path') const fs = require('fs') const request = require('request') const extract = require('extract-zip') const defaultMenu = requ...
'use strict'; const moodbored = 'moodbored'; // requires const { remote } = require('electron'); const { Menu, MenuItem } = remote; const { dialog } = remote; const fs = require('fs'); const request = require('request'); const trash = require('trash'); const shell = require('electron').shell; const _options = requir...
const fse = require("fs-extra"); const path = require("path"); const sharp = require("sharp"); require('console-stamp')(console, { colors: { stamp: 'yellow' } }); const puppeteer = require("puppeteer"); const { getAllFiles, sleep } = require("./common"); const captureInterval = 20000; const httpPort = 4567; const s...
/** * JustGage - a handy JavaScript plugin for generating and animating nice & clean dashboard gauges. * Copyright (c) 2012 <NAME> - pindjur(at)gmail(dot)com | http://www.madcog.com * Licensed under MIT. * Date: 31/07/2012 * @author <NAME> (@Toorshia) * @version 1.0 * * http://www.justgage.com */ JustGage = ...
"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"; exports.editingFormBasedModule = void 0; var _renderer = _interopRequireDefault(require("../../core/renderer")); var _window = require("../../core/utils/window"); var _events_engine = _interopRequireDefault(require("../../events/core/events_engine")); var _guid = _interopRequireDefault(require("../.....
var sidebar_scroll = function(elm_selector) { elm_selector.on('click', '#sidebar-nav li', function() { var clicked_li = $(this); $.scrollTo($('.section:eq(' + clicked_li.index() + ')'), 500); return false; }).addClass('unbind_later'); if (elm_selector.size()) { // grab the i...
const util = require('util'); const {RichEmbed} = require('discord.js'); const jsonQuery = require('json-query'); const titlecase = require('titlecase'); const escapeStringRegexp = require('escape-string-regexp'); const fs = require('fs'); const path = require('path'); const botUtils = require(path.join(__dirn...
/* Copyright (c) 2012 <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, publish, distribute, sublicen...
import hammerhead from './../deps/hammerhead'; import testCafeCore from './../deps/testcafe-core'; import ProgressBar from './progress-bar'; import uiRoot from '../ui-root'; import MESSAGES from './messages'; const Promise = hammerhead.Promise; const shadowUI = hammerhead.shadowUI; const nativeMethod...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
const {app, dialog} = require('electron').remote; const remote = require('electron').remote; const {shell} = require('electron'); const {ipcRenderer} = require('electron'); const fs = require('fs'); const os = require('os'); const Enum = require('./js/enum.js'); const {Menus, DownloadStatus, Tabs} = Enum; const Downloa...
/** * Module dependencies. */ var should = require('../') , assert = require('assert'); function err(fn, msg) { try { fn(); should.fail('expected an error'); } catch (err) { should.equal(msg, err.message); } } module.exports = { 'test .version': function(){ should.version.should.match(/^...
import React, { useEffect, useState, forwardRef } from 'react' import { useQuery } from '@apollo/react-hooks' import Button from '@material-ui/core/Button' import LocationOnIcon from '@material-ui/icons/LocationOn' import CalendarTodayIcon from '@material-ui/icons/CalendarToday' import FavoriteIcon from '@material-ui/i...
import AssociativeArray from "../Core/AssociativeArray.js"; import Cartesian3 from "../Core/Cartesian3.js"; import Color from "../Core/Color.js"; import ColorGeometryInstanceAttribute from "../Core/ColorGeometryInstanceAttribute.js"; import defined from "../Core/defined.js"; import DistanceDisplayCondition from "../Cor...
const videoParent = document.querySelector('.clvideo > div'); let hasPlayed = false; function layoutSetUp() { const videoEl = videoParent.querySelector('div:first-of-type'); const backgroundImage = videoEl.querySelectorAll('img')[0]; const productBg = videoEl.querySelectorAll('img')[1]; const videlSrc = videoEl...
// IP cust --- INSERT // --- view initialization and refresh function initDet() { contdoc = doc.getElementById("_cont").contentDocument; // IP initDet --- BEGIN initCpt(contdoc, "CptFnm", retrieveTi(srcdoc, "TagDlgWznmFilNewDet", "CptFnm")); initCpt(contdoc, "CptRet", retrieveTi(srcdoc, "TagDlgWznmFilNewDet", "Cp...
/* global describe it before ethers */ const { expect } = require("chai"); const { getCollaterals: getCollateralsH1, } = require("../scripts/collateralTypes.js"); const { getH2Collaterals } = require("../scripts/collateralTypesHaunt2.js"); const { upgradeHauntCollateralTypes, } = require("../scripts/upgrades/upgra...
var _ = require('../util') var config = require('../config') var textParser = require('../parsers/text') var dirParser = require('../parsers/directive') var templateParser = require('../parsers/template') var resolveAsset = _.resolveAsset var propBindingModes = config._propBindingModes // internal directives var propD...
/* global process */ // @ts-check import fs from 'fs'; import path from 'path'; import { resolve as resolveModuleSpecifier } from 'import-meta-resolve'; import { assert, details as X } from '@agoric/assert'; import bundleSource from '@endo/bundle-source'; import '../types-ambient.js'; import { insistStorageAPI } from...
const indexjs = require("../index.js"); const adminjs = require("./admin.js"); const fs = require("fs"); const ejs = require("ejs"); const fetch = require('node-fetch'); const NodeCache = require( "node-cache" ); const Queue = require("../managers/Queue.js"); const myCache = new NodeCache({ deleteOnExpire: true, stdTTL...
/* if (typeof define !== 'function') { var define = require('amdefine')(module); } // I would like my own (fast) way of reading MP3 metadata. // Had a problem seeking later parts of the track in Chrome. It would request a few seconds too little audio from the server. // Seems like Chrome estimated positions for...
/* Copyright 2020 Square Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
// dwd_data_crawler // // Copyright 2018 The dwd_data_crawler Developers. See the LICENSE file at // the top-level directory of this distribution and at // https://github.com/UdSAES/dwd_data_crawler/LICENSE // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
//Render the final video //Dependencies import CommonVideo from "./common-video.js"; //Node.js Modules import fs, { promises as fsPromises } from 'fs'; import path from 'path'; import { exec } from 'child_process'; //My Modules import { EventEmitter, once } from "../event-emitter/event-emitter.js"; import Overloade...
// The island of misfit toys... for functions var path = require('path'), fs = require('fs'), colors = require('colors'), wrench = require('wrench'), jsonlint = require('jsonlint'), logger = require('./logger'), tiapp = require('./tiapp'), XMLSerializer = require("xmldom").XMLSerializer, DOMParser = require("x...
// Funciones generales $("#passwordInput").hide(); $(document).ready(function() { $('.dropify').dropify(); $('#allCountries').prop('checked', true); $('#allRanges').prop('checked', true); $("#unlimitedNDate").prop('checked', true); $("#forAllNSite").prop('checked', true); catchCheckboxDates(); ...
/* global describe, it */ require('source-map-support').install({hookRequire: true}) var _ = require('lodash') var ap = require('any-path') var configUtil = require('../../lib/config-util') var fs = require('fs') var enableCache = false var _NYC try { _NYC = require('../../index.covered.js') } catch (e) { _NYC = ...
// direct copy of Andy's highjump.py // The countback rule used to separate competitors with equal best heights in High Jump and Pole Vault // is possibly the most misunderstood rule in the whole of the sport.s // Here's how it operates: // The athlete with the fewest attempts at the last height successfully cleared ge...
var url = require('url'); var ejs = require('ejs'); var cheerio = require('cheerio'); var common = require('./common'); var nitro = require('bbcparse/nitroSdk.js'); var api = require('bbcparse/nitroApi/api.js'); //http://www.developerdrive.com/2012/07/creating-a-slider-control-with-the-html5-range-input/ function get...
// This is a JavaScript file var DANGO_SIZE = 30; var BOARD_HEIGHT = 15; var BOARD_WIDTH = 10; var WALL_MARJIN = 2; var MINO_AREA = 4; var currentX = 5; var currentY = 10; var cost = 0; var gain = 0; var result = 0; var time = 60; var ptime = 0; var dango_num = 0; /*タイマー関係*/ var rap = 0; var dango_timer = 0; var n...
// Velik's Sanctuary // // made by michengs / HSDN const { SpawnMarker, SpawnCircle } = require("../lib"); let player, entity, library, effect; let thirdboss_fifty = false; function thirdboss_message_event(skillid, handlers, event, ent, dispatch){ switch(skillid){ // Lakan has noticed you. case 10...
/*eslint camelcase: 0, no-multi-spaces: 0, no-mixed-spaces-and-tabs: 0 */ 'use strict'; var Rx = require('./rx'); var _ = require('./underscore_ext'); var {permuteCase, permuteBitCount, prefixBitLimit} = require('./permuteCase'); // Load all query files as a map of strings. var qs = require('./loadXenaQueries'); var...
// The testing space is as follows: // // - Guest: The CDLRE regexp engine. // - Host: The hosting VM regexp engine. // - Spec: The definitively correct results, as given by the specification. // // Ideally, all of these categories should produce the same results. var cdlre = (function(cdlre) { var extend = cdlre....
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
/** * Created by cailong on 16/7/21. */ 'use strict'; var router = require('express').Router(); var AV = require('leanengine'); var util = require('./util'); var https = require('https'); //防作弊 var requestIp = require('request-ip'); var userAgent = require('express-useragent'); var User = AV.Object.extend('_User')...
// 1.初始状态或者重启状态,随机选两个格子,格子数里面数字为2/4 // 页面加载时 window.onload = function () { // var temp = tempGrid(2); giveNumber(2, 2); newGameBotton(); getReady(); backgroundColorToNumber(); scaleWidth(); touch(); } // 宽高比例1:! function scaleWidth() { // 获取格子的宽度 var grid = document.getElementsByClassName("grid"), width =...
var numCells = 12; var cellSize = 50; var numStartBalls = 10; var numBallsPerTurn = 3; var numBallTypes = 8; var numBallsToCompleteRow = 5; var numTurnsUntilNewBalls = 1; var headerHeight = 80; var gameBorderSize = 60; var gameAreaSize = 600; var movementThreshold = 1; var speed = 50; var dropballSound = 'dropballS...
var express = require("express"); var router = express.Router(); var path = require("path"); var db = require("../../../utils/handlers/user"); var User = require("../../../utils/models/user"); var ta = require("time-ago"); var formidable = require("formidable"); var fs = require("file-system"); const aws = require("aws...
let thingsToLoad = [ "images/monsterMaze.png", "maps/monsterMaze.json" ]; //Create a new Hexi instance, and start it. let g = hexi(704, 512, setup, thingsToLoad); //Set the background color and scale the canvas //g.backgroundColor = "black"; g.scaleToWindow(); //Start Hexi g.start(); //Game variables let world,...
/* eslint-disable */ import Config from '../Config' // PVSCL:IFCOND(Assessing, LINE) import Assessing from '../annotationManagement/purposes/Assessing' // PVSCL:ENDCOND export class Review { constructor(){ this._annotations = [] } insertAnnotation(annotation){ this._annotations.push(annotation) } get...
class VoiceLine { constructor() { this.id = "voiceLine"; this.lineElements = []; this.modifiers = []; this._constructorName = "VoiceLine"; } add(e) { this.lineElements.push(e); return this; } get(index) { return this.lineElements[index]; }...
/* MIT License Copyright (c) 2022 Portland Transport 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, publ...
import React from 'react'; import styled from 'styled-components'; //STYLES import Selects from '../../general_components/form_components/selects/select'; import { CuerpoForm, /*ContainerEdit,*/ Row, HeaderForm, Container, TituloForm, /*Topbar,*/ HeaderModal, CuerpoModal } from '../../general_components/form_component...
/**************************************************************************** * @copyright <NAME> * @authors <NAME> (<EMAIL>) * @date 2021/5/21 3:21 * @version v1.0 * @filename heat.js * @description ***************************************************************************/ function create...
/** * @file Command system for Clara. * @author Ovyerus */ const Eris = require('eris'); const logger = require(`${__dirname}/Logger`); const {parseArgs, parsePrefix} = require(`${__dirname}/messageParser`); const PermissionsPrettyPrinted = { createInstantInvite: 'Create Instant Invite', kickMembers: 'Kick...
// javascript for our 3d items : mainly for moving around items / setting properties class CSS3DItem { constructor(wrapper, container) { this.wrap = document.querySelector(wrapper) this.itemContainer = document.querySelector(container) this.movementEnabled = true this.movementEnabledX = true this.y = 0 thi...
var remarQIsRegistered_LISTID_ = false; var remarQListName_LISTID_ = "_LISTGUID_"; var remarQListId_LISTID_ = "_LISTID_"; var remarQAlertDialog_LISTID_ = "_ALERT_"; var remarQErrorImage_LISTID_ = "_ERRORIMAGEURL_"; var remarQFieldGuid_LISTID_ = "_FIELDGUID_"; var remarQRenderMode_LISTID_ = "_COLRENDERMODE_"; var remar...
import * as THREE from 'three' import Stats from './node_modules/three/examples/jsm/libs/stats.module.js' import { OrbitControls } from './node_modules/three/examples/jsm/controls/OrbitControls.js'; import { GUI } from './node_modules/three/examples/jsm/libs/lil-gui.module.min.js' import { PointerLockControls } from '....
/** * @license Copyright (c) 2016 - <NAME> - All Rights Reserved * Looking for source code? Check it out here: https://github.com/LuckehPickle/Comet */ /** * Copyright (c) 2016 - <NAME> - All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
import { cubicSubdivide } from '../core/curve.js'; import Path from '../graphic/Path.js'; import { defaults, map } from '../core/util.js'; import { lerp } from '../core/vector.js'; import { clonePath } from './path.js'; import Transformable from '../core/Transformable.js'; import { split } from './dividePath.js'; impor...
/** * Papamamap : * コンストラクタであり、index.jsの$('#mainPage').onでnewされる * * @property {object} map ol.Map * @property {Array.<number>} viewCenter マップの初期中心座標 * @property {number} centerLatOffsetPixel 緯度表示位置の調整用オフセット * */ window.Papamamap = function(init_center_coords, mapServer) { this.map; t...
import TrialService from "../services/TrialService.js"; const {WebcController} = WebCardinal.controllers; const commonServices = require("common-services"); const Constants = commonServices.Constants; import ResponsesService from '../services/ResponsesService.js'; import TrialParticipantRepository from '../repositorie...
'use strict'; /* Go game logic */ /* TODO fix scoring bug where marking friendly stones in your territory as dead is allowed Later: mark cutting points and protected points like tiger's mouth mark forcing moves mark potential, false, and complete eyes outline living stones onHover, show change in liberties, enemy li...