text
stringlengths
3.22k
29.5k
/* Copyright 2015 Bloomberg Finance L.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 ag...
/* eslint-disable no-underscore-dangle */ import uniq from 'lodash/uniq'; import { all, call, put, select, take, takeEvery, race } from 'redux-saga/effects'; import fetch from 'isomorphic-unfetch'; import ActionTypes from 'mirador/dist/es/src/state/actions/action-types'; import { receiveAnnotation, updateConfig } from...
var path = require('path'), fs = require('fs'), os = require('os'), appc = require('node-appc'), crypto = require('crypto'), log = require('../log'), clangparser = require('../clangparser'), programs = require('./programs'), buildlib = require('./buildlib'), finder = require('./finder'), Paths = req...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { RowSelectVariant, Table, TableBody, TableHeader } from '@patternfly/react-table'; import { EmptyTable, SkeletonTable } from '@redhat-cloud-services/frontend-components'; import { Toolbar, Toolba...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventGroup = void 0; var object_1 = require("./object"); /** An instance of EventGroup allows anything with a handle to it to trigger events on it. * If the target is an HTMLElement, the event will be attached to the element and can ...
/* eslint-disable mocha/no-hooks-for-single-case */ const assert = require('chai').assert const { parse } = require('../lib/parsers') const unknownResponse = Buffer.from([ 0xAA, 0x22, 0xAC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0xFF, 0x00, 0x44, 0x66, 0x7F, 0x7F, 0x00, 0x30, 0x00, 0x00, 0x00, 0x5F, 0x59, 0x...
import { IMAGE_EXTENSIONS, VIDEOS_EXTESION, GIF_EXTESIONS, APP_ENV } from '../constants'; import routes from '../routes'; import { isoLangs, supportedLangs } from '../constants/langs' import { signLangsArray } from './langs'; export const getUrlMediaType = function (url) { const extension = url.split('.').pop().toLo...
import React, { Component } from 'react'; import { Button, Card, CardBody, CardHeader, Col, Row, Table, Input, } from 'reactstrap'; import Popup from "reactjs-popup"; import { registerLocale } from "react-datepicker"; import "react-datepicker/dist/react-datepicker.css"; import ko from 'date-fns/locale/ko'; import Produ...
/** * @fileoverview Processes Markdown files for consumption by ESLint. * @author <NAME> */ /** * @typedef {import('eslint/lib/shared/types').LintMessage} Message * * @typedef {Object} ASTNode * @property {string} type * @property {string} [lang] * * @typedef {Object} RangeMap * @property {number} indent Nu...
/** * @namespace RA */ // Type export { default as isNotUndefined } from './isNotUndefined'; export { default as isUndefined } from './isUndefined'; export { default as isNull } from './isNull'; export { default as isNotNull } from './isNotNull'; export { default as isNotNil } from './isNotNil'; export { default as ...
function Gun(o){ if(o instanceof Gun){ return (this._ = {gun: this, $: this}).$ } if(!(this instanceof Gun)){ return new Gun(o) } return Gun.create(this._ = {gun: this, $: this, opt: o}); } Gun.is = function($){ return ($ instanceof Gun) || ($ && $._ && ($ === $._.$)) || false } Gun.version = 0.9; Gun.chain = G...
// rule(prevGrid, cell, i, j) const MAX_DENSITY = 0x7F function setMoved (cell, moved, h, v) { if (moved) { return (cell & 0xFFFFF0FF) | 0x80000000 | (h << 8) | (v << 10) } else { return cell & 0x7FFFFFFF } } function canMove (cell) { return !(cell & 0x80000000) } function getDensity (cell) { retu...
import React, { Component } from 'react' import { web3, contract_address, contract_instance } from '../../../util/connectors.js' import { decode } from 'mnid' import abiDecoder from 'abi-decoder' import FontAwesome from 'react-fontawesome' import ProofOfExistenceContract from '../../../../build/contracts/ProofOfExisten...
import parseDate from '../parseDate' import Integer, { isInteger } from '../../types/Integer' import URL, { isURL } from '../../types/URL' import Email, { isEmail } from '../../types/Email' const DEFAULT_OPTIONS = { isColumnOriented: false } /** * Convert 2D array to nested objects. * If row oriented data, row 0...
var __reflect = (this && this.__reflect) || function (p, c, t) { p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t; }; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array...
import React, { Component } from 'react'; import axios from 'axios' import { Card, CardBody,Button, CardHeader, Col, Pagination, Form, Label, InputGroup, PaginationItem, PaginationLink, Row, Table } from 'reactstrap'; import ModalForm from '../StUtcC/Stucc' import './table.css' import Select from 'react-select' import ...
import './slicedToArray-4e274c67.js'; import './unsupportedIterableToArray-137e449b.js'; import React from 'react'; import './_commonjsHelpers-97e6d7b1.js'; import './index-097535f1.js'; import './defineProperty-a0480c32.js'; import './toConsumableArray-127424c2.js'; import _styled from 'styled-components'; import './g...
// Copyright 2020 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import { format as stringFormat } from 'base/format.js'; // The JSON file in which the message format for all IRC messages has been stored. co...
'use strict'; const fs = require('fs'); const path = require('path'); const YAML = require('js-yaml'); const filenamify = require('filenamify'); const ColumnsHandler = require('./ColumnsHandler'); const TasksHandler = require('./TasksHandler'); // const Task = require('./Task'); const validateSchema = require('../sch...
import React, { PureComponent } from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import { connect } from 'dva'; import { List, Card, // Row, // Col, // Radio, // Input, Progress, Button, Icon, Dropdown, Menu, // Avatar, Modal, Form, // DatePicker, // Se...
const spawn = require("cross-spawn"); const { join } = require("path"); const { readFile, writeFile } = require("fs"); const _ = require("lodash"); const OUTPUT = join(process.cwd(), "docs", "src", `typedoc.json`); const { prettyifyUrl } = require("acetate/lib/utils.js"); const slug = require("slug"); const minimatch =...
var mongoose = require('mongoose'); var nodemailer = require("nodemailer"); var https = require('https'); var fs = require('fs'); var url = require('url'); var md5 = require('md5'); var MACRO = require('./model/macro.js'); var Users = mongoose.model('Users'); var Repo = mongoose.model('R...
"use strict"; // The MIT License (MIT) // // Copyright (c) 2017 Firebase // // 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 // ...
'use strict'; const scamp = require('../lib/index.js'); const dgram = require('dgram'); const zlib = require('zlib'); const crypto = require('crypto'); const fs = require('fs'); const url = require('url'); const service = scamp.module('handle/service'); const argp = require('argparser').vals('pidfile','s...
const { Plugin } = require('powercord/entities'); const { React, getModule, getModuleByDisplayName, contextMenu } = require('powercord/webpack'); const { getOwnerInstance, waitFor } = require('powercord/util'); const { inject, uninject } = require('powercord/injector'); const { Tooltip, ContextMenu, Icon } = requir...
const debug = require('debug')('DEBUG-dx-service:repositories:ArbitrageRepoMock') debug.log = console.debug.bind(console) const BigNumber = require('bignumber.js') const auctionsMockData = require('../../../tests/data/auctions') class ArbitrageRepoMock { constructor ({ auctions, balances, pricesInUSD, ...
/** * Created by <NAME> <<EMAIL> on 20.02.15. */ // @todo: создать процесс согласно документации sequence diagramm var SerialPort = require("serialport"), commands = require('./commands.js'), async = require('async'), debugMode = false; /** * Constructor * @param path {string} path to COM port * @p...
import * as legacyProxy from "./es5" import * as modernProxy from "./proxy" import {applyPatches, generatePatches} from "./patches" import { assign, each, has, is, isDraft, isDraftable, isEnumerable, shallowCopy, DRAFT_STATE, NOTHING } from "./common" import {ImmerScope} from "./...
let segment = require("./segment"), pinyin = require("pinyin"), { pinyinDict } = require("./pinyinDict"), { normalizeEnglish } = require("./punctuation"), tag = require("./tag"), { isCharacterText } = require("./util"); const tones = [ ['ā','ē','ī','ō','ū','ǖ','Ā','Ē','Ī','Ō','Ū','Ǖ'], ['á'...
const debug = require('ghost-ignition').debug('web:site:app'); const path = require('path'); const express = require('express'); // App requires const config = require('../../config'); const common = require('../../lib/common'); const apps = require('../../services/apps'); const constants = require('../../lib/constant...
//Error Messages const $nameError = $( '<p><span class="error">Please enter your name</span></p>' ).insertAfter($("#name")); const $emailErrorRealTime = $( '<p><span class="error">Please provide a valid address</span></p>' ).insertAfter($("#mail")); const $actError = $( '<p><span class="error">Please select an ac...
import {saveDebounce} from '../../../src/components/inspectors/inspectorConstants'; import path from 'path'; import {boundaryEventSelector, nodeTypes, taskSelector} from './constants'; import {gridSize} from '../../../src/graph'; const renderTime = 300; export function getTinyMceEditor() { return cy .get('ifram...
// <NAME> - www.MuazKhan.com // MIT License - www.WebRTC-Experiment.com/licence // Experiments - github.com/muaz-khan/WebRTC-Experiment var rtcMultiConnection = new RTCMultiConnection(); rtcMultiConnection.session = { data: true }; rtcMultiConnection.sdpConstraints.mandatory = { OfferToReceiv...
'use strict'; const fs = require('fs'); const path = require('path'); const pick = require('just-pick'); const merge = require('deepmerge'); /** internals */ const pluginDefaults = { filename: 'WebpackAssets.typoscript', typoScriptPublicPath: '/fileadmin/Resources/Public/', typoScriptRootPath: 'page', ...
/* oclif command to send BCH to an address. The spending of UTXOs is optimized for privacy. The UTXO selected is equal to or bigger than the amount specified, but as close to it as possible. Change is always sent to a new address. This method of selecting UTXOs can leave a lot of dust UTXOs lying around in ...
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, ScrollView, ActivityIndicator, InteractionManager, Dimensions, ToastAndroid, BackAndroid, Image, RefreshControl, ListView, } from 'react-native'; import ScrollableTabView, { DefaultTabBar, }...
/** * Copyright 2018 The AMP HTML 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 require...
const path = require('path'); const ts = require('typescript'); const CommentParser = require('esdoc2/out/src/Parser/CommentParser').default; class Plugin { constructor() { this._enable = true; } onStart(ev) { if (!ev.data.option) return; if ('enable' in ev.data.option) this._enable = ev.data.option...
import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ReactRouterPropTypes from 'react-router-prop-types'; import SafeHTMLMessage from '@folio/react-intl-safe-html'; import { get } from 'lodash'; import { If...
const {app, BrowserWindow, ipcMain, dialog} = require('electron') const path = require('path') const url = require('url') const fs = require('fs') const ejse = require('ejs-electron') const appConfig = require("./config"); var sqlite3 = require('sqlite3').verbose(); var BSON = require('bson'); var databaseFile ...
'use strict'; // application store class Workout { id = Date.now().toString().slice(-7); #date = new Date(); constructor(coords, distance, duration) { this.coords = coords; // [lat, lng] this.distance = distance; // km this.duration = duration; // hr } _setDescription() { // prettier-ignore...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
import React, { Component } from 'react'; import { StyleSheet, ScrollView, View, Text, Image, TouchableOpacity } from 'react-native'; import { compose } from 'react-apollo'; import PropTypes from 'prop-types'; import Colors from '@theme/colors'; import { Heading, Title } from '@components/utils/texts'; import Wrapper ...
/*! * Kylin JavaScript Library v0.1 * Author: <NAME> * Date: 2014-07-15 T15:15Z * Explain: UI Script * Tel: 15828058953 * Email: <EMAIL> * Statement: Can be reproduced, but without the author's permission, shall not modify in any form, sales, and other commercial purposes. * Repri...
// taken verbatim from angular.js (except for forEach -> angular.forEach) function isDefined(value){return typeof value != 'undefined';} function parseKeyValue(/**string*/keyValue) { var obj = {}, key_value, key; angular.forEach((keyValue || "").split('&'), function(keyValue){ if (keyValue) { key_value = ...
import ChartJS from 'chart.js/auto'; export { default as Chart } from 'chart.js/auto'; export { defaults } from 'chart.js'; import React, { forwardRef, useRef, useState, useEffect } from 'react'; function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _iterableToArray(iter) { if (Symbol...
const { MessageEmbed } = require('discord.js') const { BaseCommand } = require('../../structures') class Command extends BaseCommand { constructor (client) { super( client, 'bugschart', ['벅스차트', 'qjrtmckxm', 'ㅠㅕㅎㄴ촘ㄳ'], 'Audio', ['Everyone'], '<장르>', '벅스 차트를 보...
$(function(){ //店铺评分鼠标经过事件 $(".shop-info").hover(function(){ $('.extra-info').toggleClass('active'); }); //店铺手机版鼠标经过事件 $(".mobile-shop").hover(function(){ $(this).toggleClass('active'); }); //店铺全部分类鼠标经过事件 $(".all-category").hover(function(){ $(this).find('.all-category-coupon'...
Promise.all([getVoices(), getSettings(), domReady()]) .then(spread(initialize)); function initialize(allVoices, settings) { setI18nText(); updateDependents(settings); //close button var queryString = getQueryString(); if (queryString.referer) { $("button.close").show() .click(function() { ...
/* Used to Radix Tree (Patricia Tree) a Buffer (CryptoWebDollarData) Radix Tree is an optimized Trie especially for very log texts Tutorials: https://en.wikipedia.org/wiki/Radix_tree https://www.cs.usfca.edu/~galles/visualization/RadixTree.html - animated demo */ import WebDollarCryp...
// Utility functions for working with the file system var csv = require('papaparse'); var cpExecSync = require('child_process').execSync; var deasync = require('deasync'); var fs = require('fs'); var path = require('path'); var shell = require('shelljs'); var request = require('request'); var _ = require('lodash'); /...
/* * Deck of Cards Classic * * I did this a few years ago while I was practicing * searching, sorting, and shuffling of arrays. * * The code style is a bit different than I do today. * It's object oriented with a lot of 'this' but no class. * All the functions are proper ones not arrows. * * I was oddly writi...
import { throttle } from 'lodash-es' import PropTypes from 'prop-types' import React, { Component, createRef } from 'react' import { PositionAxisTrack } from '@gnomad/region-viewer' import { Button } from '@gnomad/ui' import formatClinvarDate from '../ClinvarVariantsTrack/formatClinvarDate' import { labelForDataset }...
// Global config var MAP_TEMPLATE_ID = '#map-template'; // Global vars var pymChild = null; var isMobile = false; var categories = []; var colorRange = []; var colorScale = null; /* * Initialize the graphic. */ var onWindowLoaded = function() { if (Modernizr.svg) { formatData(); pymChild = new ...
/* * World Calendars * https://github.com/alexcjohnson/world-calendars * * Batch-converted from kbwood/calendars * Many thanks to <NAME> and all of the contributors to the original project! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tr...
const EventEmitter = require("events"); var Promise = require("promise"); var WebSocket = require("ws"); var consts = require("./consts.js"); class WSHandler extends EventEmitter { constructor(session, token, kahoot) { super(); var me = this; this.kahoot = kahoot; this.msgID = 0; this.clientID = "_none_"; ...
/* * @author <NAME>, <NAME> * @name Search * @package views * @description Display Search Result from inpur of SearchBar */ import $ from 'jquery'; import qs from 'qs'; import axios from 'axios'; import React, {Component} from 'react'; import {withRouter} from 'react-router-dom'; import fs1 from 'fs'; import { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cv = require("opencv4nodejs"); exports.cv = cv; const opencv4nodejs_1 = require("opencv4nodejs"); function showImg(img, title) { /* * 显示一个图片*/ cv.imshow(title, img); cv.waitKey(0); cv.destroyAllWindows(); } exports.sh...
import Component from '@ember/component'; import { computed, get } from '@ember/object'; import { tryInvoke } from '@ember/utils'; import config from 'ember-get-config'; import EmberError from '@ember/error'; import ImgixClient from 'imgix-core-js'; import URI from 'jsuri'; import { debounce } from '@ember/runloop'; im...
import React, { Component } from "react"; import LineGraph from "../../components/lineGraph"; import Loader from "react-loader-spinner"; import { withRouter } from "react-router-dom"; import { ReactComponent as Logo } from "../../../src/assets/svg/BiTool.svg"; import { connect } from "react-redux"; import { getFilter...
function captureVisible(ctx, dataCb) { ctx.editAction = "visible"; chrome.windows.update( ctx.windowId, {focused:true}, function(){ chrome.tabs.update( ctx.tabId, {active:true}, function(){ chrome.tabs.captureVisibleTab( null,{format:"png"}, function(a...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Splash from '../../components/Splash/Splash'; import Preloading from '../../components/Preloading/Preloading'; import Welcome from '../../components/Form/Welcome/Welcome'; import Thanks from '../../components/Form/Thanks/Thanks'; i...
/****************************************************************************** * * Copyright (c) 2017, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ import * as d3 from...
// Load stores, their schemas & init N.settings // 'use strict'; const path = require('path'); const glob = require('glob').sync; const apify = require('../../../../system/init/utils/apify'); const Settings = require('../../../../settings/settings'); const SETTING_SCHEMA_DEFAULTS = { extends: fa...
/** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable prefer-promise-reject-errors */ /* eslint-disable no-undef */ /* eslint-disable no-var */ /* eslint-disable vars-on-top */ document.addEventListener("wheel", (event) => { if(event.ctrlKey) event.preventDefault(); }, { passive: fal...
// ================================================================ // Titanic Dataset challenges! // Your goal is to write some functions that will extract // relevant data from the dataset. // Write your code here in this file. // ************************************* // Test your code by running: `npm test` /...
// @ts-check const { mkdir } = require('fs').promises const { extname, isAbsolute, join } = require('path') const { env } = require('process') const { NETLIFYDEVERR, NETLIFYDEVLOG, NETLIFYDEVWARN, chalk, getTerminalLink, log, warn, watchDebounced, } = require('../../utils') const { getLogMessage } = re...
/** * Provides functions for parsing sentences with a pre-constructed grammar. * The parsing algorithm is an implementation of the earley top-down chart * parser. The parse tree is constructed from the chart using depth-first search * * @module lib/parser */ /*eslint no-console:0*/ 'use strict'; const rules ...
var db; var db2; var lenDeudores; var h; var idDeudor; var nombreDeudor; var saldoDeudor; var lenCobradores; var j; var idCobrador; var nombreCobrador; var saldoCobrador; var montoPagar; var resultadosDeudores; var resultadosCobradores; var validaciones = 0; $(document).keypress(function (e) { if (e.which == 13) ...
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from "react"; import { withRouter } from "react-router-dom"; import { connect } from "react-redux"; import Animation from "../Animation/index"; import { CSVLink } from "react-csv"; import { getRecords, dispatchOrder } from "../../actions/ebayActions"; import uu...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ConfigConsumer", { enumerable: true, get: function get() { ...
/*global setTimeout */ var arrayDiff = require('arraydiff-async'); var MAX_STACK_DEPTH = 1000; function extend(target) { for (var i = 1; i < arguments.length; i += 1) { var source = arguments[i]; Object.keys(source).forEach(function (key) { target[key] = source[key]; }); } ...
/* global process, global, GLOBAL */ var connect = require('connect'), log4js = require('log4js'), logger = log4js.getLogger(); var url = require("url") var http = require("http"); var path = require("path"); var cluster = require('cluster'); var argv = process.argv.slice(2); var REG_REFERER = /^...
#!/usr/bin/env node /** * CLI for managing Elastic Search indices. * */ require('dotenv').config() try { require('envkey') } catch (error) { console.log('EnvKey not configured') } const http = require('http') const https = require('https') const readline = require('readline') const { groupBy, mapValues } = r...
// ReadCookie.js //Contains global variables for cookie settings //As of April 2011, uses localStorage if cookie cannot be set and read by //browser, as with Google Chrome if the files are not in a server. //Makes use of DetectDevice.js var alerting = false; //Set this to true to activate alert boxes, lots of...
$(document).on("ready",inicio); function inicio(){ filtro = " and date(ingreso_fecha) = date(now())"; fechadeingreso(filtro); } function buscar_ingresos() { var base_url = document.getElementById('base_url').value; var controlador = base_url+"ingreso"; ...
import React from "react"; import {Grid, Row, Col, ControlLabel, FormGroup, FormControl, Button, Glyphicon} from "react-bootstrap"; import ReactImageZoom from 'react-image-zoom'; import StarRatingComponent from 'react-star-ratings'; import {image} from "./image"; import {addToCart, removeFromCart} from "../actions/shop...
/* * Copyright 2019 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of...
/** * Module plugin: * Smart Plug control for Edimax models SP-1101W, SP-2101W et al * Version 2.1 by <NAME> <<EMAIL>> * Note: may need digest auth support to work with newer Edimax firmware (untested) * * Installation: * - Save as /store/scripts/lib/edimax.js * - Add to /store/scripts/ovmsmain.js: edimax...
const winston = require('winston'); const util = require('util'); const crypto = require('crypto'); const async = require('async'); const DEFAULT_THROUGHPUT = 10000; const DEFAULT_CONURRENCY = 1; const HTTP_CONFLICT = 409; const HTTP_NOT_FOUND = 404; /** * @class * @param {DocumentDbTransportOptions} options */ ex...
import Phaser from "phaser"; var progressBar; var progressBox; var tapSign; export class Loading extends Phaser.Scene{ constructor(){ super({ key: 'LoadGame', pack: { files: [ { type: 'image', key: 'MENU_BG', url: 'src/assets/MENU_BG.png'}, { type: 'image', key: 'TITLE',...
/** * @constant * @type {string} * @description Prefix for all actions within library * @example * import { constants } from 'react-redux-firebase' * constants.actionsPrefix === '::readwrite' // true */ export const actionsPrefix = '::readwrite'; /** * @constant * @type {object} * @description Object contain...
'use strict'; // eslint-disable-line const fs = require('fs'); const crypto = require('crypto'); const async = require('async'); const diskusage = require('diskusage'); const werelogs = require('werelogs'); const errors = require('../../../errors'); const stringHash = require('../../../stringHash'); const jsutil = re...
const childProc = require('child_process'); const fse = require('fs-extra'); const {replaceInObj, posixNormalize} = require('./src/helpers'); const os = require('os'); const {sep} = require('path'); /** * Test if the last commit in the log is from self (auto add of cache file) * @param {string} gitDir - Path where t...
// wink-sentiment // Accurate and fast sentiment scoring of phrases with hashtags, emoticons & emojis. // // Copyright (C) 2017-18 GRAYPE Systems Private Limited // // This file is part of “wink-sentiment”. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of...
import { flatMap, includes, isEmpty, last, range } from 'lodash'; import {lcm} from 'mathjs'; import { playTicks, stopTicks } from '../audio'; import { TickCountVsClassicTicksPerBeat_Error, BeatRhLhPositiveInt_Error, MetronomeSettingPositiveInt_Error } from '../../exceptions'; /////////////////////...
/* eslint-disable */ import React from "react"; import classNames from "classnames"; import PropTypes from "prop-types"; import routes from "routes"; import store from "store/store"; import history from 'store/history'; // Store import { logOut } from 'store/actions/appActions'; // @material-ui/core components impo...
const log = require('bole')('kubeform.google') const meta = require('./metadata')() const uuid = require('uuid') const SIZE_REGEX = /^([0-9]+)(MB|GB)$/ const Promise = require('bluebird') const BASELINE_SERVICES = [ 'servicemanagement.googleapis.com', 'cloudapis.googleapis.com' ] const SUPPORTING_SERVICES = [ '...
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "initialize|on[A-Z]*" }]*/ var templates = { input: `<div class="field"> <div class="control"> <input type="text" class="input date"> </div> </div>`, inline: `<div class="date"></div>`, range: `<div class="field has-addons date"> <div class="cont...
"use strict"; var _regenerator = require("babel-runtime/regenerator"); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator"); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var startServer = function () { var _re...
var Main = { data() { return { menuShow: false, likeSwitch: 0, likeCustom: 0, likeWordNumber: "", likeReadNumber: "", likeDate: "", commentSwitch: 0, commentCustom: 0, commentWordNumber: 0,...
/* global VERSION BUILD_TIMESTAMP COMMIT_HASH webFont */ require('../vendor/ga'); var Events = require('./lib/Events'); var Viewport = require('./lib/viewport'); var AssetsLoader = require('./lib/assetsLoader'); var Shortcuts = require('./lib/shortcuts'); import React from 'react'; import ReactDOM from 'react-dom'; i...
const express = require('express') const bodyParser = require('body-parser') const cors = require('cors') var https = require('https'); var http = require('http'); var fs = require('fs'); var redis = require('redis'); var LOG = require('./log/logger') var literals = require('./config/literals') var config = require('./...
/** * @file mip-form-fn.js 表单组件原型类 * @author <EMAIL> (duxiaonan) */ const { util, viewer, templates } = MIP let evt const REGS = { EMAIL: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/, PHONE: /^1\d{10}$/, IDCAR: /^\d{15}|\d{18}$/ } export default class Form { /** * createDom 创建 form 节点 * *...
"use strict"; /* * Copyright 2020 <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 ...
const { createProduct } = require('../shared/api'); const { APP_URL } = require('../shared/resources'); if (window.location.href.includes('checkout')) { console.log('checkedouted'); window.chrome.runtime.sendMessage({ type: 'CHECKOUT_INITIATED', data: [{ product: 'switch' }] }); } console.log(w...
/** * 新手引导 * 引导气泡按PM配置的先后顺序出现,点击了第一个,出现第二个,依次类推 * 使用bubble组件 * author chenliang08 * time 2014.2.25 * * 新增新功能引导 * 如果引导气泡超出可视区的左右两边,直接隐藏掉 * PM可以配置是否让所有气泡同时出现,而不是顺序出现 * PM可配置是否不在可视区的气泡跳到可视区 * 记录cookie,隐藏之后就不再显示了 * author chenliang08 * time 2014.3.13 */ var $ = require( "common:widget/ui/jquery/jquery.js" ), ...
const fs = require('fs'); const path = require('path'); const jsdiff = require('diff'); const {SError} = require('error'); const GroupedQueue = require('grouped-queue'); const binaryDiff = require('./binary-diff'); class AbortedError extends SError {} class ConflicterConflictError extends SError {} /** * The Confl...
//globals.js - the global hook where we hang our coat and everything else // //author : <NAME>, wth //last edit: wth, 07.02.2013 //modhistory: // 20.01.2011 - wth, pruned for minimal // 07.02.2013 - wth revamped the image loading once again for mobile browsers // import Divmod.Runtime //a not so impressive way t...