text
stringlengths
3.22k
29.5k
//constant to hold string to build IDs of buttons var CONST_STR_SQUARE_PREFIX = "squareID_"; //counter of knight's moves var nGlobalCounter = 0; //horizontal chess board size var nBoardSizeHorizontal = 8; //vertical chess board size var nBoardSizeVertical = 8; //ASCII code for letter "a" var chALetterACIICode = 9...
/** * Copyright (c) Hathor Labs and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { t } from 'ttag'; import $ from 'jquery'; import ModalSendTx from '../components/ModalSendTx'; imp...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const bignumber_js_1 = __importDefault(require("bignumber.js")); const lodash_1 = require("lodash"); con...
const debug = false; debugLog = debug ? console.log.bind(null, 'WEB PROWLER DEBUG: ') : () => {}; debugLog('pagescript'); // setTimeout(requestRegisterPage, 5*1000); const SCROLL_DELAY_MS = 0.5 * 1000; const KEYUP_DELAY_MS = 10 * 1000; const ON_KEYUP_ENABLED = false; let innerText_before = ''; let keyupTi...
/****************************\ ============================ INIT ENGINE ============================ \****************************/ // init engine var engine = new Engine(); // run in browser mode console.log('\n Wukong JS - BROWSER MODE - v' + engine.VERSION); console.log(' type "engin...
function Form_Load( ) { DATE_from.AddYears(-1); WGSheet_2.TopHead_MergeCell("COL_1", 0, "COL_5", 0); GRP_2.SetVisible(false); Form.SetControlPos("GRP_1", 10, 85, 1200, 800); BTN_3.SetText("▼"); Set_Combo(); } function BTN_1_Click( ) { var cur_row = WGSheet_1.InsertRow(-1); WGSh...
#!/usr/bin/env node const argv = require('yargs') .usage('Usage: $0 [options] pathToImage') .demand(1, 1) .options({ 'port': { alias: 'p', describe: 'Port number the service will listen to', type: 'number', group: 'Image service', default: 3002 }, 'yMax': { alias: ...
"use strict"; /** * @module service.filter.tools */ var assert = require("node-opcua-assert"); var SimpleAttributeOperand = require("../_generated_/_auto_generated_SimpleAttributeOperand").SimpleAttributeOperand; var EventFilter = require("../_generated_/_auto_generated_EventFilter").EventFilter; var StatusCodes =...
import { DATA_ROOT } from "./global" import { hashtable_sprites, hashtable_spriteinfo_t_create, hashtable_spriteinfo_t_add } from "./hashtable" import { image_load, image_destroy } from "./image" import { logfile_message } from "./logfile" import { resourcemanager_getJsonFiles } from "./resourcemanager" import {...
/* Copyright 2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
/** * ----------------------------------------------------------------------------- * Imports * ----------------------------------------------------------------------------- */ const chalk = require('chalk'); const generator = require('./generator'); const prettier = require('prettier'); const path = require('path...
/* * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. */ // Wait for the deviceready event before using any of Cordova's device APIs. // See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready document.addEventListener("deviceready", onDeviceReady, false); cons...
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
/* HOMEWORK */ /** * 1) Pepe's age. Vypište na konzoli smysluplnou oznamovací větu ohledně věku Pepy, pokud znáte jeho rok narození, * který je uložený v proměnné a pro výpis použijte zřetězení stringů. Pro názvy proměnných používejte smysluplnou * angličtinu. */ // Solution here const date_of_birth = 1996...
const handlebars = require("handlebars"); const gameTemplate = require("../templates/game.hbs"); const makerTiles = require("@18xx-maker/games").tiles; const any = require("ramda/src/any"); const assoc = require("ramda/src/assoc"); const concat = require("ramda/src/concat"); const contains = require("ramda/src/contai...
/* ---- # Kico Style 2.1 # By: Dreamer-Paul # Last Update: 2018.12.25 一个简洁、有趣的开源响应式框架,仅包含基础样式,需按照一定规则进行二次开发。 欢迎你加入缤奇,和我们一起改变世界。 本代码为奇趣保罗原创,并遵守 MIT 开源协议。欢迎访问我的博客:https://paugram.com ---- */ function Kico_Style () { var kico = {}; var that = this; // 批量执行 this.forEach = function (data, fn) { ...
'use strict'; // module.exports = Renderer; const assign = require('object-assign'); const helpers = require('./helpers'); const Lexer = require('./lexer'); const Parser = require('./parser'); const Compiler = require('./compiler'); const Resolver = require('./resolver'); const Ca...
const test = require('tape') const recast = require('recast') const symbol = require('../features/es6/symbol.js') const promise = require('../features/es6/promise.js') const map = require('../features/es6/map.js') const weakmap = require('../features/es6/weak-map.js') const set = require('../features/es6/set.js') co...
import { LitElement, html, css } from 'lit-element'; import { repeat } from 'lit-html/directives/repeat.js'; import '@polymer/app-layout/app-scroll-effects/app-scroll-effects.js'; import '@polymer/app-layout/app-toolbar/app-toolbar.js'; import '@polymer/app-layout/app-header/app-header.js'; /** * An element for dispa...
//some vars var output = ''; var divAccuracy = ''; var bigButton = ''; var divLastUpdate = ''; var watchID = 0.0; function startIndex() { //load the settings first startSettings(); //setup the html elements setMainArea(); setLastUpdate(); setOnOff(); output = document.getElementById("out"); if (localStor...
import { Button, Card, Container, Skeleton, Stack, Table, TableBody, TableCell, TableContainer, TablePagination, TableRow, TextField, Typography, } from '@mui/material'; import { Box, typography } from '@mui/system'; import { filter } from 'lodash'; import { Icon } from '@iconify/react'; impor...
const PDFDocument = require("pdfkit"); const fs = require('fs'); const tools = ( () => { return { randominteger: (min, max) => { return Math.floor( min + Math.random()*(max-min)); }, normalrandominteger: (min, max, n) => { // CLT return n === 0 ? blueprint.tools.randominteger(min,max) : Math.floor(Ar...
import React, {useRef, useState} from 'react'; import ReactDOM from 'react-dom'; import {Navbar,Route,Link, Redirect} from 'react-router-dom'; import { Container, Row, Col, FormInput, FormGroup, Button } from 'shards-react'; import api from '../../Api' import '../../../css/login.sass' function Login() { const [...
import * as React from "react"; import { useState, useEffect, useRef, useCallback } from "react"; import ReactMapGL from "react-map-gl"; import Geocoder from "react-map-gl-geocoder"; import GridSource from "./sources/GridSource"; import ParcelSource from "./sources/ParcelSource"; import GridHoverSource from "./sources/...
/* * RedGPU - MIT License * Copyright (c) 2019 ~ By RedCamel( <EMAIL> ) * issue : https://github.com/redcamel/RedGPU/issues * Last modification time of this file - 2020.1.20 18:6:15 * */ "use strict"; import UUID from "../../base/UUID.js"; import Mesh from "../../object3D/Mesh.js"; import UTIL from "../....
;(function () { 'use strict'; // iPad and iPod detection var isiPad = function(){ return (navigator.platform.indexOf("iPad") != -1); }; var isiPhone = function(){ return ( (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) ); }; // Go to next se...
// var Twitter = require('twitter'); const Twit = require("twit"); const TIE = require("@artificialsolutions/tie-api-client"); const request = require("request"); const shortid = require("shortid"); const dotenv = require("dotenv"); const _ = require("lodash"); const base64 = require("node-base64-image"); // var giphy ...
import React from 'react'; import {connect} from 'react-redux'; import classnames from 'classnames'; import {range} from 'range'; import update from 'immutability-helper'; import {put, select, takeEvery} from 'redux-saga/effects'; import {wrapAround, editDecryptionCell, lockDecryptionCell, selectTaskData, makeBigramC...
import extend from '@form-create/utils/lib/extend'; import {byCtx, copyRule, enumerable, getRule, invoke, parseFn} from '../frame/util'; import is, {hasProperty} from '@form-create/utils/lib/type'; import {err} from '@form-create/utils/lib/console'; import {baseRule} from '../factory/creator'; import RuleContext from '...
import React, { Component } from 'react' import TabStream from './TabStream.js' import Editor from './Editor.js' const electron = window.require('electron') const ipcRenderer = electron.ipcRenderer const fs = window.require('fs') const app = electron.remote.app const webFrame = electron.webFrame webFrame.registerURLS...
import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { graphql } from '@apollo/client/react/hoc'; import { Facebook } from '@styled-icons/fa-brands/Facebook'; import { Twitter } from '@styled-icons/fa-brands/Twitter'; import themeGet from '@styled-system/theme-get'; import { get } from 'l...
$(function() { var deptId = $("#deptId").val(); //获取病人列表 var peopleListUrl = '/nur/patientGlance/queryBedPatientList.do?workUnitType=1&workUnitCode=' + deptId; if (typeof isHistoryDoc !== 'undefined' || !isHistoryDoc) { $.post(ay.contextPath + peopleListUrl, {}, function(data) { if (data.obj) { ...
import { apiKey, testMPID, v3CookieKey, v4CookieKey, v4LSKey, workspaceToken, workspaceCookieName, das } from './config'; var pluses = /\+/g, getLocalStorageProducts = function getLocalStorageProducts() { return JSON.parse( atob( localStorage.getItem( mPartic...
import { getGridRegion } from './utils/grid.js' import { generateNamedTemplate } from './store/area.js' export const unitMeasureMap = { px: 300, fr: 1, em: 4, '%': 10, minmax: '20px, 60px', auto: '', 'min-content': '', 'max-content': '', initial: '', } export function getElementTag(area) { switch ...
import ow from 'ow'; import { PuppeteerPlugin } from 'browser-pool'; import BrowserLauncher from './browser_launcher'; import { isAtHome } from '../utils'; import { DEFAULT_USER_AGENT } from '../constants'; import applyStealthToBrowser, { StealthOptions } from '../stealth/stealth'; // eslint-disable-line no-unused-var...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true, }); exports.relative = exports.resolve = exports.extname = exports.absolute = exports.basename = exports.dirname = exports.join = exports.normalize = exports.isAbsolute = void 0; /* eslint-disable no-param-reassign */ /* esl...
const menu = [ { id: 1, title: "Tteokbokki", category: "Korea", price: 10.99, img: "https://twoplaidaprons.com/wp-content/uploads/2020/09/tteokbokki-top-down-view-of-tteokbokki-in-a-bowl-500x500.jpg", desc: `Spicy rice cakes, serving with fish cake.`, }, { id: 2, title: "<NAM...
// jshint strict: false /** * Module - * A factory for building module classes. * Modules are built up from a module dictionary/object. * * @module core/Module * @access protected * * @example * import Module from '../core/Module' * const MyModule = Module({ * name: 'MyModule', // Required * * // An o...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DataTableEntries from './DataTableEntries'; import DataTableSearch from './DataTableSearch'; import DataTableInfo from './DataTableInfo'; import DataTablePagination from './DataTablePagination'; import DataTableTable from './DataTableT...
"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 apiUrl = "http://127.0.0.1:5000/api"; // Initialize the application EcwidApp.init({ app_id: "headline-api-dev", autoloadedflag: true, autoheight: true }); var storeData = EcwidApp.getPayload(); var storeId = storeData.store_id; var accessToken = storeData.access_token; if (storeData.public_token !== undef...
import React, { useState, useEffect, useRef } from 'react'; import { useQuery, gql, NetworkStatus } from '@apollo/client'; import moment from 'moment'; import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import PostCard from '../components/PostCard/HomeCard'; import ...
var Module; if (typeof Module === 'undefined') Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()'); /** * * We can not interact with emscripten using unicide strings * so we need to manually encode and decode them. * Thanks to: * https://gist.github.com/chrisveness/bcb00eb717e6382c56...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import './general-style.css'; import './fixed-style.css'; import App from './App'; import Header from './Header'; import Sidebar from './Sidebar'; import Index_Featured_Article_Grid from './Index_Featured_Article_Grid'; import Index_Sect...
import { Command, GUI, Integer, String, Boolean, Key, Control, Input } from '../libraries/gui/gui.js' import { getLargeCanvas, mod, argMax } from '../libraries/misc.js' import { colorKmeans } from '../libraries/colorKmeans.js' // Naive k-means to find dominant colours. It wil...
// legacy env vars: CONTACTS_PER_PHONE_NUMBER, EXPERIMENTAL_TWILIO_PER_CAMPAIGN_MESSAGING_SERVICE // per-campaign-messageservice // Implements: // - onMessageSend: to update/change the message.messageservice_sid // - onCampaignStart: to create the message service and allocate numbers to it // - getCampaignData: provide...
/* * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-License-Identifier: MIT-0 */ var Promise = require('promise'); var Tags = require('./tags'); var ec2CreateTags; var ec2DeleteTags; var ec2DescribeClassicLinkInstances; var ec2DescribeInstances; var ec2AttachClassicLinkVpc; // G...
import React from 'react' import {connect} from 'dva' import {TickersFm,TickerFm,sorterByMarket,sorterByVolume,sorterByPirce,sorterByChange} from 'modules/tickers/formatters' import storage from '../../modules/storage' import intl from 'react-intl-universal' import routeActions from 'common/utils/routeActions' import {...
// ==UserScript== // @name youtube-manifest-cache // @match https://youtube.com/* // @match https://*.youtube.com/* // @exclude https://*/live_chat* // @version 1.0 // @grant GM_addStyle // ==/UserScript== function grunnur() { var ytmc_server = 'http://127.0.0.1:8000/'; var QS = doc...
const programFormat = { id: new Date().getTime(), // 解析整体输出保存 htmlJson: {}, // 递归保存 childJson: {}, init (html, htmlJson) { if (!htmlJson) htmlJson = this.childJson = this.htmlJson else this.childJson = htmlJson const tagStart = new RegExp(this.tagStartReg(true)) let tag const tagNameStar...
const sql = require('sqlite'); const Discord = require('discord.js'); const Player = require('./classes/player'); const botsettings = include('config.json'); const messages = include('data/messages.json'); const { MessageEmbed } = require('discord.js'); module.exports = { embed, sendEmbed, editEmbed, removeAll...
'use strict'; const { TICK_INTERVAL, HTTP_SERVER_PORT, SESSION_SEED } = require('../constants'); const http = require('http'); // TODO: remove express const express = require('express'); const session = require('express-session'); const parsers = require('body-parser'); // WebRTC & WebSockets const WebSocket ...
import React, { Suspense, useState, lazy } from 'react'; import { ModalProvider } from 'styled-react-modal'; import { Form } from '../../../../components/Form'; import Input from '../../../../components/Input'; import api from '../../../../services/api'; let ModalForm = () => <></>; const Form1 = ({ formRef, kn...
refresh(); const STORAGE_KEY = "NV_STOPWATCH"; const STORAGE_KEY2 = "NV_STOPWATCH_KTG"; let startTime = 0; let ctgSelected = ""; // Declare variables to use in our functions below let elapsedTime = 0; let timerInterval; let dipausin = "N"; let tanggalpause; // Create event listeners let playButton = document.getElem...
const db = require('../utils/db'); const bcrypt = require('bcrypt'); const config = require('../config'); const roles = require('../utils/roles'); module.exports.getAdmins = async (req, res) => { const { account } = req; const GET_QUERY = 'select id,first_name,last_name,email,status,created_at from accounts where...
/** @jsx React.DOM */ //This whole file is pretty junky... just an example var BoldFormatter = React.createClass({ render: function(){ return <strong>{this.props.data}</strong> } }); var externalData = fakeData.slice(0, 53); //This whole thing is throw-away code. //It's basically to show that you ca...
String.prototype.empty = function() { return (this==null || this == "" || this.length == 0 ) ? true:false; } String.prototype.endsWith = function(str) { return (this.match(str+"$")==str); } Array.prototype.remove = function(s) { var i = this.indexOf(s); if(i != -1) this.splice(i, 1); } Array.prototy...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _ammo = require("./ammo.js"); var _ammo2 = _interopRequireDefault(_ammo); var _component = require("../../component.js"); var _component2 = _interopRequireDefault(_component); function _interopRequireDefault(obj) { return obj && ob...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EuiRelativeTab = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interopRequireWildcard(require("react")); var _datemath = _interopRequireDefault(require("@elastic/datemath")); var _to_case ...
const request = require('request') const express = require('express') const https = require('https') const http = require('http') const bodyParser = require('body-parser') const fs = require('fs') const path = require('path') const url = require('url') const tcpPortUsed = require('tcp-port-used') var publishPort = pro...
/* ######################################## MIT License Copyright (c) 2019 <NAME> License > https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/LICENSE.md ######################################### */ "use strict" const GravitonInfo = { date: "200119", version: "1.11.0", state: "Bet...
"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...
const { Command, Option, InvalidOptionArgumentError } = require ('commander') // set up a custom help for commander require('./help')() const component = 'args' const version = require("../package.json").version const fs = require('fs') const { logger, addConsoleTransport, addFileTransport } = require('./logger') cons...
import { config } from "../../../config"; import logger from "../../../logger"; import Twilio from "twilio"; import _ from "lodash"; import moment from "moment-timezone"; import { getFormattedPhoneNumber } from "../../../lib/phone-format"; import { Log, Message, PendingMessagePart, r } from "../../models"; import { sle...
/* * Copyright (c) WSO2 Inc. (http://wso2.com) 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...
import { __decorate } from "../../_snowpack/pkg/tslib.js"; import { customElement, css, queryAll, LitElement, property, internalProperty, html, } from '../../_snowpack/pkg/lit-element.js'; import { get, translate } from '../../_snowpack/pkg/lit-translate.js'; import { Dialog } from '../../_snowpack/pkg/@material/mwc-di...
// ---------------------------------------------------------------------------- // Zoom Search Engine 7.0 (10/Apr/2014) // Highlight & auto-scroll script (DOM version) // // email: <EMAIL> // www: http://www.wrensoft.com // // Copyright (C) Wrensoft 2014 // --------------------------------------------------------------...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
/** * @Author: WangChao * @Date: 2017-07-15T10:33:41+08:00 * @Email: <EMAIL> * @Project: dreampark-web * @Last modified by: WangChao * @Last modified time: 2017-09-02T10:13:57+08:00 */ const UNUSED_TICKETS = 'redux/tickets/unused' const USED_TICKETS = 'redux/tickets/used' const UNPAID_TICKETS = 'redux/tick...
import WebTorrent from 'webtorrent'; import fs from 'fs'; import { APP_NAME } from '../../constants'; import { autoStartTorrentAction, dispatchSeedStatistic, dispatchTorrentAction, dispatchTorrentDoneAction, dispatchTorrentPeerConnections, dispatchTorrentStatsAction, dispatchWireAction, getTorrentState,...
'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...
/* eslint linebreak-style: ["error", "unix"] */ // Hamburger menu open close const hamburgerItem = document.querySelector('.hamburger-item'); const closeItem = document.querySelector('.close-item'); const hamburgerMenu = document.querySelector('.navigation'); const menuItem = document.querySelectorAll('.menu-item'...
import React, {Component} from 'react'; import axios from 'axios'; import $ from 'jquery' import Select from 'react-select'; import 'react-select/dist/react-select.css'; import EllipsisText from 'react-ellipsis-text-x'; import {NavLink,withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; import {...
function GetPluginSettings() { return { "name": "Array", "id": "Arr", "version": "1.0", "description": "Store an array of values in up to 3 dimensions.", "author": "Scirra", "help url": "http://www.scirra.com/manual/108/array", "category": "Data & Storage", "type": "object", // not in layo...
/** * Provides viewer and editor of QoS parameters for storage (but is pretty * universal an may by used in the future for another similiar problems) * * @module components/qos-params-editor * @author <NAME> * @copyright (C) 2019-2020 ACK CYFRONET AGH * @license This software is released under the MIT license ci...
/*jslint node: true */ "use strict"; require('./relay'); var constants = require('bng-core/constants.js'); var validationUtils = require("bng-core/validation_utils.js"); var conf = require('bng-core/conf.js'); var Wallet = require('bng-core/wallet.js'); var eventBus = require('bng-core/event_bus.js'); var divisibleasse...
function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "userForgot"; arguments[0] ? arguments[0]["__parentSymbol"] : null; arguments[0] ? arguments[0]["$model"] : null; arguments[0] ? arguments[0]["__itemTemplat...
import { deflate, inflate } from "pako"; function base64ToString(base64String) { var jsonString = inflate(atob(base64String), { raw: true, to: "string" }); return jsonString; } function stringToBase64(data) { var base64String = btoa(deflate(data, { raw: true, to: "string", level: 9 })); retur...
/* eslint-disable complexity */ const {TILE_SIZE, SEA_LEVEL} = require('../CONSTANTS') const {checkWaterConnections} = require('./getWaterConnections') let waterTiles = [] let landTiles = [] let coastTiles = [] /** * returns array of land tiles * @param {Array} map 2d array of 'heights' between 0 & 65 */ const g...
'use strict'; var rp = require('request-promise'); var moment = require('moment'); var crypto = require('crypto'); var mysql = require('mysql'); var fs = require('fs'); var errors = require('./lib/errors.js'); //var api_limit = require('./lib/api_limit.js'); var libs = require('./lib'); /* src/common/config/workwec...
// @packages import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import TextField from '@material-ui/core/TextField'; import classNames from 'classnames'; import moment from 'moment'; import { withStyles } from '@material-ui/core/styles'; // @scripts import CtrlIcon from './icon'; import ...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
const uuid = require('uuid'); const Moment = require('moment-timezone'); const Park = require('../park'); const Cache = require('../cache'); const sApiBase = Symbol('API Base URL'); const sApiWaitTimes = Symbol('API Base URL for Wait Times'); const sApiKey = Symbol('API Key for Wait Times Service'); const sParkID = S...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.deleteName = deleteName; exports.getBalance = getBalance; exports.getLatestBlock = getLatestBlock; exports.getNonce = getNonce; exports.getRegistrant = getRegistrant; exports.getSubscribers = getSubscribers; exports.getSubscribersCo...
var g_resources = [ // images { name: "iso-64x64-building", type: "image", src: "/game/iso-64x64-building.png" }, { name: "iso-64x64-outside", type: "image", src: "/game/iso-64x64-outside.png" }, { name: "player", type: "image", ...
import { createMemo, createRoot, splitProps, untrack } from 'solid-js'; export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, assignProps, createComponent, getContextOwner as currentContext, createRenderEffect as effect } from 'solid-js'; function memo(fn, equal) { return createMemo(fn, un...
import { __read } from "tslib"; import { TextSelection, Selection, } from 'prosemirror-state'; import { TableMap, cellAround, CellSelection } from 'prosemirror-tables'; import { findTable, getSelectionRect, removeTable } from 'prosemirror-utils'; import rafSchedule from 'raf-schd'; import { browser } from '@atlaskit/ed...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopReq...
import * as React from "react"; import { SafeAreaView, View, StyleSheet, TextInput, TouchableOpacity, AsyncStorage, FlatList, Form, Alert } from "react-native"; import * as ImagePicker from "expo-image-picker"; import Constants from "expo-constants"; import * as Permissions from "expo-permissions"; im...
/* Copyright 2019 <NAME> 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 distribu...
'use strict'; /* eslint-env node */ // To create fast production builds (without ES3 support, minification, derequire, or JSHint) // run the following: // // DISABLE_ES3=true DISABLE_JSCS=true DISABLE_JSHINT=true DISABLE_MIN=true DISABLE_DEREQUIRE=true ember serve --environment=production const MergeTrees = require('...
let gridSize = 600; let x = screen.width / 2 - (gridSize / 2); let y = 80; let rows = 20; let cols = 20; let grid = createGrid(rows, cols); let rowStep = gridSize / rows; let colStep = gridSize / cols; let isRunning = false; let isStep = false; let showGrid = true; let startButton; let stopButton; let clearButton; l...
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v21.1.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extend...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
/** * 获取/判断 数据类型 * @param {Object} data 数据,对象数组 * @param {Object} type 类型 'Null', 'Undefined', 'Object', 'Array', 'String', 'Number', 'Boolean', 'Function', 'RegExp' * @returns {Boolean|String} 若有type则返回Boolean,无则返回类型String */ export function typeOf({ data, type }) { let str = Object.prototype.toString....
var should = require('should'); var Router = require('../src/router'); var router = new Router({ "/foo/bar/baz": "", "/foo/bar/qux": "", "/foo/bar/quux": "", "/foo/bar/corge": "", "/foo/bar/grault": "", "/foo/bar/garply": "", "/foo/baz/bar": "", "/foo/baz/qux": "", "/foo/baz/quux": "", "/foo/baz/...
import React from "react"; import { Grid, TextField, Card, Button, ButtonGroup } from "@material-ui/core"; import { Avatar } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; import Box from '@material-ui/core/Box'...
var crypto = require('crypto'); var querystring = require('querystring'); var util = require('util'); var async = require('async'); var restify = require('restify'); var commonLib = require('../_common'); var ErrorCode = commonLib.ErrorCode; var SDKPluginBase = commonLib.SDKPluginBase; var cfgDesc = { appId: 'st...
var questions = [ question1 = { question: "The sun is made mostly from what element?", answers: ["Hydrogen", "Helium", "Nitrogen", "Oxygen"], answer: "Hydrogen", img: "assets/images/hydrogen.png" }, question2 = { question: "What is the process that 'powers' stars?", ...