text
stringlengths
3.07k
16k
#! /usr/bin/env node 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(val...
const WXAPI = require('apifm-wxapi') const AUTH = require('../../utils/auth') const CONFIG = require('../../config'); Page({ data: { orderId: 1, amount: 999.00, refundApplyDetail: undefined, type: 0, typeItems: [ '', '我要退款(无需退货)', '我要退货退款...
// Package Dependency Check Action // - Built for utassault.net - github.com/Sizzl // - Uses the excellent UTReader.js from bunnytrack.net - github.com/bunnytrack // -- Args and parameters -- var args = process.argv.slice(2) const mapfilter = 'AS-'; var timeout=300; // seconds // -- Import modules -- va...
import React from 'react'; import { connect } from 'react-redux'; import { isEqual } from 'lodash'; import BN from 'bignumber.js'; import { closeModal, openAlert, openError } from 'actions/uiAction'; import { getFarmInfo } from 'actions/farmAction'; import Button from 'components/button/Button'; import Modal from 'co...
/** * @module cbox/tasks * @description Organizes common patterns into tasks for the CLI like `pull` and `sync`. * @example * var cbox = require('cbox'); * var tasks = cbox.tasks; * var options = { ... }; * // execute a common task like `pull` * var pullPromise = tasks.pull(options); */ var url = require('ur...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableHeader = void 0; var _react = _interopRequireWildcard(require("react")); var _HeaderCell = require("./HeaderCell"); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMa...
var assert = require('assert') var ldap2date = require('../ldap2date') describe('ldap2date', function () { var time before(function() { time = '20130228192706.607Z' }) describe('getYear', function() { it('should parse the year', function() { var year = ldap2date.getYear(time) assert.strictE...
import language from "../language.js"; const axios = require("axios").default; const path = require("path"); const { remote, ipcRenderer } = require("electron"); const accountData = remote.getGlobal("user"); const { settings, config, Browser, authWindow, mainWindow, autoUpdater, isPortable, currentBu...
import "./styles/App.css"; import twitterLogo from "./assets/twitter-logo.svg"; import React, { useEffect, useState } from "react"; import { ethers } from "ethers"; import myEpicNft from "./utils/MyEpicNFT.json"; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; co...
const url = require('url'); const fs = require('fs'); const qs = require('querystring'); const config = require('../config'); const axios = require('axios'); const httpClient = axios.create({ baseURL: config.target, timeout: config.timeout, headers: { 'X-Proxy-By': 'highcharts-proxy-server', 'Cont...
let{sqrt,abs}=Math; love=a=>(x,y)=>(r=> a*y+r - a*sqrt(r)) (x**2+y**2) let $D=document, e=$D.body.appendChild($D.createElement("canvas")), g=e.getContext("2d"); draw=()=>{}; (onresize=()=>{let l=(c,s)=>{c.width=innerWidth+s;c.height=innerHeight+s}; l(e,"");l(e.style,"px");draw()})() let hasStep=0^1, putP; (onclick=...
'use strict'; const { expect } = require('@hapi/code'); const { experiment, test, beforeEach } = exports.lab = require('@hapi/lab').script(); const { form, schema } = require('internal/modules/charge-information/forms/billing-account'); const { findField, findButton } = require('../../../../lib/form-test'); const cr...
resolve = require('path').resolve; var path = require('path'); const trash = require('trash'); // var firstRun = true; function readDir(path2) { localStorage.setItem('prevDir', resolve(path.dirname(path2)) + '//'); localStorage.setItem('currentDir', path2 + '//'); $('#dirSearcher').attr('placeholder', p...
'use strict'; /** * Module dependencies. */ var bluebird = require('bluebird'); var lodash = require('lodash'); var papi = require('papi'); var should = require('should'); var consul = require('../lib'); var helper = require('./helper'); /** * Tests */ describe('Consul', function() { helper.setup(this); ...
'use strict' const LRU = require('lru-cache') const url = require('url') const isLambda = require('is-lambda') const AGENT_CACHE = new LRU({ max: 50 }) const HttpAgent = require('agentkeepalive') const HttpsAgent = HttpAgent.HttpsAgent module.exports = getAgent const getAgentTimeout = timeout => typeof timeout !==...
'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 isEmpty from 'lodash/isEmpty'; import trim from 'lodash/trim'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withNamespaces } from 'react-i18next'; import { Keyboard, StyleSheet, View, Text, TouchableWithoutFeedback, Clipboard } from 'react-native'; import { navigator } f...
/* * This file is a modified version of netwerk/test/unit/head_channels.js * The changes consist of making it work in mochitest files and removing * unused code. */ /** * Read count bytes from stream and return as a String object */ function read_stream(stream, count) { /* assume stream has non-ASCII data */ ...
/* eslint-disable prefer-rest-params */ /** * @fileoverview Handlers for Express instrumentation */ const { tracer, utils, moduleUtils, eventInterface, } = require('epsagon'); const traceContext = require('../trace_context.js'); const expressRunner = require('../runners/express.js'); const { shouldIg...
import React from 'react'; import { observer } from 'mobx-react'; import { useStores } from '../../hooks/use-stores'; import { useParams } from 'react-router-dom'; import { useState, useEffect } from 'react'; const SubAnswer = (props) => { const [ optionResults, setOptionResults ] = useState([]); //get fund var fu...
/** * Copyright 2020 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 applicable law ...
import React from 'react'; import PropTypes from 'prop-types'; import { playSong } from '../actions/PlayerActions'; import { fetchSongIfNeeded } from '../actions/SongsActions'; import Comments from '../components/Comments'; import Link from '../components/Link'; import SongListItem from '../components/SongListItem'; ...
'use strict'; import $ from 'jquery'; const PhotoSwipe = require('photoswipe/dist/photoswipe'); const PhotoSwipeUI_Default = require('photoswipe/dist/photoswipe-ui-default'); /** * enable photoswipe on page by setting 'photoswipe: true' in page frontmatter * encapsulation class for photoswipe api */ class PhotoSwip...
import './TrainedChefNetwork.scss'; import Neuron from './Neuron'; import Tooltip from './Tooltip'; import TensorFlowNetwork from './TensorFlowNetwork'; import DropdownGroup from './DropdownGroup'; import React from 'react'; import { v4 as uuid } from 'uuid'; import { useParams, useHistory } from 'react-router-dom'; im...
"use strict"; class DmmGameBound { constructor(width, height, top_delta, left_delta, right_delta) { this.width = width; this.height = height; this.top_delta = top_delta; this.left_delta = left_delta; this.right_delta = right_delta; } } class DmmGame { constructor(nam...
var gulp = require('gulp'), autoprefixer = require('autoprefixer'), changed = require('gulp-changed'), cssmin = require('gulp-cssmin'), csso = require('csso'), del = require('del'), fs = require("fs"), htmlMinifier = require('html-minifier'), lessCompiler = require('gulp-less'), ngc = require('gulp-n...
import React from 'react'; import { ActivityIndicator, FlatList, StyleSheet, Text, View, } from 'react-native'; import moment from 'moment'; import {ListItem} from 'react-native-elements'; import {testProperties} from '../../src/Utils/TestProperties'; const B = (props) => <Text style={{fontWeight: 'bold'}}>{...
var stripe; var success_url = "/accounts/thankyou/" var stripeElements = function(publicKey) { stripe = Stripe(publicKey); var elements = stripe.elements(); // Element styles var style = { base: { fontSize: '16px', color: '#32325d', fontFamily: '-apple-system, BlinkMacSystemFont, ...
$(document).ready(function(){ selectPages(); $('#btnAdd').click(function(){ $('#title').html('<h3 class="panel-title"><i class="glyphicon glyphicon-plus"></i> Agregar Usuario</h3>'); clearFields(); $('#usersFormDiv').show(); $('#btnAdd').attr('disabled', 'disabled'); }); $('#btnCancel').click(function(){...
var myscript = document.createElement('script'), ref = document.getElementsByTagName('script')[0]; myscript.src = 'http://caniuse.com/jsonp.php?callback=caniusecb'; setTimeout(function(){ ref.parentNode.insertBefore(myscript, ref); }, 100); // mapping Modernizr terms over to caniuse terms var map = { audio...
/* * @Description: In User Settings Edit * @Author: xi.guo * @Date: 2019-08-06 11:24:02 * @LastEditTime: 2019-08-13 19:47:39 * @LastEditors: Please set LastEditors */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import cls from 'classnames'; import LazyLoad from 'react-lazyload...
const { MessageEmbed, CommandInteraction, Client } = require('discord.js'); const mykiCard = require('../../schemas/myki') const { cardTypes } = require('../../config/myki.json'); const utils = require('../../utils') const cheerio = require('cheerio') module.exports = { /** * * @param {CommandInteraction} intera...
import $ from 'jquery'; /* Materialize imports */ import 'materialize-css/dist/css/materialize.css'; import 'materialize-css/dist/js/materialize'; /* Global imports */ import '../_global/index'; /* Tools */ import { initExport, initFilters, initRandom } from './js/tools'; /* Import shortcuts */ import './js/shortcu...
const { MessageEmbed } = require("discord.js"); const config = require("../../botconfig/config.json"); const ee = require("../../botconfig/embed.json"); const settings = require("../../botconfig/settings.json"); const websiteSettings = require("../../dashboard/settings.json"); module.exports = { name: "help", //the...
var Body = require('./Body'); var Sphere = require('../shapes/Sphere'); var Box = require('../shapes/Box'); var Vec3 = require('../math/Vec3'); var HingeConstraint = require('../constraints/HingeConstraint'); module.exports = RigidVehicle; /** * Simple vehicle helper class with spherical rigid body wheels. * @class...
import _ from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; import {StyleSheet, Text} from 'react-native'; import {View as AnimatableView} from 'react-native-animatable'; import {BaseComponent} from '../../commons'; import {BorderRadiuses, Colors, ThemeManager, Typography} from '../../style';...
// === Symbol Polyfills === function polyfillSymbol(name) { if (!Symbol[name]) Object.defineProperty(Symbol, name, { value: Symbol(name) }); } polyfillSymbol("observable"); // === Abstract Operations === function nonEnum(obj) { Object.getOwnPropertyNames(obj).forEach(k => { Object.defineP...
// db.js var pg = require('pg-query'); // UPDATE TO YOUR connectionParameters = 'postgres://user:password@host:5432/database'; pg.connectionParameters = 'postgres://clayton:postgres@localhost:5432/postgres'; // get table names that have geom when server loads var tables = []; pg('SELECT f_table_name tbl FROM geometr...
const collectAndCombineSearch = require('../../../lib/simplifyExpression/collectAndCombineSearch'); const TestUtil = require('../../TestUtil'); function testCollectAndCombineSubsteps(exprString, outputList, outputStr) { TestUtil.testSubsteps(collectAndCombineSearch, exprString, outputList, outputStr); } function t...
const Web3 = require('web3') const EthereumWallet = require('ethereumjs-wallet') const EthereumTx = require('ethereumjs-tx') const models = require('./models') const config = require('./config') const { logger } = require('./logging') const { AudiusABIDecoder } = require('@audius/libs') const primaryWeb3 = new Web3(...
var dgram = require('dgram') var bencode = require('bencode') var isIP = require('net').isIP var dns = require('dns') var util = require('util') var events = require('events') var ETIMEDOUT = new Error('Query timed out') ETIMEDOUT.code = 'ETIMEDOUT' var EUNEXPECTEDNODE = new Error('Unexpected node id') EUNEXPECTEDNOD...
class Tree { constructor(width, height, y, children) { this.w = width this.h = height this.y = y this.c = children this.cs = children.length this.x = 0 this.prelim = 0 this.mod = 0 this.shift = 0 this.change = 0 this.tl = null // Left thread this.tr = null // Right thr...
import '@fortawesome/fontawesome-free/js/all.js'; import L from 'leaflet'; import 'leaflet-extra-markers/dist/css/leaflet.extra-markers.min.css'; import 'leaflet-editable'; import 'leaflet.path.drag'; import React, { useEffect, useRef, useState } from 'react'; import NewMarkerControl from './editcontrols/NewMarkerContr...
const fs = require('fs'); const path = require('path'); const rp = require('request-promise-native'); const indexedDBDir = path.join(__dirname, '../web-platform-tests/IndexedDB/'); const loaderFile = '_indexeddbshim-loader.html'; const shimLoaderPath = path.join(indexedDBDir, loaderFile); if (process.argv[2] === 'rem...
/*! * encodeurl * Copyright(c) 2016 <NAME> * MIT Licensed */ 'use strict'; /** * Module exports. * @public */ // module.exports = encodeUrl /** * RegExp to match non-URL code points, *after* encoding (i.e. not including "%") * and including invalid escape sequences. * @private */ // var ENCODE_CHARS_REG...
"use strict"; const { Pool } = require("pg"); class App { constructor(options) { options = { user: "postgres_bench", host: "localhost", database: "postgres_bench", password: "<PASSWORD>", port: 5432, ...(options || {}) }; this.pool = new Pool(options); } async fe...
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
var url = require("url"), path = require("path"), endpoint = require("./endpoint"); exports.register = function(db, endpoints) { endpoints.ws.push( endpoint.exact("/board", viewBoard(db)) ); endpoints.http.push( endpoint.exact("/", createBoard(db)), endpoint.re(/^\/[0-9][0-9a-z]{5}(\/edit)?$/...
"use strict"; var _ = require("underscore"); var util = require("../../substance/util"); var Composite = require("./composite"); var Container = function(document, view) { this.document = document; this.view = view; this.treeView = []; this.listView = []; this.__parents = {}; this.__composites = {}; ...
/* eslint-disable no-console */ /* eslint-disable react-native/no-inline-styles */ import axios from 'axios' import React, { useState, useEffect } from 'react' import { View, Text, StyleSheet, ScrollView, Alert, PermissionsAndroid } from 'react-native' import { useDispatch, useSelector } from 'react-redux' ...
import React, { useEffect } from 'react' import { makeStyles } from '@material-ui/core/styles' import Fab from '@material-ui/core/Fab' import AddIcon from '@material-ui/icons/Add' import Button from '@material-ui/core/Button' import Grid from '@material-ui/core/Grid' import PageListItem from '../ListItem' import Dialog...
/* B2R2 - the Next-Generation Reversing Platform Author: <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
"use strict"; class AmdModule { constructor(url) { this.url = url; this.amdLoading = false; this.loaded = false; this.loadPromise = null; this.loadPromiseResolve = null; //console.log("create module url", url); } } const isWorker = typeof window === "undefined"; t...
const path = require('path') const serve = require('koa-static') const Koa = require('koa') const puppeteer = require('puppeteer') const { viddyIn } = require('viddy/puppeteer') const assert = require('assert') const headless = true const devtools = true const SERVER_PORT = 4762 const delay = ms => new Promise(resolv...
import DemoBase from './demo--base.es6.js'; import * as THREE from '../vendor/three/three.module.js'; import FontUtil from '../src/font-util.es6.js'; import FrameLoop from '../src/frame-loop.es6.js'; import PointerPos from '../src/pointer-pos.es6.js'; import ThreeScene from '../src/three-scene-.es6.js'; class ThreeSce...
let character; let oldAmp = 0; let newAmp; let planetArray = []; let fullHealth; let healthBarFull; let cnv; let bbox; let isPaused = false; let gameTitle = "<NAME>"; let menuScreen = "click to start \n click in game to pause \n arrow keys to move"; function preload() { sound = loadSound("../assets/07. Pocky Boy.m...
/* Copyright (c) 2017-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /** * Defines the Response class that forwards requests to the ConversationEngine's * OutputMgr which in turn will respond back to the calling-server and * therefore ...
// Get the upload modal var modal = document.getElementById('uploadModal'); // Get the button that opens the modal var btn = document.getElementById('upload'); // Get the <span> element that closes the modal var close = document.getElementsByClassName('close')[0]; // When the user clicks on the button, open the moda...
let gameActive = true; let score = [0, 0]; let userScore = document.querySelector("user-score"); let aiScore = document.querySelector("ai-score"); const rock = document.getElementById('rock'); const paper = document.getElementById('paper'); const scissors = document.getElementById('scissors'); const lizard = document....
$(document).ready(function() { if (document.location.pathname == "/yes-films/") { $.getJSON("https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&maxResults=30&playlistId=PLpaj2LoHcuo-QKBv3L0NKWPZX0Dq5qwre&fields=items&key=<KEY>", function(result) { $.each(result.item...
let audioContext; let audioElement; let audioElementSource; let foaSource; let toaSource; let pannerNode; let foaScene; let toaScene; let noneGain; let pannerGain; let foaGain; let toaGain; let dimensions = {width: 1, height: 1, depth: 1}; let audioReady = false; /** * Select the desired rendering mode. * @param {Ob...
import React, { useContext, useState, useEffect } from 'react'; import { withRouter, Link } from 'react-router-dom'; import { AuthContext } from '../../services/Auth'; import app from '../../services/base.js'; import dbServices from '../../services/dbServices'; import Swal from 'sweetalert2'; import Sidebar from '../S...
/*for random number*/ function random(how, express) { function ran() { let num = Math.floor(Math.random() * express) return num } let set = new Set([ran()]); if (set.size === how) { return set } else { function again() { for (i = 0; i < 1; i++) { ...
import React from 'react'; import PropTypes from 'prop-types'; import { connect, getIn } from 'formik'; import CustomFormInputDateTime from './CustomFormInputDateTime'; import CustomFormInputFile from './CustomFormInputFile'; import CustomFormInputMultiCheckbox from './CustomFormInputMultiCheckbox'; import CustomForm...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getInterval = exports.Interval = exports.adjustProcessingOptions = exports._findGoodDataValueAfter = exports._findGoodDataValueBefore = exports.isGood = exports.isBad = exports.isGoodish = void 0; /** * @module node-opca-aggregate...
const RichEmbed = require("discord.js").RichEmbed; const Discord = require("discord.js"); const boxen = require("boxen") const fs = require('fs') const moment = require("moment") module.exports.run = (client, message, args, data, announcement,colors) => { var commandlock = data.lock if(commandlock.includes('true...
/** * Copyright 2017 IBM Corp. * * 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 wr...
import React, {cloneElement, Component} from 'react' import {render} from 'react-dom' import styled, {css, keyframes} from 'styled-components' import Deck, {Elements, Plugins} from '@dekk/dekk' import Controller from './plugins/controller' import LocalStorage from '@dekk/local-storage' import SpeakerDeck from '@dekk/sp...
const log = require('../libs/logger')(module); const knex = require('../libs/db').knex; const generate = require('./gen/generator'); const dropDb = require('./0_drops'); const addUsersToDb = require('./1_users'); const addEventsToDb = require('./2_event'); const addCampsToDb = require('./3_camps'); const addCampMembers...
let mix = require('laravel-mix'); const autoprefixer = require('autoprefixer') const mqpacker = require('css-mqpacker') const yargs = require('yargs-parser')(process.argv.slice(2)); const scss_file = yargs.scss ? yargs.scss + '.scss' : 'app.scss'; const js_file = yargs.js ? yargs.js + '.js' : 'app.js'; var name = null;...
import { createElement } from './dom.js'; import { noop } from './utils.js'; export function linear(t) { return t; } export function generateRule({ a, b, delta, duration }, ease, fn) { const step = 16.666 / duration; let keyframes = '{\n'; for (let p = 0; p <= 1; p += step) { const t = a + delta * ease(p); k...
/*! * get-installed-path <https://github.com/tunnckoCore/get-installed-path> * * Copyright (c) <NAME> <@tunnckoCore> (http://i.am.charlike.online) * Released under the MIT license. */ 'use strict' const fs = require('fs') const path = require('path') const modules = require('global-modules') /** * > Get instal...
/* Copyright (C) 2016 NooBaa */ 'use strict'; const WaitQueue = require('./wait_queue'); const dbg = require('./debug_module')(__filename); class Semaphore { /** * construct a semaphore with initial count * params: Includes several parameters for the semaphore that could be: * timeout - The timeou...
/** * @license * Copyright 2020 Google LLC. 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 a...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import yaml from 'js-yaml' // 公共函数 import * as toolkit from '@/toolkit' Vue.prototype.toolkit = toolkit; Vue.prototype.T = toolkit; // 常量 import const_ from '@/const' Vue.prototype.const = const_; Vue.prototyp...
import React, { useContext, useCallback, useState, useEffect } from 'react' import { motion, AnimatePresence } from 'framer-motion' import { InlineNotification } from 'carbon-components-react' import AppContext from '../../context/app' import logo from '../../components/openeew_logo.svg' import LoginInput from '../../...
import _ from 'lodash'; import { addMultipleLinesToLayerByID } from 'store/line/lineActions'; import { allPointsBetweenTwoCoords } from '../../../utils/coordUtils'; const makeRectangleAtDistance = (height, width, distance, intensity) => { const topLeft = [distance, distance]; const topRight = [width - distance...
var g_command = []; // 入力したコマンド var g_maxData = 4; // データ数 var g_invalidCommand = 0; // 無効なコマンド var g_useBGC = "#0f0"; // 使用する背景色 var g_whiteBGC = "#fff"; // 白色の背景色 // 色の設定 var setColor = function (idx, colorStr) { document.getElementById("cell" + idx).style.backgroundColor = colorStr; } // 初期化 v...
/** * Autocomplete Emojis/Emotes */ /*global _, Dubtrack, emojify*/ var settings = require('../lib/settings.js'); var prepEmjoji = require('../emojiUtils/prepEmoji.js'); import {PreviewListManager, makeList} from '../emojiUtils/previewList.js'; // because I have a lot of logging on each keypress I made this var debu...
exports.openMainWindow = function(_tab) { _tab.open($.invoicelist_window); Ti.API.info("This is child widow invoice.js" +JSON.stringify(_tab)); // $.invoicelist_table.search = $.search_history; Alloy.Collections.invoice.fetch(); }; /* $.invoicelist_window.addEventListener("click", function(e){ //Alloy.Global...
#!/usr/bin/env node const {camelCased} = require('@mrbuilder/utils'); const {argv} = process; const {join} = require('path'); const { existsSync, writeFileSync, mkdirSync } = require('fs'); const root = require(join(__dirname, '..',...
import { remote } from 'electron'; import { t } from 'i18next'; import servers from './servers'; import webview from './webview'; const { TouchBar, nativeImage, getCurrentWindow } = remote; const { TouchBarButton, TouchBarLabel, TouchBarSegmentedControl, TouchBarScrubber, TouchBarPopover, TouchBarGroup } = TouchBar; ...
import React, { useState } from "react"; import { View, Text, StyleSheet, Dimensions, ScrollView, Image, } from "react-native"; import Firebase from "../config/Firebase"; import AppLoading from "expo-app-loading"; import axios from "axios"; import CartTile from "../components/CartTile"; impor...
const readLineSync = require('readline-sync'); function urlConvert() { const url = readLineSync.question('Enter the URL:\n'); const choice = readLineSync.question('1. Encode\n2. Decode\n'); if(choice==='1') console.log(encodeURIComponent(url)); if(choice==='2') console.log(decodeURIComponent(url)); } ...
const XLSX = require('xlsx'); const axios = require('axios'); var eventService = require("./eventService.js"); var parseoXML = require('xml2js').parseString; const express = require('express') const path = require('path') const fileUpload = require('express-fileupload') const basicAuth = require("basic-auth"); ...
const TIME_SLOTS = [ { key: '00_00', label: '00:00' }, { key: '00_30', label: '00:30' }, { key: '01_00', label: '01:00' }, { key: '01_30', label: '01:30' }, { key: '02_00', label: '02:00' }, { key: '02_30', label: '02:30' }, { key: '03_00', label: '03:00' }, { key: '03_30', label: '03:30' }, { key: '0...
/* -------------jsState模块--------------------------- * jsState.nFrameID : int, 当前桢的序号 * jsState.bStopped : bool, 是否结束 * jsState.nFrameMSleep : int, 每一帧的停顿时间 * jsState.bIsModule : bool, 判断自身是否当作模块运行 * --------------Robot模块----------------------- * Robot.log(str) : 日志输出 * Robot.msleep(nMinSec) : 延时毫秒 * Robot.audi...
/** init domain config */ import './config' import Vue from 'vue' import App from './App.vue' import Storage from 'vue-ls' import router from './router' import store from './store/' import { VueAxios } from "@/utils/request" require('@jeecg/antd-online-mini') require('@jeecg/antd-online-mini/dist/OnlineForm.css') ...
var ipc, WebSocket; class WebSockets_Callback{ constructor(options){ this.triggers = {} this.expectations = {} this.clients = [] this.options = { verbose: false, //will log some messages to the console asClient: false, //will setup WSCB as a client...
/* eslint-disable no-console, global-require, import/no-unresolved, import/no-dynamic-require */ const fs = require('fs'); const path = require('path'); const LRU = require('lru-cache'); const { createBundleRenderer } = require('vue-server-renderer'); const errorHandler = (err, res, cb) => { if (err.url) { ...
const packageJson = require("../package.json"); const elmJson = require("../elm.json"); const root = "examples/gh-pages"; const info = { title: "Elm Image encoding and decoding", description: "Image encoder/decoder in pure Elm, supporting any bit size & interlace for BMP and PNG formats", version: elmJson...
import View from '../View'; import TemplatedViewMixin from '../../mixins/TemplatedViewMixin'; import RouterLinksViewMixin from '../../mixins/RouterLinksViewMixin'; import ModalShadeViewMixin from '../../mixins/ModalShadeViewMixin'; import template from './template.pug'; import './style.scss'; import UserModel from '../...
import React, { Component, Fragment } from 'react'; import _ from 'lodash'; import arrayMove from 'array-move'; import PropTypes from 'prop-types'; import Table from './group-list/table'; const headStyle = { borderRadius: '0.25rem 0.25rem 0 0', padding: '0.25rem 0.75rem 0.25rem', lineHeight: '1.5', }; exp...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createMiddlewares = void 0; const tslib_1 = require("tslib"); const chokidar_1 = tslib_1.__importDefault(require("chokidar")); const koa_compress_1 = tslib_1.__importDefault(require("koa-compress")); const koa_etag_1 = tslib_1.__import...
/** * @date 2019-04-04 * @author WY <<EMAIL>> */ import React from 'react'; import pathToRegexp from 'path-to-regexp'; import { isEmpty, isUndefined } from 'lodash'; import { Icon } from 'choerodon-ui/pro'; import Icons from 'components/Icons'; import intl from 'utils/intl'; import { openTab } from 'utils/menuTab'...
/** * Created by milans on 07/07/15. */ const seraph = require("disposable-seraph"); const storageModule = require('../src/storage'); const should = require('chai').should(), expect = require('chai').expect, assert = require('assert'); const proteins = [ { iid: 1854701, eid: "9606.ENSP00000356969", name:...
// List of self-closing tags var isSelfClosingTag = require('./self-closing-tags'); /** * The Document class containing the doctype and * an element tree */ function Document (doctype) { this.doctype = doctype; this.tree = []; this.setDoctype = function (doctype) { // if (doctype === undefined)...
const example = `## Where to learn and use markdown? [Markdown-Tutorial]: https://www.markdowntutorial.com/ 1. [Start with Markdown-Tutorial][Markdown-Tutorial] 2. [Markdown CheatSheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) 3. [Use mark down for Github page](https://help.github.com/art...
const mime = require('mime-types') const _ = require('lodash') const { DirectLine, ConnectionStatus } = require('botframework-directlinejs') const debug = require('debug')('botium-connector-directline3') global.XMLHttpRequest = require('xhr2') const Capabilities = { DIRECTLINE3_SECRET: 'DIRECTLINE3_SECRET', DIREC...
const path = require('path'); // 针对服务器端,对于require这样的代码进行与客户端不同的处理 const nodeExternals = require('webpack-node-externals'); // 需要额外的输入 // 1.宿主工程根路径 // 2.上下文构建的配置文件 // 3.configPath // 宿主工程根路径 let contextRootPath; // 构建服务端代码的配置文件,默认是crs.build.config.js,对构建服务代码进行自定义 let configPath; /** * externals * @description - 对象...