text
stringlengths
3.07k
16k
const bitcore = require('bitcore-lib') const Networks = bitcore.Networks const Mnemonic = require('bitcore-mnemonic') // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki // https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md const ZH_TW_WORDLIST = require('./chinese_traditional.json...
import { hierarchy } from 'd3-hierarchy'; import picker from '../json-path-resolver'; function getKPath(fieldIdx, cube) { let idx = fieldIdx; const numDimz = cube.qDimensionInfo.length; const numMeas = cube.qMeasureInfo.length; const order = cube.qEffectiveInterColumnSortOrder; if (idx < numDimz && order) {...
import { validations } from "../validations"; import getType from "../getType"; import { getStorageItem, setStorageItem } from "../webStorageData"; import { objectAsUrlParams } from "../urlParams"; import apiCall from "../apiCall"; const getLatLngCenterPoint = (geoPoints) => { if (validations.isEmpty(geoPoints)) r...
var restler = require('restler'); var cheerio = require('cheerio'); var xzqh_url = 'http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003301019.html'; var overseas_url = 'https://zh.wikipedia.org/zh/%E6%8C%89%E5%A4%A7%E6%B4%B2%E6%8E%92%E5%88%97%E7%9A%84%E5%9B%BD%E5%AE%B6%E5%88%97%E8%A1%A8'; exports.update = function...
import QrAfip from '../QrAfip'; import BasePdf from "../BasePdf"; import collect from 'collect.js'; import BackGroundWater from '../Img/BackGroundWater'; class InvoicePdf extends BasePdf { constructor(BillCbteTipo){ super() this.BillCbteTipo = BillCbteTipo; this.heightPosition_add_pag...
const express = require("express"); const path = require("path"); const http = require("http"); const app = express(); const server = http.createServer(app); const nunjucks = require('nunjucks'); const axios = require('axios'); const qs = require('qs'); const session = require('express-session'); const io = require("so...
$(document).ready(function(e){ const companyIdDefault = $("#companyID").val(); const adminStatus = $("#adminStatus").val(); const routeListProductCategory = $("#routeListProductCategory").val(); const routeStoreProductCategory = $("#routeStoreProductCategory").val(); // set list if user based on ad...
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import app from '../app'; import WishesList from '../components/WishesList'; import NewWish from '../components/NewWish'; import WishDetails from '../components/WishDetails'; const NewWishButton = props => { return ( <button type="butt...
var setting = { data: { simpleData: { enable: true, idKey: "id", pIdKey: "parentId", rootPId: -1 }, key: { url:"nourl" } } }; var ztree; var vm = new Vue({ el:'#rapp', data:{ showList: true, titl...
var events = require('events') var taskQueue = function (options) { // 默认配置 const defaultOpts = { interval: 1000, // 时间间隔 在非初始化后修改,需要调用restart才会生效 key: 'taskQueue', autoStart: true, wait: false, // 是否启用等待执行(上一个任务执行完毕,下一个才开始) 在非初始化后修改,需要调用restart才会生效 ignoreError: true, // 是否忽略任务对队列中的错误 queue...
'use strict'; const events = require('events'); const https = require('https'); const util = require('util'); const ws = require('ws'); const Mpeg1Muxer = require('./mpeg1muxer'); const STREAM_MAGIC_BYTES = 'jsmp'; // Must be 4 bytes const VideoStream = function(options, logger, streamSessions) { this.log...
const pathToRegexp = require('path-to-regexp'); function graphqlMason(options) { if(!options) { throw new Error('GraphQL Mason requires options.'); } const routeMap = new Map; const schema = options.schema; const root = options.rootValue; // Setup Queries let rootFields = schema.getQueryType().get...
import { objectAssign } from './ponyfill' export const GAME_KEYS = ['cap', 'cpc', 't1x', 't2x', 'gitw', 'lf'] const MAX_POINTS = 28 const MIN_POINTS = 0 const ratingsByPoints = initRatingsByPoints() const pointsByPercent = [ [100, 4], [90, 3], [80, 2], [75, 1] ] export class Scoreboard { constr...
import EventEmitter from 'events'; import _ from 'lodash'; import { EVENT_USER_JOINED, EVENT_USER_LEFT, EVENT_USER_STARTED_GAME, EVENT_USER_SHOT, } from './gameHostService'; export const ROOMS_CHANGED = 'rooms-changed'; const REJOIN_GRACE_PERIOD_MS = 30 * 1000; const TICK_INTERVAL_MS = 2000; const NEW_ZOMBIE...
/* global describe,before,it */ 'use strict'; process.env.NODE_ENV = 'test'; const _ = require('lodash'); const Generator = require('./util/generator'); const comparator = require('./util/comparator'); const CSG = require('./util/generator/conditional-survey-generator'); const Answerer = require('./util/generator/a...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = LinkEventDefinition; var _getPropertyValue = _interopRequireDefault(require("../getPropertyValue")); var _shared = require("../shared"); var _messageHelper = require("../messageHelper"); function _interopRequireDefault...
const download = require('download') const { Cos } = require('tencent-component-toolkit') const { TypeError } = require('tencent-component-toolkit/src/utils/error') const CONFIGS = require('./config') /** * Generate random id */ const generateId = () => Math.random() .toString(36) .substring(6) const getT...
"use strict"; const assert = require("assert"); const uuidv4 = require("uuid/v4"); const TokenInterface = require("../server/erc721-Interface"); const Web3 = require("web3"); const HDWalletProvider = require("truffle-hdwallet-provider"); const Tx = require("ethereumjs-tx"); const server = "HTTP://127.0.0.1:7545"; con...
/* *@module 插件通用配置 *@author <EMAIL> *@date 2017/10/31 *@note: *此文件为初始化插件通用配置,请勿修改 */ /** *JQuery DataTables 通用配置 */ $.fn.CONFIG_DATATABLES = {}; function _init_datatable() { if ($.fn.dataTable != undefined) { $.fn.CONFIG_DATATABLES = { processing: true, autoWidth: false, ...
const Sublevel = require("level-sublevel"); const MerklePatriciaTree = require("merkle-patricia-tree"); const BaseTrie = require("merkle-patricia-tree/baseTrie"); const checkpointInterface = require("merkle-patricia-tree/checkpoint-interface"); const Account = require("ethereumjs-account").default; var utils = require(...
import React, { useState } from 'react'; import { View, Text, StyleSheet, TouchableHighlight, TextInput, ScrollView, Image, Platform, } from 'react-native'; import { FONT_BOLD, FONT_SIZES, COLORS, FONT_MED } from '@components/styles'; import { Picker } from '@react-native-community/picke...
import React, { Component } from "react"; import { fontSize } from "../../reducers"; import Column from "../Column"; import Row from "../Row"; function resultTimeStr(msec) { const min = parseInt(msec / (1000 * 60)); const sec = (msec - min * (1000 * 60)) / 1000; if (min <= 0) { return `${sec}秒`; } else { ...
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from 'react'; import PropTypes from 'prop-types'; import {withStyles} from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/core/IconButton';...
var cloudantqs = require('cloudant-quickstart') var utils = require('./utils.js') module.exports = function (url, dbname) { var coredb = cloudantqs(url, dbname) var coredbname = dbname var coreurl = url // create the database (without the Lucene index) var create = function () { return coredb.create({in...
/** * Created by djarosz on 11/24/15. */ /** * The purpose of this file is to allow communication with the component database (CDB) used at the Advance Photon Source (APS). * * In order to integrate CDB into the traveler module the requirements below must be fullfilled: * Service.json file must include: * * "de...
// A not so great implementation of a formula parser. // I could've gone with an OTS library that supported this functionality, but to eliminate dependencies I // just wanted to quickly throw something together. const priorities = [['||'], ['&&'], ['!==', '!=', '===', '=='], ['<=', '<', '>', '>=', 'in'], ['+', '-'], ['...
const BasePage = require('./base.js'); const BorderedCell = require('../components/bordered_cell.js'); const IncidentPage = require('./incident.js'); const IncidentsService = require('../services/incidents.js'); const MapPage = require('./map.js'); const strFmt = require('../util/string_formatter.js'); const {COLORS} =...
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom' import { useHistory, useLocation } from 'react-router'; import AppBar from '@material-ui/core/AppBar'; import { Avatar } from '@material-ui/core'; import CssBaseline from '@material-ui/core/CssBaseline'; impor...
import React, { Component } from 'react' import {connect} from 'react-redux' import {createProject } from '../../../Store/Actions/ProjectsActions' // import {recallLogos, uploadLogo} from '../../../Store/Actions/uploadLogoAction' import {Redirect} from "react-router-dom"; import './Styles/CreateProject.scss' import Aut...
const Discord = require("discord.js"); const { Client, Util } = require("discord.js"); const client = new Discord.Client(); const fs = require("fs"); const ayarlar = require("./merziki.json"); const { promisify } = require("util"); const chalk = require("chalk"); require("./util/eventLoader")(client); const moment = r...
import React, { Component } from 'react'; import { StyleSheet, View, Dimensions, Text, TextInput, ScrollView, TouchableOpacity, AlertIOS, } from 'react-native'; import apis from '../apis'; import KeyboardSpacer from 'react-native-keyboard-spacer'; import styleConfig from '../styleConfig'; import Modal f...
/** * List Controller */ import Controller from '../lib/controller'; import _ from 'underscore'; import URI from 'urijs'; import request from 'browser-request'; import velocity from 'velocity-animate'; import async from 'async'; import ListResultRowView from '../views/list-result-row'; impo...
/* * Copyright 2016-2018 Universitat Politècnica de València * Copyright 2016-2018 Università della Calabria * Copyright 2016-2018 Prodevelop, SL * Copyright 2016-2018 Technische Universiteit Eindhoven * Copyright 2016-2018 Fundación de la Comunidad Valenciana para la * Investigación, Promoción y Estudios Comer...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React, { Component } from 'react'; import {View, StatusBar, Text, StyleSheet, TextInput, Image, TouchableOpacity, Dimensions, ActivityIndicator, Alert, Platform } from 'react-native'; import ShakingText from 'react-native-shaking-text'; import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scro...
//@ts-check const router = require('express').Router(); const Rocket = require('./Rocket'); const User = require('../user/User'); const Question = require('../question/Question'); const mongoose = require('mongoose'); const ObjectId = mongoose.Schema.Types.ObjectId; router .route('/') .get(get) .post(post)...
'use strict'; var $ = require('jquery'); var introJs = require('intro.js'); var URI = require('urijs'); var helpers = require('./helpers'); var uri = window.location.toString(); var uriQuery = helpers.sanitizeQueryParams(URI.parseQuery(window.location.search)); // Use a fresh localstorage item once we're in product...
import createError from "http-errors"; import express from "express"; import connectRedis from 'connect-redis'; import cookieParser from "cookie-parser"; import logger from "morgan"; import helmet from "helmet"; import cors from "cors"; import morgan from "morgan"; //Route Files import indexRouter from "./routes/index....
'use strict'; // For components in docker, connect by host. const config = { redis:{ host: process.env.NODE_ENV === 'development' ? 'localhost' : (process.env.REDIS_HOST || 'mgmt.srs.local'), port: process.env.REDIS_PORT || 6379, password: process.env.REDIS_PASSWORD || '', }, }; const errs = require('...
/* global console */ /* global window */ import io from 'socket.io-client'; import K from "kefir"; import { kMPVURL } from "../config"; import createBus from "./createBus"; const LOG = false; const keepAlive = (observable) => { observable.onValue(() => { }); return observable; } class MPVPlayer { construct...
import React, { useState, useEffect } from "react"; import { MDBDataTableV5 } from "mdbreact"; // import Modal from "react-modal"; import { Modal } from "react-bootstrap"; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; // reactstrap components import { Card,...
'use strict'; const plot = document.getElementById('plot'); var resetPlot = false, stopped = false; const resetPlotButton = document.getElementById('resetPlotButton'); resetPlotButton.addEventListener('click', function () { resetPlot = true; if (stopped){ plotStoppedText.style.display = 'none'; // re...
import React, { Component } from 'react'; import '@atlaskit/css-reset'; import styled from 'styled-components'; import Navigation from '@atlaskit/navigation' // import { SideNavigation } from '@atlaskit/side-navigation'; import { Button } from 'reactstrap'; import Tree, { mutateTree, moveItemOnTree } from '@atlask...
import React from 'react'; import axios from 'axios'; import moment from 'moment'; import '../../../css/corporate_home.css'; class CorporateHomeUI extends React.Component { constructor(props) { super(props); this.state = { token: false, uid: undefined, orderawa...
const { isMainThread, workerData } = require('worker_threads') const toUtil = require('./util') const model = require('./model') const fs = require('fs') const path = require('path') const _models = Symbol('models') const _mainDb = Symbol('main db') const _newInModel = Symbol.for('new in model()') const _caches = Sym...
import React from 'react' import { Container, Typography } from '@material-ui/core' import styled from 'styled-components' import Slider from 'react-slick' import Feedback from './Feedback' import VitorFernandoImg from '../../images/VitorFernando.png' import RaulCostaImg from '../../images/RaulCosta.png' import JoseCu...
var express = require('express'); var router = express.Router(); var request = require('request'); var parseString = require('xml2js').parseString; var csv = require('csvtojson'); var removeDiacritics = require('diacritics').remove; var fs = require('fs'); var path = require('path'); var geolib = require('geolib'); va...
import React from "react"; import { useD3 } from "../hooks/useD3.js"; import * as d3 from "d3"; function Top10Bar({ repData, width }) { const ref = useD3( (parent) => { let margin = { left: 75, right: 50, height: 400, //hardcoded, if we want we can fix that. top: 100, ...
import { CanvasPlugin, Canvas, createElementWithHtmlText } from 'paella-core'; import "../styles/zoom.css"; import zoomInIcon from '../icons/mini-zoom-in.svg'; import zoomOutIcon from '../icons/mini-zoom-out.svg'; function setZoom(container, playerElement, newZoom) { const containerSize = { w: container....
const Misc = require('../lib/misc'); const pr = require('request-promise-native'); const Schedule = require('node-schedule'); const FastFeed = require('fast-feed'); module.exports = (BotBase) => class CatMixin extends BotBase { constructor () { super(); this.commands.rssadd = { helpText: 'Mo...
// $("#calendar").evoCalendar(); $("li.month").click(function (){ $(".name_info").html(this.innerHTML); }); $(".iks").click(function (){ $(".modal").fadeToggle(); }); $(".modal").click(function (e){ if(e.target == e.currentTarget){ $(this).fadeToggle(); } }); function getData(data){ dt =...
var Movie = require("../models/movie") var MovieCate = require("../models/movieCate") var markdown = require('markdown').markdown var mark = require('marked') exports.index = function(req,res){ console.log("-----contr/index.js--- index function") res.render('index'); // var page = parseInt(req.query.p,10) || 0 //...
/** * // 绑定的函数 * ChangeAutoCollection(int) * PrequeryPayment(string,string) string * ConfirmPayment(pathselect) string * CancelPayment() * * // 调用的函数 * Logout() * ShowLogOnPrint(string, bool) * ShowStatusLog(string) * InitAccount(...) * UpdateBalance(...) * ShowPaymentError(string) * */ /* 退出 */ func...
// WordPress dependencies const { get, defaults, forEach } = lodash; const { useCallback, useState, useEffect } = wp.element; const { Spinner } = wp.components; // Zukit dependencies const { compareVersions, mergeClasses, simpleMarkdown } = wp.zukit.utils; const { ZukitPanel, ZukitTable } = wp.zukit.components; con...
import React from 'react'; import { StyleSheet, Text, View, Button, TextInput, StatusBar } from 'react-native'; import PhoneInput from 'react-native-phone-input'; import PropTypes from 'prop-types'; import firebase from 'react-native-firebase'; import EStyleSheet from 'react-native-extended-stylesheet'; import Dimensio...
import browser from 'webextension-polyfill' import getMarketHashNameFromUrl from '../common/steam' import { GET_ITEMS, GET_TRANSLATIONS } from '../common/keys' import { createElementFromJson, delay } from '../common/utility' import INVENTORY_ELEMENTS from '../data/inventory.elements.json' console.log('%cSteam Market ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
// Issues with node package? Rebuild // .\node_modules\.bin\electron-rebuild.cmd const electron = require('electron') // Module to control application life. const app = electron.app const ipcMain = electron.ipcMain // Module to create native browser window. const BrowserWindow = electron.BrowserWindow const path = re...
'use strict' const {gte} = require('sorted-array-functions') const expectSorting = require('./expect-sorting') const iterateMatching = require('./iterate-matching') const parseTimeAsMs = require('./parse-time-as-milliseconds') const isNotFoundError = require('./is-not-found-error') // see also https://gist.github.com...
import { promisify } from 'util' import fs from 'fs' import path from 'path' import config from '../../config' import db from '../../config/sequelize' import Show from '../../models/show' import Vote from '../../models/vote' import Entry from '../../models/entry' import Image from '../../models/image' import Video from...
const express = require("express"); const router = express.Router(); // const mongodb = require('../mongo/config') const ProductModel = require("../mongo/model/product"); /* API for Product Schema Product Create and Read all Policies API 's */ router .route("/products") // Create a new Product .post((re...
const fs = require('fs'); const path = require('path'); const glob = require("glob"); const del = require('del'); const gulp = require('gulp'); const browserSync = require('browser-sync'); const gulpif = require('gulp-if'); const nunjucksRender = require('...
import inherits from 'inherits'; import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer'; import BpmnRenderer from 'bpmn-js/lib/draw/BpmnRenderer'; import { componentsToPath, createLine } from 'diagram-js/lib/util/RenderUtil'; import { append as svgAppend, attr as svgAttr, create as svgCreate } from 't...
const storage = require('Storage'); const Layout = require("Layout"); const settings = storage.readJSON('setting.json',1) || { HID: false }; const BANGLEJS2 = process.env.HWVERSION == 2; const sidebarWidth=18; const buttonWidth = (Bangle.appRect.w-sidebarWidth)/2; const buttonHeight = (Bangle.appRect.h-16)/2*0.85; // s...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
var _ = require('lodash'), Promise = require('bluebird'), errors = require('../errors'), ghostBookshelf = require('./base'), events = require('../events'), paginateResponse = require('./base/utils').paginateResponse, Tag, Tags; function addPostCount(opti...
import React from "react"; import { Button, Divider, Form } from "semantic-ui-react"; import _ from "lodash"; import { Client } from "rhapi-client"; import { Documents } from "../../Components"; // Instanciation du client RHAPI sans authentification const client = new Client("https://demo.rhapi.net/demo01"); const pa...
const yaml = require('js-yaml'); const fs = require('fs'); const path = require('path'); const Parse = require('./markdownParser'); const Setup = require('./setup'); class StepsReader { constructor(renderer, selector, css) { this.renderer = renderer; this.css = css; if (se...
const router = require('express').Router(); const User = require('../models/User'); const Cart = require('../models/Cart'); const productModel = require('../models/Product'); const Order = require('../models/Order'); const mail = require('../controllers/mailController'); const shopIncome = require('../models/shop...
import React from 'react'; import styled from '@emotion/styled'; import VisuallyHidden from '@reach/visually-hidden'; import { Pause, Play, Rewind, FastForward } from './Icons'; import { fancyTimeFormat } from '../dateUtils'; const PlayerContainer = styled.div` display: grid; width: 100%; grid-gap: 10px 20px; ...
/** * Copyright 2014 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 appli...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XML = exports.Templates = void 0; var Templates = /** @class */ (function () { function Templates() { } Templates.get = function (key) { return Templates.map.get(key); }; Templates.set = function (key, value) { Template...
var getRandomInt = fabric.util.getRandomInt; var Utils = {}; Utils.rainbow = ["#ffcc66", "#ff6fcf", "#ff6666", "#ccff66", "#66ccff"]; Utils.rainbowEnd = Utils.rainbow.length - 1; //Utils.$ = function(id){return document.getElementById(id)}; function getEl(id){return document.getElementById(id)}; function listen(el,...
let incluirDespesa = document.getElementById("cadastrar-despesa"); let incluirReceita = document.getElementById("cadastrar-receita"); let btn_add_despesa = document.getElementById("add-despesa"); let btn_add_receita = document.getElementById("add-receita"); let btn_close_despesa = document.getElementById("close");...
var _ = require('lodash'); var shortid = require('shortid'); var async = require('async'); var debug = require('debug')('4front:shared:membership'); var jwt = require('jwt-simple'); require('simple-errors'); var userNameRegexPattern = /[a-z\-\.]{2,20}/i; // The set of recognized user properties that should be copied...
var log = function(output){ document.getElementById("output").innerHTML = output; }; //For illustration, call the function above to log an output log("Welcome to Chapter 10!"); /* import log1, {appName, dummyFunction} from './tools'; log1(`Welcome to Chapter 10! The application name is "${appName}". There is ...
import { isOdd } from '../utils'; import { getBaseNumByFaction, notCrossRiverHexNum } from '../config/map'; import moveAIfilter from './moveAIfilter'; const Util = { unitTypes: { 'worker': ['worker'], 'mech': ['mech'], 'character': ['character'], 'encounter_or_factory': ['character'], 'character_or_mech...
// Modules to control application life and create native browser window const { app, BrowserWindow, session, dialog, globalShortcut, Menu, MenuItem, Tray } = require('electron') require('electron-reload')(__dirname); const windowStateKeeper = require('electron-window-state'); console.log('main.js executing'); const bc...
import React, {useState} from 'react'; import { View, Text, Image, TextInput, ToastAndroid, StyleSheet, TouchableOpacity, TouchableWithoutFeedback, Keyboard, Alert, } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; const SignupScreen = (props) => { const [na...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import './Element.scss'; // eslint désactivé car pas de risque ici // eslint-disable-next-line import/no-cycle import ElementContainer from 'src/containers/Element'; import ProgresseBarre from '../ProgresseBarre'; import * as fonctionsTree ...
const express = require('express'); require('dotenv').config(); const hue = require('node-hue-api'); const HueApi = require('node-hue-api').HueApi; const axios = require('axios'); // for Digest auth const md5 = require('md5'); // for Basic auth const base64 = require('base-64'); require('../light_effects/lightning'); ...
import React from 'react'; import Types from 'prop-types'; import { formatWithPattern, getCountOfSymbolsInSelection, getCursorPositionAfterKeystroke, unformatWithPattern, getDistanceToPreviousSymbol, getDistanceToNextSymbol, } from '../common/textFormat'; import { HistoryNavigator } from '../common'; clas...
/*! * Copyright (c) 2012 <NAME> <<EMAIL>> */ var Core = (function() { Core.constructor = function(){}; Core.VERSION = "0.4.0"; function Core() { return Core.constructor.apply(this, arguments) } return Core; })(); (function($) { $.slice = Array.prototype.slice; $.hasProp = $.hasOwnProperty = Object.pr...
//IMPORTING //REACT import React, { Component } from "react"; //LINK DATA import { linkData } from "./linkData"; //SOCIAL DATA import { socialData } from "./socialData"; //ITEMS import { items } from "./productData"; //PRODUCT CONTEXT const ProductContext = React.createContext(); //PRODUCT PROVIDER class ProductProvi...
import React, { Component } from 'react'; import './Dashboard.css'; import Sidebar from '../Sidebar/Sidebar'; import MainContent from './MainContent'; import axios from 'axios'; class Dashboard extends Component { constructor(props) { super(props); this.state = { groups: [], activeGroup: null, ...
const app = getApp() var util = require('../../util.js') Page({ /** * 页面的初始数据 */ data: { url: "", title: "", str: "", imglist: [], options: "", downloading: false, showArea: true, scrollHeight: 0, id: "", from: 0, ...
if (typeof google !== 'undefined') { var geocoder = new google.maps.Geocoder(); } /** * @see http://learn.jquery.com/code-organization/deferreds/examples/ */ function createCache(url) { var cache = {}; return function (arg) { var key = arg.toString(); if (!cache[key]) { cache[key] = $.ajax({dataT...
/* <NAME> 2012, 2013, 2014 */ /* -------- Includes -------- */ var exec = require('child_process').exec; var _ = require('underscore'); /* -------- Helper Functions -------- */ /** * Performs a n-point moving average on array. */ function moving_average(array, n) { var nums = []; for (i in array) { /* If...
$(document).on('click', '.patient_type', function () { patientFilter() }); $(window).load( function () { patientFilter() }) $(document).on('keyup', '#patient_name, .service-names', function () { if (!$('.patient_type:checked').val()) { alert('Select Patient Type...
"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...
'use strict'; let max = 25; let attemps = 1; let array = []; let con = document.getElementById('container') let Image1 = document.getElementById('imageOne'); let Image2 = document.getElementById('imageTwo'); let Image3 = document.getElementById('imagethree'); let arrOfSelected = []; let arrNumofshowen = []; let arrTwo ...
/* * Copyright 2016 <NAME> and other contributors * Copyright 2020 Centrapay and other contributors * * 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/LI...
import React, { Component } from 'react'; import { FlatGrid } from 'react-native-super-grid'; import { LinearGradient } from 'expo'; import { SearchBar } from 'react-native-elements'; import { TouchableOpacity, SafeAreaView, Dimensions, ScrollView, StyleSheet, View, ...
'use strict' const {Counter, Summary, Gauge} = require('prom-client') const differentialToFullDataset = require('gtfs-rt-differential-to-full-dataset') const {performance} = require('perf_hooks') const {connect: connectToNatsStreaming} = require('node-nats-streaming') const throttle = require('lodash/throttle') const ...
const Base = require('./base.js'); const fs = require('fs'); module.exports = class extends Base { /** * index action * @return {Promise} [] */ async indexAction() { const page = this.get('page') || 1; const size = this.get('size') || 10; const name = this.get('name') || ''; const model =...
/////////////////////////////// // LIBRERIAS ////////////////// /////////////////////////////// const ipcRenderer = require('electron').ipcRenderer; const remote = require('electron').remote; const mysql = require ('mysql'); /////////////////////////////// // FUNCIONALIDAD ////////////// //////////////////////////////...
'use strict'; $(function() { app.init(); }); function loadObject(id, clsid) { var obj = document.createElement("object"); obj.id = id; obj.setAttribute("classid", clsid); $("body").append(obj); return obj; } if (!String.prototype.endsWith) { String.prototype.endsWith = function(searchString...
import Gridset from 'gridset'; import { html } from './html.js'; import { svg } from './svg.js'; import { canvas } from './canvas.js'; import { text } from './text.js'; const htmlRoot = document.getElementById('html-root'); const textRoot = document.getElementById('text-root'); const svgRoot = document.getElementById(...
/* |---------------------------------------------------------| | ___ ___ _ _ | | / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ | | | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| | | | |_| | |_) | __/ | | || || | | | || __/ | | | |_ | | \___/| .__/ \...
/* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */ var should = require('should'); var fs = require('fs'); var exec = require('child_process').exec; var Log = require(__dirname + '/../'); describe('file log', function() { beforeEach(function (done) { exec('rm -rf "' + __dirname + '/tmp"', fun...