text
stringlengths
3.22k
29.5k
let canvas; let choice_region; let choice_stat; let regions; let regionNames = ['State of Idiots', 'State of Mediocre', 'State of Gifted']; let regionIqMean = [60, 95, 135]; let blue, pink, common; let educationColors; let jobColors; let charts; let yearCounter = 0; let yearCountReset = 16; function setup() { ca...
/////////////// BUILD_LISTS /////////////// var fallenButton = document.getElementById('btn-fallen-heroes'); fallenButton.addEventListener('click', displayHeroes); // Display fallen heroes function displayHeroes() { var container = document.getElementById('fallen-heroes'); container.innerHTML ...
/* eslint-disable react/prop-types */ import React, { useState, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Grid, Button, TextField, Checkbox, Dialog, DialogActions, DialogContent, DialogContentText } from "@material-ui/core"; import styles from "./editFormSectionS...
 var frmData; //wPhyDimId //Date //wMCNo //wPerSize //wShiftID //wMouldNo frmData = Bind({ oData: GetNewData() }, { 'oData.wPhyDimId': '#spnMatrlId', 'oData.wMCNo': '#txtMC', 'oData.wPerSize': '#txtPer', 'oData.wShiftID': ".ddlShift", 'oData.wMou...
// export default i18n import i18n from "i18next"; import { initReactI18next } from "react-i18next"; // the translations // (tip move them in a JSON file and import them) const resources = { en: { translation: { "Welcome Back": "Welcome Back", "Please sign in to your account.": "Please sign in to you...
`use strict`; console.log ('Here is : ', 'array'); function task(num) { document.write(`task ${num} <br>`); console.log(`task ${num}`); } function hline() { document.write(`<br> <hr>`); } /* 1 Create a function called subtract that takes a single parameter n, and return the subtraction of all starting from ...
/** * THIS PLACE IS STORE ANY INFORMATIONS OF THE CODING... * */ //------------------------------------------------------------------------------------------------ /** * 1. This is method to create Firebase Auth using the property firebase.auth(). * * @param {String} username value from the inputUsername. *...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel...
const $ = el => document.querySelector(el); const win = $("#win"); const ctx = win.getContext("2d"); const WHITE = 0, BLACK = 1; const KING = 0, ARCHER = 1, PAWN = 2; const LAVA = 0, WALL = 1, CLIFF = 2; const ROW = 0, COL = 1; const board = { squares: [], squareSize: 32, spaceAround: 64, leftSpace...
const asyncDone = require('async-done'); const gulp = require('gulp'); const gutil = require('gulp-util'); const gulpFile = require('gulp-file'); const shell = require('gulp-shell'); const ghPages = require('gulp-gh-pages'); const path = require('path'); const os = require('os'); const exec = require('child_process').e...
function ReSize(){ WIDTH = window.innerWidth; HEIGHT = window.innerHeight; //WIDTH = 1024; //HEIGHT = 768; drawing.width = WIDTH; drawing.height = HEIGHT; DrawMap(); } function DrawMap(){ var drawing = document.getElementById("drawing"); var con = drawing.getContext("2d"); //clear background con.fillStyle...
import { app, Tray, Menu, ipcMain, shell, globalShortcut, BrowserWindow, dialog, Notification } from 'electron' import { isWindows, isOSX, isDev, isWinXp, isWin7 } from '../comm/is' import { resolve, join } from 'path' import { homedir } from 'os' import i18n from '../comm/i18n'; impor...
//Write a function identity that takes an argument and returns that argument const identity = (x) => x; //Write a binary function addb that takes two numbers and returns their sum const addb = (a, b) => a + b; //Write a binary function subb that takes two numbers and returns their difference const subb = (a, b) => a ...
import { CID, bytes } from 'multiformats' import { BitcoinBlock, BitcoinTransaction as BitcoinBlockTransaction } from 'bitcoin-block' import * as bitcoinBlockCodec from './bitcoin-block.js' import * as bitcoinTxCodec from './bitcoin-tx.js' import * as bitcoinWitnessCommitmentCodec from './bitcoin-witness-commitment.js'...
import React, {useEffect, useState} from "react"; import "./finances.scss" import {SearchUser} from "./components/filter/searchUser"; import {SearchIp} from "./components/filter/ipList"; import {Calendar} from "../../components/calendar/Calendar"; import {Dropdown} from "../../components/dropdown/Dropdown"; import {Inp...
import React from 'react'; import CompareStatRow from '../components/CompareStatRow' const CompareTeamAvg = (props) => { const { team1roster } = props const { team2roster } = props let games1 = 82 let games2 = 82 switch(team1roster[0].season.year) { case 1998: games1 = 50 break case 20...
// Budget Data Controller var budgetController = (function () { // Expense object prototype var Expense = function (id, description, value) { this.id = id; this.description = description; this.value = value; this.getPercentage = function (totalIncome) { return totalIncome > 0 ? Math.round((t...
// Functions here will not work on the full page tab of a new sale as there are duplicates // on the modal in salesorder.php $(document).ready(function () { $("#notif").hide(); }); $("#idBtn").on('click', function () { var id = $("#custId").val(); $.ajax({ url: '/search-customer/' + id, typ...
'use strict' var util = require('util') var path = require('path') var cmdLineArgs = require('command-line-args') var cfg = require('node-d3ck-cfg') module.exports.cfg = cfg var log = require('node-d3ck-log') module.exports.log = log var logUtil = require('node-d3ck-log/util') module.exports.logUtil = logUtil var cm...
/** * Base PassImages class to add image filePath manipulation */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.PassImages = exports.IMAGE_FILENAME_REGEX = void 0; const util_1 = require("util"); const path = require("path"); const fs_1 = require("fs"); const imagesize = require...
/*! canvas-to-tiff 1.7.0 (c) <EMAIL> 2015-2017 License: CC BY-NC-SA 4.0 */ "use strict"; /** * Static function to convert a CORS-compliant canvas context * to a 32-bits TIFF file (buffer, Blob and data-URI). * * The TIFF is by default saved in big-endian format as interleaved RGBA * and ZIP compressed data. ...
// ------ CONFIG ----------------------------------------------------------------------------------------------------------------------------------------------- const hadouken = { // engine used for hands detection. // engine 1 is simple, and can detect many hands, but can not detect fingers. // engine 2 ...
import React, { useState } from 'react'; import Colours from '../config/colours.js'; import Gui from '../config/gui.js'; import { View, StyleSheet, Text, StatusBar, TouchableOpacity, ScrollView, ActivityIndicator, Modal, } from 'react-native'; import { MaterialCommunityIcons } from '@expo/vector-icons'; impor...
import { IKCP_OVERHEAD, IKCP_CMD_PUSH, IKCP_CMD_ACK, IKCP_CMD_WASK, IKCP_CMD_WINS, IKCP_RTO_MAX, IKCP_ASK_TELL, createSegment, } from './create' // @private export function parseUna(kcp, una) { const length = kcp.snd_buf.length let i = 0 for (i = 0; i < length; i += 1) { if (kcp.snd_buf[i].s...
import * as Block from "../../../../../../../../../../../../../../node_modules/bs-platform/lib/es6/block.js"; import * as Curry from "../../../../../../../../../../../../../../node_modules/bs-platform/lib/es6/curry.js"; import * as React from "react"; import * as Caml_obj from "../../../../../../../../../../../../../...
// Foliage v 1.0 // Author: <NAME> // Date created: 12-January-2020 // Last updated: 9-April-2020 // Contact e-mail: <EMAIL> let imgOriginal; let imgCounter = 0; var canvasDiv; var table; var thumbnail; var percentCanopyCover; var containerTable; var resultsTable; var btnDownload; var btnDeleteTable; var btnUploadLab...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); require("core-js/modules/es6.array.map"); require("core-js/modules/es7.array.includes"); require("core-js/modules/es6.string.includes"); require("core-js/modules/es6.object.assign"); var _classCallCheck2 = _interop...
let addToCart = document.querySelectorAll('#addToCart'); let addToCartConfirm = document.getElementById('addToCartConfirm'); var globalItem; var totalAmount = 0; var totalCash=0; let cashBox = document.getElementById('cashBox'); var quantityBox = document.getElementById("quantityBox"); var removeFromCart = document.q...
import React from 'react'; import 'antd/dist/antd.css'; import { Steps, Form, Button, Card, Icon, message } from 'antd'; import { SubText, GeneralText, ButtonWrapper, Wrapper } from './WizardStyles'; import RegisterStepOne from '../RegisterStepOne/RegisterStepOne'; import RegisterStepTwo from '../RegisterStepTwo/Regist...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require("babel-runtime/regenerator"); var _regenerator2 = _interopRequireDefault(_regenerator); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var d...
const { Host } = await ns('flair.app'); const { Page } = await ns('flair.ui'); /** * @name ClientHost * @description Client host implementation */ $$('sealed'); Class('', Host, function() { let mountedApps = {}, hashChangeHandler = null; $$('override'); this.construct = (base) => { base...
import Cookies from "js-cookie"; import queryString from "query-string"; var authEvent = new Event('authwallCleared'); export default class AuthWall { constructor(el) { this.el = el; this.toaster = el.querySelector('.auth-toaster'); this.site = document.getElementById('MainContent'); // this.footer ...
//TODO //add view saleries opt //emp titles on all mgr query //make dept & role ?'s choices not number //validation const inquirer = require('inquirer'); const mysql = require('mysql'); const cTable = require('console.table'); const db = mysql.createConnection({ host: 'localhost', port: 3306, user: 'root'...
/** * Search Scripts * * Main search scripts for SNAC * * @author <NAME> * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause * @copyright 2015 the Rector and Visitors of the University of Virginia, and * the Regents of the University of California */ jQuery.fn.exists = function(){r...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { Table, Input, InputNumber, Form, Typography, Button, Modal, Spin } from 'antd' import './index.css' import { Auth, Hub, Storage } from "aws-amplify"; import { API } from 'aws-amplify'; const originData = []; const Edit...
const moment = require('moment'); const distance = require('jaro-winkler'); const { parse } = require('parse-torrent-title'); const { torrentFiles } = require('../lib/torrent'); const { getMetadata, getImdbId } = require('../lib/metadata'); const { Type } = require('./types'); const MIN_SIZE = 10 * 1024 * 1024; // 10 ...
"use strict"; var canvas; var gl; var numPositions = 6; var texSize = 256; var numChecks = 64; var near = 0.3; var far = 3.0; var fovy = 45.0; // Field-of-view in Y direction angle (in degrees) var aspect = 1.0; // Viewport aspect ratio var texture1, texture2, texture3, texture4; // Create a checkerbo...
const $hideMap = document.querySelector('#hide-map'); const $reservationBtn = document.querySelector('#reservation-btn'); // 마커를 담을 배열입니다 let markers = []; let mapContainer = document.getElementById('map'), // 지도를 표시할 div mapOption = {}; // 장소 검색 객체를 생성합니다 let ps; let geocoder; let coord; let local = ''; ...
function TextTexture(t) { function i() { return document.createElement("canvas") } function e(t) { return void 0 === t } function n(t, e) { if(t.length) { var n = i().getContext("2d"); return n.font = e, t.map(function(t) { return n.measureText(t).width }).reduce(function(t, i) { return...
import React, { useState, useEffect } from "react" //import moment from "moment" import dayjs from "dayjs" import Game from "./Game/Game" import GameFilter from "./GameFilter/GameFilter" import Rating from "./Game/Rating/Rating" import DateRange from "../DateRange" import ExportList from "../ExportList" import Table fr...
"use strict"; /* BASICODE in the Browser demonstration * (c) 2017 <NAME> * Released under the Expat MIT licence */ var prefix = "BASICODE"; var app_id = "basicode-script"; // settings var settings_prefix = ["BASICODE", app_id, "settings"].join(":"); function retrieveSettings() { var settings = JSON.parse(lo...
const event = require('./actions'); const metadata = require('probot-metadata'); const configPath = "merge-guard-bot-config.yml"; const APPROVED_USER_KEY = "approved_users"; const defaultConfig = { active_team_member: "vilias,sssandyad,ajpahlevi,afrizal7", create_status_check_merge_based_on_label: { do_not_mer...
/*global THREE*/ import { geometryInfo } from './Geometry.js'; import { root, map } from './root.js'; /** _ _____ _ _ * | | |_ _| |_| | * | |_ _| | | _ | * |___|_|_| |_| |_| * @author lo.th / https://github.com/lo-th * * SHOT - VEHICLE */ function Vehicle() { this.ID = 0; this.cars = []; ...
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://www.javascriptsource.com --> <!-- Begin // Insert number of questions var numQues = 160; // Insert number of choices in each question var numChoi = 4; // Insert number of questions displayed in answer area ...
$(document).ready(function(){ $('.dropup').on('click', '.add-leave', function(){ $.ajax({ headers: {'X-CSRF-TOKEN': $('input[name=_token]').attr('value')}, type: 'POST', url: $('#ajax-center-url').data('url'), data: {method : 'getFormLeave'}, succe...
// Shape Constructors function makePlane(width, height, x, y, z, rotX, rotY, rotZ, material) { var geometry = new THREE.PlaneGeometry( width, height); var mesh = new THREE.Mesh( geometry, material ); if (x !== null) {mesh.position.x = x;} if (y !== null) {mesh.position.y = y;} if (z !== null) {mesh.position....
// UI CONTROLLER const UIController = (() => { // DOM elements const elements = { colorControls: document.querySelector(".color-controls"), colorInput: document.querySelector(".color-input"), hslCopyValue: document.querySelector(".hsl-copy-text"), hexCopyValue: document.querySelector(".hex-copy-tex...
import * as FileUtils from "../utils/fileUtils.js"; import * as HttpUtils from "../utils/httpUtils.js"; import * as Interpolation from "../utils/interpolation.js"; /** * Manage image sprites * @module sprites */ /** Drawable sprite Component */ export function newComponent_spriteImage(initOptions) { initOptions...
import moment from 'moment'; import { floor } from '../math'; import { INIT_RANGE, INIT_GRANULARITY } from '../constants/product'; import run from '../scripting'; import api from '../api'; import ws from '../websocket'; import * as selectors from '../selectors'; import { _calculateIndicators, addActiveOrder, add...
var compile = { transform: function(t, n, e) { var i = { events: [], html: "" }, r = { events: !1 }; if (r = compile._extend(r, e), void 0 !== n || void 0 !== t) { var s = "string" == typeof t ? JSON.pars...
"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 ("va...
/** * Created by kaicui on 17/8/22. * 表示战场上的一个英雄 * * 注意: * 1、hero被添加到一个team之后,可能会被注入一些属性,比如team属性 */ const oop = require("local-libs").oop; const event = require("local-libs").event; const Levelable = require("../../level/levelable"); const {SkillType} = require("../../skill/skill"); const {getRaceCamp} = requi...
// Creating map object var myMap = L.map("map", { center: [34.0522, -118.2437], zoom: 8, worldCopyJump: true }); //make the layers for controlling the map var baseLayers = { "Regular": L.tileLayer("https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/{z}/{x}/{y}?access_token={accessToken}", { ...
"use strict"; // @ts-check /** @typedef {import('../../fileshare').Content} Content */ /** @typedef {import('../../fileshare').ServerInfoResult} ServerInfoResult */ /* Getting server info */ const IPandPortElement = document.getElementById('IPandPort'); const theQRCodeElement = document.getElementById('theQRCode'); ...
const fs = require("fs"), os = require("os"), path = require("path"), process = require("process"), util = require("util"), appInsights = require("applicationinsights"), compression = require("compression"), express = require("express"), find = require("find"), prettysize = require(...
"use strict"; /** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.G3dLabelProvider = exports.g3dRegionQuery = exports.g3dChromosomeQuery = exports.g3dHaplotypeQue...
const path = require('path'); require('dotenv').config({path: path.resolve(process.cwd(), 'data', '.env')}); const Discord = require('discord.js'); const bot = new Discord.Client(); const fs = require('fs'); const mongoose = require('mongoose'); const TOKEN = process.env.TOKEN; if (mongoose.connect(process.env.DB_CON...
$(function () { checkSlogan(); var token = sessionStorage.getItem('token'); $.ajax({ url: 'cart/getCarts', type: 'Post', data: {'token': token}, dataType: 'JSON', success: function (result) { if (result.length == 0 || result == null) { $("....
var canvas, ctx, startElem, defaultBodyClick; var canvasx = canvasy = last_mousex = last_mousey = mousex = mousey = 0; var mousedown = false; var windowWidth = window.innerWidth; var windowHeight = window.innerHeight; var canCalcDistance = true; chrome.runtime.onMessage.addListener(async (message, sender, sendRespons...
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Availability, CareAge, CareExperience, Demeanor, Neighborhood } from 'gma-village-data-model' import { normalizePhone } from './forms/Normalize' import { required, minLength, maxLength, phone } from './fo...
import Vue from 'vue'; import merge from '@shinhotech/sh-ui/src/utils/merge'; import { getKeysMap, getRowIdentity, getColumnById, getColumnByKey, orderBy, toggleRowStatus } from '../util'; import expand from './expand'; import current from './current'; import tree from './tree'; const sortData = (data, states) => { ...
// @flow import { getLoader, startRpc, getWalletExists, createWallet, openWallet, closeWallet, discoverAddresses, subscribeToBlockNotifications, fetchHeaders, getStakePoolInfo } from "wallet"; import * as wallet from "wallet"; import { getWalletServiceAttempt, getTicketBuyerServiceAttempt, getAgendaServiceAtt...
/*! firebase-admin v5.4.1 */ "use strict"; /*! * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import { Dimmer, Loader, Popup, Button } from "semantic-ui-react"; import ReplyForm from './ReplyForm'; import Body from './PostBody'; import Avatar from '../Avatar'; import AuthorReputation from '../AuthorReputation'; import PostLink from '.....
"use strict"; var fs_extra_1 = require('fs-extra'); var path_1 = require('path'); require('reflect-metadata'); var typescript_1 = require('typescript'); var tsc_1 = require('@angular/tsc-wrapped/src/tsc'); var hybrid_file_system_factory_1 = require('../util/hybrid-file-system-factory'); var compiler_host_factory_1 = re...
import { Grid } from 'ag-grid-community'; import { LicenseManager } from 'ag-grid-enterprise'; import * as moduled3 from 'd3'; import * as Utils from './widget_utils'; import * as Helpers from './helpers'; import { exportFunc } from './widget_export'; import { JSONfunc } from './widget_json'; // make available to hel...
import CONFIG from '../config'; import DATA from '../Data'; import EVENTS from '../Events'; import Menu from './Menu'; import { PKMN } from '../main'; let DIR_VECTORS = { "left": [-1, 0], "right": [1, 0], "up": [0, -1], "down": [0, 1] } class Player extends Phaser.Sprite { constructor(game, data) { le...
//version AAA class Button { constructor(a){ this.onchange = a.onchange ? a.onchange : _=>{} this.n = a.n || `Do something` this.class = a.class this.el = document.createElement(`div`) this.el.style.display = `inline-block` this.el.style.padding = `12px 24px` this.el.style.font = `600 18px Lato, sans-s...
/** * This module is responsible for handling all UI-related state and * respond with UI-specific calls to watchers. UI changes may * be related to WebExtension-, Electron- or WebView-specific actions * @module ModuleUI */ const Plugin = require('vialer-js/lib/plugin') /** * Main entrypoint for UI. * @memberof AppBac...
/** * bubble */ import * as d3 from 'd3'; import {on, off, shuffle} from './utils'; class bubble { static P2 = Math.PI * 2; constructor (props) { this.props = {...props}; } init () { const self = this; const {container, options} = this.props; this.container = container; if(!container) ...
/** * @author pravesh */ var db; window.addEventListener('load', function(){ createDB({'dbname':'be.loyal', 'dbversion':'1.0'}); var lc = {'tablename':'loyalty.card', 'fields':{'id':'int(10) primary key', 'company':'text not null', 'description':'text not null', 'result':'text not null', 'format':'text not null'}};...
/** * 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...
var qiandao = { isfishing: false, //是否正在钓鱼 river_width: 0, river_height: 0, canvas: '', // 画布 context: '', //二维化画布 float_height: 60, //鱼漂的长度 setShake: '', // fishing_time: 5000, //钓鱼时间 wait_time: 6, //提示收杆等待时间 三秒(每0.5秒浮动一次) float_count: 1, //浮动次数 bar_top: 0, //鱼竿顶部 bar_l...
var keystone = require('../../../'); var _ = require('underscore'); var querystring = require('querystring'); exports = module.exports = function(req, res) { var viewLocals = { validationErrors: {}, showCreateForm: _.has(req.query, 'new') }; var sort = { by: req.query.sort || req.list.defaultSort }; var filt...
// 主程序相关方法 import { app, BrowserWindow, ipcMain, Menu, Tray, autoUpdater, globalShortcut } from 'electron'; const { port, host } = require('../electron/config'); import { BASE_SETTING, PLATFORM_VALUE, UPDATE_URL, UPDATE_MESSAGE } from '@constants/common'; import { ACTION_KEY, ACTION_RESULT, UPDATE_MESSAGE_TYPE } from '...
/* @license Rollup.js v2.74.1 Thu, 19 May 2022 17:50:11 GMT - commit e823eded9920d6082cc8c1afcf591b716ab6b160 https://github.com/rollup/rollup Released under the MIT License. */ 'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const require$$0 = require('path'); const pro...
const baseUrl = 'https://productz.herokuapp.com/api/v1'; const $ = (selector, all = false) => { if (all) return document.querySelectorAll(selector); return document.querySelector(selector) || {}; }; const createElement = (type, attributes) => { var element = document.createElement(type); for (var key ...
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
import React, { Component } from "react" import Item from "./item" import ExpandAllButton from "./button-expand-all" import getActiveItem from "../../utils/sidebar/get-active-item" import getActiveItemParents from "../../utils/sidebar/get-active-item-parents" import { colors, space, fontSizes, transition, me...
'use strict'; /* ------------------------------------------------------------------------------------------------ CHALLENGE 1 Write a function named `addOne` that takes an array of numbers, and returns a new array of the numbers, incremented by 1. Use `forEach` to loop over the input array and work with each value. ...
var moment = require('moment-timezone'), PriorityQueue = require('js-priority-queue'), validator = require('is-my-json-valid'), GTFSWorker = require('../lib/gtfsWorker.js'), util = require('../lib/util.js'), config, gtfsWorker; var validateTripStopsJSON = validator({ type: 'object', properties: { acc...
"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...
import React from 'react'; import moment from 'moment'; import { Link } from 'dva/router'; import { getOptionLabelForValue } from 'utils/utils'; import { fenToYuan } from 'utils/money'; import InvoiceModal from 'views/CheckIn/common/InvoiceModal'; import CancelModal from 'views/CheckIn/common/CancelModal'; import Autho...
"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...
/*jslint node: true */ "use strict"; var _ = require('lodash'); var db = require('./db.js'); var constants = require("./constants.js"); var conf = require("./conf.js"); var storage = require("./storage.js"); var main_chain = require("./main_chain.js"); function pickParentUnits(conn, arrWitnesses, onDone){ // don't e...
var flippedElement; var intv; var intvpres; pos = 0; presencontrol = 0; var counter=0; /*vars for dimension*/ /*end*/ $(document).on('ready',function(){ dimensiones(); imagenes(); scrollin(); }); $(window).on('resize',function(){ dimensiones(); imagenes(); scrollin(); /*greenbar();*/ }); function dimension...
// Copyright IBM Corp. 2013,2015. All Rights Reserved. // Node module: strong-cluster-control // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 // master: cluster control occurs in the master process /* eslint consistent-this: 0 */ var ...
var colorScheme; function showMap() { //the DIV where the map lives; it needs to be passed into the map instance var mapDiv = document.getElementById('map'); //create a map instance var map = new OM.Map(mapDiv); var tileLayer = new OM.layer.ElocationTileLayer("my_...
'use strict'; const { clone, cloneDeep } = require('./clone'); const SMALL_ARRAY_SIZE = 10; function isEmpty(item) { if (Array.isArray(item) || Buffer.isBuffer(item)) { return item.length === 0; } else if (isObject(item)) { return Object.keys(item).length === 0; } else { return true; } } function...
/** * Tencent is pleased to support the open source community by making WePY available. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
// import interfaceEs6 from 'interface-es6'; import warning from 'warning'; import { Util, Prop } from '../shared'; import common from './common'; import g2Creator from './g2Creator'; import configMerge from './configMerge'; import EventUtil from './event'; const COORD_FUNC_PROPS = common.COORD_FUNC_PROPS; const GEOM...
import React from 'react' import { css } from 'emotion' const MATCHES = { maxXS: window.matchMedia('(max-width: 375px)'), maxSM: window.matchMedia('(max-width: 576px)'), maxMD: window.matchMedia('(max-width: 767px)'), maxLG: window.matchMedia('(max-width: 992px)'), maxXL: window.matchMedia('(max-width: 1200p...
import { Card, CardBody, Container, Grid, ListGroup, ListGroupHeader, Surface, View, } from '@wp-g2/components'; import { ui } from '@wp-g2/styles'; import { createStore } from '@wp-g2/substate'; import React from 'react'; export const typographyOptionKeys = { fontFamily: { label: 'Font Family', value: 'I...
/* eslint-disable max-len */ import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import shortid from 'shortid' import MaskedInput from 'react-maskedinput' import { dissoc, isEmpty, isNil, merge, omit, prop, } from 'ramda' const omitOwnProps = omit([ 'base', ...
import _regeneratorRuntime from "@babel/runtime/regenerator"; import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import { map } from 'rxjs/operators'; import RxChangeEvent from './../rx-change-event'; import { nextTick, isElectronRenderer } from './../util'; import RxError from '../rx-error'; fun...
/** * Run this script to convert the project to TypeScript. This is only guaranteed to work * on the unmodified default template; if you have done code changes you are likely need * to touch up the generated project manually. */ // @ts-check const fs = require('fs'); const path = require('path'); const { argv } = ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commands = require("redis-commands"); const calculateSlot = require("cluster-key-slot"); const standard_as_callback_1 = require("standard-as-callback"); const utils_1 = require("./utils"); const lodash_1 = require("./utils/lodash"); cons...
Game.addToManifest({ bg_panic: "sounds/bg_panic.mp3", bg_creepy: "sounds/bg_creepy.mp3" }); /***************************** ACT III: THE MURDERS. Just lots and lots of murdering. Also, after 10 seconds, zoom out for 20 seconds into "the real world". ******************************/ function Stage_Evil(self, HACK){ ...
var w = 500; var h = 400; var rows = 20; var cols = 25; var gridSize = h/rows; var numberOfBombs = 50; var grid, time, playing, start, restartButtonImage; var flagImage, bombImage, bombsafeImage, sadImage, coolImage, happyImage; var drawScore = function(){ fill(100); rect(0, h, w, 100); textSize(48); textAli...