text stringlengths 3.07k 16k |
|---|
#!/usr/bin/env node
'use strict'
const bluebird = require('bluebird');
global.Promise = bluebird;
const config = (process.env.CONFIG) ? JSON.parse(process.env.CONFIG) : require('./config.json');
const mongoose = require('mongoose');
mongoose.connect(process.env.MONGODB_URI || config.database);
const { ItemModel, CS... |
const { pathToRegexp, compile } = require('path-to-regexp')
const { MissingIdError, MissingPayloadError } = require('./errors.js')
const { validateConfig, validateEndpoints } = require('./validation.js')
const { cleanURLSegment } = require('./utils.js')
class APIBuilder {
/**
* Instantiate the builder.
*
*... |
import uuidv1 from 'uuid/v1.js'
/*
*
* A collection of constants which are used to:
* - have a unique reference to every state
* - access the localStorage
* - define global lists
*/
/*
* State
*/
export const SET_CHANNEL = uuidv1()
export const SET_CHANNELS = uuidv1()
export const GET_CHANNEL = uuidv1()
expo... |
{/*THIS IS THE PROFILE PAGE
on this page features the users profile info.
mainly their name, the number of exercises completed, and
a list of all exercises completed.
due to an adherence to a level of privacy, not much else
data is stored to be displayed for the user.
this page also features a logout button if the u... |
class List {
constructor(name, id) {
this.name = name;
this.id = id;
}
}
class Tile {
constructor(name, description, role, page_url, id, list_id, uses_link, uses_description) {
this.name = name;
this.description = description;
this.role = role;
this.page_url ... |
var scene, camera, renderer;
var geometry, material, mesh;
var boxMaterial;
var channels = []
Array.prototype.end = function() {
if(this.length > 0)
return this[this.length-1]
return undefined
}
class Channel {
constructor(color_tone, parent_scene, channel_num) {
this.color_tone = color_tone
this.p... |
import React from "react"
import { makeStyles, useTheme } from "@material-ui/core/styles"
import MobileStepper from "@material-ui/core/MobileStepper"
import Paper from "@material-ui/core/Paper"
import Typography from "@material-ui/core/Typography"
import Button from "@material-ui/core/Button"
import KeyboardArrowLeft f... |
//jordan's code
//controll variables
var animationRunning = false;
var loopAnimation = false;
var animationTimer;
var selectedShape = -1;
let selectedLight = -1;
var settingsOpen = false;
// var capturer = new CCapture( { format: 'webm' } );
var capturer;
//sets up the viewport
var scene = new THREE.Scene();
scene.back... |
import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { withRouter } from "react-router";
import {
Message, Container, Button, Icon, Card, Segment, Header, Divider,
} from "semantic-ui-react";
import { getPendingInvites } from "../action... |
// Bir vaqtlar, eski yovvoyi tog'li g'arbdan o'tayotganda, ...
// ... bir kishiga bir nuqtadan boshqasiga o'tish uchun ko'rsatmalar berildi. Yo'nalishlar "SHImoliy", "JANUBIY", "G'ARB", "SHARQ" edi. Shubhasiz, "SHImoliy" va "JANUBI" qarama-qarshidir, "G'ARB" va "SHARQ" ham.
// Bir yo'nalishga borib, darhol teskari yo'... |
"use strict";
const view = {
displayMessage: function (msg) {
var messageArea = document.querySelector("#messageArea");
messageArea.innerHTML = msg;
},
displayHit: function (location) {
var cell = document.getElementById(location);
cell.innerHTML = "";
cell.setAttribute("class", "hit");
},
displayMiss: ... |
import React, { Component } from "react";
import "./Details.css";
import Button from "@material-ui/core/Button";
import AddShoppingCartIcon from "@material-ui/icons/AddShoppingCart";
import CircularProgress from "@material-ui/core/CircularProgress";
import { addItemInCart } from "../../Redux/Actions";
import Api from "... |
var encoder = new TextEncoder();
var decoder = new TextDecoder();
let bakerWithNoReporterText = "secondary key not specified";
function genPaymentConfigStruct(paymentConfigMask) {
return {
payForOwnBlocks: (paymentConfigMask & 1) > 0,
payForEndorsements: (paymentConfigMask & 2) > 0,
payGa... |
const {
readFileSync,
writeJsonSync,
removeSync,
writeFileSync,
} = require('fs-extra');
const {join, resolve} = require('path');
const glob = require('glob');
const parseChangelog = require('changelog-parser');
const PACKAGES_PATH = resolve(__dirname, '../packages');
const TEMP_FILE_PATH = resolve(__dirname, ... |
const axios = require('axios');
const CronJob = require('cron').CronJob;
const uuid = require('uuid/v4');
const cheerio = require('cheerio');
const mysqlInstance = require('../common/mysql');
const { formatTime } = require('../common/utils');
let isRunning = false;
const SOURCES = [{
source: '掘金',
type: 'ajax'... |
import add from "./module/add.js";
import calculateResult from "./module/calculateResult/calculateResult.js";
import imprim from "./module/imprim.js";
import changeShiftOrAlpha from "./module/changeShiftOrAlpha.js";
import getGrados from "./module/getGrados.js";
import getGradosReverse from "./module/getGradosReverse.j... |
import EventEmitter from 'events';
import WebSocket from 'ws';
import {assertNonEmptyString} from './assert-non-empty-string.js';
import {BasePeer} from './base-peer.js';
import {SelfPeer} from './self-peer.js';
import {RemotePeer} from './remote-peer.js';
import {peerStop, oninterval, checkInbound} from './protected... |
/**
* --------------------------------------------------------------------------
* Ace (v3.1.1): scrollbar.js
*/
import $ from 'jquery'
import bootstrap from 'bootstrap'
import Util from './util'
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------... |
import {
STAT_TYPE_ENUM,
STAT_TYPE_STATUS,
STAT_TYPE_INT,
STAT_TYPE_FLOAT,
STAT_TYPES,
STAT_GROUP,
EXPIRED_TIME,
STAT_TYPE_ZYGOSITY,
NUMERIC_RENDER_TYPES,
} from './constants';
export function includes(stringA, stringB) {
return stringA.toUpperCase().includes(stringB.toUpperCase... |
// @link WebViewerInstance: https://www.pdftron.com/api/web/WebViewerInstance.html
// @link WebViewerInstance.openElements: https://www.pdftron.com/api/web/WebViewerInstance.html#openElements__anchor
// @link AnnotationManager: https://www.pdftron.com/api/web/Core.AnnotationManager.html
// @link AnnotationManager.impo... |
//= require knockout.min
//= require knockout-mapping
//= require knockout-onenter
//= require nodeFiltersKO
//= require nodeRemoteEdit
/*
Manifest for "framework/adhoc.gsp" page
*/
/*
Copyright 2015 SimplifyOps Inc, <http://simplifyops.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may... |
import React, { useEffect, useRef, useState } from "react"
import { connect } from 'dva'
import { useHistory } from "umi"
import { List, Skeleton, Space, Button, Pagination, Col, Row, } from "antd"
import t from "@/utils/t"
import { ROLES } from '@/constants/user'
import { TYPES, STATES, getImageTypeLabel, imageIsPen... |
import PropTypes from 'prop-types';
import React from 'react';
import { Translate } from 'react-localize-redux';
import styled from 'styled-components';
import IntFlagIcon from '../../../images/int-flag-small.svg';
import classNames from '../../../utils/classNames';
import EmailIconOne from '../../svg/EmailIconOne';
i... |
var gulp = require('gulp');
var rename = require('gulp-rename');
var merge = require('merge2');
var jshint = require('gulp-jshint');
var compass = require('gulp-compass');
var jade = require('gulp-jade');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
var browserify = require('browser... |
"use strict";
/*
* ooiui/static/js/models/science/StreamModel.js
* Model definitions for Streams
*
* Dependencies
* Libs
* - ooiui/static/lib/underscore/underscore.js
* - ooiui/static/lib/backbone/backbone.js
* - ooiui/static/js/ooi.js
* - ooiui/static/js/models/science/PlatformDeploymentModel.js
* Usage
*/
... |
import React, { useEffect, useRef, useCallback } from 'react'
import { Grid } from 'react-virtualized'
import computeGridProps from '../computeGridProps'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'
import { Provider } from './VirtualizedContext'
// import CellEditContainer from './CellEditContainer'
impo... |
'use strict'
//PROXY SERVER - API server
// Application Dependencies
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
const pg = require('pg');
const methodoverride = require('method-override');
// app setup
const PORT = process.env.PORT || 3000;
const app ... |
import generateCode from '@core/utils/generate_code'
const AddItemCodes = {
databaseName: 'maha',
up: async (knex) => {
await Promise.mapSeries(['advances','trips'], async (model) => {
await knex.schema.table(`finance_${model}`, (table) => {
table.string('code')
})
const items = ... |
import Vue from 'vue';
import VueConfig from "../vue.config";
import App from './App.vue';
import VueTour from 'vue-tour';
require('vue-tour/dist/vue-tour.css');
import router from './router/router';
import VueGtag from 'vue-gtag';
// import VueAnalytics from 'vue-ua';
import store from './store/store';
import * as d3 ... |
'use strict'
var path=require('path');
var fs=require('fs');
var moment=require('moment');
var mongoosePaginate=require('mongoose-pagination');
var Publication=require('../models/publication');
var User=require('../models/user');
var Follow=require('../models/follow');
function probando(req,res){
res.status(200)... |
import React, { Component } from "react"
import { Toast, Modal, ActivityIndicator } from "antd-mobile"
import { connect } from "react-redux"
import InfiniteScroll from "react-infinite-scroller"
import PostPanel from "./../../components/postpanel"
import { getPosting, getMorePosting, likeOrDislikePosting, commentPosting... |
var lastFocusElement = '';
function openNav(obj) {
lastFocusElement = obj;
$("#mySidenav a").each(function(){
$('#mySidenav a').removeClass('active');
$('#mySidenav a[href=#'+ $(obj).closest("section").attr('id') +']').addClass('active');
});
document.getElementById("mySidenav").style.width = "280px... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _element = require("@wordpress/element");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"... |
import { noop } from '../core/utils/common';
import registerComponent from '../core/component_registrator';
import { extend } from '../core/utils/extend';
import { normalizeAngle, convertPolarToXY } from './core/utils';
import { AdvancedChart } from './chart_components/advanced_chart';
import { isDefined } from '../cor... |
/*
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 not use this f... |
import React from "react";
import DemoLink from "../demolink";
import "./detail.css";
import DayPicker from "./calender/daypicker";
import Button from "../button";
class VenueDetail extends React.Component {
constructor(props) {
super(props);
this.state = {
defaultorganizer:
"聯絡人:總務處 秦xx<br />... |
/* Copyright 2018 Streampunk Media Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
"use strict";
var personObject = {
name: "David",
age: 22,
occupation: "Software Dev"
};
function displayObject(personObject){
var ans =(personObject.name + " - " + personObject.age + " - " + personObject.occupation);
window.alert(ans);
}
function increaseAge(){
return personObject.age = ... |
// SEQUENCE(OBJECT IDENTIFIER = 1.2.840.113549.1.1.1, NULL) - rsaEncryption
const rsaPublicKeyOid = [
0x30,
0x0d,
0x06,
0x09,
0x2a,
0x86,
0x48,
0x86,
0xf7,
0x0d,
0x01,
0x01,
0x01,
0x05,
0x00
]
// OBJECT IDENTIFIER=1.2.840.10045.2.1 - ecPublicKey
const ecPublicKeyOid = [0x06, 0x07, 0x2a, 0... |
import Agent from "./Agent/index.js";
import Store from "../Store/index.js";
import * as _ from "lodash";
import uniqid from "uniqid";
import Utils from "../Utils/index.js";
const Time = Utils.time;
export default class Agents{
CONCURRENCY_LIMIT = 800;
constructor({
simulation = uniqid("s... |
const inquirer = require("inquirer");
const fs = require("fs");
const validateEmail = require("js-email-validator");
const Engineer = require("./lib/Engineer");
const Manager = require("./lib/Manager");
const Intern = require("./lib/Intern");
const managerQuestions = [
{
type: 'input',
name: 'nam... |
// Work experience cards
const experiencecards = document.querySelector(".experience-cards");
const exp = [
{
title: "Software Development Intern",
cardImage: "assets/images/experience-page/flipkart.jpg",
place: "Flipkart",
time: "(May, 2020 - present)",
desp: "<li>Worked to migrate Flipkart li... |
/**
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Axes = require('../../plots/cartesian/axes');
var extendFlat = require('../../lib').extendFlat;
var colorsca... |
import React, { useEffect } from "react";
import DataResellerHelper from "./modules/DataResellerHelper";
import {
CCard,
CCardBody,
CCardHeader,
CCol,
CDataTable,
CRow,
CButton,
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CForm,
CFormGroup,
CLabel,
CInput,
CModalFooter,
CCollapse,
... |
const path = require("path")
const fs = require("fs")
const shelljs = require("shelljs")
const { isStrictSemver } = require("../utils")
const nodeVersion = process.argv[2]
const chromeVersion = process.argv
.find((arg) => arg.includes("--chrome"))
?.substring(process.argv.find((arg) => arg.includes("--chrome")).in... |
var express = require('express');
var router = express.Router();
//holds the amount of books to view per page
const pagination = 6;
//book model
const Book = require('../models').Book;
const SqlOp = require('sequelize').Op;
//creating a new book!
router.get('/books/new', (req, res, next) => {
res.render('new-book',... |
import React from 'react';
import PropTypes from 'prop-types';
import * as events from './util/events';
import { omit } from './util/omit';
import { getProp, isControlledProp } from './util/props';
import withYMaps from './withYMaps';
import { ParentContext } from './Context';
export class Map extends React.Component... |
// eslint-disable-next-line
import { UserLayout, BasicLayout, PageView } from '@/layouts'
const RouteView = {
name: 'RouteView',
render: h => h('router-view')
}
export const asyncRouterMap = [
{
path: '/',
name: 'index',
component: BasicLayout,
meta: { title: 'menu.home' },
redirect: '/dashb... |
//Provide app.AddTabs alternative to app.CreateTabs
if(app.AddTabs === undefined)
{
app.AddTabs = function( lay, list, width, height, options )
{
var tabs = app.CreateTabs(list, width, height, options);
lay.AddChild(tabs);
return tabs;
}
}
//Tabs object.
function _Tabs( list, width... |
import fs from 'fs';
import os from 'os';
import path from 'path';
import ttfInfo from 'ttfinfo';
import readChunk from 'read-chunk';
import getFileType from 'file-type';
const getPlatform = () => (process.platform === 'darwin') ? 'osx' : (/win/.test(process.platform) ? 'windows' : 'linux');
const recGetFile = (targ... |
import { withIronSession } from "next-iron-session";
import sessionConfig from "@/configs/session.config";
import excuteQuery from "@/services/mysql"
import Moment from "moment";
import { extendMoment } from 'moment-range';
const moment = extendMoment(Moment);
import { useState, useEffect } from 'react';
import Link... |
import React, { useState } from 'react';
import axios from 'axios';
import { useSelector } from 'react-redux';
import './CommentListItem.css';
import { useNavigate } from 'react-router-dom';
import 기본프로필 from '../../assets/기본프로필.png';
import {
MoreVertOutlined,
Favorite,
FavoriteBorder,
} from '@mui/icons-materia... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.examples = exports.hasWrapper = exports.run = exports.getName = undefined;
var _asyncToGenerator2;
function _load_asyncToGenerator() {
return _asyncToGenerator2 = _interopRequireDefault(require('babel-runtime/helpers/asyncToGene... |
'use strict';
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const testit = require('testit');
function assertEqual(output, expected) {
try {
assert.strictEqual(output, expected);
} catch (error) {
console.log(' Output:\t' + JSON.stringify(output));
console... |
const SHA256 = require('crypto-js/sha256');
const hex2ascii = require('hex2ascii');
const BlockClass = require('./block.js');
const bitcoinMessage = require('bitcoinjs-message');
/* ===== Blockchain Class ==============================
| Class with a constructor for blockchain data model |
================... |
var us = Usuario = function(){
console.log('USUARIO');
this.tb = new DataTable();
this.tb.filtros = ['nombre', 'apellido', 'dni']; // ESTA LISTA SE ORDENA COMO EL ROUTER ESPERA LAS VARIABLES
this.tb.pathname = location.pathname;
this.tb.path_explode = this.tb.pathname.split('/');
this.tb.expand_filters();
... |
var surfaceReg = require("./surface-registry"),
EventEmitter = require("events").EventEmitter;
/**
* Locates the surface that should handle selection. It allows to update the
* state of selection in the model editor-wise.
* It is updated by the editor instance before every change; it also updates
* itself on s... |
const fs = require('fs');
const request = require('request');
const UnicodeTrieBuilder = require('unicode-trie/builder');
var PairedBracketType = {
// Not a bracket
n : 0,
// Opening bracket
o : 1,
// Closing bracket
c : 2
};
var Directionality = {
// Strong types
L: 0,
R: 1,
AL: 2,
// Weak T... |
import React from 'react';
import {
ActivityIndicator,
AsyncStorage,
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
import { Divider } from 'react-native-paper';
import { AppAuth, Constants, Icon, WebBrowser } from 'expo';
import { SafeAreaView } from '... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Modal, Form } from 'semantic-ui-react'
import { reduxForm, getFormSubmitErrors, getFormValues } from 'redux-form'
import projectUtils from '../../../utils/projectUtils'
import './NewProjectFormModal.scss'
import { connect } from 'react... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
//28 19 */3 * * m_jd_delete_coupon.js
const {Env} = require('./magic');
const $ = new Env('M优惠券删除');
//1.支持删除自定义关键词 @符号分割 例如 棉拖@扫把@瓜子
let blacklist = process.env.COUPON_BLACKLIST
? process.env.COUPON_BLACKLIST.split('@') : '占位符无须理会'.split('@');
//2.不删除 全品@运费@话费@信用卡@云闪付@数字人民币@京东金融@仅可购买活动@限指定商品使用@仅可购买部分
let whitelist... |
// import * as mars3d from "mars3d"
var map // mars3d.Map三维地图对象
let contourLine
var mapOptions = {
scene: {
center: { lat: 30.706401, lng: 116.08272, alt: 26859, heading: 5, pitch: -55 },
showSun: false,
showMoon: false,
showSkyBox: false,
showSkyAtmosphere: false,
fog: false,
globe: {
... |
/**
* Created by Administrator on 2017/3/27.
*/
// 导入我们要跳转的膜版页面
import homePage from './components/home_page.vue'
import login from './components/login.vue'
import addHouse from './components/add_house.vue'
import pushOrderBefore from './components/push_order_before.vue'
import joinVip from './components/join_vip.vue... |
const fs = require("fs");
const path = require("path");
const sharp = require("sharp");
// Expects the input directory to contain folders that directly contain the images.
const inDir = "./images/_fullsize";
let srcsetData;
let fileLoopPromises;
const transparancy = { r: 0, g: 0, b: 0, alpha: 0 };
const resizeOption... |
/* eslint-env browser */
const Docker = require('dockerode');
const assert = require('assert');
const Promise = require('bluebird');
const path = require('path');
const tmp = require('tmp');
const stream = require('stream');
const {stripIndent} = require('common-tags');
const {getCodeLimit, Deferred, createLineDrainer}... |
/**
* 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... |
import React from 'react';
import { connect } from 'react-redux'
import {Clipboard,Dimensions,DeviceEventEmitter,InteractionManager,ListView,StyleSheet,View,RefreshControl,Text,ScrollView,Image,Platform,StatusBar, ImageBackground, FlatList, TouchableHighlight} from 'react-native';
import {TabViewAnimated, TabBar, Scene... |
/*
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at ht... |
var binary = require('@mapbox/node-pre-gyp');
var path = require('path')
// var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')), {debug: true});
var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')));
var ziti = require(binding_path);
require('assert').equa... |
/*******************************************
* *
* This util was created by <NAME> *
* Please thank Marius on GitHub /owlbertz *
* or the web http://www.mariusolbertz.de/ *
* *
******************************************/
'use strict'... |
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/js/dist/collapse.js';
import 'bootstrap/js/dist/dropdown.js';
import Vue from 'vue/dist/vue.min.js';
import EditTable from './components/edit-table.vue';
import Counter from './components/counter.vue';
// Adjust the old table, either expanding it (padd... |
"use strict";
let cart = (JSON.parse(localStorage.getItem('cart')) || []);
const cartDOM = document.querySelector(".cart");
const addToCartButtonsDOM = document.querySelectorAll('[data-action="ADD_TO_CART"]');
if (cart.length > 0) {
cart.forEach(cartItem => {
const product = cartItem;
cartDOM.inse... |
const fs = require('fs')
const path = require('path')
const process = require('process')
const os = require('os')
const makeDir = require('make-dir')
const inquirer = require('inquirer')
const _ = require('lodash/fp')
const { utils: coinUtils } = require('@lamassu/coins')
const settingsLoader = require('../new-settin... |
'use strict';
const fs = require('fs');
//private
const initTags = Symbol('eggSwagger#initTags');
const initPaths = Symbol('eggSwagger#initPaths');
const createDefinitions = Symbol('eggSwagger#createDefinitions');
const getOperationId = Symbol('eggSwagger#getOperationId');
const getParameters = Symbol('eggSwagger#getP... |
/*jslint node: true */
"use strict";
var fs = require('fs');
var desktopApp = require('ocore/desktop_app.js');
var appDataDir = desktopApp.getAppDataDir();
var path = require('path');
if (require.main === module && !fs.existsSync(appDataDir) && fs.existsSync(path.dirname(appDataDir)+'/byteball-faucet')){
console.log(... |
var table_name = 'inventory_import';
var added_items = {};
$(document).ready(function(){
$('input[type=checkbox]').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'icheckbox_square-blue',
increaseArea: '20%' // optional
});
$('#payment_status').change(function(){
... |
const express = require("express");
const router = express.Router();
const multer = require("multer");
const PetDAO = require("../dao/PetDAO");
const Pet = require("../models/Pet");
const PetPhoto = require("../models/PetPhoto");
const validationHelper = require("../helpers/validation");
const authHelper = require("../... |
import React, { useState } from "react"
import { Formik, Field, Form } from "formik"
import * as Yup from "yup"
import { Error } from "@nt-websites/navigate-theme"
import { submitContactRequest } from "../../services/api"
import resolveVariationClass from "../../helpers/theme-variation-style"
import { TAG_MANAGER_TRACK... |
var forecast_chart_container = document.getElementById("forecast_coin_chart").getBoundingClientRect();
// set the dimensions and margins of the graph
const forecast_line_margin = { top: 20, right: 20, bottom: 30, left: 50 },
forecast_line_width = (forecast_chart_container.width - forecast_line_margin.left - forec... |
"use strict";
class ObjectExt {
// public static mapToObject(source: any, factoryFunc: () => any): any
// {
// let target = factoryFunc();
// source = JSON.parse(JSON.stringify(source));
// for (let key in source)
// {
// if (source.hasOwnProperty(key) && typeof sourc... |
var router = require('express').Router();
var OpenWeatherMapHelper = require('../../../../helpers/openweathermap.js')();
var db = require('../../../../config/index.js');
var WeatherSite = require('../../../../models/WeatherSite.js');
var mysqlconnection = require('../../../../config/index.js');
router.get("/:SiteId", ... |
/** @template Node @typedef {import('../../sdk/src/api/types').WebAudioModule<Node>} WebAudioModule */
/** @typedef {import('../../sdk/src/api/types').WamAutomationEvent} WamAutomationEvent */
/** @typedef {import('../../sdk/src/api/types').WamParameterDataMap} WamParameterDataMap */
/** @typedef {import('../../sdk/src... |
'use strict';
const nock = require('nock');
const loadRule = require('../utils/load-rule');
const ContextBuilder = require('../utils/contextBuilder');
const RequestBuilder = require('../utils/requestBuilder');
const UserBuilder = require('../utils/userBuilder');
const ruleName = 'signals-ip-info';
const responseJso... |
import extend from 'extend';
import { resolveLineBreakAlgorithm } from './line-break-resolver';
import baselineHeuristic from './baseline-heuristic';
import { ELLIPSIS_CHAR } from './text-const';
import { fontSizeToHeight, fontSizeToLineHeight } from './font-size-to-height';
import { includesLineBreak } from './string-... |
// export function hyperCubeTransform(qData, qHyperCube) {
export function hyperCubeTransform(
qData,
qHyperCube,
useNumonFirstDim = false
) {
const qNoOfDiemnsions =
qHyperCube !== undefined ? qHyperCube.qDimensionInfo.length : 1;
const qNoOfMeasures =
qHyperCube !== undefined ? qHyperCube.qMeasureIn... |
const common = require("./common");
const config = require("../config");
const maps = require("./map-functions");
const AsciiTable = require("ascii-table");
module.exports.rdiv = rdiv = (message, input, isRandom) => {
const side = input.toLowerCase();
if (side !== "axis" && side !== "allies") {
common.reply(me... |
var fs = require('fs');
var multiparty = require('multiparty');
var xlsx = require('node-xlsx');
var dataStructure = require('./../dataStructure')
var _ = require('underscore');
var mongo = require('mongodb'),
MongoClient = mongo.MongoClient,
assert = require('assert');
var config = require('./../../config/config... |
import { override } from "../core/core"
const LIMIT = 21
const OFFSET = 0
const TOP = 5
const MULTI_DIMENSION_INDEX = 1
function processMultiSeriesResults(results) {
return results.reduce(
(accum, { key1, key0, val }) => {
if (accum.keys[key1]) {
accum.keys[key1] = accum.keys[key1]
} else if... |
var fs=require('fs');
var util = {
sliceArray :function (array, sliceSize) {
var slices = [];
var slice = []
array.forEach(function (item) {
if (slice.length >= sliceSize) {
slices.push(slice);
slice = [];
}
slice.push(ite... |
"use strict";
exports.__esModule = true;
exports["default"] = makeAsyncScript;
var _react = require("react");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
function _interopRequireDefault(obj) { return obj && ... |
import React, { useEffect, useState } from 'react';
import styled, { css } from 'styled-components';
import media from '@kiwicom/orbit-components/lib/utils/mediaQuery';
// components
import { Grid, Button, Loading, Stack } from '@kiwicom/orbit-components/lib';
import DonationCard from '@components/card/DonationCard';
... |
///////////// defs of each animation that can be used
import * as anis from './animations.js'
import anime from "../lib/anime.es.js";
// import element from './element.js'
var s = document.getElementById('svgSpace');
var svgns = "http://www.w3.org/2000/svg";
function updateCoords() {
return {
x : anime.random(... |
var table = null;
var arrData = [];
var arrQuest = [];
var arrCreate = [];
$(document).ready(function () {
//debugger;
ClearScreen();
$('#TrainerOption').on('change', function () {
//debugger;
$('#cekTitle').show();
var getid = $('#TrainerOption').val();
$.ajax({
... |
import React, { useContext, useState } from 'react';
import { ScrollView, StyleSheet, Text, View, ImageBackground, Image, Linking } from 'react-native';
import DetailsContext from '../../context/DetailsContext';
import { LinearGradient } from 'expo-linear-gradient';
import playIcon from '../../assets/play.png';
export... |
// Copyright 2018 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.
import '../strings.m.js';
import {assert} from 'chrome://resources/js/assert.m.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js... |
// Event listeners
$('#manual').click(function() {
$('#manual-drop').toggleClass("fa-chevron-down fa-chevron-up");
});
$('#map').click(function() {
$('#map').select();
});
//Calculate Route
$('#mapBtn').click(function() {
//Refresh waypoints
coordFind();
//Define start and end points
var start = waypts[0... |
'use strict';
const isNull = (a) => !a && typeof a === 'object';
const {getPositionByOffset} = require('./get-position-by-offset');
const {assign} = Object;
module.exports.convertModuleToProgram = (path) => {
path.node.type = 'Program';
path.node.sourceType = 'module';
};
module.exports.convertSpanToPositio... |
$("#form-spidertask-params").validate({
rules : {
pageNumber : {
required : true,
digits : true,
min : 1,
max : 100
},
projectName : {
maxlength : 100
},
companyName : {
maxlength : 100
}
},
messages : {},
submitHandler : function(form) {
update();
}
});
// 一开始便加载
$(document).ready... |
/**
* @Date: 2017-01-15T22:06:07-05:00
* @Filename: databaseLoader.js
* @Last modified time: 2017-01-27T13:01:40-05:00
* @License: Distributed under the MIT license: https://opensource.org/licenses/MIT
* @Copyright: Copyright (c) 2017 <NAME> and <NAME>
*/
var workflow = new(require('events').EventEmitter)();... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.