text
stringlengths
3.22k
29.5k
var codec = require('../codec') var l = require('../') function each (list, iter) { if(!list) return console.log("pointer", list.toString(16)) iter(l.head(list)) each(l.tail(list), iter) } function log (s) { console.log(s) return s } function toArrays (list) { var a = [] each(list, function (e) { ...
require("dotenv").config(); const fs = require("fs"); const Discord = require("discord.js"); const db = require("./models"); const userController = require("./controllers/userController"); const log = require("./logging/errorLogging/errorLogging"); const messageController = require("./controllers/messageController"); c...
const debug = require('debug')('bittorrent-tracker:server') const EventEmitter = require('events') const series = require('run-series') const string2compact = require('string2compact') const attachHttpService = require('./services/attachHttp') const attachWSService = require('./services/attachWS') const setupStatsRout...
'use strict'; import { assert } from 'chai'; import path from 'path'; import fs from 'fs-extra'; import config from '../app/config'; import db from '../app/db'; import { setupStructure as setupDdStructure } from '../app/db/structure'; import { bucket } from '../app/s3/'; import { setupStructure as setupStorageStructur...
var kind = require('enyo/kind'); var Collection = require('enyo/Collection'), DataGridList = require('enyo/DataGridList'); var data = [ { classes: 'repeater-item class1 item', firstName: 'Alejandra', lastName: 'Walsh' }, { classes: 'repeater-item class2 item', firstName: 'Marquez', lastName: 'James' }, { classe...
/* eslint-disable */ const yaml = require('yaml'); const path = require('path'); const jp = require('jsonpath'); const fs = require('fs-extra'); const { JSDOM } = require('jsdom'); const fetch = require('sync-fetch'); const asciidoctor = require('asciidoctor')(); const Ajv = require('ajv').default; const pantheonBase...
import React, { Component } from 'react' import pureRender from 'pure-render-decorator' import Header from './Header' import Editor from './Editor' import PlayerFrame from './PlayerFrame' import Status from './Status' import Overlay from './Overlay' import Button from './Button' import About from './About' import Tabs...
/* Design a parking lot using object-oriented principles Goals: - Your solution should be in Java - if you would like to use another language, please let the interviewer know. - Boilerplate is provided. Feel free to change the code as you see fit Assumptions: - The parking lot can hold motorcycles, cars and vans - Th...
/* * Copyright 2017-2018 Micro Focus or one of its affiliates. * * 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...
const Codec = require("./Codec"); const Logger = require("../Logger"); const Stamp = require("./Stamp"); const createMiioHeader = require("./MiioHeader"); const MiioTimeoutError = require("./MiioTimeoutError"); /** Methods which are used frequently. Those will be logged with trace (instead of debug) verbosity. */ cons...
const { git } = require('KegGitCli') const { Logger } = require('KegLog') const { spawnCmd } = require('KegProc') const { ask } = require('KegRepos/ask-it') const { copySync, emptyDirSync } = require('KegFileSys') const { get, exists } = require('@keg-hub/jsutils') const { getHubRepos } = require('../hub/getHubRepos') ...
var CONNECTION_PARAMETERS = { 'host': 'datafeeds.networkrail.co.uk', 'port': 61618, 'connectHeaders': { 'host': '/', 'login': process.env.NROD_USERNAME, 'passcode': process.env.NROD_PASSWORD, 'client-id': ((process.env...
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. var loadMathJax; $(function() { loadMathJax(); return $(document).on('page:load', loadMathJax); }); loadMathJax = function() { window.MathJax = null; return $.getS...
import BackgroundGeolocation from '@mauron85/react-native-background-geolocation'; import PushNotificationIOS from '@react-native-community/push-notification-ios'; import PushNotification from 'react-native-push-notification'; import { LOCATION_DATA, PARTICIPATE } from '../constants/storage'; import { GetStoreData, Se...
var todaysDate = moment().format("D/MM/YYYY"); var longitude; var latitude; var fetchWeatherUrl; var searchHistory = []; var superCity = ""; localStorage.setItem("userSearchHistory", JSON.stringify(searchHistory)); var getUserSearchHistoryEl = document.querySelector(".getUserSearchHistory"); function searchWeather() {...
/* * Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License, * Version 1.0, and under the Eclipse Public License, Version 1.0 * (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ addEvent(window, "load", initSort); function addEvent(elm, evType, fn, useCapture) { // add...
const controlsIds = { F5: 327, W: 32, // 232 S: 33, // 31, 219, 233, 268, 269 A: 34, // 234 D: 35, // 30, 218, 235, 266, 267 Space: 321, LCtrl: 326, Mouse1: 24, Mouse2: 25, Shift: 21 }; global.fly = { flying: false, f: 2.0, w: 2.0, h: 2.0, point_distance: 1000...
'use strict' const MINE = '💣'; const HAPPYSMILEY = '😝'; const SADSMILEY = '😭' const FLAG = '🇮🇱' const WINSMILEY = '🤑' var gWinAmount = (localStorage.gWinAmount) ? localStorage.gWinAmount : 0; localStorage.gWinAmount = gWinAmount; var gPlays; var gCurrPlay = []; var gSafeClickCount; var gHintCount; var gLives...
import assertRevert from './helpers/assert_revert.js'; import keccak from './helpers/keccak.js'; import { newSubscription } from './helpers/volume_subscription.js'; var MockVolumeSubscription = artifacts.require("./tests/MockVolumeSubscription.sol"); var MockPaymentRegistry= artifacts.require('./tests/MockPaymentRegi...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import { assign, forEach, isArray } from 'min-dash'; import { is } from '../../util/ModelUtil'; import { isExpanded, isEventSubProcess } from '../../util/DiUtil'; import { isAny } from '../modeling/util/ModelingUtil'; import { getChildLanes } from '../modeling/util/LaneUtil'; import { hasPrimaryM...
const $ = el => document.querySelector(el); const $$ = el => document.querySelectorAll(el); // load all questions const questions = [ { id: 1, question: "Which of these statements best describes my definition of financial wellbeing?", options: [ "<b>I have ammassed more wealth than I ever tho...
'use strict'; // to learn more about the cheerio library and what it is doing, look at their documentation: https://www.npmjs.com/package/cheerio const cheerio = require('cheerio'); const Mustache = require('mustache'); /* -----------------------------------------------------------------------------------------------...
var DateAndTimeData = fabric.util.createClass(fabric.Path, { serializableProperties: ['left', 'top', 'theType', 'value'], deserializer: addVisualValueToCanvas, initialize: function (options) { options || (options = {}); var path = paths["dateAndTime"].rw; this.callSuper('initialize',...
/* Copyright 2016 <NAME> Copyright 2016 OpenMarket Ltd Copyright 2018 New Vector Ltd Copyright 2017, 2019 <NAME> <<EMAIL>> 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/...
// Title: Tigra Menu // Description: Free JavaScript Menu Navigation // URL: http://www.javascript-menu.com/ // Version: 2.1 (commented source) // Date: 06/26/2007 // Tech. Support: http://www.softcomplex.com/forum/forumdisplay_29/ // Notes: This script is free. Visit official site for further details. // ----...
const ytdl = require("discord-ytdl-core"); const yts = require("yt-search"); const Discord = require("discord.js"); const Disbut = require("discord-buttons"); const client = new Discord.Client(); const config = require("./config.json"); let nowPlaying = {}; let queue = []; let connection; let searchResults = []; cons...
/*----------------------------------------------------------------------------\ | Help Tip 1.1 | |-----------------------------------------------------------------------------| | Created by <NAME> | | ...
/** * Created by Daniel on 14.08.2017. * This file contains all routes concerning the excel statistics. */ "use strict"; // import necessary modules var fs = require("fs"); var postgresDb = require("../postgres/postgres.js"); var async = require("async"); var xlsBuilder = require("msexcel-builder-colorfix"); var l...
//最外层组件 var ncComponentHtml = '<div v-show="data.lazyLoadCss && data.lazyLoad">'; ncComponentHtml += '<div class="preview-draggable">'; //拖拽区域 ncComponentHtml += '<slot name="preview"></slot>'; ncComponentHtml += '<i class="del" v-on:click.stop="$parent.delComponent(data.index)" data-disabled="1">x</i>'; ncComponentHt...
"use strict"; /** * 符号表和作用域 * @version 0.5 * @author 宫文学 * @license 木兰开源协议 * @since 2021-06-04 * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SymbolDumper = exports.SymbolVisitor = exports.built_ins = exports.FUN_integer_to_string = exports.FUN_tick_d = exports.FUN_tick = exports.FUN...
Object.defineProperty(exports, "__esModule", { value: true }); var _assign2 = require("lodash/assign"); var _assign3 = _interopRequireDefault(_assign2); 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.p...
/* * 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 * distribut...
import { OpaqueToken } from '@angular/core'; import { isObject, isDefined, isFunction, isArray } from '../util/util'; /** * \@name Config * \@demo /docs/v2/demos/src/config/ * \@description * The Config lets you configure your entire app or specific platforms. * You can set the tab placement, icon mode, animations...
/* * App.js * * Basic react app container. Handles state for the app and * propagation for state changes into the non-react map */ import React from "react"; import { onSliderChangeMap, addMarkersToMapForData, updateMapToggles, registerHandlers, mapLoadPromise, } from "./Map"; import Dataframe from "./D...
import React from 'react'; import PropTypes from 'prop-types'; import { omit, uniqueId } from 'lodash'; /** * List is container component used to help group list items. * @category containers * @component list-item * @variations collab-ui-react */ class List extends React.Component { static displayName = 'List'...
// semver-bumper-for-file-text/index.js // Update bower.json, component.json, package.json, // README.md, etc., all with one command 'use strict'; require('pretty-error').start(); var _ = require('lodash'); var colors = require('colors'); var fileLineUpdater = require('./file-line-updater.js'); var FN = require('fstre...
/** * 对应于需要集成office的CMS系统的office编辑页面 */ import _ from 'lodash'; import { getPublicUrl, postService } from './app.services'; import { debug } from '../src/plugins/utils'; export * from './base'; const examples = { 'ExcelIO-Basic': { code: `(function(name){ let writer = Excel.createWriter({}); c...
import React from 'react'; import GoogleMap from 'google-map-react'; import supercluster from 'points-cluster'; import CircularProgress from 'material-ui/CircularProgress'; import {greenA400} from 'material-ui/styles/colors'; import Snackbar from 'material-ui/Snackbar'; // API key import {GoogleMapsAPIkey} from '../.....
import React from "react"; import { connect } from "react-redux"; import { Icon } from "components"; import { compose } from "redux"; import withData from "./withData"; import { Header } from "modules/common"; import { ActionMenu } from "modules/common"; import IconButton from "material-ui/IconButton"; import Label fro...
import React from 'react'; import { Grid, Button, Header, Icon, Progress, Step, Popup, Dropdown, Divider, } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; class NewCandidate extends React.Component { constructor(props) { super(props); this.state = { degree: '', ...
document.observe("dom:loaded", function() { $$("#secondary_navigation a").each( function(e) { Event.observe(e, "click", loadUrl ); } ); $$(".touch-row").each(function(e) { Event.observe(e, "click", touchRowClick); addArrow(e); }); $$("a.prev:not(.disabled), a.next:not(.disabled)").invoke("on", "click", loadUrl); ...
var connection = require('../database') const dateTime = require('node-datetime'); const jwt = require('jsonwebtoken'); module.exports = { setTest: (req, res) => { //var idTest = require('../tests/question_'+req.params.id+'.json'); //let sql = 'SELECT JSON_MERGE(JSON_OBJECT("testName", name), questi...
var vectorTypeEnum = 'fasttext'; var debiasMethodEnum = 'gbdd'; var enablePCA = "full"; var enableAugments = "false"; var currentResult = {}; //Updates the values of the currently selected parameters function getSelectionValues() { let activeVectorType = document.getElementById('word_embedding').getElementsByClass...
const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const checkId = urlParams.get('id'); const url = `https://api.appworks-school.tw/api/1.0/products/details?id=${checkId}`; // variable for product details let colorIndex = 0; let sizeIndex = 0; let maxQuantity = 0; let quant...
import { _SPFlight, Text } from '@microsoft/sp-core-library'; import { confirmDebugAllowed, dangerouslyEnableDebug } from './confirmDebugAllowed'; import ManifestStore from './../stores/ManifestStore'; import showDebugError from './showDebugError'; import strings from './DebugManager.resx'; /** * Put debug data ...
import React, { Component } from 'react' import './MineFieldGame.css' import ProgressBar from '../../ProgressBar/ProgressBar' import Button from '../../../graphics/Button' import cardFiles from '../../../data/cards.json' import * as Pixi from 'pixi.js' import ReactGA from 'react-ga' Pixi.utils.skipHello() const Ap...
import React from 'react'; import { getProjectById } from '../../../../../../api/projects' import { getActivities, deleteActivity, editActivity } from '../../../../../../api/activities' import { getParticipants } from '../../../../../../api/participants' import { downloadFile } from '../../../../../../api/files' import...
// Auxiliary functions let formatter = d3.format(">02~"); function generateRandomData(min = 0, max = 20, size = null) { let arr = []; let newNum = () => min + Math.floor(Math.random() * (max - min)); if (!size) size = 5 + Math.random() * 15; for (let i = 0; i < size; i++) { let num = newNum(); while (a...
function cargarCiudades(idPais){ $("#tablaCiudades").dataTable().fnDestroy(); $('#tablaCiudades').DataTable({ 'paging':true, 'info':true, 'filter':true, 'staveSave':true, 'ajax':{ "url":baseurl+"Cconfig/getCiudadesConfigControler", "type":"POST", "data":{ "idPais":idPais }, dataSrc:'' }, 'columns':...
/* This file is currently associated to an HTML file of the same name and is drawing content from it. Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file. */ function DisplayTemplate_0b2c32adbe524ac591ffd18daf9ee7b5(ctx) { var ms_outHtml=[]; var ...
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 (Object.prototype.hasOwnProp...
/** * Loads grid's HTML into given DIV's content * This function is triggered by left side menu item click * * @param string grid_data_htm_id DIV's html ID, where grid's HTML will be loaded * @param int list_id Grid's coresponding list (register) ID - from the table dx_lists * @param int ...
function createVesselsLayer(geojson) { // console.log("Create Map Layer for:", geojson) var vectorSource = new ol.source.Vector({ features: (new ol.format.GeoJSON()).readFeatures(geojson) }); var vectorLayer = new ol.layer.Vector({ zIndex: 100, className: 'vessels-layer', ...
#!/usr/bin/env node var keypress = require('keypress'); var chalk = require('chalk'); var tty = require('tty'); var fs = require('fs'); var splashScreen = "\n\n" + "█████╗█████╗█████╗█████╗█████╗█████╗█████╗█████╗█████╗\n" + "╚════╝╚════╝╚════╝╚════╝╚════╝╚════╝╚════╝╚════╝╚════╝\n\n" + " ███╗...
var gulp = require('gulp'), sass = require('gulp-sass'), rename = require('gulp-rename'), cleanCSS = require('gulp-clean-css'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), prefix = require('gulp-...
import { Vector3 } from '../math/Vector3.js'; import { Vector2 } from '../math/Vector2.js'; import { Sphere } from '../math/Sphere.js'; import { Ray } from '../math/Ray.js'; import { Matrix4 } from '../math/Matrix4.js'; import { Object3D } from '../core/Object3D.js'; import { Triangle } from '../math/Triangle.js'; impo...
import React, { useState, useEffect } from 'react'; import LanguageModal from './LanguageModal.js'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Image } from 'react-native'; import { RTCView, mediaDevices } from 'react-native-webrtc'; import { useSelector, useDispatch }...
function isNumberKey(evt){ var charCode = (evt.which) ? evt.which : evt.keyCode; if (evt.key == "%") charCode=0; if (evt.keyCode ==46 && evt.which==0) charCode=8; if (charCode == 0) return false; if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode !=37 && charCode!=39) ...
var EventEmitter = require('events.js'); var inherits = require('inherits'); var EventManager = require('./EventManager'); var CommandCenter = require('./CommandCenter'); var MsgServer = require('./MsgServer'); var HttpRequest = require('./HttpRequest'); function MageNotConfiguredError() { return new Error('Please c...
function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } class Game{ constructor(iniPoints=0,statMax=0,desc=""){ this.initialPoints=iniPoints; this.statMax=statMax...
// Set initial values for drawing the map image var mapW, mapH; // integers: width and height of map image var zoom = 0; // integer: zoom level -- should always default to 0 var mapBoxW = 0; // integer: western bound of map image (per IMS map API) var mapBoxN = 0; // integer: northern bound of map image (per IMS map A...
"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]; } } } ...
/*========================================================================================= File Name: main.js Description: main vue(js) file ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: ...
"use strict"; const fs = require('fs-extra'); const { sh, type, draft } = require('../../modules/sh'); const FTP = require('../../modules/ftp'); const { dev, source, to, process_files, port } = require('../../modules/config'); const createDir = require('../../modules/create-dir'); const empty = require('../../modules/...
const got = require('@/utils/got'); const { load } = require('cheerio'); exports.getPage = async (url, ctx) => { const { data } = await got(url); const $ = load(data); const pageTitle = `JavBus - ${$('head > title').text().replace(' - JavBus', '')}`; return { title: pageTitle, link: u...
////////////////////////////********************/////////////////////////////////////// const luis = ["luis"]; const everyone = [ "haziq", "shindy", "johan", "austin", "luis", "jhonson", "ken", "rashdan", "waqas", "shaun", ]; const large = new Array(1000).fill("steven"); // O(1) CONSTANT TIME func...
const fs = require('fs'); const loginUrl = "https://cloud.touchbistro.com/login"; const {login, password} = require("./touchbistroAuth.json"); const staticBillsUrl = "https://cloud.touchbistro.com/reporting/bills"; // run all the process of scraping the bills, parse them and save the datas as csv file // using an as...
'use strict'; /* globals __dirname */ var browserify = require('browserify'); var brfs = require('./gulp/brfs'); var c = require('ansi-colors'); var cleanCSS = require('gulp-clean-css'); var del = require('del'); var fs = require('fs'); var gulp = require('gulp'); var log = require('fancy-log'); var path = require('p...
const Fetch = require('node-fetch') const Cheerio = require('cheerio') const Discord = require("discord.js") const Request = require("request-promise") const Moment = require("moment") require("moment-duration-format") exports.run = async (client, message, params = [], debug = false) => { if (params.length === 0) ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import GenericComponent from "../GenericComponent"; import { sum } from "d3-array"; import { first, last, isNotDefined, isDefined, hexToRGBA } from "../utils"; class HoverTooltip extends Component { constructor(props) { super(props); ...
import React from 'react'; import './userInfoDropDown.scss' import adapterService from "../../adapterService/adapterService"; import {connect} from 'react-redux' import {Toggle, InlineLoading} from "carbon-components-react" import {withRouter} from 'react-router' import Badge from "../badge/badge"; import toastr from '...
// Copyright 2008 The Closure Library Authors. 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 requ...
import { DefaultWebGL2BufferFragment, DefaultWebGLBufferFragment } from '../context/chunks'; import Context from '../context/context'; import IterableStringMap from '../core/iterable'; import FlatGeometry from '../geometry/flat-geometry'; export var BufferFloatType; (function (BufferFloatType) { BufferFloatType[Buf...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Hidden = exports.StyledClose = exports.StyledDrawerBody = exports.StyledDrawerContainer = exports.StyledBackdrop = exports.StyledRoot = void 0; var _index = require("../styles/index.js"); var _constants = require("./constants.js")...
const { supportedVersions, defaultVersion } = require('../..') if (process.argv.length !== 4) { console.log('Usage : node sniffer.js <networkInterface> <version>') process.exit(1) } // If the version correspond to a supported version else use default const version = supportedVersions.find(v => v === process.argv[...
// Variables const svg = document.querySelector('.svg'); const detachedStates = document.querySelectorAll('.detached-states-item.state'); const electoralDemElement = document.querySelector('.electoral-dem-value'); const electoralRemElement = document.querySelector('.electoral-rep-value'); const balanceOfPowerElement = ...
import React, {useState, useRef} from 'react' import { Link } from 'gatsby' import { FaQuestionCircle, FaRegCalendarAlt, FaArrowLeft, FaPaperPlane, FaArrowRight } from 'react-icons/fa' import formData from '../../../assets/data/formData.json' import updateNearbySelection from '../../../utils/helpers/forms/updateNearby...
/** @license (C) Copyright Nuxeo Corp. (http://nuxeo.com/) 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 agree...
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
const path = require('path'); const http = require('http'); const Koa = require('koa'); const KSR = require('koa-static-resolver'); const SocketIO = require('socket.io'); const watch = require('../watch/watch.js'); const testBuildHandler = require('./test-build-handler.js'); const buildTest = testBuildHandler.buildTe...
import React, { forwardRef, useImperativeHandle } from 'react'; import PropTypes from 'prop-types'; import { Alert, Clipboard, Share } from 'react-native'; import { connect } from 'react-redux'; import moment from 'moment'; import RocketChat from '../../lib/rocketchat'; import database from '../../lib/database'; impor...
/* Copyright 2016 First People's Cultural Council 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 w...
let coverArt = false const timeout = async (ms) => { return new Promise((resolve) => setTimeout(resolve, ms)) } const arrayIncludes = (string, array) => { for (let i = 0; i < array.length; i++) { if (string.includes(array[i])) return true } return false } const scButton = (noPeri...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import StyledButton from '../StyledButton'; import { StyleSheet, View, TouchableOpacity, ScrollView, Linking } from 'react-native'; import TransactionHeader from '../TransactionHeader'; import { strings } from '../../../../locales/i18n'; impor...
require('@babel/register') const _ = require('lodash') const { handlerError } = require('../../api/comm') const superagent = require('superagent') const { redisFetching } = require('../../api/middle/ioredisHandler') const { getDate, getSectionColorModifier, getCredit, getStoryHeroImageSrc, composeAnnotation, firstTwoU...
/** * Created by ANGELDAVID on 26/03/2016. */ // Almacena los datos de la fila seleccionada var tableTrTouched = null; // Contenedor de la lista de las notas (Izquierdo) var containerProducts = $('#list-products'); // Contenedor del lado derecho var continaerProductShow = $('#continaer-product-shows'); function limpi...
var DAYS = [ ["Monday", "MON"], ["Tuesday", "TUE"], ["Wednesday", "WED"], ["Thursday", "THU"], ["Friday", "FRI"], ["Saturday", "SAT"], ["Sunday", "SUN"] ]; var DAYS_MAP = { "mon": 'parking.Day("MON")', "tue": 'parking.Day("TUE")', "wed": 'parking.Day("WED")', "thu": 'parking...
'use strict'; /* eslint-disable global-require */ const BbPromise = require('bluebird'); const _ = require('lodash'); const memoize = require('memoizee'); const validate = require('./lib/validate'); const compileRestApi = require('./lib/restApi'); const compileRequestValidators = require('./lib/requestValidator'); c...
import React, {Component} from 'react'; import {connect} from "react-redux"; import { isLoading, getPhenotypeTerms, getAnatomyTerms, getGenes, getAnatomyFunctionAssays } from "../redux/selectors/textMinedEntitiesSelector"; import EntityPicker from "../components/EntityPicker"; import Container from "react-b...
const { upperFirst, mergeData, mergeConfig } = require('./utils'); const restore = require('./restore'); function mergeArray (arr) { return arr.reduce(function (r, o) { return mergeData(r, o); }, {}); } function invalidKey (key) { if (/^[a-zA-Z]\w*$/.test(key)) { return false; } return true; } function s...
/** * Manager handling the keyboard events. * * @author <NAME> * @version 3.2.0 * @copyright (c) 2019 Ilixa Ltd. ({@link http://ilixa.com}) * @license Distributed under the terms of the MIT License */ import {Clock, MonotonicClock} from "../util/Clock"; import {PsychObject} from "../util/PsychObject"; import {P...
"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...
// buttons const enableWebcamButton = document.getElementById('webcamButton'); const stopWebcamButton = document.getElementById('stopCamButton'); const predictButton = document.getElementById('predictButton'); const uploadButton = document.getElementById('uploadButton'); predictButton.addEventListener('click', predictI...
const Protocol = require("./Protocol"); const Reader = require("../primitives/Reader"); const Writer = require("../primitives/Writer"); const PingReturn = Buffer.from(new Uint8Array([2])); class ModernProtocol extends Protocol { /** * @param {Connection} connection */ constructor(connectio...
/** * Complete dimensions by data (guess dimension). */ var zrUtil = require('zrender/lib/core/util'); var modelUtil = require('../../util/model'); var each = zrUtil.each; var isString = zrUtil.isString; var defaults = zrUtil.defaults; var normalizeToArray = modelUtil.normalizeToArray; ...
const _ = require('underscore'); const AbilityDsl = require('./abilitydsl.js'); const CardAction = require('./cardaction.js'); const CustomPlayAction = require('./customplayaction.js'); const EffectSource = require('./EffectSource.js'); const TriggeredAbility = require('./triggeredability'); const { Locations, Effect...
const fs = require('fs'); const path = require('path'); const app = require('express')(); const bodyParser = require('body-parser'); const http = require("http").createServer(app); const io = require("socket.io")(http); //创建application/json解析 var jsonParser = bodyParser.json(); //创建application/x-www-form-urlencoded v...
const { randomInt, logger } = require('./utils') const fs = require('fs') const path = require('path') const mm = require('micromatch') const through2 = require('through2') const info = logger('▶httpupload', 'info') const TMP_DIR = path.join(require('os').tmpdir(), 'fly-uploads') const ONE_HUNDRED_MEGA_BYTE = 100 * 1...