text
stringlengths
3
1.05M
const createError = require('http-errors'); const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); const logger = require('morgan'); const usersRouter = require('./routes/users'); const robosRouter = require('./routes/robos'); const app = express(); app.use(l...
'use strict' const url = require('url') const WebSocket = require('ws') const projectConfig = require('../project.config') const wss = new WebSocket.Server({ port: projectConfig.wsServerPort }) wss.on('open', function open () { console.log('websocket opened') wss.send(Date.now()) }) wss.on('connection', functio...
import axios from 'axios' export function request(config, success, failure) { const instance = axios.create({ baseURL: '/data', timeout: 5000 }); //axios拦截器 //请求拦截 instance.interceptors.request.use(config => { // console.log(config); return config; }, error => { // console.log(error); ...
var _curry2 = /*#__PURE__*/require('./internal/_curry2'); /** * Applies function `fn` to the argument list `args`. This is useful for * creating a fixed-arity function from a variadic function. `fn` should be a * bound function if context is significant. * * @func * @memberOf R * @since v0.7.0 * @category Func...
import time import torch from torch.autograd import Variable from torchvision.models import * def test_case(model_name='resnet18', model_params=None, num_iter=1000, use_cuda=True, batch_size=1, ftype='float32', mode='eval'): """ Run a test case :param model_name: model (from to...
#!/Users/manikhossain/PycharmProjects/Rivet-ETL/venv/bin/python # # 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 ...
webpackJsonp([0],{ /***/ 587: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageModule", function() { return HomePageModule; });...
var clear_code_buttons_injected; if (!clear_code_buttons_injected) { chrome.runtime.sendMessage({ injectClearCodeButtons: "true" }, function(response) { clear_code_buttons_injected = true; }); }
import PropTypes from 'prop-types'; export const suggestedFieldsPropType = PropTypes.shape({ name: PropTypes.string.isRequired, type: PropTypes.string.isRequired });
module.exports={ title:'res-compress', };
""" Pure-SCIP evaluations (no learning involved). """ import os import argparse import pickle from src.environments import SCIPEvalEnv import multiprocessing as mp import pdb import faulthandler faulthandler.enable() # solver parametric setting, key ('sandbox' or 'default') to be specified in argparse --setting...
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]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
import React from 'react'; import NoticeLayout from '../components/NoticeLayout'; import PurchaseOrderDetail from './PurchaseOrderDetail'; const PurchaseOrder = () => { return ( <NoticeLayout selected="purchaseorder"> <PurchaseOrderDetail /> </NoticeLayout> ); }; export default PurchaseOrder;
/** * LocalStorage item keys. */ export const storageItemKeys = { FSE_SETTINGS: 'fseSettings' }; /** * Keys. * @enum */ export const Keys = { ENTER: 'Enter', ESC: 'Escape' };
function(instance, properties, context) { var xhr = new XMLHttpRequest(); var body = ''; body = 'client='+properties.client; body += '&exam='+properties.exam; if (instance.data.tmInterval != null) clearInterval(instance.data.tmInterval); for (var t in instance.data.tmTo) { clearTimeout(inst...
define(["exports","./when-54c2dc71","./Check-6c0211bc","./Math-fc8cecf5","./Cartesian3-e5933291","./Transforms-7e4f9763"],function(n,i,e,a,c,f){"use strict";function l(n,e){this.normal=c.Cartesian3.clone(n),this.distance=e}l.fromPointNormal=function(n,e,a){var r=-c.Cartesian3.dot(e,n);return i.defined(a)?(c.Cartesian3....
module.exports={A:{A:{"2":"L H G E jB","33":"A B"},B:{"2":"8","33":"C D e K I N J"},C:{"2":"0 1 2 3 4 5 7 9 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z KB JB CB DB EB O GB HB IB aB ZB"},D:{"2":"0 1 2 3 4 5 7 8 9 F L H G E A B C D e K I N J P Q R S T U V W X ...
console.log('knife');
from .beeminder import Beeminder
'use strict'; // Organizations controller angular.module('organizations').controller('OrganizationsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Organizations', 'Projects','Employees', function($scope, $stateParams, $location, Authentication, Organizations, Projects, Employees) { $scope.au...
module.exports = function () { return function (context) { const needsSeparating = ['miscCategories', 'instrumentations', 'keys'] needsSeparating.forEach(field => { if(context.data[field]){ context.data[field] = context.data[field].split(' ') } }) return context } }
describe("extended-props", function () { it("loads extended props", async () => { let docBlob = await fetch(`/base/tests/extended-props-test/document.docx`).then(r => r.blob()); let div = document.createElement("div"); document.body.appendChild(div); let docParsed = await ...
defineSuite([ 'Widgets/Geocoder/GeocoderViewModel', 'Core/Cartesian3', 'Core/Rectangle', 'Specs/createScene', 'Specs/pollToPromise', 'ThirdParty/when' ], function( GeocoderViewModel, Cartesian3, Rectangle, createScene, ...
import torch from torch.autograd import Variable from torch import nn from torch.nn.init import kaiming_uniform_, xavier_uniform_, normal import torch.nn.functional as F import torchvision as tv import utils import math from attention import Attention def linear(in_dim, out_dim, bias=True): lin = nn.Linear(in_dim,...
const React = require('react'); const PropTypes = require('prop-types'); const Radium = require('radium'); const keycode = require('keycode'); const _findIndex = require('lodash/findIndex'); /** * Listbox * * Handles accessibility and traversal of a list of options. * Traverse the list with the `up`/`down` arrow k...
import './TodoList.css'; import TodoListItem from './TodoListItem'; import React, { useEffect } from 'react'; import { useRecoilState } from 'recoil'; import { todosState } from './atoms'; import { removeTodoCreator } from './creators'; function TodoList() { const [todos, setTodos] = useRecoilState(todosState); ...
$(function () { //判斷行動裝置 var isMobile = false; var currentSet; if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp...
/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.add( 'menubutton', { requires: 'button,menu', onLoad: function() { var clickFn = function( editor ) { va...
/* YUI 3.11.0 (build d549e5c) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/arraylist-filter/arraylist-filter.js']) { __coverage__['build/arraylist-filter/arra...
/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
import React, {useState} from "react"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import Typography from "@material-ui/core/Typography"; import { makeStyles } from "@material-ui/core/styles"; import Container from "@material-ui/core/Container"; export default f...
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import Zmage from 'react-zmage' import Layout from "../components/layout" import ToC from "../components/toc/toc" import SEO from "../components/seo" require(`katex/dist/katex.min.css`) class BlogPostTemplate extends React.Compone...
module.exports.iframe = (site) => { if (site === "hgtv") { return "#ngxFrame207341"; } if (site === "foodnetwork") { return "#ngxFrame207345"; } }; module.exports.emailAddress = "#xReturningUserEmail"; module.exports.beginEntryButton = "#xCheckUser"; module.exports.submitEntryButton = "#xSecondaryForm ...
var searchData= [ ['acetime_5fstrcmp_5fpp',['acetime_strcmp_PP',['../compat_8h.html#a286dd84f632d303baf33b0c82896b6b2',1,'compat.cpp']]], ['addactivecandidatestoactivepool',['addActiveCandidatesToActivePool',['../classace__time_1_1extended_1_1TransitionStorage.html#a114cb0ef4591f824fb41a81b329cded6',1,'ace_time::ex...
import unittest import aiohttp from beacon_api.utils.db_load import parse_arguments, init_beacon_db, main from beacon_api.conf.config import init_db_pool from beacon_api.api.query import access_resolution from beacon_api.utils.validate_jwt import token_scheme_check, verify_aud_claim from beacon_api.permissions.ga4gh im...
final.module("final.ui", ["final.shim", "final.vec", "final.vec2math", "final.renderer"], function(final, shim, vec, vec2math, renderer){ var Vec2 = vec.Vec2; var defaultEffectState = { background: "white", border: "grey", shadow: "white", text: "black", blur: 0.1, ...
!function(A){var t={};function i(e){if(t[e])return t[e].exports;var n=t[e]={i:e,l:!1,exports:{}};return A[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=A,i.c=t,i.d=function(A,t,e){i.o(A,t)||Object.defineProperty(A,t,{enumerable:!0,get:e})},i.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
const table = {}; async function dbSelect(table, { uid }) { return [ table[uid] ]; } async function dbUpdate(table, params, { uid }) { table[uid] = Object.assign({}, table[uid] || {}, params); } async function dbInsert(table, params) { table[params.uid] = params; } module.exports = { dbSelect, dbUpdate, ...
/** * * Certificates * */ import React from 'react'; import { Card, List, Typography, Col, Row } from 'antd'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; const { Title } = Typography; function Certificates(props) { const { info } = props; return ( <> <List ...
import controlsPanel from '../templates/controlsPanel.pug'; import '../stylesheets/controlsPanel.styl'; import Panel from './Panel'; import ControlWidget from './ControlWidget'; var ControlsPanel = Panel.extend({ initialize: function (settings) { this.title = settings.title || ''; this.advanced = ...
import PropTypes from 'prop-types'; import momentPropTypes from 'react-moment-proptypes'; import { mutuallyExclusiveProps, nonNegativeInteger } from 'airbnb-prop-types'; import { DateRangePickerPhrases } from '../defaultPhrases'; import getPhrasePropTypes from '../utils/getPhrasePropTypes'; import FocusedInputShape f...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/ObliqueViewer/setting/nls/strings":{layerSelect:"Selecteer de laag",elevationFieldSel...
import { props, string } from 'cerebral/tags' import toast from '../../../../../common/factories/toast' import loadAcmg from '../../sequences/loadAcmg' import setDirty from '../actions/setDirty' import setReferenceAssessment from '../actions/setReferenceAssessment' import showReferenceEvalModal from '../actions/showRef...
import React from 'react'; import { Route, Redirect } from 'react-router-dom' import { firebaseStore } from './firebase.js'; const PrivateRoute = ({ component: Component, ...rest }) => { return ( <Route {...rest} render={props => ( firebaseStore.store.signedIn ? ( <Component {.....
import React from "react"; import { oneOfType, arrayOf, string, number } from "prop-types"; import styled from "styled-components"; import { generateDefaultStyle, generateMediaQueries } from "./utils"; const generateStyle = props => ` grid-area: ${props.gridArea || ""}; grid-row-start: ${props.rowStart || ""}; ...
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 = Reflect.decorate(d...
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You (youansheng@gmail.com) # Pose Net fot Parts Detection. from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.nn as nn import torch.nn.functional as F import torch class CPMNet(nn.Mod...
import os import glob import shutil import sys from subprocess import check_output, check_call, CalledProcessError, STDOUT import time import logging import json import yaml import pytest # pylint: disable=wildcard-import from suzieq.cli.sqcmds import * # noqa from suzieq.shared.utils import load_sq_config from test...
const express = require('express'); const urlService = require('../../../services/url'); const adminRedirect = (path) => { return function doRedirect(req, res) { return urlService.utils.redirectToAdmin(301, res, path); }; }; module.exports = function adminRedirects() { const router = express.Route...
#!/usr/bin/env python3 # # init_database.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2020 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. ...
#!python from strings import contains, find_index, find_all_indexes import unittest class StringsTest(unittest.TestCase): def test_contains_with_matching_patterns(self): # Positive test cases (examples) with matching patterns assert contains('abc', '') is True # all strings contain empty string...
import * as d3 from 'd3' const margin = {top: 10, right: 30, bottom: 20, left: 30}, width = 400 - margin.left - margin.right, height = 400 - margin.top - margin.bottom export function initStacked() { d3 .select('#genderUnempChart') .append('svg') .attr('width', width + margin.left + margin.right + 7...
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
// Copyright 2015 Microsoft Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. /*--- esid: sec-array.from es6id: 22.1.2.1 description: Map function without thisArg on strict mode info: > 22.1.2.1 Array.from ( items [ , mapfn [ , thisArg ] ] ) ... 10. Let len be T...
var searchData= [ ['text',['text',['../class_tips_screen.html#a1625c940af5062c65c32d54948f7d69d',1,'TipsScreen']]], ['textbackground',['textBackground',['../class_tips_screen.html#a58eadd733c11628346dc9b66bfb1a84f',1,'TipsScreen']]], ['thiscontroller',['thiscontroller',['../classrotationtest.html#a14f555b41e0d88f...
const E2eHelpers = require('platform/testing/e2e/helpers'); const Timeouts = require('platform/testing/e2e/timeouts.js'); const Auth = require('platform/testing/e2e/auth'); const DisabilityHelpers = require('./claims-status-helpers'); module.exports = E2eHelpers.createE2eTest(client => { const token = Auth.getUserTo...
var searchUtility = require("./searchUtility.js"); var responseTagAPIName = ''; var metadataFieldsMap = new Map(); var salesConsultantSearch; var salesConsultantFedIdInRequest; String.prototype.equalsIgnoreCase = function (compareString) { return this.toUpperCase() === compareString.toUpperCase(); }; func...
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
/* VERSION: Drop Shadow jQuery Plugin 1.6 12-13-2007 REQUIRES: jquery.js (1.2.1 or later) and jquery.dimensions.js SYNTAX: $(selector).dropShadow(options); // Creates new drop shadows $(selector).redrawShadow(); // Redraws shadows on elements $(selector).removeShadow(); // Removes shadows f...
module.exports = Ferdi => { const getMessages = () => { const notifications = document.querySelector('.c-notifications-dropdown__count') Ferdi.setBadge(notifications.innerText); }; Ferdi.loop(getMessages); };
import { Button, Container, Grid } from '@material-ui/core'; import React from 'react'; import { useHistory } from 'react-router'; export function Dashboard() { const history = useHistory(); return ( <Container> <h1> Dashboard </h1> <h2>Menu</h2> <Grid container spacing={1}> ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy, sys import moveit_commander from moveit_commander import MoveGroupCommander, PlanningSceneInterface from moveit_msgs.msg import PlanningScene, ObjectColor, CollisionObject from geometry_msgs.msg import PoseStamped, Pose from shape_msgs.msg import SolidPrimiti...
/******************************************************** Copyright 2016 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-...
export class HungryBear { constructor(name) { this.name = name; this.foodLevel = 10; this.time = 10000; } setHunger() { let timer = setInterval(() => { this.foodLevel--; if (this.foodLevel === 0) { clearInterval(timer); } }, 1000); } didYouGetEaten() { if ...
const selectionSort = require('./selection') test('selection sort', () => { const a = [5,2,4,6,1,3] selectionSort(a) expect(a).toEqual([1,2,3,4,5,6]) })
# # Copyright (c) 2013-2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # vim: tabstop=4 shiftwidth=4 softtabstop=4 import logging from collections import OrderedDict from cgtsclient import exc from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext...
/*! * artTemplate - Template Engine * https://github.com/aui/artTemplate * Released under the MIT, BSD, and GPL Licenses */ var template=function(e,t){return template[typeof t=="object"?"render":"compile"].apply(template,arguments)};(function(e,t){"use strict";e.version="2.0.0",e.openTag="<%",e.closeTag="%>",e...
import invariant from 'invariant'; export const config = { delimiter: '.', next: 'next', start: 'start', error: 'error', complete: 'complete' }; export function createTypes(types, ns, delimiter = config.delimiter) { invariant( Array.isArray(types), 'createTypes expected a Array of strings for type...
import plotly.graph_objects as go from icecream import ic if __name__ == "__main__": tpl = go.layout.Template() ic(tpl, type(tpl)) tpl.layout.annotationdefaults = dict( font=dict( color="crimson" ) ) fig = go.Figure() fig.update_layout( template=tpl, ...
$(document).ready(function () { addbuttonListener(); function addbuttonListener() { $mainBtn = $("#main-btn"); $mainBtn.click(function () { const $siteInput = $("#input-website"); const website = $siteInput.val(); if (website) { ajaxGet(webs...
module.exports = function(x) { return typeof x == 'string'; };
# -*- coding: UTF-8 -*- import base64 import unittest from onlinepayments.sdk.defaultimpl.default_marshaller import DefaultMarshaller from onlinepayments.sdk.domain.shopping_cart_extension import ShoppingCartExtension from onlinepayments.sdk.meta_data_provider import MetaDataProvider from onlinepayments.sdk.request_he...
var isBalanced = function (root) { if (!root) return true const left = height(root.left) const right = height(root.right) return Math.abs(left - right) <= 1 && isBalanced(root.left) && isBalanced(root.right) function height (root) { if (!root) return 0 return Math.max(height(root.left), height(roo...
// Retorna Infinity... console.log(7 / 0) // Aqui o resultado será '5' ele converte a string em number e divide por 2.... console.log('10' / 2) // Aqui a string tem preferencia então vai ser contatenado e resultado será '32'... console.log("3" + 2) // Aqui ele retorna um 'NaN' notificando que 'Show' não é um número......
/* * Highstock Demos › Compare multiple series * http://www.highcharts.com/stock/demo/compare * http://www.highcharts.com/docs */ $(function () { var seriesOptions = [], seriesCounter = 0, names = ['Temperature']; /** * Create the chart when all data is loaded * @returns {undefi...
function ErrorHandle() { this.print = function(msg) { alert(msg); } }
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { it('should automatically redirect to /converter when location hash/fragment is empty', function() { browser.get('index.html'); expect(browser.getLocationAbsUrl()).toMatch("/converter"); }); ...
import styled, { css } from "styled-components"; import { useEffect, useState } from "react"; import InternalLink from "./internalLink"; import { no_scroll_bar, shadow_100, makeSquare } from "../styles/globalCss"; import { h3_36_bold, p_18_semibold, p_16_semibold } from "../styles/textStyles"; import SpaceLogo from "@...
declare module 'redux-immutable-state-invariant' { declare var exports: any }
"use strict"; const fs = require("fs-extra"); const forOwn = require('lodash.forown'); const flattenObject = require("../../common/object/flatten"); const findWidgets = require("./find-widgets"); const Action = require("../models/Action"); const colors = require("colors"); const theme = require("../config/theme.js")...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
from django.urls import path from rest_framework.routers import DefaultRouter app_name = "emotions" router = DefaultRouter() urlpatterns = router.urls
declare module "redux-immutable-state-invariant" { import typeof * as Redux from "redux"; declare type isImmutableDefault = (value: any) => boolean; declare type immutableStateInvariantMiddlewareInterface = ( isImmutable?: isImmutableDefault ) => Redux.Middleware; declare var immutableStateInvariantMiddl...
""" Django settings for gallery project. Generated by 'django-admin startproject' using Django 1.11.23. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
""" kombu.connection ================ Broker connection and pools. """ from __future__ import absolute_import import os import socket from contextlib import contextmanager from functools import partial from itertools import count, cycle from operator import itemgetter try: from urllib.parse import quote except ...
/** * @private * @class Ext.draw.ContainerBase */ Ext.define('Ext.draw.ContainerBase', { extend: 'Ext.panel.Panel', requires: ['Ext.window.Window'], /** * @cfg {String} previewTitleText The text to place in Preview Chart window title. */ previewTitleText: 'Chart Preview', /**...
const functions = require('firebase-functions'); const admin = require('firebase-admin'); const express = require('express'); const cors = require('cors'); const app = express(); app.use(cors({ origin: true })); let serviceAccount = require("./permission.json"); admin.initializeApp({ credential: admin.credential.c...
/** Core script to handle the entire theme and core functions **/ var Layout = function () { var resBreakpointMd = App.getResponsiveBreakpoint('md'); //* BEGIN:CORE HANDLERS *// // this function handles responsive layout on screen size resize or mobile device rotate. // Handles header ...
import { setNative } from "./common.js" import * as os from "os" export * from "./common.js" import { createRequire } from "module" let require = createRequire(import.meta.url) if (!globalThis.fetch) { globalThis.fetch = require("node-fetch") } let target = null let arch = os.arch() let platform = os.platform() if ...
// Page Configs export const NAMESPACE = 'Payment_AR'; export const PAGE_TITLE = 'Payment'; export const PAGE_TITLE_TAGLINE = 'Payment AR details - for OFBiz'; export const FORM_ID = 'PaymentForm'; export const NOTIFICATION_TITLE = 'Payment (List)'; export const LABEL_NOTAVAILABLE = '-NA-'; // Legend for Status in Ta...
const userModel = require('../models/user.model') exports.login = (req, res) => { let responseResult = {} req.checkBody('userEmail', 'useremail should be valid').isEmail() req.checkBody('password', 'password should have minimum 5 letters').isLength({ min: 5 }) let errors = req.validationErrors() i...
function goPage(event) { var a = $(event.target); var url = a.attr('href'); $('section.content').load(url); event.preventDefault(); } $(document).ready(function () { $('.menu').on('click', 'a', function (event) { goPage(event); return false; }); });
var Typeahead = require('suggestions'); var extend = require('xtend'); var EventEmitter = require('events').EventEmitter; var exceptions = require('./exceptions'); var MapboxClient = require('@mapbox/mapbox-sdk'); var mbxGeocoder = require('@mapbox/mapbox-sdk/services/geocoding'); var MapboxEventManager = require('./ev...
!function(a){a(function(){a(".button-collapse").sideNav(),a(".parallax").parallax()})}(jQuery);
export const statesData={ data:()=>{ var dictionaryData={}; dictionaryData["AL"]="Alabama"; dictionaryData["AK"]="Alaska"; dictionaryData["AZ"]="Arizona"; dictionaryData["AR"]="Arkansas"; dictionaryData["CA"]="California"; dictionaryData["CO"]="Colorado"; ...
var data = { "body": "<path d=\"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z\" fill=\"currentColor\"/><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-4...
function formatReadingTime(minutes) { const cups = Math.round(minutes / 5); if (cups > 5) { return `${new Array(Math.round(cups / Math.E)).fill('🍱').join('')} ${minutes} min read`; } return `${new Array(cups || 1).fill('☕️').join('')} ${minutes} min read`; } function haveSameItem(arr1 = [], arr2 = []) { ...
module.exports = function ( grunt ) { grunt.loadNpmTasks("grunt-contrib-watch"); grunt.loadNpmTasks("grunt-contrib-less"); grunt.loadNpmTasks("grunt-angular-templates"); grunt.loadNpmTasks("grunt-contrib-concat"); grunt.loadNpmTasks("grunt-contrib-copy"); grunt.loadNpmTasks("grunt-contrib-clean...
# coding=utf-8 # *** WARNING: this file was generated by the Kulado Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import kulado import kulado.runtime from .. import utilities, tables class SharedAccessPolicy(kulado.Custo...
export * from "./util.js"; export * from "./account.js"; export * from "./contract.js"; export * from "./token.js"; export * from "./iwAccount.js"; export * from "./iwContract.js"; export * from "./iwToken.js"; export * from "./defi.js";