text
stringlengths
2
1.04M
// fill in the blanks console.log('--- loading: honesty test'); function honestyTestHandler() { 'use strict'; debugger; // read inputs from user const userString = _(`Please enter something:`); const confirmation = _(`Did you enter something? \nyes: "ok" \nno: "cancel"`); // before moving on ... type c...
import React from 'react' import { FileAddOutlined, ExperimentOutlined } from '@ant-design/icons' import { Typography } from 'antd' import SelectOrCreate from '../Forms/SelectOrCreate' import TextArea from '../Forms/TextArea' import Checkbox from '../Forms/Checkbox' import RadioGroup from '../Forms/RadioGroup' import F...
import { makeStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import AppBar from '@material-ui/core/AppBar'; import BugReportIcon from '@material-ui/icons/BugReport'; import HelpIcon from '@material-ui/icons/Help'; import FolderOpenIcon from '@material-ui/icons/FolderOpen'; import IconButton from '@ma...
var passport = require("passport"); var User = require("../models/user"); var config = require("./auth"); var JwtStrategy = require("passport-jwt").Strategy; var ExtractJwt = require("passport-jwt").ExtractJwt; var LocalStrategy = require("passport-local").Strategy; var localOptions = { usernameField: "email" }; va...
const { sampleStandardDeviation } = require('../lib/sampleStandardDeviation'); describe('sampleStandardDeviation', () => { it('should return the Sample Standard Deviation of all parameters, given that all parameters evaluate to numbers', () => { const result = sampleStandardDeviation(727.7, 1086.5, 1091.0, 1361....
// /* eslint-disable */ // import "bootstrap"; // import "./style.css"; // import "./assets/img/rigo-baby.jpg"; // import "./assets/img/4geeks.ico"; //window.onload = function() { //write your code here let pronoun = ["the", "our"]; let adj = ["great", "big"]; let noun = ["jogger", "racoon"]; for (let i = 0...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || function (...
const router = require("express").Router(); const sequelize = require("../config/connection"); const { Post, User, Comment } = require("../models"); const withAuth = require("../utils/auth"); // Read all posts by a user /dashboard router.get("/", withAuth, async (req, res) => { console.log(req.session); console.lo...
import request from '@/utils/request' export function add(data) { return request({ url: 'api/mapToken', method: 'post', data }) } export function del(ids) { return request({ url: 'api/mapToken/', method: 'delete', data: ids }) } export function edit(data) { return request({ url:...
import * as React from "react"; function ViewBoardsIcon(props) { return /*#__PURE__*/React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true" }, props), /*#__PURE__*/React.createElement("pat...
var configs = require('../../knexfile.js') var env = process.env.NODE_ENV || 'development' var config = configs[env] if (!config) throw new Error(`No db config defined for environment ${env}`) module.exports = require('knex')(config)
*/ */ function re(){this.i=0,this.j=0,this.S=new Array}function ie(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0}function oe(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var GeneralRepository_1 = require("../../GeneralRepository/GeneralRepository"); var Event_1 = require("../../Messaging/Event"); var Utils_1 = require("../../Messaging/Utils"); var ModelDecorator_1 = require("../../Model/ModelDecorator"); var U...
/* Copyright (c) AppDynamics, Inc., and its affiliates 2015 All Rights Reserved */ 'use strict'; var uuid = require('uuid'); function IoredisProbe(agent) { this.agent = agent; this.packages = ['ioredis']; this.callbackQueue = {}; } exports.IoredisProbe = IoredisProbe; /* * The 'sendCommand' function is pro...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
var tape = require("tape"), d3_octree = require("../"); tape("octree.addAll(data) creates new points and adds them to the octree", function(test) { var q = d3_octree.octree(); test.deepEqual(q.add([0.0, 0.0, 0.0]).root(), {data: [0, 0, 0]}); test.deepEqual(q.add([0.9, 0.9, 0.9]).root(), [{data: [0, 0, 0]},,,...
/* @flow */ import VNode from 'core/vdom/vnode' import { renderAttr } from './attrs' import { isDef, isUndef, extend } from 'shared/util' import { propsToAttrMap, isRenderableAttr } from '../util' export default function renderDOMProps (node: VNodeWithData): string { let props = node.data.domProps let res = '' ...
import { CellCoords, CellRange } from '../../3rdparty/walkontable/src/index'; import { toSingleLine } from '../../helpers/templateLiteralTag'; /** * The `MergedCellCoords` class represents a single merged cell. * * @class MergedCellCoords * @plugin MergeCells */ class MergedCellCoords { constructor(row, column,...
(function($) { //chosen select $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); //tag input function onAddTag(tag) { alert("Added a tag: " + tag); } function onRemoveTag(tag) { alert("Removed a tag: " + tag); } function onC...
import React, {useState} from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faTwitter } from '@fortawesome/free-brands-svg-icons' const LoginPage = () => { const [isFormFilled, setIsFormFilled] = useState(false); const [email, setEmail] = useState(''); const [password, ...
import Browsersync from 'browser-sync' import webpack from 'webpack' import webpackMiddleware from 'webpack-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import run from './run' import runServer from './runServer' import webpackConfig from './webpack.config' import clean from './clean' import co...
var test = require('tape') var ctrl = require('../lib/controller')() test('controller: instantiation', function (t) { t.ok(ctrl.processFeatureServer, 'has processFeatureServer method') t.ok(ctrl.errorResponse, 'has errorResponse method') t.end() }) // mock res object function mockRes (cb) { var res = {} res...
import account from './account'; import connection from './connection'; import data from './data'; import processing from './processing'; import user from './user'; import version from './version' export { account, connection, data, processing, user, version };
$(document).on('ready', function() { var toolTips = $('[data-toggle="tooltip"]:not([loaded])'); toolTips.attr('data-animation', false); toolTips.tooltip(); toolTips.attr('loaded', true); });
/* */ (function() { "use strict"; var Beautifier, Gherkin, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = pa...
const h1 = (props) => { return <h1>{props.text}</h1>; }; export default h1;
/** * Class MainVerExtractosView * @author KOI || @dropecamargo * @link http://koi-ti.com */ //Global App Backbone app || (app = {}); (function ($, window, document, undefined) { app.MainVerExtractosView = Backbone.View.extend({ el: '#verextractos-main', /** * Constructor Method ...
import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from '../reducers/rootReducer'; const persistedState = localStorage.getItem('selectedLevel') ? JSON.parse(localStorage.getItem('selectedLevel')) : {}; const devTools = window.__REDUX_DEVTOOLS_EXTENSI...
/** * Visual Blocks Language * * Copyright 2012 Google Inc. * http://code.google.com/p/blockly/ * * 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/...
import React from 'react' import { Icon } from './Icon' import { e, kt } from './fragments' export const FilledAlbum = /*#__PURE__*/ props => <Icon {...props}> <path d={kt + "m0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5" + e + "s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}/> </Icon>
import join from 'proper-url-join'; import moxios from 'moxios'; export const legacy = { success: params => { moxios.stubRequest( join('/api/legacy/v1/guestorders', params.id, { query: { guestUserEmail: params.guestUserEmail }, }), { method: 'get', response: params.respo...
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; }; var _slicedToArray = function () { function sliceIterator(arr...
/** * @copyright: Kevin Heim * @author: Kevin Heim Copyright 2018 MIT License ****/ let offsetGroup = 0; let initialParameter = null; let groupConfiguration = null; class Group{ /** * Initialize Default Parameter * @param ctrlObject - See ButtonGroup! * @param storage - Storage for Grou...
'use strict'; const { getRelationalFields } = require('../relations'); describe('Relations', () => { describe('getRelationalFields', () => { test('Attribute must have a type relation', () => { expect( getRelationalFields({ attributes: { rel: { type: 'relation', ...
import Marionette from 'backbone.marionette'; import _ from 'underscore'; // eslint-disable-line import/no-extraneous-dependencies import $ from 'jquery'; import { isRecordDownloadable, downloadCustom, getDownloadInfos } from 'eoxc/src/download'; import metalinkTemplate from 'eoxc/src/download/Metalink.hbs'; import { ...
// Jdenticon 2.1.0 | jdenticon.com | MIT licensed | (c) 2014-2018 Daniel Mester Pirttijärvi (function(q,y,z){var t=z(q,q.jQuery);"undefined"!==typeof module&&"exports"in module?module.exports=t:"function"===typeof define&&define.amd?define([],function(){return t}):q[y]=t})(this,"jdenticon",function(q,y){function z(a,b,...
// import Promise from 'promise'; import mongoose from 'mongoose'; // mongoose.Promise = global.Promise; let contactsPageViewsSchema = mongoose.Schema({ _id: String, date: Object, data: Number }, { collection: 'contactsPageViews' }); contactsPageViewsSchema.methods.setView = function () { consol...
const group = (prefix, ownerBot, botName) => { return ` 「 *${botName}* 」 ◪ *INFO* ❏ Prefix: 「 ${prefix} 」 ❏ Creator: ${ownerBot} ░▐█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▌ ░░█▒▄▀▀▀▀▀▄▒▒▄▀▀▀▀▀▄▒▐███▌ ░░░▐░░░▄▄░░▌▐░░░▄▄░░▌▐███▌ ░▄▀▌░░░▀▀░░▌▐░░░▀▀░░▌▒▀▒█▌ ░▌▒▀▄░░░░▄▀▒▒▀▄░░░▄▀▒▒▄▀▒▌ ░▀▄▐▒▀▀▀▀▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒█ ░░░▀▌▒▄██▄▄▄▄██...
import React from 'react'; export default function VectorTriangle({ size = 24, color = 'currentColor', ...restProps }) { return ( <svg xmlns='http://www.w3.org/2000/svg' className='icon icon-tabler icon-tabler-vector-triangle' width={size} height={size} viewBox='0 0 24 24' ...
let express = require('express'); let app = express(); const port = 1337; app.get('/', (req, res) => { res.status(200); res.send('Welcome to Express.js!'); }); app.listen(port, () => console.log(`Express running on port ${port}...`));
export const assignableProperties = ['building_units', 'thermal_zones', 'space_types', 'construction_sets', 'pitched_roofs']; export const componentTypes = ['window_definitions', 'daylighting_control_definitions', 'door_definitions']; export const libraryTypes = [...assignableProperties, ...componentTypes]; export cons...
function binarySearch(key, startIndex, endIndex, arr) { if (startIndex > endIndex) { return -1; } var middleIndex = (startIndex + (endIndex - startIndex) / 2 + 0.5) | 0; if (key === arr[middleIndex]) { return middleIndex; } if (key < arr[middleIndex]) { return binarySearch(key, startIndex, middleIndex - 1, ...
/** * @name _doc_send_to_es * * NOTE: Depends upon the es object to make ES requests, and also interacts * with courier objects. */ import _ from 'lodash'; import errors from 'ui/errors'; import RequestQueueProvider from 'ui/courier/_request_queue'; import FetchProvider from 'ui/courier/fetch/fetch'; export def...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.myMath = void 0; console.log('Hello from myMath.'); var myMath = function () { return { toInteger: function toInteger(value) { var parsed = parseInt(value); if (isNaN(parsed)) { throw new Error('Cannot co...
var $races, $pager; var $form; var $search, $results; var cache = null, cacheSize = -1, cacheReady = false; var currentPage = -1; function gotPage(err, data) { if (err) { return; } var races = data.docs, race, html; for (var n = 0, len = races.length; n < len; n++) { race = ...
define( 'spell/shared/util/platform/private/graphics/webgl/createWebGlContext', [ 'spell/shared/util/platform/private/graphics/StateStack', 'spell/shared/util/platform/private/graphics/webgl/createContext', 'spell/shared/util/platform/private/graphics/webgl/shaders', 'spell/shared/util/color', 'spell/share...
// Do not edit this file; automatically generated by gulp. /* eslint-disable */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD define([], factory); } else if (typeof exports === 'object') { // Node.js module.exports = factory(); } else { // Browser root.Blockly =...
import { navigateToMessageDetailAction } from './navigateToMessageDetailAction'; import { presenter } from '../presenter-mock'; import { runAction } from 'cerebral/test'; describe('navigateToMessageDetailAction', () => { let routeStub; const CASE_ID = 'fc1b424c-885f-450d-baee-b1965fd67149'; const PARENT_MESSAGE_...
const Command = require("../../lib/structures/KlasaCommand"); const { get } = require("snekfetch"); const { MessageEmbed } = require("discord.js"); module.exports = class extends Command { constructor(...args) { super(...args, { cooldown: 8, aliases: ["cats", "catfact"], ...
!function(e){function t(t){for(var n,a,i=t[0],l=t[1],f=t[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t...
import { getCopRegList, getCopReg } from "../copRegs/copRegs"; import serverInnerLogger from "../log/serverInnerLog"; export const copRegQueryHandler = (req, res) => { const { copRegId } = req.params; getCopReg(copRegId).then((copReg) => { if (copReg) { serverInnerLogger.info(`Successfully ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[152],{ /***/ "./node_modules/vue-good-table/dist/vue-good-table.esm.js": /*!****************************************************************!*\ !*** ./node_modules/vue-good-table/dist/vue-good-table.esm.js ***! \****************************************...
const RichEmbed = require("discord.js").RichEmbed; const Discord = require("discord.js"); const boxen = require('boxen'); const ms = require('ms') const fs = require('fs') module.exports.run = (client, message, args, data, game, announcement, colors) => { var commandlock = data.lock if(commandlock.includes('true...
import React from 'react'; import PropTypes from 'prop-types'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {action} from '@storybook/addon-actions'; import { Form as LegacyForm, TextField as LegacyTextField, PasswordField, BooleanField, } from 'app/compone...
var SLDS=SLDS||{};SLDS["__internal/chunked/showcase/ui/components/popovers/base/example.jsx.js"]=webpackJsonpSLDS___internal_chunked_showcase([131,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],[fun...
import NOTES from "./PianoNotes"; export default function getNotesBetween(startNote, endNote) { const startingIndex = NOTES.indexOf(startNote); const endingIndex = NOTES.indexOf(endNote); return NOTES.slice(startingIndex, endingIndex + 1); }
/**引入axios*/ import axios from "axios"; /**引入参数处理*/ import Qs from 'qs'; /**引入vant组件*/ import {Toast} from 'vant'; /*引入全局方法*/ import $function from './function' //引入封装的vant import $vant from './vant'; //引入router import $router from '../router/index.js'; //请求拦截器 axios.interceptors.request.use( config => { r...
import { GURPS } from './gurps.js' import { atou } from '../lib/utilities.js' import { Melee, Reaction, Ranged, Advantage, Skill, Spell, Equipment, Note } from './actor.js' import { HitLocation, hitlocationDictionary } from '../module/hitlocation/hitlocation.js' import { parselink } from '../lib/parselink.js' import * ...
export default class CSSModel extends SDK.SDKModel{constructor(target){super(target);this._domModel=(target.model(SDK.DOMModel));this._sourceMapManager=new SDK.SourceMapManager(target);this._agent=target.cssAgent();this._styleLoader=new ComputedStyleLoader(this);this._resourceTreeModel=target.model(SDK.ResourceTreeMode...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
const express = require("express") const server = express() const routes = require("./routes") const path = require("path") //usando o template engine para processar o html server.set('view engine', 'ejs') server.set('views', path.join(__dirname, 'views')) //habilitar arquivos estáticos server.use(express.static("pu...
import styled from "styled-components" import media from "styled-media-query" import Img from "gatsby-image" export const PostImage = styled(Img)` display: block; width: 100%; height: 35rem; margin-top: 0rem; ${media.lessThan("large")` display: flex; width: 100%; height: 22rem; `} `
/* */ (function(process) { var B = require("../../buffer@3.0.3").Buffer; var test = require("tape"); if (process.env.OBJECT_IMPL) B.TYPED_ARRAY_SUPPORT = false; test('buffer.toJSON', function(t) { var data = [1, 2, 3, 4]; t.deepEqual(new B(data).toJSON(), { type: 'Buffer', data: [1, 2, ...
/** * General Notes: * None */ var humanInterval = require('human-interval'), CronTime = require('cron').CronTime, date = require('date.js'), moment = require('moment-timezone'), debug = require('debug')('agenda:job'); var Job = module.exports = function Job(args) { args = args || {}; // Remove special ar...
import React from 'react'; import { Route, Switch } from "react-router-dom"; import styles from './styles.module.scss'; import Footer from "components/Footer"; const App = props => [ // NAV, props.isLoggedIn ? <PrivateRoutes key= {2} /> : <PublicRoutes key= {2} />, <Footer key={3}/> ] const PrivateRoutes ...
import { visitPage } from '../../support/utils.js' const checkVis = ($el, index, cutoff)=>{ cy.get($el).children('.list-group-item__heading').find('a').as('nextBut'); cy.get('@nextBut').click({force: true}); cy.get($el).children('.list-group-item__body').find('.checkbox').as('checkboxes') cy.get...
import React from 'react' import {useToasts} from 'react-toast-notifications' export default function ChildBillingForm(props) { const {addToast} = useToasts() const handleChildSubmit = e => { console.log('not making it into child handle?') addToast('Gotcha, these are fake chairs dummy!', {appearance: 'suc...
import React from "react" import logo from "../assets/logo.svg" import { FaAlignRight } from "react-icons/fa" import PageLinks from "../constants/links" const Navbar = () => { return ( <nav className="navbar"> <div className="nav-center"> <div class="nav-header"> <img src={logo} alt="logo"...
import AtomInputBaseCustomTextarea from './CustomTextarea'; export default { title: 'Atoms/Inputs/Base/CustomTextarea', component: AtomInputBaseCustomTextarea, argTypes: { model: { control: { type: Object }, defaultValue: { key: 'default', value: '' } } } }; export const Norm...
module.exports = { plugins: [ 'tailwindcss', 'postcss-flexbugs-fixes', [ 'postcss-preset-env', { autoprefixer: { flexbox: 'no-2009', }, stage: 3, features: { 'custom-properties': false, }, }, ], ], }
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('smallblackdogApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $...
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import { useCookies } from 'react-cookie'; const PrivateRoute = ({ component: Component, ...rest }) => { const [ cookies ] = useCookies([process.env.REACT_APP_USER_COOKIE_NAME]); return ( <Route {...rest} render={props => { ...
/* 別シートから項目を集計し、任意の項目に反映させる。 辞書配列copyTo に {集計元:集計先,.....} として指定する。 このサンプルでは前月分を集計している。 */ //-----------本体ロジック--------- (function() { "use strict"; kintone.events.on(["app.record.create.show", "app.record.edit.show"], function(e) { // 集計シートにボタンを作成する // 追加ボタンを設置 const a...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
'use strict'; const child_process = jest.createMockFromModule('child_process'); child_process.exec = jest.fn().mockName('exec'); module.exports = child_process;
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[31],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/vuedir/pages/system/SystemSuserPermissionsUsers.vue?vue&type=script&lang=js&": /*!*******************************************************************...
/* global Meteor */ Meteor.methods({ /** * Find songs that have been added to playlists very often and return it as static data */ 'getTopSongs' : function() { var topSongs = PlayCounts.aggregate([ //group it by songid, count each occurence as "one" { $group: { _id: "$songId", count: { $sum: ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.3/esri/copyright.txt for details. //>>built define(["require","exports","./propUtils"],function(e,b,d){b.vmEvent=function(c){return function(a){a._delegatedEventNames||(a._delegatedEventNames=[]);var b=Array....
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LifeUpdater = void 0; const Utils_1 = require("../../Utils"); class LifeUpdater { constructor(container) { this.container = container; } isEnabled(particle) { return !particle.destroyed; } update(par...
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = (env) => { const isDevBuild = !(env && env.prod); const extractCSS = new ExtractTextPlugin('vendor.css'); return [{ stats: { modules: false }, ...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M6.83 4H21v14.17L17.83 15H18v-2h-1.5v.5h-.17l-1.83-1.83V10.5h2v.5H18V9h-5v1.17L6.83 4zm12.95 18.61L17.17 20H3V5.83L1.39 4.22 2.8 2.81l18.38 18.38-1.4 1.42zM...
// @flow import * as React from 'react' import { TextInput as TextInputPaper } from 'react-native-paper' import AppStyles from '../config/styles' type Props = {} type ElementType = {} const Input = React.forwardRef<Props, ElementType>((props: any, ref: any) => ( <TextInputPaper underlineColor={AppStyles.colors.u...
$(document).ready(function() { /* Compute request type. */ $.get('sys/misc-pathinfo.php', function(result) { pos = result.indexOf('Fatal error'); if(pos > 0) $('#requestType').val('PATH_INFO'); }); });
import mongoose from 'mongoose' const connectDB = async () => { try { const conn = await mongoose.connect(process.env.MONGO_URI, { useUnifiedTopology : true, useNewUrlParser : true, useCreateIndex : true }) console.log(`MongoDB Connected: ${conn.connection.host}`.cyan.underline) } catch (error)...
{ "name": "restifier.js", "url": "https://github.com/benhutchins/restifier.js.git" }
describe("About Functions", function() { it("should declare functions", function() { function add(a, b) { return a + b; } expect(add(1, 2)).toBe(3); }); it("should know internal variables override outer variables", function () { var message = "Outer"; function getMessage() { r...
// Source : https://leetcode.com/problems/number-of-digit-one/ // Author : Han Zichi // Date : 2015-08-21 /** * @param {number} n * @return {number} */ var countDigitOne = function(n) { var len = n.toString().length, ans = 0; n++; var tmp = 1; for (var i = 0; i < len; i++) { ans += ~~(n / tmp / 10) *...
function alimunimJoinery(input) { let countJoinery = Number(input[0]); let type = input[1]; let deliveryOrNo = input[2]; let singlePrice = 0; let totalPrice = 0; switch (type) { case "90X130": singlePrice = 110; break; case "100X150": singlePrice = 140; break; case "130X...
/* @flow */ import objectReduce from 'fast-loops/lib/objectReduce' import objectEach from 'fast-loops/lib/objectEach' import { combineMultiRules } from 'fela-tools' import shallowCompare from 'react-addons-shallow-compare' import generateDisplayName from './generateDisplayName' import hoistStatics from './hoistStatics...
import ReactDOM from 'react-dom' import React, { Component } from 'react' import axios from 'axios' class SellComponent extends React.Component { render() { return( <div className="buy"> <div className="works-container selling-container"> <div className="container"> <h1>SELLING ON STOCKX</h1> ...
// import { Form } from "./Form"; import { List } from './List' export const Instruments = () => { return ( <div> <List /> </div> ); };
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { useLocation } from '@reach/router'; import { useStaticQuery, graphql } from 'gatsby'; const SEO = ({ title, description, image, article }) => { const { pathname } = useLocation(); const { site } = useStatic...
import Store from './store'; import 'whatwg-fetch'; import {v4 as uuid } from 'uuid'; const EditorStore = Object.assign({}, Store, { cityData: {}, /* --Requests-- */ async fetchCityData(urlName) { const url = `/api/editor/${urlName}/data`; const response = await fetch(url, {credentials: 'same-origin'});...
import add from "../src/add"; describe("5.1. add.js: Invalid inputs (Negative testing)", () => { it("0. should throw an exception for undefined value", () => expect(() => {add(1, undefined);}).toThrow()); it("1. should throw an exception for undefined value", () => expect(() => {add(undefined, 1);}).toThrow()...
$( function() { var member = $("#hiddenBtn").val(); if(!member) { $("#logandreg").show() $("#nameandexit").hide() } else { $("#logandreg").hide() $("#nameandexit").show() //购物车 $.post('cartcount.do',{},function(data){ $('#J_MiniCartNum').text(data) $('#count').text(data) }) } ...
/** * Execute view against Cloudant database: * https://docs.cloudant.com/creating_views.html#using-views **/ function main(message) { var cloudantOrError = getCloudantAccount(message); if (typeof cloudantOrError !== 'object') { return Promise.reject(cloudantOrError); } var cloudant = cloudantOrError; ...
//# sourceMappingURL=component---src-pages-program-js-f656321708b55df9f6e2.js.map
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users.server.controller'); var productos = require('../../app/controllers/productos.server.controller'); // Productos Routes app.route('/productos') .get(productos.list) .post(users.requiresLogin, productos.create); ap...