text
stringlengths
3.07k
16k
#!/usr/bin/env node var output_dir = process.argv[2] || "/tmp"; var shared_utils = require("../"); var audio_utils = require("audio-utils"); // console.log("shared_utils ", shared_utils); // --- var path = require('path'); // -------------------------------------------------------- // // var cb_read_file_done ...
import * as React from 'react' import { RichText } from 'prismic-reactjs' import styled from 'styled-components' import Img from 'gatsby-image/withIEPolyfill' const Position = styled.div` border: solid 2px; padding: 15px; margin: 15px; border-radius: 15px; border-color: #e0b959 !important; margin-top: 55px...
const fs = require('fs') const Promise = require('bluebird') const request = require('request-promise') const htmlparser = require('htmlparser2') const { URL } = JSON.parse( fs.readFileSync(`${__dirname}/../config.json`) ) /** * json 형식 파싱 * @param {String} url * @return {Promise} */ function parseJson( url ){...
const { forceReplace } = require('../utils/scriptUtils'); module.exports = function (ast, { gogocode: $ }) { // v3: https://router.vuejs.org/zh/installation.html // v4: https://next.router.vuejs.org/zh/guide/ // https://next.router.vuejs.org/zh/guide/migration/index.html const sourceAst = ast.p...
// import dependencies const IBMCloudEnv = require('ibm-cloud-env'); const ExamsController = require('./exams-controller'); IBMCloudEnv.init('/server/config/mappings.json'); // initialize Cloudant const CloudantSDK = require('@cloudant/cloudant'); const cloudant = new CloudantSDK(IBMCloudEnv.getString('cloudant_url')...
import * as am4core from "@amcharts/amcharts4/core"; import * as am4charts from "@amcharts/amcharts4/charts"; import am4themes_animated from "@amcharts/amcharts4/themes/animated"; //am4core.useTheme(am4themes_animated); let container = am4core.create("chartdiv", am4core.Container); container.width = am4core.percent(...
function test(){ var url = getRPath()+"/manager/moneymonthstastic/test"; $.ajax({ type : "post", url : url, //data : data, async : false, dataType : "json", success : function(response) { success("操作成功!"); } }); } $(function() { InitQuery_item(); $("#btnAdd_item").click(function() { ...
import { isRelationshipValid as isCitusRelValid } from '../../../../dataSources/services/citus/utils'; const sameRelCols = (currCols, existingCols) => { return currCols.sort().join(',') === existingCols.sort().join(','); }; const checkEqual = (arr1, arr2) => { return ( arr1 && arr2 && JSON.stringify([...
var forEach = require('../common/utils').forEach; var GrowingPacker = require('./packer'); /** * 垂直布局算法,计算图片位置spritepos_left和spritepos_top,大图的宽度高度 * @param {object} images 图片对象,记录align, height, width, repeat * @param {object} spriteDef 图片对应的css规则 */ function Vertical(images, spriteDef, layout){ this.images = imag...
import React, { useState, useEffect, useRef } from 'react' import clsx from 'clsx' import Grid from '@material-ui/core/Grid' import Typography from '@material-ui/core/Typography' import Button from '@material-ui/core/Button' import FormControlLabel from '@material-ui/core/FormControlLabel' import Switch from '@material...
import base64 from 'base64-arraybuffer' import hkdf from './hkdf' import { arrayBufferToString, stringToArrayBuffer, appendBuffer } from './utils' const ENCRYPTION_ALGORITHM_NAME = 'AES-GCM' const BIT_SIZE = 256 const KEY_IS_EXTRACTABLE = true const KEY_WILL_BE_USED_TO = ['encrypt', 'decrypt'] const RAW_KEY_TYPE = 'ra...
import { LitElement, css, html } from '@lion/core'; const uuid = () => Math.random() .toString(36) .substr(2, 10); const setupPanel = ({ element, uid }) => { element.setAttribute('id', `panel-${uid}`); element.setAttribute('role', 'tabpanel'); element.setAttribute('aria-labelledby', `button-${uid}`); ...
"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...
import {PopoverContainer, PopoverContent} from 'react-popopo' import styled, {createGlobalStyle, css} from 'styled-components' export const GlobalStyle = createGlobalStyle` .comPlainTextContentEditable { -webkit-user-modify: read-write-plaintext-only; cursor: text; } .comPlainTextContentEditable--has-pl...
const ecdsa = require("./ecdsa"); const hash = require("./hash"); const curve = require("ecurve").getCurveByName("secp256k1"); const assert = require("assert"); const BigInteger = require("bigi"); const keyUtils = require("./key_utils"); const PublicKey = require("./key_public"); const PrivateKey = require("./key_priva...
/*jshint evil:true */ 'use strict'; var util = require("util"), EventEmitter = require("events").EventEmitter; // Debug: var DEBUG = false; // CONSTS var DEFAULT_RUN_TIME = DEBUG ? 500000 : 5000; function Instance(boxtree, clientScript, page) { var self = this; self.boxtree = boxtree; self.clientScript = clie...
/** * AdSense Settings View component. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICEN...
//This Business Logic function Pizza(size) { this.size = size; this.price = 5.5; this.toppings = []; this.crusts = []; } function Topping(name) { this.name = name; this.price = 5.00;//[5, 4.75, 4.60, 4.45, 4.35, 4.15, 4.05, 4.00, 3.95, 3.85]; } function Crust(name){ this.name = name; th...
var equalsOptions = { strict: true }; var _equals = require('deep-equal'); var areEquals = function (a, b) { return _equals(a, b, equalsOptions); }; var helpers_1 = require('./helpers'); var core_1 = require('./core'); /* export all core functions */ var core_2 = require('./core'); exports.applyOperation = core_2.a...
var consoleTest = /(^.|\b)console\./; var iframedelay = (function () { var iframedelay = { active : false }, iframe = document.createElement('iframe'), doc, callbackName = '__callback' + (+new Date); iframe.style.height = iframe.style.width = '1px'; iframe.style.visibility = 'hidden'; docume...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Exports_1 = require("../common/Exports"); var Exports_2 = require("../common.browser/Exports"); var FileAudioSource = /** @class */ (function () { function FileAudioSource(file, audioSourceId) { var _this = this; this.s...
var AssertionError = require('./assertion-error'); var util = require('./util'); var format = require('should-format'); /** * should Assertion * @param {*} obj Given object for assertion * @constructor * @memberOf should * @static */ function Assertion(obj) { this.obj = obj; this.anyOne = false; this.negat...
import React, {useCallback, useEffect, useReducer, useState} from 'react'; import { ActivityIndicator, Alert, Button, Image, KeyboardAvoidingView, Platform, ScrollView, StyleSheet, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; import {He...
document.getElementById("info-tile").textContent = "Loaded Website.. if you see this something went terribly wrong!"; window.URL = window.URL || window.webkitURL; window.AudioContext = window.AudioContext || window.webkitAudioContext; var isRecording = false; var isSending = false; class AudioController { const...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Back from './60577.svg'; class NavBar extends React.Component { constructor(props) { super(props); }; onClick(id) { if (id == 'back-btn') { }; }; render() { return ( ...
import React from 'react'; import './Table.css'; import { Button } from 'reactstrap'; import { getAllProfessors, deleteProfessor, createProfessor, getProfessorByName, editProfessor } from '../utils/apiWrapper'; import { NavBar } from "./NavBar"; export class ProfessorDashboard extends React.Component { co...
const local = window.localStorage const jq = require('../lib/utils').jq, MUSIC = require('../lib/localMusic') let json = local.getItem('songs') let db = (!json || json == `undefined`) ? [] : JSON.parse(json) let set = (key, any) => local.setItem(key, JSON.stringify(any)) let get = key => local.getItem(key) func...
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; // import * as Utils from '../../../utils'; import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import { AuditManager } from '../.....
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const path = require("path"); const os = require("os"); const chalk = require("chalk"); const backends_1 = require("./backends"); const errors_1 = require("./errors"); const format_1 = require("./utils/format"...
'use strict'; var path = process.cwd(); var User = require('../models/users'); var XLSX = require('xlsx'); var path = require('path'); var formidable = require('formidable'); var fs = require('fs'); function ClickHandler() { this.getDownloadLink = function (req, res) { var localFirmwareVersion = req.url...
import React, { useContext } from "react"; import AudioPlayer from "react-h5-audio-player"; import "react-h5-audio-player/lib/styles.css"; import { Songs } from "../Context"; import Swal from 'sweetalert2' // Icons import { BsPlayFill } from "react-icons/bs"; import { BsPauseFill } from "react-icons/bs"; import { BsSk...
"use strict"; function IterarCamposEdit(t, n) { function i(t) { if (null == colsEdi) return !0; for (var n = 0; n < colsEdi.length; n++) if (t == colsEdi[n]) return !0; return !1; } var o = 0; t.each(function() { o++, "buttons" != $(this).attr("name") && i(o - ...
import React, { useState } from "react" import { graphql } from "gatsby" import { LineChart, Line, CartesianGrid, XAxis, YAxis, ReferenceLine, // Tooltip, ResponsiveContainer } from "recharts" import moment from "moment" import { isEmpty } from 'lodash' import { ma } from 'moving-averages' import Lay...
import moment from 'moment'; export const formatTime = (date) => { let x = parseInt(date); return moment(x).format('MMM. D, h:mm A'); }; export const checkGame = (val) => { if (val >= 100) { return 'Mega Gamer'; } else if (val >= 50) { return 'Hardcore Gamer'; } else if (val >= 25)...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
var express = require('express'); var router = express.Router(); var passport = require('passport'); var User = require('../models/User'); var Request = require('../models/Request'); var Branch = require('../models/Branch'); var Member = require('../models/Member'); var flash = require('connect-flash'); var cloudinary ...
"use strict"; /** * @module opcua.address_space * @class AddressSpace */ var assert = require("node-opcua-assert"); var _ = require("underscore"); exports.install = function (AddressSpace) { var NodeClass = require("node-opcua-data-model").NodeClass; //var DataValue = require("node-opcua-data-value").D...
var extend = require('./extend.js'); var converter = require('./converter.js'); //g2svg as geojson2svg (shorthand) var g2svg = function(options) { this.options = options || {}; this.viewportSize = this.options.viewportSize || {width: 256, height: 256}; this.mapExtent = this.options.mapExtent || { ...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
/** * Copyright 2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Ti.include("globals.js"); Ti.include("app-tabs.js"); // this sets the background color of the master UIView (when there are no windows/tab groups on it) //Titanium.UI.setBackgroundColor(DEFAULT_BAR_COLOR); // // create base UI tab and root window // var win; var tabGroup; var screenWidth = Titanium.Platform.displayCa...
initMenu(); function initMenu(){ $.ajax({ url: domainName + "/api-b/menus/me", type:"get", async:false, success:function(data){ if(!$.isArray(data)){ location.href = loginPage; return; } var menu = $("#menu"); $.each(data, function(i,item){ ...
#!/usr/bin/env node const { performance } = require('perf_hooks'); const https = require('https'); const { magenta, bold, yellow, green, blue } = require('./chalk.js'); const stats = require('./stats.js'); async function get(hostname, path) { return new Promise((resolve, reject) => { const req = https.request( ...
'use strict'; const TeamMerger = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/modules/teams/team_merger'); const TeamSeparator = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/modules/teams/team_separator'); class MigrationHandler { constructor (options) { Object.assign(this, options); this.dat...
const Principal = require("./principal"); const Anonymous = require('./anonymous.js'); const Superuser = require("./superuser"); function extractTokenFromHeader(ctx) { if (ctx.header && ctx.header.authorization) { const parts = ctx.header.authorization.trim().split(' '); if (parts.length === 2) { ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSpiding = undefined; var _koa = require('koa'); var _koa2 = _interopRequireDefault(_koa); var _koaBodyparser = require('koa-bodyparser'); var _koaBodyparser2 = _interopRequireDefault(_koaBodyparser); var _koaRouter = require(...
import React, { useState } from 'react'; import { View, Image, Text, Button, StyleSheet, StatusBar, SafeAreaView, ScrollView, TextInput, TouchableOpacity } from 'react-native'; import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; import { faUsers } from '@fortawesome/free-solid-svg-icons'; import { ...
// Copyright (c) 2019 Uber Technologies, Inc. // // 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...
"use strict"; const vnopts = require("vnopts"); const leven = require("leven"); const chalk = require("chalk"); const flat = require("lodash/flatten"); const cliDescriptor = { key: (key) => (key.length === 1 ? `-${key}` : `--${key}`), value: (value) => vnopts.apiDescriptor.value(value), pair: ({ key, value }) =...
import React, { useState, useEffect } from 'react'; import useDeepCompareEffect from 'use-deep-compare-effect'; import { Button, Checkbox, List, Input, Modal, message, Timeline } from 'antd'; const fs = window.require('fs'); const path = window.require('path'); const shell = require('shelljs'); const { dialog } = win...
import faker from 'faker'; import * as React from 'react'; import PropTypes from 'prop-types'; import { styled } from '@mui/material/styles'; import { useTheme } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _delayable = _interopRequireDefault(require("../delayable")); var _toggleable = _interopRequireDefault(require("../toggleable")); var _mixins = _interopRequireDefault(require("../../util/mixins")); var _hel...
/** * * Account * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import queryString from 'query-string'; import injectSaga from 'ut...
// <NAME> // Ported by <NAME> /** provides printf and sprintf. This code is unrestricted: you are free to use it however you like. The functions should work as expected, performing left or right alignment, truncating strings, outputting numbers with a required precision etc. For complex cases, thes...
import * as Icons from './icons.js' import * as Helpers from './helpers.js' const BUTTON_ORDER = ['cancel','delete','confirm'] class Modal { // Static variable to save the modal instance static self constructor( options ){ // Defaults this.type = 'overlay' this.panel = null ...
// Variáveis Globais // Prato let pratoSelecionado = null; let precoPratoSelecionado = null; // Bebida let bebidaSelecionada = null; let precoBebidaSelecionada = null; // Sobremesa let sobremesaSelecionada = null; let precoSobremesaSelecionada = null; //Informações Usuário let nomeUsuario = null; let enderecoUsuario =...
'use strict' const express = require('express') const bodyParser = require('body-parser') const app = express(); app.use(bodyParser.json()); var lastmarkupAddId = 0; app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-...
/** * @author xiancangao * @description 基本信息设置 */ import React, { PropTypes, Component } from 'react' import { Tabs, Form, Input, Button, Select } from 'antd' import JSONTree from 'react-json-tree' import dateFormat from 'dateformat' import { FormattedMessage } from 'react-intl' import BatchControlMessageForm from ...
const sharp = require(`./safe-sharp`) const fs = require(`fs-extra`) const debug = require(`debug`)(`gatsby:gatsby-plugin-sharp`) const duotone = require(`./duotone`) const imagemin = require(`imagemin`) const imageminMozjpeg = require(`imagemin-mozjpeg`) const imageminPngquant = require(`imagemin-pngquant`) const imag...
import React, { Component } from 'react'; import './App.css'; import './range.css' import Player from './player.js'; import Modal from 'react-modal'; import { BrowserRouter as Router, Route, Link, Switch, Redirect, } from 'react-router-dom' import background from './resources/rainbow.jpg'; import logo from '....
/* * Filename: Interface.js * Created By: <NAME> * License: Apache 2.0 * * Copyright 2014 <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/license...
'use strict'; //noinspection JSUnusedLocalSymbols let { indent, reQuery, ResolveLiteral } = require('../utils.js'); let ResolveIcon = require('../util/IconResolver'); let Providers; module.exports = (() => { class ProvidersMap extends Map { constructor(i) { super(i); this.Resolvers = new Map(); } get(k...
let uid = sessionStorage.getItem('key'); let typ = sessionStorage.getItem('typ'); let org = sessionStorage.getItem('org'); let usrname = sessionStorage.getItem('usrname'); let logout = () => { sessionStorage.clear(); location.href = "./../login/index.html"; } // uid && typ == "admin" ? null : logout(); uid &&...
var csvGenerate = require('csv-stringify'); class Query extends Pane { renderTab (rows) { if (this.content) return; this.renderViewToPane('query', 'query_tab'); this.button = this.content.find('button:first'); this.cleanButton = this.content.find('button.cleanButton'); this.saveButton = this.c...
const qrcode = require("qrcode-terminal"); const fs = require("fs"); require("dotenv").config(); var QRCode = require("qrcode"); const {Client , MessageMedia} = require("whatsapp-web.js"); const { Telegraf } = require("telegraf"); const config = require("./config"); const alive = require('./modules/alive'); const handl...
import _ from 'lodash'; /** * 滑动手势库 * @example * Swipe.on(elem, 'down', (direction, distance)=>{}, true, 0, 5, 0); */ class Swipe { constructor(props) { // swipe监听目标元素 this.elem = null; // touch点击位置信息 this.touch = {}; this.options = { sensibility: 0, step: 20, // 偏移步长 throt...
import {toString} from './Util.js'; /** * From immutable.js implementation of java hashcode * https://github.com/facebook/immutable-js/blob/master/src/Hash.js * * Returns the hashcode for the given string * @private * @param {string} str - The string to hash * @returns {number} @param str's hashcode */ functio...
/** * 安全基线需求. * 48286 鉴权及访问控制 * 外部接口采用时间戳、随机数等方案,防止常见重放攻击。(常见重放类攻击主要包括各类网络管理协议的身份鉴别信息重放攻击等) */ const logger = require('log4js').getLogger('Replay-Attack-Checker'); const Consts = require('../../constants'); const crypto = require('crypto'); module.exports = function(req, res, next) { let reqIdentifier = getReqId...
function Pizza(quantity, pizzaSize, cost){ this.pizzaSize = pizzaSize; this.quantity = quantity; this.cost = cost; if(pizzaSize === "Small"){ this.cost += 10; }else if(pizzaSize === "Medium"){ this.cost += 13; }else{ this.cost += 18; }; } Pizza.prototype.addQuantity = function(quantityAdded...
/* * Copyright 2016 e-UCM (http://www.e-ucm.es/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * This project has received funding from the European Union’s Horizon * 2020 research and innovation programme under grant agreeme...
const numberArr = [ { writtenId: 'seven', numeralValue: '7' }, { writtenId: 'eight', numeralValue: '8' }, { writtenId: 'nine', numeralValue: '9' }, { writtenId: 'four', numeralValue: '4' }, { writtenId: 'five', numeralValue: '5' }, { writtenId: 'six', numeralValue: '6' }, { writtenId: 'o...
const fs = require('fs') , ejs = require('ejs') , path = require('path') , rimraf = require('rimraf') , merge = require('webpack-merge') , OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin') , TerserPlugin = require('terser-webpack-plugin') , BrowserSyncPlugin = require('browser-sync-w...
import React from 'react'; import {useUID} from "react-uid"; import {Button, useTheme} from "@material-ui/core"; import AceEditor from "react-ace"; // todo: update react-ace to v8, using ace-builds instead of brace, creates strange `this.session = null` exceptions then and now import 'brace/ext/language_tools'; import ...
import React from 'react'; import { Platform, StyleSheet, View, Text, TouchableOpacity, Image, AsyncStorage, ScrollView,TextInput } from 'react-native'; import Axios from 'axios' import ListItemElement from '../components/FlatListElement' import SegmentedControlTab from 'react-native-segmented-control-tab' im...
'use strict'; const expect = require('chai').expect; const injectr = require('injectr'); const sinon = require('sinon'); describe('registry', () => { const repositoryInitStub = sinon.stub(); const deps = { './app-start': sinon.stub(), './domain/events-handler': {}, express: sinon.stub(), http: { ...
"use strict"; /** * Copyright 2015 Google Inc. 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 req...
import { mat4 } from 'https://cdn.pika.dev/gl-matrix/v3' const vertexSource = document.getElementById('vertex-shader').textContent const fragmentSource = document.getElementById('fragment-shader').textContent export default class Geometry { static createShader(gl, src, type) { const shader = gl.createShader(typ...
'use strict' const EventEmitter = require('events') const fs = require('fs') const http = require('http') const path = require('path') const { promisify } = require('util') const open = require('opn') const sockjs = require('sockjs') const hasha = require('hasha') const express = require('express') const MemoryFileSys...
const CommandInterface = require('../../commandinterface.js'); const fs = require('fs'); const request = require('request').defaults({encoding:null}); const Canvas = require('canvas'), Image = Canvas.Image; module.exports = new CommandInterface({ alias:["isthisa"], args:"{bottomText} | {butterflyText|@user} |...
try { process.chdir("./tools"); } catch (e) {} //make sure we're in tools directory var fs = require("fs"); var execSync = require("child_process").execSync; var parser = require("../src/parser"); var utils = require("./utils"); const examplesAlias = require("./examples_alias"); var files = fs.readdirSync("../examp...
import Head from 'next/head'; const Meta = () => ( <Head> {/* General */} <title>Cinemark Estrenos</title> <meta charSet='UTF-8' /> <meta name='title' content='Cinemark Estrenos' /> <meta name='mobile-web-app-capable' content='yes' /> <meta name='description' content='Obtené todos los estreno...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Touch from '../Touch/Touch'; import classNames from '../../lib/classNames'; import getClassName from '../../helpers/getClassName'; import { IS_PLATFORM_ANDROID } from '../../lib/platform'; import { getOffsetRect } from '../../lib/offs...
/** * Copyright 2020, <NAME>. * Licensed under the Apache License, Version 2.0. See accompanying LICENSE file for terms. */ import Component from '@glimmer/component'; import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; import { action } from '@ember/object'; import { tracke...
/* Copyright 2014-2015 Google Inc. 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 applic...
var connector = {}; // Sample Kaggle dataset. // Kaggle URL format: https://www.kaggle.com/{ownerSlug}/{datasetSlug}. // Sample Kaggle URL: https://www.kaggle.com/unsdsn/world-happiness // Filename refers to the dataset under the 'Data' tab. connector.ownerSlug = "unsdsn"; connector.datasetSlug = "world-happiness"; con...
BREAKOUT_ROOM_BOT_VERSION = "2020.08.1" // HELPER FUNCTIONS function getStoreObservable(store) { return new rxjs.Observable(function (observer) { const unsubscribe = store.subscribe(function () { observer.next(store.getState()); }); }); } function chatboxSend(msg) { const chat...
import { NEXLOCAGEE_SET_MAP_ZOOM, NEXLOCAGEE_SET_MAP_CENTER, NEXLOCAGEE_SET_MARKER_MODE, NEXLOCAGEE_SET_MARKER_POSITION, NEXLOCAGEE_SET_MAP_MODE, NEXLOCAGEE_SET_GRAPH_MODE, NEXLOCAGEE_SET_SCENARIO_OPTIONS, NEXLOCAGEE_SET_SCENARIO_SELECTION, NEXLOCAGEE_SET_TEMP_RESOLUTION_OPTIONS, NEXLOCAGEE_SET_TEMP...
// Splice Functions // ================ // These functions splice tests found inside files into scaffolded // modules or into empty arrays if no modules can be scaffolded. // Basically, it searches for the test blocks, and if they exist in // the scaffolding object, it splices them into the object where they // nee...
let countr; let timeStr = ""; let srvP = 690; let tries = 10; let srv = require('express')(); let Timer = { h: undefined, m: undefined, s: undefined }; srv.listen(srvP).on('error', (e) => { restartServer(); }); function restartServer() { tries -= 1; if(tries < 1) return document.querySelector('info').text...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 <NAME> * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/l...
/** * api接口统一管理 */ import axios from "axios"; import { Get, Post, DeleteID, PutID, GetID, GetList, Delete, Put } from './config' //只有id可以直接传入 例如"1000007" 其他必须作为对象传入 例如{"accountNumber:1000001"} /*Compute*/ export const GETComputed = param => GetList('/compute/compute', param); /*Labs*/ export const GETLab = pa...
import {saveAs} from "file-saver"; import v4 from "uuid"; import Constant from './cv/Ux.Constant'; import Value from './Ux.Value'; import U from 'underscore'; /** * 将传入的值`data`下载成一个文件保存,文件名系统生成,该文件名被转换过,所以调用时使用Ux调用 * @method dgFileJson * @param {Object|Array} data 传入的数据 * @param ext 保存的文件格式后缀名,默认为.json * @param f...
import React, { useRef, useEffect, useState } from "react" import * as THREE from "three" import * as styles from "./styles.module.scss" import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader.js" import { OrbitControls } from "three/examples/jsm/controls/OrbitControls" import { MTLLoader } from "three/examples...
const React = require('react'); const PropTypes = require('prop-types'); const Dropdown = require('./filters/Dropdown'); const TextFilter = require('./filters/TextFilter'); const CheckboxFilter = require('./filters/CheckboxFilter'); const CheckboxList = require('./filters/CheckboxList'); const DateFilter = require('./f...
// class Vacation { // constructor(organizer, destination, budget) { // this.organizer = organizer; // this.destination = destination; // this.budget = budget, // this.kids = {}; // } // get numberOfChildren(){ // let kidsCount = Object.values(this.kids).reduce((acc, ...
'use strict'; exports.__esModule = 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]; } } } return target; }; function _interopR...
const asyncAuto = require('async/auto'); const asyncMap = require('async/map'); const {chanFormat} = require('bolt07'); const {returnResult} = require('./../async-util'); const decBase = 10; /** Get channels { [is_active]: <Limit Results To Only Active Channels Bool> // false [is_offline]: <Limit Results ...
import { Platform } from 'react-native'; import ImagePicker from 'react-native-image-picker'; import DocumentPicker from 'react-native-document-picker'; import ImageResizer from 'react-native-image-resizer'; import ImgToBase64 from 'react-native-image-base64'; import RNFetchBlob from 'rn-fetch-blob'; import trans from ...
// Dependencies for build tasks. const gulp = require('gulp'); const prefix = require('gulp-autoprefixer'); const sourcemaps = require('gulp-sourcemaps'); const sass = require('gulp-sass'); const yaml = require('gulp-yaml'); // Dependencies for compendium tasks. const through2 = require("through2"); const jsYaml = req...