text
stringlengths
5.97k
41.2k
/* 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 may not use this f...
const fs = require('fs-extra'); const tl = require('azure-pipelines-task-lib/task'); const path = require('path'); const execSync = require('child_process').execSync; const toolLib = require('azure-pipelines-tool-lib/tool'); const clientHandlers = require('typed-rest-client/Handlers'); const localTools = require('./too...
"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' const EMPTY = ''; const MINE = '💣'; const FLAG = '🚩'; const NORMAL = '🙂' const LOSE = '🤯' const WIN = '😎' const LIFE = '🧡' var gGame = { isOn: false, shownCount: 0, markedCount: 0, secsPassed: 0 } var gBoard; var cell = { minesAroundCount: 0, isShown: false, isMine: fal...
/* ================================================================== ================================================================== ========================== VARIBLE ============================== ================================================================== ====================================...
//THE LONG CORRIDOR ROUGELIKE-LIKE //Gameplay Elements var hp = 15; var maxhp = 15; var nrg = 10; var maxnrg = 10; var dmg = 3; var turn = 0; var score = 0; var gameover = 0; var fallDamage = 0; var spit = 5; var searchRand = 10; //Misc. var arrow = document.getElementById("arrow"); var arrowColor = function(){ arr...
import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; import { get, computed } from '@ember/object'; import { jwt_decode as decoder } from 'ember-cli-jwt-decode'; import { alias } from '@ember/object/computed'; import uniqBy from 'lodash.uniqby'; import ENV from 'screwdriver-ui...
"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 (b.hasOwnPrope...
/** * A simple dependency graph */ /** * Helper for creating a Depth-First-Search on * a set of edges. * * Detects cycles and throws an Error if one is detected. * * @param edges The set of edges to DFS through * @param leavesOnly Whether to only return "leaf" nodes (ones who have no edges) * @param result A...
var extIcon = chrome.extension.getURL('img/icon_16.png'); $('.PostFull__reply').append( '<span class="showTomoji"><img src="'+ extIcon +'"></span>' ); $('.PostFull').on('click', '.showTomoji', function () { $(this).css('color','#585094'); $('.addEmojis').removeClass('hideEmoji') })...
import React, { Component } from "react" import "intersection-observer" import Layout from "../components/layout" import Head from "../components/head" import { graphql, StaticQuery, useStaticQuery } from "gatsby" import { documentToReactComponents } from "@contentful/rich-text-react-renderer" import { Card, Col, Conta...
import React, { useEffect } from "react"; import { useHistory } from "react-router-dom"; // Basic UI import Paper from "@material-ui/core/Paper"; import { Button } from "@material-ui/core"; import Grid from "@material-ui/core/Grid"; import InputLabel from "@material-ui/core/InputLabel"; import MenuItem from "@...
const assert = require('assert') const NakoCompiler = require('../../src/nako3') const { tokenize, LanguageFeatures, BackgroundTokenizer, AceDocument: IAceDocument, Session: ISession } = require('../../src/wnako3_editor') const CNako3 = require('../../src/cnako3') const path = require('path') const fs = require('fs') c...
'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
import {Tooltip} from '../api/balloon'; import {Emitter} from '../event'; import {Plugins} from '../plugins'; import {utils} from '../utils/utils'; import {utilsDom} from '../utils/utils-dom'; import {d3_transition as transition} from '../utils/d3-decorators'; import {GrammarRegistry} from '../grammar-registry'; import...
var MainArticle = { article : null, user : null, commentcount :0, init : function() { this.article = util.getObjectFromSession('_cA'); log(this.article); this.user = util.getObjectFromSession('_user'); log(this.user); if(this.article) this.commentcount = this.article.commentCount; }, buildtags : func...
import log from 'electron-log'; import * as faceapi from 'face-api.js'; import { areOneOrMoreFiltersEnabled, limitRange, roundNumber, mapRange } from './utils'; import { FILTER_METHOD, SORT_METHOD, FILTER_METHOD_AGE, FILTER_METHOD_FACESIZE, FILTER_METHOD_FACEOCCURRENCE, FILTER_METHOD_FACECOUNT, } from './c...
import sylvester from 'sylvester' import * as MCU_Icon from '../item/MCU_Icon' import * as MCU_Waypoint from '../item/MCU_Waypoint' import {makeActivity, ActivityType} from './flight.plan' import {Location} from './locations' import {MapColor} from './map' import {Territory} from './fronts' import {RESTRICTED_BORDER, i...
/* FILTER PERSON */ $('body').on('change', '.PersonPrimary', function() { var personId = $('#PersonPrimary').select2('data').id; url = urlActivitySelect + "subject=" + $('#PersonPrimary').select2('data').id; var div_data = ""; $.getJSON(urlActivitySelect,function(data) { $.each(data, ...
const WeaponElement = { Fire: 0, Earth: 1, Lightning: 2, Water: 3, }; const WeaponTrait = { STR: 0, DEX: 1, CHA: 2, INT: 3, PWR: 4, }; const ReputationTier = { PEASANT: 0, TRADESMAN: 1, NOBLE: 2, KNIGHT: 3, KING: 4, }; function reputationToTier(reputation) { switch (reputation) { ca...
"use strict"; var mymap; let circles = []; let reitit = []; let labels = []; let marker; /** * MML layers for Leaflet. https://github.com/jleh/Leaflet.MML-layers * Copyright (c) 2013-2016 <NAME> */ (function (factory, window) { var L; if (typeof define === "function" && define.amd) { define(["...
// Copyright © 2020 <NAME>. See LICENSE for details. // So you’re diving into JavaScript, eh? // Here’s a quick start guide to the language: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types // JavaScript modules. // As of May 2020, Three.js is officially moving to modul...
import React, { Component } from 'react'; import CommonQueries from './common/CommonGraphQLQueries'; import DataIndex from './common/DataIndex'; import Utilities from './common/Utilities'; import Table from './Table'; // TODO https://facebook.github.io/react/docs/optimizing-performance.html#webpack class Report exten...
function getRandom(min, max){ return Math.random() * (max - min) + min; } var isSafari = /constructor/i.test(window.HTMLElement); var isFF = !!navigator.userAgent.match(/firefox/i); if (isSafari) { document.getElementsByTagName('html')[0].classList.add('safari'); } // Remove click on button for demo purpose Arra...
// Copyright (c) 2012 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. // ----------------------------------------------------------------------------- // NOTE: If you change this file you need to touch renderer_resources...
/*global module, ok, equal, test, expect, animationStyle */ // PhantomJS timesout so leave autostart on if(navigator.userAgent.indexOf('PhantomJS') === -1) { QUnit.config.autostart = false; } // Save the classes before we add a bunch to them via tests var classes = TEST.trim(document.documentElement.className).split...
var DEF_CELL_WIDTH = 75; var DEF_CELL_HEIGHT = 10; var DEF_KAREL_RADIUS = 20; var DEF_BEEPER_SIZE = 10; var ANIMATION_SPEED_RANGE = [0.5, 5]; var DIRECTION_PRESET_ARRAY = [ [0,-1], [1,0], [0,1], [-1,0] ]; var BEEPER_POSITIONS_PRESET_ARRAY = [ [ ...
/* * convert syntax trees back to string representations * * Copyright 2014-2017 by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of a math-expressions library * * math-expressions is free software: you can redistribute * it and/or modify it under the terms of the GNU General Public * License...
var merge = require('./merge'); var RollbarJSON = {}; var __initRollbarJSON = false; function setupJSON() { if (__initRollbarJSON) { return; } __initRollbarJSON = true; if (isDefined(JSON)) { if (isNativeFunction(JSON.stringify)) { RollbarJSON.stringify = JSON.stringify; } if (isNativeFu...
// This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is dis...
/** * Module dependencies. */ var path = require('path'); var util = require('util'); var _ = require('@sailshq/lodash'); var flaverr = require('flaverr'); var toStartServer = require('./start'); var toInitializeHttpHook = require('./initialize'); module.exports = function(sails) { /** * Expose `http` hook ...
/* * Copyright 2017-2019 G-Labs. All Rights Reserved. * https://zuixjs.github.io/zuix * * 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/L...
import React, { createContext, useContext, useEffect, useRef, useState, } from 'react'; import { Platform } from 'react-native'; import { LongPressGestureHandler } from 'react-native-gesture-handler'; import ReactNativeHapticFeedback from 'react-native-haptic-feedback'; import Animated, { useAnimatedGesture...
/* ----------------------------------------------- /* Author : <NAME> - <EMAIL> /* MIT license: http://opensource.org/licenses/MIT /* GitHub : https://github.com/VincentGarreau/particles.js /* How to use? : Check the GitHub README /* v1.0.3 /* ----------------------------------------------- */ function launchParticles...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _axios = _interopRequireDefault(require("axios")); require("./styles.css"); functi...
/*左侧菜单点击*/ $(".side-menu").on('click', 'li a', function(e) { var animationSpeed = 300; var $this = $(this); var checkElement = $this.next(); if (checkElement.is('.menu-item-child') && checkElement.is(':visible')) { checkElement.slideUp(animationSpeed, function() { checkElement.removeClass('menu-open'); });...
/**! Parses and writes 5dpgn (Shad's notation). **/ import {Game, BOARDS, PIECES, letter_to_index, index_to_letter, parse_timeline, write_timeline} from "./game.js"; export const SUPERPHYSICAL_REGEXP = /^\(\s*L?\s*([+-]?\d+)\s*T\s*(\d+)\s*\)/; export const ANNOTATIONS_REGEXP = /^(?:\?+|!+|\?!|!\?)/; export const PI...
/** * Created by Mirren on 2018/10/19. */ /** * 显示或者隐藏指定分组 * @param obj 调用时传入自己,也就是this */ function showOrHideApiGroup(obj) { var attr = $(obj).attr("data"); if (attr == 'hide') { $(obj).attr("data", 'show'); $(obj).removeClass('background-right-icon'); $(obj).addClass...
const exportedAssistantJob = {}; const log = require('../../../api/utils/log.js')('assistantJob:module'); const fetch = require('../../../api/parts/data/fetch.js'); const async = require("async"); const countlyModel = require('../../../api/lib/countly.model.js'); const countlySession = countlyModel.load("users"); const...
/*****************************************************************/ /* 5grid 0.3.2 by n33.co | MIT+GPLv2 license licensed */ /* init.js: Init script */ /*****************************************************************/ /*********************/ /* Object Setup */...
"use strict"; const express = require("express"); const router = express.Router(); const async = require("async"); const should = require("should"); const debug = require("debug")("OSMBC:routes:blog"); const config = require("../config.js"); const util = require("../util/util.js"); const moment = re...
/*jshint esversion: 6 */ document.addEventListener("DOMContentLoaded", function() { // Where are the furniture outlines stored? // This is mainly a refactoring to keep line lengths short const fam = "data/FamilyArchitypes"; // stuff from rhino has a different origin point, // these offsets make it look more o...
/** * Configuration for the left hand tree */ if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {}; SiteTreeHandlers.parentChanged_url = 'admin/assets/ajaxupdateparent'; SiteTreeHandlers.orderChanged_url = 'admin/assets/ajaxupdatesort'; SiteTreeHandlers.loadPage_url = 'admin/assets/getitem'; SiteTreeHandl...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ciPluginReportTask = exports.ciPackagePluginTask = exports.ciBuildPluginDocsTask = exports.ciBuildPluginTask = void 0; var tslib_1 = require("tslib"); var task_1 = require("./task"); var plugin_build_1 = require("./plugin.build"); var ...
"use strict"; var _this = this; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var crypto = require("crypto"); var fs = require("fs"); var path = require("path"); var url_1 = require("url"); var util = require("util"); var publication_link_1 = require("../models/publicati...
/** * @fileoverview * Utilities to handle XML and JSON data. Borrowed from WebShow.XML and WebShow.JSON. * @author <NAME> */ var /** * Class to handle JSON file and data. * @class JsonUtility */ JsonUtility = { /** @private */ DEF_LOAD_TIMEOUT: 20000, /** @private */ FILE_EXT_JSON: '.json', /** @priv...
var geoCoordMap = { '上海': [121.4648,31.2891], '东莞': [113.8953,22.901], '东营': [118.7073,37.5513], '中山': [113.4229,22.478], '临汾': [111.4783,36.1615], '临沂': [118.3118,35.2936], '丹东': [124.541,40.4242], '丽水': [119.5642,28.1854], '乌鲁木齐': [87.9236,43.5883], '佛山': [112.8955,23.1097], ...
import data from '../data' import log from '../log' import {MapSeason} from './map' // Weather state/condition enum export const WeatherState = Object.freeze({ Perfect: 1, Good: 2, Bad: 3, Extreme: 4 }) // Precipitation type enum export const Precipitation = Object.freeze({ None: 0, Rain: 1, Snow: 2 }) // TOD...
/** * Mediaviews Analysis tool * @link https://pageviews.toolforge.org/mediaviews */ const config = require('./config'); const Pv = require('../shared/pv'); const ChartHelpers = require('../shared/chart_helpers'); /** Main MediaViews class */ class MediaViews extends mix(Pv).with(ChartHelpers) { /** * Set ins...
import axios from 'axios' import React, {useEffect, useState} from 'react' import {paymentMethods} from './components/paymentMethods' import {productUnits} from "../../../../helpers/units" import MyModal from "../../../common/modal" import {showNotification} from "../../../../helpers/notifications" import {connect} fro...
'use strict'; var bodyMain = document.getElementById('bodymain'); var book = []; var hero = {}; function resetHero(){ hero.name = prompt('What is the new heroes name?'); hero.hitPoints = 100; hero.armorHP = 0; hero.items = []; hero.scenesVisited = []; hero.attackPower = 10; HB.setValue(100); renderPage...
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import _inherits from "@babel/runtime/helpers/esm/inherits"; import _createSuper from "@babel/runtime/helpers/esm/createSuper"; import _toConsumableArray from "@babel/runtime/helpe...
/** * Copyright 2015 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
$(function() { InitUserMenu(); InitLoginLogout(); autosize($("textarea")); InitTags(); InitVoting(); InitComments(); InitTabLayout(); }); /** * initialize the user menu or login menu */ function InitUserMenu() { document.popup = false; $("#signin, #whodat").click(function() { var menu = $("#usermenu, #log...
const { ExpressionEngine } = require('../'); const { Extensions } = require('botbuilder-expression'); const assert = require('assert'); const invalidExpressions = [ "a+", "a+b*", "fun(a, b, c", "func(A,b,b,)", "a.#title", "\"hello'", "user.lists.{dialog.listName}", "a===a" ]; const badExpressions = ...
/* * Copyright 2018 - Present Okta, 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 ...
/* Copyright (c) 2012 <NAME> <<EMAIL>> MIT License 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, publis...
/* * Copyright 2019 Adobe. All rights reserved. * This file is licensed 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.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
/******************************************************************************* * Copyright 2017 The MITRE Corporation * and the MIT Internet Trust Consortium * * 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 ...
/* Big thanks to FP(FunPoster/system2k) for converting eldit file extension .pxr to Node JS */ const fs = require("fs"); const EventEmitter = require("events"); const util = require('util'); let _file_exists = util.promisify(fs.access); async function file_exists(file) { try { await _file_exists(file, fs.con...
import { createAction, handleActions, } from 'redux-actions'; import { call, fork, // join, put, take, select, } from 'redux-saga/effects'; // import { // delay, // } from 'redux-saga'; const constant = require('../constant'); const threeStyleQuizProblemListUtils = require('../threeS...
'use strict'; var os = require("os"); var fs = require("fs"); var yamljs = require("yamljs"); var async = require('async'); var mkdirp = require("mkdirp"); var rimraf = require("rimraf"); var EasyZip = require('easy-zip').EasyZip; var soajsUtils = require ("soajs").utils; var colName = "services"; /** * function tha...
var names = [] var brushActives = [] var activeExtents = {} function plot_pc(vars, points, context, customs,plotDims){ var colorScale = generate_color_scale(vars[0],customs[0]) var title = "Parallel Coordinates of " var allPts = [] var names = [] for(var i = 0; i < vars.length; i++){ if(customs[i]!=nu...
const exports = (module.exports = {}); exports.companiesWithMessageCount = [ { organizationName: 'Bedriften', organizationNumber: '912602370', quantityUnprocessedMessages: 5, }, { organizationName: '<NAME>', organizationNumber: '812602372', quantityUnprocesse...
let currentAccount; let lastTransactionTime; let invested; let params; let amountuser; let statstotalprof; let walletTronWeb; let contract; let siteLoading = true; let acctConnected = false; let lastTrans = null; const defaultSponsor = '<KEY>'; //const contractAddress = 'TCLivb8XJgLgioRAz9Uvw3nbJe88wEyKMp'; const con...
import React, {Component, PropTypes} from 'react'; import keycode from 'keycode'; import transitions from '../styles/transitions'; import FocusRipple from '../internal/FocusRipple'; /** * Verifies min/max range. * @param {Object} props Properties of the React component. * @param {String} propName N...
'use strict' const chalk = require('chalk') const express = require('express') const mongoose = require('mongoose') const http = require('http') const socketServer = require('socket.io') const bcrypt = require('bcrypt') const app = express() const userSchema = require('./models/user') const conversationSchema = require...
import * as React from 'react'; import ProjectItem from './project-item.component'; import {ProjectService} from "../services/project-service"; import {debounce, reduce} from "lodash"; import {LocalStorageService} from "../services/localStorage-service"; import * as ReactDOM from "react-dom"; import CreateProjectCompon...
import formatDate from '../common/formatDate'; import getJSON from './util/getJSON'; import Promise from 'bluebird'; import LeagueTab from './tabs/league'; import StatsTab from './tabs/stats'; import RankingsTab from './tabs/rankings'; import ProfileTab from './tabs/profile'; import MatchesTab from './tabs/matches'; im...
// Copyright 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/plat...
var _ = require('lodash'); var qs = require('querystring'); var doT = require('dot'); var previewAttachments = require('previewAttachments'); var FROM_TYPE = require('attachmentsPreview.enum').FROM_TYPE; var attachmentTpl = doT.template(require('./tpl/attachment.htm')); var picAttachmentTpl = doT.template(require('./tp...
'use strict'; const controllers = require('./lib/controllers'); const categories = require.main.require('./src/categories'); const groups = require.main.require('./src/groups'); const helper = require.main.require('./src/controllers/helpers'); const modulesSockets = module.parent.require('./socket.io/modules'); const ...
import { remote } from 'electron' import * as pages from '../pages' import * as zoom from '../pages/zoom' import * as yo from 'yo-yo' import emitStream from 'emit-stream' import { UpdatesNavbarBtn } from './navbar/updates' import { DownloadsNavbarBtn } from './navbar/downloads' import { SitePermsNavbarBtn } from './nav...
import { map, forEach } from 'async-array-methods' import fs from 'fs-extra-promisify' import path from 'path' import DependencyResolver from 'dependency-resolver' import { set, get, find, sortBy } from 'lodash' import to, { is } from 'to-js' import { transform } from '@babel/core' import globby from 'globby' import ...
const fs = require('fs') const path = require('path') const debug = require('debug')('linkchecker') const cheerio = require('cheerio') const urlencode = require('urlencode') const agent = require('superagent') const mkdirp = require('mkdirp') const ms = require('ms') const walker = require('./walker') const javadoc = ...
function callPlayer(frame_id, func, args) { if (window.jQuery && frame_id instanceof jQuery) frame_id = frame_id.get(0).id; var iframe = document.getElementById(frame_id); if (iframe && iframe.tagName.toUpperCase() != 'IFRAME') { iframe = iframe.getElementsByTagName('iframe')[0]; } if (ifram...
/** **************************************************************************************************** * File: calculateCVSSFromMetrics.js * Project: cvsscalculator * @author <NAME> <<EMAIL>> on 18-Feb-2019 *******************************************************************************************************/ 'u...
'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 ("...
function CInterface() { var _oTextHead; var _oText; var _oTextBack; var _oParent; var _oAudioToggle; var _oButExit; var _oBuyCardBut; var _oBetDisplay; var _oCreditText; var _oCreditNum; var _oButPlus; var _oButMinus; var _oTotWinText; var _oTotWinNum; var _oB...
import React from 'react'; import { StatusBar, View, Text, Platform, TextInput, Switch, Picker, ActionSheetIOS, Dimensions, KeyboardAvoidingView, ScrollView, findNodeHandle } from 'react-native'; import DatePicker from 'react-native-datepicker'; import Feather from 'react-native-vector-icons/Feather'; import { getStatu...
var events = require('events'); var util = require('util'); var async = require('async'); var utils = require('./utils.js'); var errors = require('./errors.js'); var types = require('./types.js'); var ControlConnection = require('./control-connection.js'); var RequestHandler = require('./request-handler.js'); var requ...
/* eslint-disable consistent-return */ /* eslint-disable no-restricted-syntax */ /* eslint-disable no-use-before-define */ /* eslint-disable no-console */ const dotenv = require('dotenv'); dotenv.config(); const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUIL...
const jkr = require("Jkr"); let PlayerBaseModule = require("PlayerBaseModule"); let ServerMessageModule = require("ServerMessageModule"); let Player = cc.Class({ extends: cc.Object, properties: { _playerId: 0, playerModule: null, messageModule: null, serverConnector: null, ...
var selectedFeature, newMarker; var mapboxStreets = L.tileLayer('https://{s}.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=<KEY>', { maxZoom: 18, attribution: "Map data &copy; <a href='http://openstreetmap.org'>OpenStreetMap</a> contributors, <a href='http://creativecommons.org/licenses/by-sa/2.0...
/** @format */ var collapsedImg = require("../img/collapsed.png") var hp_this var hp_corpusChooser = { options: { template: "" }, _create: function() { this.totalTokenCount = 0 this._transform() var self = this this.updateAllStates() // Make the popup disa...
// Try to gracefully parse as many decks as possible // Parsing data is like the worst function parseDecklist() { deckmain = $('#deckmain').val(); deckside = $('#deckside').val(); // Let's store the lists in a tidy little array maindeck = []; sideboard = []; // And let's store their counts for future refe...
// Prepare Module const firebase = require('firebase'); const _ = require('lodash'); const expressTemplate = require('@tinypudding/firebase-express-template'); const middleware = require('./files/middleware'); const ON_DEATH = require('death'); let isDebug = false; if (process.argv[2] === "test") { isDebug = true; } co...
import { ActionButton, AssetDropdownMenuItem } from "styles/Styles"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Instruction, MyModal, Section, TextPopupTitle, } from "modals/styles/Styles"; import { Spin } from "antd"; import { connect } from "react-redux"; import { fetchGasPri...
/* * 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 ...
const textkeep = {} const defaultans = {} const defdef = ['Não reconheci o que você enviou.', 'Poderia responder minha pergunta anterior?'] const messages = [] //--------TODO--------// /** * */ class StepStuff{ constructor(tags=[], actions=[], msg=[]){ for (let i in tags) this[tags[i][0]] ...
'use strict'; var srlog = SIREPO.srlog; var srdbg = SIREPO.srdbg; // will get rid of angular stuff but need it initially class UIAttribute { //extends UIOutput { constructor(name, value) { this.name = name; this.setValue(value); } static attrsToTemplate(arr) { let s = ''; ...
/* global chrome, version, getText, explorerUrl, capitalize, capitalizeInputValue, longToNormalAmount, riseRegex, getLabeledIconElement, getTextNode */ let currentaddresses = []; /** * Check if the given address is a valid RISE address; also, show an error on the web page if the address was not valid * @param {strin...
/* ### Statements ### */ let idTask; let dateIni; let dateFim; let dateAlertYellow; let dateAlertRed; let annotation_oppening; let textDesc; let textDescannotation = new Map(); /* ### Main Functions ### */ const responseError = (error) => { if(error.response.status == 304){ alert('Essa Task...
function clearField(input) { if (input) { input.value = ""; } }; function remove_post(key) { if (confirm("Are you sure?")) { var firebase_ref = firebase.database().ref().child("Posts").child(key); firebase_ref.child("comments").once('value').then(function(snapshot) { // console.log(snapshot.val()); ...
"use strict"; var mycan = document.getElementById("mycan"), canvas = mycan.getContext("2d"); // fixes width and height mycan.width = mycan.offsetWidth; mycan.height = mycan.offsetHeight; var objects = [], strokeColor = "black", fillColor = "rgba(0, 255, 0, 0.3)", olColor = "white"...
import {resolve, join } from 'path' import { assertBigNum } from './matchers' const contractPathHead = resolve(__dirname + '/../..') // Paths for finding solidity files during compilation via deployer. // See compile.js for more info. process.env.SOLIDITY_INCLUDE = [ 'contracts/', 'contracts/examples/', 'contra...
const p360 = require("../../modules/nodep360/p360"); const getPdfsInFolder = require("../../modules/getPdfsInFolder/getPdfsInFolder"); const pdfReader = require("../../modules/pdfReader/pdfReader"); const findVarselData = require("../../modules/archiveVisDocument/findVisVarselData"); const getBase64 = require("../../mo...
// JScript File var markers = new fMarkers(); var polylines = new fPolylines(); var polygons = new fPolygons(); var map; var trafficInfo = null; var gdir; //var geocoder = null; var addressMarker; var returned_result = null; var infowindow = null; var directionDisplay; var directionsService; function MapClickFunctio...
// JavaScript Document function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.argumen...
import React, { PropTypes } from 'react'; import _ from 'lodash'; import moment from 'moment'; import { browserHistory } from 'react-router'; import RS, { Option } from '../../../../resources/resourceManager'; import { CONTRACT_STATUS, CONTRACT_RATE_TYPE } from '../../../../core/common/constants'; import { getUrlPath }...