text
stringlengths
3.07k
16k
// download-all-images.js // Browser: Microsoft Edge Version 88.0.705.63 // Copyright (C) 2021 片山博文MZ. // To download all the images on the current web page, please paste the following code on Console of Developer Tool of the browser. // 以下のコードをブラウザの開発者ツールのコンソールに貼り付けて、Enterキーを押すと、表示中のWebページの画像を全部ダウンロードできる。 let INTERV...
'use strict'; var db = require('../models'); var invcodes = require('../routes/invcodes'); var _ = require('lodash'); var sequelize = require('sequelize'); var steamIdConvert = require('steamidconvert')() exports.authorize = function (req, res, next) { if (req.user && req.user.role === 'admin') { next(); } ...
import { Component } from "react"; import moment from "moment-timezone"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBan, faCalendarPlus, faTrashAlt, } from "@fortawesome/free-solid-svg-icons"; import { Modal, ModalContent, ModalFooter } from "@zesty-io/core/Modal"; import { Not...
import React from "react"; import { withStyles } from "@material-ui/core/styles" import Dialog from "@material-ui/core/Dialog"; import Button from "@material-ui/core/Button"; import actions from "../actions/utils"; import DialogContent from "@material-ui/core/DialogContent"; import ShufflingSpanText from "./ShufflingS...
//// // Data //// const trainData = { sizeMB: [0.080, 9.000, 0.001, 0.100, 8.000, 5.000, 0.100, 6.000, 0.050, 0.500, 0.002, 2.000, 0.005, 10.00, 0.010, 7.000, 6.000, 5.000, 1.000, 1.000], timeSec: [0.135, 0.739, 0.067, 0.126, 0.646, 0.435, 0.069, 0.497, 0.068, 0.116, 0.070, 0.289, ...
import React from "react"; import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { setEnemies, resolveEncounter } from '../actions' import { Link } from 'react-router-dom' import Battle from './Battle' import {NAME_ARRAY} from '../resources/names.js' import {ARMOR_COLORS} from '../reso...
let points = []; let neurons = []; let temp_points_store = []; let num_neurons;; let dimension = 2; let init_decay = 10; let decay = init_decay; let learning_rate = 0.1; let file; function preload(){ file = loadStrings('sahara.txt'); } function setup() { createCanvas(windowWidth, windowHeight); background(0); n...
'use strict'; var Promise = require('bluebird'); exports.danglingFinally = danglingFinally; exports.Synchronized = Synchronized; exports.LazySingleton = LazySingleton; exports.cancelBarrier = cancelBarrier; exports.after = after; exports.Throttle = Throttle; exports.Batcher = Batcher;...
import React, { useState, useEffect } from 'react'; import { StyleSheet, Text, View, Button, Animated, Alert } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import AsyncStorage from '@react-native-community/async-stor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createLedgerSubprovider; var _hwAppEth = _interopRequireDefault(require("@ledgerhq/hw-app-eth")); var _hookedWallet = _interopRequireDefault(require("web3-provider-engine/subproviders/hooked-wallet")); var _stripHexPref...
// color settings const backgroundClr = 'f9efcf'; const lineColor = '2d170b'; const lineOpacity = 255; const lineThickness = 2; const borderColor = '2d170b'; const borderOpacity = 255; const borderThickness = 3; const rounded = true; // branch settings const stopProbability = 0.1; const branchProbability = 0.5; const...
import * as React from 'react'; import * as ReactRedux from 'react-redux'; import { bindActionCreators } from 'redux'; import { Card, CardBody, Col, Row, } from 'reactstrap'; import { FormattedTime } from 'react-intl'; import { copyToClipboard, } from '../../util'; import { message, } from '../../s...
import Mock from 'mockjs' const List = [] const count = 100 const baseContent = '<p>I am testing data, I am testing data.</p><p><img src="https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943"></p>' const image_uri = 'https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3' var project_list = ['Sha...
import google from '@google/maps'; import Module from '../module'; import _ from 'lodash'; import jsonpath from 'jsonpath'; import logger from '../logging/logger'; import * as symbols from '../utils/symbols'; import elasticsearch from 'elasticsearch'; const defaults = { sourceFields: 'address', positivePath: 'addr...
var settings = require('./settings.js'); var loki = require('lokijs'); var db = new loki('./routing.db', { autoload: true, autoloadCallback: dbLoader, autosave: true, autosaveInterval: 10000, }); var modules; function dbLoader() { console.log("This Fired..."); // if database did not exist it will be...
// This code runs on beatport.com domains. $(function () { 'use strict'; // Inject CSS via javascript to give it priority over all other CSS loaded on the page. var beatportCssUrl = 'css/beatportInject.css'; var beatportInjectStylesheet = document.createElement('link'); beatportInjectStyles...
require('./install-secrets') const host = require('@skypager/node') // spawn a runtime instance in the root of the repo, instead of the current directory const runtime = host.gitInfo.root === host.cwd ? host : host.spawn({ cwd: host.gitInfo.root }).use('runtimes/node') const serviceAccountPath = runtime.re...
//Made by <NAME> in 2021! //Wanted to make something small after many months of building bigger pieces of lemonbot. Jumble the words found in a username with another! var isUpper = (letter)=> letter.charCodeAt(0) > 59 && letter.charCodeAt(0) < 91, isLower = (letter)=> letter.charCodeAt(0) > 96 && letter.charCodeAt...
/** * Copyright 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
const mdbScrollspy = { mounted(el, binding) { el.scrollspy = { links: [], container: window, scrollPosition: null, async: false, offset: 0, }; if (binding.value) { el.scrollspy.container = document.getElementById(binding.value.container) || window; el.scr...
// Created by: <NAME> // Email: <EMAIL> // GitHub: https://github.com/basheer-mt // LinkedIn: https://www.linkedin.com/in/mohammad-alkiswani/ 'use strict'; let imgArray = ['bag.jpg', 'banana.jpg', 'bathroom.jpg', 'boots.jpg', 'breakfast.jpg', 'bubblegum.jpg', 'chair.jpg', 'cthulhu.jpg', 'dog-duck.jpg', 'dragon.jpg'...
function game_info() { var info; info = "gname:test_area_1\t"; info += "script:test_area_1.js\t"; info += "players:4\t"; info += "status:0\t"; print("JS:game_info:" + info ); return info; } function client_onConnected(userID) { print("JS:client_onConnected " + userID); serverko.clientSpectate(us...
'use strict'; var forwarded = require('forwarded-for'); var path = require('path'); var util = require('util'); var httpProxy = require('http-proxy'); var _ = require('lodash'); var ClearMocks = require('./services/clear-mocks'); var HttpEvents = require('./http-events'); var Logger = require('./services/logger'); va...
'use strict' const { U, C, M, SIGNAL } = require(`../@.js`); const { INPUT } = require(`../@tools.js`); const { CatalogItem } = require(`../collections/@.js`); const { TitleBar, ButtonDragHandle } = require(`../ui-app/@.js`); const { ExtDrag, ExtDrop } = require(`../ui-core/@.js`); const { FacadeH4 } = require(`../ui-...
const keystone = require( 'keystone' ), robots = require( 'express-robots' ), childService = require( './middleware/service_child' ), donationService = require( './middleware/service_donation') eventService = require( './middleware/service_event' ), familyService = require( './mi...
const firebase = require("firebase"); require("firebase/firestore"); const firebaseConfig = require('./src/firebaseConfig.json'); firebase.initializeApp(firebaseConfig); // const db = firebase.firestore(); const superagent = require('superagent'); const fs = require('fs'); const execSync = require('child_process').exe...
import { cli } from 'winston/lib/winston/config'; import Event from '../base/Event' import helpers from '../helpers' const { logger } = helpers let cmdCooldown = {}; class Message extends Event { constructor(client) { super(client, { on: 'message', name: 'Mensagens' }); this...
/* eslint-disable no-nested-ternary */ /* eslint-disable react/destructuring-assignment */ /* eslint-disable react/jsx-filename-extension */ import * as React from 'react'; import { SafeAreaView, StyleSheet, Text, View, StatusBar, } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } f...
import React from 'react'; import styled from 'styled-components'; import { Card } from 'semantic-ui-react'; import Link from 'App/shared/components/Link'; import ReadMore from './ReadMore'; import AuthorsJournalDate from './ResultComponents/AuthorsJournalDate'; import { authorFormatter } from '../shared/utils/formatte...
const R = require('ramda'); const { ifNotAdmin, inClauseOr, knex, prepare, query, whereAnd, isPatchEmpty, } = require('./utils'); // This contains the sql query generation logic const Sql = { updateProject: (input) => { const { id, patch } = input; const ret = knex('project') .where('id'...
/** * form js * */ $(document).ready(function () { initEntityForm(); }); //表单验证 $('#entityForm').validate({ onkeyup:false, rules: { username: { required: true, minlength: 2, remote: { type: "post", url: host+"/api/user/checkUsernameExs...
// karma.conf.js - the config file for karma, which runs our tests. var path = require('path'); var fs = require('fs'); /* * We use webpack to build our tests. It's a pain to have to wait for webpack * to build everything; however it's the easiest way to load our dependencies * from node_modules. * * If you run ...
import Vue from 'vue' import VueRouter from 'vue-router' import { Message } from "element-ui"; // 登录 const login = () => import ('@/views/login/login.vue') // 家 const home = () => import ('@/views/home/home.vue') // 用户 const user = () => import ('@/views/user/user.vue') // 排行榜 const ranking = () => ...
const ethutil = require('ethereumjs-util') const ethers = require('ethers') const keythereum = require("keythereum"); const fs = require('fs') const Web3 = require('web3') if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else{ // for migration as truffle migrate doesn't provide web3 w...
/** * @module core/factory/http */ import Axios from 'axios'; import RefreshTokenHelper from 'src/core/helper/refresh-token.helper'; /** * Initializes the HTTP client with the provided context. The context provides the API end point and will be used as * the base url for the HTTP client. * * @method createHTTPCl...
/** * Functions for users * @namespace api.user */ const EndpointCategory = require('../../../classes/EndpointCategory'); const prefix = require('../../common/prefix'); // Import subcategories: const Self = require('./Self'); class User extends EndpointCategory { constructor(config) { super(config, User); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var lib_1 = require("../lib"); var _1 = require("."); /** * Target Information */ var TargetInfo = /** @class */ (function () { /************************************************************************************************************...
/********************************************************************* The MIT License (MIT) Copyright (c) 2015 hatfarm 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,...
import { useRouter } from 'next/router' import Head from 'next/head' import styles from '../../styles/Home.module.css' import postStyles from '../../styles/post.module.css' import { getDatabasePool } from '../../database/db-connect' import { useEffect, useState } from 'react' import Navbar from '../../components/Navbar...
const puppeteer = require('puppeteer'); const { TimeoutError } = require('puppeteer/Errors'); import { getCommandLineArg, getUrlFromProjectId } from './cmdline.js'; import { wait4selector, click, closeModalWindow } from './utils'; import * as ST from './selectors'; const baseURL = process.env.url || 'http://localhos...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UIMenuListItem = void 0; const __1 = require("../../"); const enums_1 = require("../../../enums"); const utils_1 = require("../../../utils"); const modules_1 = require("../modules/"); const _1 = require("./"); class UIMenuListItem exte...
import 'core-js/stable' import 'regenerator-runtime/runtime' import TagsOperators from './tags' import AbstractTag from './tags/AbstractTag' class MarkdownActivity { constructor (quillJS, options = {}) { this.quillJS = quillJS this.options = options this.quillJS.on('text-change', this.onTextChange.bind(...
/** * Graphology GRAPHML Parser * ========================== * * graphology GRAPHML parser using DOMParser to function. */ var isGraphConstructor = require('graphology-utils/is-graph-constructor'); var DEFAULTS = require('./defaults.js'); var DEFAULT_FORMATTER = DEFAULTS.DEFAULT_FORMATTER; function numericCaster...
/* eslint-env browser */ import Cast from "./Cast.js"; import AudioManager from "./AudioManager.js"; import RecordManager from "./RecordManager.js"; import Record from "./Record.js"; import { Event, Observable } from "../../utils/Observable.js"; import { getUser } from "../../api/User/getUser.js"; import { updateDocume...
'use strict'; var VASTError = require('../vast/VASTError'); var utilities = require('../../utils/utilityFunctions'); function VPAIDAdUnitWrapper(vpaidAdUnit, opts) { if (!(this instanceof VPAIDAdUnitWrapper)) { return new VPAIDAdUnitWrapper(vpaidAdUnit, opts); } sanityCheck(vpaidAdUnit, opts); this.opti...
import text from "./orgEmployeeExLvl.yaml"; import { stats, trivial_text_maker, Statistics, people_five_year_percentage_formula, businessConstants, year_templates, } from "./table_common"; const { compact_ex_level_map, ex_levels, } = businessConstants; const { people_years, people_years_short_s...
// Description: // Schedule a recurring message using crontab syntax. // Modified for flowdock, and converted to JS // // // Commands: // hubot schedule [add|new] "<cron pattern>" <message> - Schedule a message that runs recurrently. For the wizards only. See https://crontab.guru/ or http://crontab.org/ for cron ...
const fs = require("fs") const npm = require("npm") const glob = require("glob") const cli = require("cli-ux") const yaml = require("js-yaml") const pkgDir = require("pkg-dir") const ApplyCommand = require("../apply") const { flags } = require("@oclif/command") const git = require("simple-git/promise")() const { genera...
// @ts-check const { JSDOM } = require("jsdom"); const { default: fetch } = require("node-fetch"); const readline = require("readline"); const iconv = require("iconv-lite"); const he = require("he"); const { requestQueue } = require("../utils"); module.exports = { getSongsFromZiv, getSongsFromSkillAttack, }; con...
var Game = new function() { this.initialize = function(canvasElementId, sprite_data, callback) { Game.started = false; Game.pressed = false; this.canvas = document.getElementById(canvasElementId) this.width = this.canvas.width; this.height= this.canvas.height; thi...
/* * Classe de interface para listagem de despensas * Desenvolvido por <NAME> * https://github.com/mathmed * Última atualização no arquivo: 22/05/2019 * Projeto utilizando o framework React Native * Software desenvolvido para disciplina de Engenharia de Software II / UFRN */ /* importações necessárias *...
import Styled from 'styled-components'; import { Container } from '@snappmarket/ui'; export const StyledCityPageWrapper = Styled.div``; export const StyledCityNameWrapper = Styled.div` background: #f5f5f5; border-radius: 30px 30px 10px 10px; box-shadow: 0px 7px 13px -3px rgba(0,0,0,0.2); font-size: 24px; fo...
// This component is responsible for representation of real-time observations on the map import React from 'react'; import styles from './MapLayer.css'; import { Color, EntityCluster } from "cesium"; import { Cartesian3, GeocoderService,ScreenSpaceEventType } from "cesium"; import { Viewer, Entity, Billboard, EntityDe...
import { match } from 'path-to-regexp' import { isArray, isFunction, isNotEmptyArray, isNotEmptyObject, isString, parseUrl, deepMerge } from './util' /** * 匹配项所有属性值,在源对象都能找到匹配 * @param test 匹配项 * @param input 源对象 * @returns {boolean} */ function attrMatch (test = {}, input = {}) { let result = true for (const...
const glob = require("glob") const fs = require('fs') const path = require('path') const Duration = require('duration') const JSMinifier = require('minifier') const HTMLMinifier = require('html-minifier') const rimraf = require('rimraf') const copy = require('recursive-copy') const through = require('through2') const j...
const { BrowserWindow, app, ipcMain } = window.require('electron').remote; import EventEmitter from 'events'; import { mkdirSync, readdirSync, writeFile } from 'fs'; import { format } from 'url'; import { join, dirname } from 'path'; import { exec } from 'child_process'; import execBinary from '../exec-binary'; import ...
import * as SurveyAnalytics from "survey-analytics"; require('../../lang'); export class AnswersData { static answerVotes = []; static userId = null; } function FreeTextQuestionStatisticsCustomVisualizer(question, data) { function renderHeader(table, visualizer) { const header = document.createE...
import L from 'leaflet' import {$,$$, HTML} from 'minified' import Modal from 'bootstrap-native/lib/modal-native.js' import {maskByPolygon, subsetByBbox, loadProjection, getHorizontalCRSReferenceObject, isEllipsoidalCRS} from 'covutils' import proj4 from 'proj4' import {reproject} from 'reproject' import {COVJSON_GRID...
var assert = require("assert"); // node.js core module var parser = require("../modelleertaal.js").parser; // jison generated parser // transfor a string into RanDomCasE for testing the parse for case insensitivity function rAnDOmCaSe(inputString){ var outString = ''; for (var i=0; i < inputString.length; i++...
import React, { useState, useRef, useEffect, useCallback } from 'react'; import { useNotificationQueue } from 'contexts/NotificationsContext'; import { motion, AnimatePresence } from 'framer-motion'; import { Box, Grid } from '@material-ui/core'; import { defaultVariantMappings, FlexDivCenter, GridContainer, Gr...
import React, { Component } from 'react'; import { Grid, Typography, Button, TextField } from '@material-ui/core'; import { A_1, CHARS } from './examples'; import { withStyles } from '@material-ui/styles'; import { parsePath, writePath } from './svg/SVGUtils'; import { Vector2D, analyzePath, smoothPath, crackPoints, ro...
/* ========================================================================== Table Sortablle Mixin for sorting table organism. ========================================================================== */ 'use strict'; const config = require( 'cf-atomic-component/src/utilities/config' ); const closest = re...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray2; function _load_slicedToArray() { return _slicedToArray2 = _interopRequireDefault(require('babel-runtime/helpers/slicedToArray')); } var _asyncToGenerator2; function _load_asyncToGenerator() { return _asyncToGene...
const macroName = "Toggle_Dodge_0.1" //############################################################################### // READ THIS - Requires Midi-QoL on use -or- Hotbar usage /******************************************************************************** * Macro to toggle Dodge condition. * This macro is intended...
const { Command } = require('discord.js-commando') const Discord = require('discord.js'); const Util = require('discord.js'); const YouTube = require('simple-youtube-api'); const ytdl = require('ytdl-core'); const youtube = new YouTube("AIzaSyBDr8dcuW9BzgnxYlC<KEY>"); module.exports = class çal extends Command { co...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
import { LinearFilter, Texture } from 'three' let measureText = (function() { let ctx = document.createElement('canvas').getContext('2d'); return function(font, text) { ctx.font = font; return ctx.measureText(text); }; })(); let TextTexture = class extends Texture { constructor({ autoR...
import { GET_FıLTER_SLUG_PRODUCTS, GET_PRODUCTS_SLUG, } from "../../graphql/queries"; import { add_comment, get_comment } from "../../redux/products/productsSlice"; import StarRatings from "react-star-ratings"; import { BiPlus } from "react-icons/bi"; import { BiMinus } from "react-icons/bi"; import { BsPlusLg } fr...
const path = require('path') const _ = require('lodash') let activeEnv = process.env.ACTIVE_ENV || process.env.NODE_ENV || 'development' let postNodes = [] function siblingFields(node) { return node && _.get(node, 'fields.permalink') ? { path: node.fields.permalink, title: _.get(node, 'frontmatte...
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, Switch, Route, Redirect } from 'react-router-dom'; import { withI18n } from 'react-i18next'; import { connect } from 'react-redux'; import { shorten } from 'libs/iota/converter'; import { getAccountNamesFromState } from 'selectors/account...
import _extends from 'babel-runtime/helpers/extends'; import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtim...
const { createAuthLink } = require("aws-appsync-auth-link"); const { createSubscriptionHandshakeLink } = require("aws-appsync-subscription-link"); const fetch = require("node-fetch"); const { ApolloLink } = require("apollo-link"); const { createHttpLink } = require("apollo-link-http"); const apolloClient = require("@a...
'use strict'; const PI = Math.PI, TAU = PI * 2, PHI = .5 + .5 * 5 ** .5, PHI1 = PHI - 1; const rPI = 1 / PI, rTAU = 1 / TAU; const mix = (a, b, p) => a * (1 - p) + b * p; const clamp = (x, lo, hi) => Math.min(Math.max(x, lo), hi); const smoothstep = (x, e0, e1) => { x = Math.min(Math.max((x - e0) / (e1 - e0), 0), 1)...
import React, {Component} from 'react'; import { withRouter } from 'react-router-dom'; import './Common.css'; import './SiteTable.css'; import MessagesLoader from "./MessagesLoader"; import cx from 'classnames'; class SiteTable extends Component { constructor(props) { super(props); this.state = { delet...
module.exports = function sync( ripple , {} = {} , { xrs = require('xrs/client') } = {} ){ ripple.server = xrs() ripple.send = send(ripple) ripple.subscribe = subscribe(ripple) ripple.subscriptions = {} ripple.get = get(ripple) ripple.upload = upload(ripple) ripple.upload.id = 0 // TODO: other than c...
function activateFilters(heatmapData, heatMapTable) { $(".filters .subtypes a:not(.collapse-title)").click(function () { $(this).toggleClass("active"); $("i", this).toggleClass("fa-circle-thin fa-check"); if ($(this).find(".phenAnnot").attr('type') == "Microarray" || $(this).find...
/* Copyright (c) 2018-2019 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retai...
import logo from './logo.svg'; import './App.css'; import React, { useEffect, useState, Fragment } from 'react' import {BrowserRouter as Router, Routes, Route, Link} from 'react-router-dom'; import Games from './components/Games'; import Matches from './components/Matches'; import Players from './components/Players'; ...
import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import { max } from 'd3-array' import { scaleBand, scaleLinear } from 'd3-scale' import { DateTime } from 'luxon' import heroStyle from './header-hero.module.scss' import colors from '~scss/colors.module.scss' import containerStyle from '~compon...
const fetch = require('node-fetch'); const _ = require('lodash'); const logger = require('./logger'); const { sleep } = require('../shared/utilities'); const state = { allocation: {}, reportingInterval: null, reportingFalseData: false, falseReportingType: 'REAL', everyOtherToggle: false, upperShift: 1.4...
var URL = 'http://'+window.location.hostname+':8090/'; var EGPCSURL = 'http://'+window.location.hostname+':8090/app/index.php?url='; console.log(URL); var gogobj = {}; var gdata = { clientId: '179415883276-p1okccrd6namf73lvdgg9nbeh0r4a9pm.apps.googleusercontent.com', apiKey: '<KEY>', scopes: 'https://www.go...
/* eslint no-unused-expressions:0, prefer-arrow-callback: 0 */ /* globals beforeEach, describe, it */ 'use strict'; const libqp = require('libqp'); const qp = require('../../lib/qp'); const chai = require('chai'); const expect = chai.expect; const crypto = require('crypto'); const fs = require('fs'); chai.config.inc...
import { mapbox } from '../../config.js'; import { props } from '../../util/state.js'; // import 'https://cdnjs.cloudflare.com/ajax/libs/Turf.js/5.1.6/turf.min.js'; const subprops = { // GeoJSON object to hold our measurement features geojson: { type: 'FeatureCollection', features: [], }, // Layer ids ...
'use strict'; const mkdirps = require('mkdirps'); const Client = require('ftp'); const fs = require('fs'); const S = require('string'); const glob = require('glob'); const ssh2Client = require('ssh2-sftp-client'); const ftp_promise = (conf, tag, ssl) => { return new Promise(async(resolve, reject)=>{ var Config = re...
/** * Command: textrule * Adds regular expressions to replace text in messages with other text * * usage !textrule add search text -> replace text * !textrule del search text * !textrule list * * @param {[MessageDetails]} msg [message releated helper functions] * @param {[Server]} server ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. function moduleDidLoad() { common.hideModule(); } // Called by the common.js module. function domContentLoaded(name, tc, config, width, height) { ...
/* globals Buffer */ /** * A very dumb minimal implementation of the Windows Registry. * Enough to run our tests */ 'use strict'; var assert = require('assert'), windef = require('../../lib/windef'), types = require('../../lib/types'), debug = require('debug')('windows-registry'), ref = require('ref-...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
var express = require('express'); var app = express(); var http = require('http'); var server = http.Server(app); var request = require('request'); var logfmt = require('logfmt'); var bodyParser = require('body-parser'); var router = express.Router(); var gm = require('googlemaps'); var distance = require('google-dist...
// For conditions of distribution and use, see copyright notice in LICENSE var componentTypeNames = {}; var componentTypeIds = {}; var componentFactories = {}; function Component(typeId) { this.parentEntity = null; this.typeId = typeId; this.name = ""; this.id = 0; this.supportsDynamicAttributes =...
const { Appointment, User } = require("../models/Appointment"); const moment = require("moment"); const appointmentControllers = {}; appointmentControllers.deleteAppointment = (req, res, next) => { Appointment.findOneAndDelete({ _id: req.params.id }, (err, result) => { if (err || result === null) { res.lo...
/* * . .o8 oooo * .o8 "888 `888 * .o888oo oooo d8b oooo oooo .oooo888 .ooooo. .oooo.o 888 oooo * 888 `888""8P `888 `888 d88' `888 d88' `88b d88( "8 888 .8P' * 888 888 888 888 8...
const {BaseModel} = require('@ucd-lib/cork-app-utils'); const config = require('../config'); const utils = require('../utils/index'); const IMAGE_LIST = 'http://digital.ucdavis.edu/schema#ImageList'; const IMAGE_LIST_360 = 'http://digital.ucdavis.edu/schema#ImageList360'; class MediaModel extends BaseModel { con...
import _ from 'lodash'; import CONFIG from '../../config'; /* @ngInject */ function i18nLoader(dispatchers, gettextCatalog, $injector) { const CACHE = {}; const upperCaseLocale = (locale = '') => (locale === 'en' ? 'us' : locale).toUpperCase(); const { dispatcher } = dispatchers(['i18n']); const disp...
import React, {Component} from 'react' import { Query } from 'react-apollo' import gql from 'graphql-tag' import '../styles/styles.css' import {AUTH_TOKEN} from '../constants' import {timeDifferenceForDate} from '../utils' import AddReview from './AddReview' import CSSTransitionGroup from 'react-transition-group/CSSTr...
/* eslint-disable no-console */ import React from 'react'; import { linkTo } from '@storybook/addon-links'; import Blockquote from '../../components/Blockquote'; import Link from '../../components/Link'; import Icon from '../../components/Icon'; import { Module, ModuleFooter } from '../../components/Module'; import i...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
import React from 'react'; import { StyleSheet, Text, View, TouchableOpacity, SafeAreaView, Image, ActivityIndicator, Platform, Dimensions, DeviceEventEmitter, Alert, } from 'react-native'; import { Button, Icon, SearchBar } from 'react-native-elements'; import Carousel from 'react-native-snap-car...
#!/usr/bin/env node const { spawn } = require('child_process'), { Chromeless } = require('chromeless'), untildify = require('untildify'), program = require('commander'), path = require('path'), fs = require('fs'), chromeLauncher = require('chrome-launcher'), ora = require('ora...
var i=1; var max_room_image = 3; $(function() { $(".room_image_add").click(function(e) { if(i < max_room_image) { i++; var html ='<div class="form-group col-lg-12"><input class="col-lg-11 " type="file" name="room_image[]"><div class="pull-left" style="margin-top: ...